@replohq/sandbox-runtime 1.20.0 → 1.22.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.
Files changed (47) hide show
  1. package/_vendor/schemas/comments.d.ts +906 -0
  2. package/_vendor/schemas/commentsOverlayRpc.d.ts +348 -0
  3. package/_vendor/schemas/commentsOverlayRpc.mjs +92 -0
  4. package/_vendor/schemas/generated/comments.d.ts +237 -0
  5. package/_vendor/schemas/generated/commentsOverlayRpc.d.ts +18 -0
  6. package/_vendor/schemas/generated/selectMode.d.ts +3 -1
  7. package/_vendor/schemas/selectMode.d.ts +113 -0
  8. package/_vendor/schemas/selectMode.mjs +1 -1
  9. package/_vendor/schemas/selectModeIframeRpc.d.ts +226 -0
  10. package/_vendor/schemas/selectModeIframeRpc.mjs +1 -1
  11. package/buildMetadata.js +3 -3
  12. package/chunk-CGRTGQO5.mjs +544 -0
  13. package/comments-overlay/CommentsOverlayMount.d.ts +1 -0
  14. package/comments-overlay/CommentsOverlayMount.js +44 -0
  15. package/comments-overlay/LICENSE-THIRD-PARTY.md +45 -0
  16. package/comments-overlay/bridge.d.ts +11 -0
  17. package/comments-overlay/bridge.js +136 -0
  18. package/comments-overlay/capture.d.ts +55 -0
  19. package/comments-overlay/capture.js +250 -0
  20. package/comments-overlay/originGate.d.ts +1 -0
  21. package/comments-overlay/originGate.js +11 -0
  22. package/comments-overlay/overlay.d.ts +52 -0
  23. package/comments-overlay/overlay.js +781 -0
  24. package/comments-overlay/resolve.d.ts +27 -0
  25. package/comments-overlay/resolve.js +201 -0
  26. package/comments-overlay/sourceLookup.d.ts +11 -0
  27. package/comments-overlay/sourceLookup.js +63 -0
  28. package/comments-overlay/textQuote.d.ts +17 -0
  29. package/comments-overlay/textQuote.js +87 -0
  30. package/comments-overlay/vendor/bippy.d.ts +53 -0
  31. package/comments-overlay/vendor/bippy.js +402 -0
  32. package/comments-overlay/vendor/elementAnchors.d.ts +9 -0
  33. package/comments-overlay/vendor/elementAnchors.js +144 -0
  34. package/comments-overlay/vendor/fiberElement.d.ts +21 -0
  35. package/comments-overlay/vendor/fiberElement.js +251 -0
  36. package/comments-overlay/vendor/htmlPreview.d.ts +13 -0
  37. package/comments-overlay/vendor/htmlPreview.js +179 -0
  38. package/comments-overlay/vendor/selector.d.ts +38 -0
  39. package/comments-overlay/vendor/selector.js +372 -0
  40. package/next/config.js +37 -1
  41. package/package.json +4 -4
  42. package/sandbox-runtime.js +2 -0
  43. package/select-mode/descriptor/elementDescriptor.d.ts +4 -3
  44. package/select-mode/descriptor/elementDescriptor.js +20 -30
  45. package/select-mode/iframeRpcChannel.d.ts +84 -0
  46. package/select-mode/symbolicate.js +25 -7
  47. package/chunk-QTGDSYSU.mjs +0 -249
