@camox/api-contract 0.72.0 → 0.75.0

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,9 +1,12 @@
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";
7
+ import "@earendil-works/pi-ai";
8
+ import "@earendil-works/pi-ai/models";
9
+ import "@earendil-works/pi-durable/tools";
7
10
  import { FileErrorCode } from "@earendil-works/pi-durable/env";
8
11
  import "camox/_internal/sdkBundleName";
9
12
  import "@camox/ai-tools";
@@ -13,7 +16,7 @@ import { EndedDraft, PublishAbortReason } from "@camox/api-contract/drafts";
13
16
  import "@camox/api-contract/projects";
14
17
  import "drizzle-orm";
15
18
  import "drizzle-orm/sqlite-core";
16
- import { FindingView, PatrollerId } from "@camox/api-contract/patrol";
19
+ import { SpecialistId } from "@camox/api-contract/specialists";
17
20
  import { DrizzleD1Database } from "drizzle-orm/d1";
18
21
  import { CIWorkflow, CiContext, CiParams, CloudflareArtifacts } from "@cloudflare/ci";
19
22
  import { CiBindings } from "@cloudflare/ci/worker";
@@ -38,6 +41,198 @@ declare class EdgeCachePurger extends DurableObject<Bindings> {
38
41
  //#region ../../apps/api/src/lib/edge-cache-purges.d.ts
39
42
  type EdgeCachePurgerNamespace = DurableObjectNamespace<EdgeCachePurger>;
40
43
  //#endregion
44
+ //#region ../../apps/api/src/domains/attachments/schema.d.ts
45
+ /**
46
+ * An Attachment (ADR 0044): an image a member's Connected Agent uploaded for Camox's agent to
47
+ * see with one of its messages. Its bytes are a blob in the files bucket, under their own
48
+ * `attachments/` key space, and its row is apart from files', so it never shows among the
49
+ * project's Files. It becomes a File only when the agent puts it on the website.
50
+ *
51
+ * An Attachment no message used yet lasts a day from `createdAt`. A used one lasts as long as any
52
+ * thread whose message used it (`attachmentUses`).
53
+ */
54
+ declare const attachments: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
55
+ name: "attachments";
56
+ schema: undefined;
57
+ columns: {
58
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
59
+ name: "id";
60
+ tableName: "attachments";
61
+ dataType: "string";
62
+ columnType: "SQLiteText";
63
+ data: string;
64
+ driverParam: string;
65
+ notNull: true;
66
+ hasDefault: false;
67
+ isPrimaryKey: true;
68
+ isAutoincrement: false;
69
+ hasRuntimeDefault: false;
70
+ enumValues: [string, ...string[]];
71
+ baseColumn: never;
72
+ identity: undefined;
73
+ generated: undefined;
74
+ }, {}, {
75
+ length: undefined;
76
+ }>;
77
+ projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
78
+ name: "project_id";
79
+ tableName: "attachments";
80
+ dataType: "number";
81
+ columnType: "SQLiteInteger";
82
+ data: number;
83
+ driverParam: number;
84
+ notNull: true;
85
+ hasDefault: false;
86
+ isPrimaryKey: false;
87
+ isAutoincrement: false;
88
+ hasRuntimeDefault: false;
89
+ enumValues: undefined;
90
+ baseColumn: never;
91
+ identity: undefined;
92
+ generated: undefined;
93
+ }, {}, {}>;
94
+ memberId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
95
+ name: "member_id";
96
+ tableName: "attachments";
97
+ dataType: "string";
98
+ columnType: "SQLiteText";
99
+ data: string;
100
+ driverParam: string;
101
+ notNull: true;
102
+ hasDefault: false;
103
+ isPrimaryKey: false;
104
+ isAutoincrement: false;
105
+ hasRuntimeDefault: false;
106
+ enumValues: [string, ...string[]];
107
+ baseColumn: never;
108
+ identity: undefined;
109
+ generated: undefined;
110
+ }, {}, {
111
+ length: number | undefined;
112
+ }>;
113
+ filename: import("drizzle-orm/sqlite-core").SQLiteColumn<{
114
+ name: "filename";
115
+ tableName: "attachments";
116
+ dataType: "string";
117
+ columnType: "SQLiteText";
118
+ data: string;
119
+ driverParam: string;
120
+ notNull: true;
121
+ hasDefault: false;
122
+ isPrimaryKey: false;
123
+ isAutoincrement: false;
124
+ hasRuntimeDefault: false;
125
+ enumValues: [string, ...string[]];
126
+ baseColumn: never;
127
+ identity: undefined;
128
+ generated: undefined;
129
+ }, {}, {
130
+ length: undefined;
131
+ }>;
132
+ mimeType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
133
+ name: "mime_type";
134
+ tableName: "attachments";
135
+ dataType: "string";
136
+ columnType: "SQLiteText";
137
+ data: "image/jpeg" | "image/png" | "image/svg+xml" | "image/webp";
138
+ driverParam: string;
139
+ notNull: true;
140
+ hasDefault: false;
141
+ isPrimaryKey: false;
142
+ isAutoincrement: false;
143
+ hasRuntimeDefault: false;
144
+ enumValues: [string, ...string[]];
145
+ baseColumn: never;
146
+ identity: undefined;
147
+ generated: undefined;
148
+ }, {}, {
149
+ length: number | undefined;
150
+ $type: "image/jpeg" | "image/png" | "image/svg+xml" | "image/webp";
151
+ }>;
152
+ size: import("drizzle-orm/sqlite-core").SQLiteColumn<{
153
+ name: "size";
154
+ tableName: "attachments";
155
+ dataType: "number";
156
+ columnType: "SQLiteInteger";
157
+ data: number;
158
+ driverParam: number;
159
+ notNull: true;
160
+ hasDefault: false;
161
+ isPrimaryKey: false;
162
+ isAutoincrement: false;
163
+ hasRuntimeDefault: false;
164
+ enumValues: undefined;
165
+ baseColumn: never;
166
+ identity: undefined;
167
+ generated: undefined;
168
+ }, {}, {}>;
169
+ blobKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
170
+ name: "blob_key";
171
+ tableName: "attachments";
172
+ dataType: "string";
173
+ columnType: "SQLiteText";
174
+ data: string;
175
+ driverParam: string;
176
+ notNull: true;
177
+ hasDefault: false;
178
+ isPrimaryKey: false;
179
+ isAutoincrement: false;
180
+ hasRuntimeDefault: false;
181
+ enumValues: [string, ...string[]];
182
+ baseColumn: never;
183
+ identity: undefined;
184
+ generated: undefined;
185
+ }, {}, {
186
+ length: number | undefined;
187
+ }>;
188
+ url: import("drizzle-orm/sqlite-core").SQLiteColumn<{
189
+ name: "url";
190
+ tableName: "attachments";
191
+ dataType: "string";
192
+ columnType: "SQLiteText";
193
+ data: string;
194
+ driverParam: string;
195
+ notNull: true;
196
+ hasDefault: false;
197
+ isPrimaryKey: false;
198
+ isAutoincrement: false;
199
+ hasRuntimeDefault: false;
200
+ enumValues: [string, ...string[]];
201
+ baseColumn: never;
202
+ identity: undefined;
203
+ generated: undefined;
204
+ }, {}, {
205
+ length: undefined;
206
+ }>;
207
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
208
+ name: "created_at";
209
+ tableName: "attachments";
210
+ dataType: "number";
211
+ columnType: "SQLiteInteger";
212
+ data: number;
213
+ driverParam: number;
214
+ notNull: true;
215
+ hasDefault: false;
216
+ isPrimaryKey: false;
217
+ isAutoincrement: false;
218
+ hasRuntimeDefault: false;
219
+ enumValues: undefined;
220
+ baseColumn: never;
221
+ identity: undefined;
222
+ generated: undefined;
223
+ }, {}, {}>;
224
+ };
225
+ dialect: 'sqlite';
226
+ }>;
227
+ type Attachment = typeof attachments.$inferSelect;
228
+ //#endregion
229
+ //#region ../../apps/api/src/domains/attachments/model-input.d.ts
230
+ /**
231
+ * An Attachment as a thread message carries it: what a model's label and the studio name it by,
232
+ * and where its bytes are.
233
+ */
234
+ type MessageAttachment = Pick<Attachment, "id" | "filename" | "mimeType" | "url" | "blobKey">;
235
+ //#endregion
41
236
  //#region ../../apps/api/src/domains/code/remote-env.d.ts
42
237
  /** The operations sent as they are: every argument but the context is plain data. */
43
238
  declare const SENT: ["absolutePath", "joinPath", "readTextFile", "readTextLines", "readBinaryFile", "writeFile", "appendFile", "truncateFile", "flushFile", "renameFile", "fileInfo", "listDir", "canonicalPath", "exists", "createDir", "remove"];
@@ -229,19 +424,31 @@ declare class DraftCode extends DurableObject<Bindings> {
229
424
  script: string;
230
425
  uploaded: boolean;
231
426
  }>;
427
+ /** The publish of the draft going now, if any: its Workflow instance. */
428
+ publishGoing(): Promise<string | null>;
429
+ /**
430
+ * Records that a member's push landed during the publish `instanceId`: the revision it waits
431
+ * for a build to leave changed under it, so it goes back to the review (ADR 0043).
432
+ */
433
+ notePushDuring(instanceId: string): Promise<void>;
434
+ /** Whether a member's push landed during the publish `instanceId`. */
435
+ pushedDuring(instanceId: string): Promise<boolean>;
232
436
  /** Records that a build of the draft's code started, or ended. */
233
437
  markBuilding(building: boolean): Promise<void>;
234
438
  /**
235
439
  * 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.
440
+ * Camox's infrastructure failed the last one, and Camox retries it. A type check, going or
441
+ * owed, isn't building (ADR 0043).
237
442
  */
238
443
  building(): Promise<boolean>;
239
444
  /**
240
445
  * 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.
446
+ * infrastructure, or with `typesOnly`, only check the types of a revision that built, and has
447
+ * it retry later (`alarm`), each retry waiting longer.
242
448
  */
243
- oweBuild({ threadId }: {
449
+ oweBuild({ threadId, typesOnly }: {
244
450
  threadId: string;
451
+ typesOnly?: boolean;
245
452
  }): Promise<void>;
246
453
  /** Forgets the build Camox owed the draft, once one ended without Camox's failing. */
247
454
  settleOwedBuild(): Promise<void>;
@@ -1670,10 +1877,6 @@ declare const files: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1670
1877
  dialect: 'sqlite';
1671
1878
  }>;
1672
1879
  //#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
1880
  //#region ../../apps/api/src/domains/generated-values/schema.d.ts
1678
1881
  /** What a generated value describes, named like the draft overlay's entities. */
1679
1882
  type GeneratedEntity = "block" | "sharedContent" | "repeatableItem" | "page" | "file";
@@ -1706,7 +1909,7 @@ type DraftRequest = {
1706
1909
  };
1707
1910
  //#endregion
1708
1911
  //#region ../../apps/api/src/domains/drafts/overlay.d.ts
1709
- /** The kinds of entity drafts hold: what changes, conflicts and publish tokens name. */
1912
+ /** The kinds of entity drafts hold: what changes and conflicts name. */
1710
1913
  declare const ENTITY_KINDS: readonly ["locale", "page", "block", "sharedContent", "repeatableItem", "file", "record", "exclusion"];
1711
1914
  type EntityKind = (typeof ENTITY_KINDS)[number];
1712
1915
  //#endregion
@@ -2209,7 +2412,7 @@ declare const schema: {
2209
2412
  tableName: "drafts";
2210
2413
  dataType: "string";
2211
2414
  columnType: "SQLiteText";
2212
- data: CamoxDraftPurpose;
2415
+ data: "catchUp";
2213
2416
  driverParam: string;
2214
2417
  notNull: false;
2215
2418
  hasDefault: false;
@@ -2222,7 +2425,7 @@ declare const schema: {
2222
2425
  generated: undefined;
2223
2426
  }, {}, {
2224
2427
  length: undefined;
2225
- $type: CamoxDraftPurpose;
2428
+ $type: "catchUp";
2226
2429
  }>;
2227
2430
  createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2228
2431
  name: "created_at";
@@ -2538,7 +2741,7 @@ declare const schema: {
2538
2741
  tableName: "drafts";
2539
2742
  dataType: "string";
2540
2743
  columnType: "SQLiteText";
2541
- data: "blocked" | "codeDoesNotMerge" | "conflictsChanged" | "failed" | "liveCodeMoved" | "revisionChanged";
2744
+ data: "blocked" | "codeDoesNotBuild" | "codeDoesNotMerge" | "conflictsChanged" | "failed" | "liveCodeMoved" | "revisionChanged";
2542
2745
  driverParam: string;
2543
2746
  notNull: false;
2544
2747
  hasDefault: false;
@@ -2551,7 +2754,7 @@ declare const schema: {
2551
2754
  generated: undefined;
2552
2755
  }, {}, {
2553
2756
  length: number | undefined;
2554
- $type: "blocked" | "codeDoesNotMerge" | "conflictsChanged" | "failed" | "liveCodeMoved" | "revisionChanged";
2757
+ $type: "blocked" | "codeDoesNotBuild" | "codeDoesNotMerge" | "conflictsChanged" | "failed" | "liveCodeMoved" | "revisionChanged";
2555
2758
  }>;
2556
2759
  };
2557
2760
  dialect: 'sqlite';
@@ -5590,6 +5793,23 @@ declare const schema: {
5590
5793
  identity: undefined;
5591
5794
  generated: undefined;
5592
5795
  }, {}, {}>;
5796
+ local: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5797
+ name: "local";
5798
+ tableName: "session";
5799
+ dataType: "boolean";
5800
+ columnType: "SQLiteBoolean";
5801
+ data: boolean;
5802
+ driverParam: number;
5803
+ notNull: true;
5804
+ hasDefault: true;
5805
+ isPrimaryKey: false;
5806
+ isAutoincrement: false;
5807
+ hasRuntimeDefault: false;
5808
+ enumValues: undefined;
5809
+ baseColumn: never;
5810
+ identity: undefined;
5811
+ generated: undefined;
5812
+ }, {}, {}>;
5593
5813
  createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5594
5814
  name: "createdAt";
5595
5815
  tableName: "session";
@@ -6481,6 +6701,11 @@ declare function createAuth(db: Database, env: Bindings, baseURL: string, waitUn
6481
6701
  required: false;
6482
6702
  input: false;
6483
6703
  };
6704
+ local: {
6705
+ type: "boolean";
6706
+ required: false;
6707
+ input: false;
6708
+ };
6484
6709
  };
