@camox/api-contract 0.72.0 → 0.74.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/router.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { DurableObject, WorkerEntrypoint, WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from "cloudflare:workers";
3
- import { ConnectedAgentClient, ThreadSender, ThreadView } from "@camox/api-contract/threads";
3
+ import { AgentActivity, ConnectedAgentClient, ThreadSender, ThreadView } from "@camox/api-contract/threads";
4
4
  import { PiHarness, PiHarnessOptions } from "agents/harness/pi";
5
5
  import { CapabilityStartContext, Lifecycle } from "agents/lifecycle";
6
6
  import { WebSockets } from "agents/websockets";
@@ -13,7 +13,7 @@ import { EndedDraft, PublishAbortReason } from "@camox/api-contract/drafts";
13
13
  import "@camox/api-contract/projects";
14
14
  import "drizzle-orm";
15
15
  import "drizzle-orm/sqlite-core";
16
- import { FindingView, PatrollerId } from "@camox/api-contract/patrol";
16
+ import { SpecialistId } from "@camox/api-contract/specialists";
17
17
  import { DrizzleD1Database } from "drizzle-orm/d1";
18
18
  import { CIWorkflow, CiContext, CiParams, CloudflareArtifacts } from "@cloudflare/ci";
19
19
  import { CiBindings } from "@cloudflare/ci/worker";
@@ -229,19 +229,31 @@ declare class DraftCode extends DurableObject<Bindings> {
229
229
  script: string;
230
230
  uploaded: boolean;
231
231
  }>;
232
+ /** The publish of the draft going now, if any: its Workflow instance. */
233
+ publishGoing(): Promise<string | null>;
234
+ /**
235
+ * Records that a member's push landed during the publish `instanceId`: the revision it waits
236
+ * for a build to leave changed under it, so it goes back to the review (ADR 0043).
237
+ */
238
+ notePushDuring(instanceId: string): Promise<void>;
239
+ /** Whether a member's push landed during the publish `instanceId`. */
240
+ pushedDuring(instanceId: string): Promise<boolean>;
232
241
  /** Records that a build of the draft's code started, or ended. */
233
242
  markBuilding(building: boolean): Promise<void>;
234
243
  /**
235
244
  * Whether a build of the draft's code is going (see `BUILD_GOING_FOR_AT_MOST_MS`), or owed:
236
- * Camox's infrastructure failed the last one, and Camox retries it.
245
+ * Camox's infrastructure failed the last one, and Camox retries it. A type check, going or
246
+ * owed, isn't building (ADR 0043).
237
247
  */
238
248
  building(): Promise<boolean>;
239
249
  /**
240
250
  * Records that the thread `threadId` couldn't build the draft's code because of Camox's own
241
- * infrastructure, and has it retry later (`alarm`), each retry waiting longer.
251
+ * infrastructure, or with `typesOnly`, only check the types of a revision that built, and has
252
+ * it retry later (`alarm`), each retry waiting longer.
242
253
  */
243
- oweBuild({ threadId }: {
254
+ oweBuild({ threadId, typesOnly }: {
244
255
  threadId: string;
256
+ typesOnly?: boolean;
245
257
  }): Promise<void>;
246
258
  /** Forgets the build Camox owed the draft, once one ended without Camox's failing. */
247
259
  settleOwedBuild(): Promise<void>;
@@ -1670,10 +1682,6 @@ declare const files: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1670
1682
  dialect: 'sqlite';
1671
1683
  }>;
1672
1684
  //#endregion
1673
- //#region ../../apps/api/src/domains/drafts/schema.d.ts
1674
- /** What Camox opens a draft for (`purpose`): to catch translations up, or to fix Live's findings. */
1675
- type CamoxDraftPurpose = "catchUp" | "patrol";
1676
- //#endregion
1677
1685
  //#region ../../apps/api/src/domains/generated-values/schema.d.ts
1678
1686
  /** What a generated value describes, named like the draft overlay's entities. */
1679
1687
  type GeneratedEntity = "block" | "sharedContent" | "repeatableItem" | "page" | "file";
@@ -1706,7 +1714,7 @@ type DraftRequest = {
1706
1714
  };
1707
1715
  //#endregion
1708
1716
  //#region ../../apps/api/src/domains/drafts/overlay.d.ts
1709
- /** The kinds of entity drafts hold: what changes, conflicts and publish tokens name. */
1717
+ /** The kinds of entity drafts hold: what changes and conflicts name. */
1710
1718
  declare const ENTITY_KINDS: readonly ["locale", "page", "block", "sharedContent", "repeatableItem", "file", "record", "exclusion"];
1711
1719
  type EntityKind = (typeof ENTITY_KINDS)[number];
1712
1720
  //#endregion
@@ -2209,7 +2217,7 @@ declare const schema: {
2209
2217
  tableName: "drafts";
2210
2218
  dataType: "string";
2211
2219
  columnType: "SQLiteText";
2212
- data: CamoxDraftPurpose;
2220
+ data: "catchUp";
2213
2221
  driverParam: string;
2214
2222
  notNull: false;
2215
2223
  hasDefault: false;
@@ -2222,7 +2230,7 @@ declare const schema: {
2222
2230
  generated: undefined;
2223
2231
  }, {}, {
2224
2232
  length: undefined;
2225
- $type: CamoxDraftPurpose;
2233
+ $type: "catchUp";
2226
2234
  }>;
2227
2235
  createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2228
2236
  name: "created_at";
@@ -2538,7 +2546,7 @@ declare const schema: {
2538
2546
  tableName: "drafts";
2539
2547
  dataType: "string";
2540
2548
  columnType: "SQLiteText";
2541
- data: "blocked" | "codeDoesNotMerge" | "conflictsChanged" | "failed" | "liveCodeMoved" | "revisionChanged";
2549
+ data: "blocked" | "codeDoesNotBuild" | "codeDoesNotMerge" | "conflictsChanged" | "failed" | "liveCodeMoved" | "revisionChanged";
2542
2550
  driverParam: string;
2543
2551
  notNull: false;
2544
2552
  hasDefault: false;
@@ -2551,7 +2559,7 @@ declare const schema: {
2551
2559
  generated: undefined;
2552
2560
  }, {}, {
2553
2561
  length: number | undefined;
2554
- $type: "blocked" | "codeDoesNotMerge" | "conflictsChanged" | "failed" | "liveCodeMoved" | "revisionChanged";
2562
+ $type: "blocked" | "codeDoesNotBuild" | "codeDoesNotMerge" | "conflictsChanged" | "failed" | "liveCodeMoved" | "revisionChanged";
2555
2563
  }>;
2556
2564
  };
2557
2565
  dialect: 'sqlite';
@@ -5590,6 +5598,23 @@ declare const schema: {
5590
5598
  identity: undefined;
5591
5599
  generated: undefined;
5592
5600
  }, {}, {}>;
5601
+ local: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5602
+ name: "local";
5603
+ tableName: "session";
5604
+ dataType: "boolean";
5605
+ columnType: "SQLiteBoolean";
5606
+ data: boolean;
5607
+ driverParam: number;
5608
+ notNull: true;
5609
+ hasDefault: true;
5610
+ isPrimaryKey: false;
5611
+ isAutoincrement: false;
5612
+ hasRuntimeDefault: false;
5613
+ enumValues: undefined;
5614
+ baseColumn: never;
5615
+ identity: undefined;
5616
+ generated: undefined;
5617
+ }, {}, {}>;
5593
5618
  createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5594
5619
  name: "createdAt";
5595
5620
  tableName: "session";
@@ -6481,6 +6506,11 @@ declare function createAuth(db: Database, env: Bindings, baseURL: string, waitUn
6481
6506
  required: false;
6482
6507
  input: false;
6483
6508
  };
6509
+ local: {
6510
+ type: "boolean";
6511
+ required: false;
6512
+ input: false;
6513
+ };
6484
6514
  };
6485
6515
  };
6486
6516
  };
@@ -9452,27 +9482,54 @@ type TurnEnd = ({
9452
9482
  }) & {
9453
9483
  page?: TurnPage;
9454
9484
  };
9455
- /** The page a turn changed last, as its writes touched it. */
9485
+ /** A page a turn changed, as its writes touched it: by its id, in the Locale it was changed in. */
9456
9486
  type TurnPage = {
9457
9487
  pageId: string;
9458
9488
  locale?: string;
9459
9489
  };
9460
9490
  /**
9461
- * Where waiting on a turn got: it ended; it's still going when the wait gave up; or the thread
9462
- * ended with its draft, published or deleted.
9491
+ * A Connected Agent, one member's connection through one client (ADR 0042): who follows a turn,
9492
+ * and is asked the agent's questions.
9493
+ */
9494
+ type Follower = {
9495
+ memberId: string;
9496
+ clientId: string;
9497
+ };
9498
+ /**
9499
+ * What a caller waits on: the turn the message sent with `operationId` started or joined, or
9500
+ * without one, the turn running, as a call that sent nothing.
9501
+ */
9502
+ type AwaitedMessage = {
9503
+ /** The operation id the message was sent to the thread with, if the call sent one. */
9504
+ operationId?: string;
9505
+ /** The Connected Agent whose call waits, which the agent's questions come back to. */
9506
+ follower?: Follower;
9507
+ };
9508
+ /**
9509
+ * Where waiting on a turn got: it ended; it's still going when the wait gave up, with what the
9510
+ * agent is doing, as the studio shows it, and every page the turn changed so far, first changed
9511
+ * first; the agent asked the waiting Connected Agent questions since its previous call answered,
9512
+ * in the order it asked them, the turn carrying on; no turn was running to wait on; or the
9513
+ * thread ended with its draft, published or deleted.
9463
9514
  */
9464
9515
  type TurnOutcome = TurnEnd | {
9465
9516
  turn: "working";
9517
+ activity?: AgentActivity;
9518
+ pages: TurnPage[];
9519
+ } | {
9520
+ turn: "asking";
9521
+ questions: string[];
9466
9522
  } | {
9467
9523
  turn: "threadEnded";
9524
+ } | {
9525
+ turn: "idle";
9468
9526
  };
9469
9527
  //#endregion
9470
9528
  //#region ../../apps/api/src/durable-objects/thread.d.ts
9471
9529
  /**
9472
9530
  * Who sent a message a draft's thread opens with, and their kind, which sets how the transcript
9473
- * records it, how studios show it and how the model reads it: an editor, a member's Connected
9474
- * Agent, in its client (ADR 0030), or Camox itself, as a Brief, in a draft Camox opened, such as
9475
- * its Patrol Draft (ADR 0034).
9531
+ * records it, how studios show it and how the model reads it: an editor, or a member's Connected
9532
+ * Agent, in its client (ADR 0030).
9476
9533
  */
9477
9534
  type OpeningSender = {
9478
9535
  kind: "editor";
@@ -9481,14 +9538,18 @@ type OpeningSender = {
9481
9538
  kind: "connectedAgent";
9482
9539
  member: ThreadSender;
9483
9540
  client: ConnectedAgentClient;
9484
- } | {
9485
- kind: "camox";
9541
+ /** The client's id, which with the member's names the Connected Agent following the turn. */
9542
+ clientId: string;
9486
9543
  };
9487
- /** A message a draft's thread opens with: its text, the operation id it was sent with, and who sent it. */
9544
+ /**
9545
+ * A message a draft's thread opens with: its text, the operation id it was sent with, and who
9546
+ * sent it. A Connected Agent's message may be its answer to the agent's questions (ADR 0042).
9547
+ */
9488
9548
  type OpeningMessage = {
9489
9549
  operationId: string;
9490
9550
  text: string;
9491
9551
  from: OpeningSender;
9552
+ answer?: boolean;
9492
9553
  };
9493
9554
  /**
9494
9555
  * How the API opens a draft's thread with no studio connected (`Thread.open`): what it belongs
@@ -9618,12 +9679,16 @@ declare class Thread extends DurableObject<Bindings> {
9618
9679
  */
9619
9680
  view(): Promise<ThreadView>;
9620
9681
  /**
9621
- * Waits for the turn the message sent with `operationId` started or joined to end, for up to
9622
- * `waitMs`: how it ended, with the page it changed last, if any. Still working once the wait
9623
- * gives up, the turn carrying on; or the thread ended with its draft. Watching the thread's own
9624
- * events, as studios do, it sees the turn end as they do.
9682
+ * Waits for the turn the message sent with `operationId` started or joined to end, or without
9683
+ * one, the turn running, for up to `waitMs`: how it ended, with the page it changed last, if
9684
+ * any. Once the wait gives up, the turn carrying on, what the agent is doing and the pages the
9685
+ * turn changed so far. With no message and no turn running, that none is; or the thread ended
9686
+ * with its draft. Watching the thread's own events, as studios do, it sees the turn end as they
9687
+ * do. For a Connected Agent's call, it comes back first with the questions the agent asked it
9688
+ * since its previous call answered, at once when there are some already, and the turn carries
9689
+ * on (ADR 0042).
9625
9690
  */
9626
- turnOf(operationId: string, waitMs: number): Promise<TurnOutcome>;
9691
+ awaitTurnOutcome({ operationId, follower }: AwaitedMessage, waitMs: number): Promise<TurnOutcome>;
9627
9692
  /**
9628
9693
  * Ends the thread with its draft, wiping everything it stored, since Pi can't delete a
9629
9694
  * conversation yet: the run going stops, and studios still open on it see an empty thread
@@ -9789,8 +9854,13 @@ type PublishParams = {
9789
9854
  projectId: number;
9790
9855
  /** The revision the review showed, which the publish ships. */
9791
9856
  revision: string;
9792
- /** The publish token of the review, recording the conflicts it showed. */
9793
- token: string;
9857
+ /**
9858
+ * Whether the draft's code was building as the publish was asked: the publish waits for the
9859
+ * build, then ships the revision it left instead.
9860
+ */
9861
+ afterBuild?: boolean;
9862
+ /** Sent by publishes started before ADR 0043, which no longer abort for conflicts: ignored. */
9863
+ token?: string;
9794
9864
  /** The member who published. */
9795
9865
  publishedBy: string;
9796
9866
  };
