@camox/api-contract 0.56.0 → 0.58.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
@@ -5,16 +5,19 @@ import { DraftKind, EndedDraft, PublishAbortReason } from "@camox/api-contract/d
5
5
  import "effect";
6
6
  import "drizzle-orm";
7
7
  import "drizzle-orm/sqlite-core";
8
+ import "@camox/api-contract/patrol";
8
9
  import { DurableObject } from "cloudflare:workers";
10
+ import { ThreadSender } from "@camox/api-contract/threads";
9
11
  import { PiHarness, PiHarnessOptions } from "agents/harness/pi";
10
12
  import { CapabilityStartContext, Lifecycle } from "agents/lifecycle";
11
13
  import { WebSockets } from "agents/websockets";
14
+ import "@camox/ai-tools";
15
+ import "@earendil-works/pi-durable";
12
16
  import { FileErrorCode } from "@earendil-works/pi-durable/env";
13
17
  import { CiParams, CloudflareArtifacts } from "@cloudflare/ci";
14
18
  import "@cloudflare/ci/worker";
15
19
  import { PosthogRegion } from "@camox/api-contract/analytics";
16
20
  import { EvaluatedNode, RecordText } from "@camox/api-contract";
17
- import "@camox/ai-tools";
18
21
  //#region ../../apps/api/src/domains/layouts/schema.d.ts
19
22
  /** Which collection a layout's record pages render, and the field they're found by. */
20
23
  type RecordPages = {
@@ -1304,13 +1307,11 @@ type GeneratedValues = {
1304
1307
  /**
1305
1308
  * The draft a request names, before it is checked: a draft's id, where `create` asks for a
1306
1309
  * missing regular draft to be created with it, or the caller's development draft in the
1307
- * project the request acts on (ADR 0011). A draft a Live thread's write creates records that
1308
- * thread (`threadId`) as it's created, so whoever opens it reaches the thread.
1310
+ * project the request acts on (ADR 0011).
1309
1311
  */
1310
1312
  type DraftRequest = {
1311
1313
  id: string;
1312
1314
  create: boolean;
1313
- threadId?: string;
1314
1315
  } | {
1315
1316
  development: true;
1316
1317
  };
@@ -1857,6 +1858,25 @@ declare function createDb(d1: D1Database): import("drizzle-orm/d1").DrizzleD1Dat
1857
1858
  }, {}, {
1858
1859
  length: number | undefined;
1859
1860
  }>;
1861
+ liveThreadId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1862
+ name: "live_thread_id";
1863
+ tableName: "drafts";
1864
+ dataType: "string";
1865
+ columnType: "SQLiteText";
1866
+ data: string;
1867
+ driverParam: string;
1868
+ notNull: false;
1869
+ hasDefault: false;
1870
+ isPrimaryKey: false;
1871
+ isAutoincrement: false;
1872
+ hasRuntimeDefault: false;
1873
+ enumValues: [string, ...string[]];
1874
+ baseColumn: never;
1875
+ identity: undefined;
1876
+ generated: undefined;
1877
+ }, {}, {
1878
+ length: number | undefined;
1879
+ }>;
1860
1880
  overviewHeadline: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1861
1881
  name: "overview_headline";
1862
1882
  tableName: "drafts";
@@ -6006,7 +6026,47 @@ type MergeEnd =
6006
6026
  /** This move of `main` clashed already: Camox's reconcile turn had its one try. */
6007
6027
  "clashedBefore";
6008
6028
  //#endregion
6029
+ //#region ../../apps/api/src/domains/agent/service.d.ts
6030
+ type ToolExecutionResponse = {
6031
+ ok: true;
6032
+ result: unknown;
6033
+ } | {
6034
+ ok: false;
6035
+ error: {
6036
+ code: string;
6037
+ message: string;
6038
+ details?: unknown;
6039
+ };
6040
+ };
6041
+ //#endregion
6042
+ //#region ../../apps/api/src/domains/threads/tools.d.ts
6043
+ /**
6044
+ * What a thread belongs to: its project, its draft once it has one, and for a Live thread, the
6045
+ * editor who owns it.
6046
+ */
6047
+ declare const threadIdentitySchema: z.ZodObject<{
6048
+ projectId: z.ZodNumber;
6049
+ draftId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6050
+ ownerId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6051
+ }, z.core.$strip>;
6052
+ type ThreadIdentity = z.infer<typeof threadIdentitySchema>;
6053
+ //#endregion
6009
6054
  //#region ../../apps/api/src/durable-objects/thread.d.ts
6055
+ /**
6056
+ * How the API opens a draft's thread with no studio connected (`Thread.open`): what it belongs
6057
+ * to, the API's public origin, the Brief from Camox, and the messages the editor sent, oldest
6058
+ * first, each with the operation id it was sent with.
6059
+ */
6060
+ type ThreadOpening = {
6061
+ identity: ThreadIdentity;
6062
+ apiOrigin: string;
6063
+ brief: string;
6064
+ editor: ThreadSender;
6065
+ messages: {
6066
+ operationId: string;
6067
+ text: string;
6068
+ }[];
6069
+ };
6010
6070
  /**
6011
6071
  * Cloudflare's `PiHarness`, leaving Pi closed when the object starts until `started` holds: Pi
6012
6072
  * creates its tables as it opens, and a thread nobody messaged has no run to resume.
@@ -6057,11 +6117,33 @@ declare class Thread extends DurableObject<Bindings> {
6057
6117
  * way when it did would look for the jobs its storage no longer has.
6058
6118
  */
6059
6119
  alarm(): Promise<void>;
6120
+ /** Gives sockets that outlived the last isolate a new watch and a fresh snapshot. */
6121
+ onStart(): Promise<void>;
6060
6122
  /**
6061
- * Gives sockets that outlived the last isolate a new watch and a fresh snapshot, once a move
6062
- * into a draft an eviction cut short is finished.
6123
+ * Shows every socket on a Live thread where the drafts its cards name stand now, as the API
6124
+ * asks once one of them is renamed or ends (ADR 0025). Nothing of it goes in the transcript.
6063
6125
  */
6064
- onStart(): Promise<void>;
6126
+ showDrafts(): Promise<void>;
6127
+ /**
6128
+ * Opens the thread from the API, with no studio connected, as a Live thread handing a request
6129
+ * off to a draft does (ADR 0025): records what it belongs to and the API's origin, adds the
6130
+ * Brief, which the model reads and studios show as from Camox, then the editor's messages
6131
+ * under their name, and starts the agent's run, which acts as that editor. Every message but
6132
+ * the last goes in before the run, the last starting it, so the model reads them all on its
6133
+ * first call. Repeating it changes nothing.
6134
+ */
6135
+ open({ identity, apiOrigin, brief, editor, messages }: ThreadOpening): Promise<void>;
6136
+ /**
6137
+ * Adds Camox's `note` that the draft `draftId`, which this Live thread started, ended, at the
6138
+ * end of the conversation: right away when the thread is idle, or else at the next break of
6139
+ * the run going, as Pi places a write the model reads. Only the model reads it, and it asks the
6140
+ * model nothing: nothing earlier, nor the system prompt, changes (ADR 0025). Repeating it adds
6141
+ * nothing.
6142
+ */
6143
+ noteDraftEnded({ draftId, note }: {
6144
+ draftId: string;
6145
+ note: string;
6146
+ }): Promise<void>;
6065
6147
  /**
6066
6148
  * Ends the thread with its draft, wiping everything it stored, since Pi can't delete a
6067
6149
  * conversation yet: the run going stops, and studios still open on it see an empty thread
@@ -6382,9 +6464,17 @@ type Dispatch = {
6382
6464
  readDefinitionSet(revision: RevisionToLoad): Promise<unknown>;
6383
6465
  /**
6384
6466
  * Readies a revision before its draft's viewers are told of it: dispatch serves its client
6385
- * assets from then on, and has loaded and rendered it once.
6467
+ * assets from then on, and has loaded and rendered it once. Says how many client assets it
6468
+ * stored and how long that and the render took, for the API's timing logs (none from a
6469
+ * dispatch older than that).
6386
6470
  */