6485
6710
  };
6486
6711
  };
@@ -9452,27 +9677,54 @@ type TurnEnd = ({
9452
9677
  }) & {
9453
9678
  page?: TurnPage;
9454
9679
  };
9455
- /** The page a turn changed last, as its writes touched it. */
9680
+ /** A page a turn changed, as its writes touched it: by its id, in the Locale it was changed in. */
9456
9681
  type TurnPage = {
9457
9682
  pageId: string;
9458
9683
  locale?: string;
9459
9684
  };
9460
9685
  /**
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.
9686
+ * A Connected Agent, one member's connection through one client (ADR 0042): who follows a turn,
9687
+ * and is asked the agent's questions.
9688
+ */
9689
+ type Follower = {
9690
+ memberId: string;
9691
+ clientId: string;
9692
+ };
9693
+ /**
9694
+ * What a caller waits on: the turn the message sent with `operationId` started or joined, or
9695
+ * without one, the turn running, as a call that sent nothing.
9696
+ */
9697
+ type AwaitedMessage = {
9698
+ /** The operation id the message was sent to the thread with, if the call sent one. */
9699
+ operationId?: string;
9700
+ /** The Connected Agent whose call waits, which the agent's questions come back to. */
9701
+ follower?: Follower;
9702
+ };
9703
+ /**
9704
+ * Where waiting on a turn got: it ended; it's still going when the wait gave up, with what the
9705
+ * agent is doing, as the studio shows it, and every page the turn changed so far, first changed
9706
+ * first; the agent asked the waiting Connected Agent questions since its previous call answered,
9707
+ * in the order it asked them, the turn carrying on; no turn was running to wait on; or the
9708
+ * thread ended with its draft, published or deleted.
9463
9709
  */
9464
9710
  type TurnOutcome = TurnEnd | {
9465
9711
  turn: "working";
9712
+ activity?: AgentActivity;
9713
+ pages: TurnPage[];
9714
+ } | {
9715
+ turn: "asking";
9716
+ questions: string[];
9466
9717
  } | {
9467
9718
  turn: "threadEnded";
9719
+ } | {
9720
+ turn: "idle";
9468
9721
  };
9469
9722
  //#endregion
9470
9723
  //#region ../../apps/api/src/durable-objects/thread.d.ts
9471
9724
  /**
9472
9725
  * 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).
9726
+ * records it, how studios show it and how the model reads it: an editor, or a member's Connected
9727
+ * Agent, in its client (ADR 0030).
9476
9728
  */
9477
9729
  type OpeningSender = {
9478
9730
  kind: "editor";
@@ -9481,14 +9733,20 @@ type OpeningSender = {
9481
9733
  kind: "connectedAgent";
9482
9734
  member: ThreadSender;
9483
9735
  client: ConnectedAgentClient;
9484
- } | {
9485
- kind: "camox";
9736
+ /** The client's id, which with the member's names the Connected Agent following the turn. */
9737
+ clientId: string;
9486
9738
  };
9487
- /** A message a draft's thread opens with: its text, the operation id it was sent with, and who sent it. */
9739
+ /**
9740
+ * A message a draft's thread opens with: its text, the operation id it was sent with, and who
9741
+ * sent it. A Connected Agent's message may be its answer to the agent's questions (ADR 0042), and
9742
+ * may carry Attachments, images the model sees with it (ADR 0044).
9743
+ */
9488
9744
  type OpeningMessage = {
9489
9745
  operationId: string;
9490
9746
  text: string;
9491
9747
  from: OpeningSender;
9748
+ answer?: boolean;
9749
+ attachments?: MessageAttachment[];
9492
9750
  };
9493
9751
  /**
9494
9752
  * How the API opens a draft's thread with no studio connected (`Thread.open`): what it belongs
@@ -9618,12 +9876,16 @@ declare class Thread extends DurableObject<Bindings> {
9618
9876
  */
9619
9877
  view(): Promise<ThreadView>;
9620
9878
  /**
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.
9879
+ * Waits for the turn the message sent with `operationId` started or joined to end, or without
9880
+ * one, the turn running, for up to `waitMs`: how it ended, with the page it changed last, if
9881
+ * any. Once the wait gives up, the turn carrying on, what the agent is doing and the pages the
9882
+ * turn changed so far. With no message and no turn running, that none is; or the thread ended
9883
+ * with its draft. Watching the thread's own events, as studios do, it sees the turn end as they
9884
+ * do. For a Connected Agent's call, it comes back first with the questions the agent asked it
9885
+ * since its previous call answered, at once when there are some already, and the turn carries
9886
+ * on (ADR 0042).
9625
9887
  */
9626
- turnOf(operationId: string, waitMs: number): Promise<TurnOutcome>;
9888
+ awaitTurnOutcome({ operationId, follower }: AwaitedMessage, waitMs: number): Promise<TurnOutcome>;
9627
9889
  /**
9628
9890
  * Ends the thread with its draft, wiping everything it stored, since Pi can't delete a
9629
9891
  * conversation yet: the run going stops, and studios still open on it see an empty thread
@@ -9789,8 +10051,13 @@ type PublishParams = {
9789
10051
  projectId: number;
9790
10052
  /** The revision the review showed, which the publish ships. */
9791
10053
  revision: string;
9792
- /** The publish token of the review, recording the conflicts it showed. */
9793
- token: string;
10054
+ /**
10055
+ * Whether the draft's code was building as the publish was asked: the publish waits for the
10056
+ * build, then ships the revision it left instead.
10057
+ */
10058
+ afterBuild?: boolean;
10059
+ /** Sent by publishes started before ADR 0043, which no longer abort for conflicts: ignored. */
10060
+ token?: string;
9794
10061
  /** The member who published. */
9795
10062
  publishedBy: string;
9796
10063
  };
@@ -9809,17 +10076,24 @@ declare class PublishWorkflow extends WorkflowEntrypoint<Bindings, PublishParams
9809
10076
  * finds its tree.
9810
10077
  */
9811
10078
  private check;
10079
+ /**
10080
+ * Step 0: waits for the build of the draft's code going, or owed, to end, and pins the
10081
+ * draft's head as it leaves it. A build that takes too long goes back to the review.
10082
+ */
10083
+ private waitForBuild;
10084
+ /**
10085
+ * The draft's head, once its code no longer builds: the revision the build going when the
10086
+ * publish was asked left. A member's push landing meanwhile goes back to the review.
10087
+ */
10088
+ private built;
9812
10089
  /**
9813
10090
  * Step 1, checked again while the draft merges the `main` that moved, woken as its merge ends.
9814
10091
  * A merge that takes too long goes back to the review.
9815
10092
  */
9816
10093
  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
- */
10094
+ /** Step 3: why the review no longer holds, if it doesn't: the draft got a blocker. */
9821
10095
  private recheck;
9822
- /** Why the batch aborted: the agent's newer revision, or Live's conflicts. */
10096
+ /** Why the batch aborted: the agent's newer revision, or something on Camox's side. */
9823
10097
  private whyAborted;
9824
10098
  }
9825
10099
  //#endregion
@@ -9880,73 +10154,127 @@ type LookQuestion = {
9880
10154
  token: string;
9881
10155
  };
9882
10156
  //#endregion