@@ -9809,17 +9879,24 @@ declare class PublishWorkflow extends WorkflowEntrypoint<Bindings, PublishParams
9809
9879
  * finds its tree.
9810
9880
  */
9811
9881
  private check;
9882
+ /**
9883
+ * Step 0: waits for the build of the draft's code going, or owed, to end, and pins the
9884
+ * draft's head as it leaves it. A build that takes too long goes back to the review.
9885
+ */
9886
+ private waitForBuild;
9887
+ /**
9888
+ * The draft's head, once its code no longer builds: the revision the build going when the
9889
+ * publish was asked left. A member's push landing meanwhile goes back to the review.
9890
+ */
9891
+ private built;
9812
9892
  /**
9813
9893
  * Step 1, checked again while the draft merges the `main` that moved, woken as its merge ends.
9814
9894
  * A merge that takes too long goes back to the review.
9815
9895
  */
9816
9896
  private waitForHead;
9817
- /**
9818
- * Step 3: why the review no longer holds, if it doesn't: Live's conflicts, a blocker, an open
9819
- * finding or a check to run.
9820
- */
9897
+ /** Step 3: why the review no longer holds, if it doesn't: the draft got a blocker. */
9821
9898
  private recheck;
9822
- /** Why the batch aborted: the agent's newer revision, or Live's conflicts. */
9899
+ /** Why the batch aborted: the agent's newer revision, or something on Camox's side. */
9823
9900
  private whyAborted;
9824
9901
  }
9825
9902
  //#endregion
@@ -9880,6 +9957,67 @@ type LookQuestion = {
9880
9957
  token: string;
9881
9958
  };
9882
9959
  //#endregion
9960
+ //#region ../../apps/api/src/domains/_shared/fields.d.ts
9961
+ type FieldBase = {
9962
+ name: string;
9963
+ /** The title editors see, or the field's name. */
9964
+ title: string;
9965
+ /** The field's stored JSON Schema, for validation and the options this type doesn't name. */
9966
+ schema: Record<string, unknown>;
9967
+ };
9968
+ /** How a query-backed reference list orders its records, and how many it takes. */
9969
+ type ReferenceQuery = {
9970
+ orderBy?: {
9971
+ key: string;
9972
+ direction: "asc" | "desc";
9973
+ };
9974
+ limit: number;
9975
+ };
9976
+ type Field = FieldBase & ({
9977
+ kind: "String" | "Artifact" | "Embed" | "Icon" | "Link" | "Boolean";
9978
+ } | {
9979
+ kind: "Enum";
9980
+ options: string[];
9981
+ } | {
9982
+ kind: "Image" | "File";
9983
+ required: boolean;
9984
+ accept: string[] | undefined;
9985
+ } | {
9986
+ kind: "ImageList" | "FileList";
9987
+ accept: string[] | undefined;
9988
+ } | {
9989
+ kind: "Repeater";
9990
+ /** The content schema of the repeater's items. */
9991
+ itemContentSchema: unknown;
9992
+ /** The settings schema of the repeater's items, if they have settings. */
9993
+ itemSettingsSchema: unknown;
9994
+ } | {
9995
+ kind: "Reference";
9996
+ collectionId: string;
9997
+ required: boolean;
9998
+ /** The content schema of the referenced collection's records. */
9999
+ recordSchema: unknown;
10000
+ } | {
10001
+ kind: "ReferenceList";
10002
+ collectionId: string;
10003
+ /** A query-backed list resolves its records in code and stores nothing. */
10004
+ queryBacked: boolean;
10005
+ /** A query-backed list's query, its limit capped; undefined for a manual list. */
10006
+ query: ReferenceQuery | undefined;
10007
+ maxItems: number | undefined;
10008
+ recordSchema: unknown;
10009
+ } | {
10010
+ kind: "Unknown";
10011
+ });
10012
+ //#endregion
10013
+ //#region ../../apps/api/src/domains/specialists/findings.d.ts
10014
+ /** One subject in one locale a check read. */
10015
+ type CheckedSubject = {
10016
+ entity: "block" | "sharedContent" | "repeatableItem" | "record";
10017
+ id: string;
10018
+ locale: string;
10019
+ };
10020
+ //#endregion
9883
10021
  //#region ../../apps/api/src/lib/ai-job-queue.d.ts
9884
10022
  /** The entities a generation job runs on: a synced block's summary is generated through a placement. */
9885
10023
  type JobEntity = "block" | "repeatableItem" | "page" | "file";
@@ -9921,32 +10059,25 @@ type OverviewJob = {
9921
10059
  draftId: string;
9922
10060
  };
9923
10061
  /**
9924
- * A patroller's check of a draft at publish (ADR 0034), keyed by patroller and draft: a newer
9925
- * request replaces a pending one, so it runs once the draft has been idle.
9926
- */
9927
- type CheckJob = {
9928
- kind: "check";
9929
- patroller: PatrollerId;
9930
- draftId: string;
9931
- };
9932
- /**
9933
- * A run of patrollers' patrols of a project's Live content (ADR 0034), keyed by project: the cron
9934
- * trigger requests one of every patroller patrolling Live for every project every 6 hours.
9935
- * Requesting one while another is pending joins it: one run patrols for both, so its new findings
9936
- * are told of once.
10062
+ * A run of specialists' checks of a project's Live content (ADR 0034), keyed by project: the cron
10063
+ * trigger requests one of every specialist checking Live for every project every 6 hours, and a
10064
+ * publish one of only the content it `changed` (ADR 0043). Requesting one while another is
10065
+ * pending joins it: one run checks for both, so its new findings are told of once.
9937
10066
  */