@@ -0,0 +1,906 @@
1
+ import * as z from "zod";
2
+ export declare function isUuid(value: string): boolean;
3
+ /**
4
+ * The thread id in a bare id or either D-23 permalink form
5
+ * (`…/comments/<id>`, `…/<folderId>?thread=<id>`); null when there is none.
6
+ */
7
+ export declare function parseCommentThreadReference(reference: string): string | null;
8
+ /** A comment body an agent or API caller writes: something besides whitespace. */
9
+ export declare const commentBodyTextSchema: z.ZodString;
10
+ export declare const commentSourceSchema: z.ZodEnum<{
11
+ ui: "ui";
12
+ agent: "agent";
13
+ mcp: "mcp";
14
+ api: "api";
15
+ }>;
16
+ export declare const commentAnchorContextSchema: z.ZodObject<{
17
+ url: z.ZodString;
18
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$strip>;
20
+ export declare const commentAnchorNoneSchema: z.ZodObject<{
21
+ type: z.ZodLiteral<"none">;
22
+ context: z.ZodOptional<z.ZodObject<{
23
+ url: z.ZodString;
24
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
27
+ export declare const commentAnchorElementSchema: z.ZodObject<{
28
+ type: z.ZodLiteral<"element">;
29
+ semanticSelector: z.ZodOptional<z.ZodString>;
30
+ selector: z.ZodString;
31
+ nthOfTypePath: z.ZodString;
32
+ source: z.ZodOptional<z.ZodObject<{
33
+ filePath: z.ZodString;
34
+ componentChain: z.ZodArray<z.ZodString>;
35
+ line: z.ZodOptional<z.ZodNumber>;
36
+ col: z.ZodOptional<z.ZodNumber>;
37
+ }, z.core.$strip>>;
38
+ listKey: z.ZodOptional<z.ZodString>;
39
+ tagName: z.ZodString;
40
+ textPreview: z.ZodString;
41
+ quote: z.ZodOptional<z.ZodObject<{
42
+ exact: z.ZodString;
43
+ prefix: z.ZodString;
44
+ suffix: z.ZodString;
45
+ }, z.core.$strip>>;
46
+ offset: z.ZodObject<{
47
+ x: z.ZodNumber;
48
+ y: z.ZodNumber;
49
+ }, z.core.$strip>;
50
+ context: z.ZodOptional<z.ZodObject<{
51
+ url: z.ZodString;
52
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ }, z.core.$strip>>;
54
+ }, z.core.$strip>;
55
+ export declare const commentAnchorCanvasSchema: z.ZodObject<{
56
+ type: z.ZodLiteral<"canvas">;
57
+ nodeId: z.ZodString;
58
+ layerId: z.ZodOptional<z.ZodString>;
59
+ point: z.ZodObject<{
60
+ x: z.ZodNumber;
61
+ y: z.ZodNumber;
62
+ }, z.core.$strip>;
63
+ world: z.ZodOptional<z.ZodObject<{
64
+ x: z.ZodNumber;
65
+ y: z.ZodNumber;
66
+ }, z.core.$strip>>;
67
+ }, z.core.$strip>;
68
+ export declare const commentAnchorPointSchema: z.ZodObject<{
69
+ type: z.ZodLiteral<"point">;
70
+ page: z.ZodOptional<z.ZodNumber>;
71
+ x: z.ZodNumber;
72
+ y: z.ZodNumber;
73
+ }, z.core.$strip>;
74
+ export declare const commentAnchorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
75
+ type: z.ZodLiteral<"none">;
76
+ context: z.ZodOptional<z.ZodObject<{
77
+ url: z.ZodString;
78
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ }, z.core.$strip>>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodLiteral<"element">;
82
+ semanticSelector: z.ZodOptional<z.ZodString>;
83
+ selector: z.ZodString;
84
+ nthOfTypePath: z.ZodString;
85
+ source: z.ZodOptional<z.ZodObject<{
86
+ filePath: z.ZodString;
87
+ componentChain: z.ZodArray<z.ZodString>;
88
+ line: z.ZodOptional<z.ZodNumber>;
89
+ col: z.ZodOptional<z.ZodNumber>;
90
+ }, z.core.$strip>>;
91
+ listKey: z.ZodOptional<z.ZodString>;
92
+ tagName: z.ZodString;
93
+ textPreview: z.ZodString;
94
+ quote: z.ZodOptional<z.ZodObject<{
95
+ exact: z.ZodString;
96
+ prefix: z.ZodString;
97
+ suffix: z.ZodString;
98
+ }, z.core.$strip>>;
99
+ offset: z.ZodObject<{
100
+ x: z.ZodNumber;
101
+ y: z.ZodNumber;
102
+ }, z.core.$strip>;
103
+ context: z.ZodOptional<z.ZodObject<{
104
+ url: z.ZodString;
105
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ }, z.core.$strip>>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ type: z.ZodLiteral<"canvas">;
109
+ nodeId: z.ZodString;
110
+ layerId: z.ZodOptional<z.ZodString>;
111
+ point: z.ZodObject<{
112
+ x: z.ZodNumber;
113
+ y: z.ZodNumber;
114
+ }, z.core.$strip>;
115
+ world: z.ZodOptional<z.ZodObject<{
116
+ x: z.ZodNumber;
117
+ y: z.ZodNumber;
118
+ }, z.core.$strip>>;
119
+ }, z.core.$strip>, z.ZodObject<{
120
+ type: z.ZodLiteral<"point">;
121
+ page: z.ZodOptional<z.ZodNumber>;
122
+ x: z.ZodNumber;
123
+ y: z.ZodNumber;
124
+ }, z.core.$strip>], "type">;
125
+ export declare const commentTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
126
+ kind: z.ZodLiteral<"file">;
127
+ fileId: z.ZodUUID;
128
+ folderId: z.ZodOptional<z.ZodUUID>;
129
+ }, z.core.$strip>, z.ZodObject<{
130
+ kind: z.ZodLiteral<"sitePage">;
131
+ siteId: z.ZodUUID;
132
+ url: z.ZodString;
133
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ routePatternHint: z.ZodOptional<z.ZodString>;
135
+ via: z.ZodOptional<z.ZodObject<{
136
+ fileId: z.ZodUUID;
137
+ shareId: z.ZodUUID;
138
+ }, z.core.$strip>>;
139
+ }, z.core.$strip>, z.ZodObject<{
140
+ kind: z.ZodLiteral<"order">;
141
+ orderId: z.ZodUUID;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ kind: z.ZodLiteral<"asset">;
144
+ assetId: z.ZodUUID;
145
+ }, z.core.$strip>], "kind">;
146
+ export declare const commentSurfaceSchema: z.ZodEnum<{
147
+ canvas: "canvas";
148
+ image: "image";
149
+ file: "file";
150
+ artifact: "artifact";
151
+ markdown: "markdown";
152
+ pdf: "pdf";
153
+ websiteBuilder: "websiteBuilder";
154
+ embeddedPreview: "embeddedPreview";
155
+ orders: "orders";
156
+ assets: "assets";
157
+ }>;
158
+ export declare const commentAuthorSchema: z.ZodObject<{
159
+ id: z.ZodString;
160
+ name: z.ZodString;
161
+ avatarUrl: z.ZodNullable<z.ZodString>;
162
+ deleted: z.ZodBoolean;
163
+ }, z.core.$strip>;
164
+ export declare const commentSchema: z.ZodObject<{
165
+ id: z.ZodString;
166
+ threadId: z.ZodString;
167
+ authorUserId: z.ZodString;
168
+ source: z.ZodEnum<{
169
+ ui: "ui";
170
+ agent: "agent";
171
+ mcp: "mcp";
172
+ api: "api";
173
+ }>;
174
+ body: z.ZodString;
175
+ createdAt: z.ZodISODateTime;
176
+ editedAt: z.ZodNullable<z.ZodISODateTime>;
177
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
178
+ }, z.core.$strip>;
179
+ export declare const commentReactionSchema: z.ZodObject<{
180
+ commentId: z.ZodString;
181
+ userId: z.ZodString;
182
+ emoji: z.ZodString;
183
+ createdAt: z.ZodISODateTime;
184
+ }, z.core.$strip>;
185
+ export declare const commentThreadTargetSchema: z.ZodObject<{
186
+ fileId: z.ZodOptional<z.ZodString>;
187
+ siteId: z.ZodOptional<z.ZodString>;
188
+ path: z.ZodOptional<z.ZodString>;
189
+ orderId: z.ZodOptional<z.ZodString>;
190
+ assetId: z.ZodOptional<z.ZodString>;
191
+ }, z.core.$strip>;
192
+ export declare const commentThreadSchema: z.ZodObject<{
193
+ id: z.ZodString;
194
+ projectId: z.ZodString;
195
+ target: z.ZodObject<{
196
+ fileId: z.ZodOptional<z.ZodString>;
197
+ siteId: z.ZodOptional<z.ZodString>;
198
+ path: z.ZodOptional<z.ZodString>;
199
+ orderId: z.ZodOptional<z.ZodString>;
200
+ assetId: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strip>;
202
+ viaFileId: z.ZodNullable<z.ZodString>;
203
+ viaFileName: z.ZodNullable<z.ZodString>;
204
+ anchor: z.ZodDiscriminatedUnion<[z.ZodObject<{
205
+ type: z.ZodLiteral<"none">;
206
+ context: z.ZodOptional<z.ZodObject<{
207
+ url: z.ZodString;
208
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
+ }, z.core.$strip>>;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ type: z.ZodLiteral<"element">;
212
+ semanticSelector: z.ZodOptional<z.ZodString>;
213
+ selector: z.ZodString;
214
+ nthOfTypePath: z.ZodString;
215
+ source: z.ZodOptional<z.ZodObject<{
216
+ filePath: z.ZodString;
217
+ componentChain: z.ZodArray<z.ZodString>;
218
+ line: z.ZodOptional<z.ZodNumber>;
219
+ col: z.ZodOptional<z.ZodNumber>;
220
+ }, z.core.$strip>>;
221
+ listKey: z.ZodOptional<z.ZodString>;
222
+ tagName: z.ZodString;
223
+ textPreview: z.ZodString;
224
+ quote: z.ZodOptional<z.ZodObject<{
225
+ exact: z.ZodString;
226
+ prefix: z.ZodString;
227
+ suffix: z.ZodString;
228
+ }, z.core.$strip>>;
229
+ offset: z.ZodObject<{
230
+ x: z.ZodNumber;
231
+ y: z.ZodNumber;
232
+ }, z.core.$strip>;
233
+ context: z.ZodOptional<z.ZodObject<{
234
+ url: z.ZodString;
235
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ }, z.core.$strip>>;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ type: z.ZodLiteral<"canvas">;
239
+ nodeId: z.ZodString;
240
+ layerId: z.ZodOptional<z.ZodString>;
241
+ point: z.ZodObject<{
242
+ x: z.ZodNumber;
243
+ y: z.ZodNumber;
244
+ }, z.core.$strip>;
245
+ world: z.ZodOptional<z.ZodObject<{
246
+ x: z.ZodNumber;
247
+ y: z.ZodNumber;
248
+ }, z.core.$strip>>;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ type: z.ZodLiteral<"point">;
251
+ page: z.ZodOptional<z.ZodNumber>;
252
+ x: z.ZodNumber;
253
+ y: z.ZodNumber;
254
+ }, z.core.$strip>], "type">;
255
+ resolvedAt: z.ZodNullable<z.ZodISODateTime>;
256
+ resolvedByUserId: z.ZodNullable<z.ZodString>;
257
+ resolvedSource: z.ZodNullable<z.ZodEnum<{
258
+ ui: "ui";
259
+ agent: "agent";
260
+ mcp: "mcp";
261
+ api: "api";
262
+ }>>;
263
+ createdAt: z.ZodISODateTime;
264
+ updatedAt: z.ZodISODateTime;
265
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
266
+ }, z.core.$strip>;
267
+ export declare const commentViewerSchema: z.ZodObject<{
268
+ userId: z.ZodNullable<z.ZodString>;
269
+ isMember: z.ZodBoolean;
270
+ canComment: z.ZodBoolean;
271
+ canModerate: z.ZodBoolean;
272
+ }, z.core.$strip>;
273
+ export declare const commentThreadBundleSchema: z.ZodObject<{
274
+ threads: z.ZodArray<z.ZodObject<{
275
+ id: z.ZodString;
276
+ projectId: z.ZodString;
277
+ target: z.ZodObject<{
278
+ fileId: z.ZodOptional<z.ZodString>;
279
+ siteId: z.ZodOptional<z.ZodString>;
280
+ path: z.ZodOptional<z.ZodString>;
281
+ orderId: z.ZodOptional<z.ZodString>;
282
+ assetId: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$strip>;
284
+ viaFileId: z.ZodNullable<z.ZodString>;
285
+ viaFileName: z.ZodNullable<z.ZodString>;
286
+ anchor: z.ZodDiscriminatedUnion<[z.ZodObject<{
287
+ type: z.ZodLiteral<"none">;
288
+ context: z.ZodOptional<z.ZodObject<{
289
+ url: z.ZodString;
290
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
291
+ }, z.core.$strip>>;
292
+ }, z.core.$strip>, z.ZodObject<{
293
+ type: z.ZodLiteral<"element">;
294
+ semanticSelector: z.ZodOptional<z.ZodString>;
295
+ selector: z.ZodString;
296
+ nthOfTypePath: z.ZodString;
297
+ source: z.ZodOptional<z.ZodObject<{
298
+ filePath: z.ZodString;
299
+ componentChain: z.ZodArray<z.ZodString>;
300
+ line: z.ZodOptional<z.ZodNumber>;
301
+ col: z.ZodOptional<z.ZodNumber>;
302
+ }, z.core.$strip>>;
303
+ listKey: z.ZodOptional<z.ZodString>;
304
+ tagName: z.ZodString;
305
+ textPreview: z.ZodString;
306
+ quote: z.ZodOptional<z.ZodObject<{
307
+ exact: z.ZodString;
308
+ prefix: z.ZodString;
309
+ suffix: z.ZodString;
310
+ }, z.core.$strip>>;
311
+ offset: z.ZodObject<{
312
+ x: z.ZodNumber;
313
+ y: z.ZodNumber;
314
+ }, z.core.$strip>;
315
+ context: z.ZodOptional<z.ZodObject<{
316
+ url: z.ZodString;
317
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
+ }, z.core.$strip>>;
319
+ }, z.core.$strip>, z.ZodObject<{
320
+ type: z.ZodLiteral<"canvas">;
321
+ nodeId: z.ZodString;
322
+ layerId: z.ZodOptional<z.ZodString>;
323
+ point: z.ZodObject<{
324
+ x: z.ZodNumber;
325
+ y: z.ZodNumber;
326
+ }, z.core.$strip>;
327
+ world: z.ZodOptional<z.ZodObject<{
328
+ x: z.ZodNumber;
329
+ y: z.ZodNumber;
330
+ }, z.core.$strip>>;
331
+ }, z.core.$strip>, z.ZodObject<{
332
+ type: z.ZodLiteral<"point">;
333
+ page: z.ZodOptional<z.ZodNumber>;
334
+ x: z.ZodNumber;
335
+ y: z.ZodNumber;
336
+ }, z.core.$strip>], "type">;
337
+ resolvedAt: z.ZodNullable<z.ZodISODateTime>;
338
+ resolvedByUserId: z.ZodNullable<z.ZodString>;
339
+ resolvedSource: z.ZodNullable<z.ZodEnum<{
340
+ ui: "ui";
341
+ agent: "agent";
342
+ mcp: "mcp";
343
+ api: "api";
344
+ }>>;
345
+ createdAt: z.ZodISODateTime;
346
+ updatedAt: z.ZodISODateTime;
347
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
348
+ }, z.core.$strip>>;
349
+ comments: z.ZodArray<z.ZodObject<{
350
+ id: z.ZodString;
351
+ threadId: z.ZodString;
352
+ authorUserId: z.ZodString;
353
+ source: z.ZodEnum<{
354
+ ui: "ui";
355
+ agent: "agent";
356
+ mcp: "mcp";
357
+ api: "api";
358
+ }>;
359
+ body: z.ZodString;
360
+ createdAt: z.ZodISODateTime;
361
+ editedAt: z.ZodNullable<z.ZodISODateTime>;
362
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
363
+ }, z.core.$strip>>;
364
+ reactions: z.ZodArray<z.ZodObject<{
365
+ commentId: z.ZodString;
366
+ userId: z.ZodString;
367
+ emoji: z.ZodString;
368
+ createdAt: z.ZodISODateTime;
369
+ }, z.core.$strip>>;
370
+ authors: z.ZodArray<z.ZodObject<{
371
+ id: z.ZodString;
372
+ name: z.ZodString;
373
+ avatarUrl: z.ZodNullable<z.ZodString>;
374
+ deleted: z.ZodBoolean;
375
+ }, z.core.$strip>>;
376
+ viewer: z.ZodObject<{
377
+ userId: z.ZodNullable<z.ZodString>;
378
+ isMember: z.ZodBoolean;
379
+ canComment: z.ZodBoolean;
380
+ canModerate: z.ZodBoolean;
381
+ }, z.core.$strip>;
382
+ }, z.core.$strip>;
383
+ export declare const createCommentThreadBodySchema: z.ZodObject<{
384
+ id: z.ZodUUID;
385
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
386
+ kind: z.ZodLiteral<"file">;
387
+ fileId: z.ZodUUID;
388
+ folderId: z.ZodOptional<z.ZodUUID>;
389
+ }, z.core.$strip>, z.ZodObject<{
390
+ kind: z.ZodLiteral<"sitePage">;
391
+ siteId: z.ZodUUID;
392
+ url: z.ZodString;
393
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
394
+ routePatternHint: z.ZodOptional<z.ZodString>;
395
+ via: z.ZodOptional<z.ZodObject<{
396
+ fileId: z.ZodUUID;
397
+ shareId: z.ZodUUID;
398
+ }, z.core.$strip>>;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ kind: z.ZodLiteral<"order">;
401
+ orderId: z.ZodUUID;
402
+ }, z.core.$strip>, z.ZodObject<{
403
+ kind: z.ZodLiteral<"asset">;
404
+ assetId: z.ZodUUID;
405
+ }, z.core.$strip>], "kind">;
406
+ anchor: z.ZodDiscriminatedUnion<[z.ZodObject<{
407
+ type: z.ZodLiteral<"none">;
408
+ context: z.ZodOptional<z.ZodObject<{
409
+ url: z.ZodString;
410
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ }, z.core.$strip>>;
412
+ }, z.core.$strip>, z.ZodObject<{
413
+ type: z.ZodLiteral<"element">;
414
+ semanticSelector: z.ZodOptional<z.ZodString>;
415
+ selector: z.ZodString;
416
+ nthOfTypePath: z.ZodString;
417
+ source: z.ZodOptional<z.ZodObject<{
418
+ filePath: z.ZodString;
419
+ componentChain: z.ZodArray<z.ZodString>;
420
+ line: z.ZodOptional<z.ZodNumber>;
421
+ col: z.ZodOptional<z.ZodNumber>;
422
+ }, z.core.$strip>>;
423
+ listKey: z.ZodOptional<z.ZodString>;
424
+ tagName: z.ZodString;
425
+ textPreview: z.ZodString;
426
+ quote: z.ZodOptional<z.ZodObject<{
427
+ exact: z.ZodString;
428
+ prefix: z.ZodString;
429
+ suffix: z.ZodString;
430
+ }, z.core.$strip>>;
431
+ offset: z.ZodObject<{
432
+ x: z.ZodNumber;
433
+ y: z.ZodNumber;
434
+ }, z.core.$strip>;
435
+ context: z.ZodOptional<z.ZodObject<{
436
+ url: z.ZodString;
437
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
438
+ }, z.core.$strip>>;
439
+ }, z.core.$strip>, z.ZodObject<{
440
+ type: z.ZodLiteral<"canvas">;
441
+ nodeId: z.ZodString;
442
+ layerId: z.ZodOptional<z.ZodString>;
443
+ point: z.ZodObject<{
444
+ x: z.ZodNumber;
445
+ y: z.ZodNumber;
446
+ }, z.core.$strip>;
447
+ world: z.ZodOptional<z.ZodObject<{
448
+ x: z.ZodNumber;
449
+ y: z.ZodNumber;
450
+ }, z.core.$strip>>;
451
+ }, z.core.$strip>, z.ZodObject<{
452
+ type: z.ZodLiteral<"point">;
453
+ page: z.ZodOptional<z.ZodNumber>;
454
+ x: z.ZodNumber;
455
+ y: z.ZodNumber;
456
+ }, z.core.$strip>], "type">;
457
+ body: z.ZodObject<{
458
+ id: z.ZodUUID;
459
+ body: z.ZodString;
460
+ }, z.core.$strip>;
461
+ }, z.core.$strip>;
462
+ export declare const updateCommentThreadBodySchema: z.ZodObject<{
463
+ resolved: z.ZodOptional<z.ZodBoolean>;
464
+ path: z.ZodOptional<z.ZodString>;
465
+ anchor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
466
+ type: z.ZodLiteral<"none">;
467
+ context: z.ZodOptional<z.ZodObject<{
468
+ url: z.ZodString;
469
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ }, z.core.$strip>>;
471
+ }, z.core.$strip>, z.ZodObject<{
472
+ type: z.ZodLiteral<"element">;
473
+ semanticSelector: z.ZodOptional<z.ZodString>;
474
+ selector: z.ZodString;
475
+ nthOfTypePath: z.ZodString;
476
+ source: z.ZodOptional<z.ZodObject<{
477
+ filePath: z.ZodString;
478
+ componentChain: z.ZodArray<z.ZodString>;
479
+ line: z.ZodOptional<z.ZodNumber>;
480
+ col: z.ZodOptional<z.ZodNumber>;
481
+ }, z.core.$strip>>;
482
+ listKey: z.ZodOptional<z.ZodString>;
483
+ tagName: z.ZodString;
484
+ textPreview: z.ZodString;
485
+ quote: z.ZodOptional<z.ZodObject<{
486
+ exact: z.ZodString;
487
+ prefix: z.ZodString;
488
+ suffix: z.ZodString;
489
+ }, z.core.$strip>>;
490
+ offset: z.ZodObject<{
491
+ x: z.ZodNumber;
492
+ y: z.ZodNumber;
493
+ }, z.core.$strip>;
494
+ context: z.ZodOptional<z.ZodObject<{
495
+ url: z.ZodString;
496
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
497
+ }, z.core.$strip>>;
498
+ }, z.core.$strip>, z.ZodObject<{
499
+ type: z.ZodLiteral<"canvas">;
500
+ nodeId: z.ZodString;
501
+ layerId: z.ZodOptional<z.ZodString>;
502
+ point: z.ZodObject<{
503
+ x: z.ZodNumber;
504
+ y: z.ZodNumber;
505
+ }, z.core.$strip>;
506
+ world: z.ZodOptional<z.ZodObject<{
507
+ x: z.ZodNumber;
508
+ y: z.ZodNumber;
509
+ }, z.core.$strip>>;
510
+ }, z.core.$strip>, z.ZodObject<{
511
+ type: z.ZodLiteral<"point">;
512
+ page: z.ZodOptional<z.ZodNumber>;
513
+ x: z.ZodNumber;
514
+ y: z.ZodNumber;
515
+ }, z.core.$strip>], "type">>;
516
+ }, z.core.$strip>;
517
+ export declare const createCommentBodySchema: z.ZodObject<{
518
+ id: z.ZodUUID;
519
+ body: z.ZodString;
520
+ }, z.core.$strip>;
521
+ export declare const updateCommentBodySchema: z.ZodObject<{
522
+ body: z.ZodString;
523
+ }, z.core.$strip>;
524
+ export declare const commentThreadStatusSchema: z.ZodEnum<{
525
+ open: "open";
526
+ resolved: "resolved";
527
+ }>;
528
+ export declare const listCommentThreadsQuerySchema: z.ZodObject<{
529
+ fileId: z.ZodOptional<z.ZodUUID>;
530
+ folderId: z.ZodOptional<z.ZodUUID>;
531
+ siteId: z.ZodOptional<z.ZodUUID>;
532
+ path: z.ZodOptional<z.ZodString>;
533
+ locale: z.ZodOptional<z.ZodString>;
534
+ viaFileId: z.ZodOptional<z.ZodUUID>;
535
+ orderId: z.ZodOptional<z.ZodUUID>;
536
+ assetId: z.ZodOptional<z.ZodUUID>;
537
+ status: z.ZodOptional<z.ZodEnum<{
538
+ open: "open";
539
+ resolved: "resolved";
540
+ }>>;
541
+ }, z.core.$strip>;
542
+ export declare const commentThreadLocationSchema: z.ZodObject<{
543
+ kind: z.ZodEnum<{
544
+ artifact: "artifact";
545
+ miniapp: "miniapp";
546
+ commentsScreen: "commentsScreen";
547
+ gone: "gone";
548
+ }>;
549
+ url: z.ZodOptional<z.ZodString>;
550
+ projectId: z.ZodOptional<z.ZodString>;
551
+ miniappId: z.ZodOptional<z.ZodString>;
552
+ miniappRoute: z.ZodOptional<z.ZodString>;
553
+ }, z.core.$strip>;
554
+ export declare const presignCommentAttachmentBodySchema: z.ZodObject<{
555
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
556
+ kind: z.ZodLiteral<"file">;
557
+ fileId: z.ZodUUID;
558
+ folderId: z.ZodOptional<z.ZodUUID>;
559
+ }, z.core.$strip>, z.ZodObject<{
560
+ kind: z.ZodLiteral<"sitePage">;
561
+ siteId: z.ZodUUID;
562
+ url: z.ZodString;
563
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
+ routePatternHint: z.ZodOptional<z.ZodString>;
565
+ via: z.ZodOptional<z.ZodObject<{
566
+ fileId: z.ZodUUID;
567
+ shareId: z.ZodUUID;
568
+ }, z.core.$strip>>;
569
+ }, z.core.$strip>, z.ZodObject<{
570
+ kind: z.ZodLiteral<"order">;
571
+ orderId: z.ZodUUID;
572
+ }, z.core.$strip>, z.ZodObject<{
573
+ kind: z.ZodLiteral<"asset">;
574
+ assetId: z.ZodUUID;
575
+ }, z.core.$strip>], "kind">;
576
+ contentType: z.ZodString;
577
+ contentLength: z.ZodNumber;
578
+ }, z.core.$strip>;
579
+ export declare const presignCommentAttachmentResponseSchema: z.ZodObject<{
580
+ objectKey: z.ZodString;
581
+ presignedPutUrl: z.ZodString;
582
+ publicUrl: z.ZodString;
583
+ }, z.core.$strip>;
584
+ export declare const commitCommentAttachmentBodySchema: z.ZodObject<{
585
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
586
+ kind: z.ZodLiteral<"file">;
587
+ fileId: z.ZodUUID;
588
+ folderId: z.ZodOptional<z.ZodUUID>;
589
+ }, z.core.$strip>, z.ZodObject<{
590
+ kind: z.ZodLiteral<"sitePage">;
591
+ siteId: z.ZodUUID;
592
+ url: z.ZodString;
593
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
594
+ routePatternHint: z.ZodOptional<z.ZodString>;
595
+ via: z.ZodOptional<z.ZodObject<{
596
+ fileId: z.ZodUUID;
597
+ shareId: z.ZodUUID;
598
+ }, z.core.$strip>>;
599
+ }, z.core.$strip>, z.ZodObject<{
600
+ kind: z.ZodLiteral<"order">;
601
+ orderId: z.ZodUUID;
602
+ }, z.core.$strip>, z.ZodObject<{
603
+ kind: z.ZodLiteral<"asset">;
604
+ assetId: z.ZodUUID;
605
+ }, z.core.$strip>], "kind">;
606
+ objectKey: z.ZodString;
607
+ }, z.core.$strip>;
608
+ export declare const commitCommentAttachmentResponseSchema: z.ZodObject<{
609
+ publicUrl: z.ZodString;
610
+ }, z.core.$strip>;
611
+ export declare const commentSiteThreadSortSchema: z.ZodObject<{
612
+ column: z.ZodEnum<{
613
+ status: "status";
614
+ page: "page";
615
+ excerpt: "excerpt";
616
+ author: "author";
617
+ created: "created";
618
+ lastActivity: "lastActivity";
619
+ replies: "replies";
620
+ from: "from";
621
+ }>;
622
+ direction: z.ZodEnum<{
623
+ desc: "desc";
624
+ asc: "asc";
625
+ }>;
626
+ }, z.core.$strip>;
627
+ export declare const commentSiteThreadPageSchema: z.ZodObject<{
628
+ threads: z.ZodArray<z.ZodObject<{
629
+ id: z.ZodString;
630
+ projectId: z.ZodString;
631
+ target: z.ZodObject<{
632
+ fileId: z.ZodOptional<z.ZodString>;
633
+ siteId: z.ZodOptional<z.ZodString>;
634
+ path: z.ZodOptional<z.ZodString>;
635
+ orderId: z.ZodOptional<z.ZodString>;
636
+ assetId: z.ZodOptional<z.ZodString>;
637
+ }, z.core.$strip>;
638
+ viaFileId: z.ZodNullable<z.ZodString>;
639
+ viaFileName: z.ZodNullable<z.ZodString>;
640
+ anchor: z.ZodDiscriminatedUnion<[z.ZodObject<{
641
+ type: z.ZodLiteral<"none">;
642
+ context: z.ZodOptional<z.ZodObject<{
643
+ url: z.ZodString;
644
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
645
+ }, z.core.$strip>>;
646
+ }, z.core.$strip>, z.ZodObject<{
647
+ type: z.ZodLiteral<"element">;
648
+ semanticSelector: z.ZodOptional<z.ZodString>;
649
+ selector: z.ZodString;
650
+ nthOfTypePath: z.ZodString;
651
+ source: z.ZodOptional<z.ZodObject<{
652
+ filePath: z.ZodString;
653
+ componentChain: z.ZodArray<z.ZodString>;
654
+ line: z.ZodOptional<z.ZodNumber>;
655
+ col: z.ZodOptional<z.ZodNumber>;
656
+ }, z.core.$strip>>;
657
+ listKey: z.ZodOptional<z.ZodString>;
658
+ tagName: z.ZodString;
659
+ textPreview: z.ZodString;
660
+ quote: z.ZodOptional<z.ZodObject<{
661
+ exact: z.ZodString;
662
+ prefix: z.ZodString;
663
+ suffix: z.ZodString;
664
+ }, z.core.$strip>>;
665
+ offset: z.ZodObject<{
666
+ x: z.ZodNumber;
667
+ y: z.ZodNumber;
668
+ }, z.core.$strip>;
669
+ context: z.ZodOptional<z.ZodObject<{
670
+ url: z.ZodString;
671
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
672
+ }, z.core.$strip>>;
673
+ }, z.core.$strip>, z.ZodObject<{
674
+ type: z.ZodLiteral<"canvas">;
675
+ nodeId: z.ZodString;
676
+ layerId: z.ZodOptional<z.ZodString>;
677
+ point: z.ZodObject<{
678
+ x: z.ZodNumber;
679
+ y: z.ZodNumber;
680
+ }, z.core.$strip>;
681
+ world: z.ZodOptional<z.ZodObject<{
682
+ x: z.ZodNumber;
683
+ y: z.ZodNumber;
684
+ }, z.core.$strip>>;
685
+ }, z.core.$strip>, z.ZodObject<{
686
+ type: z.ZodLiteral<"point">;
687
+ page: z.ZodOptional<z.ZodNumber>;
688
+ x: z.ZodNumber;
689
+ y: z.ZodNumber;
690
+ }, z.core.$strip>], "type">;
691
+ resolvedAt: z.ZodNullable<z.ZodISODateTime>;
692
+ resolvedByUserId: z.ZodNullable<z.ZodString>;
693
+ resolvedSource: z.ZodNullable<z.ZodEnum<{
694
+ ui: "ui";
695
+ agent: "agent";
696
+ mcp: "mcp";
697
+ api: "api";
698
+ }>>;
699
+ createdAt: z.ZodISODateTime;
700
+ updatedAt: z.ZodISODateTime;
701
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
702
+ }, z.core.$strip>>;
703
+ comments: z.ZodArray<z.ZodObject<{
704
+ id: z.ZodString;
705
+ threadId: z.ZodString;
706
+ authorUserId: z.ZodString;
707
+ source: z.ZodEnum<{
708
+ ui: "ui";
709
+ agent: "agent";
710
+ mcp: "mcp";
711
+ api: "api";
712
+ }>;
713
+ body: z.ZodString;
714
+ createdAt: z.ZodISODateTime;
715
+ editedAt: z.ZodNullable<z.ZodISODateTime>;
716
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
717
+ }, z.core.$strip>>;
718
+ reactions: z.ZodArray<z.ZodObject<{
719
+ commentId: z.ZodString;
720
+ userId: z.ZodString;
721
+ emoji: z.ZodString;
722
+ createdAt: z.ZodISODateTime;
723
+ }, z.core.$strip>>;
724
+ authors: z.ZodArray<z.ZodObject<{
725
+ id: z.ZodString;
726
+ name: z.ZodString;
727
+ avatarUrl: z.ZodNullable<z.ZodString>;
728
+ deleted: z.ZodBoolean;
729
+ }, z.core.$strip>>;
730
+ orphanedPaths: z.ZodNullable<z.ZodArray<z.ZodString>>;
731
+ nextCursor: z.ZodNullable<z.ZodString>;
732
+ }, z.core.$strip>;
733
+ export declare const commentMentionPersonSchema: z.ZodObject<{
734
+ id: z.ZodString;
735
+ name: z.ZodString;
736
+ avatarUrl: z.ZodNullable<z.ZodString>;
737
+ }, z.core.$strip>;
738
+ export declare const mentionableDisplaySchema: z.ZodObject<{
739
+ label: z.ZodString;
740
+ imageUrl: z.ZodOptional<z.ZodString>;
741
+ }, z.core.$strip>;
742
+ export declare const mentionableResolutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
743
+ state: z.ZodLiteral<"ok">;
744
+ display: z.ZodObject<{
745
+ label: z.ZodString;
746
+ imageUrl: z.ZodOptional<z.ZodString>;
747
+ }, z.core.$strip>;
748
+ }, z.core.$strip>, z.ZodObject<{
749
+ state: z.ZodLiteral<"forbidden">;
750
+ category: z.ZodString;
751
+ }, z.core.$strip>], "state">;
752
+ export declare const commentThreadTargetSummarySchema: z.ZodObject<{
753
+ kind: z.ZodEnum<{
754
+ file: "file";
755
+ sitePage: "sitePage";
756
+ order: "order";
757
+ asset: "asset";
758
+ }>;
759
+ fileId: z.ZodOptional<z.ZodString>;
760
+ fileName: z.ZodOptional<z.ZodString>;
761
+ filePath: z.ZodOptional<z.ZodString>;
762
+ artifactFolderId: z.ZodOptional<z.ZodString>;
763
+ fileDeleted: z.ZodOptional<z.ZodBoolean>;
764
+ siteId: z.ZodOptional<z.ZodString>;
765
+ path: z.ZodOptional<z.ZodString>;
766
+ url: z.ZodOptional<z.ZodString>;
767
+ orderId: z.ZodOptional<z.ZodString>;
768
+ assetId: z.ZodOptional<z.ZodString>;
769
+ }, z.core.$strip>;
770
+ export declare const commentThreadDetailSchema: z.ZodObject<{
771
+ thread: z.ZodObject<{
772
+ id: z.ZodString;
773
+ projectId: z.ZodString;
774
+ target: z.ZodObject<{
775
+ fileId: z.ZodOptional<z.ZodString>;
776
+ siteId: z.ZodOptional<z.ZodString>;
777
+ path: z.ZodOptional<z.ZodString>;
778
+ orderId: z.ZodOptional<z.ZodString>;
779
+ assetId: z.ZodOptional<z.ZodString>;
780
+ }, z.core.$strip>;
781
+ viaFileId: z.ZodNullable<z.ZodString>;
782
+ viaFileName: z.ZodNullable<z.ZodString>;
783
+ anchor: z.ZodDiscriminatedUnion<[z.ZodObject<{
784
+ type: z.ZodLiteral<"none">;
785
+ context: z.ZodOptional<z.ZodObject<{
786
+ url: z.ZodString;
787
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
+ }, z.core.$strip>>;
789
+ }, z.core.$strip>, z.ZodObject<{
790
+ type: z.ZodLiteral<"element">;
791
+ semanticSelector: z.ZodOptional<z.ZodString>;
792
+ selector: z.ZodString;
793
+ nthOfTypePath: z.ZodString;
794
+ source: z.ZodOptional<z.ZodObject<{
795
+ filePath: z.ZodString;
796
+ componentChain: z.ZodArray<z.ZodString>;
797
+ line: z.ZodOptional<z.ZodNumber>;
798
+ col: z.ZodOptional<z.ZodNumber>;
799
+ }, z.core.$strip>>;
800
+ listKey: z.ZodOptional<z.ZodString>;
801
+ tagName: z.ZodString;
802
+ textPreview: z.ZodString;
803
+ quote: z.ZodOptional<z.ZodObject<{
804
+ exact: z.ZodString;
805
+ prefix: z.ZodString;
806
+ suffix: z.ZodString;
807
+ }, z.core.$strip>>;
808
+ offset: z.ZodObject<{
809
+ x: z.ZodNumber;
810
+ y: z.ZodNumber;
811
+ }, z.core.$strip>;
812
+ context: z.ZodOptional<z.ZodObject<{
813
+ url: z.ZodString;
814
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
815
+ }, z.core.$strip>>;
816
+ }, z.core.$strip>, z.ZodObject<{
817
+ type: z.ZodLiteral<"canvas">;
818
+ nodeId: z.ZodString;
819
+ layerId: z.ZodOptional<z.ZodString>;
820
+ point: z.ZodObject<{
821
+ x: z.ZodNumber;
822
+ y: z.ZodNumber;
823
+ }, z.core.$strip>;
824
+ world: z.ZodOptional<z.ZodObject<{
825
+ x: z.ZodNumber;
826
+ y: z.ZodNumber;
827
+ }, z.core.$strip>>;
828
+ }, z.core.$strip>, z.ZodObject<{
829
+ type: z.ZodLiteral<"point">;
830
+ page: z.ZodOptional<z.ZodNumber>;
831
+ x: z.ZodNumber;
832
+ y: z.ZodNumber;
833
+ }, z.core.$strip>], "type">;
834
+ resolvedAt: z.ZodNullable<z.ZodISODateTime>;
835
+ resolvedByUserId: z.ZodNullable<z.ZodString>;
836
+ resolvedSource: z.ZodNullable<z.ZodEnum<{
837
+ ui: "ui";
838
+ agent: "agent";
839
+ mcp: "mcp";
840
+ api: "api";
841
+ }>>;
842
+ createdAt: z.ZodISODateTime;
843
+ updatedAt: z.ZodISODateTime;
844
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
845
+ }, z.core.$strip>;
846
+ comments: z.ZodArray<z.ZodObject<{
847
+ id: z.ZodString;
848
+ threadId: z.ZodString;
849
+ authorUserId: z.ZodString;
850
+ source: z.ZodEnum<{
851
+ ui: "ui";
852
+ agent: "agent";
853
+ mcp: "mcp";
854
+ api: "api";
855
+ }>;
856
+ body: z.ZodString;
857
+ createdAt: z.ZodISODateTime;
858
+ editedAt: z.ZodNullable<z.ZodISODateTime>;
859
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
860
+ }, z.core.$strip>>;
861
+ reactions: z.ZodArray<z.ZodObject<{
862
+ commentId: z.ZodString;
863
+ userId: z.ZodString;
864
+ emoji: z.ZodString;
865
+ createdAt: z.ZodISODateTime;
866
+ }, z.core.$strip>>;
867
+ authors: z.ZodArray<z.ZodObject<{
868
+ id: z.ZodString;
869
+ name: z.ZodString;
870
+ avatarUrl: z.ZodNullable<z.ZodString>;
871
+ deleted: z.ZodBoolean;
872
+ }, z.core.$strip>>;
873
+ target: z.ZodObject<{
874
+ kind: z.ZodEnum<{
875
+ file: "file";
876
+ sitePage: "sitePage";
877
+ order: "order";
878
+ asset: "asset";
879
+ }>;
880
+ fileId: z.ZodOptional<z.ZodString>;
881
+ fileName: z.ZodOptional<z.ZodString>;
882
+ filePath: z.ZodOptional<z.ZodString>;
883
+ artifactFolderId: z.ZodOptional<z.ZodString>;
884
+ fileDeleted: z.ZodOptional<z.ZodBoolean>;
885
+ siteId: z.ZodOptional<z.ZodString>;
886
+ path: z.ZodOptional<z.ZodString>;
887
+ url: z.ZodOptional<z.ZodString>;
888
+ orderId: z.ZodOptional<z.ZodString>;
889
+ assetId: z.ZodOptional<z.ZodString>;
890
+ }, z.core.$strip>;
891
+ }, z.core.$strip>;
892
+ /**
893
+ * The realtime keys `comments-changed` is broadcast under (D-26 §2). The
894
+ * server sends every key a thread belongs to; a client listens on the one its
895
+ * list query covers.
896
+ */
897
+ export declare const commentsChangedKeys: {
898
+ file: (fileId: string) => string;
899
+ folder: (folderId: string) => string;
900
+ /** One page; `path` is the stored, canonical route pattern. */
901
+ sitePage: (siteId: string, path: string) => string;
902
+ /** Every page of a site. */
903
+ site: (siteId: string) => string;
904
+ order: (orderId: string) => string;
905
+ asset: (assetId: string) => string;
906
+ };