# Anchors of 0004-tiktok-audit-ux.patch (plan part 1, task 3.6).
# Format: path|literal text|exact count. The text runs from the first to the last "|", so it may hold "|".
# In the text, \n is a newline and \\ a backslash. Plain lines are checked on the tree the patch is about to
# change (upstream + the patches before it in series); "after:path|text|count" lines are the contract of the
# result, checked once the whole series is applied (count 0 = must be absent).
#
# C10 (v2.25.2+): POST /integrations/function only runs methods marked @Tool or @DashboardFunction().
apps/backend/src/api/routes/integrations.controller.ts|isDashboardCallable|1
libraries/nestjs-libraries/src/integrations/dashboard.function.decorator.ts|export function DashboardFunction()|1
# The composer reads creatorInfo through the existing custom-function hook.
apps/frontend/src/components/launches/helpers/use.custom.provider.function.ts|export const useCustomProviderFunction|1
# Backend: creatorInfo goes next to maxVideoLength; the privacy fallback and the brand toggles are rewritten.
libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts|async maxVideoLength(accessToken: string)|1
libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts|firstPost.settings.privacy_level || 'PUBLIC_TO_EVERYONE',|1
libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts|brand_content_toggle: this.assetBoolean(|1
libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts|creatorInfo|0
# user/info asks for union_id twice; the patch drops it (scope not granted to the app).
libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts|fields=open_id,avatar_url,display_name,union_id,username|2
# Frontend: the privacy list + its default, the "#Postiz" notice and the comments default.
apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx|value: 'PUBLIC_TO_EVERYONE',|2
apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx|#Postiz|1
apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx|{...register('comment', {\n              value: true,|1
#
# Contract of the result (TikTok Content Sharing Guidelines, Review Focus 7).
after:libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts|@DashboardFunction()\n  async creatorInfo(accessToken: string)|1
after:libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts|'PUBLIC_TO_EVERYONE'|0
after:libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts|union_id|0
after:apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx|{...register('privacy_level')}|1
after:apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx|{...register('privacy_level', {|0
after:apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx|{...register('comment', {\n                value: false,|1
after:apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx|value: true|0
after:apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx|#Postiz|0
