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