6387
- prewarm(revision: RevisionToLoad): Promise<void>;
6471
+ prewarm(revision: RevisionToLoad): Promise<PrewarmTimings | void>;
6472
+ };
6473
+ /** What a prewarm took. Mirrored in apps/dispatch/src/revisions.ts: keep the two in sync. */
6474
+ type PrewarmTimings = {
6475
+ assets: number;
6476
+ assetsMs: number;
6477
+ renderMs: number;
6388
6478
  };
6389
6479
  //#endregion
6390
6480
  //#region ../../apps/api/src/types.d.ts
@@ -6814,6 +6904,8 @@ type BlockRow = typeof blocks.$inferSelect;
6814
6904
  type ShownBlock = Conformed<BlockRow> & {
6815
6905
  summary: string;
6816
6906
  title: string;
6907
+ /** The hash of each artifact source in its content, by field (`artifactHashesOf`). */
6908
+ artifactHashes: Record<string, string>;
6817
6909
  };
6818
6910
  //#endregion
6819
6911
  //#region ../../apps/api/src/domains/content/structured-data.d.ts
@@ -7045,19 +7137,6 @@ type PublishResult = {
7045
7137
  publishing: true;
7046
7138
  };
7047
7139
  //#endregion
7048
- //#region ../../apps/api/src/domains/agent/service.d.ts
7049
- type ToolExecutionResponse = {
7050
- ok: true;
7051
- result: unknown;
7052
- } | {
7053
- ok: false;
7054
- error: {
7055
- code: string;
7056
- message: string;
7057
- details?: unknown;
7058
- };
7059
- };
7060
- //#endregion
7061
7140
  //#region ../../apps/api/src/router.d.ts