9883
- //#region ../../apps/api/src/lib/ai-job-queue.d.ts
9884
- /** The entities a generation job runs on: a synced block's summary is generated through a placement. */
9885
- type JobEntity = "block" | "repeatableItem" | "page" | "file";
9886
- /**
9887
- * A job generating an entity's value in Live (`draftId` null) or in one draft (ADR 0012), in a
9888
- * locale other than the default one, named by its tag, or without one in the default locale.
9889
- * Jobs are keyed by all four: a newer job of the same key replaces a pending one. Summaries are
9890
- * only generated in the default locale.
9891
- */
9892
- type GenerationJob = {
9893
- entity: JobEntity;
9894
- entityId: string;
9895
- draftId: string | null;
9896
- locale?: string;
10157
+ //#region ../../apps/api/src/domains/_shared/fields.d.ts
10158
+ type FieldBase = {
10159
+ name: string;
10160
+ /** The title editors see, or the field's name. */
10161
+ title: string;
10162
+ /** The field's stored JSON Schema, for validation and the options this type doesn't name. */
10163
+ schema: Record<string, unknown>;
9897
10164
  };
9898
- /** The entities a translation job translates: every localized entity (ADR 0015). */
9899
- declare const TRANSLATED_ENTITIES: readonly ["page", "block", "sharedContent", "repeatableItem", "record"];
9900
- type TranslatedEntity = (typeof TRANSLATED_ENTITIES)[number];
9901
- /**
9902
- * A job translating a default-locale entity into one locale of a draft (ADR 0015). Jobs are keyed
9903
- * by entity, locale, draft and source, and debounced like generation jobs. A job merging with
9904
- * `live` merges the draft's localization with Live's, which Live changed since the draft copied
9905
- * it, so it's no longer a conflict (ADR 0016).
9906
- */
9907
- type TranslationJob = {
9908
- kind: "translation";
9909
- entity: TranslatedEntity;
9910
- entityId: string;
9911
- locale: string;
9912
- draftId: string;
9913
- source?: "live";
10165
+ /** How a query-backed reference list orders its records, and how many it takes. */
10166
+ type ReferenceQuery = {
10167
+ orderBy?: {
10168
+ key: string;
10169
+ direction: "asc" | "desc";
10170
+ };
10171
+ limit: number;
9914
10172
  };
9915
- /**
9916
- * A job writing a draft's Draft Overview from its changes, keyed by draft: a newer request
9917
- * replaces a pending one.
9918
- */
9919
- type OverviewJob = {
9920
- kind: "overview";
9921
- draftId: string;
10173
+ type Field = FieldBase & ({
10174
+ kind: "String" | "Artifact" | "Embed" | "Icon" | "Link" | "Boolean";
10175
+ } | {
10176
+ kind: "Enum";
10177
+ options: string[];
10178
+ } | {
10179
+ kind: "Image" | "File";
10180
+ required: boolean;
10181
+ accept: string[] | undefined;
10182
+ } | {
10183
+ kind: "ImageList" | "FileList";
10184
+ accept: string[] | undefined;
10185
+ } | {
10186
+ kind: "Repeater";
10187
+ /** The content schema of the repeater's items. */
10188
+ itemContentSchema: unknown;
10189
+ /** The settings schema of the repeater's items, if they have settings. */
10190
+ itemSettingsSchema: unknown;
10191
+ } | {
10192
+ kind: "Reference";
10193
+ collectionId: string;
10194
+ required: boolean;
10195
+ /** The content schema of the referenced collection's records. */
10196
+ recordSchema: unknown;
10197
+ } | {
10198
+ kind: "ReferenceList";
10199
+ collectionId: string;
10200
+ /** A query-backed list resolves its records in code and stores nothing. */
10201
+ queryBacked: boolean;
10202
+ /** A query-backed list's query, its limit capped; undefined for a manual list. */
10203
+ query: ReferenceQuery | undefined;
10204
+ maxItems: number | undefined;
10205
+ recordSchema: unknown;
10206
+ } | {
10207
+ kind: "Unknown";
10208
+ });
10209
+ //#endregion
10210
+ //#region ../../apps/api/src/domains/specialists/findings.d.ts
10211
+ /** One subject in one locale a check read. */
10212
+ type CheckedSubject = {
10213
+ entity: "block" | "sharedContent" | "repeatableItem" | "record";
10214
+ id: string;
10215
+ locale: string;
10216
+ };
10217
+ //#endregion
10218
+ //#region ../../apps/api/src/lib/ai-job-queue.d.ts
10219
+ /** The entities a generation job runs on: a synced block's summary is generated through a placement. */
10220
+ type JobEntity = "block" | "repeatableItem" | "page" | "file";
10221
+ /**
10222
+ * A job generating an entity's value in Live (`draftId` null) or in one draft (ADR 0012), in a
10223
+ * locale other than the default one, named by its tag, or without one in the default locale.
10224
+ * Jobs are keyed by all four: a newer job of the same key replaces a pending one. Summaries are
10225
+ * only generated in the default locale.
10226
+ */
10227
+ type GenerationJob = {
10228
+ entity: JobEntity;
10229
+ entityId: string;
10230
+ draftId: string | null;
10231
+ locale?: string;
10232
+ };
10233
+ /** The entities a translation job translates: every localized entity (ADR 0015). */
10234
+ declare const TRANSLATED_ENTITIES: readonly ["page", "block", "sharedContent", "repeatableItem", "record"];
10235
+ type TranslatedEntity = (typeof TRANSLATED_ENTITIES)[number];
10236
+ /**
10237
+ * A job translating a default-locale entity into one locale of a draft (ADR 0015). Jobs are keyed
10238
+ * by entity, locale, draft and source, and debounced like generation jobs. A job merging with
10239
+ * `live` merges the draft's localization with Live's, which Live changed since the draft copied
10240
+ * it, so it's no longer a conflict (ADR 0016).
10241
+ */
10242
+ type TranslationJob = {
10243
+ kind: "translation";
10244
+ entity: TranslatedEntity;
10245
+ entityId: string;
10246
+ locale: string;
10247
+ draftId: string;
10248
+ source?: "live";
9922
10249
  };
9923
10250
  /**
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.
10251
+ * A job writing a draft's Draft Overview from its changes, keyed by draft: a newer request
10252
+ * replaces a pending one.
9926
10253
  */
9927
- type CheckJob = {
9928
- kind: "check";
9929
- patroller: PatrollerId;
10254
+ type OverviewJob = {
10255
+ kind: "overview";
9930
10256
  draftId: string;
9931
10257
  };
9932
10258
  /**
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.
10259
+ * A run of specialists' checks of a project's Live content (ADR 0034), keyed by project: the cron
10260
+ * trigger requests one of every specialist checking Live for every project every 6 hours, and a
10261
+ * publish one of only the content it `changed` (ADR 0043). Requesting one while another is
10262
+ * pending joins it: one run checks for both, so its new findings are told of once.
9937
10263
  */
9938
- type PatrolJob = {
9939
- kind: "patrol";
9940
- patrollers: readonly PatrollerId[];
10264
+ type LiveCheckJob = {
10265
+ kind: "liveCheck";
10266
+ specialists: readonly SpecialistId[];
9941
10267
  projectId: number;
10268
+ /** The only content to check, which a publish just changed: all of Live's when absent. */
10269
+ changed?: readonly CheckedSubject[];
9942
10270
  };
9943
10271
  /** A job the AI job scheduler runs. */
9944
- type AiJob = GenerationJob | TranslationJob | OverviewJob | CheckJob | PatrolJob;
10272
+ type AiJob = GenerationJob | TranslationJob | OverviewJob | LiveCheckJob;
9945
10273
  //#endregion
9946
10274
  //#region ../../apps/api/src/durable-objects/ai-job-scheduler.d.ts
9947
10275
  /**
9948
10276
  * 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
10277
+ * fires. Scheduling again replaces the job and restarts the delay, but a check of Live joins
9950
10278
  * the pending one.
9951
10279
  */
9952
10280
  declare class AiJobScheduler extends DurableObject<Bindings> {
@@ -10038,6 +10366,11 @@ type Bindings = {
10038
10366
  * only by tests.
10039
10367
  */
10040
10368
  CONNECTED_AGENT_PROJECTS_POLL_MS?: string;
10369
+ /**
10370
+ * The operators' user IDs, separated by commas (ADR 0040). A secret: nothing in the app can
10371
+ * change who is an operator. Unset, nobody is.
10372
+ */
10373
+ OPERATOR_USER_IDS?: string;
10041
10374
  OPEN_ROUTER_API_KEY: string;
10042
10375
  /** Camox's Google Fonts Developer API key, which the daily fonts snapshot is taken with. */
10043
10376
  GOOGLE_FONTS_API_KEY: string;
@@ -10173,59 +10506,6 @@ type PageView<P extends PageRow = PageRow> = P & {
10173
10506
  aiSeo: boolean;
10174
10507
  };
10175
10508
  //#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
10509
  //#region ../../apps/api/src/domains/_shared/conform-content.d.ts
10230
10510
  /** Content conformed to its definition: an object holding the definition's fields only. */
10231
10511
  type Conformed<T extends {
@@ -10319,15 +10599,6 @@ type ProblemPlace = {
10319
10599
  blockId: string | null;
10320
10600
  };
10321
10601
  //#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
10602
  //#region ../../apps/api/src/domains/drafts/overview.d.ts
10332
10603
  /** A draft's overview as its review shows it. */
10333
10604
  type Overview =
@@ -10401,40 +10672,9 @@ type InLocale = {
10401
10672
  type Change = Subject & InLocale & {
10402
10673
  change: "created" | "changed" | "deleted";
10403
10674
  };
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. */
10675
+ /** What a blocker is about. */
10676
+ declare const PROBLEM_CODES: readonly ["codeDoesNotBuild", "codeDoesNotMerge", "emptyRequiredFile", "missingFile", "missingFileBytes", "unacceptedFileType", "duplicatePath", "duplicateRecordPageValue", "emptyRequiredReference", "danglingReference", "wrongKindValue", "localePrefixTaken", "duplicateLocale"];
10677
+ /** A blocker, naming what to fix. */
10438
10678
  type Problem = Subject & InLocale & ProblemPlace & {
10439
10679
  code: (typeof PROBLEM_CODES)[number];
10440
10680
  field: string;
@@ -10442,41 +10682,18 @@ type Problem = Subject & InLocale & ProblemPlace & {
10442
10682
  };
10443
10683
  type PublishPreview = {
10444
10684
  blockers: Problem[];
10445
- conflicts: Conflict[];
10446
- lost: LostChange[];
10447
- warnings: Problem[];
10448
10685
  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
10686
  /** The tag of the default locale, which the others are translated from (null: none yet). */
10473
10687
  defaultLocale: string | null;
10474
- /** Sent back to publish, which aborts when the conflicts no longer match it. */
10475
- token: string;
10476
10688
  /** The draft's overview: AI's headline and bullets about its changes. */
10477
10689
  overview: Overview;
10478
10690
  /** Where the draft's code stands, for a draft whose code the agent changed. */
10479
10691
  code: PreviewCode | null;
10692
+ /**
10693
+ * The tags of the locales the draft adds that it's still being translated into: publishing
10694
+ * puts them on Live unserved, and they go live once translated (ADR 0043).
10695
+ */
10696
+ heldLocales: string[];
10480
10697
  };
10481
10698
  /**
10482
10699
  * What publishing did: nothing, for an empty draft, which publishing leaves as is; or how the
@@ -10554,6 +10771,7 @@ declare const router: {
10554
10771
  ipAddress?: string | null | undefined;
10555
10772
  userAgent?: string | null | undefined;
10556
10773
  activeOrganizationId?: string | null | undefined;
10774
+ local?: boolean | null | undefined;
10557
10775
  studio?: boolean | null | undefined;
10558
10776
  };
10559
10777
  }>, import("zod").ZodObject<{
@@ -10653,6 +10871,7 @@ declare const router: {
10653
10871
  ipAddress?: string | null | undefined;
10654
10872
  userAgent?: string | null | undefined;
10655
10873
  activeOrganizationId?: string | null | undefined;
10874
+ local?: boolean | null | undefined;
10656
10875
  studio?: boolean | null | undefined;
10657
10876
  };
10658
10877
  }>, import("zod").ZodObject<{
@@ -10750,6 +10969,7 @@ declare const router: {
10750
10969
  ipAddress?: string | null | undefined;
10751
10970
  userAgent?: string | null | undefined;
10752
10971
  activeOrganizationId?: string | null | undefined;
10972
+ local?: boolean | null | undefined;
10753
10973
  studio?: boolean | null | undefined;
10754
10974
  };
10755
10975
  }>, import("zod").ZodObject<{
@@ -10851,6 +11071,7 @@ declare const router: {
10851
11071
  ipAddress?: string | null | undefined;
10852
11072
  userAgent?: string | null | undefined;
10853
11073
  activeOrganizationId?: string | null | undefined;
11074
+ local?: boolean | null | undefined;
10854
11075
  studio?: boolean | null | undefined;
10855
11076
  };
10856
11077
  }>, import("zod").ZodObject<{
@@ -10918,11 +11139,13 @@ declare const router: {
10918
11139
  updatedAt: number;
10919
11140
  analytics: AnalyticsProviders;
10920
11141
  socialProfiles: string[];
11142
+ hiddenFromSearchEngines: boolean;
10921
11143
  }, {
10922
11144
  id: number;
10923
11145
  updatedAt: number;
10924
11146
  analytics: AnalyticsProviders;
10925
11147
  socialProfiles: string[];
11148
+ hiddenFromSearchEngines: boolean;
10926
11149
  }>, Record<never, never>, Record<never, never>>;
10927
11150
  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
11151
  draft: DraftRequest | null;
@@ -10970,6 +11193,7 @@ declare const router: {
10970
11193
  ipAddress?: string | null | undefined;
10971
11194
  userAgent?: string | null | undefined;
10972
11195
  activeOrganizationId?: string | null | undefined;
11196
+ local?: boolean | null | undefined;
10973
11197
  studio?: boolean | null | undefined;
10974
11198
  };
10975
11199
  }>, import("zod").ZodObject<{
@@ -11071,6 +11295,7 @@ declare const router: {
11071
11295
  ipAddress?: string | null | undefined;
11072
11296
  userAgent?: string | null | undefined;
11073
11297
  activeOrganizationId?: string | null | undefined;
11298
+ local?: boolean | null | undefined;
11074
11299
  studio?: boolean | null | undefined;
11075
11300
  };
11076
11301
  }>, import("zod").ZodObject<{
@@ -11134,6 +11359,7 @@ declare const router: {
11134
11359
  ipAddress?: string | null | undefined;
11135
11360
  userAgent?: string | null | undefined;
11136
11361
  activeOrganizationId?: string | null | undefined;
11362
+ local?: boolean | null | undefined;
11137
11363
  studio?: boolean | null | undefined;
11138
11364
  };
11139
11365
  }>, import("zod").ZodObject<{
@@ -11233,6 +11459,7 @@ declare const router: {
11233
11459
  ipAddress?: string | null | undefined;
11234
11460
  userAgent?: string | null | undefined;
11235
11461
  activeOrganizationId?: string | null | undefined;
11462
+ local?: boolean | null | undefined;
11236
11463
  studio?: boolean | null | undefined;
11237
11464
  };
11238
11465
  }>, import("zod").ZodObject<{
@@ -11331,6 +11558,7 @@ declare const router: {
11331
11558
  ipAddress?: string | null | undefined;
11332
11559
  userAgent?: string | null | undefined;
11333
11560
  activeOrganizationId?: string | null | undefined;
11561
+ local?: boolean | null | undefined;
11334
11562
  studio?: boolean | null | undefined;
11335
11563
  };
11336
11564
  }>, import("zod").ZodObject<{
@@ -11398,6 +11626,7 @@ declare const router: {
11398
11626
  ipAddress?: string | null | undefined;
11399
11627
  userAgent?: string | null | undefined;
11400
11628
  activeOrganizationId?: string | null | undefined;
11629
+ local?: boolean | null | undefined;
11401
11630
  studio?: boolean | null | undefined;
11402
11631
  };
11403
11632
  }>, import("zod").ZodObject<{
@@ -11456,6 +11685,7 @@ declare const router: {
11456
11685
  ipAddress?: string | null | undefined;
11457
11686
  userAgent?: string | null | undefined;
11458
11687
  activeOrganizationId?: string | null | undefined;
11688
+ local?: boolean | null | undefined;
11459
11689
  studio?: boolean | null | undefined;
11460
11690
  };
11461
11691
  }>, import("zod").ZodObject<{
@@ -11514,6 +11744,7 @@ declare const router: {
11514
11744
  ipAddress?: string | null | undefined;
11515
11745
  userAgent?: string | null | undefined;
11516
11746
  activeOrganizationId?: string | null | undefined;
11747
+ local?: boolean | null | undefined;
11517
11748
  studio?: boolean | null | undefined;
11518
11749
  };
11519
11750
  }>, import("zod").ZodObject<{
@@ -11575,6 +11806,7 @@ declare const router: {
11575
11806
  ipAddress?: string | null | undefined;
11576
11807
  userAgent?: string | null | undefined;
11577
11808
  activeOrganizationId?: string | null | undefined;
11809
+ local?: boolean | null | undefined;
11578
11810
  studio?: boolean | null | undefined;
11579
11811
  };
11580
11812
  }>, import("zod").ZodObject<{
@@ -11671,6 +11903,7 @@ declare const router: {
11671
11903
  updatedAt: number;
11672
11904
  analytics: AnalyticsProviders;
11673
11905
  socialProfiles: string[];
11906
+ hiddenFromSearchEngines: boolean;
11674
11907
  };
11675
11908
  layout: {
11676
11909
  layoutId: string;
@@ -11778,6 +12011,7 @@ declare const router: {
11778
12011
  updatedAt: number;
11779
12012
  analytics: AnalyticsProviders;
11780
12013
  socialProfiles: string[];
12014
+ hiddenFromSearchEngines: boolean;
11781
12015
  };
11782
12016
  layout: {
11783
12017
  layoutId: string;
@@ -11894,6 +12128,7 @@ declare const router: {
11894
12128
  updatedAt: number;
11895
12129
  analytics: AnalyticsProviders;
11896
12130
  socialProfiles: string[];
12131
+ hiddenFromSearchEngines: boolean;
11897
12132
  };
11898
12133
  layout: {
11899
12134
  layoutId: string;
@@ -11937,6 +12172,7 @@ declare const router: {
11937
12172
  updatedAt: number;
11938
12173
  analytics: AnalyticsProviders;
11939
12174
  socialProfiles: string[];
12175
+ hiddenFromSearchEngines: boolean;
11940
12176
  };
11941
12177
  layout: {
11942
12178
  layoutId: string;
@@ -12290,6 +12526,7 @@ declare const router: {
12290
12526
  ipAddress?: string | null | undefined;
12291
12527
  userAgent?: string | null | undefined;
12292
12528
  activeOrganizationId?: string | null | undefined;
12529
+ local?: boolean | null | undefined;
12293
12530
  studio?: boolean | null | undefined;
12294
12531
  };
12295
12532
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -12328,6 +12565,7 @@ declare const router: {
12328
12565
  ipAddress?: string | null | undefined;
12329
12566
  userAgent?: string | null | undefined;
12330
12567
  activeOrganizationId?: string | null | undefined;
12568
+ local?: boolean | null | undefined;
12331
12569
  studio?: boolean | null | undefined;
12332
12570
  };
12333
12571
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -12442,6 +12680,7 @@ declare const router: {
12442
12680
  ipAddress?: string | null | undefined;
12443
12681
  userAgent?: string | null | undefined;
12444
12682
  activeOrganizationId?: string | null | undefined;
12683
+ local?: boolean | null | undefined;
12445
12684
  studio?: boolean | null | undefined;
12446
12685
  };
12447
12686
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -12480,6 +12719,7 @@ declare const router: {
12480
12719
  ipAddress?: string | null | undefined;
12481
12720
  userAgent?: string | null | undefined;
12482
12721
  activeOrganizationId?: string | null | undefined;
12722
+ local?: boolean | null | undefined;
12483
12723
  studio?: boolean | null | undefined;
12484
12724
  };
12485
12725
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -12586,6 +12826,7 @@ declare const router: {
12586
12826
  ipAddress?: string | null | undefined;
12587
12827
  userAgent?: string | null | undefined;
12588
12828
  activeOrganizationId?: string | null | undefined;
12829
+ local?: boolean | null | undefined;
12589
12830
  studio?: boolean | null | undefined;
12590
12831
  };
12591
12832
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -12624,6 +12865,7 @@ declare const router: {
12624
12865
  ipAddress?: string | null | undefined;
12625
12866
  userAgent?: string | null | undefined;
12626
12867
  activeOrganizationId?: string | null | undefined;
12868
+ local?: boolean | null | undefined;
12627
12869
  studio?: boolean | null | undefined;
12628
12870
  };
12629
12871
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -12727,6 +12969,7 @@ declare const router: {
12727
12969
  ipAddress?: string | null | undefined;
12728
12970
  userAgent?: string | null | undefined;
12729
12971
  activeOrganizationId?: string | null | undefined;
12972
+ local?: boolean | null | undefined;
12730
12973
  studio?: boolean | null | undefined;
12731
12974
  };
12732
12975
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -12765,6 +13008,7 @@ declare const router: {
12765
13008
  ipAddress?: string | null | undefined;
12766
13009
  userAgent?: string | null | undefined;
12767
13010
  activeOrganizationId?: string | null | undefined;
13011
+ local?: boolean | null | undefined;
12768
13012
  studio?: boolean | null | undefined;
12769
13013
  };
12770
13014
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -12871,6 +13115,7 @@ declare const router: {
12871
13115
  ipAddress?: string | null | undefined;
12872
13116
  userAgent?: string | null | undefined;
12873
13117
  activeOrganizationId?: string | null | undefined;
13118
+ local?: boolean | null | undefined;
12874
13119
  studio?: boolean | null | undefined;
12875
13120
  };
12876
13121
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -12909,6 +13154,7 @@ declare const router: {
12909
13154
  ipAddress?: string | null | undefined;
12910
13155
  userAgent?: string | null | undefined;
12911
13156
  activeOrganizationId?: string | null | undefined;
13157
+ local?: boolean | null | undefined;
12912
13158
  studio?: boolean | null | undefined;
12913
13159
  };
12914
13160
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -13011,6 +13257,7 @@ declare const router: {
13011
13257
  ipAddress?: string | null | undefined;
13012
13258
  userAgent?: string | null | undefined;
13013
13259
  activeOrganizationId?: string | null | undefined;
13260
+ local?: boolean | null | undefined;
13014
13261
  studio?: boolean | null | undefined;
13015
13262
  };
13016
13263
  }>, import("zod").ZodObject<{
@@ -13592,6 +13839,7 @@ declare const router: {
13592
13839
  ipAddress?: string | null | undefined;
13593
13840
  userAgent?: string | null | undefined;
13594
13841
  activeOrganizationId?: string | null | undefined;
13842
+ local?: boolean | null | undefined;
13595
13843
  studio?: boolean | null | undefined;
13596
13844
  };
13597
13845
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -13630,6 +13878,7 @@ declare const router: {
13630
13878
  ipAddress?: string | null | undefined;
13631
13879
  userAgent?: string | null | undefined;
13632
13880
  activeOrganizationId?: string | null | undefined;
13881
+ local?: boolean | null | undefined;
13633
13882
  studio?: boolean | null | undefined;
13634
13883
  };
13635
13884
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -13755,6 +14004,7 @@ declare const router: {
13755
14004
  ipAddress?: string | null | undefined;
13756
14005
  userAgent?: string | null | undefined;
13757
14006
  activeOrganizationId?: string | null | undefined;
14007
+ local?: boolean | null | undefined;
13758
14008
  studio?: boolean | null | undefined;
13759
14009
  };
13760
14010
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -13793,6 +14043,7 @@ declare const router: {
13793
14043
  ipAddress?: string | null | undefined;
13794
14044
  userAgent?: string | null | undefined;
13795
14045
  activeOrganizationId?: string | null | undefined;
14046
+ local?: boolean | null | undefined;
13796
14047
  studio?: boolean | null | undefined;
13797
14048
  };
13798
14049
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -13847,6 +14098,7 @@ declare const router: {
13847
14098
  ipAddress?: string | null | undefined;
13848
14099
  userAgent?: string | null | undefined;
13849
14100
  activeOrganizationId?: string | null | undefined;
14101
+ local?: boolean | null | undefined;
13850
14102
  studio?: boolean | null | undefined;
13851
14103
  };
13852
14104
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -13885,6 +14137,7 @@ declare const router: {
13885
14137
  ipAddress?: string | null | undefined;
13886
14138
  userAgent?: string | null | undefined;
13887
14139
  activeOrganizationId?: string | null | undefined;
14140
+ local?: boolean | null | undefined;
13888
14141
  studio?: boolean | null | undefined;
13889
14142
  };
13890
14143
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -13939,6 +14192,7 @@ declare const router: {
13939
14192
  ipAddress?: string | null | undefined;
13940
14193
  userAgent?: string | null | undefined;
13941
14194
  activeOrganizationId?: string | null | undefined;
14195
+ local?: boolean | null | undefined;
13942
14196
  studio?: boolean | null | undefined;
13943
14197
  };
13944
14198
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -13977,6 +14231,7 @@ declare const router: {
13977
14231
  ipAddress?: string | null | undefined;
13978
14232
  userAgent?: string | null | undefined;
13979
14233
  activeOrganizationId?: string | null | undefined;
14234
+ local?: boolean | null | undefined;
13980
14235
  studio?: boolean | null | undefined;
13981
14236
  };
13982
14237
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14032,6 +14287,7 @@ declare const router: {
14032
14287
  ipAddress?: string | null | undefined;
14033
14288
  userAgent?: string | null | undefined;
14034
14289
  activeOrganizationId?: string | null | undefined;
14290
+ local?: boolean | null | undefined;
14035
14291
  studio?: boolean | null | undefined;
14036
14292
  };
14037
14293
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -14070,6 +14326,7 @@ declare const router: {
14070
14326
  ipAddress?: string | null | undefined;
14071
14327
  userAgent?: string | null | undefined;
14072
14328
  activeOrganizationId?: string | null | undefined;
14329
+ local?: boolean | null | undefined;
14073
14330
  studio?: boolean | null | undefined;
14074
14331
  };
14075
14332
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14123,6 +14380,7 @@ declare const router: {
14123
14380
  ipAddress?: string | null | undefined;
14124
14381
  userAgent?: string | null | undefined;
14125
14382
  activeOrganizationId?: string | null | undefined;
14383
+ local?: boolean | null | undefined;
14126
14384
  studio?: boolean | null | undefined;
14127
14385
  };
14128
14386
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -14161,6 +14419,7 @@ declare const router: {
14161
14419
  ipAddress?: string | null | undefined;
14162
14420
  userAgent?: string | null | undefined;
14163
14421
  activeOrganizationId?: string | null | undefined;
14422
+ local?: boolean | null | undefined;
14164
14423
  studio?: boolean | null | undefined;
14165
14424
  };
14166
14425
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14212,6 +14471,7 @@ declare const router: {
14212
14471
  ipAddress?: string | null | undefined;
14213
14472
  userAgent?: string | null | undefined;
14214
14473
  activeOrganizationId?: string | null | undefined;
14474
+ local?: boolean | null | undefined;
14215
14475
  studio?: boolean | null | undefined;
14216
14476
  };
14217
14477
  }>, import("zod").ZodObject<{
@@ -14265,6 +14525,7 @@ declare const router: {
14265
14525
  ipAddress?: string | null | undefined;
14266
14526
  userAgent?: string | null | undefined;
14267
14527
  activeOrganizationId?: string | null | undefined;
14528
+ local?: boolean | null | undefined;
14268
14529
  studio?: boolean | null | undefined;
14269
14530
  };
14270
14531
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -14303,6 +14564,7 @@ declare const router: {
14303
14564
  ipAddress?: string | null | undefined;
14304
14565
  userAgent?: string | null | undefined;
14305
14566
  activeOrganizationId?: string | null | undefined;
14567
+ local?: boolean | null | undefined;
14306
14568
  studio?: boolean | null | undefined;
14307
14569
  };
14308
14570
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14325,6 +14587,7 @@ declare const router: {
14325
14587
  updatedAt: number;
14326
14588
  analytics: AnalyticsProviders;
14327
14589
  socialProfiles: string[];
14590
+ hiddenFromSearchEngines: boolean;
14328
14591
  };
14329
14592
  layout: {
14330
14593
  layoutId: string;
@@ -14404,6 +14667,7 @@ declare const router: {
14404
14667
  updatedAt: number;
14405
14668
  analytics: AnalyticsProviders;
14406
14669
  socialProfiles: string[];
14670
+ hiddenFromSearchEngines: boolean;
14407
14671
  };
14408
14672
  layout: {
14409
14673
  layoutId: string;
@@ -14496,6 +14760,7 @@ declare const router: {
14496
14760
  updatedAt: number;
14497
14761
  analytics: AnalyticsProviders;
14498
14762
  socialProfiles: string[];
14763
+ hiddenFromSearchEngines: boolean;
14499
14764
  };
14500
14765
  layout: {
14501
14766
  layoutId: string;
@@ -14575,6 +14840,7 @@ declare const router: {
14575
14840
  updatedAt: number;
14576
14841
  analytics: AnalyticsProviders;
14577
14842
  socialProfiles: string[];
14843
+ hiddenFromSearchEngines: boolean;
14578
14844
  };
14579
14845
  layout: {
14580
14846
  layoutId: string;
@@ -14742,6 +15008,7 @@ declare const router: {
14742
15008
  ipAddress?: string | null | undefined;
14743
15009
  userAgent?: string | null | undefined;
14744
15010
  activeOrganizationId?: string | null | undefined;
15011
+ local?: boolean | null | undefined;
14745
15012
  studio?: boolean | null | undefined;
14746
15013
  };
14747
15014
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -14780,6 +15047,7 @@ declare const router: {
14780
15047
  ipAddress?: string | null | undefined;
14781
15048
  userAgent?: string | null | undefined;
14782
15049
  activeOrganizationId?: string | null | undefined;
15050
+ local?: boolean | null | undefined;
14783
15051
  studio?: boolean | null | undefined;
14784
15052
  };
14785
15053
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14834,6 +15102,7 @@ declare const router: {
14834
15102
  ipAddress?: string | null | undefined;
14835
15103
  userAgent?: string | null | undefined;
14836
15104
  activeOrganizationId?: string | null | undefined;
15105
+ local?: boolean | null | undefined;
14837
15106
  studio?: boolean | null | undefined;
14838
15107
  };
14839
15108
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -14872,6 +15141,7 @@ declare const router: {
14872
15141
  ipAddress?: string | null | undefined;
14873
15142
  userAgent?: string | null | undefined;
14874
15143
  activeOrganizationId?: string | null | undefined;
15144
+ local?: boolean | null | undefined;
14875
15145
  studio?: boolean | null | undefined;
14876
15146
  };
14877
15147
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -14924,6 +15194,7 @@ declare const router: {
14924
15194
  ipAddress?: string | null | undefined;
14925
15195
  userAgent?: string | null | undefined;
14926
15196
  activeOrganizationId?: string | null | undefined;
15197
+ local?: boolean | null | undefined;
14927
15198
  studio?: boolean | null | undefined;
14928
15199
  };
14929
15200
  }>, import("zod").ZodObject<{
@@ -14976,6 +15247,7 @@ declare const router: {
14976
15247
  ipAddress?: string | null | undefined;
14977
15248
  userAgent?: string | null | undefined;
14978
15249
  activeOrganizationId?: string | null | undefined;
15250
+ local?: boolean | null | undefined;
14979
15251
  studio?: boolean | null | undefined;
14980
15252
  };
14981
15253
  }>, import("zod").ZodObject<{
@@ -15035,6 +15307,7 @@ declare const router: {
15035
15307
  ipAddress?: string | null | undefined;
15036
15308
  userAgent?: string | null | undefined;
15037
15309
  activeOrganizationId?: string | null | undefined;
15310
+ local?: boolean | null | undefined;
15038
15311
  studio?: boolean | null | undefined;
15039
15312
  };
15040
15313
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15073,6 +15346,7 @@ declare const router: {
15073
15346
  ipAddress?: string | null | undefined;
15074
15347
  userAgent?: string | null | undefined;
15075
15348
  activeOrganizationId?: string | null | undefined;
15349
+ local?: boolean | null | undefined;
15076
15350
  studio?: boolean | null | undefined;
15077
15351
  };
15078
15352
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15263,6 +15537,7 @@ declare const router: {
15263
15537
  ipAddress?: string | null | undefined;
15264
15538
  userAgent?: string | null | undefined;
15265
15539
  activeOrganizationId?: string | null | undefined;
15540
+ local?: boolean | null | undefined;
15266
15541
  studio?: boolean | null | undefined;
15267
15542
  };
15268
15543
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15301,6 +15576,7 @@ declare const router: {
15301
15576
  ipAddress?: string | null | undefined;
15302
15577
  userAgent?: string | null | undefined;
15303
15578
  activeOrganizationId?: string | null | undefined;
15579
+ local?: boolean | null | undefined;
15304
15580
  studio?: boolean | null | undefined;
15305
15581
  };
15306
15582
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15403,6 +15679,7 @@ declare const router: {
15403
15679
  ipAddress?: string | null | undefined;
15404
15680
  userAgent?: string | null | undefined;
15405
15681
  activeOrganizationId?: string | null | undefined;
15682
+ local?: boolean | null | undefined;
15406
15683
  studio?: boolean | null | undefined;
15407
15684
  };
15408
15685
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15441,6 +15718,7 @@ declare const router: {
15441
15718
  ipAddress?: string | null | undefined;
15442
15719
  userAgent?: string | null | undefined;
15443
15720
  activeOrganizationId?: string | null | undefined;
15721
+ local?: boolean | null | undefined;
15444
15722
  studio?: boolean | null | undefined;
15445
15723
  };
15446
15724
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15543,6 +15821,7 @@ declare const router: {
15543
15821
  ipAddress?: string | null | undefined;
15544
15822
  userAgent?: string | null | undefined;
15545
15823
  activeOrganizationId?: string | null | undefined;
15824
+ local?: boolean | null | undefined;
15546
15825
  studio?: boolean | null | undefined;
15547
15826
  };
15548
15827
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15581,6 +15860,7 @@ declare const router: {
15581
15860
  ipAddress?: string | null | undefined;
15582
15861
  userAgent?: string | null | undefined;
15583
15862
  activeOrganizationId?: string | null | undefined;
15863
+ local?: boolean | null | undefined;
15584
15864
  studio?: boolean | null | undefined;
15585
15865
  };
15586
15866
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15682,6 +15962,7 @@ declare const router: {
15682
15962
  ipAddress?: string | null | undefined;
15683
15963
  userAgent?: string | null | undefined;
15684
15964
  activeOrganizationId?: string | null | undefined;
15965
+ local?: boolean | null | undefined;
15685
15966
  studio?: boolean | null | undefined;
15686
15967
  };
15687
15968
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15720,6 +16001,7 @@ declare const router: {
15720
16001
  ipAddress?: string | null | undefined;
15721
16002
  userAgent?: string | null | undefined;
15722
16003
  activeOrganizationId?: string | null | undefined;
16004
+ local?: boolean | null | undefined;
15723
16005
  studio?: boolean | null | undefined;
15724
16006
  };
15725
16007
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15773,6 +16055,7 @@ declare const router: {
15773
16055
  ipAddress?: string | null | undefined;
15774
16056
  userAgent?: string | null | undefined;
15775
16057
  activeOrganizationId?: string | null | undefined;
16058
+ local?: boolean | null | undefined;
15776
16059
  studio?: boolean | null | undefined;
15777
16060
  };
15778
16061
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -15811,6 +16094,7 @@ declare const router: {
15811
16094
  ipAddress?: string | null | undefined;
15812
16095
  userAgent?: string | null | undefined;
15813
16096
  activeOrganizationId?: string | null | undefined;
16097
+ local?: boolean | null | undefined;
15814
16098
  studio?: boolean | null | undefined;
15815
16099
  };
15816
16100
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -15911,6 +16195,7 @@ declare const router: {
15911
16195
  ipAddress?: string | null | undefined;
15912
16196
  userAgent?: string | null | undefined;
15913
16197
  activeOrganizationId?: string | null | undefined;
16198
+ local?: boolean | null | undefined;
15914
16199
  studio?: boolean | null | undefined;
15915
16200
  };
15916
16201
  }>, import("zod").ZodObject<{
@@ -16082,6 +16367,7 @@ declare const router: {
16082
16367
  ipAddress?: string | null | undefined;
16083
16368
  userAgent?: string | null | undefined;
16084
16369
  activeOrganizationId?: string | null | undefined;
16370
+ local?: boolean | null | undefined;
16085
16371
  studio?: boolean | null | undefined;
16086
16372
  };
16087
16373
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16120,6 +16406,7 @@ declare const router: {
16120
16406
  ipAddress?: string | null | undefined;
16121
16407
  userAgent?: string | null | undefined;
16122
16408
  activeOrganizationId?: string | null | undefined;
16409
+ local?: boolean | null | undefined;
16123
16410
  studio?: boolean | null | undefined;
16124
16411
  };
16125
16412
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -16233,6 +16520,7 @@ declare const router: {
16233
16520
  ipAddress?: string | null | undefined;
16234
16521
  userAgent?: string | null | undefined;
16235
16522
  activeOrganizationId?: string | null | undefined;
16523
+ local?: boolean | null | undefined;
16236
16524
  studio?: boolean | null | undefined;
16237
16525
  };
16238
16526
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16271,6 +16559,7 @@ declare const router: {
16271
16559
  ipAddress?: string | null | undefined;
16272
16560
  userAgent?: string | null | undefined;
16273
16561
  activeOrganizationId?: string | null | undefined;
16562
+ local?: boolean | null | undefined;
16274
16563
  studio?: boolean | null | undefined;
16275
16564
  };
16276
16565
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -16371,6 +16660,7 @@ declare const router: {
16371
16660
  ipAddress?: string | null | undefined;
16372
16661
  userAgent?: string | null | undefined;
16373
16662
  activeOrganizationId?: string | null | undefined;
16663
+ local?: boolean | null | undefined;
16374
16664
  studio?: boolean | null | undefined;
16375
16665
  };
16376
16666
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16409,6 +16699,7 @@ declare const router: {
16409
16699
  ipAddress?: string | null | undefined;
16410
16700
  userAgent?: string | null | undefined;
16411
16701
  activeOrganizationId?: string | null | undefined;
16702
+ local?: boolean | null | undefined;
16412
16703
  studio?: boolean | null | undefined;
16413
16704
  };
16414
16705
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -16509,6 +16800,7 @@ declare const router: {
16509
16800
  ipAddress?: string | null | undefined;
16510
16801
  userAgent?: string | null | undefined;
16511
16802
  activeOrganizationId?: string | null | undefined;
16803
+ local?: boolean | null | undefined;
16512
16804
  studio?: boolean | null | undefined;
16513
16805
  };
16514
16806
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16547,6 +16839,7 @@ declare const router: {
16547
16839
  ipAddress?: string | null | undefined;
16548
16840
  userAgent?: string | null | undefined;
16549
16841
  activeOrganizationId?: string | null | undefined;
16842
+ local?: boolean | null | undefined;
16550
16843
  studio?: boolean | null | undefined;
16551
16844
  };
16552
16845
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -16648,6 +16941,7 @@ declare const router: {
16648
16941
  ipAddress?: string | null | undefined;
16649
16942
  userAgent?: string | null | undefined;
16650
16943
  activeOrganizationId?: string | null | undefined;
16944
+ local?: boolean | null | undefined;
16651
16945
  studio?: boolean | null | undefined;
16652
16946
  };
16653
16947
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16686,6 +16980,7 @@ declare const router: {
16686
16980
  ipAddress?: string | null | undefined;
16687
16981
  userAgent?: string | null | undefined;
16688
16982
  activeOrganizationId?: string | null | undefined;
16983
+ local?: boolean | null | undefined;
16689
16984
  studio?: boolean | null | undefined;
16690
16985
  };
16691
16986
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -16783,6 +17078,7 @@ declare const router: {
16783
17078
  ipAddress?: string | null | undefined;
16784
17079
  userAgent?: string | null | undefined;
16785
17080
  activeOrganizationId?: string | null | undefined;
17081
+ local?: boolean | null | undefined;
16786
17082
  studio?: boolean | null | undefined;
16787
17083
  };
16788
17084
  }>, import("zod").ZodObject<{
@@ -16882,6 +17178,7 @@ declare const router: {
16882
17178
  ipAddress?: string | null | undefined;
16883
17179
  userAgent?: string | null | undefined;
16884
17180
  activeOrganizationId?: string | null | undefined;
17181
+ local?: boolean | null | undefined;
16885
17182
  studio?: boolean | null | undefined;
16886
17183
  };
16887
17184
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -16920,6 +17217,7 @@ declare const router: {
16920
17217
  ipAddress?: string | null | undefined;
16921
17218
  userAgent?: string | null | undefined;
16922
17219
  activeOrganizationId?: string | null | undefined;
17220
+ local?: boolean | null | undefined;
16923
17221
  studio?: boolean | null | undefined;
16924
17222
  };
16925
17223
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -17057,6 +17355,7 @@ declare const router: {
17057
17355
  ipAddress?: string | null | undefined;
17058
17356
  userAgent?: string | null | undefined;
17059
17357
  activeOrganizationId?: string | null | undefined;
17358
+ local?: boolean | null | undefined;
17060
17359
  studio?: boolean | null | undefined;
17061
17360
  };
17062
17361
  }>, import("zod").ZodObject<{
@@ -17120,6 +17419,7 @@ declare const router: {
17120
17419
  ipAddress?: string | null | undefined;
17121
17420
  userAgent?: string | null | undefined;
17122
17421
  activeOrganizationId?: string | null | undefined;
17422
+ local?: boolean | null | undefined;
17123
17423
  studio?: boolean | null | undefined;
17124
17424
  };
17125
17425
  }>, import("zod").ZodObject<{
@@ -17186,6 +17486,7 @@ declare const router: {
17186
17486
  ipAddress?: string | null | undefined;
17187
17487
  userAgent?: string | null | undefined;
17188
17488
  activeOrganizationId?: string | null | undefined;
17489
+ local?: boolean | null | undefined;
17189
17490
  studio?: boolean | null | undefined;
17190
17491
  };
17191
17492
  }>, import("zod").ZodObject<{
@@ -17248,6 +17549,7 @@ declare const router: {
17248
17549
  ipAddress?: string | null | undefined;
17249
17550
  userAgent?: string | null | undefined;
17250
17551
  activeOrganizationId?: string | null | undefined;
17552
+ local?: boolean | null | undefined;
17251
17553
  studio?: boolean | null | undefined;
17252
17554
  };
17253
17555
  }>, import("zod").ZodObject<{
@@ -17317,6 +17619,7 @@ declare const router: {
17317
17619
  ipAddress?: string | null | undefined;
17318
17620
  userAgent?: string | null | undefined;
17319
17621
  activeOrganizationId?: string | null | undefined;
17622
+ local?: boolean | null | undefined;
17320
17623
  studio?: boolean | null | undefined;
17321
17624
  };
17322
17625
  }>, import("zod").ZodObject<{
@@ -17444,6 +17747,7 @@ declare const router: {
17444
17747
  ipAddress?: string | null | undefined;
17445
17748
  userAgent?: string | null | undefined;
17446
17749
  activeOrganizationId?: string | null | undefined;
17750
+ local?: boolean | null | undefined;
17447
17751
  studio?: boolean | null | undefined;
17448
17752
  };
17449
17753
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -17482,6 +17786,7 @@ declare const router: {
17482
17786
  ipAddress?: string | null | undefined;
17483
17787
  userAgent?: string | null | undefined;
17484
17788
  activeOrganizationId?: string | null | undefined;
17789
+ local?: boolean | null | undefined;
17485
17790
  studio?: boolean | null | undefined;
17486
17791
  };
17487
17792
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -17554,6 +17859,7 @@ declare const router: {
17554
17859
  ipAddress?: string | null | undefined;
17555
17860
  userAgent?: string | null | undefined;
17556
17861
  activeOrganizationId?: string | null | undefined;
17862
+ local?: boolean | null | undefined;
17557
17863
  studio?: boolean | null | undefined;
17558
17864
  };
17559
17865
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -17592,6 +17898,7 @@ declare const router: {
17592
17898
  ipAddress?: string | null | undefined;
17593
17899
  userAgent?: string | null | undefined;
17594
17900
  activeOrganizationId?: string | null | undefined;
17901
+ local?: boolean | null | undefined;
17595
17902
  studio?: boolean | null | undefined;
17596
17903
  };
17597
17904
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -17664,6 +17971,7 @@ declare const router: {
17664
17971
  ipAddress?: string | null | undefined;
17665
17972
  userAgent?: string | null | undefined;
17666
17973
  activeOrganizationId?: string | null | undefined;
17974
+ local?: boolean | null | undefined;
17667
17975
  studio?: boolean | null | undefined;
17668
17976
  };
17669
17977
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -17702,6 +18010,7 @@ declare const router: {
17702
18010
  ipAddress?: string | null | undefined;
17703
18011
  userAgent?: string | null | undefined;
17704
18012
  activeOrganizationId?: string | null | undefined;
18013
+ local?: boolean | null | undefined;
17705
18014
  studio?: boolean | null | undefined;
17706
18015
  };
17707
18016
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -17989,6 +18298,7 @@ declare const router: {
17989
18298
  ipAddress?: string | null | undefined;
17990
18299
  userAgent?: string | null | undefined;
17991
18300
  activeOrganizationId?: string | null | undefined;
18301
+ local?: boolean | null | undefined;
17992
18302
  studio?: boolean | null | undefined;
17993
18303
  };
17994
18304
  }>, import("zod").ZodObject<{
@@ -18054,6 +18364,7 @@ declare const router: {
18054
18364
  ipAddress?: string | null | undefined;
18055
18365
  userAgent?: string | null | undefined;
18056
18366
  activeOrganizationId?: string | null | undefined;
18367
+ local?: boolean | null | undefined;
18057
18368
  studio?: boolean | null | undefined;
18058
18369
  };
18059
18370
  }>, import("zod").ZodObject<{
@@ -18105,6 +18416,7 @@ declare const router: {
18105
18416
  ipAddress?: string | null | undefined;
18106
18417
  userAgent?: string | null | undefined;
18107
18418
  activeOrganizationId?: string | null | undefined;
18419
+ local?: boolean | null | undefined;
18108
18420
  studio?: boolean | null | undefined;
18109
18421
  };
18110
18422
  }>, import("zod").ZodObject<{
@@ -18156,39 +18468,22 @@ declare const router: {
18156
18468
  ipAddress?: string | null | undefined;
18157
18469
  userAgent?: string | null | undefined;
18158
18470
  activeOrganizationId?: string | null | undefined;
18471
+ local?: boolean | null | undefined;
18159
18472
  studio?: boolean | null | undefined;
18160
18473
  };
18161
18474
  }>, import("zod").ZodObject<{
18162
18475
  projectId: import("zod").ZodNumber;
18163
18476
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
18477
+ conflicts: never[];
18478
+ lost: never[];
18479
+ warnings: never[];
18480
+ translating: string[];
18481
+ findings: never[];
18482
+ checking: never[];
18483
+ token: string;
18164
18484
  blockers: Problem[];
18165
- conflicts: Conflict[];
18166
- lost: LostChange[];
18167
- warnings: Problem[];
18168
18485
  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
18486
  defaultLocale: string | null;
18191
- token: string;
18192
18487
  overview: {
18193
18488
  status: "pending";
18194
18489
  } | {
@@ -18202,35 +18497,18 @@ declare const router: {
18202
18497
  readonly status: "none";
18203
18498
  };
18204
18499
  code: PreviewCode | null;
18500
+ heldLocales: string[];
18205
18501
  }, {
18502
+ conflicts: never[];
18503
+ lost: never[];
18504
+ warnings: never[];
18505
+ translating: string[];
18506
+ findings: never[];
18507
+ checking: never[];
18508
+ token: string;
18206
18509
  blockers: Problem[];
18207
- conflicts: Conflict[];
18208
- lost: LostChange[];
18209
- warnings: Problem[];
18210
18510
  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
18511
  defaultLocale: string | null;
18233
- token: string;
18234
18512
  overview: {
18235
18513
  status: "pending";
18236
18514
  } | {
@@ -18244,6 +18522,7 @@ declare const router: {
18244
18522
  readonly status: "none";
18245
18523
  };
18246
18524
  code: PreviewCode | null;
18525
+ heldLocales: string[];
18247
18526
  }>, Record<never, never>, Record<never, never>>;
18248
18527
  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
18528
  draft: DraftRequest | null;
@@ -18291,6 +18570,7 @@ declare const router: {
18291
18570
  ipAddress?: string | null | undefined;
18292
18571
  userAgent?: string | null | undefined;
18293
18572
  activeOrganizationId?: string | null | undefined;
18573
+ local?: boolean | null | undefined;
18294
18574
  studio?: boolean | null | undefined;
18295
18575
  };
18296
18576
  }>, import("zod").ZodObject<{
@@ -18342,11 +18622,12 @@ declare const router: {
18342
18622
  ipAddress?: string | null | undefined;
18343
18623
  userAgent?: string | null | undefined;
18344
18624
  activeOrganizationId?: string | null | undefined;
18625
+ local?: boolean | null | undefined;
18345
18626
  studio?: boolean | null | undefined;
18346
18627
  };
18347
18628
  }>, import("zod").ZodObject<{
18348
18629
  projectId: import("zod").ZodNumber;
18349
- token: import("zod").ZodString;
18630
+ token: import("zod").ZodOptional<import("zod").ZodString>;
18350
18631
  revision: import("zod").ZodOptional<import("zod").ZodString>;
18351
18632
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<PublishResult, PublishResult>, Record<never, never>, Record<never, never>>;
18352
18633
  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 +18676,7 @@ declare const router: {
18395
18676
  ipAddress?: string | null | undefined;
18396
18677
  userAgent?: string | null | undefined;
18397
18678
  activeOrganizationId?: string | null | undefined;
18679
+ local?: boolean | null | undefined;
18398
18680
  studio?: boolean | null | undefined;
18399
18681
  };
18400
18682
  }>, import("zod").ZodObject<{
@@ -18450,6 +18732,7 @@ declare const router: {
18450
18732
  ipAddress?: string | null | undefined;
18451
18733
  userAgent?: string | null | undefined;
18452
18734
  activeOrganizationId?: string | null | undefined;
18735
+ local?: boolean | null | undefined;
18453
18736
  studio?: boolean | null | undefined;
18454
18737
  };
18455
18738
  }>, import("zod").ZodObject<{
@@ -18514,6 +18797,7 @@ declare const router: {
18514
18797
  ipAddress?: string | null | undefined;
18515
18798
  userAgent?: string | null | undefined;
18516
18799
  activeOrganizationId?: string | null | undefined;
18800
+ local?: boolean | null | undefined;
18517
18801
  studio?: boolean | null | undefined;
18518
18802
  };
18519
18803
  }>, import("zod").ZodObject<{
@@ -18567,13 +18851,14 @@ declare const router: {
18567
18851
  ipAddress?: string | null | undefined;
18568
18852
  userAgent?: string | null | undefined;
18569
18853
  activeOrganizationId?: string | null | undefined;
18854
+ local?: boolean | null | undefined;
18570
18855
  studio?: boolean | null | undefined;
18571
18856
  };
18572
18857
  }>, import("zod").ZodObject<{
18573
18858
  projectId: import("zod").ZodNumber;
18574
18859
  }, 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
18860
  };
18576
- patrol: {
18861
+ specialists: {
18577
18862
  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
18863
  draft: DraftRequest | null;
18579
18864
  locale: string | undefined;
@@ -18620,23 +18905,16 @@ declare const router: {
18620
18905
  ipAddress?: string | null | undefined;
18621
18906
  userAgent?: string | null | undefined;
18622
18907
  activeOrganizationId?: string | null | undefined;
18908
+ local?: boolean | null | undefined;
18623
18909
  studio?: boolean | null | undefined;
18624
18910
  };
18625
18911
  }>, import("zod").ZodObject<{
18626
18912
  projectId: import("zod").ZodNumber;
18627
- patrollers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
18913
+ specialists: import("zod").ZodArray<import("zod").ZodString>;
18628
18914
  }, 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;
18915
+ specialists: import("@camox/api-contract/specialists").SpecialistView[];
18634
18916
  }, {
18635
- patrollers: import("@camox/api-contract/patrol").PatrollerView[];
18636
- patrolDraft: {
18637
- id: string;
18638
- name: string | null;
18639
- } | null;
18917
+ specialists: import("@camox/api-contract/specialists").SpecialistView[];
18640
18918
  }>, Record<never, never>, Record<never, never>>;
18641
18919
  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
18920
  draft: DraftRequest | null;
@@ -18686,6 +18964,7 @@ declare const router: {
18686
18964
  ipAddress?: string | null | undefined;
18687
18965
  userAgent?: string | null | undefined;
18688
18966
  activeOrganizationId?: string | null | undefined;
18967
+ local?: boolean | null | undefined;
18689
18968
  studio?: boolean | null | undefined;
18690
18969
  };
18691
18970
  }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
@@ -18724,6 +19003,7 @@ declare const router: {
18724
19003
  ipAddress?: string | null | undefined;
18725
19004
  userAgent?: string | null | undefined;
18726
19005
  activeOrganizationId?: string | null | undefined;
19006
+ local?: boolean | null | undefined;
18727
19007
  studio?: boolean | null | undefined;
18728
19008
  };
18729
19009
  }>, Record<never, never>>, import("zod").ZodObject<{
@@ -18784,6 +19064,7 @@ declare const router: {
18784
19064
  ipAddress?: string | null | undefined;
18785
19065
  userAgent?: string | null | undefined;
18786
19066
  activeOrganizationId?: string | null | undefined;
19067
+ local?: boolean | null | undefined;
18787
19068
  studio?: boolean | null | undefined;
18788
19069
  };
18789
19070
  }>, import("zod").ZodObject<{
@@ -18791,8 +19072,8 @@ declare const router: {
18791
19072
  findingId: import("zod").ZodNumber;
18792
19073
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<void, void>, Record<never, never>, Record<never, never>>;
18793
19074
  };
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>>, {
19075
+ patrol: {
19076
+ 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
19077
  draft: DraftRequest | null;
18797
19078
  locale: string | undefined;
18798
19079
  publishingDraft: string | undefined;
@@ -18838,35 +19119,20 @@ declare const router: {
18838
19119
  ipAddress?: string | null | undefined;
18839
19120
  userAgent?: string | null | undefined;
18840
19121
  activeOrganizationId?: string | null | undefined;
19122
+ local?: boolean | null | undefined;
18841
19123
  studio?: boolean | null | undefined;
18842
19124
  };
18843
19125
  }>, 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>>, {
19126
+ projectId: import("zod").ZodNumber;
19127
+ patrollers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
19128
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
19129
+ patrollers: import("@camox/api-contract/specialists").SpecialistView[];
19130
+ patrolDraft: null;
19131
+ }, {
19132
+ patrollers: import("@camox/api-contract/specialists").SpecialistView[];
19133
+ patrolDraft: null;
19134
+ }>, Record<never, never>, Record<never, never>>;
19135
+ 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
19136
  draft: DraftRequest | null;
18871
19137
  locale: string | undefined;
18872
19138
  publishingDraft: string | undefined;
@@ -18876,7 +19142,9 @@ declare const router: {
18876
19142
  locale: string | undefined;
18877
19143
  publishingDraft: string | undefined;
18878
19144
  look: LookGrant | undefined;
18879
- }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19145
+ }>>, {
19146
+ draft: DraftRequest | null;
19147
+ } & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18880
19148
  draft: DraftRequest | null;
18881
19149
  locale: string | undefined;
18882
19150
  publishingDraft: string | undefined;
@@ -18912,40 +19180,10 @@ declare const router: {
18912
19180
  ipAddress?: string | null | undefined;
18913
19181
  userAgent?: string | null | undefined;
18914
19182
  activeOrganizationId?: string | null | undefined;
19183
+ local?: boolean | null | undefined;
18915
19184
  studio?: boolean | null | undefined;
18916
19185
  };
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
- }[];
18928
- }, {
18929
- client: {
18930
- name: string;
18931
- verified: boolean;
18932
- };
18933
- scopes: {
18934
- scope: "drafts:write" | "website:read";
18935
- description: string;
18936
- }[];
18937
- }>, Record<never, never>, Record<never, never>>;
18938
- list: 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>>, {
18939
- draft: DraftRequest | null;
18940
- locale: string | undefined;
18941
- publishingDraft: string | undefined;
18942
- look: LookGrant | undefined;
18943
- }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18944
- draft: DraftRequest | null;
18945
- locale: string | undefined;
18946
- publishingDraft: string | undefined;
18947
- look: LookGrant | undefined;
18948
- }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19186
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
18949
19187
  draft: DraftRequest | null;
18950
19188
  locale: string | undefined;
18951
19189
  publishingDraft: string | undefined;
@@ -18981,26 +19219,731 @@ declare const router: {
18981
19219
  ipAddress?: string | null | undefined;
18982
19220
  userAgent?: string | null | undefined;
18983
19221
  activeOrganizationId?: string | null | undefined;
19222
+ local?: boolean | null | undefined;
18984
19223
  studio?: boolean | null | undefined;
18985
19224
  };
18986
- }>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
18987
- id: string;
18988
- client: {
18989
- name: string;
18990
- verified: boolean;
19225
+ }>, Record<never, never>>, import("zod").ZodObject<{
19226
+ projectId: import("zod").ZodNumber;
19227
+ findingId: import("zod").ZodNumber;
19228
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
19229
+ applied: false;
19230
+ } | {
19231
+ applied: true;
19232
+ }, {
19233
+ applied: false;
19234
+ } | {
19235
+ applied: true;
19236
+ }>, Record<never, never>, Record<never, never>>;
19237
+ 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>>, {
19238
+ draft: DraftRequest | null;
19239
+ locale: string | undefined;
19240
+ publishingDraft: string | undefined;
19241
+ look: LookGrant | undefined;
19242
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19243
+ draft: DraftRequest | null;
19244
+ locale: string | undefined;
19245
+ publishingDraft: string | undefined;
19246
+ look: LookGrant | undefined;
19247
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19248
+ draft: DraftRequest | null;
19249
+ locale: string | undefined;
19250
+ publishingDraft: string | undefined;
19251
+ look: LookGrant | undefined;
19252
+ }>, {
19253
+ db: Database;
19254
+ env: Bindings;
19255
+ headers: Headers;
19256
+ client: string;
19257
+ telemetryDisabled: boolean;
19258
+ waitUntil: (promise: Promise<unknown>) => void;
19259
+ apiOrigin?: string;
19260
+ draft: DraftRequest | null;
19261
+ locale: string | undefined;
19262
+ publishingDraft: string | undefined;
19263
+ look: LookGrant | undefined;
19264
+ user: {
19265
+ id: string;
19266
+ createdAt: Date;
19267
+ updatedAt: Date;
19268
+ email: string;
19269
+ emailVerified: boolean;
19270
+ name: string;
19271
+ image?: string | null | undefined;
19272
+ };
19273
+ session: {
19274
+ id: string;
19275
+ createdAt: Date;
19276
+ updatedAt: Date;
19277
+ userId: string;
19278
+ expiresAt: Date;
19279
+ token: string;
19280
+ ipAddress?: string | null | undefined;
19281
+ userAgent?: string | null | undefined;
19282
+ activeOrganizationId?: string | null | undefined;
19283
+ local?: boolean | null | undefined;
19284
+ studio?: boolean | null | undefined;
19285
+ };
19286
+ }>, import("zod").ZodObject<{
19287
+ projectId: import("zod").ZodNumber;
19288
+ findingId: import("zod").ZodNumber;
19289
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<void, void>, Record<never, never>, Record<never, never>>;
19290
+ };
19291
+ code: {
19292
+ 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>>, {
19293
+ draft: DraftRequest | null;
19294
+ locale: string | undefined;
19295
+ publishingDraft: string | undefined;
19296
+ look: LookGrant | undefined;
19297
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19298
+ draft: DraftRequest | null;
19299
+ locale: string | undefined;
19300
+ publishingDraft: string | undefined;
19301
+ look: LookGrant | undefined;
19302
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19303
+ draft: DraftRequest | null;
19304
+ locale: string | undefined;
19305
+ publishingDraft: string | undefined;
19306
+ look: LookGrant | undefined;
19307
+ }>, {
19308
+ db: Database;
19309
+ env: Bindings;
19310
+ headers: Headers;
19311
+ client: string;
19312
+ telemetryDisabled: boolean;
19313
+ waitUntil: (promise: Promise<unknown>) => void;
19314
+ apiOrigin?: string;
19315
+ draft: DraftRequest | null;
19316
+ locale: string | undefined;
19317
+ publishingDraft: string | undefined;
19318
+ look: LookGrant | undefined;
19319
+ user: {
19320
+ id: string;
19321
+ createdAt: Date;
19322
+ updatedAt: Date;
19323
+ email: string;
19324
+ emailVerified: boolean;
19325
+ name: string;
19326
+ image?: string | null | undefined;
19327
+ };
19328
+ session: {
19329
+ id: string;
19330
+ createdAt: Date;
19331
+ updatedAt: Date;
19332
+ userId: string;
19333
+ expiresAt: Date;
19334
+ token: string;
19335
+ ipAddress?: string | null | undefined;
19336
+ userAgent?: string | null | undefined;
19337
+ activeOrganizationId?: string | null | undefined;
19338
+ local?: boolean | null | undefined;
19339
+ studio?: boolean | null | undefined;
19340
+ };
19341
+ }>, import("zod").ZodObject<{
19342
+ projectUuid: import("zod").ZodUUID;
19343
+ branch: import("zod").ZodString;
19344
+ draftId: import("zod").ZodOptional<import("zod").ZodString>;
19345
+ bundle: import("zod").ZodInstanceOf<Blob>;
19346
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<AsyncGenerator<{
19347
+ type: "progress";
19348
+ step: PushStep;
19349
+ } | {
19350
+ draftId: string;
19351
+ result: BuildResult;
19352
+ studioUrl: string;
19353
+ step?: undefined;
19354
+ type: "pushed";
19355
+ }, void, unknown>, AsyncGenerator<{
19356
+ type: "progress";
19357
+ step: PushStep;
19358
+ } | {
19359
+ draftId: string;
19360
+ result: BuildResult;
19361
+ studioUrl: string;
19362
+ step?: undefined;
19363
+ type: "pushed";
19364
+ }, void, unknown>>, Record<never, never>, Record<never, never>>;
19365
+ };
19366
+ connectedAgents: {
19367
+ 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>>, {
19368
+ draft: DraftRequest | null;
19369
+ locale: string | undefined;
19370
+ publishingDraft: string | undefined;
19371
+ look: LookGrant | undefined;
19372
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19373
+ draft: DraftRequest | null;
19374
+ locale: string | undefined;
19375
+ publishingDraft: string | undefined;
19376
+ look: LookGrant | undefined;
19377
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19378
+ draft: DraftRequest | null;
19379
+ locale: string | undefined;
19380
+ publishingDraft: string | undefined;
19381
+ look: LookGrant | undefined;
19382
+ }>, {
19383
+ db: Database;
19384
+ env: Bindings;
19385
+ headers: Headers;
19386
+ client: string;
19387
+ telemetryDisabled: boolean;
19388
+ waitUntil: (promise: Promise<unknown>) => void;
19389
+ apiOrigin?: string;
19390
+ draft: DraftRequest | null;
19391
+ locale: string | undefined;
19392
+ publishingDraft: string | undefined;
19393
+ look: LookGrant | undefined;
19394
+ user: {
19395
+ id: string;
19396
+ createdAt: Date;
19397
+ updatedAt: Date;
19398
+ email: string;
19399
+ emailVerified: boolean;
19400
+ name: string;
19401
+ image?: string | null | undefined;
19402
+ };
19403
+ session: {
19404
+ id: string;
19405
+ createdAt: Date;
19406
+ updatedAt: Date;
19407
+ userId: string;
19408
+ expiresAt: Date;
19409
+ token: string;
19410
+ ipAddress?: string | null | undefined;
19411
+ userAgent?: string | null | undefined;
19412
+ activeOrganizationId?: string | null | undefined;
19413
+ local?: boolean | null | undefined;
19414
+ studio?: boolean | null | undefined;
19415
+ };
19416
+ }>, import("zod").ZodObject<{
19417
+ oauthQuery: import("zod").ZodString;
19418
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
19419
+ client: {
19420
+ name: string;
19421
+ verified: boolean;
19422
+ };
19423
+ scopes: {
19424
+ scope: "drafts:write" | "website:read";
19425
+ description: string;
19426
+ }[];
19427
+ }, {
19428
+ client: {
19429
+ name: string;
19430
+ verified: boolean;
19431
+ };
19432
+ scopes: {
19433
+ scope: "drafts:write" | "website:read";
19434
+ description: string;
19435
+ }[];
19436
+ }>, Record<never, never>, Record<never, never>>;
19437
+ list: 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>>, {
19438
+ draft: DraftRequest | null;
19439
+ locale: string | undefined;
19440
+ publishingDraft: string | undefined;
19441
+ look: LookGrant | undefined;
19442
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19443
+ draft: DraftRequest | null;
19444
+ locale: string | undefined;
19445
+ publishingDraft: string | undefined;
19446
+ look: LookGrant | undefined;
19447
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19448
+ draft: DraftRequest | null;
19449
+ locale: string | undefined;
19450
+ publishingDraft: string | undefined;
19451
+ look: LookGrant | undefined;
19452
+ }>, {
19453
+ db: Database;
19454
+ env: Bindings;
19455
+ headers: Headers;
19456
+ client: string;
19457
+ telemetryDisabled: boolean;
19458
+ waitUntil: (promise: Promise<unknown>) => void;
19459
+ apiOrigin?: string;
19460
+ draft: DraftRequest | null;
19461
+ locale: string | undefined;
19462
+ publishingDraft: string | undefined;
19463
+ look: LookGrant | undefined;
19464
+ user: {
19465
+ id: string;
19466
+ createdAt: Date;
19467
+ updatedAt: Date;
19468
+ email: string;
19469
+ emailVerified: boolean;
19470
+ name: string;
19471
+ image?: string | null | undefined;
19472
+ };
19473
+ session: {
19474
+ id: string;
19475
+ createdAt: Date;
19476
+ updatedAt: Date;
19477
+ userId: string;
19478
+ expiresAt: Date;
19479
+ token: string;
19480
+ ipAddress?: string | null | undefined;
19481
+ userAgent?: string | null | undefined;
19482
+ activeOrganizationId?: string | null | undefined;
19483
+ local?: boolean | null | undefined;
19484
+ studio?: boolean | null | undefined;
19485
+ };
19486
+ }>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
19487
+ id: string;
19488
+ client: {
19489
+ name: string;
19490
+ verified: boolean;
19491
+ };
19492
+ connectedAt: Date;
19493
+ lastUsedAt: Date | null;
19494
+ }[], {
19495
+ id: string;
19496
+ client: {
19497
+ name: string;
19498
+ verified: boolean;
19499
+ };
19500
+ connectedAt: Date;
19501
+ lastUsedAt: Date | null;
19502
+ }[]>, Record<never, never>, Record<never, never>>;
19503
+ disconnect: 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>>, {
19504
+ draft: DraftRequest | null;
19505
+ locale: string | undefined;
19506
+ publishingDraft: string | undefined;
19507
+ look: LookGrant | undefined;
19508
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19509
+ draft: DraftRequest | null;
19510
+ locale: string | undefined;
19511
+ publishingDraft: string | undefined;
19512
+ look: LookGrant | undefined;
19513
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19514
+ draft: DraftRequest | null;
19515
+ locale: string | undefined;
19516
+ publishingDraft: string | undefined;
19517
+ look: LookGrant | undefined;
19518
+ }>, {
19519
+ db: Database;
19520
+ env: Bindings;
19521
+ headers: Headers;
19522
+ client: string;
19523
+ telemetryDisabled: boolean;
19524
+ waitUntil: (promise: Promise<unknown>) => void;
19525
+ apiOrigin?: string;
19526
+ draft: DraftRequest | null;
19527
+ locale: string | undefined;
19528
+ publishingDraft: string | undefined;
19529
+ look: LookGrant | undefined;
19530
+ user: {
19531
+ id: string;
19532
+ createdAt: Date;
19533
+ updatedAt: Date;
19534
+ email: string;
19535
+ emailVerified: boolean;
19536
+ name: string;
19537
+ image?: string | null | undefined;
19538
+ };
19539
+ session: {
19540
+ id: string;
19541
+ createdAt: Date;
19542
+ updatedAt: Date;
19543
+ userId: string;
19544
+ expiresAt: Date;
19545
+ token: string;
19546
+ ipAddress?: string | null | undefined;
19547
+ userAgent?: string | null | undefined;
19548
+ activeOrganizationId?: string | null | undefined;
19549
+ local?: boolean | null | undefined;
19550
+ studio?: boolean | null | undefined;
19551
+ };
19552
+ }>, import("zod").ZodObject<{
19553
+ id: import("zod").ZodString;
19554
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<undefined, undefined>, Record<never, never>, Record<never, never>>;
19555
+ };
19556
+ operators: {
19557
+ 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>>, {
19558
+ draft: DraftRequest | null;
19559
+ locale: string | undefined;
19560
+ publishingDraft: string | undefined;
19561
+ look: LookGrant | undefined;
19562
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19563
+ draft: DraftRequest | null;
19564
+ locale: string | undefined;
19565
+ publishingDraft: string | undefined;
19566
+ look: LookGrant | undefined;
19567
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19568
+ draft: DraftRequest | null;
19569
+ locale: string | undefined;
19570
+ publishingDraft: string | undefined;
19571
+ look: LookGrant | undefined;
19572
+ }>, {
19573
+ db: Database;
19574
+ env: Bindings;
19575
+ headers: Headers;
19576
+ client: string;
19577
+ telemetryDisabled: boolean;
19578
+ waitUntil: (promise: Promise<unknown>) => void;
19579
+ apiOrigin?: string;
19580
+ draft: DraftRequest | null;
19581
+ locale: string | undefined;
19582
+ publishingDraft: string | undefined;
19583
+ look: LookGrant | undefined;
19584
+ user: {
19585
+ id: string;
19586
+ createdAt: Date;
19587
+ updatedAt: Date;
19588
+ email: string;
19589
+ emailVerified: boolean;
19590
+ name: string;
19591
+ image?: string | null | undefined;
19592
+ };
19593
+ session: {
19594
+ id: string;
19595
+ createdAt: Date;
19596
+ updatedAt: Date;
19597
+ userId: string;
19598
+ expiresAt: Date;
19599
+ token: string;
19600
+ ipAddress?: string | null | undefined;
19601
+ userAgent?: string | null | undefined;
19602
+ activeOrganizationId?: string | null | undefined;
19603
+ local?: boolean | null | undefined;
19604
+ studio?: boolean | null | undefined;
19605
+ };
19606
+ }>, import("@orpc/server").Schema<unknown, unknown>, import("@orpc/server").Schema<boolean, boolean>, Record<never, never>, Record<never, never>>;
19607
+ };
19608
+ claimLinks: {
19609
+ 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>>, {
19610
+ draft: DraftRequest | null;
19611
+ locale: string | undefined;
19612
+ publishingDraft: string | undefined;
19613
+ look: LookGrant | undefined;
19614
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19615
+ draft: DraftRequest | null;
19616
+ locale: string | undefined;
19617
+ publishingDraft: string | undefined;
19618
+ look: LookGrant | undefined;
19619
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19620
+ draft: DraftRequest | null;
19621
+ locale: string | undefined;
19622
+ publishingDraft: string | undefined;
19623
+ look: LookGrant | undefined;
19624
+ }>, {
19625
+ db: Database;
19626
+ env: Bindings;
19627
+ headers: Headers;
19628
+ client: string;
19629
+ telemetryDisabled: boolean;
19630
+ waitUntil: (promise: Promise<unknown>) => void;
19631
+ apiOrigin?: string;
19632
+ draft: DraftRequest | null;
19633
+ locale: string | undefined;
19634
+ publishingDraft: string | undefined;
19635
+ look: LookGrant | undefined;
19636
+ user: {
19637
+ id: string;
19638
+ createdAt: Date;
19639
+ updatedAt: Date;
19640
+ email: string;
19641
+ emailVerified: boolean;
19642
+ name: string;
19643
+ image?: string | null | undefined;
19644
+ };
19645
+ session: {
19646
+ id: string;
19647
+ createdAt: Date;
19648
+ updatedAt: Date;
19649
+ userId: string;
19650
+ expiresAt: Date;
19651
+ token: string;
19652
+ ipAddress?: string | null | undefined;
19653
+ userAgent?: string | null | undefined;
19654
+ activeOrganizationId?: string | null | undefined;
19655
+ local?: boolean | null | undefined;
19656
+ studio?: boolean | null | undefined;
19657
+ };
19658
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19659
+ draft: DraftRequest | null;
19660
+ locale: string | undefined;
19661
+ publishingDraft: string | undefined;
19662
+ look: LookGrant | undefined;
19663
+ }>, {
19664
+ db: Database;
19665
+ env: Bindings;
19666
+ headers: Headers;
19667
+ client: string;
19668
+ telemetryDisabled: boolean;
19669
+ waitUntil: (promise: Promise<unknown>) => void;
19670
+ apiOrigin?: string;
19671
+ draft: DraftRequest | null;
19672
+ locale: string | undefined;
19673
+ publishingDraft: string | undefined;
19674
+ look: LookGrant | undefined;
19675
+ user: {
19676
+ id: string;
19677
+ createdAt: Date;
19678
+ updatedAt: Date;
19679
+ email: string;
19680
+ emailVerified: boolean;
19681
+ name: string;
19682
+ image?: string | null | undefined;
19683
+ };
19684
+ session: {
19685
+ id: string;
19686
+ createdAt: Date;
19687
+ updatedAt: Date;
19688
+ userId: string;
19689
+ expiresAt: Date;
19690
+ token: string;
19691
+ ipAddress?: string | null | undefined;
19692
+ userAgent?: string | null | undefined;
19693
+ activeOrganizationId?: string | null | undefined;
19694
+ local?: boolean | null | undefined;
19695
+ studio?: boolean | null | undefined;
19696
+ };
19697
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19698
+ draft: DraftRequest | null;
19699
+ locale: string | undefined;
19700
+ publishingDraft: string | undefined;
19701
+ look: LookGrant | undefined;
19702
+ }>, {
19703
+ db: Database;
19704
+ env: Bindings;
19705
+ headers: Headers;
19706
+ client: string;
19707
+ telemetryDisabled: boolean;
19708
+ waitUntil: (promise: Promise<unknown>) => void;
19709
+ apiOrigin?: string;
19710
+ draft: DraftRequest | null;
19711
+ locale: string | undefined;
19712
+ publishingDraft: string | undefined;
19713
+ look: LookGrant | undefined;
19714
+ user: {
19715
+ id: string;
19716
+ createdAt: Date;
19717
+ updatedAt: Date;
19718
+ email: string;
19719
+ emailVerified: boolean;
19720
+ name: string;
19721
+ image?: string | null | undefined;
19722
+ };
19723
+ session: {
19724
+ id: string;
19725
+ createdAt: Date;
19726
+ updatedAt: Date;
19727
+ userId: string;
19728
+ expiresAt: Date;
19729
+ token: string;
19730
+ ipAddress?: string | null | undefined;
19731
+ userAgent?: string | null | undefined;
19732
+ activeOrganizationId?: string | null | undefined;
19733
+ local?: boolean | null | undefined;
19734
+ studio?: boolean | null | undefined;
19735
+ };
19736
+ }>, Record<never, never>>, import("zod").ZodObject<{
19737
+ projectId: import("zod").ZodUUID;
19738
+ note: import("zod").ZodDefault<import("zod").ZodString>;
19739
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
19740
+ id: string;
19741
+ link: string;
19742
+ }, {
19743
+ id: string;
19744
+ link: string;
19745
+ }>, Record<never, never>, Record<never, never>>;
19746
+ 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>>, {
19747
+ draft: DraftRequest | null;
19748
+ locale: string | undefined;
19749
+ publishingDraft: string | undefined;
19750
+ look: LookGrant | undefined;
19751
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19752
+ draft: DraftRequest | null;
19753
+ locale: string | undefined;
19754
+ publishingDraft: string | undefined;
19755
+ look: LookGrant | undefined;
19756
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19757
+ draft: DraftRequest | null;
19758
+ locale: string | undefined;
19759
+ publishingDraft: string | undefined;
19760
+ look: LookGrant | undefined;
19761
+ }>, {
19762
+ db: Database;
19763
+ env: Bindings;
19764
+ headers: Headers;
19765
+ client: string;
19766
+ telemetryDisabled: boolean;
19767
+ waitUntil: (promise: Promise<unknown>) => void;
19768
+ apiOrigin?: string;
19769
+ draft: DraftRequest | null;
19770
+ locale: string | undefined;
19771
+ publishingDraft: string | undefined;
19772
+ look: LookGrant | undefined;
19773
+ user: {
19774
+ id: string;
19775
+ createdAt: Date;
19776
+ updatedAt: Date;
19777
+ email: string;
19778
+ emailVerified: boolean;
19779
+ name: string;
19780
+ image?: string | null | undefined;
19781
+ };
19782
+ session: {
19783
+ id: string;
19784
+ createdAt: Date;
19785
+ updatedAt: Date;
19786
+ userId: string;
19787
+ expiresAt: Date;
19788
+ token: string;
19789
+ ipAddress?: string | null | undefined;
19790
+ userAgent?: string | null | undefined;
19791
+ activeOrganizationId?: string | null | undefined;
19792
+ local?: boolean | null | undefined;
19793
+ studio?: boolean | null | undefined;
19794
+ };
19795
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19796
+ draft: DraftRequest | null;
19797
+ locale: string | undefined;
19798
+ publishingDraft: string | undefined;
19799
+ look: LookGrant | undefined;
19800
+ }>, {
19801
+ db: Database;
19802
+ env: Bindings;
19803
+ headers: Headers;
19804
+ client: string;
19805
+ telemetryDisabled: boolean;
19806
+ waitUntil: (promise: Promise<unknown>) => void;
19807
+ apiOrigin?: string;
19808
+ draft: DraftRequest | null;
19809
+ locale: string | undefined;
19810
+ publishingDraft: string | undefined;
19811
+ look: LookGrant | undefined;
19812
+ user: {
19813
+ id: string;
19814
+ createdAt: Date;
19815
+ updatedAt: Date;
19816
+ email: string;
19817
+ emailVerified: boolean;
19818
+ name: string;
19819
+ image?: string | null | undefined;
19820
+ };
19821
+ session: {
19822
+ id: string;
19823
+ createdAt: Date;
19824
+ updatedAt: Date;
19825
+ userId: string;
19826
+ expiresAt: Date;
19827
+ token: string;
19828
+ ipAddress?: string | null | undefined;
19829
+ userAgent?: string | null | undefined;
19830
+ activeOrganizationId?: string | null | undefined;
19831
+ local?: boolean | null | undefined;
19832
+ studio?: boolean | null | undefined;
19833
+ };
19834
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19835
+ draft: DraftRequest | null;
19836
+ locale: string | undefined;
19837
+ publishingDraft: string | undefined;
19838
+ look: LookGrant | undefined;
19839
+ }>, {
19840
+ db: Database;
19841
+ env: Bindings;
19842
+ headers: Headers;
19843
+ client: string;
19844
+ telemetryDisabled: boolean;
19845
+ waitUntil: (promise: Promise<unknown>) => void;
19846
+ apiOrigin?: string;
19847
+ draft: DraftRequest | null;
19848
+ locale: string | undefined;
19849
+ publishingDraft: string | undefined;
19850
+ look: LookGrant | undefined;
19851
+ user: {
19852
+ id: string;
19853
+ createdAt: Date;
19854
+ updatedAt: Date;
19855
+ email: string;
19856
+ emailVerified: boolean;
19857
+ name: string;
19858
+ image?: string | null | undefined;
18991
19859
  };
18992
- connectedAt: Date;
18993
- lastUsedAt: Date | null;
19860
+ session: {
19861
+ id: string;
19862
+ createdAt: Date;
19863
+ updatedAt: Date;
19864
+ userId: string;
19865
+ expiresAt: Date;
19866
+ token: string;
19867
+ ipAddress?: string | null | undefined;
19868
+ userAgent?: string | null | undefined;
19869
+ activeOrganizationId?: string | null | undefined;
19870
+ local?: boolean | null | undefined;
19871
+ studio?: boolean | null | undefined;
19872
+ };
19873
+ }>, Record<never, never>>, import("@orpc/server").Schema<unknown, unknown>, import("@orpc/server").Schema<{
19874
+ id: string;
19875
+ link: string;
19876
+ state: import("@camox/api-contract/claim-links").ClaimLinkState;
19877
+ note: string;
19878
+ project: {
19879
+ id: string;
19880
+ name: string;
19881
+ address: string;
19882
+ };
19883
+ organization: {
19884
+ id: string;
19885
+ name: string;
19886
+ };
19887
+ createdBy: {
19888
+ id: string;
19889
+ name: string;
19890
+ email: string;
19891
+ };
19892
+ createdAt: number;
19893
+ firstOpenedAt: number | null;
19894
+ openCount: number;
19895
+ claimedAt: number | null;
19896
+ claimedBy: {
19897
+ id: string;
19898
+ name: string;
19899
+ email: string;
19900
+ } | null;
19901
+ claimerWasNew: boolean | null;
19902
+ revokedAt: number | null;
19903
+ revokedBy: {
19904
+ id: string;
19905
+ name: string;
19906
+ email: string;
19907
+ } | null;
19908
+ blockedAt: number | null;
18994
19909
  }[], {
18995
19910
  id: string;
18996
- client: {
19911
+ link: string;
19912
+ state: import("@camox/api-contract/claim-links").ClaimLinkState;
19913
+ note: string;
19914
+ project: {
19915
+ id: string;
18997
19916
  name: string;
18998
- verified: boolean;
19917
+ address: string;
18999
19918
  };
19000
- connectedAt: Date;
19001
- lastUsedAt: Date | null;
19919
+ organization: {
19920
+ id: string;
19921
+ name: string;
19922
+ };
19923
+ createdBy: {
19924
+ id: string;
19925
+ name: string;
19926
+ email: string;
19927
+ };
19928
+ createdAt: number;
19929
+ firstOpenedAt: number | null;
19930
+ openCount: number;
19931
+ claimedAt: number | null;
19932
+ claimedBy: {
19933
+ id: string;
19934
+ name: string;
19935
+ email: string;
19936
+ } | null;
19937
+ claimerWasNew: boolean | null;
19938
+ revokedAt: number | null;
19939
+ revokedBy: {
19940
+ id: string;
19941
+ name: string;
19942
+ email: string;
19943
+ } | null;
19944
+ blockedAt: number | null;
19002
19945
  }[]>, Record<never, never>, Record<never, never>>;
19003
- disconnect: 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>>, {
19946
+ 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>>, {
19004
19947
  draft: DraftRequest | null;
19005
19948
  locale: string | undefined;
19006
19949
  publishingDraft: string | undefined;
@@ -19046,11 +19989,238 @@ declare const router: {
19046
19989
  ipAddress?: string | null | undefined;
19047
19990
  userAgent?: string | null | undefined;
19048
19991
  activeOrganizationId?: string | null | undefined;
19992
+ local?: boolean | null | undefined;
19049
19993
  studio?: boolean | null | undefined;
19050
19994
  };
19051
- }>, import("zod").ZodObject<{
19995
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
19996
+ draft: DraftRequest | null;
19997
+ locale: string | undefined;
19998
+ publishingDraft: string | undefined;
19999
+ look: LookGrant | undefined;
20000
+ }>, {
20001
+ db: Database;
20002
+ env: Bindings;
20003
+ headers: Headers;
20004
+ client: string;
20005
+ telemetryDisabled: boolean;
20006
+ waitUntil: (promise: Promise<unknown>) => void;
20007
+ apiOrigin?: string;
20008
+ draft: DraftRequest | null;
20009
+ locale: string | undefined;
20010
+ publishingDraft: string | undefined;
20011
+ look: LookGrant | undefined;
20012
+ user: {
20013
+ id: string;
20014
+ createdAt: Date;
20015
+ updatedAt: Date;
20016
+ email: string;
20017
+ emailVerified: boolean;
20018
+ name: string;
20019
+ image?: string | null | undefined;
20020
+ };
20021
+ session: {
20022
+ id: string;
20023
+ createdAt: Date;
20024
+ updatedAt: Date;
20025
+ userId: string;
20026
+ expiresAt: Date;
20027
+ token: string;
20028
+ ipAddress?: string | null | undefined;
20029
+ userAgent?: string | null | undefined;
20030
+ activeOrganizationId?: string | null | undefined;
20031
+ local?: boolean | null | undefined;
20032
+ studio?: boolean | null | undefined;
20033
+ };
20034
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
20035
+ draft: DraftRequest | null;
20036
+ locale: string | undefined;
20037
+ publishingDraft: string | undefined;
20038
+ look: LookGrant | undefined;
20039
+ }>, {
20040
+ db: Database;
20041
+ env: Bindings;
20042
+ headers: Headers;
20043
+ client: string;
20044
+ telemetryDisabled: boolean;
20045
+ waitUntil: (promise: Promise<unknown>) => void;
20046
+ apiOrigin?: string;
20047
+ draft: DraftRequest | null;
20048
+ locale: string | undefined;
20049
+ publishingDraft: string | undefined;
20050
+ look: LookGrant | undefined;
20051
+ user: {
20052
+ id: string;
20053
+ createdAt: Date;
20054
+ updatedAt: Date;
20055
+ email: string;
20056
+ emailVerified: boolean;
20057
+ name: string;
20058
+ image?: string | null | undefined;
20059
+ };
20060
+ session: {
20061
+ id: string;
20062
+ createdAt: Date;
20063
+ updatedAt: Date;
20064
+ userId: string;
20065
+ expiresAt: Date;
20066
+ token: string;
20067
+ ipAddress?: string | null | undefined;
20068
+ userAgent?: string | null | undefined;
20069
+ activeOrganizationId?: string | null | undefined;
20070
+ local?: boolean | null | undefined;
20071
+ studio?: boolean | null | undefined;
20072
+ };
20073
+ }>, Record<never, never>>, import("zod").ZodObject<{
19052
20074
  id: import("zod").ZodString;
19053
20075
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<undefined, undefined>, Record<never, never>, Record<never, never>>;
20076
+ 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>>, {
20077
+ draft: DraftRequest | null;
20078
+ locale: string | undefined;
20079
+ publishingDraft: string | undefined;
20080
+ look: LookGrant | undefined;
20081
+ }>, import("zod").ZodObject<{
20082
+ token: import("zod").ZodString;
20083
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
20084
+ state: "claimed" | "unavailable";
20085
+ } | {
20086
+ organizationName: string;
20087
+ operatorName: string;
20088
+ state: "preview";
20089
+ } | {
20090
+ organizationName: string;
20091
+ operatorName: string;
20092
+ state: "open";
20093
+ }, {
20094
+ state: "claimed" | "unavailable";
20095
+ } | {
20096
+ organizationName: string;
20097
+ operatorName: string;
20098
+ state: "preview";
20099
+ } | {
20100
+ organizationName: string;
20101
+ operatorName: string;
20102
+ state: "open";
20103
+ }>, Record<never, never>, Record<never, never>>;
20104
+ 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>>, {
20105
+ draft: DraftRequest | null;
20106
+ locale: string | undefined;
20107
+ publishingDraft: string | undefined;
20108
+ look: LookGrant | undefined;
20109
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
20110
+ draft: DraftRequest | null;
20111
+ locale: string | undefined;
20112
+ publishingDraft: string | undefined;
20113
+ look: LookGrant | undefined;
20114
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
20115
+ draft: DraftRequest | null;
20116
+ locale: string | undefined;
20117
+ publishingDraft: string | undefined;
20118
+ look: LookGrant | undefined;
20119
+ }>, {
20120
+ db: Database;
20121
+ env: Bindings;
20122
+ headers: Headers;
20123
+ client: string;
20124
+ telemetryDisabled: boolean;
20125
+ waitUntil: (promise: Promise<unknown>) => void;
20126
+ apiOrigin?: string;
20127
+ draft: DraftRequest | null;
20128
+ locale: string | undefined;
20129
+ publishingDraft: string | undefined;
20130
+ look: LookGrant | undefined;
20131
+ user: {
20132
+ id: string;
20133
+ createdAt: Date;
20134
+ updatedAt: Date;
20135
+ email: string;
20136
+ emailVerified: boolean;
20137
+ name: string;
20138
+ image?: string | null | undefined;
20139
+ };
20140
+ session: {
20141
+ id: string;
20142
+ createdAt: Date;
20143
+ updatedAt: Date;
20144
+ userId: string;
20145
+ expiresAt: Date;
20146
+ token: string;
20147
+ ipAddress?: string | null | undefined;
20148
+ userAgent?: string | null | undefined;
20149
+ activeOrganizationId?: string | null | undefined;
20150
+ local?: boolean | null | undefined;
20151
+ studio?: boolean | null | undefined;
20152
+ };
20153
+ }>, import("zod").ZodObject<{
20154
+ token: import("zod").ZodString;
20155
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
20156
+ state: "claimed" | "unavailable";
20157
+ organizationName?: undefined;
20158
+ } | {
20159
+ state: "open";
20160
+ organizationName: string;
20161
+ }, {
20162
+ state: "claimed" | "unavailable";
20163
+ organizationName?: undefined;
20164
+ } | {
20165
+ state: "open";
20166
+ organizationName: string;
20167
+ }>, Record<never, never>, Record<never, never>>;
20168
+ 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>>, {
20169
+ draft: DraftRequest | null;
20170
+ locale: string | undefined;
20171
+ publishingDraft: string | undefined;
20172
+ look: LookGrant | undefined;
20173
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
20174
+ draft: DraftRequest | null;
20175
+ locale: string | undefined;
20176
+ publishingDraft: string | undefined;
20177
+ look: LookGrant | undefined;
20178
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
20179
+ draft: DraftRequest | null;
20180
+ locale: string | undefined;
20181
+ publishingDraft: string | undefined;
20182
+ look: LookGrant | undefined;
20183
+ }>, {
20184
+ db: Database;
20185
+ env: Bindings;
20186
+ headers: Headers;
20187
+ client: string;
20188
+ telemetryDisabled: boolean;
20189
+ waitUntil: (promise: Promise<unknown>) => void;
20190
+ apiOrigin?: string;
20191
+ draft: DraftRequest | null;
20192
+ locale: string | undefined;
20193
+ publishingDraft: string | undefined;
20194
+ look: LookGrant | undefined;
20195
+ user: {
20196
+ id: string;
20197
+ createdAt: Date;
20198
+ updatedAt: Date;
20199
+ email: string;
20200
+ emailVerified: boolean;
20201
+ name: string;
20202
+ image?: string | null | undefined;
20203
+ };
20204
+ session: {
20205
+ id: string;
20206
+ createdAt: Date;
20207
+ updatedAt: Date;
20208
+ userId: string;
20209
+ expiresAt: Date;
20210
+ token: string;
20211
+ ipAddress?: string | null | undefined;
20212
+ userAgent?: string | null | undefined;
20213
+ activeOrganizationId?: string | null | undefined;
20214
+ local?: boolean | null | undefined;
20215
+ studio?: boolean | null | undefined;
20216
+ };
20217
+ }>, import("zod").ZodObject<{
20218
+ token: import("zod").ZodString;
20219
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
20220
+ organizationId: string;
20221
+ }, {
20222
+ organizationId: string;
20223
+ }>, Record<never, never>, Record<never, never>>;
19054
20224
  };
19055
20225
  };
19056
20226
  type Router = typeof router;