9938
- type PatrolJob = {
9939
- kind: "patrol";
9940
- patrollers: readonly PatrollerId[];
10067
+ type LiveCheckJob = {
10068
+ kind: "liveCheck";
10069
+ specialists: readonly SpecialistId[];
9941
10070
  projectId: number;
10071
+ /** The only content to check, which a publish just changed: all of Live's when absent. */
10072
+ changed?: readonly CheckedSubject[];
9942
10073
  };
9943
10074
  /** A job the AI job scheduler runs. */
9944
- type AiJob = GenerationJob | TranslationJob | OverviewJob | CheckJob | PatrolJob;
10075
+ type AiJob = GenerationJob | TranslationJob | OverviewJob | LiveCheckJob;
9945
10076
  //#endregion
9946
10077
  //#region ../../apps/api/src/durable-objects/ai-job-scheduler.d.ts
9947
10078
  /**
9948
10079
  * Holds one pending AI job, named by its key (`AiJobQueue`), and runs it when its alarm
9949
- * fires. Scheduling again replaces the job and restarts the delay, but a patrol of Live joins
10080
+ * fires. Scheduling again replaces the job and restarts the delay, but a check of Live joins
9950
10081
  * the pending one.
9951
10082
  */
9952
10083
  declare class AiJobScheduler extends DurableObject<Bindings> {
@@ -10038,6 +10169,11 @@ type Bindings = {
10038
10169
  * only by tests.
10039
10170
  */
10040
10171
  CONNECTED_AGENT_PROJECTS_POLL_MS?: string;
10172
+ /**
10173
+ * The operators' user IDs, separated by commas (ADR 0040). A secret: nothing in the app can
10174
+ * change who is an operator. Unset, nobody is.
10175
+ */
10176
+ OPERATOR_USER_IDS?: string;
10041
10177
  OPEN_ROUTER_API_KEY: string;
10042
10178
  /** Camox's Google Fonts Developer API key, which the daily fonts snapshot is taken with. */
10043
10179
  GOOGLE_FONTS_API_KEY: string;
@@ -10173,59 +10309,6 @@ type PageView<P extends PageRow = PageRow> = P & {
10173
10309
  aiSeo: boolean;
10174
10310
  };
10175
10311
  //#endregion
10176
- //#region ../../apps/api/src/domains/_shared/fields.d.ts
10177
- type FieldBase = {
10178
- name: string;
10179
- /** The title editors see, or the field's name. */
10180
- title: string;
10181
- /** The field's stored JSON Schema, for validation and the options this type doesn't name. */
10182
- schema: Record<string, unknown>;
10183
- };
10184
- /** How a query-backed reference list orders its records, and how many it takes. */
10185
- type ReferenceQuery = {
10186
- orderBy?: {
10187
- key: string;
10188
- direction: "asc" | "desc";
10189
- };
10190
- limit: number;
10191
- };
10192
- type Field = FieldBase & ({
10193
- kind: "String" | "Artifact" | "Embed" | "Icon" | "Link" | "Boolean";
10194
- } | {
10195
- kind: "Enum";
10196
- options: string[];
10197
- } | {
10198
- kind: "Image" | "File";
10199
- required: boolean;
10200
- accept: string[] | undefined;
10201
- } | {
10202
- kind: "ImageList" | "FileList";
10203
- accept: string[] | undefined;
10204
- } | {
10205
- kind: "Repeater";
10206
- /** The content schema of the repeater's items. */
10207
- itemContentSchema: unknown;
10208
- /** The settings schema of the repeater's items, if they have settings. */
10209
- itemSettingsSchema: unknown;
10210
- } | {
10211
- kind: "Reference";
10212
- collectionId: string;
10213
- required: boolean;
10214
- /** The content schema of the referenced collection's records. */
10215
- recordSchema: unknown;
10216
- } | {
10217
- kind: "ReferenceList";
10218
- collectionId: string;
10219
- /** A query-backed list resolves its records in code and stores nothing. */
10220
- queryBacked: boolean;
10221
- /** A query-backed list's query, its limit capped; undefined for a manual list. */
10222
- query: ReferenceQuery | undefined;
10223
- maxItems: number | undefined;
10224
- recordSchema: unknown;
10225
- } | {
10226
- kind: "Unknown";
10227
- });
10228
- //#endregion
10229
10312
  //#region ../../apps/api/src/domains/_shared/conform-content.d.ts
10230
10313
  /** Content conformed to its definition: an object holding the definition's fields only. */
10231
10314
  type Conformed<T extends {
@@ -10319,15 +10402,6 @@ type ProblemPlace = {
10319
10402
  blockId: string | null;
10320
10403
  };
10321
10404
  //#endregion
10322
- //#region ../../apps/api/src/domains/drafts/field-values.d.ts
10323
- /** A field whose value differs between Live's version of an entity and a draft's copy. */
10324
- type FieldDiff = {
10325
- /** The field's title, from its definition. */
10326
- field: string;
10327
- live: string;
10328
- draft: string;
10329
- };
10330
- //#endregion
10331
10405
  //#region ../../apps/api/src/domains/drafts/overview.d.ts
10332
10406
  /** A draft's overview as its review shows it. */
10333
10407
  type Overview =
@@ -10401,40 +10475,9 @@ type InLocale = {
10401
10475
  type Change = Subject & InLocale & {
10402
10476
  change: "created" | "changed" | "deleted";
10403
10477
  };
10404
- type Conflict = Subject & InLocale & {
10405
- /** A conflict is always on an entity a draft holds, never on a definition. */
10406
- entity: EntityKind;
10407
- /** Live's version now, or null when Live deleted the entity. */
10408
- liveVersion: number | null;
10409
- publishedBy: {
10410
- id: string;
10411
- name: string;
10412
- } | null;
10413
- publishedAt: number | null;
10414
- /** Whether a release made Live's version, which no member published (ADR 0006). */
10415
- release: boolean;
10416
- /**
10417
- * What publishing overwrites: the first default-locale fields where Live's version and the
10418
- * draft's copy differ, as short plain text. None when either side deleted the entity, or for
10419
- * a conflict in another locale.
10420
- */
10421
- fields: FieldDiff[];
10422
- /** How many more fields differ than `fields` lists. */
10423
- moreFields: number;
10424
- /**
10425
- * Whether the draft can drop its copy to use Live's version instead (`revertToLive`): not
10426
- * for a page or a locale, whose copies spread to other content.
10427
- */
10428
- revertible: boolean;
10429
- };
10430
- /** Why publishing drops a change. */
10431
- declare const LOSS_REASONS: readonly ["parentGone", "writtenAfterDeletion"];
10432
- type LostChange = Subject & InLocale & {
10433
- reason: (typeof LOSS_REASONS)[number];
10434
- };
10435
- /** What a blocker or warning is about. */
10436
- declare const PROBLEM_CODES: readonly ["codeDoesNotBuild", "codeDoesNotTypeCheck", "codeDoesNotMerge", "emptyRequiredFile", "missingFile", "missingFileBytes", "unacceptedFileType", "duplicatePath", "duplicateRecordPageValue", "emptyRequiredReference", "danglingReference", "wrongKindValue", "missingMetaTitle", "metaTitlePending", "localePrefixTaken", "duplicateLocale", "removedInUse"];
10437
- /** A blocker, or the same problem already on Live as a warning, naming what to fix. */
10478
+ /** What a blocker is about. */
10479
+ declare const PROBLEM_CODES: readonly ["codeDoesNotBuild", "codeDoesNotMerge", "emptyRequiredFile", "missingFile", "missingFileBytes", "unacceptedFileType", "duplicatePath", "duplicateRecordPageValue", "emptyRequiredReference", "danglingReference", "wrongKindValue", "localePrefixTaken", "duplicateLocale"];
10480
+ /** A blocker, naming what to fix. */
10438
10481
  type Problem = Subject & InLocale & ProblemPlace & {
10439
10482
  code: (typeof PROBLEM_CODES)[number];
10440
10483
  field: string;
@@ -10442,41 +10485,18 @@ type Problem = Subject & InLocale & ProblemPlace & {
10442
10485
  };
10443
10486
  type PublishPreview = {
10444
10487
  blockers: Problem[];
10445
- conflicts: Conflict[];
10446
- lost: LostChange[];
10447
- warnings: Problem[];
10448
10488
  changes: Change[];
10449
- /**
10450
- * The tags of the locales the draft still has pending translations into, sorted. Publishing
10451
- * waits for them (ADR 0033).
10452
- */
10453
- translating: string[];
10454
- /**
10455
- * The draft's open findings, the oldest first, each with the patroller that raised it.
10456
- * Publishing waits for each to be fixed or dismissed (ADR 0033).
10457
- */
10458
- findings: (FindingView & {
10459
- patroller: {
10460
- id: PatrollerId;
10461
- role: string;
10462
- };
10463
- })[];
10464
- /**
10465
- * The patrollers whose check at publish hasn't read the draft's latest changes yet, in the
10466
- * registry's order. Publishing waits for them (ADR 0033).
10467
- */
10468
- checking: {
10469
- id: PatrollerId;
10470
- role: string;
10471
- }[];
10472
10489
  /** The tag of the default locale, which the others are translated from (null: none yet). */
10473
10490
  defaultLocale: string | null;
10474
- /** Sent back to publish, which aborts when the conflicts no longer match it. */
10475
- token: string;
10476
10491
  /** The draft's overview: AI's headline and bullets about its changes. */
10477
10492
  overview: Overview;
10478
10493
  /** Where the draft's code stands, for a draft whose code the agent changed. */
10479
10494
  code: PreviewCode | null;
10495
+ /**
10496
+ * The tags of the locales the draft adds that it's still being translated into: publishing
10497
+ * puts them on Live unserved, and they go live once translated (ADR 0043).
10498
+ */
10499
+ heldLocales: string[];
10480
10500
  };
10481
10501
  /**
10482
10502
  * What publishing did: nothing, for an empty draft, which publishing leaves as is; or how the
@@ -10554,6 +10574,7 @@ declare const router: {
10554
10574
  ipAddress?: string | null | undefined;
10555
10575
  userAgent?: string | null | undefined;
10556
10576
  activeOrganizationId?: string | null | undefined;
10577
+ local?: boolean | null | undefined;
10557
10578
  studio?: boolean | null | undefined;
10558
10579
  };
10559
10580
  }>, import("zod").ZodObject<{
@@ -10653,6 +10674,7 @@ declare const router: {
10653
10674
  ipAddress?: string | null | undefined;
10654
10675
  userAgent?: string | null | undefined;
10655
10676
  activeOrganizationId?: string | null | undefined;
10677
+ local?: boolean | null | undefined;
10656
10678
  studio?: boolean | null | undefined;
10657
10679
  };
10658
10680
  }>, import("zod").ZodObject<{
@@ -10750,6 +10772,7 @@ declare const router: {
10750
10772
  ipAddress?: string | null | undefined;
10751
10773
  userAgent?: string | null | undefined;
10752
10774
  activeOrganizationId?: string | null | undefined;
10775
+ local?: boolean | null | undefined;
10753
10776
  studio?: boolean | null | undefined;
10754
10777
  };
10755
10778
  }>, import("zod").ZodObject<{
@@ -10851,6 +10874,7 @@ declare const router: {
10851
10874
  ipAddress?: string | null | undefined;
10852
10875
  userAgent?: string | null | undefined;
10853
10876
  activeOrganizationId?: string | null | undefined;
10877
+ local?: boolean | null | undefined;
10854
10878
  studio?: boolean | null | undefined;
10855
10879
  };
10856
10880
  }>, import("zod").ZodObject<{
@@ -10918,11 +10942,13 @@ declare const router: {
10918
10942
  updatedAt: number;
10919
10943
  analytics: AnalyticsProviders;
10920
10944
  socialProfiles: string[];
10945
+ hiddenFromSearchEngines: boolean;
10921
10946
  }, {
10922
10947
  id: number;
10923
10948
  updatedAt: number;
10924
10949
  analytics: AnalyticsProviders;
10925
10950
  socialProfiles: string[];
10951
+ hiddenFromSearchEngines: boolean;
10926
10952
  }>, Record<never, never>, Record<never, never>>;
10927
10953
  get: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
10928
10954
  draft: DraftRequest | null;
@@ -10970,6 +10996,7 @@ declare const router: {
10970
10996
  ipAddress?: string | null | undefined;
10971
10997
  userAgent?: string | null | undefined;
10972
10998
  activeOrganizationId?: string | null | undefined;
10999
+ local?: boolean | null | undefined;
10973
11000
  studio?: boolean | null | undefined;
10974
11001
  };
10975
11002
  }>, import("zod").ZodObject<{
@@ -11071,6 +11098,7 @@ declare const router: {
11071
11098
  ipAddress?: string | null | undefined;
11072
11099
  userAgent?: string | null | undefined;
11073
11100
  activeOrganizationId?: string | null | undefined;
11101
+ local?: boolean | null | undefined;
11074
11102
  studio?: boolean | null | undefined;
11075
11103
  };
11076
11104
  }>, import("zod").ZodObject<{
@@ -11134,6 +11162,7 @@ declare const router: {
11134
11162
  ipAddress?: string | null | undefined;
11135
11163
  userAgent?: string | null | undefined;
11136
11164
  activeOrganizationId?: string | null | undefined;
11165
+ local?: boolean | null | undefined;
11137
11166
  studio?: boolean | null | undefined;
11138
11167
  };
11139
11168
  }>, import("zod").ZodObject<{
@@ -11233,6 +11262,7 @@ declare const router: {
11233
11262
  ipAddress?: string | null | undefined;
11234
11263
  userAgent?: string | null | undefined;
11235
11264
  activeOrganizationId?: string | null | undefined;
11265
+ local?: boolean | null | undefined;
11236
11266
  studio?: boolean | null | undefined;
11237
11267
  };
11238
11268
  }>, import("zod").ZodObject<{
@@ -11331,6 +11361,7 @@ declare const router: {
11331
11361
  ipAddress?: string | null | undefined;
11332
11362
  userAgent?: string | null | undefined;
11333
11363
  activeOrganizationId?: string | null | undefined;
11364
+ local?: boolean | null | undefined;
11334
11365
  studio?: boolean | null | undefined;
11335
11366
  };
11336
11367
  }>, import("zod").ZodObject<{
@@ -11398,6 +11429,7 @@ declare const router: {
11398
11429
  ipAddress?: string | null | undefined;
11399
11430
  userAgent?: string | null | undefined;
11400
11431
  activeOrganizationId?: string | null | undefined;
11432
+ local?: boolean | null | undefined;
11401
11433
  studio?: boolean | null | undefined;
11402
11434
  };
11403
11435
  }>, import("zod").ZodObject<{
@@ -11456,6 +11488,7 @@ declare const router: {
11456
11488
  ipAddress?: string | null | undefined;
11457
11489
  userAgent?: string | null | undefined;
11458
11490
  activeOrganizationId?: string | null | undefined;
11491
+ local?: boolean | null | undefined;
11459
11492
  studio?: boolean | null | undefined;
11460
11493
  };
11461
11494
  }>, import("zod").ZodObject<{
@@ -11514,6 +11547,7 @@ declare const router: {
11514
11547
  ipAddress?: string | null | undefined;
11515
11548
  userAgent?: string | null | undefined;
11516
11549
  activeOrganizationId?: string | null | undefined;
11550
+ local?: boolean | null | undefined;
11517
11551
  studio?: boolean | null | undefined;
11518
11552
  };
11519
11553
  }>, import("zod").ZodObject<{
@@ -11575,6 +11609,7 @@ declare const router: {
11575
11609
  ipAddress?: string | null | undefined;
11576
11610
  userAgent?: string | null | undefined;
11577
11611
  activeOrganizationId?: string | null | undefined;
11612
+ local?: boolean | null | undefined;
11578
11613
  studio?: boolean | null | undefined;
11579
11614
  };
11580
11615
  }>, import("zod").ZodObject<{
@@ -11671,6 +11706,7 @@ declare const router: {
11671
11706
  updatedAt: number;
11672
11707
  analytics: AnalyticsProviders;
11673
11708
  socialProfiles: string[];
11709
+ hiddenFromSearchEngines: boolean;
11674
11710
  };
11675
11711
  layout: {
11676
11712
  layoutId: string;
@@ -11778,6 +11814,7 @@ declare const router: {
11778
11814
  updatedAt: number;
11779
11815
  analytics: AnalyticsProviders;
11780
11816
  socialProfiles: string[];
11817
+ hiddenFromSearchEngines: boolean;
11781
11818
  };
11782
11819
  layout: {
11783
11820
  layoutId: string;
@@ -11894,6 +11931,7 @@ declare const router: {
11894
11931
  updatedAt: number;
11895
11932
  analytics: AnalyticsProviders;
11896
11933
  socialProfiles: string[];
11934
+ hiddenFromSearchEngines: boolean;
11897
11935
  };
11898
11936
  layout: {
11899
11937
  layoutId: string;
@@ -11937,6 +11975,7 @@ declare const router: {
11937
11975
  updatedAt: number;
11938
11976
  analytics: AnalyticsProviders;
11939
11977
  socialProfiles: string[];
11978
+ hiddenFromSearchEngines: boolean;
11940
11979
  };
11941
11980
  layout: {
11942
11981
  layoutId: string;
@@ -12290,6 +12329,7 @@ declare const router: {
12290
12329
  ipAddress?: string | null | undefined;
12291
12330
  userAgent?: string | null | undefined;
12292
12331
  activeOrganizationId?: string | null | undefined;
12332
+ local?: boolean | null | undefined;
12293
12333
  studio?: boolean | null | undefined;
12294
12334
  };
12295
12335
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -12328,6 +12368,7 @@ declare const router: {
12328
12368
  ipAddress?: string | null | undefined;
12329
12369
  userAgent?: string | null | undefined;
12330
12370
  activeOrganizationId?: string | null | undefined;
12371
+ local?: boolean | null | undefined;
12331
12372
  studio?: boolean | null | undefined;
12332
12373
  };
12333
12374
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -12442,6 +12483,7 @@ declare const router: {
12442
12483
  ipAddress?: string | null | undefined;
12443
12484
  userAgent?: string | null | undefined;
12444
12485
  activeOrganizationId?: string | null | undefined;
12486
+ local?: boolean | null | undefined;
12445
12487
  studio?: boolean | null | undefined;
12446
12488
  };
12447
12489
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -12480,6 +12522,7 @@ declare const router: {
12480
12522
  ipAddress?: string | null | undefined;
12481
12523
  userAgent?: string | null | undefined;
12482
12524
  activeOrganizationId?: string | null | undefined;
12525
+ local?: boolean | null | undefined;
12483
12526
  studio?: boolean | null | undefined;
12484
12527
  };
12485
12528
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -12586,6 +12629,7 @@ declare const router: {
12586
12629
  ipAddress?: string | null | undefined;
12587
12630
  userAgent?: string | null | undefined;
12588
12631
  activeOrganizationId?: string | null | undefined;
12632
+ local?: boolean | null | undefined;
12589
12633
  studio?: boolean | null | undefined;
12590
12634
  };
12591
12635
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -12624,6 +12668,7 @@ declare const router: {
12624
12668
  ipAddress?: string | null | undefined;
12625
12669
  userAgent?: string | null | undefined;
12626
12670
  activeOrganizationId?: string | null | undefined;
12671
+ local?: boolean | null | undefined;
12627
12672
  studio?: boolean | null | undefined;
12628
12673
  };
12629
12674
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -12727,6 +12772,7 @@ declare const router: {
12727
12772
  ipAddress?: string | null | undefined;
12728
12773
  userAgent?: string | null | undefined;
12729
12774
  activeOrganizationId?: string | null | undefined;
12775
+ local?: boolean | null | undefined;
12730
12776
  studio?: boolean | null | undefined;
12731
12777
  };
12732
12778
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -12765,6 +12811,7 @@ declare const router: {
12765
12811
  ipAddress?: string | null | undefined;
12766
12812
  userAgent?: string | null | undefined;
12767
12813
  activeOrganizationId?: string | null | undefined;
12814
+ local?: boolean | null | undefined;
12768
12815
  studio?: boolean | null | undefined;
12769
12816
  };
12770
12817
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -12871,6 +12918,7 @@ declare const router: {
12871
12918
  ipAddress?: string | null | undefined;
12872
12919
  userAgent?: string | null | undefined;
12873
12920
  activeOrganizationId?: string | null | undefined;
12921
+ local?: boolean | null | undefined;
12874
12922
  studio?: boolean | null | undefined;
12875
12923
  };
12876
12924
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -12909,6 +12957,7 @@ declare const router: {
12909
12957
  ipAddress?: string | null | undefined;
12910
12958
  userAgent?: string | null | undefined;
12911
12959
  activeOrganizationId?: string | null | undefined;
12960
+ local?: boolean | null | undefined;
12912
12961
  studio?: boolean | null | undefined;
12913
12962
  };
12914
12963
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -13011,6 +13060,7 @@ declare const router: {
13011
13060
  ipAddress?: string | null | undefined;
13012
13061
  userAgent?: string | null | undefined;
13013
13062
  activeOrganizationId?: string | null | undefined;
13063
+ local?: boolean | null | undefined;
13014
13064
  studio?: boolean | null | undefined;
13015
13065
  };
13016
13066
  }>, import("zod").ZodObject<{
@@ -13592,6 +13642,7 @@ declare const router: {
13592
13642
  ipAddress?: string | null | undefined;
13593
13643
  userAgent?: string | null | undefined;
13594
13644
  activeOrganizationId?: string | null | undefined;
13645
+ local?: boolean | null | undefined;
13595
13646
  studio?: boolean | null | undefined;
13596
13647
  };
13597
13648
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -13630,6 +13681,7 @@ declare const router: {
13630
13681
  ipAddress?: string | null | undefined;
13631
13682
  userAgent?: string | null | undefined;
13632
13683
  activeOrganizationId?: string | null | undefined;
13684
+ local?: boolean | null | undefined;
13633
13685
  studio?: boolean | null | undefined;
13634
13686
  };
13635
13687
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -13755,6 +13807,7 @@ declare const router: {
13755
13807
  ipAddress?: string | null | undefined;
13756
13808
  userAgent?: string | null | undefined;
13757
13809
  activeOrganizationId?: string | null | undefined;
13810
+ local?: boolean | null | undefined;
13758
13811
  studio?: boolean | null | undefined;
13759
13812
  };
13760
13813
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -13793,6 +13846,7 @@ declare const router: {
13793
13846
  ipAddress?: string | null | undefined;
13794
13847
  userAgent?: string | null | undefined;
13795
13848
  activeOrganizationId?: string | null | undefined;
13849
+ local?: boolean | null | undefined;
13796
13850
  studio?: boolean | null | undefined;
13797
13851
  };
13798
13852
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -13847,6 +13901,7 @@ declare const router: {
13847
13901
  ipAddress?: string | null | undefined;
13848
13902
  userAgent?: string | null | undefined;
13849
13903
  activeOrganizationId?: string | null | undefined;
13904
+ local?: boolean | null | undefined;
13850
13905
  studio?: boolean | null | undefined;
13851
13906
  };
13852
13907
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -13885,6 +13940,7 @@ declare const router: {
13885
13940
  ipAddress?: string | null | undefined;
13886
13941
  userAgent?: string | null | undefined;
13887
13942
  activeOrganizationId?: string | null | undefined;
13943
+ local?: boolean | null | undefined;
13888
13944
  studio?: boolean | null | undefined;
13889
13945
  };
13890
13946
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -13939,6 +13995,7 @@ declare const router: {
13939
13995
  ipAddress?: string | null | undefined;
13940
13996
  userAgent?: string | null | undefined;
13941
13997
  activeOrganizationId?: string | null | undefined;
13998
+ local?: boolean | null | undefined;
13942
13999
  studio?: boolean | null | undefined;
13943
14000
  };
13944
14001
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -13977,6 +14034,7 @@ declare const router: {
13977
14034
  ipAddress?: string | null | undefined;
13978
14035
  userAgent?: string | null | undefined;
13979
14036
  activeOrganizationId?: string | null | undefined;
14037
+ local?: boolean | null | undefined;
13980
14038
  studio?: boolean | null | undefined;
13981
14039
  };
13982
14040
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14032,6 +14090,7 @@ declare const router: {
14032
14090
  ipAddress?: string | null | undefined;
14033
14091
  userAgent?: string | null | undefined;
14034
14092
  activeOrganizationId?: string | null | undefined;
14093
+ local?: boolean | null | undefined;
14035
14094
  studio?: boolean | null | undefined;
14036
14095
  };
14037
14096
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -14070,6 +14129,7 @@ declare const router: {
14070
14129
  ipAddress?: string | null | undefined;
14071
14130
  userAgent?: string | null | undefined;
14072
14131
  activeOrganizationId?: string | null | undefined;
14132
+ local?: boolean | null | undefined;
14073
14133
  studio?: boolean | null | undefined;
14074
14134
  };
14075
14135
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14123,6 +14183,7 @@ declare const router: {
14123
14183
  ipAddress?: string | null | undefined;
14124
14184
  userAgent?: string | null | undefined;
14125
14185
  activeOrganizationId?: string | null | undefined;
14186
+ local?: boolean | null | undefined;
14126
14187
  studio?: boolean | null | undefined;
14127
14188
  };
14128
14189
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -14161,6 +14222,7 @@ declare const router: {
14161
14222
  ipAddress?: string | null | undefined;
14162
14223
  userAgent?: string | null | undefined;
14163
14224
  activeOrganizationId?: string | null | undefined;
14225
+ local?: boolean | null | undefined;
14164
14226
  studio?: boolean | null | undefined;
14165
14227
  };
14166
14228
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14212,6 +14274,7 @@ declare const router: {
14212
14274
  ipAddress?: string | null | undefined;
14213
14275
  userAgent?: string | null | undefined;
14214
14276
  activeOrganizationId?: string | null | undefined;
14277
+ local?: boolean | null | undefined;
14215
14278
  studio?: boolean | null | undefined;
14216
14279
  };
14217
14280
  }>, import("zod").ZodObject<{
@@ -14265,6 +14328,7 @@ declare const router: {
14265
14328
  ipAddress?: string | null | undefined;
14266
14329
  userAgent?: string | null | undefined;
14267
14330
  activeOrganizationId?: string | null | undefined;
14331
+ local?: boolean | null | undefined;
14268
14332
  studio?: boolean | null | undefined;
14269
14333
  };
14270
14334
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -14303,6 +14367,7 @@ declare const router: {
14303
14367
  ipAddress?: string | null | undefined;
14304
14368
  userAgent?: string | null | undefined;
14305
14369
  activeOrganizationId?: string | null | undefined;
14370
+ local?: boolean | null | undefined;
14306
14371
  studio?: boolean | null | undefined;
14307
14372
  };
14308
14373
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14325,6 +14390,7 @@ declare const router: {
14325
14390
  updatedAt: number;
14326
14391
  analytics: AnalyticsProviders;
14327
14392
  socialProfiles: string[];
14393
+ hiddenFromSearchEngines: boolean;
14328
14394
  };
14329
14395
  layout: {
14330
14396
  layoutId: string;
@@ -14404,6 +14470,7 @@ declare const router: {
14404
14470
  updatedAt: number;
14405
14471
  analytics: AnalyticsProviders;
14406
14472
  socialProfiles: string[];
14473
+ hiddenFromSearchEngines: boolean;
14407
14474
  };
14408
14475
  layout: {
14409
14476
  layoutId: string;
@@ -14496,6 +14563,7 @@ declare const router: {
14496
14563
  updatedAt: number;
14497
14564
  analytics: AnalyticsProviders;
14498
14565
  socialProfiles: string[];
14566
+ hiddenFromSearchEngines: boolean;
14499
14567
  };
14500
14568
  layout: {
14501
14569
  layoutId: string;
@@ -14575,6 +14643,7 @@ declare const router: {
14575
14643
  updatedAt: number;
14576
14644
  analytics: AnalyticsProviders;
14577
14645
  socialProfiles: string[];
14646
+ hiddenFromSearchEngines: boolean;
14578
14647
  };
14579
14648
  layout: {
14580
14649
  layoutId: string;
@@ -14742,6 +14811,7 @@ declare const router: {
14742
14811
  ipAddress?: string | null | undefined;
14743
14812
  userAgent?: string | null | undefined;
14744
14813
  activeOrganizationId?: string | null | undefined;
14814
+ local?: boolean | null | undefined;
14745
14815
  studio?: boolean | null | undefined;
14746
14816
  };
14747
14817
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -14780,6 +14850,7 @@ declare const router: {
14780
14850
  ipAddress?: string | null | undefined;
14781
14851
  userAgent?: string | null | undefined;
14782
14852
  activeOrganizationId?: string | null | undefined;
14853
+ local?: boolean | null | undefined;
14783
14854
  studio?: boolean | null | undefined;
14784
14855
  };
14785
14856
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14834,6 +14905,7 @@ declare const router: {
14834
14905
  ipAddress?: string | null | undefined;
14835
14906
  userAgent?: string | null | undefined;
14836
14907
  activeOrganizationId?: string | null | undefined;
14908
+ local?: boolean | null | undefined;
14837
14909
  studio?: boolean | null | undefined;
14838
14910
  };
14839
14911
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -14872,6 +14944,7 @@ declare const router: {
14872
14944
  ipAddress?: string | null | undefined;
14873
14945
  userAgent?: string | null | undefined;
14874
14946
  activeOrganizationId?: string | null | undefined;
14947
+ local?: boolean | null | undefined;
14875
14948
  studio?: boolean | null | undefined;
14876
14949
  };
14877
14950
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14924,6 +14997,7 @@ declare const router: {
14924
14997
  ipAddress?: string | null | undefined;
14925
14998
  userAgent?: string | null | undefined;
14926
14999
  activeOrganizationId?: string | null | undefined;
15000
+ local?: boolean | null | undefined;
14927
15001
  studio?: boolean | null | undefined;
14928
15002
  };
14929
15003
  }>, import("zod").ZodObject<{
@@ -14976,6 +15050,7 @@ declare const router: {
14976
15050
  ipAddress?: string | null | undefined;
14977
15051
  userAgent?: string | null | undefined;
14978
15052
  activeOrganizationId?: string | null | undefined;
15053
+ local?: boolean | null | undefined;
14979
15054
  studio?: boolean | null | undefined;
14980
15055
  };
14981
15056
  }>, import("zod").ZodObject<{
@@ -15035,6 +15110,7 @@ declare const router: {
15035
15110
  ipAddress?: string | null | undefined;
15036
15111
  userAgent?: string | null | undefined;
15037
15112
  activeOrganizationId?: string | null | undefined;
15113
+ local?: boolean | null | undefined;
15038
15114
  studio?: boolean | null | undefined;
15039
15115
  };
15040
15116
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15073,6 +15149,7 @@ declare const router: {
15073
15149
  ipAddress?: string | null | undefined;
15074
15150
  userAgent?: string | null | undefined;
15075
15151
  activeOrganizationId?: string | null | undefined;
15152
+ local?: boolean | null | undefined;
15076
15153
  studio?: boolean | null | undefined;
15077
15154
  };
15078
15155
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15263,6 +15340,7 @@ declare const router: {
15263
15340
  ipAddress?: string | null | undefined;
15264
15341
  userAgent?: string | null | undefined;
15265
15342
  activeOrganizationId?: string | null | undefined;
15343
+ local?: boolean | null | undefined;
15266
15344
  studio?: boolean | null | undefined;
15267
15345
  };
15268
15346
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15301,6 +15379,7 @@ declare const router: {
15301
15379
  ipAddress?: string | null | undefined;
15302
15380
  userAgent?: string | null | undefined;
15303
15381
  activeOrganizationId?: string | null | undefined;
15382
+ local?: boolean | null | undefined;
15304
15383
  studio?: boolean | null | undefined;
15305
15384
  };
15306
15385
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15403,6 +15482,7 @@ declare const router: {
15403
15482
  ipAddress?: string | null | undefined;
15404
15483
  userAgent?: string | null | undefined;
15405
15484
  activeOrganizationId?: string | null | undefined;
15485
+ local?: boolean | null | undefined;
15406
15486
  studio?: boolean | null | undefined;
15407
15487
  };
15408
15488
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15441,6 +15521,7 @@ declare const router: {
15441
15521
  ipAddress?: string | null | undefined;
15442
15522
  userAgent?: string | null | undefined;
15443
15523
  activeOrganizationId?: string | null | undefined;
15524
+ local?: boolean | null | undefined;
15444
15525
  studio?: boolean | null | undefined;
15445
15526
  };
15446
15527
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15543,6 +15624,7 @@ declare const router: {
15543
15624
  ipAddress?: string | null | undefined;
15544
15625
  userAgent?: string | null | undefined;
15545
15626
  activeOrganizationId?: string | null | undefined;
15627
+ local?: boolean | null | undefined;
15546
15628
  studio?: boolean | null | undefined;
15547
15629
  };
15548
15630
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15581,6 +15663,7 @@ declare const router: {
15581
15663
  ipAddress?: string | null | undefined;
15582
15664
  userAgent?: string | null | undefined;
15583
15665
  activeOrganizationId?: string | null | undefined;
15666
+ local?: boolean | null | undefined;
15584
15667
  studio?: boolean | null | undefined;
15585
15668
  };
15586
15669
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15682,6 +15765,7 @@ declare const router: {
15682
15765
  ipAddress?: string | null | undefined;
15683
15766
  userAgent?: string | null | undefined;
15684
15767
  activeOrganizationId?: string | null | undefined;
15768
+ local?: boolean | null | undefined;
15685
15769
  studio?: boolean | null | undefined;
15686
15770
  };
15687
15771
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15720,6 +15804,7 @@ declare const router: {
15720
15804
  ipAddress?: string | null | undefined;
15721
15805
  userAgent?: string | null | undefined;
15722
15806
  activeOrganizationId?: string | null | undefined;
15807
+ local?: boolean | null | undefined;
15723
15808
  studio?: boolean | null | undefined;
15724
15809
  };
15725
15810
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15773,6 +15858,7 @@ declare const router: {
15773
15858
  ipAddress?: string | null | undefined;
15774
15859
  userAgent?: string | null | undefined;
15775
15860
  activeOrganizationId?: string | null | undefined;
15861
+ local?: boolean | null | undefined;
15776
15862
  studio?: boolean | null | undefined;
15777
15863
  };
15778
15864
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15811,6 +15897,7 @@ declare const router: {
15811
15897
  ipAddress?: string | null | undefined;
15812
15898
  userAgent?: string | null | undefined;
15813
15899
  activeOrganizationId?: string | null | undefined;
15900
+ local?: boolean | null | undefined;
15814
15901
  studio?: boolean | null | undefined;
15815
15902
  };
15816
15903
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15911,6 +15998,7 @@ declare const router: {
15911
15998
  ipAddress?: string | null | undefined;
15912
15999
  userAgent?: string | null | undefined;
15913
16000
  activeOrganizationId?: string | null | undefined;
16001
+ local?: boolean | null | undefined;
15914
16002
  studio?: boolean | null | undefined;
15915
16003
  };
15916
16004
  }>, import("zod").ZodObject<{
@@ -16082,6 +16170,7 @@ declare const router: {
16082
16170
  ipAddress?: string | null | undefined;
16083
16171
  userAgent?: string | null | undefined;
16084
16172
  activeOrganizationId?: string | null | undefined;
16173
+ local?: boolean | null | undefined;
16085
16174
  studio?: boolean | null | undefined;
16086
16175
  };
16087
16176
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16120,6 +16209,7 @@ declare const router: {
16120
16209
  ipAddress?: string | null | undefined;
16121
16210
  userAgent?: string | null | undefined;
16122
16211
  activeOrganizationId?: string | null | undefined;
16212
+ local?: boolean | null | undefined;
16123
16213
  studio?: boolean | null | undefined;
16124
16214
  };
16125
16215
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -16233,6 +16323,7 @@ declare const router: {
16233
16323
  ipAddress?: string | null | undefined;
16234
16324
  userAgent?: string | null | undefined;
16235
16325
  activeOrganizationId?: string | null | undefined;
16326
+ local?: boolean | null | undefined;
16236
16327
  studio?: boolean | null | undefined;
16237
16328
  };
16238
16329
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16271,6 +16362,7 @@ declare const router: {
16271
16362
  ipAddress?: string | null | undefined;
16272
16363
  userAgent?: string | null | undefined;
16273
16364
  activeOrganizationId?: string | null | undefined;
16365
+ local?: boolean | null | undefined;
16274
16366
  studio?: boolean | null | undefined;
16275
16367
  };
16276
16368
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -16371,6 +16463,7 @@ declare const router: {
16371
16463
  ipAddress?: string | null | undefined;
16372
16464
  userAgent?: string | null | undefined;
16373
16465
  activeOrganizationId?: string | null | undefined;
16466
+ local?: boolean | null | undefined;
16374
16467
  studio?: boolean | null | undefined;
16375
16468
  };
16376
16469
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16409,6 +16502,7 @@ declare const router: {
16409
16502
  ipAddress?: string | null | undefined;
16410
16503
  userAgent?: string | null | undefined;
16411
16504
  activeOrganizationId?: string | null | undefined;
16505
+ local?: boolean | null | undefined;
16412
16506
  studio?: boolean | null | undefined;
16413
16507
  };
16414
16508
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -16509,6 +16603,7 @@ declare const router: {
16509
16603
  ipAddress?: string | null | undefined;
16510
16604
  userAgent?: string | null | undefined;
16511
16605
  activeOrganizationId?: string | null | undefined;
16606
+ local?: boolean | null | undefined;
16512
16607
  studio?: boolean | null | undefined;
16513
16608
  };
16514
16609
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16547,6 +16642,7 @@ declare const router: {
16547
16642
  ipAddress?: string | null | undefined;
16548
16643
  userAgent?: string | null | undefined;
16549
16644
  activeOrganizationId?: string | null | undefined;
16645
+ local?: boolean | null | undefined;
16550
16646
  studio?: boolean | null | undefined;
16551
16647
  };
16552
16648
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -16648,6 +16744,7 @@ declare const router: {
16648
16744
  ipAddress?: string | null | undefined;
16649
16745
  userAgent?: string | null | undefined;
16650
16746
  activeOrganizationId?: string | null | undefined;
16747
+ local?: boolean | null | undefined;
16651
16748
  studio?: boolean | null | undefined;
16652
16749
  };
16653
16750
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16686,6 +16783,7 @@ declare const router: {
16686
16783
  ipAddress?: string | null | undefined;
16687
16784
  userAgent?: string | null | undefined;
16688
16785
  activeOrganizationId?: string | null | undefined;
16786
+ local?: boolean | null | undefined;
16689
16787
  studio?: boolean | null | undefined;
16690
16788
  };
16691
16789
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -16783,6 +16881,7 @@ declare const router: {
16783
16881
  ipAddress?: string | null | undefined;
16784
16882
  userAgent?: string | null | undefined;
16785
16883
  activeOrganizationId?: string | null | undefined;
16884
+ local?: boolean | null | undefined;
16786
16885
  studio?: boolean | null | undefined;
16787
16886
  };
16788
16887
  }>, import("zod").ZodObject<{
@@ -16882,6 +16981,7 @@ declare const router: {
16882
16981
  ipAddress?: string | null | undefined;
16883
16982
  userAgent?: string | null | undefined;
16884
16983
  activeOrganizationId?: string | null | undefined;
16984
+ local?: boolean | null | undefined;
16885
16985
  studio?: boolean | null | undefined;
16886
16986
  };
16887
16987
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16920,6 +17020,7 @@ declare const router: {
16920
17020
  ipAddress?: string | null | undefined;
16921
17021
  userAgent?: string | null | undefined;
16922
17022
  activeOrganizationId?: string | null | undefined;
17023
+ local?: boolean | null | undefined;
16923
17024
  studio?: boolean | null | undefined;
16924
17025
  };
16925
17026
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -17057,6 +17158,7 @@ declare const router: {
17057
17158
  ipAddress?: string | null | undefined;
17058
17159
  userAgent?: string | null | undefined;
17059
17160
  activeOrganizationId?: string | null | undefined;
17161
+ local?: boolean | null | undefined;
17060
17162
  studio?: boolean | null | undefined;
17061
17163
  };
17062
17164
  }>, import("zod").ZodObject<{
@@ -17120,6 +17222,7 @@ declare const router: {
17120
17222
  ipAddress?: string | null | undefined;
17121
17223
  userAgent?: string | null | undefined;
17122
17224
  activeOrganizationId?: string | null | undefined;
17225
+ local?: boolean | null | undefined;
17123
17226
  studio?: boolean | null | undefined;
17124
17227
  };
17125
17228
  }>, import("zod").ZodObject<{
@@ -17186,6 +17289,7 @@ declare const router: {
17186
17289
  ipAddress?: string | null | undefined;
17187
17290
  userAgent?: string | null | undefined;
17188
17291
  activeOrganizationId?: string | null | undefined;
17292
+ local?: boolean | null | undefined;
17189
17293
  studio?: boolean | null | undefined;
17190
17294
  };
17191
17295
  }>, import("zod").ZodObject<{
@@ -17248,6 +17352,7 @@ declare const router: {
17248
17352
  ipAddress?: string | null | undefined;
17249
17353
  userAgent?: string | null | undefined;
17250
17354
  activeOrganizationId?: string | null | undefined;
17355
+ local?: boolean | null | undefined;
17251
17356
  studio?: boolean | null | undefined;
17252
17357
  };
17253
17358
  }>, import("zod").ZodObject<{
@@ -17317,6 +17422,7 @@ declare const router: {
17317
17422
  ipAddress?: string | null | undefined;
17318
17423
  userAgent?: string | null | undefined;
17319
17424
  activeOrganizationId?: string | null | undefined;
17425
+ local?: boolean | null | undefined;
17320
17426
  studio?: boolean | null | undefined;
17321
17427
  };
17322
17428
  }>, import("zod").ZodObject<{
@@ -17444,6 +17550,7 @@ declare const router: {
17444
17550
  ipAddress?: string | null | undefined;
17445
17551
  userAgent?: string | null | undefined;
17446
17552
  activeOrganizationId?: string | null | undefined;
17553
+ local?: boolean | null | undefined;
17447
17554
  studio?: boolean | null | undefined;
17448
17555
  };
17449
17556
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -17482,6 +17589,7 @@ declare const router: {
17482
17589
  ipAddress?: string | null | undefined;
17483
17590
  userAgent?: string | null | undefined;
17484
17591
  activeOrganizationId?: string | null | undefined;
17592
+ local?: boolean | null | undefined;
17485
17593
  studio?: boolean | null | undefined;
17486
17594
  };
17487
17595
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -17554,6 +17662,7 @@ declare const router: {
17554
17662
  ipAddress?: string | null | undefined;
17555
17663
  userAgent?: string | null | undefined;
17556
17664
  activeOrganizationId?: string | null | undefined;
17665
+ local?: boolean | null | undefined;
17557
17666
  studio?: boolean | null | undefined;
17558
17667
  };
17559
17668
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -17592,6 +17701,7 @@ declare const router: {
17592
17701
  ipAddress?: string | null | undefined;
17593
17702
  userAgent?: string | null | undefined;
17594
17703
  activeOrganizationId?: string | null | undefined;
17704
+ local?: boolean | null | undefined;
17595
17705
  studio?: boolean | null | undefined;
17596
17706
  };
17597
17707
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -17664,6 +17774,7 @@ declare const router: {
17664
17774
  ipAddress?: string | null | undefined;
17665
17775
  userAgent?: string | null | undefined;
17666
17776
  activeOrganizationId?: string | null | undefined;
17777
+ local?: boolean | null | undefined;
17667
17778
  studio?: boolean | null | undefined;
17668
17779
  };
17669
17780
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -17702,6 +17813,7 @@ declare const router: {
17702
17813
  ipAddress?: string | null | undefined;
17703
17814
  userAgent?: string | null | undefined;
17704
17815
  activeOrganizationId?: string | null | undefined;
17816
+ local?: boolean | null | undefined;
17705
17817
  studio?: boolean | null | undefined;
17706
17818
  };
17707
17819
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -17989,6 +18101,7 @@ declare const router: {
17989
18101
  ipAddress?: string | null | undefined;
17990
18102
  userAgent?: string | null | undefined;
17991
18103
  activeOrganizationId?: string | null | undefined;
18104
+ local?: boolean | null | undefined;
17992
18105
  studio?: boolean | null | undefined;
17993
18106
  };
17994
18107
  }>, import("zod").ZodObject<{
@@ -18054,6 +18167,7 @@ declare const router: {
18054
18167
  ipAddress?: string | null | undefined;
18055
18168
  userAgent?: string | null | undefined;
18056
18169
  activeOrganizationId?: string | null | undefined;
18170
+ local?: boolean | null | undefined;
18057
18171
  studio?: boolean | null | undefined;
18058
18172
  };
18059
18173
  }>, import("zod").ZodObject<{
@@ -18105,6 +18219,7 @@ declare const router: {
18105
18219
  ipAddress?: string | null | undefined;
18106
18220
  userAgent?: string | null | undefined;
18107
18221
  activeOrganizationId?: string | null | undefined;
18222
+ local?: boolean | null | undefined;
18108
18223
  studio?: boolean | null | undefined;
18109
18224
  };
18110
18225
  }>, import("zod").ZodObject<{
@@ -18156,39 +18271,22 @@ declare const router: {
18156
18271
  ipAddress?: string | null | undefined;
18157
18272
  userAgent?: string | null | undefined;
18158
18273
  activeOrganizationId?: string | null | undefined;
18274
+ local?: boolean | null | undefined;
18159
18275
  studio?: boolean | null | undefined;
18160
18276
  };
18161
18277
  }>, import("zod").ZodObject<{
18162
18278
  projectId: import("zod").ZodNumber;
18163
18279
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
18280
+ conflicts: never[];
18281
+ lost: never[];
18282
+ warnings: never[];
18283
+ translating: string[];
18284
+ findings: never[];
18285
+ checking: never[];
18286
+ token: string;
18164
18287
  blockers: Problem[];
18165
- conflicts: Conflict[];
18166
- lost: LostChange[];
18167
- warnings: Problem[];
18168
18288
  changes: Change[];
18169
- translating: string[];
18170
- findings: {
18171
- id: number;
18172
- about: import("@camox/api-contract/patrol").FindingAbout;
18173
- fix: import("@camox/api-contract/patrol").FindingFix | null;
18174
- subject: import("@camox/api-contract/patrol").ReportSubject;
18175
- locale: string;
18176
- field: string;
18177
- fieldKind: string | null;
18178
- raisedAt: number;
18179
- live: boolean;
18180
- place: import("@camox/api-contract/patrol").ReportPlace | null;
18181
- patroller: {
18182
- id: "linkChecker" | "seoManager" | "translator";
18183
- role: string;
18184
- };
18185
- }[];
18186
- checking: {
18187
- id: "linkChecker" | "seoManager" | "translator";
18188
- role: string;
18189
- }[];
18190
18289
  defaultLocale: string | null;
18191
- token: string;
18192
18290
  overview: {
18193
18291
  status: "pending";
18194
18292
  } | {
@@ -18202,35 +18300,18 @@ declare const router: {
18202
18300
  readonly status: "none";
18203
18301
  };
18204
18302
  code: PreviewCode | null;
18303
+ heldLocales: string[];
18205
18304
  }, {
18305
+ conflicts: never[];
18306
+ lost: never[];
18307
+ warnings: never[];
18308
+ translating: string[];
18309
+ findings: never[];
18310
+ checking: never[];
18311
+ token: string;
18206
18312
  blockers: Problem[];
18207
- conflicts: Conflict[];
18208
- lost: LostChange[];
18209
- warnings: Problem[];
18210
18313
  changes: Change[];
18211
- translating: string[];
18212
- findings: {
18213
- id: number;
18214
- about: import("@camox/api-contract/patrol").FindingAbout;
18215
- fix: import("@camox/api-contract/patrol").FindingFix | null;
18216
- subject: import("@camox/api-contract/patrol").ReportSubject;
18217
- locale: string;
18218
- field: string;
18219
- fieldKind: string | null;
18220
- raisedAt: number;
18221
- live: boolean;
18222
- place: import("@camox/api-contract/patrol").ReportPlace | null;
18223
- patroller: {
18224
- id: "linkChecker" | "seoManager" | "translator";
18225
- role: string;
18226
- };
18227
- }[];
18228
- checking: {
18229
- id: "linkChecker" | "seoManager" | "translator";
18230
- role: string;
18231
- }[];
18232
18314
  defaultLocale: string | null;
18233
- token: string;
18234
18315
  overview: {
18235
18316
  status: "pending";
18236
18317
  } | {
@@ -18244,6 +18325,7 @@ declare const router: {
18244
18325
  readonly status: "none";
18245
18326
  };
18246
18327
  code: PreviewCode | null;
18328
+ heldLocales: string[];
18247
18329
  }>, Record<never, never>, Record<never, never>>;
18248
18330
  retryOverview: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18249
18331
  draft: DraftRequest | null;
@@ -18291,6 +18373,7 @@ declare const router: {
18291
18373
  ipAddress?: string | null | undefined;
18292
18374
  userAgent?: string | null | undefined;
18293
18375
  activeOrganizationId?: string | null | undefined;
18376
+ local?: boolean | null | undefined;
18294
18377
  studio?: boolean | null | undefined;
18295
18378
  };
18296
18379
  }>, import("zod").ZodObject<{
@@ -18342,11 +18425,12 @@ declare const router: {
18342
18425
  ipAddress?: string | null | undefined;
18343
18426
  userAgent?: string | null | undefined;
18344
18427
  activeOrganizationId?: string | null | undefined;
18428
+ local?: boolean | null | undefined;
18345
18429
  studio?: boolean | null | undefined;
18346
18430
  };
18347
18431
  }>, import("zod").ZodObject<{
18348
18432
  projectId: import("zod").ZodNumber;
18349
- token: import("zod").ZodString;
18433
+ token: import("zod").ZodOptional<import("zod").ZodString>;
18350
18434
  revision: import("zod").ZodOptional<import("zod").ZodString>;
18351
18435
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<PublishResult, PublishResult>, Record<never, never>, Record<never, never>>;
18352
18436
  delete: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -18395,6 +18479,7 @@ declare const router: {
18395
18479
  ipAddress?: string | null | undefined;
18396
18480
  userAgent?: string | null | undefined;
18397
18481
  activeOrganizationId?: string | null | undefined;
18482
+ local?: boolean | null | undefined;
18398
18483
  studio?: boolean | null | undefined;
18399
18484
  };
18400
18485
  }>, import("zod").ZodObject<{
@@ -18450,6 +18535,7 @@ declare const router: {
18450
18535
  ipAddress?: string | null | undefined;
18451
18536
  userAgent?: string | null | undefined;
18452
18537
  activeOrganizationId?: string | null | undefined;
18538
+ local?: boolean | null | undefined;
18453
18539
  studio?: boolean | null | undefined;
18454
18540
  };
18455
18541
  }>, import("zod").ZodObject<{
@@ -18514,6 +18600,7 @@ declare const router: {
18514
18600
  ipAddress?: string | null | undefined;
18515
18601
  userAgent?: string | null | undefined;
18516
18602
  activeOrganizationId?: string | null | undefined;
18603
+ local?: boolean | null | undefined;
18517
18604
  studio?: boolean | null | undefined;
18518
18605
  };
18519
18606
  }>, import("zod").ZodObject<{
@@ -18567,13 +18654,14 @@ declare const router: {
18567
18654
  ipAddress?: string | null | undefined;
18568
18655
  userAgent?: string | null | undefined;
18569
18656
  activeOrganizationId?: string | null | undefined;
18657
+ local?: boolean | null | undefined;
18570
18658
  studio?: boolean | null | undefined;
18571
18659
  };
18572
18660
  }>, import("zod").ZodObject<{
18573
18661
  projectId: import("zod").ZodNumber;
18574
18662
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<import("@camox/ai-tools").JsonSchemaTool[], import("@camox/ai-tools").JsonSchemaTool[]>, Record<never, never>, Record<never, never>>;
18575
18663
  };
18576
- patrol: {
18664
+ specialists: {
18577
18665
  get: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18578
18666
  draft: DraftRequest | null;
18579
18667
  locale: string | undefined;
@@ -18620,23 +18708,16 @@ declare const router: {
18620
18708
  ipAddress?: string | null | undefined;
18621
18709
  userAgent?: string | null | undefined;
18622
18710
  activeOrganizationId?: string | null | undefined;
18711
+ local?: boolean | null | undefined;
18623
18712
  studio?: boolean | null | undefined;
18624
18713
  };
18625
18714
  }>, import("zod").ZodObject<{
18626
18715
  projectId: import("zod").ZodNumber;
18627
- patrollers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
18716
+ specialists: import("zod").ZodArray<import("zod").ZodString>;
18628
18717
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
18629
- patrollers: import("@camox/api-contract/patrol").PatrollerView[];
18630
- patrolDraft: {
18631
- id: string;
18632
- name: string | null;
18633
- } | null;
18718
+ specialists: import("@camox/api-contract/specialists").SpecialistView[];
18634
18719
  }, {
18635
- patrollers: import("@camox/api-contract/patrol").PatrollerView[];
18636
- patrolDraft: {
18637
- id: string;
18638
- name: string | null;
18639
- } | null;
18720
+ specialists: import("@camox/api-contract/specialists").SpecialistView[];
18640
18721
  }>, Record<never, never>, Record<never, never>>;
18641
18722
  applyFix: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18642
18723
  draft: DraftRequest | null;
@@ -18686,6 +18767,7 @@ declare const router: {
18686
18767
  ipAddress?: string | null | undefined;
18687
18768
  userAgent?: string | null | undefined;
18688
18769
  activeOrganizationId?: string | null | undefined;
18770
+ local?: boolean | null | undefined;
18689
18771
  studio?: boolean | null | undefined;
18690
18772
  };
18691
18773
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -18724,6 +18806,7 @@ declare const router: {
18724
18806
  ipAddress?: string | null | undefined;
18725
18807
  userAgent?: string | null | undefined;
18726
18808
  activeOrganizationId?: string | null | undefined;
18809
+ local?: boolean | null | undefined;
18727
18810
  studio?: boolean | null | undefined;
18728
18811
  };
18729
18812
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -18784,6 +18867,7 @@ declare const router: {
18784
18867
  ipAddress?: string | null | undefined;
18785
18868
  userAgent?: string | null | undefined;
18786
18869
  activeOrganizationId?: string | null | undefined;
18870
+ local?: boolean | null | undefined;
18787
18871
  studio?: boolean | null | undefined;
18788
18872
  };
18789
18873
  }>, import("zod").ZodObject<{
@@ -18791,8 +18875,8 @@ declare const router: {
18791
18875
  findingId: import("zod").ZodNumber;
18792
18876
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<void, void>, Record<never, never>, Record<never, never>>;
18793
18877
  };
18794
- code: {
18795
- push: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18878
+ patrol: {
18879
+ get: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18796
18880
  draft: DraftRequest | null;
18797
18881
  locale: string | undefined;
18798
18882
  publishingDraft: string | undefined;
@@ -18838,35 +18922,20 @@ declare const router: {
18838
18922
  ipAddress?: string | null | undefined;
18839
18923
  userAgent?: string | null | undefined;
18840
18924
  activeOrganizationId?: string | null | undefined;
18925
+ local?: boolean | null | undefined;
18841
18926
  studio?: boolean | null | undefined;
18842
18927
  };
18843
18928
  }>, import("zod").ZodObject<{
18844
- projectUuid: import("zod").ZodUUID;
18845
- branch: import("zod").ZodString;
18846
- draftId: import("zod").ZodOptional<import("zod").ZodString>;
18847
- bundle: import("zod").ZodInstanceOf<Blob>;
18848
- }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<AsyncGenerator<{
18849
- type: "progress";
18850
- step: PushStep;
18851
- } | {
18852
- draftId: string;
18853
- result: BuildResult;
18854
- studioUrl: string;
18855
- step?: undefined;
18856
- type: "pushed";
18857
- }, void, unknown>, AsyncGenerator<{
18858
- type: "progress";
18859
- step: PushStep;
18860
- } | {
18861
- draftId: string;
18862
- result: BuildResult;
18863
- studioUrl: string;
18864
- step?: undefined;
18865
- type: "pushed";
18866
- }, void, unknown>>, Record<never, never>, Record<never, never>>;
18867
- };
18868
- connectedAgents: {
18869
- consent: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18929
+ projectId: import("zod").ZodNumber;
18930
+ patrollers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
18931
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
18932
+ patrollers: import("@camox/api-contract/specialists").SpecialistView[];
18933
+ patrolDraft: null;
18934
+ }, {
18935
+ patrollers: import("@camox/api-contract/specialists").SpecialistView[];
18936
+ patrolDraft: null;
18937
+ }>, Record<never, never>, Record<never, never>>;
18938
+ applyFix: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18870
18939
  draft: DraftRequest | null;
18871
18940
  locale: string | undefined;
18872
18941
  publishingDraft: string | undefined;
@@ -18876,7 +18945,9 @@ declare const router: {
18876
18945
  locale: string | undefined;
18877
18946
  publishingDraft: string | undefined;
18878
18947
  look: LookGrant | undefined;
18879
- }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18948
+ }>>, {
18949
+ draft: DraftRequest | null;
18950
+ } & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18880
18951
  draft: DraftRequest | null;
18881
18952
  locale: string | undefined;
18882
18953
  publishingDraft: string | undefined;
@@ -18912,19 +18983,250 @@ declare const router: {
18912
18983
  ipAddress?: string | null | undefined;
18913
18984
  userAgent?: string | null | undefined;
18914
18985
  activeOrganizationId?: string | null | undefined;
18986
+ local?: boolean | null | undefined;
18915
18987
  studio?: boolean | null | undefined;
18916
18988
  };
18917
- }>, import("zod").ZodObject<{
18918
- oauthQuery: import("zod").ZodString;
18919
- }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
18920
- client: {
18921
- name: string;
18922
- verified: boolean;
18923
- };
18924
- scopes: {
18925
- scope: "drafts:write" | "website:read";
18926
- description: string;
18927
- }[];
18989
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18990
+ draft: DraftRequest | null;
18991
+ locale: string | undefined;
18992
+ publishingDraft: string | undefined;
18993
+ look: LookGrant | undefined;
18994
+ }>, {
18995
+ db: Database;
18996
+ env: Bindings;
18997
+ headers: Headers;
18998
+ client: string;
18999
+ telemetryDisabled: boolean;
19000
+ waitUntil: (promise: Promise<unknown>) => void;
19001
+ apiOrigin?: string;
19002
+ draft: DraftRequest | null;
19003
+ locale: string | undefined;
19004
+ publishingDraft: string | undefined;
19005
+ look: LookGrant | undefined;
19006
+ user: {
19007
+ id: string;
19008
+ createdAt: Date;
19009
+ updatedAt: Date;
19010
+ email: string;
19011
+ emailVerified: boolean;
19012
+ name: string;
19013
+ image?: string | null | undefined;
19014
+ };
19015
+ session: {
19016
+ id: string;
19017
+ createdAt: Date;
19018
+ updatedAt: Date;
19019
+ userId: string;
19020
+ expiresAt: Date;
19021
+ token: string;
19022
+ ipAddress?: string | null | undefined;
19023
+ userAgent?: string | null | undefined;
19024
+ activeOrganizationId?: string | null | undefined;
19025
+ local?: boolean | null | undefined;
19026
+ studio?: boolean | null | undefined;
19027
+ };
19028
+ }>, Record<never, never>>, import("zod").ZodObject<{
19029
+ projectId: import("zod").ZodNumber;
19030
+ findingId: import("zod").ZodNumber;
19031
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
19032
+ applied: false;
19033
+ } | {
19034
+ applied: true;
19035
+ }, {
19036
+ applied: false;
19037
+ } | {
19038
+ applied: true;
19039
+ }>, Record<never, never>, Record<never, never>>;
19040
+ dismissFinding: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19041
+ draft: DraftRequest | null;
19042
+ locale: string | undefined;
19043
+ publishingDraft: string | undefined;
19044
+ look: LookGrant | undefined;
19045
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19046
+ draft: DraftRequest | null;
19047
+ locale: string | undefined;
19048
+ publishingDraft: string | undefined;
19049
+ look: LookGrant | undefined;
19050
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19051
+ draft: DraftRequest | null;
19052
+ locale: string | undefined;
19053
+ publishingDraft: string | undefined;
19054
+ look: LookGrant | undefined;
19055
+ }>, {
19056
+ db: Database;
19057
+ env: Bindings;
19058
+ headers: Headers;
19059
+ client: string;
19060
+ telemetryDisabled: boolean;
19061
+ waitUntil: (promise: Promise<unknown>) => void;
19062
+ apiOrigin?: string;
19063
+ draft: DraftRequest | null;
19064
+ locale: string | undefined;
19065
+ publishingDraft: string | undefined;
19066
+ look: LookGrant | undefined;
19067
+ user: {
19068
+ id: string;
19069
+ createdAt: Date;
19070
+ updatedAt: Date;
19071
+ email: string;
19072
+ emailVerified: boolean;
19073
+ name: string;
19074
+ image?: string | null | undefined;
19075
+ };
19076
+ session: {
19077
+ id: string;
19078
+ createdAt: Date;
19079
+ updatedAt: Date;
19080
+ userId: string;
19081
+ expiresAt: Date;
19082
+ token: string;
19083
+ ipAddress?: string | null | undefined;
19084
+ userAgent?: string | null | undefined;
19085
+ activeOrganizationId?: string | null | undefined;
19086
+ local?: boolean | null | undefined;
19087
+ studio?: boolean | null | undefined;
19088
+ };
19089
+ }>, import("zod").ZodObject<{
19090
+ projectId: import("zod").ZodNumber;
19091
+ findingId: import("zod").ZodNumber;
19092
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<void, void>, Record<never, never>, Record<never, never>>;
19093
+ };
19094
+ code: {
19095
+ push: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19096
+ draft: DraftRequest | null;
19097
+ locale: string | undefined;
19098
+ publishingDraft: string | undefined;
19099
+ look: LookGrant | undefined;
19100
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19101
+ draft: DraftRequest | null;
19102
+ locale: string | undefined;
19103
+ publishingDraft: string | undefined;
19104
+ look: LookGrant | undefined;
19105
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19106
+ draft: DraftRequest | null;
19107
+ locale: string | undefined;
19108
+ publishingDraft: string | undefined;
19109
+ look: LookGrant | undefined;
19110
+ }>, {
19111
+ db: Database;
19112
+ env: Bindings;
19113
+ headers: Headers;
19114
+ client: string;
19115
+ telemetryDisabled: boolean;
19116
+ waitUntil: (promise: Promise<unknown>) => void;
19117
+ apiOrigin?: string;
19118
+ draft: DraftRequest | null;
19119
+ locale: string | undefined;
19120
+ publishingDraft: string | undefined;
19121
+ look: LookGrant | undefined;
19122
+ user: {
19123
+ id: string;
19124
+ createdAt: Date;
19125
+ updatedAt: Date;
19126
+ email: string;
19127
+ emailVerified: boolean;
19128
+ name: string;
19129
+ image?: string | null | undefined;
19130
+ };
19131
+ session: {
19132
+ id: string;
19133
+ createdAt: Date;
19134
+ updatedAt: Date;
19135
+ userId: string;
19136
+ expiresAt: Date;
19137
+ token: string;
19138
+ ipAddress?: string | null | undefined;
19139
+ userAgent?: string | null | undefined;
19140
+ activeOrganizationId?: string | null | undefined;
19141
+ local?: boolean | null | undefined;
19142
+ studio?: boolean | null | undefined;
19143
+ };
19144
+ }>, import("zod").ZodObject<{
19145
+ projectUuid: import("zod").ZodUUID;
19146
+ branch: import("zod").ZodString;
19147
+ draftId: import("zod").ZodOptional<import("zod").ZodString>;
19148
+ bundle: import("zod").ZodInstanceOf<Blob>;
19149
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<AsyncGenerator<{
19150
+ type: "progress";
19151
+ step: PushStep;
19152
+ } | {
19153
+ draftId: string;
19154
+ result: BuildResult;
19155
+ studioUrl: string;
19156
+ step?: undefined;
19157
+ type: "pushed";
19158
+ }, void, unknown>, AsyncGenerator<{
19159
+ type: "progress";
19160
+ step: PushStep;
19161
+ } | {
19162
+ draftId: string;
19163
+ result: BuildResult;
19164
+ studioUrl: string;
19165
+ step?: undefined;
19166
+ type: "pushed";
19167
+ }, void, unknown>>, Record<never, never>, Record<never, never>>;
19168
+ };
19169
+ connectedAgents: {
19170
+ consent: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19171
+ draft: DraftRequest | null;
19172
+ locale: string | undefined;
19173
+ publishingDraft: string | undefined;
19174
+ look: LookGrant | undefined;
19175
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19176
+ draft: DraftRequest | null;
19177
+ locale: string | undefined;
19178
+ publishingDraft: string | undefined;
19179
+ look: LookGrant | undefined;
19180
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19181
+ draft: DraftRequest | null;
19182
+ locale: string | undefined;
19183
+ publishingDraft: string | undefined;
19184
+ look: LookGrant | undefined;
19185
+ }>, {
19186
+ db: Database;
19187
+ env: Bindings;
19188
+ headers: Headers;
19189
+ client: string;
19190
+ telemetryDisabled: boolean;
19191
+ waitUntil: (promise: Promise<unknown>) => void;
19192
+ apiOrigin?: string;
19193
+ draft: DraftRequest | null;
19194
+ locale: string | undefined;
19195
+ publishingDraft: string | undefined;
19196
+ look: LookGrant | undefined;
19197
+ user: {
19198
+ id: string;
19199
+ createdAt: Date;
19200
+ updatedAt: Date;
19201
+ email: string;
19202
+ emailVerified: boolean;
19203
+ name: string;
19204
+ image?: string | null | undefined;
19205
+ };
19206
+ session: {
19207
+ id: string;
19208
+ createdAt: Date;
19209
+ updatedAt: Date;
19210
+ userId: string;
19211
+ expiresAt: Date;
19212
+ token: string;
19213
+ ipAddress?: string | null | undefined;
19214
+ userAgent?: string | null | undefined;
19215
+ activeOrganizationId?: string | null | undefined;
19216
+ local?: boolean | null | undefined;
19217
+ studio?: boolean | null | undefined;
19218
+ };
19219
+ }>, import("zod").ZodObject<{
19220
+ oauthQuery: import("zod").ZodString;
19221
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
19222
+ client: {
19223
+ name: string;
19224
+ verified: boolean;
19225
+ };
19226
+ scopes: {
19227
+ scope: "drafts:write" | "website:read";
19228
+ description: string;
19229
+ }[];
18928
19230
  }, {
18929
19231
  client: {
18930
19232
  name: string;
@@ -18981,6 +19283,7 @@ declare const router: {
18981
19283
  ipAddress?: string | null | undefined;
18982
19284
  userAgent?: string | null | undefined;
18983
19285
  activeOrganizationId?: string | null | undefined;
19286
+ local?: boolean | null | undefined;
18984
19287
  studio?: boolean | null | undefined;
18985
19288
  };
18986
19289
  }>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
@@ -19046,12 +19349,682 @@ declare const router: {
19046
19349
  ipAddress?: string | null | undefined;
19047
19350
  userAgent?: string | null | undefined;
19048
19351
  activeOrganizationId?: string | null | undefined;
19352
+ local?: boolean | null | undefined;
19049
19353
  studio?: boolean | null | undefined;
19050
19354
  };
19051
19355
  }>, import("zod").ZodObject<{
19052
19356
  id: import("zod").ZodString;
19053
19357
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<undefined, undefined>, Record<never, never>, Record<never, never>>;
19054
19358
  };
19359
+ operators: {
19360
+ isOperator: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19361
+ draft: DraftRequest | null;
19362
+ locale: string | undefined;
19363
+ publishingDraft: string | undefined;
19364
+ look: LookGrant | undefined;
19365
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19366
+ draft: DraftRequest | null;
19367
+ locale: string | undefined;
19368
+ publishingDraft: string | undefined;
19369
+ look: LookGrant | undefined;
19370
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19371
+ draft: DraftRequest | null;
19372
+ locale: string | undefined;
19373
+ publishingDraft: string | undefined;
19374
+ look: LookGrant | undefined;
19375
+ }>, {
19376
+ db: Database;
19377
+ env: Bindings;
19378
+ headers: Headers;
19379
+ client: string;
19380
+ telemetryDisabled: boolean;
19381
+ waitUntil: (promise: Promise<unknown>) => void;
19382
+ apiOrigin?: string;
19383
+ draft: DraftRequest | null;
19384
+ locale: string | undefined;
19385
+ publishingDraft: string | undefined;
19386
+ look: LookGrant | undefined;
19387
+ user: {
19388
+ id: string;
19389
+ createdAt: Date;
19390
+ updatedAt: Date;
19391
+ email: string;
19392
+ emailVerified: boolean;
19393
+ name: string;
19394
+ image?: string | null | undefined;
19395
+ };
19396
+ session: {
19397
+ id: string;
19398
+ createdAt: Date;
19399
+ updatedAt: Date;
19400
+ userId: string;
19401
+ expiresAt: Date;
19402
+ token: string;
19403
+ ipAddress?: string | null | undefined;
19404
+ userAgent?: string | null | undefined;
19405
+ activeOrganizationId?: string | null | undefined;
19406
+ local?: boolean | null | undefined;
19407
+ studio?: boolean | null | undefined;
19408
+ };
19409
+ }>, import("@orpc/server").Schema<unknown, unknown>, import("@orpc/server").Schema<boolean, boolean>, Record<never, never>, Record<never, never>>;
19410
+ };
19411
+ claimLinks: {
19412
+ create: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19413
+ draft: DraftRequest | null;
19414
+ locale: string | undefined;
19415
+ publishingDraft: string | undefined;
19416
+ look: LookGrant | undefined;
19417
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19418
+ draft: DraftRequest | null;
19419
+ locale: string | undefined;
19420
+ publishingDraft: string | undefined;
19421
+ look: LookGrant | undefined;
19422
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19423
+ draft: DraftRequest | null;
19424
+ locale: string | undefined;
19425
+ publishingDraft: string | undefined;
19426
+ look: LookGrant | undefined;
19427
+ }>, {
19428
+ db: Database;
19429
+ env: Bindings;
19430
+ headers: Headers;
19431
+ client: string;
19432
+ telemetryDisabled: boolean;
19433
+ waitUntil: (promise: Promise<unknown>) => void;
19434
+ apiOrigin?: string;
19435
+ draft: DraftRequest | null;
19436
+ locale: string | undefined;
19437
+ publishingDraft: string | undefined;
19438
+ look: LookGrant | undefined;
19439
+ user: {
19440
+ id: string;
19441
+ createdAt: Date;
19442
+ updatedAt: Date;
19443
+ email: string;
19444
+ emailVerified: boolean;
19445
+ name: string;
19446
+ image?: string | null | undefined;
19447
+ };
19448
+ session: {
19449
+ id: string;
19450
+ createdAt: Date;
19451
+ updatedAt: Date;
19452
+ userId: string;
19453
+ expiresAt: Date;
19454
+ token: string;
19455
+ ipAddress?: string | null | undefined;
19456
+ userAgent?: string | null | undefined;
19457
+ activeOrganizationId?: string | null | undefined;
19458
+ local?: boolean | null | undefined;
19459
+ studio?: boolean | null | undefined;
19460
+ };
19461
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19462
+ draft: DraftRequest | null;
19463
+ locale: string | undefined;
19464
+ publishingDraft: string | undefined;
19465
+ look: LookGrant | undefined;
19466
+ }>, {
19467
+ db: Database;
19468
+ env: Bindings;
19469
+ headers: Headers;
19470
+ client: string;
19471
+ telemetryDisabled: boolean;
19472
+ waitUntil: (promise: Promise<unknown>) => void;
19473
+ apiOrigin?: string;
19474
+ draft: DraftRequest | null;
19475
+ locale: string | undefined;
19476
+ publishingDraft: string | undefined;
19477
+ look: LookGrant | undefined;
19478
+ user: {
19479
+ id: string;
19480
+ createdAt: Date;
19481
+ updatedAt: Date;
19482
+ email: string;
19483
+ emailVerified: boolean;
19484
+ name: string;
19485
+ image?: string | null | undefined;
19486
+ };
19487
+ session: {
19488
+ id: string;
19489
+ createdAt: Date;
19490
+ updatedAt: Date;
19491
+ userId: string;
19492
+ expiresAt: Date;
19493
+ token: string;
19494
+ ipAddress?: string | null | undefined;
19495
+ userAgent?: string | null | undefined;
19496
+ activeOrganizationId?: string | null | undefined;
19497
+ local?: boolean | null | undefined;
19498
+ studio?: boolean | null | undefined;
19499
+ };
19500
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19501
+ draft: DraftRequest | null;
19502
+ locale: string | undefined;
19503
+ publishingDraft: string | undefined;
19504
+ look: LookGrant | undefined;
19505
+ }>, {
19506
+ db: Database;
19507
+ env: Bindings;
19508
+ headers: Headers;
19509
+ client: string;
19510
+ telemetryDisabled: boolean;
19511
+ waitUntil: (promise: Promise<unknown>) => void;
19512
+ apiOrigin?: string;
19513
+ draft: DraftRequest | null;
19514
+ locale: string | undefined;
19515
+ publishingDraft: string | undefined;
19516
+ look: LookGrant | undefined;
19517
+ user: {
19518
+ id: string;
19519
+ createdAt: Date;
19520
+ updatedAt: Date;
19521
+ email: string;
19522
+ emailVerified: boolean;
19523
+ name: string;
19524
+ image?: string | null | undefined;
19525
+ };
19526
+ session: {
19527
+ id: string;
19528
+ createdAt: Date;
19529
+ updatedAt: Date;
19530
+ userId: string;
19531
+ expiresAt: Date;
19532
+ token: string;
19533
+ ipAddress?: string | null | undefined;
19534
+ userAgent?: string | null | undefined;
19535
+ activeOrganizationId?: string | null | undefined;
19536
+ local?: boolean | null | undefined;
19537
+ studio?: boolean | null | undefined;
19538
+ };
19539
+ }>, Record<never, never>>, import("zod").ZodObject<{
19540
+ projectId: import("zod").ZodUUID;
19541
+ note: import("zod").ZodDefault<import("zod").ZodString>;
19542
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
19543
+ id: string;
19544
+ link: string;
19545
+ }, {
19546
+ id: string;
19547
+ link: string;
19548
+ }>, Record<never, never>, Record<never, never>>;
19549
+ list: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19550
+ draft: DraftRequest | null;
19551
+ locale: string | undefined;
19552
+ publishingDraft: string | undefined;
19553
+ look: LookGrant | undefined;
19554
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19555
+ draft: DraftRequest | null;
19556
+ locale: string | undefined;
19557
+ publishingDraft: string | undefined;
19558
+ look: LookGrant | undefined;
19559
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19560
+ draft: DraftRequest | null;
19561
+ locale: string | undefined;
19562
+ publishingDraft: string | undefined;
19563
+ look: LookGrant | undefined;
19564
+ }>, {
19565
+ db: Database;
19566
+ env: Bindings;
19567
+ headers: Headers;
19568
+ client: string;
19569
+ telemetryDisabled: boolean;
19570
+ waitUntil: (promise: Promise<unknown>) => void;
19571
+ apiOrigin?: string;
19572
+ draft: DraftRequest | null;
19573
+ locale: string | undefined;
19574
+ publishingDraft: string | undefined;
19575
+ look: LookGrant | undefined;
19576
+ user: {
19577
+ id: string;
19578
+ createdAt: Date;
19579
+ updatedAt: Date;
19580
+ email: string;
19581
+ emailVerified: boolean;
19582
+ name: string;
19583
+ image?: string | null | undefined;
19584
+ };
19585
+ session: {
19586
+ id: string;
19587
+ createdAt: Date;
19588
+ updatedAt: Date;
19589
+ userId: string;
19590
+ expiresAt: Date;
19591
+ token: string;
19592
+ ipAddress?: string | null | undefined;
19593
+ userAgent?: string | null | undefined;
19594
+ activeOrganizationId?: string | null | undefined;
19595
+ local?: boolean | null | undefined;
19596
+ studio?: boolean | null | undefined;
19597
+ };
19598
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19599
+ draft: DraftRequest | null;
19600
+ locale: string | undefined;
19601
+ publishingDraft: string | undefined;
19602
+ look: LookGrant | undefined;
19603
+ }>, {
19604
+ db: Database;
19605
+ env: Bindings;
19606
+ headers: Headers;
19607
+ client: string;
19608
+ telemetryDisabled: boolean;
19609
+ waitUntil: (promise: Promise<unknown>) => void;
19610
+ apiOrigin?: string;
19611
+ draft: DraftRequest | null;
19612
+ locale: string | undefined;
19613
+ publishingDraft: string | undefined;
19614
+ look: LookGrant | undefined;
19615
+ user: {
19616
+ id: string;
19617
+ createdAt: Date;
19618
+ updatedAt: Date;
19619
+ email: string;
19620
+ emailVerified: boolean;
19621
+ name: string;
19622
+ image?: string | null | undefined;
19623
+ };
19624
+ session: {
19625
+ id: string;
19626
+ createdAt: Date;
19627
+ updatedAt: Date;
19628
+ userId: string;
19629
+ expiresAt: Date;
19630
+ token: string;
19631
+ ipAddress?: string | null | undefined;
19632
+ userAgent?: string | null | undefined;
19633
+ activeOrganizationId?: string | null | undefined;
19634
+ local?: boolean | null | undefined;
19635
+ studio?: boolean | null | undefined;
19636
+ };
19637
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19638
+ draft: DraftRequest | null;
19639
+ locale: string | undefined;
19640
+ publishingDraft: string | undefined;
19641
+ look: LookGrant | undefined;
19642
+ }>, {
19643
+ db: Database;
19644
+ env: Bindings;
19645
+ headers: Headers;
19646
+ client: string;
19647
+ telemetryDisabled: boolean;
19648
+ waitUntil: (promise: Promise<unknown>) => void;
19649
+ apiOrigin?: string;
19650
+ draft: DraftRequest | null;
19651
+ locale: string | undefined;
19652
+ publishingDraft: string | undefined;
19653
+ look: LookGrant | undefined;
19654
+ user: {
19655
+ id: string;
19656
+ createdAt: Date;
19657
+ updatedAt: Date;
19658
+ email: string;
19659
+ emailVerified: boolean;
19660
+ name: string;
19661
+ image?: string | null | undefined;
19662
+ };
19663
+ session: {
19664
+ id: string;
19665
+ createdAt: Date;
19666
+ updatedAt: Date;
19667
+ userId: string;
19668
+ expiresAt: Date;
19669
+ token: string;
19670
+ ipAddress?: string | null | undefined;
19671
+ userAgent?: string | null | undefined;
19672
+ activeOrganizationId?: string | null | undefined;
19673
+ local?: boolean | null | undefined;
19674
+ studio?: boolean | null | undefined;
19675
+ };
19676
+ }>, Record<never, never>>, import("@orpc/server").Schema<unknown, unknown>, import("@orpc/server").Schema<{
19677
+ id: string;
19678
+ link: string;
19679
+ state: import("@camox/api-contract/claim-links").ClaimLinkState;
19680
+ note: string;
19681
+ project: {
19682
+ id: string;
19683
+ name: string;
19684
+ address: string;
19685
+ };
19686
+ organization: {
19687
+ id: string;
19688
+ name: string;
19689
+ };
19690
+ createdBy: {
19691
+ id: string;
19692
+ name: string;
19693
+ email: string;
19694
+ };
19695
+ createdAt: number;
19696
+ firstOpenedAt: number | null;
19697
+ openCount: number;
19698
+ claimedAt: number | null;
19699
+ claimedBy: {
19700
+ id: string;
19701
+ name: string;
19702
+ email: string;
19703
+ } | null;
19704
+ claimerWasNew: boolean | null;
19705
+ revokedAt: number | null;
19706
+ revokedBy: {
19707
+ id: string;
19708
+ name: string;
19709
+ email: string;
19710
+ } | null;
19711
+ blockedAt: number | null;
19712
+ }[], {
19713
+ id: string;
19714
+ link: string;
19715
+ state: import("@camox/api-contract/claim-links").ClaimLinkState;
19716
+ note: string;
19717
+ project: {
19718
+ id: string;
19719
+ name: string;
19720
+ address: string;
19721
+ };
19722
+ organization: {
19723
+ id: string;
19724
+ name: string;
19725
+ };
19726
+ createdBy: {
19727
+ id: string;
19728
+ name: string;
19729
+ email: string;
19730
+ };
19731
+ createdAt: number;
19732
+ firstOpenedAt: number | null;
19733
+ openCount: number;
19734
+ claimedAt: number | null;
19735
+ claimedBy: {
19736
+ id: string;
19737
+ name: string;
19738
+ email: string;
19739
+ } | null;
19740
+ claimerWasNew: boolean | null;
19741
+ revokedAt: number | null;
19742
+ revokedBy: {
19743
+ id: string;
19744
+ name: string;
19745
+ email: string;
19746
+ } | null;
19747
+ blockedAt: number | null;
19748
+ }[]>, Record<never, never>, Record<never, never>>;
19749
+ revoke: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19750
+ draft: DraftRequest | null;
19751
+ locale: string | undefined;
19752
+ publishingDraft: string | undefined;
19753
+ look: LookGrant | undefined;
19754
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19755
+ draft: DraftRequest | null;
19756
+ locale: string | undefined;
19757
+ publishingDraft: string | undefined;
19758
+ look: LookGrant | undefined;
19759
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19760
+ draft: DraftRequest | null;
19761
+ locale: string | undefined;
19762
+ publishingDraft: string | undefined;
19763
+ look: LookGrant | undefined;
19764
+ }>, {
19765
+ db: Database;
19766
+ env: Bindings;
19767
+ headers: Headers;
19768
+ client: string;
19769
+ telemetryDisabled: boolean;
19770
+ waitUntil: (promise: Promise<unknown>) => void;
19771
+ apiOrigin?: string;
19772
+ draft: DraftRequest | null;
19773
+ locale: string | undefined;
19774
+ publishingDraft: string | undefined;
19775
+ look: LookGrant | undefined;
19776
+ user: {
19777
+ id: string;
19778
+ createdAt: Date;
19779
+ updatedAt: Date;
19780
+ email: string;
19781
+ emailVerified: boolean;
19782
+ name: string;
19783
+ image?: string | null | undefined;
19784
+ };
19785
+ session: {
19786
+ id: string;
19787
+ createdAt: Date;
19788
+ updatedAt: Date;
19789
+ userId: string;
19790
+ expiresAt: Date;
19791
+ token: string;
19792
+ ipAddress?: string | null | undefined;
19793
+ userAgent?: string | null | undefined;
19794
+ activeOrganizationId?: string | null | undefined;
19795
+ local?: boolean | null | undefined;
19796
+ studio?: boolean | null | undefined;
19797
+ };
19798
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19799
+ draft: DraftRequest | null;
19800
+ locale: string | undefined;
19801
+ publishingDraft: string | undefined;
19802
+ look: LookGrant | undefined;
19803
+ }>, {
19804
+ db: Database;
19805
+ env: Bindings;
19806
+ headers: Headers;
19807
+ client: string;
19808
+ telemetryDisabled: boolean;
19809
+ waitUntil: (promise: Promise<unknown>) => void;
19810
+ apiOrigin?: string;
19811
+ draft: DraftRequest | null;
19812
+ locale: string | undefined;
19813
+ publishingDraft: string | undefined;
19814
+ look: LookGrant | undefined;
19815
+ user: {
19816
+ id: string;
19817
+ createdAt: Date;
19818
+ updatedAt: Date;
19819
+ email: string;
19820
+ emailVerified: boolean;
19821
+ name: string;
19822
+ image?: string | null | undefined;
19823
+ };
19824
+ session: {
19825
+ id: string;
19826
+ createdAt: Date;
19827
+ updatedAt: Date;
19828
+ userId: string;
19829
+ expiresAt: Date;
19830
+ token: string;
19831
+ ipAddress?: string | null | undefined;
19832
+ userAgent?: string | null | undefined;
19833
+ activeOrganizationId?: string | null | undefined;
19834
+ local?: boolean | null | undefined;
19835
+ studio?: boolean | null | undefined;
19836
+ };
19837
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19838
+ draft: DraftRequest | null;
19839
+ locale: string | undefined;
19840
+ publishingDraft: string | undefined;
19841
+ look: LookGrant | undefined;
19842
+ }>, {
19843
+ db: Database;
19844
+ env: Bindings;
19845
+ headers: Headers;
19846
+ client: string;
19847
+ telemetryDisabled: boolean;
19848
+ waitUntil: (promise: Promise<unknown>) => void;
19849
+ apiOrigin?: string;
19850
+ draft: DraftRequest | null;
19851
+ locale: string | undefined;
19852
+ publishingDraft: string | undefined;
19853
+ look: LookGrant | undefined;
19854
+ user: {
19855
+ id: string;
19856
+ createdAt: Date;
19857
+ updatedAt: Date;
19858
+ email: string;
19859
+ emailVerified: boolean;
19860
+ name: string;
19861
+ image?: string | null | undefined;
19862
+ };
19863
+ session: {
19864
+ id: string;
19865
+ createdAt: Date;
19866
+ updatedAt: Date;
19867
+ userId: string;
19868
+ expiresAt: Date;
19869
+ token: string;
19870
+ ipAddress?: string | null | undefined;
19871
+ userAgent?: string | null | undefined;
19872
+ activeOrganizationId?: string | null | undefined;
19873
+ local?: boolean | null | undefined;
19874
+ studio?: boolean | null | undefined;
19875
+ };
19876
+ }>, Record<never, never>>, import("zod").ZodObject<{
19877
+ id: import("zod").ZodString;
19878
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<undefined, undefined>, Record<never, never>, Record<never, never>>;
19879
+ open: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19880
+ draft: DraftRequest | null;
19881
+ locale: string | undefined;
19882
+ publishingDraft: string | undefined;
19883
+ look: LookGrant | undefined;
19884
+ }>, import("zod").ZodObject<{
19885
+ token: import("zod").ZodString;
19886
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
19887
+ state: "claimed" | "unavailable";
19888
+ } | {
19889
+ organizationName: string;
19890
+ operatorName: string;
19891
+ state: "preview";
19892
+ } | {
19893
+ organizationName: string;
19894
+ operatorName: string;
19895
+ state: "open";
19896
+ }, {
19897
+ state: "claimed" | "unavailable";
19898
+ } | {
19899
+ organizationName: string;
19900
+ operatorName: string;
19901
+ state: "preview";
19902
+ } | {
19903
+ organizationName: string;
19904
+ operatorName: string;
19905
+ state: "open";
19906
+ }>, Record<never, never>, Record<never, never>>;
19907
+ toClaim: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19908
+ draft: DraftRequest | null;
19909
+ locale: string | undefined;
19910
+ publishingDraft: string | undefined;
19911
+ look: LookGrant | undefined;
19912
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19913
+ draft: DraftRequest | null;
19914
+ locale: string | undefined;
19915
+ publishingDraft: string | undefined;
19916
+ look: LookGrant | undefined;
19917
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19918
+ draft: DraftRequest | null;
19919
+ locale: string | undefined;
19920
+ publishingDraft: string | undefined;
19921
+ look: LookGrant | undefined;
19922
+ }>, {
19923
+ db: Database;
19924
+ env: Bindings;
19925
+ headers: Headers;
19926
+ client: string;
19927
+ telemetryDisabled: boolean;
19928
+ waitUntil: (promise: Promise<unknown>) => void;
19929
+ apiOrigin?: string;
19930
+ draft: DraftRequest | null;
19931
+ locale: string | undefined;
19932
+ publishingDraft: string | undefined;
19933
+ look: LookGrant | undefined;
19934
+ user: {
19935
+ id: string;
19936
+ createdAt: Date;
19937
+ updatedAt: Date;
19938
+ email: string;
19939
+ emailVerified: boolean;
19940
+ name: string;
19941
+ image?: string | null | undefined;
19942
+ };
19943
+ session: {
19944
+ id: string;
19945
+ createdAt: Date;
19946
+ updatedAt: Date;
19947
+ userId: string;
19948
+ expiresAt: Date;
19949
+ token: string;
19950
+ ipAddress?: string | null | undefined;
19951
+ userAgent?: string | null | undefined;
19952
+ activeOrganizationId?: string | null | undefined;
19953
+ local?: boolean | null | undefined;
19954
+ studio?: boolean | null | undefined;
19955
+ };
19956
+ }>, import("zod").ZodObject<{
19957
+ token: import("zod").ZodString;
19958
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
19959
+ state: "claimed" | "unavailable";
19960
+ organizationName?: undefined;
19961
+ } | {
19962
+ state: "open";
19963
+ organizationName: string;
19964
+ }, {
19965
+ state: "claimed" | "unavailable";
19966
+ organizationName?: undefined;
19967
+ } | {
19968
+ state: "open";
19969
+ organizationName: string;
19970
+ }>, Record<never, never>, Record<never, never>>;
19971
+ claim: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19972
+ draft: DraftRequest | null;
19973
+ locale: string | undefined;
19974
+ publishingDraft: string | undefined;
19975
+ look: LookGrant | undefined;
19976
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19977
+ draft: DraftRequest | null;
19978
+ locale: string | undefined;
19979
+ publishingDraft: string | undefined;
19980
+ look: LookGrant | undefined;
19981
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19982
+ draft: DraftRequest | null;
19983
+ locale: string | undefined;
19984
+ publishingDraft: string | undefined;
19985
+ look: LookGrant | undefined;
19986
+ }>, {
19987
+ db: Database;
19988
+ env: Bindings;
19989
+ headers: Headers;
19990
+ client: string;
19991
+ telemetryDisabled: boolean;
19992
+ waitUntil: (promise: Promise<unknown>) => void;
19993
+ apiOrigin?: string;
19994
+ draft: DraftRequest | null;
19995
+ locale: string | undefined;
19996
+ publishingDraft: string | undefined;
19997
+ look: LookGrant | undefined;
19998
+ user: {
19999
+ id: string;
20000
+ createdAt: Date;
20001
+ updatedAt: Date;
20002
+ email: string;
20003
+ emailVerified: boolean;
20004
+ name: string;
20005
+ image?: string | null | undefined;
20006
+ };
20007
+ session: {
20008
+ id: string;
20009
+ createdAt: Date;
20010
+ updatedAt: Date;
20011
+ userId: string;
20012
+ expiresAt: Date;
20013
+ token: string;
20014
+ ipAddress?: string | null | undefined;
20015
+ userAgent?: string | null | undefined;
20016
+ activeOrganizationId?: string | null | undefined;
20017
+ local?: boolean | null | undefined;
20018
+ studio?: boolean | null | undefined;
20019
+ };
20020
+ }>, import("zod").ZodObject<{
20021
+ token: import("zod").ZodString;
20022
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
20023
+ organizationId: string;
20024
+ }, {
20025
+ organizationId: string;
20026
+ }>, Record<never, never>, Record<never, never>>;
20027
+ };
19055
20028
  };
19056
20029
  type Router = typeof router;
19057
20030
  //#endregion