1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a10b8b-a8ba-0000-6838-538aa7341169";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="e2bf7df4-70ef-5a43-a5ff-10af534268ce")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,515990,960643,632512,e=>{"use strict";var a=e.i(681307),t=e.i(716725),n=e.i(574994),o=e.i(512676);let i=a.z.discriminatedUnion("kind",[a.z.object({kind:a.z.literal("navigate"),url:a.z.url()}),a.z.object({kind:a.z.literal("authorize"),url:a.z.url(),callbackUrl:a.z.url(),state:a.z.string().min(1)})]),s=a.z.discriminatedUnion("kind",[a.z.object({kind:a.z.literal("callback"),url:a.z.url()}),a.z.object({kind:a.z.literal("cancelled")}),a.z.object({kind:a.z.literal("failed"),reason:a.z.enum(["busy","unavailable"])})]),r=["AppleOAuth","GoogleOAuth"];a.z.enum(r),a.z.object({action:a.z.literal("exchange"),code:a.z.string().min(1).max(4096),codeVerifier:a.z.string().regex(/^[A-Za-z0-9._~-]{43,128}$/)}),a.z.object({surface:a.z.enum(t.SURFACES),path:a.z.string().startsWith("/").max(t.PATH_MAX_CHARS).nullable().optional(),page:a.z.string().nullable().optional(),chat_id:a.z.string().nullable().optional(),content_id:a.z.string().nullable().optional(),request_id:a.z.string().nullable().optional(),view_id:a.z.string(),seq:a.z.number().int().min(1),action:a.z.enum(t.INTERACTION_ACTIONS),way:a.z.string().nullable().optional(),display_mode:a.z.string().nullable().optional(),facts:a.z.record(a.z.string().min(1).max(t.FACT_KEY_MAX_CHARS),a.z.union([a.z.string(),a.z.number(),a.z.boolean()]).nullable()).optional(),automated:a.z.boolean().optional()}),n.identitySchema,n.accountSchema,n.workKindSchema,n.answeredRowSchema,n.workSchema,n.sourceSchema,n.answeredMomentSchema,n.answeredItemSchema,n.answeredCtaSchema,n.answerSchema,n.pageCardSchema,n.pageCardSchema.array(),n.chatScopeSchema,n.chatSummarySchema,n.dallyChatSummarySchema,n.listedChatSchema,n.listedChatSchema.array(),n.chatSummarySchema.array(),n.pageChatSummarySchema,n.groupChatSummarySchema,n.questionChatSummarySchema,n.everyoneYouFollowChatSummarySchema,n.groupChatSchema,n.questionChatSchema,n.everyoneYouFollowChatSchema,n.openChatSchema,n.quietLineSchema,n.dallyRowSchema,n.answeredEventSchema,n.unreachedEventSchema,n.memberAnswerSchema,n.chatToldSchema,n.chatAskingSchema,n.chatResumedSchema,n.dallyReadingSchema,n.dallyAnswerSchema,n.busySchema,n.startChunkSchema,n.stepStartChunkSchema,n.textStartChunkSchema,n.textDeltaChunkSchema,n.textEndChunkSchema,n.stepFinishChunkSchema,n.askingChunkSchema,n.resumedChunkSchema,n.memberChunkSchema,n.readingChunkSchema,n.didChunkSchema,n.answerChunkSchema,n.busyChunkSchema,n.toldChunkSchema,n.finishChunkSchema,n.errorChunkSchema,n.chatChunkSchema,n.chatTurnSchema,n.dallyTurnSchema,n.creatorToFollowSchema,n.doneLineSchema,n.dallyBriefingSchema,n.dallyUndoBodySchema,n.chatReadSchema,n.dallyChatReadSchema,n.chatOpenedSchema,n.chatAskBodySchema,n.askedFromStudioSchema,n.studioDockSchema,a.z.object({page:a.z.string().optional()}),a.z.object({opened:a.z.boolean()}),n.transcriptPieceSchema,n.transcriptSchema,o.savedMomentRefSchema,o.savedMomentRefsSchema,n.savedEntrySchema,n.savedEntrySchema.array(),n.savedMarkSchema,n.savedMomentMarkSchema,n.savedMomentMarkSchema.array(),n.savedWriteSchema,n.followBodySchema,n.emailBodySchema,n.signInBodySchema,n.codeSentSchema,a.z.object({client_id:a.z.string().min(1),redirect_uri:a.z.string(),session_cookie_name:a.z.string().min(1)}),a.z.object({pinned:a.z.boolean()}),a.z.object({name:a.z.string().nullable()}),a.z.object({name:a.z.string().nullable(),named:a.z.boolean()}),a.z.object({handle:a.z.string(),member:a.z.boolean()}),a.z.object({people:a.z.string().array(),line:a.z.string().nullable()}),a.z.object({left:a.z.boolean()}),a.z.object({undone:a.z.boolean()}),n.refusalSchema,e.s(["AUTHORIZATION_START_MEDIA_TYPE",0,"application/vnd.dally.authorization+json","AUTH_SIGN_OUT_PATHNAME",0,"/api/auth/sign-out","SIGN_IN_PROVIDERS",0,r,"authorizationReturnSchema",0,s,"authorizationStartSchema",0,i],960643),e.i(131250);let l="/api/auth/sign-in",c={AppleOAuth:"apple_failed",GoogleOAuth:"google_failed"};function h(e,a){let t=new URLSearchParams({...e,return_to:a});return`${l}?${t}`}Object.freeze({outcomeParameter:"auth_outcome",temporarilyUnavailable:"temporarily-unavailable",signInPath:l}),e.s(["AUTH_RETURN_PATHNAME",0,"/chats","authProviderSignInPath",0,function(e,a,t=null){return h({provider:e,...null===t?{}:{owner_platform_id:t}},a)},"authSignInPath",0,function(e){return h({},e)},"signInFailureOf",0,function(e){return r.find(a=>c[a]===e.get("sign_in"))??null}],632512),e.s([],515990)},574994,512676,e=>{"use strict";var a=e.i(681307),t=e.i(916401);let n=a.z.object({contentId:t.contentIdSchema,platform:a.z.string().min(1),mediaIndex:a.z.number().int().nonnegative().nullable(),startSeconds:a.z.number().finite().nonnegative().nullable()}).refine(e=>null!==e.mediaIndex||null===e.startSeconds,{message:"A timed moment needs a media coordinate"}),o=n.array().min(1).max(60);e.s(["savedMomentKey",0,function(e){return`${e.platform}:${e.contentId.toLowerCase()}:${e.mediaIndex??"whole"}:${e.startSeconds??"untimed"}`},"savedMomentRefSchema",0,n,"savedMomentRefsSchema",0,o],512676);var i=e.i(98400);let s=a.z.object({userId:a.z.string(),email:a.z.string(),tier:a.z.string(),internalOrTestUser:a.z.boolean()}),r=a.z.object({modality:a.z.string(),platform:a.z.string()}),l=a.z.object({caption:a.z.string().nullable().optional(),thumbnail_url:a.z.string().nullable().optional(),video_url:a.z.string().nullable().optional(),duration_seconds:a.z.number().nullable().optional(),permalink:a.z.string().nullable().optional(),creator_handle:a.z.string().nullable().optional()}).catchall(a.z.unknown()),c=a.z.lazy(()=>a.z.object({work:h,second:a.z.number()})),h=a.z.object({id:a.z.string(),kind:r,lives:a.z.string().nullable(),row:l,source:c.optional()}),d=a.z.object({start:a.z.number().nullable(),quote:a.z.string(),saveRef:n.optional()}),m=a.z.object({id:a.z.string(),kind:r,lives:a.z.string().nullable(),row:l,source:c.optional(),moments:d.array().readonly(),gist:a.z.string().optional(),saveRef:n.optional()}),u=a.z.object({id:a.z.string(),title:a.z.string(),link:a.z.string()}),p=a.z.object({items:m.array().readonly(),said:a.z.string().nullable(),askNext:a.z.string().array().readonly(),cta:u.nullable(),via:a.z.string(),ms:a.z.number(),partial:a.z.literal(!0).optional()}).extend({requestId:a.z.string().nullable(),conversationId:a.z.string().optional(),kept:a.z.string().optional()}
1),g=a.z.enum(["people","everyone","all_of_dally"]),z={chatId:a.z.string(),newestLine:a.z.string(),displayTitle:a.z.string().optional(),lastAt:a.z.string(),pinned:a.z.boolean(),unread:a.z.boolean().optional(),latestAnswerAt:a.z.string().nullable().optional()},b=a.z.object({kind:a.z.literal("group"),people:a.z.string().array().readonly(),name:a.z.string().nullable()}),y=a.z.object({kind:a.z.literal("chat"),people:a.z.string().array().readonly(),title:a.z.string().optional()}),S=a.z.object({kind:a.z.literal("everyone_you_follow"),people:a.z.string().array().readonly()}),w=a.z.object({...z,kind:a.z.literal("page"),handle:a.z.string()}),f=b.extend(z),k=y.extend(z),C=S.extend(z),_=a.z.discriminatedUnion("kind",[w,f,k,C]),T=a.z.discriminatedUnion("kind",[b,y,S]),j=a.z.object({text:a.z.string(),after:a.z.number()}),v=a.z.object({...z,kind:a.z.literal("dally")}),A=v.omit({kind:!0,pinned:!0}),q=a.z.discriminatedUnion("kind",[v,w,f,k,C]),I=a.z.object({kind:a.z.literal("answered"),person:a.z.string(),said:a.z.string().nullable(),items:m.array().readonly()}),x=a.z.object({kind:a.z.literal("unreached"),person:a.z.string()}),E=a.z.discriminatedUnion("kind",[I,x]),R=a.z.object({page:a.z.string(),name:a.z.string(),why:a.z.string(),reel:m}),O=a.z.object({at:a.z.number(),operation:a.z.string(),line:a.z.string(),undoable:a.z.boolean(),undone:a.z.boolean()}),N=a.z.object({read:a.z.object({source:a.z.string(),lookedAt:a.z.string(),platform:a.z.string().nullable()}).array().readonly(),parts:a.z.object({label:a.z.string(),words:a.z.string().nullable(),reels:a.z.object({contentId:a.z.string(),platform:a.z.string(),label:a.z.string().nullable()}).array().readonly()}).array().readonly()}),U=a.z.object({said:a.z.string().nullable(),items:m.array().readonly(),offer:a.z.string().nullable(),neverConnected:a.z.string().array().readonly().optional(),toFollow:R.array().readonly().optional(),did:O.array().readonly().optional(),briefing:N.optional(),quiet:a.z.string().array().readonly().optional()}),M=a.z.object({kind:a.z.literal("asking"),chatId:a.z.string(),scope:g,people:a.z.string().array().readonly()}),D=a.z.object({kind:a.z.literal("resumed"),chatId:a.z.string()}),F=a.z.object({kind:a.z.literal("dally_reading"),operation:a.z.string()}),W=a.z.object({kind:a.z.literal("dally_did"),did:O}),L=U.extend({kind:a.z.literal("dally_answered")});a.z.discriminatedUnion("kind",[F,W,L]);let P=a.z.object({kind:a.z.literal("done"),requestId:a.z.string().nullable(),askNext:a.z.string().array().readonly()}),G=a.z.object({kind:a.z.literal("busy"),retryAfterSec:a.z.number()});a.z.discriminatedUnion("kind",[M,D,I,x,F,W,L,P,G]);let B=a.z.object({requestId:a.z.string().nullable(),askNext:a.z.string().array().readonly()}),H=M.omit({kind:!0}),K=D.omit({kind:!0}),$=F.omit({kind:!0}),Y=G.omit({kind:!0}),Z={asking:H,resumed:K,member:E,reading:$,did:O,answer:U,busy:Y},Q=e=>a.z.object({type:a.z.literal(`data-${e}`),id:a.z.string(),data:Z[e]}),J=a.z.object({type:a.z.literal("start"),messageId:a.z.string().optional()}),X=a.z.object({type:a.z.literal("start-step")}),V=a.z.object({type:a.z.literal("text-start"),id:a.z.string()}),ee=a.z.object({type:a.z.literal("text-delta"),id:a.z.string(),delta:a.z.string()}),ea=a.z.object({type:a.z.literal("text-end"),id:a.z.string()}),et=a.z.object({type:a.z.literal("finish-step")}),en=Q("asking"),eo=Q("resumed"),ei=Q("member"),es=Q("reading"),er=Q("did"),el=Q("answer"),ec=Q("busy"),eh=a.z.object({type:a.z.literal("message-metadata"),messageMetadata:B}),ed=a.z.object({type:a.z.literal("finish")}),em=a.z.object({type:a.z.literal("error"),errorText:a.z.string()}),eu=a.z.discriminatedUnion("type",[J,X,V,ee,ea,et,en,eo,ei,es,er,el,ec,eh,ed,em]),ep=a.z.union([a.z.object({name:a.z.string().min(1),contentType:a.z.enum
1(["image/png","image/jpeg","image/webp","image/gif","application/pdf"]),data:a.z.string().regex(/^data:(?:image\/(?:png|jpeg|webp|gif)|application\/pdf);base64,[A-Za-z0-9+/]+={0,2}$/u)}).refine(e=>e.data.startsWith(`data:${e.contentType};base64,`)),a.z.object({name:a.z.string().min(1),contentType:a.z.literal("text/plain"),data:a.z.string()})]).array().readonly(),eg=a.z.object({occurredAt:a.z.iso.datetime({precision:6}),requestId:a.z.string().min(1)});a.z.object({most:a.z.number().int().min(1).max(50),before:eg.optional()});let ez=a.z.object({pending:a.z.boolean().optional(),requestId:a.z.string(),occurredAt:a.z.string().optional(),question:a.z.string(),questionText:a.z.string().optional(),attachments:ep.optional(),scope:g,people:a.z.string().array().readonly(),added:a.z.string().array().readonly(),answers:E.array().readonly(),dally:U.optional()}),eb=U.extend({pending:a.z.boolean().optional(),requestId:a.z.string(),question:a.z.string(),attachments:ep.optional(),occurredAt:a.z.string()}),ey=a.z.object({kind:a.z.literal("dally"),turns:eb.array().readonly(),offer:a.z.string().nullable(),older:eg.nullable().optional()}),eS=a.z.object({chat:T,turns:ez.array().readonly(),lines:j.array().readonly(),older:eg.nullable().optional()}),ew=a.z.xor([eS,ey]),ef=a.z.object({handle:a.z.string(),name:a.z.string(),firstName:a.z.string(),avatar:a.z.string().nullable(),verified:a.z.boolean(),following:a.z.boolean()}),ek=a.z.object({yourPage:a.z.discriminatedUnion("kind",[a.z.object({kind:a.z.literal("page"),handle:a.z.string(),name:a.z.string()}),a.z.object({kind:a.z.literal("unavailable")})]).nullable(),surfaces:a.z.string().array().readonly()}).extend({identity:s.nullable(),follows:ef.array().readonly(),dally:A}),eC=["page","publish","automations"],e_=a.z.enum(eC),eT=a.z.object({tool:e_,draft:a.z.string().nullable()}),ej=a.z.object({requestId:a.z.string().optional(),chatId:a.z.string().nullable(),question:a.z.string(),attachments:ep.optional(),people:a.z.string().array().readonly().optional(),scope:g.optional(),name:a.z.string().optional(),studio:eT.optional()}),ev=a.z.object({requestId:a.z.string(),at:a.z.number().int().nonnegative()}),eA=a.z.object({at:a.z.number(),text:a.z.string()}),eq=a.z.object({pieces:eA.array().readonly()}),eI=a.z.object({moment:n,savedAt:a.z.string(),note:a.z.string().nullable(),quote:a.z.string().nullable(),item:m.nullable()}),ex=a.z.object({saved:a.z.boolean(),savedAt:a.z.string().nullable()}),eE=ex.extend({moment:n}),eR=a.z.object({moment:n,saved:a.z.boolean(),idempotencyKey:a.z.string().min(1).max(200)}),eO=a.z.object({handle:a.z.string(),following:a.z.boolean(),via:a.z.enum(i.FOLLOWED_FROM)}),eN=a.z.object({email:a.z.string()}),eU=eN.extend({code:a.z.string()}),eM=a.z.object({sent:a.z.boolean()}),eD=a.z.object({error:a.z.string()});e.s(["ATTACHED_FILES_QUESTION",0,"Attached files","BRIEFING_KIND",0,"briefing","CHAT_HISTORY_PAGE_SIZE",0,50,"CREATORS_TO_FOLLOW_KIND",0,"creators_to_follow","FOUND_PAGES_MOST",0,50,"SOURCES_KIND",0,"sources","STUDIO_DOCKS",0,eC,"UI_MESSAGE_STREAM",0,"text/event-stream","accountSchema",0,ek,"answerChunkSchema",0,el,"answerSchema",0,p,"answeredCtaSchema",0,u,"answeredEventSchema",0,I,"answeredItemSchema",0,m,"answeredMomentSchema",0,d,"answeredRowSchema",0,l,"askedFromStudioSchema",0,eT,"askingChunkSchema",0,en,"busyChunkSchema",0,ec,"busySchema",0,Y,"chatAskBodySchema",0,ej,"chatAskingSchema",0,H,"chatAttachmentsSchema",0,ep,"chatChunkSchema",0,eu,"chatOpenedSchema",0,ew,"chatReadSchema",0,eS,"chatResumedSchema",0,K,"chatScopeSchema",0,g,"chatSummarySchema",0,_,"chatToldSchema",0,B,"chatTurnSchema",0,ez,"codeSentSchema",0,eM,"creatorToFollowSchema",0,R,"dallyAnswerSchema",0,U,"dallyBriefingSchema",0,N,"dallyChatReadSchema",0,ey,"dallyChatSummarySchema",0,v,"dallyReadingSchema",0,$,"dallyRowSchema",0,A,"dallyTurnSchema",0,eb,"dallyUndoBodySchema",0,ev,"didChunkSchema",0,er,"doneLineSchema",0,O,"emailBodySchema",0,eN,"errorChunkSchema",0,em,"everyoneYouFollowChatSchema",0,S,"everyoneYouFollowChatSummarySchema",0,C,"finishChunkSchema",0,ed,"followBodySchema",0,eO,"groupChatSchema",0,b,"groupChatSummarySchema",0,f,"identitySchema",0,s,"listedChatSchema",0,q,"memberAnswerSchema",0,E,"memberChunkSchema",0,ei,"openChatSchema",0,T,"pageCardSchema",0,ef,"pageChatSummarySchema",0,w,"questionChatSchema",0,y,"questionChatSummarySchema",0,k,"quietLineSchema",0,j,"readingChunkSchema",0,es,"refusalSchema",0,eD,"resumedChunkSchema",0,eo,"s
1avedEntrySchema",0,eI,"savedMarkSchema",0,ex,"savedMomentMarkSchema",0,eE,"savedWriteSchema",0,eR,"signInBodySchema",0,eU,"sourceSchema",0,c,"startChunkSchema",0,J,"stepFinishChunkSchema",0,et,"stepStartChunkSchema",0,X,"studioDockSchema",0,e_,"textDeltaChunkSchema",0,ee,"textEndChunkSchema",0,ea,"textStartChunkSchema",0,V,"toldChunkSchema",0,eh,"transcriptPieceSchema",0,eA,"transcriptSchema",0,eq,"unreachedEventSchema",0,x,"workKindSchema",0,r,"workSchema",0,h],574994)},407817,e=>{"use strict";var a=e.i(681307);let t=new Set(Object.freeze([{name:"previs.create"},{name:"previs.read"},{name:"previs.keep"},{name:"previs.discard"},{name:"previs.reword"},{name:"query"},{name:"search"},{name:"open"},{name:"curves"},{name:"tips.offer"},{name:"tips.dismiss"},{name:"swipe_file.add"},{name:"swipe_file.remove"},{name:"swipe_file.marks"},{name:"stage.references"},{name:"stage.card"},{name:"stage.cards"},{name:"bed.read"},{name:"private_media.stage"},{name:"private_media.open"},{name:"private_media.download"},{name:"private_media.land"},{name:"private_media.stage_batch"},{name:"private_media.land_batch"},{name:"publish.propose"},{name:"publish.revise"},{name:"publish.post"},{name:"publish.discard"},{name:"publish.cancel"},{name:"publish"},{name:"publish.status"},{name:"publish.take_down"},{name:"publish.put_back"},{name:"publish.delete"},{name:"automation.arm"},{name:"automation.confirm"},{name:"automation.disarm"},{name:"automation.delete"},{name:"automation.edit"},{name:"automation.turn_on"},{name:"send.approved"},{name:"depth.request"},{name:"page.read"},{name:"page.choose_ctas"},{name:"page.choose_questions"},{name:"page.choose_accounts"},{name:"page.follow"},{name:"page.unfollow"},{name:"page.following"}]).map(e=>e.name));var n=e.i(916401);e.s(["defineContract",0,function(e){var o;if(o=e.name,!t.has(o))throw Error(`defineContract: "${e.name}" is not in the ruled v1 inventory. Operations are declared in packages/api-contracts/inventory.ts (API-OPS-001) â add it there first via a superseding ARCH\xb7 ruling, never ad hoc.`);if(e.pending&&!e.examplePendingResponse)throw Error(`defineContract: "${e.name}" declares a pending (202) shape without examplePendingResponse. A published status with no example is one no caller can imitate â add the smallest 202 body worth copying.`);let{pending:i,...s}=e;return Object.freeze({...s,input:a.z.strictObject(e.input),output:a.z.object(e.output),response:a.z.object({...e.output,request_id:n.requestIdSchema}),pendingResponse:i?a.z.object({...i,request_id:n.requestIdSchema}):null})}],407817)},98400,329,e=>{"use strict";var a=e.i(681307),t=e.i(411409),n=e.i(407817);let o=/^https:\/\/\S+$/u;e.s(["CTA_LINK",0,o,"LONGEST_CTA_LINK",0,2048,"LONGEST_CTA_TITLE",0,40,"LONGEST_PAGE_HANDLE",0,64,"LONGEST_QUESTION",0,120,"LONGEST_WHEN_TO_OFFER",0,300,"MOST_CTAS",0,3,"MOST_PAGE_ACCOUNTS",0,100,"MOST_QUESTIONS",0,3],329);var i=e.i(916401);let s=a.z.string().trim().min(1,"Name the page by its Dally handle.").max(64),r=s.optional().describe("The Dally handle of a page you own, as in dally.ai/<handle>. Absent, your page, the one the Studio shows."),l=a.z.object({handle:a.z.string().describe("The page's Dally handle: it lives at dally.ai/<handle>."),name:a.z.string().describe("The name the page shows at its top.")}).describe("The link-in-bio page this answer is about."),c=a.z.uuid("Each CTA's id is a uuid; reload the page and try again."),h=a.z.object({id:a.z.uuid().describe("The CTA's id, the same across saves."),title:a.z.string().describe("The words on the button a visitor taps."),link:a.z.string().describe("Where the button takes them, an https link."),when_to_offer:a.z.string().describe("When the page offers it, in the creator's own words; the model that answers on the page offers at most one CTA whose words fit the question."),on:a.z.boolean().describe("Whether the page offers it now; one that is off stays saved.")}),d=a.z.object({id:c.optional().describe("The id of a CTA the page has, to keep it as that CTA; absent, a new CTA, and Dally gives it an id."),title:a.z.string().trim().min(1,"Each CTA needs a title.").max(40,"A title is at most 40 characters.").describe("The words on the button a visitor taps, at most 40 characters."),link:a.z.string().trim().max(2048,"A link is at most 2048 characters.").regex(o,"Each CTA needs a link, starting https://, with no spaces.").describe("Where the button takes them: an https link."),when_to_offer:a.z.string().trim().min(1,"Say when to offer each CTA.").max(300,"When to offer is at most 300 characters.").describe('When the page offers it, in the creator\'s own words, at most 300 characters: "when someone asks how to start".'),on:a.z.boolean().describe("Whether the page offers it now; one that is off stays saved.")}),m=a.z.object({shown:a.z.boolean().describe("Whether the page shows them under the creator's name."),questions:a.z.array(a.z.string()).describe("The questions, in the order the page shows them.")}),u=m.nullable().describe("The suggested questions the creator chose, or null while they have never chosen any: the page then shows a few questions Dally wrote from their work."),p=a.z.string().trim().min(1,"A question has words.").max(120,"A question is at most 120 characters."),g=a.z.object({account_id:a.z.uuid().describe("The account's Dally id, as the accounts table carries it."),platform:a.z.string().nullable().describe("Its platform: instagram, youtube, tiktok and the like."),handle:a.z.string().nullable().describe("Its handle there."),name:a.z.string().nullable().describe("Its display name."),own:a.z.boolean().describe("Whether it is the page's own account."),on:a.z.boolean().describe("Whether the page answers from it now."),shown:a.z.boolean().describe("Whether its link appears in the page header."),avatar:a.z.object({path:a.z.string().nullable()}),contentCounts:a.z.array(a.z.object({format:t.contentSubtypeSchema,modality:t.contentTypeSchema.nullable(),count:a.z.number().int().min(0).max(Number.MAX_SAFE_INTEGER)})).readonly().nullable()}),z=a.z.object({handle:a.z.string().describe("The page's Dally handle: it lives at dally.ai/<handle>."),name:a.z.string().describe("The name the page shows."),since:i.isoDateTimeSchema.describe("When you followed it.")}),b={page:r,ctas:a.z.array(d).max(3,"Up to 3 CTAs.").refine(e=>{let a=e.flatMap(e=>void 0===e.id?[]:[e.id.toLowerCase()]);
1return new Set(a).size===a.length},"Each CTA once.").describe("Every CTA the page has after this call, in the order it offers them, up to 3: one left out is gone. Read them with page.read first, then send them back with the change."),from:a.z.array(h).max(3).optional().describe("The CTAs as they stood when you made this change, each with its id: an undo sends the ones the change it takes back left. Sent, only the CTAs that differ between from and ctas change, on the page as it stands now, so a CTA added or changed since by anyone else stays as it is, and nothing is written when a CTA this call changes was changed since. Left out, ctas is the page's whole list.")},y={page:r,shown:a.z.boolean().describe("Whether the page shows them; false hides them and keeps the words."),questions:a.z.array(p).max(3,"Up to 3 questions.").refine(e=>new Set(e).size===e.length,"Each question once.").describe("The questions a visitor can tap to ask, up to 3, each at most 120 characters, in the order the page shows them."),from:m.optional().describe("The questions as they stood when you made this change: an undo sends the ones the change it takes back left. Sent, only the questions that differ between from and questions, and shown if it differs, change, on the page as it stands now, so a question added since by anyone else stays, and nothing is written when what this call changes was changed since. Left out, questions is the page's whole list.")},S={page:r,accounts:a.z.array(a.z.object({account_id:a.z.uuid("Reload the page and try again.").describe("The account, as page.read lists it."),on:a.z.boolean().optional().describe("Whether the page answers from it; omitted, unchanged."),shown:a.z.boolean().optional().describe("Whether its link appears in the page header; omitted, unchanged.")}).refine(e=>void 0!==e.on||void 0!==e.shown,"Choose whether the page answers from the account, shows its link, or both.")).min(1,"Name an account.").max(100,"Up to 100 accounts.").describe("The accounts this call changes: answering from each account and showing its header link are independent choices. Every account and choice not named stays as it is.")},w={page:s.describe("The Dally handle of the creator's page, as in dally.ai/<handle>; a leading @ is fine.")},f=(e,t)=>a.z.object({operation:a.z.literal(e).describe("The operation that puts back what was there."),input:a.z.object(t).describe("Its input, ready to send as it stands.")}).nullable(),k={handle:"jim",name:"Jim Tang"},C={id:"4b0a6f8e-2c1d-4e5f-9a7b-3c2d1e0f9a8b",title:"Join the course",link:"https://jimtang.io/course",when_to_offer:"when someone asks how to start making videos",on:!0},_=["How did you leave Google?","What camera do you film on?"],T={account_id:"9d3e2f1a-0b4c-4d5e-8f6a-7b8c9d0e1f2a",platform:"youtube",handle:"jimtang",name:"Jim Tang",own:!1,on:!0,shown:!0,avatar:{path:null},contentCounts:null},j=(0,n.defineContract)({name:"page.read",access:"public",entitlement:null,audience:"model",rateClass:"read",summary:"Your link-in-bio page as you set it: its CTAs, its suggested questions, and its accounts, each with independent choices for answering from it and showing its header link. Read it before changing any of them: a change sends the CTAs or the questions whole, and changes accounts one by one.",exampleInput:{},exampleResponse:{page:k,ctas:[C],questions:{shown:!0,questions:[..._]},accounts:[T],request_id:"req_01j8zkq"},input:{page:r},output:{page:l,ctas:a.z.array(h).describe("Its CTAs, in the order it offers them, on and off."),questions:u,accounts:a.z.array(g).describe("The accounts it can answer from, its own first; empty until the page is claimed.")}}),v=(0,n.defineContract)({name:"page.choose_ctas",access:"public",entitlement:"automations",audience:"model",rateClass:"write",summary:"Set the CTAs on your link-in-bio page, as the Studio's form does: up to 3 CTAs, each a title, an https link and when to offer it, shown as a button under the reels when a visitor's question fits.",exampleInput:{ctas:[{title:C.title,link:C.link,when_to_offer:C.when_to_offer,on:!0}]},exampleResponse:{page:k,ctas:[C],undo:{operation:"page.choose_ctas",input:{page:"jim",ctas:[],from:[C]}},request_id:"req_01j8zkq"},input:b,output:{page:l,ctas:a.z.array(h).describe("Its CTAs now, each with its id, in the order sent."),undo:f("page.choose_ctas",b).describe("The call that takes this change back: it puts back
1what this call changed and leaves alone any CTA changed since, and nothing is written when a CTA this call changed was changed since; null when this call changed nothing.")}}),A=(0,n.defineContract)({name:"page.choose_questions",access:"public",entitlement:"automations",audience:"model",rateClass:"write",summary:"Set the suggested questions on your link-in-bio page, as the Studio's form does: up to 3 questions a visitor can tap to ask, shown under your name or hidden. The page shows the change at once.",exampleInput:{shown:!0,questions:[..._]},exampleResponse:{page:k,shown:!0,questions:[..._],changed:!0,undo:null,request_id:"req_01j8zkq"},input:y,output:{page:l,shown:a.z.boolean().describe("Whether the page shows them now."),questions:a.z.array(a.z.string()).describe("The questions now, in the order the page shows them."),changed:a.z.boolean().describe("Whether this call changed them; false when they already stood so."),undo:f("page.choose_questions",y).describe("The call that takes this change back: it puts back what this call changed and leaves alone any question changed since, and nothing is written when what this call changed was changed since; null when this call changed nothing, or when the creator had never chosen any, since no call brings back the questions Dally wrote.")}}),q=(0,n.defineContract)({name:"page.choose_accounts",access:"public",entitlement:"automations",audience:"model",rateClass:"write",summary:"Choose which accounts your link-in-bio page answers from and which links its header shows, as the Studio's form does. The choices are independent, including for the page's own account. Send on, shown, or both for each account; omitted choices stay as they are. The page answers the next question from the change.",exampleInput:{accounts:[{account_id:T.account_id,on:!0}]},exampleResponse:{page:k,accounts:[T],undo:{operation:"page.choose_accounts",input:{page:"jim",accounts:[{account_id:T.account_id,on:!1}]}},request_id:"req_01j8zkq"},input:S,output:{page:l,accounts:a.z.array(g).describe("Every account the page can answer from, as it stands now."),undo:f("page.choose_accounts",S).describe("The call that restores only the account choices this call changed; an answering choice leaves its header choice alone and vice versa. Null when it changed none.")}}),I=e=>({page:l,following:a.z.literal(e).describe("Whether you follow the creator now."),changed:a.z.boolean().describe("Whether this call changed that; false when it already stood so.")}),x=(0,n.defineContract)({name:"page.follow",access:"public",entitlement:null,audience:"model",rateClass:"write",summary:"Follow a creator on Dally, as the Follow button on their page does: they join Everyone you follow, which asks every creator you follow. It is Dally's follow, never Instagram's.",exampleInput:{page:"jim"},exampleResponse:{page:k,following:!0,changed:!0,undo:{operation:"page.unfollow",input:{page:"jim"}},request_id:"req_01j8zkq"},input:w,output:{...I(!0),undo:f("page.unfollow",{page:w.page}).describe("The call that unfollows them again; null when you already followed them.")}}),E=(0,n.defineContract)({name:"page.unfollow",access:"public",entitlement:null,audience:"model",rateClass:"write",summary:"Unfollow a creator on Dally: they leave Everyone you follow. Your chats with them stay.",exampleInput:{page:"jim"},exampleResponse:{page:k,following:!1,changed:!0,undo:{operation:"page.follow",input:{page:"jim"}},request_id:"req_01j8zkq"},input:w,output:{...I(!1),undo:f("page.follow",{page:w.page}).describe("The call that follows them again; null when you did not follow them.")}}),R=(0,n.defineContract)({name:"page.following",access:"public",entitlement:null,audience:"model",rateClass:"read",summary:"The creators you follow on Dally, newest follow first: the members of Everyone you follow.",exampleInput:{},exampleResponse:{following:[{...k,since:"2026-09-28T10:00:00.000Z"}],request_id:"req_01j8zkq"},input:{},output:{following:a.z.array(z).describe("Each creator's page you follow, newest follow first.")}});e.s(["FOLLOWED_FROM",0,["chat","page","you"],"pageChooseAccountsContract",0,q,"pageChooseCtasContract",0,v,"pageChooseQuestionsContract",0,A,"pageFollowContract",0,x,"pageFollowingContract",0,R,"pageReadContract",0,j,"pageUnfollowContract",0,E],98400)}]); 2 3//# chunkId=e2bf7df4-70ef-5a43-a5ff-10af534268ce
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.