7062
7141
  declare const router: {
7063
7142
  projects: {
@@ -7286,9 +7365,9 @@ declare const router: {
7286
7365
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
7287
7366
  organizationSlug: string | null;
7288
7367
  analytics: AnalyticsProviders;
7368
+ name: string;
7289
7369
  status: import("@camox/api-contract/projects").ProjectStatus;
7290
7370
  id: number;
7291
- name: string;
7292
7371
  uuid: string;
7293
7372
  slug: string;
7294
7373
  deployToken: string;
@@ -7308,9 +7387,9 @@ declare const router: {
7308
7387
  }, {
7309
7388
  organizationSlug: string | null;
7310
7389
  analytics: AnalyticsProviders;
7390
+ name: string;
7311
7391
  status: import("@camox/api-contract/projects").ProjectStatus;
7312
7392
  id: number;
7313
- name: string;
7314
7393
  uuid: string;
7315
7394
  slug: string;
7316
7395
  deployToken: string;
@@ -7377,9 +7456,9 @@ declare const router: {
7377
7456
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
7378
7457
  organizationSlug: string | null;
7379
7458
  analytics: AnalyticsProviders;
7459
+ name: string;
7380
7460
  status: import("@camox/api-contract/projects").ProjectStatus;
7381
7461
  id: number;
7382
- name: string;
7383
7462
  uuid: string;
7384
7463
  slug: string;
7385
7464
  deployToken: string;
@@ -7399,9 +7478,9 @@ declare const router: {
7399
7478
  }, {
7400
7479
  organizationSlug: string | null;
7401
7480
  analytics: AnalyticsProviders;
7481
+ name: string;
7402
7482
  status: import("@camox/api-contract/projects").ProjectStatus;
7403
7483
  id: number;
7404
- name: string;
7405
7484
  uuid: string;
7406
7485
  slug: string;
7407
7486
  deployToken: string;
@@ -7485,9 +7564,9 @@ declare const router: {
7485
7564
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
7486
7565
  organizationSlug: string | null;
7487
7566
  analytics: AnalyticsProviders;
7567
+ name: string;
7488
7568
  status: import("@camox/api-contract/projects").ProjectStatus;
7489
7569
  id: number;
7490
- name: string;
7491
7570
  uuid: string;
7492
7571
  slug: string;
7493
7572
  deployToken: string;
@@ -7507,9 +7586,9 @@ declare const router: {
7507
7586
  }, {
7508
7587
  organizationSlug: string | null;
7509
7588
  analytics: AnalyticsProviders;
7589
+ name: string;
7510
7590
  status: import("@camox/api-contract/projects").ProjectStatus;
7511
7591
  id: number;
7512
- name: string;
7513
7592
  uuid: string;
7514
7593
  slug: string;
7515
7594
  deployToken: string;
@@ -7635,9 +7714,9 @@ declare const router: {
7635
7714
  slug: import("zod").ZodString;
7636
7715
  organizationId: import("zod").ZodString;
7637
7716
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
7717
+ name: string;
7638
7718
  status: import("@camox/api-contract/projects").ProjectStatus;
7639
7719
  id: number;
7640
- name: string;
7641
7720
  uuid: string;
7642
7721
  slug: string;
7643
7722
  deployToken: string;
@@ -7655,9 +7734,9 @@ declare const router: {
7655
7734
  liveScript: string | null;
7656
7735
  updatedAt: number;
7657
7736
  }, {
7737
+ name: string;
7658
7738
  status: import("@camox/api-contract/projects").ProjectStatus;
7659
7739
  id: number;
7660
- name: string;
7661
7740
  uuid: string;
7662
7741
  slug: string;
7663
7742
  deployToken: string;
@@ -7723,9 +7802,9 @@ declare const router: {
7723
7802
  id: import("zod").ZodNumber;
7724
7803
  name: import("zod").ZodString;
7725
7804
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
7805
+ name: string;
7726
7806
  status: import("@camox/api-contract/projects").ProjectStatus;
7727
7807
  id: number;
7728
- name: string;
7729
7808
  uuid: string;
7730
7809
  slug: string;
7731
7810
  deployToken: string;
@@ -7743,9 +7822,9 @@ declare const router: {
7743
7822
  liveScript: string | null;
7744
7823
  updatedAt: number;
7745
7824
  }, {
7825
+ name: string;
7746
7826
  status: import("@camox/api-contract/projects").ProjectStatus;
7747
7827
  id: number;
7748
- name: string;
7749
7828
  uuid: string;
7750
7829
  slug: string;
7751
7830
  deployToken: string;
@@ -7927,9 +8006,9 @@ declare const router: {
7927
8006
  }>, import("zod").ZodObject<{
7928
8007
  id: import("zod").ZodNumber;
7929
8008
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
8009
+ name: string;
7930
8010
  status: import("@camox/api-contract/projects").ProjectStatus;
7931
8011
  id: number;
7932
- name: string;
7933
8012
  uuid: string;
7934
8013
  slug: string;
7935
8014
  deployToken: string;
@@ -7947,9 +8026,9 @@ declare const router: {
7947
8026
  liveScript: string | null;
7948
8027
  updatedAt: number;
7949
8028
  } | undefined, {
8029
+ name: string;
7950
8030
  status: import("@camox/api-contract/projects").ProjectStatus;
7951
8031
  id: number;
7952
- name: string;
7953
8032
  uuid: string;
7954
8033
  slug: string;
7955
8034
  deployToken: string;
@@ -7979,8 +8058,8 @@ declare const router: {
7979
8058
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
7980
8059
  page: {
7981
8060
  blockIds: string[];
7982
- id: string;
7983
8061
  draftId: string | null;
8062
+ id: string;
7984
8063
  deleted: boolean;
7985
8064
  locale: string;
7986
8065
  layoutId: string;
@@ -8021,13 +8100,14 @@ declare const router: {
8021
8100
  } | null;
8022
8101
  blocks: (Omit<{
8023
8102
  type: string;
8024
- id: string;
8025
8103
  draftId: string | null;
8104
+ id: string;
8026
8105
  deleted: boolean;
8027
8106
  settings: unknown;
8028
8107
  locale: string;
8029
8108
  pageId: string | null;
8030
8109
  layoutId: string | null;
8110
+ content: unknown;
8031
8111
  createdAt: number;
8032
8112
  updatedAt: number;
8033
8113
  projectId: number;
@@ -8037,7 +8117,6 @@ declare const router: {
8037
8117
  firstPublishedAt: number | null;
8038
8118
  publishedAt: number | null;
8039
8119
  publishedBy: string | null;
8040
- content: unknown;
8041
8120
  slot: "before" | "after" | null;
8042
8121
  position: string;
8043
8122
  }, "content"> & {
@@ -8045,16 +8124,18 @@ declare const router: {
8045
8124
  } & {
8046
8125
  summary: string;
8047
8126
  title: string;
8127
+ artifactHashes: Record<string, string>;
8048
8128
  } & {
8049
8129
  references: ResolvedReferences;
8050
8130
  })[];
8051
8131
  repeatableItems: (Omit<{
8052
- id: string;
8053
8132
  draftId: string | null;
8133
+ id: string;
8054
8134
  deleted: boolean;
8055
8135
  settings: unknown;
8056
8136
  locale: string;
8057
8137
  blockId: string | null;
8138
+ content: unknown;
8058
8139
  createdAt: number;
8059
8140
  updatedAt: number;
8060
8141
  projectId: number | null;
@@ -8064,7 +8145,6 @@ declare const router: {
8064
8145
  firstPublishedAt: number | null;
8065
8146
  publishedAt: number | null;
8066
8147
  publishedBy: string | null;
8067
- content: unknown;
8068
8148
  position: string;
8069
8149
  sharedContentType: string | null;
8070
8150
  parentItemId: string | null;
@@ -8075,6 +8155,7 @@ declare const router: {
8075
8155
  blockId: string;
8076
8156
  summary: string;
8077
8157
  title: string;
8158
+ artifactHashes: Record<string, string>;
8078
8159
  } & {
8079
8160
  references: ResolvedReferences;
8080
8161
  })[];
@@ -8084,8 +8165,8 @@ declare const router: {
8084
8165
  }, {
8085
8166
  page: {
8086
8167
  blockIds: string[];
8087
- id: string;
8088
8168
  draftId: string | null;
8169
+ id: string;
8089
8170
  deleted: boolean;
8090
8171
  locale: string;
8091
8172
  layoutId: string;
@@ -8126,13 +8207,14 @@ declare const router: {
8126
8207
  } | null;
8127
8208
  blocks: (Omit<{
8128
8209
  type: string;
8129
- id: string;
8130
8210
  draftId: string | null;
8211
+ id: string;
8131
8212
  deleted: boolean;
8132
8213
  settings: unknown;
8133
8214
  locale: string;
8134
8215
  pageId: string | null;
8135
8216
  layoutId: string | null;
8217
+ content: unknown;
8136
8218
  createdAt: number;
8137
8219
  updatedAt: number;
8138
8220
  projectId: number;
@@ -8142,7 +8224,6 @@ declare const router: {
8142
8224
  firstPublishedAt: number | null;
8143
8225
  publishedAt: number | null;
8144
8226
  publishedBy: string | null;
8145
- content: unknown;
8146
8227
  slot: "before" | "after" | null;
8147
8228
  position: string;
8148
8229
  }, "content"> & {
@@ -8150,16 +8231,18 @@ declare const router: {
8150
8231
  } & {
8151
8232
  summary: string;
8152
8233
  title: string;
8234
+ artifactHashes: Record<string, string>;
8153
8235
  } & {
8154
8236
  references: ResolvedReferences;
8155
8237
  })[];
8156
8238
  repeatableItems: (Omit<{
8157
- id: string;
8158
8239
  draftId: string | null;
8240
+ id: string;
8159
8241
  deleted: boolean;
8160
8242
  settings: unknown;
8161
8243
  locale: string;
8162
8244
  blockId: string | null;
8245
+ content: unknown;
8163
8246
  createdAt: number;
8164
8247
  updatedAt: number;
8165
8248
  projectId: number | null;
@@ -8169,7 +8252,6 @@ declare const router: {
8169
8252
  firstPublishedAt: number | null;
8170
8253
  publishedAt: number | null;
8171
8254
  publishedBy: string | null;
8172
- content: unknown;
8173
8255
  position: string;
8174
8256
  sharedContentType: string | null;
8175
8257
  parentItemId: string | null;
@@ -8180,6 +8262,7 @@ declare const router: {
8180
8262
  blockId: string;
8181
8263
  summary: string;
8182
8264
  title: string;
8265
+ artifactHashes: Record<string, string>;
8183
8266
  } & {
8184
8267
  references: ResolvedReferences;
8185
8268
  })[];
@@ -8199,8 +8282,8 @@ declare const router: {
8199
8282
  blockIds: string[];
8200
8283
  firstPublishedAt: number | null;
8201
8284
  publishedAt: number | null;
8202
- id: string;
8203
8285
  draftId: string | null;
8286
+ id: string;
8204
8287
  deleted: boolean;
8205
8288
  locale: string;
8206
8289
  layoutId: string;
@@ -8242,8 +8325,8 @@ declare const router: {
8242
8325
  blockIds: string[];
8243
8326
  firstPublishedAt: number | null;
8244
8327
  publishedAt: number | null;
8245
- id: string;
8246
8328
  draftId: string | null;
8329
+ id: string;
8247
8330
  deleted: boolean;
8248
8331
  locale: string;
8249
8332
  layoutId: string;
@@ -8299,8 +8382,8 @@ declare const router: {
8299
8382
  page: PageView<{
8300
8383
  firstPublishedAt: number | null;
8301
8384
  publishedAt: number | null;
8302
- id: string;
8303
8385
  draftId: string | null;
8386
+ id: string;
8304
8387
  deleted: boolean;
8305
8388
  locale: string;
8306
8389
  layoutId: string;
@@ -8340,8 +8423,8 @@ declare const router: {
8340
8423
  page: PageView<{
8341
8424
  firstPublishedAt: number | null;
8342
8425
  publishedAt: number | null;
8343
- id: string;
8344
8426
  draftId: string | null;
8427
+ id: string;
8345
8428
  deleted: boolean;
8346
8429
  locale: string;
8347
8430
  layoutId: string;
@@ -8381,8 +8464,8 @@ declare const router: {
8381
8464
  duplicatePath: boolean;
8382
8465
  needsLayout: boolean;
8383
8466
  shadowed: boolean;
8384
- id: string;
8385
8467
  draftId: string | null;
8468
+ id: string;
8386
8469
  deleted: boolean;
8387
8470
  locale: string;
8388
8471
  layoutId: string;
@@ -8410,8 +8493,8 @@ declare const router: {
8410
8493
  duplicatePath: boolean;
8411
8494
  needsLayout: boolean;
8412
8495
  shadowed: boolean;
8413
- id: string;
8414
8496
  draftId: string | null;
8497
+ id: string;
8415
8498
  deleted: boolean;
8416
8499
  locale: string;
8417
8500
  layoutId: string;
@@ -8448,8 +8531,8 @@ declare const router: {
8448
8531
  duplicatePath: boolean;
8449
8532
  needsLayout: boolean;
8450
8533
  shadowed: boolean;
8451
- id: string;
8452
8534
  draftId: string | null;
8535
+ id: string;
8453
8536
  deleted: boolean;
8454
8537
  locale: string;
8455
8538
  layoutId: string;
@@ -8480,8 +8563,8 @@ declare const router: {
8480
8563
  duplicatePath: boolean;
8481
8564
  needsLayout: boolean;
8482
8565
  shadowed: boolean;
8483
- id: string;
8484
8566
  draftId: string | null;
8567
+ id: string;
8485
8568
  deleted: boolean;
8486
8569
  locale: string;
8487
8570
  layoutId: string;
@@ -8519,8 +8602,8 @@ declare const router: {
8519
8602
  }, import("zod/v4/core").$strip>]>, import("@orpc/server").Schema<{
8520
8603
  createdBy: string | null;
8521
8604
  duplicatePath: boolean;
8522
- id: string;
8523
8605
  draftId: string | null;
8606
+ id: string;
8524
8607
  deleted: boolean;
8525
8608
  locale: string;
8526
8609
  layoutId: string;
@@ -8547,8 +8630,8 @@ declare const router: {
8547
8630
  }, {
8548
8631
  createdBy: string | null;
8549
8632
  duplicatePath: boolean;
8550
- id: string;
8551
8633
  draftId: string | null;
8634
+ id: string;
8552
8635
  deleted: boolean;
8553
8636
  locale: string;
8554
8637
  layoutId: string;
@@ -8664,8 +8747,8 @@ declare const router: {
8664
8747
  layoutId: import("zod").ZodString;
8665
8748
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
8666
8749
  page: PageView<{
8667
- id: string;
8668
8750
  draftId: string | null;
8751
+ id: string;
8669
8752
  deleted: boolean;
8670
8753
  locale: string;
8671
8754
  layoutId: string;
@@ -8692,8 +8775,8 @@ declare const router: {
8692
8775
  fullPath: string;
8693
8776
  }, {
8694
8777
  page: PageView<{
8695
- id: string;
8696
8778
  draftId: string | null;
8779
+ id: string;
8697
8780
  deleted: boolean;
8698
8781
  locale: string;
8699
8782
  layoutId: string;
@@ -8807,8 +8890,8 @@ declare const router: {
8807
8890
  pathSegment: import("zod").ZodOptional<import("zod").ZodString>;
8808
8891
  parentPageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
8809
8892
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<PageView<{
8810
- id: string;
8811
8893
  draftId: string | null;
8894
+ id: string;
8812
8895
  deleted: boolean;
8813
8896
  locale: string;
8814
8897
  layoutId: string;
@@ -8832,8 +8915,8 @@ declare const router: {
8832
8915
  contentUpdatedAt: number;
8833
8916
  createdById: string | null;
8834
8917
  }>, PageView<{
8835
- id: string;
8836
8918
  draftId: string | null;
8919
+ id: string;
8837
8920
  deleted: boolean;
8838
8921
  locale: string;
8839
8922
  layoutId: string;
@@ -8942,8 +9025,8 @@ declare const router: {
8942
9025
  }>, Record<never, never>>, import("zod").ZodObject<{
8943
9026
  id: import("zod").ZodUUID;
8944
9027
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
8945
- id: string;
8946
9028
  draftId: string | null;
9029
+ id: string;
8947
9030
  deleted: boolean;
8948
9031
  locale: string;
8949
9032
  layoutId: string;
@@ -8967,8 +9050,8 @@ declare const router: {
8967
9050
  contentUpdatedAt: number;
8968
9051
  createdById: string | null;
8969
9052
  } | undefined, {
8970
- id: string;
8971
9053
  draftId: string | null;
9054
+ id: string;
8972
9055
  deleted: boolean;
8973
9056
  locale: string;
8974
9057
  layoutId: string;
@@ -9080,8 +9163,8 @@ declare const router: {
9080
9163
  metaDescription: import("zod").ZodOptional<import("zod").ZodString>;
9081
9164
  aiSeo: import("zod").ZodOptional<import("zod").ZodBoolean>;
9082
9165
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<PageView<{
9083
- id: string;
9084
9166
  draftId: string | null;
9167
+ id: string;
9085
9168
  deleted: boolean;
9086
9169
  locale: string;
9087
9170
  layoutId: string;
@@ -9105,8 +9188,8 @@ declare const router: {
9105
9188
  contentUpdatedAt: number;
9106
9189
  createdById: string | null;
9107
9190
  }>, PageView<{
9108
- id: string;
9109
9191
  draftId: string | null;
9192
+ id: string;
9110
9193
  deleted: boolean;
9111
9194
  locale: string;
9112
9195
  layoutId: string;
@@ -9216,8 +9299,8 @@ declare const router: {
9216
9299
  id: import("zod").ZodUUID;
9217
9300
  layoutId: import("zod").ZodString;
9218
9301
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<PageView<{
9219
- id: string;
9220
9302
  draftId: string | null;
9303
+ id: string;
9221
9304
  deleted: boolean;
9222
9305
  locale: string;
9223
9306
  layoutId: string;
@@ -9241,8 +9324,8 @@ declare const router: {
9241
9324
  contentUpdatedAt: number;
9242
9325
  createdById: string | null;
9243
9326
  }>, PageView<{
9244
- id: string;
9245
9327
  draftId: string | null;
9328
+ id: string;
9246
9329
  deleted: boolean;
9247
9330
  locale: string;
9248
9331
  layoutId: string;
@@ -9313,8 +9396,8 @@ declare const router: {
9313
9396
  }>, import("zod").ZodObject<{
9314
9397
  id: import("zod").ZodUUID;
9315
9398
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<PageView<{
9316
- id: string;
9317
9399
  draftId: string | null;
9400
+ id: string;
9318
9401
  deleted: boolean;
9319
9402
  locale: string;
9320
9403
  layoutId: string;
@@ -9338,8 +9421,8 @@ declare const router: {
9338
9421
  contentUpdatedAt: number;
9339
9422
  createdById: string | null;
9340
9423
  }> | undefined, PageView<{
9341
- id: string;
9342
9424
  draftId: string | null;
9425
+ id: string;
9343
9426
  deleted: boolean;
9344
9427
  locale: string;
9345
9428
  layoutId: string;
@@ -9374,13 +9457,14 @@ declare const router: {
9374
9457
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
9375
9458
  block: Omit<{
9376
9459
  type: string;
9377
- id: string;
9378
9460
  draftId: string | null;
9461
+ id: string;
9379
9462
  deleted: boolean;
9380
9463
  settings: unknown;
9381
9464
  locale: string;
9382
9465
  pageId: string | null;
9383
9466
  layoutId: string | null;
9467
+ content: unknown;
9384
9468
  createdAt: number;
9385
9469
  updatedAt: number;
9386
9470
  projectId: number;
@@ -9390,7 +9474,6 @@ declare const router: {
9390
9474
  firstPublishedAt: number | null;
9391
9475
  publishedAt: number | null;
9392
9476
  publishedBy: string | null;
9393
- content: unknown;
9394
9477
  slot: "before" | "after" | null;
9395
9478
  position: string;
9396
9479
  }, "content"> & {
@@ -9398,16 +9481,18 @@ declare const router: {
9398
9481
  } & {
9399
9482
  summary: string;
9400
9483
  title: string;
9484
+ artifactHashes: Record<string, string>;
9401
9485
  } & {
9402
9486
  references: ResolvedReferences;
9403
9487
  };
9404
9488
  repeatableItems: (Omit<{
9405
- id: string;
9406
9489
  draftId: string | null;
9490
+ id: string;
9407
9491
  deleted: boolean;
9408
9492
  settings: unknown;
9409
9493
  locale: string;
9410
9494
  blockId: string | null;
9495
+ content: unknown;
9411
9496
  createdAt: number;
9412
9497
  updatedAt: number;
9413
9498
  projectId: number | null;
@@ -9417,7 +9502,6 @@ declare const router: {
9417
9502
  firstPublishedAt: number | null;
9418
9503
  publishedAt: number | null;
9419
9504
  publishedBy: string | null;
9420
- content: unknown;
9421
9505
  position: string;
9422
9506
  sharedContentType: string | null;
9423
9507
  parentItemId: string | null;
@@ -9428,6 +9512,7 @@ declare const router: {
9428
9512
  blockId: string;
9429
9513
  summary: string;
9430
9514
  title: string;
9515
+ artifactHashes: Record<string, string>;
9431
9516
  } & {
9432
9517
  references: ResolvedReferences;
9433
9518
  })[];
@@ -9435,13 +9520,14 @@ declare const router: {
9435
9520
  }, {
9436
9521
  block: Omit<{
9437
9522
  type: string;
9438
- id: string;
9439
9523
  draftId: string | null;
9524
+ id: string;
9440
9525
  deleted: boolean;
9441
9526
  settings: unknown;
9442
9527
  locale: string;
9443
9528
  pageId: string | null;
9444
9529
  layoutId: string | null;
9530
+ content: unknown;
9445
9531
  createdAt: number;
9446
9532
  updatedAt: number;
9447
9533
  projectId: number;
@@ -9451,7 +9537,6 @@ declare const router: {
9451
9537
  firstPublishedAt: number | null;
9452
9538
  publishedAt: number | null;
9453
9539
  publishedBy: string | null;
9454
- content: unknown;
9455
9540
  slot: "before" | "after" | null;
9456
9541
  position: string;
9457
9542
  }, "content"> & {
@@ -9459,16 +9544,18 @@ declare const router: {
9459
9544
  } & {
9460
9545
  summary: string;
9461
9546
  title: string;
9547
+ artifactHashes: Record<string, string>;
9462
9548
  } & {
9463
9549
  references: ResolvedReferences;
9464
9550
  };
9465
9551
  repeatableItems: (Omit<{
9466
- id: string;
9467
9552
  draftId: string | null;
9553
+ id: string;
9468
9554
  deleted: boolean;
9469
9555
  settings: unknown;
9470
9556
  locale: string;
9471
9557
  blockId: string | null;
9558
+ content: unknown;
9472
9559
  createdAt: number;
9473
9560
  updatedAt: number;
9474
9561
  projectId: number | null;
@@ -9478,7 +9565,6 @@ declare const router: {
9478
9565
  firstPublishedAt: number | null;
9479
9566
  publishedAt: number | null;
9480
9567
  publishedBy: string | null;
9481
- content: unknown;
9482
9568
  position: string;
9483
9569
  sharedContentType: string | null;
9484
9570
  parentItemId: string | null;
@@ -9489,6 +9575,7 @@ declare const router: {
9489
9575
  blockId: string;
9490
9576
  summary: string;
9491
9577
  title: string;
9578
+ artifactHashes: Record<string, string>;
9492
9579
  } & {
9493
9580
  references: ResolvedReferences;
9494
9581
  })[];
@@ -9570,13 +9657,14 @@ declare const router: {
9570
9657
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
9571
9658
  block: Omit<{
9572
9659
  type: string;
9573
- id: string;
9574
9660
  draftId: string | null;
9661
+ id: string;
9575
9662
  deleted: boolean;
9576
9663
  settings: unknown;
9577
9664
  locale: string;
9578
9665
  pageId: string | null;
9579
9666
  layoutId: string | null;
9667
+ content: unknown;
9580
9668
  createdAt: number;
9581
9669
  updatedAt: number;
9582
9670
  projectId: number;
@@ -9586,7 +9674,6 @@ declare const router: {
9586
9674
  firstPublishedAt: number | null;
9587
9675
  publishedAt: number | null;
9588
9676
  publishedBy: string | null;
9589
- content: unknown;
9590
9677
  slot: "before" | "after" | null;
9591
9678
  position: string;
9592
9679
  }, "content"> & {
@@ -9594,16 +9681,18 @@ declare const router: {
9594
9681
  } & {
9595
9682
  summary: string;
9596
9683
  title: string;
9684
+ artifactHashes: Record<string, string>;
9597
9685
  } & {
9598
9686
  references: ResolvedReferences;
9599
9687
  };
9600
9688
  repeatableItems: (Omit<{
9601
- id: string;
9602
9689
  draftId: string | null;
9690
+ id: string;
9603
9691
  deleted: boolean;
9604
9692
  settings: unknown;
9605
9693
  locale: string;
9606
9694
  blockId: string | null;
9695
+ content: unknown;
9607
9696
  createdAt: number;
9608
9697
  updatedAt: number;
9609
9698
  projectId: number | null;
@@ -9613,7 +9702,6 @@ declare const router: {
9613
9702
  firstPublishedAt: number | null;
9614
9703
  publishedAt: number | null;
9615
9704
  publishedBy: string | null;
9616
- content: unknown;
9617
9705
  position: string;
9618
9706
  sharedContentType: string | null;
9619
9707
  parentItemId: string | null;
@@ -9624,6 +9712,7 @@ declare const router: {
9624
9712
  blockId: string;
9625
9713
  summary: string;
9626
9714
  title: string;
9715
+ artifactHashes: Record<string, string>;
9627
9716
  } & {
9628
9717
  references: ResolvedReferences;
9629
9718
  })[];
@@ -9631,13 +9720,14 @@ declare const router: {
9631
9720
  } | null, {
9632
9721
  block: Omit<{
9633
9722
  type: string;
9634
- id: string;
9635
9723
  draftId: string | null;
9724
+ id: string;
9636
9725
  deleted: boolean;
9637
9726
  settings: unknown;
9638
9727
  locale: string;
9639
9728
  pageId: string | null;
9640
9729
  layoutId: string | null;
9730
+ content: unknown;
9641
9731
  createdAt: number;
9642
9732
  updatedAt: number;
9643
9733
  projectId: number;
@@ -9647,7 +9737,6 @@ declare const router: {
9647
9737
  firstPublishedAt: number | null;
9648
9738
  publishedAt: number | null;
9649
9739
  publishedBy: string | null;
9650
- content: unknown;
9651
9740
  slot: "before" | "after" | null;
9652
9741
  position: string;
9653
9742
  }, "content"> & {
@@ -9655,16 +9744,18 @@ declare const router: {
9655
9744
  } & {
9656
9745
  summary: string;
9657
9746
  title: string;
9747
+ artifactHashes: Record<string, string>;
9658
9748
  } & {
9659
9749
  references: ResolvedReferences;
9660
9750
  };
9661
9751
  repeatableItems: (Omit<{
9662
- id: string;
9663
9752
  draftId: string | null;
9753
+ id: string;
9664
9754
  deleted: boolean;
9665
9755
  settings: unknown;
9666
9756
  locale: string;
9667
9757
  blockId: string | null;
9758
+ content: unknown;
9668
9759
  createdAt: number;
9669
9760
  updatedAt: number;
9670
9761
  projectId: number | null;
@@ -9674,7 +9765,6 @@ declare const router: {
9674
9765
  firstPublishedAt: number | null;
9675
9766
  publishedAt: number | null;
9676
9767
  publishedBy: string | null;
9677
- content: unknown;
9678
9768
  position: string;
9679
9769
  sharedContentType: string | null;
9680
9770
  parentItemId: string | null;
@@ -9685,6 +9775,7 @@ declare const router: {
9685
9775
  blockId: string;
9686
9776
  summary: string;
9687
9777
  title: string;
9778
+ artifactHashes: Record<string, string>;
9688
9779
  } & {
9689
9780
  references: ResolvedReferences;
9690
9781
  })[];
@@ -9790,13 +9881,14 @@ declare const router: {
9790
9881
  }, import("zod/v4/core").$strip>>>;
9791
9882
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<Omit<{
9792
9883
  type: string;
9793
- id: string;
9794
9884
  draftId: string | null;
9885
+ id: string;
9795
9886
  deleted: boolean;
9796
9887
  settings: unknown;
9797
9888
  locale: string;
9798
9889
  pageId: string | null;
9799
9890
  layoutId: string | null;
9891
+ content: unknown;
9800
9892
  createdAt: number;
9801
9893
  updatedAt: number;
9802
9894
  projectId: number;
@@ -9806,7 +9898,6 @@ declare const router: {
9806
9898
  firstPublishedAt: number | null;
9807
9899
  publishedAt: number | null;
9808
9900
  publishedBy: string | null;
9809
- content: unknown;
9810
9901
  slot: "before" | "after" | null;
9811
9902
  position: string;
9812
9903
  }, "content"> & {
@@ -9814,17 +9905,19 @@ declare const router: {
9814
9905
  } & {
9815
9906
  summary: string;
9816
9907
  title: string;
9908
+ artifactHashes: Record<string, string>;
9817
9909
  } & {
9818
9910
  warnings?: string[];
9819
9911
  }, Omit<{
9820
9912
  type: string;
9821
- id: string;
9822
9913
  draftId: string | null;
9914
+ id: string;
9823
9915
  deleted: boolean;
9824
9916
  settings: unknown;
9825
9917
  locale: string;
9826
9918
  pageId: string | null;
9827
9919
  layoutId: string | null;
9920
+ content: unknown;
9828
9921
  createdAt: number;
9829
9922
  updatedAt: number;
9830
9923
  projectId: number;
@@ -9834,7 +9927,6 @@ declare const router: {
9834
9927
  firstPublishedAt: number | null;
9835
9928
  publishedAt: number | null;
9836
9929
  publishedBy: string | null;
9837
- content: unknown;
9838
9930
  slot: "before" | "after" | null;
9839
9931
  position: string;
9840
9932
  }, "content"> & {
@@ -9842,6 +9934,7 @@ declare const router: {
9842
9934
  } & {
9843
9935
  summary: string;
9844
9936
  title: string;
9937
+ artifactHashes: Record<string, string>;
9845
9938
  } & {
9846
9939
  warnings?: string[];
9847
9940
  }>, Record<never, never>, Record<never, never>>;
@@ -10432,13 +10525,14 @@ declare const router: {
10432
10525
  };
10433
10526
  blocks: (Omit<{
10434
10527
  type: string;
10435
- id: string;
10436
10528
  draftId: string | null;
10529
+ id: string;
10437
10530
  deleted: boolean;
10438
10531
  settings: unknown;
10439
10532
  locale: string;
10440
10533
  pageId: string | null;
10441
10534
  layoutId: string | null;
10535
+ content: unknown;
10442
10536
  createdAt: number;
10443
10537
  updatedAt: number;
10444
10538
  projectId: number;
@@ -10448,7 +10542,6 @@ declare const router: {
10448
10542
  firstPublishedAt: number | null;
10449
10543
  publishedAt: number | null;
10450
10544
  publishedBy: string | null;
10451
- content: unknown;
10452
10545
  slot: "before" | "after" | null;
10453
10546
  position: string;
10454
10547
  }, "content"> & {
@@ -10456,16 +10549,18 @@ declare const router: {
10456
10549
  } & {
10457
10550
  summary: string;
10458
10551
  title: string;
10552
+ artifactHashes: Record<string, string>;
10459
10553
  } & {
10460
10554
  references: ResolvedReferences;
10461
10555
  })[];
10462
10556
  repeatableItems: (Omit<{
10463
- id: string;
10464
10557
  draftId: string | null;
10558
+ id: string;
10465
10559
  deleted: boolean;
10466
10560
  settings: unknown;
10467
10561
  locale: string;
10468
10562
  blockId: string | null;
10563
+ content: unknown;
10469
10564
  createdAt: number;
10470
10565
  updatedAt: number;
10471
10566
  projectId: number | null;
@@ -10475,7 +10570,6 @@ declare const router: {
10475
10570
  firstPublishedAt: number | null;
10476
10571
  publishedAt: number | null;
10477
10572
  publishedBy: string | null;
10478
- content: unknown;
10479
10573
  position: string;
10480
10574
  sharedContentType: string | null;
10481
10575
  parentItemId: string | null;
@@ -10486,6 +10580,7 @@ declare const router: {
10486
10580
  blockId: string;
10487
10581
  summary: string;
10488
10582
  title: string;
10583
+ artifactHashes: Record<string, string>;
10489
10584
  } & {
10490
10585
  references: ResolvedReferences;
10491
10586
  })[];
@@ -10509,13 +10604,14 @@ declare const router: {
10509
10604
  };
10510
10605
  blocks: (Omit<{
10511
10606
  type: string;
10512
- id: string;
10513
10607
  draftId: string | null;
10608
+ id: string;
10514
10609
  deleted: boolean;
10515
10610
  settings: unknown;
10516
10611
  locale: string;
10517
10612
  pageId: string | null;
10518
10613
  layoutId: string | null;
10614
+ content: unknown;
10519
10615
  createdAt: number;
10520
10616
  updatedAt: number;
10521
10617
  projectId: number;
@@ -10525,7 +10621,6 @@ declare const router: {
10525
10621
  firstPublishedAt: number | null;
10526
10622
  publishedAt: number | null;
10527
10623
  publishedBy: string | null;
10528
- content: unknown;
10529
10624
  slot: "before" | "after" | null;
10530
10625
  position: string;
10531
10626
  }, "content"> & {
@@ -10533,16 +10628,18 @@ declare const router: {
10533
10628
  } & {
10534
10629
  summary: string;
10535
10630
  title: string;
10631
+ artifactHashes: Record<string, string>;
10536
10632
  } & {
10537
10633
  references: ResolvedReferences;
10538
10634
  })[];
10539
10635
  repeatableItems: (Omit<{
10540
- id: string;
10541
10636
  draftId: string | null;
10637
+ id: string;
10542
10638
  deleted: boolean;
10543
10639
  settings: unknown;
10544
10640
  locale: string;
10545
10641
  blockId: string | null;
10642
+ content: unknown;
10546
10643
  createdAt: number;
10547
10644
  updatedAt: number;
10548
10645
  projectId: number | null;
@@ -10552,7 +10649,6 @@ declare const router: {
10552
10649
  firstPublishedAt: number | null;
10553
10650
  publishedAt: number | null;
10554
10651
  publishedBy: string | null;
10555
- content: unknown;
10556
10652
  position: string;
10557
10653
  sharedContentType: string | null;
10558
10654
  parentItemId: string | null;
@@ -10563,6 +10659,7 @@ declare const router: {
10563
10659
  blockId: string;
10564
10660
  summary: string;
10565
10661
  title: string;
10662
+ artifactHashes: Record<string, string>;
10566
10663
  } & {
10567
10664
  references: ResolvedReferences;
10568
10665
  })[];
@@ -10992,10 +11089,10 @@ declare const router: {
10992
11089
  }>, import("zod").ZodObject<{
10993
11090
  projectId: import("zod").ZodNumber;
10994
11091
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
10995
- path: string;
10996
- id: string;
10997
11092
  draftId: string | null;
11093
+ id: string;
10998
11094
  deleted: boolean;
11095
+ path: string;
10999
11096
  createdAt: number;
11000
11097
  updatedAt: number;
11001
11098
  projectId: number;
@@ -11016,10 +11113,10 @@ declare const router: {
11016
11113
  height: number | null;
11017
11114
  blobId: string;
11018
11115
  }>[], FileView<{
11019
- path: string;
11020
- id: string;
11021
11116
  draftId: string | null;
11117
+ id: string;
11022
11118
  deleted: boolean;
11119
+ path: string;
11023
11120
  createdAt: number;
11024
11121
  updatedAt: number;
11025
11122
  projectId: number;
@@ -11047,10 +11144,10 @@ declare const router: {
11047
11144
  }>, import("zod").ZodObject<{
11048
11145
  id: import("zod").ZodUUID;
11049
11146
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
11050
- path: string;
11051
- id: string;
11052
11147
  draftId: string | null;
11148
+ id: string;
11053
11149
  deleted: boolean;
11150
+ path: string;
11054
11151
  createdAt: number;
11055
11152
  updatedAt: number;
11056
11153
  projectId: number;
@@ -11071,10 +11168,10 @@ declare const router: {
11071
11168
  height: number | null;
11072
11169
  blobId: string;
11073
11170
  }>, FileView<{
11074
- path: string;
11075
- id: string;
11076
11171
  draftId: string | null;
11172
+ id: string;
11077
11173
  deleted: boolean;
11174
+ path: string;
11078
11175
  createdAt: number;
11079
11176
  updatedAt: number;
11080
11177
  projectId: number;
@@ -11192,10 +11289,10 @@ declare const router: {
11192
11289
  id: import("zod").ZodUUID;
11193
11290
  alt: import("zod").ZodString;
11194
11291
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
11195
- path: string;
11196
- id: string;
11197
11292
  draftId: string | null;
11293
+ id: string;
11198
11294
  deleted: boolean;
11295
+ path: string;
11199
11296
  createdAt: number;
11200
11297
  updatedAt: number;
11201
11298
  projectId: number;
@@ -11216,10 +11313,10 @@ declare const router: {
11216
11313
  height: number | null;
11217
11314
  blobId: string;
11218
11315
  }>, FileView<{
11219
- path: string;
11220
- id: string;
11221
11316
  draftId: string | null;
11317
+ id: string;
11222
11318
  deleted: boolean;
11319
+ path: string;
11223
11320
  createdAt: number;
11224
11321
  updatedAt: number;
11225
11322
  projectId: number;
@@ -11326,10 +11423,10 @@ declare const router: {
11326
11423
  id: import("zod").ZodUUID;
11327
11424
  filename: import("zod").ZodString;
11328
11425
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
11329
- path: string;
11330
- id: string;
11331
11426
  draftId: string | null;
11427
+ id: string;
11332
11428
  deleted: boolean;
11429
+ path: string;
11333
11430
  createdAt: number;
11334
11431
  updatedAt: number;
11335
11432
  projectId: number;
@@ -11350,10 +11447,10 @@ declare const router: {
11350
11447
  height: number | null;
11351
11448
  blobId: string;
11352
11449
  }>, FileView<{
11353
- path: string;
11354
- id: string;
11355
11450
  draftId: string | null;
11451
+ id: string;
11356
11452
  deleted: boolean;
11453
+ path: string;
11357
11454
  createdAt: number;
11358
11455
  updatedAt: number;
11359
11456
  projectId: number;
@@ -11459,10 +11556,10 @@ declare const router: {
11459
11556
  }>, Record<never, never>>, import("zod").ZodObject<{
11460
11557
  id: import("zod").ZodUUID;
11461
11558
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
11462
- path: string;
11463
- id: string;
11464
11559
  draftId: string | null;
11560
+ id: string;
11465
11561
  deleted: boolean;
11562
+ path: string;
11466
11563
  createdAt: number;
11467
11564
  updatedAt: number;
11468
11565
  projectId: number;
@@ -11483,10 +11580,10 @@ declare const router: {
11483
11580
  height: number | null;
11484
11581
  blobId: string;
11485
11582
  }, {
11486
- path: string;
11487
- id: string;
11488
11583
  draftId: string | null;
11584
+ id: string;
11489
11585
  deleted: boolean;
11586
+ path: string;
11490
11587
  createdAt: number;
11491
11588
  updatedAt: number;
11492
11589
  projectId: number;
@@ -11678,10 +11775,10 @@ declare const router: {
11678
11775
  id: import("zod").ZodUUID;
11679
11776
  enabled: import("zod").ZodBoolean;
11680
11777
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
11681
- path: string;
11682
- id: string;
11683
11778
  draftId: string | null;
11779
+ id: string;
11684
11780
  deleted: boolean;
11781
+ path: string;
11685
11782
  createdAt: number;
11686
11783
  updatedAt: number;
11687
11784
  projectId: number;
@@ -11702,10 +11799,10 @@ declare const router: {
11702
11799
  height: number | null;
11703
11800
  blobId: string;
11704
11801
  }>, FileView<{
11705
- path: string;
11706
- id: string;
11707
11802
  draftId: string | null;
11803
+ id: string;
11708
11804
  deleted: boolean;
11805
+ path: string;
11709
11806
  createdAt: number;
11710
11807
  updatedAt: number;
11711
11808
  projectId: number;
@@ -11773,10 +11870,10 @@ declare const router: {
11773
11870
  }>, import("zod").ZodObject<{
11774
11871
  id: import("zod").ZodUUID;
11775
11872
  }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
11776
- path: string;
11777
- id: string;
11778
11873
  draftId: string | null;
11874
+ id: string;
11779
11875
  deleted: boolean;
11876
+ path: string;
11780
11877
  createdAt: number;
11781
11878
  updatedAt: number;
11782
11879
  projectId: number;
@@ -11797,10 +11894,10 @@ declare const router: {
11797
11894
  height: number | null;
11798
11895
  blobId: string;
11799
11896
  }> | undefined, FileView<{
11800
- path: string;
11801
- id: string;
11802
11897
  draftId: string | null;
11898
+ id: string;
11803
11899
  deleted: boolean;
11900
+ path: string;
11804
11901
  createdAt: number;
11805
11902
  updatedAt: number;
11806
11903
  projectId: number;
@@ -11835,9 +11932,12 @@ declare const router: {
11835
11932
  blockId: string | null;
11836
11933
  summary: string;
11837
11934
  title: string;
11935
+ artifactHashes: {
11936
+ [k: string]: string;
11937
+ };
11838
11938
  references: ResolvedReferences;
11839
- id: string;
11840
11939
  draftId: string | null;
11940
+ id: string;
11841
11941
  deleted: boolean;
11842
11942
  settings: unknown;
11843
11943
  locale: string;
@@ -11862,9 +11962,12 @@ declare const router: {
11862
11962
  blockId: string | null;
11863
11963
  summary: string;
11864
11964
  title: string;
11965
+ artifactHashes: {
11966
+ [k: string]: string;
11967
+ };
11865
11968
  references: ResolvedReferences;
11866
- id: string;
11867
11969
  draftId: string | null;
11970
+ id: string;
11868
11971
  deleted: boolean;
11869
11972
  settings: unknown;
11870
11973
  locale: string;
@@ -11987,8 +12090,8 @@ declare const router: {
11987
12090
  settings: unknown;
11988
12091
  summary: string;
11989
12092
  title: string;
11990
- id: string;
11991
12093
  draftId: string | null;
12094
+ id: string;
11992
12095
  deleted: boolean;
11993
12096
  locale: string;
11994
12097
  blockId: string | null;
@@ -12010,8 +12113,8 @@ declare const router: {
12010
12113
  settings: unknown;
12011
12114
  summary: string;
12012
12115
  title: string;
12013
- id: string;
12014
12116
  draftId: string | null;
12117
+ id: string;
12015
12118
  deleted: boolean;
12016
12119
  locale: string;
12017
12120
  blockId: string | null;
@@ -12119,8 +12222,8 @@ declare const router: {
12119
12222
  settings: unknown;
12120
12223
  summary: string;
12121
12224
  title: string;
12122
- id: string;
12123
12225
  draftId: string | null;
12226
+ id: string;
12124
12227
  deleted: boolean;
12125
12228
  locale: string;
12126
12229
  blockId: string | null;
@@ -12142,8 +12245,8 @@ declare const router: {
12142
12245
  settings: unknown;
12143
12246
  summary: string;
12144
12247
  title: string;
12145
- id: string;
12146
12248
  draftId: string | null;
12249
+ id: string;
12147
12250
  deleted: boolean;
12148
12251
  locale: string;
12149
12252
  blockId: string | null;
@@ -12251,8 +12354,8 @@ declare const router: {
12251
12354
  settings: unknown;
12252
12355
  summary: string;
12253
12356
  title: string;
12254
- id: string;
12255
12357
  draftId: string | null;
12358
+ id: string;
12256
12359
  deleted: boolean;
12257
12360
  locale: string;
12258
12361
  blockId: string | null;
@@ -12274,8 +12377,8 @@ declare const router: {
12274
12377
  settings: unknown;
12275
12378
  summary: string;
12276
12379
  title: string;
12277
- id: string;
12278
12380
  draftId: string | null;
12381
+ id: string;
12279
12382
  deleted: boolean;
12280
12383
  locale: string;
12281
12384
  blockId: string | null;
@@ -12384,8 +12487,8 @@ declare const router: {
12384
12487
  settings: unknown;
12385
12488
  summary: string;
12386
12489
  title: string;
12387
- id: string;
12388
12490
  draftId: string | null;
12491
+ id: string;
12389
12492
  deleted: boolean;
12390
12493
  locale: string;
12391
12494
  blockId: string | null;
@@ -12407,8 +12510,8 @@ declare const router: {
12407
12510
  settings: unknown;
12408
12511
  summary: string;
12409
12512
  title: string;
12410
- id: string;
12411
12513
  draftId: string | null;
12514
+ id: string;
12412
12515
  deleted: boolean;
12413
12516
  locale: string;
12414
12517
  blockId: string | null;
@@ -12515,8 +12618,8 @@ declare const router: {
12515
12618
  settings: unknown;
12516
12619
  summary: string;
12517
12620
  title: string;
12518
- id: string;
12519
12621
  draftId: string | null;
12622
+ id: string;
12520
12623
  deleted: boolean;
12521
12624
  locale: string;
12522
12625
  blockId: string | null;
@@ -12538,8 +12641,8 @@ declare const router: {
12538
12641
  settings: unknown;
12539
12642
  summary: string;
12540
12643
  title: string;
12541
- id: string;
12542
12644
  draftId: string | null;
12645
+ id: string;
12543
12646
  deleted: boolean;
12544
12647
  locale: string;
12545
12648
  blockId: string | null;
@@ -12608,8 +12711,8 @@ declare const router: {
12608
12711
  settings: unknown;
12609
12712
  summary: string;
12610
12713
  title: string;
12611
- id: string;
12612
12714
  draftId: string | null;
12715
+ id: string;
12613
12716
  deleted: boolean;
12614
12717
  locale: string;
12615
12718
  blockId: string | null;
@@ -12631,8 +12734,8 @@ declare const router: {
12631
12734
  settings: unknown;
12632
12735
  summary: string;
12633
12736
  title: string;
12634
- id: string;
12635
12737
  draftId: string | null;
12738
+ id: string;
12636
12739
  deleted: boolean;
12637
12740
  locale: string;
12638
12741
  blockId: string | null;
@@ -12739,8 +12842,8 @@ declare const router: {
12739
12842
  settings: unknown;
12740
12843
  summary: string;
12741
12844
  title: string;
12742
- id: string;
12743
12845
  draftId: string | null;
12846
+ id: string;
12744
12847
  deleted: boolean;
12745
12848
  locale: string;
12746
12849
  blockId: string | null;
@@ -12762,8 +12865,8 @@ declare const router: {
12762
12865
  settings: unknown;
12763
12866
  summary: string;
12764
12867
  title: string;
12765
- id: string;
12766
12868
  draftId: string | null;
12869
+ id: string;
12767
12870
  deleted: boolean;
12768
12871
  locale: string;
12769
12872
  blockId: string | null;
@@ -14344,6 +14447,59 @@ declare const router: {
14344
14447
  projectId: import("zod").ZodNumber;
14345
14448
  }, 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>>;
14346
14449
  };
14450
+ patrol: {
14451
+ 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>>, {
14452
+ draft: DraftRequest | null;
14453
+ locale: string | undefined;
14454
+ publishingDraft: string | undefined;
14455
+ }>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
14456
+ draft: DraftRequest | null;
14457
+ locale: string | undefined;
14458
+ publishingDraft: string | undefined;
14459
+ }>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
14460
+ draft: DraftRequest | null;
14461
+ locale: string | undefined;
14462
+ publishingDraft: string | undefined;
14463
+ }>, {
14464
+ user: {
14465
+ id: string;
14466
+ createdAt: Date;
14467
+ updatedAt: Date;
14468
+ email: string;
14469
+ emailVerified: boolean;
14470
+ name: string;
14471
+ image?: string | null | undefined;
14472
+ };
14473
+ session: {
14474
+ id: string;
14475
+ createdAt: Date;
14476
+ updatedAt: Date;
14477
+ userId: string;
14478
+ expiresAt: Date;
14479
+ token: string;
14480
+ ipAddress?: string | null | undefined;
14481
+ userAgent?: string | null | undefined;
14482
+ activeOrganizationId?: string | null | undefined;
14483
+ studio?: boolean | null | undefined;
14484
+ };
14485
+ db: Database;
14486
+ env: Bindings;
14487
+ headers: Headers;
14488
+ client: string;
14489
+ telemetryDisabled: boolean;
14490
+ waitUntil: (promise: Promise<unknown>) => void;
14491
+ apiOrigin?: string | undefined;
14492
+ draft: DraftRequest | null;
14493
+ locale: string | undefined;
14494
+ publishingDraft: string | undefined;
14495
+ }>, import("zod").ZodObject<{
14496
+ projectId: import("zod").ZodNumber;
14497
+ }, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
14498
+ patrollers: import("@camox/api-contract/patrol").PatrollerView[];
14499
+ }, {
14500
+ patrollers: import("@camox/api-contract/patrol").PatrollerView[];
14501
+ }>, Record<never, never>, Record<never, never>>;
14502
+ };
14347
14503
  };
14348
14504
  type Router = typeof router;
14349
14505
  //#endregion