@sudobility/screenwriter_types 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CLAUDE.md +50 -0
  2. package/README.md +34 -0
  3. package/dist/account/index.d.ts +440 -0
  4. package/dist/account/index.js +274 -0
  5. package/dist/admin/index.d.ts +95 -0
  6. package/dist/admin/index.js +20 -0
  7. package/dist/ai/index.d.ts +564 -0
  8. package/dist/ai/index.js +179 -0
  9. package/dist/api/envelope.d.ts +33 -0
  10. package/dist/api/envelope.js +140 -0
  11. package/dist/api/pagination.d.ts +7 -0
  12. package/dist/api/pagination.js +9 -0
  13. package/dist/api/routes.d.ts +273 -0
  14. package/dist/api/routes.js +306 -0
  15. package/dist/assets/index.d.ts +722 -0
  16. package/dist/assets/index.js +452 -0
  17. package/dist/collab/index.d.ts +214 -0
  18. package/dist/collab/index.js +211 -0
  19. package/dist/commands/index.d.ts +92 -0
  20. package/dist/commands/index.js +20 -0
  21. package/dist/credits/index.d.ts +26 -0
  22. package/dist/credits/index.js +7 -0
  23. package/dist/formats/index.d.ts +87 -0
  24. package/dist/formats/index.js +26 -0
  25. package/dist/ids/index.d.ts +2 -0
  26. package/dist/ids/index.js +2 -0
  27. package/dist/index.d.ts +33 -0
  28. package/dist/index.js +33 -0
  29. package/dist/io/index.d.ts +395 -0
  30. package/dist/io/index.js +161 -0
  31. package/dist/jobs/index.d.ts +278 -0
  32. package/dist/jobs/index.js +138 -0
  33. package/dist/keys/index.d.ts +53 -0
  34. package/dist/keys/index.js +22 -0
  35. package/dist/lifecycle/index.d.ts +263 -0
  36. package/dist/lifecycle/index.js +148 -0
  37. package/dist/me/index.d.ts +35 -0
  38. package/dist/me/index.js +18 -0
  39. package/dist/packets/index.d.ts +887 -0
  40. package/dist/packets/index.js +312 -0
  41. package/dist/projects/index.d.ts +201 -0
  42. package/dist/projects/index.js +75 -0
  43. package/dist/public/index.d.ts +95 -0
  44. package/dist/public/index.js +25 -0
  45. package/dist/reads/index.d.ts +387 -0
  46. package/dist/reads/index.js +118 -0
  47. package/dist/reports/index.d.ts +168 -0
  48. package/dist/reports/index.js +466 -0
  49. package/dist/sharing/index.d.ts +256 -0
  50. package/dist/sharing/index.js +91 -0
  51. package/dist/sync/codec.d.ts +7 -0
  52. package/dist/sync/codec.js +91 -0
  53. package/dist/sync/index.d.ts +382 -0
  54. package/dist/sync/index.js +262 -0
  55. package/dist/sync/permissions.d.ts +22 -0
  56. package/dist/sync/permissions.js +11 -0
  57. package/dist/templates/index.d.ts +1699 -0
  58. package/dist/templates/index.js +70 -0
  59. package/dist/tenancy/index.d.ts +116 -0
  60. package/dist/tenancy/index.js +102 -0
  61. package/dist/test/index.d.ts +8 -0
  62. package/dist/test/index.js +88 -0
  63. package/dist/versions/index.d.ts +335 -0
  64. package/dist/versions/index.js +107 -0
  65. package/package.json +62 -0
@@ -0,0 +1,887 @@
1
+ /**
2
+ * Production packets (spec 11 §7, spec 05 §6.22), slice B10. Schemas are the contract MCP and generators consume
3
+ * (`scenePacketSchema` and friends); the API validates its own output against them in tests.
4
+ * Asset lists are always empty until slice B11 (assets) lands.
5
+ */
6
+ import { z } from 'zod';
7
+ export declare const PACKET_VERSION = 1;
8
+ /**
9
+ * `?snapshotId=&include=` shared by the four packet routes. `include` is a comma list added to the defaults (`assets` and
10
+ * `script` are on by default; `neighbors` and `pages` are opt-in; `-script` and `-assets` switch a default off).
11
+ */
12
+ export declare const PACKET_INCLUDE_FLAGS: readonly ["assets", "assetUrls", "script", "neighbors", "pages"];
13
+ export declare const packetQuerySchema: z.ZodObject<{
14
+ snapshotId: z.ZodOptional<z.ZodString>;
15
+ include: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodEnum<{
16
+ script: "script";
17
+ pages: "pages";
18
+ assets: "assets";
19
+ neighbors: "neighbors";
20
+ "assetUrls=original": "assetUrls=original";
21
+ "-assets": "-assets";
22
+ "-script": "-script";
23
+ }>>, unknown>>;
24
+ }, z.core.$strip>;
25
+ export type PacketQuery = z.infer<typeof packetQuerySchema>;
26
+ /** 2 MB JSON cap (spec 11 §7.1): beyond it script text is truncated per element with `truncated: true`. */
27
+ export declare const PACKET_MAX_BYTES: number;
28
+ export declare const packetElementSchema: z.ZodUnion<readonly [z.ZodObject<{
29
+ id: z.ZodString;
30
+ type: z.ZodLiteral<"character">;
31
+ text: z.ZodString;
32
+ speakerEntityId: z.ZodNullable<z.ZodString>;
33
+ extension: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ id: z.ZodString;
36
+ type: z.ZodLiteral<"parenthetical">;
37
+ text: z.ZodString;
38
+ speakerEntityId: z.ZodNullable<z.ZodString>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ id: z.ZodString;
41
+ type: z.ZodLiteral<"dialogue">;
42
+ text: z.ZodString;
43
+ speakerEntityId: z.ZodNullable<z.ZodString>;
44
+ dual: z.ZodBoolean;
45
+ lineIndex: z.ZodNumber;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ id: z.ZodString;
48
+ type: z.ZodString;
49
+ text: z.ZodString;
50
+ }, z.core.$strip>]>;
51
+ export type PacketElement = z.infer<typeof packetElementSchema>;
52
+ declare const shotSummary: z.ZodObject<{
53
+ id: z.ZodString;
54
+ number: z.ZodNullable<z.ZodString>;
55
+ label: z.ZodNullable<z.ZodString>;
56
+ status: z.ZodString;
57
+ camera: z.ZodRecord<z.ZodString, z.ZodUnknown>;
58
+ estimatedDurationMs: z.ZodNullable<z.ZodNumber>;
59
+ description: z.ZodNullable<z.ZodString>;
60
+ elementIds: z.ZodArray<z.ZodString>;
61
+ contentHash: z.ZodString;
62
+ assets: z.ZodArray<z.ZodObject<{
63
+ assetId: z.ZodString;
64
+ role: z.ZodString;
65
+ kind: z.ZodString;
66
+ title: z.ZodString;
67
+ }, z.core.$loose>>;
68
+ }, z.core.$strip>;
69
+ export type ShotSummary = z.infer<typeof shotSummary>;
70
+ export declare const scenePacketBodySchema: z.ZodObject<{
71
+ scene: z.ZodObject<{
72
+ id: z.ZodString;
73
+ number: z.ZodNullable<z.ZodString>;
74
+ ordinal: z.ZodNumber;
75
+ omitted: z.ZodBoolean;
76
+ heading: z.ZodObject<{
77
+ raw: z.ZodString;
78
+ intro: z.ZodNullable<z.ZodString>;
79
+ location: z.ZodNullable<z.ZodString>;
80
+ time: z.ZodNullable<z.ZodString>;
81
+ }, z.core.$strip>;
82
+ locationEntityId: z.ZodNullable<z.ZodString>;
83
+ synopsis: z.ZodString;
84
+ color: z.ZodNullable<z.ZodString>;
85
+ pages: z.ZodNullable<z.ZodObject<{
86
+ start: z.ZodString;
87
+ end: z.ZodString;
88
+ eighths: z.ZodNumber;
89
+ }, z.core.$strip>>;
90
+ estimatedDurationMs: z.ZodNumber;
91
+ folders: z.ZodArray<z.ZodObject<{
92
+ id: z.ZodString;
93
+ kind: z.ZodString;
94
+ title: z.ZodString;
95
+ }, z.core.$strip>>;
96
+ contentHash: z.ZodString;
97
+ scriptDay: z.ZodNullable<z.ZodString>;
98
+ }, z.core.$strip>;
99
+ script: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
100
+ id: z.ZodString;
101
+ type: z.ZodLiteral<"character">;
102
+ text: z.ZodString;
103
+ speakerEntityId: z.ZodNullable<z.ZodString>;
104
+ extension: z.ZodNullable<z.ZodString>;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ id: z.ZodString;
107
+ type: z.ZodLiteral<"parenthetical">;
108
+ text: z.ZodString;
109
+ speakerEntityId: z.ZodNullable<z.ZodString>;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ id: z.ZodString;
112
+ type: z.ZodLiteral<"dialogue">;
113
+ text: z.ZodString;
114
+ speakerEntityId: z.ZodNullable<z.ZodString>;
115
+ dual: z.ZodBoolean;
116
+ lineIndex: z.ZodNumber;
117
+ }, z.core.$strip>, z.ZodObject<{
118
+ id: z.ZodString;
119
+ type: z.ZodString;
120
+ text: z.ZodString;
121
+ }, z.core.$strip>]>>;
122
+ cast: z.ZodArray<z.ZodObject<{
123
+ entityId: z.ZodString;
124
+ name: z.ZodString;
125
+ speaking: z.ZodBoolean;
126
+ lineCount: z.ZodNumber;
127
+ wordCount: z.ZodNumber;
128
+ firstAppearance: z.ZodBoolean;
129
+ summary: z.ZodString;
130
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
131
+ traits: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
132
+ assets: z.ZodArray<z.ZodObject<{
133
+ assetId: z.ZodString;
134
+ role: z.ZodString;
135
+ kind: z.ZodString;
136
+ title: z.ZodString;
137
+ }, z.core.$loose>>;
138
+ }, z.core.$strip>>;
139
+ location: z.ZodNullable<z.ZodObject<{
140
+ entityId: z.ZodString;
141
+ name: z.ZodString;
142
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
143
+ description: z.ZodString;
144
+ assets: z.ZodArray<z.ZodObject<{
145
+ assetId: z.ZodString;
146
+ role: z.ZodString;
147
+ kind: z.ZodString;
148
+ title: z.ZodString;
149
+ }, z.core.$loose>>;
150
+ }, z.core.$strip>>;
151
+ elements: z.ZodArray<z.ZodObject<{
152
+ entityId: z.ZodString;
153
+ kind: z.ZodString;
154
+ name: z.ZodString;
155
+ description: z.ZodString;
156
+ tagCount: z.ZodNumber;
157
+ assets: z.ZodArray<z.ZodObject<{
158
+ assetId: z.ZodString;
159
+ role: z.ZodString;
160
+ kind: z.ZodString;
161
+ title: z.ZodString;
162
+ }, z.core.$loose>>;
163
+ }, z.core.$strip>>;
164
+ shots: z.ZodArray<z.ZodObject<{
165
+ id: z.ZodString;
166
+ number: z.ZodNullable<z.ZodString>;
167
+ label: z.ZodNullable<z.ZodString>;
168
+ status: z.ZodString;
169
+ camera: z.ZodRecord<z.ZodString, z.ZodUnknown>;
170
+ estimatedDurationMs: z.ZodNullable<z.ZodNumber>;
171
+ description: z.ZodNullable<z.ZodString>;
172
+ elementIds: z.ZodArray<z.ZodString>;
173
+ contentHash: z.ZodString;
174
+ assets: z.ZodArray<z.ZodObject<{
175
+ assetId: z.ZodString;
176
+ role: z.ZodString;
177
+ kind: z.ZodString;
178
+ title: z.ZodString;
179
+ }, z.core.$loose>>;
180
+ }, z.core.$strip>>;
181
+ notes: z.ZodArray<z.ZodObject<{
182
+ id: z.ZodString;
183
+ type: z.ZodString;
184
+ text: z.ZodString;
185
+ anchorElementId: z.ZodNullable<z.ZodString>;
186
+ }, z.core.$strip>>;
187
+ sceneAssets: z.ZodArray<z.ZodObject<{
188
+ assetId: z.ZodString;
189
+ role: z.ZodString;
190
+ kind: z.ZodString;
191
+ title: z.ZodString;
192
+ }, z.core.$loose>>;
193
+ neighbors: z.ZodOptional<z.ZodObject<{
194
+ previous: z.ZodNullable<z.ZodObject<{
195
+ id: z.ZodString;
196
+ number: z.ZodNullable<z.ZodString>;
197
+ heading: z.ZodString;
198
+ synopsis: z.ZodString;
199
+ }, z.core.$strip>>;
200
+ next: z.ZodNullable<z.ZodObject<{
201
+ id: z.ZodString;
202
+ number: z.ZodNullable<z.ZodString>;
203
+ heading: z.ZodString;
204
+ synopsis: z.ZodString;
205
+ }, z.core.$strip>>;
206
+ }, z.core.$strip>>;
207
+ }, z.core.$strip>;
208
+ export declare const scenePacketSchema: z.ZodObject<{
209
+ packetVersion: z.ZodLiteral<1>;
210
+ kind: z.ZodLiteral<"scene">;
211
+ documentId: z.ZodString;
212
+ documentTitle: z.ZodString;
213
+ snapshotId: z.ZodNullable<z.ZodString>;
214
+ templateId: z.ZodString;
215
+ language: z.ZodString;
216
+ generatedAt: z.ZodString;
217
+ hash: z.ZodString;
218
+ truncated: z.ZodOptional<z.ZodBoolean>;
219
+ body: z.ZodObject<{
220
+ scene: z.ZodObject<{
221
+ id: z.ZodString;
222
+ number: z.ZodNullable<z.ZodString>;
223
+ ordinal: z.ZodNumber;
224
+ omitted: z.ZodBoolean;
225
+ heading: z.ZodObject<{
226
+ raw: z.ZodString;
227
+ intro: z.ZodNullable<z.ZodString>;
228
+ location: z.ZodNullable<z.ZodString>;
229
+ time: z.ZodNullable<z.ZodString>;
230
+ }, z.core.$strip>;
231
+ locationEntityId: z.ZodNullable<z.ZodString>;
232
+ synopsis: z.ZodString;
233
+ color: z.ZodNullable<z.ZodString>;
234
+ pages: z.ZodNullable<z.ZodObject<{
235
+ start: z.ZodString;
236
+ end: z.ZodString;
237
+ eighths: z.ZodNumber;
238
+ }, z.core.$strip>>;
239
+ estimatedDurationMs: z.ZodNumber;
240
+ folders: z.ZodArray<z.ZodObject<{
241
+ id: z.ZodString;
242
+ kind: z.ZodString;
243
+ title: z.ZodString;
244
+ }, z.core.$strip>>;
245
+ contentHash: z.ZodString;
246
+ scriptDay: z.ZodNullable<z.ZodString>;
247
+ }, z.core.$strip>;
248
+ script: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
249
+ id: z.ZodString;
250
+ type: z.ZodLiteral<"character">;
251
+ text: z.ZodString;
252
+ speakerEntityId: z.ZodNullable<z.ZodString>;
253
+ extension: z.ZodNullable<z.ZodString>;
254
+ }, z.core.$strip>, z.ZodObject<{
255
+ id: z.ZodString;
256
+ type: z.ZodLiteral<"parenthetical">;
257
+ text: z.ZodString;
258
+ speakerEntityId: z.ZodNullable<z.ZodString>;
259
+ }, z.core.$strip>, z.ZodObject<{
260
+ id: z.ZodString;
261
+ type: z.ZodLiteral<"dialogue">;
262
+ text: z.ZodString;
263
+ speakerEntityId: z.ZodNullable<z.ZodString>;
264
+ dual: z.ZodBoolean;
265
+ lineIndex: z.ZodNumber;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ id: z.ZodString;
268
+ type: z.ZodString;
269
+ text: z.ZodString;
270
+ }, z.core.$strip>]>>;
271
+ cast: z.ZodArray<z.ZodObject<{
272
+ entityId: z.ZodString;
273
+ name: z.ZodString;
274
+ speaking: z.ZodBoolean;
275
+ lineCount: z.ZodNumber;
276
+ wordCount: z.ZodNumber;
277
+ firstAppearance: z.ZodBoolean;
278
+ summary: z.ZodString;
279
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
280
+ traits: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
281
+ assets: z.ZodArray<z.ZodObject<{
282
+ assetId: z.ZodString;
283
+ role: z.ZodString;
284
+ kind: z.ZodString;
285
+ title: z.ZodString;
286
+ }, z.core.$loose>>;
287
+ }, z.core.$strip>>;
288
+ location: z.ZodNullable<z.ZodObject<{
289
+ entityId: z.ZodString;
290
+ name: z.ZodString;
291
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
292
+ description: z.ZodString;
293
+ assets: z.ZodArray<z.ZodObject<{
294
+ assetId: z.ZodString;
295
+ role: z.ZodString;
296
+ kind: z.ZodString;
297
+ title: z.ZodString;
298
+ }, z.core.$loose>>;
299
+ }, z.core.$strip>>;
300
+ elements: z.ZodArray<z.ZodObject<{
301
+ entityId: z.ZodString;
302
+ kind: z.ZodString;
303
+ name: z.ZodString;
304
+ description: z.ZodString;
305
+ tagCount: z.ZodNumber;
306
+ assets: z.ZodArray<z.ZodObject<{
307
+ assetId: z.ZodString;
308
+ role: z.ZodString;
309
+ kind: z.ZodString;
310
+ title: z.ZodString;
311
+ }, z.core.$loose>>;
312
+ }, z.core.$strip>>;
313
+ shots: z.ZodArray<z.ZodObject<{
314
+ id: z.ZodString;
315
+ number: z.ZodNullable<z.ZodString>;
316
+ label: z.ZodNullable<z.ZodString>;
317
+ status: z.ZodString;
318
+ camera: z.ZodRecord<z.ZodString, z.ZodUnknown>;
319
+ estimatedDurationMs: z.ZodNullable<z.ZodNumber>;
320
+ description: z.ZodNullable<z.ZodString>;
321
+ elementIds: z.ZodArray<z.ZodString>;
322
+ contentHash: z.ZodString;
323
+ assets: z.ZodArray<z.ZodObject<{
324
+ assetId: z.ZodString;
325
+ role: z.ZodString;
326
+ kind: z.ZodString;
327
+ title: z.ZodString;
328
+ }, z.core.$loose>>;
329
+ }, z.core.$strip>>;
330
+ notes: z.ZodArray<z.ZodObject<{
331
+ id: z.ZodString;
332
+ type: z.ZodString;
333
+ text: z.ZodString;
334
+ anchorElementId: z.ZodNullable<z.ZodString>;
335
+ }, z.core.$strip>>;
336
+ sceneAssets: z.ZodArray<z.ZodObject<{
337
+ assetId: z.ZodString;
338
+ role: z.ZodString;
339
+ kind: z.ZodString;
340
+ title: z.ZodString;
341
+ }, z.core.$loose>>;
342
+ neighbors: z.ZodOptional<z.ZodObject<{
343
+ previous: z.ZodNullable<z.ZodObject<{
344
+ id: z.ZodString;
345
+ number: z.ZodNullable<z.ZodString>;
346
+ heading: z.ZodString;
347
+ synopsis: z.ZodString;
348
+ }, z.core.$strip>>;
349
+ next: z.ZodNullable<z.ZodObject<{
350
+ id: z.ZodString;
351
+ number: z.ZodNullable<z.ZodString>;
352
+ heading: z.ZodString;
353
+ synopsis: z.ZodString;
354
+ }, z.core.$strip>>;
355
+ }, z.core.$strip>>;
356
+ }, z.core.$strip>;
357
+ }, z.core.$strip>;
358
+ export type ScenePacket = z.infer<typeof scenePacketSchema>;
359
+ export declare const characterPacketBodySchema: z.ZodObject<{
360
+ character: z.ZodObject<{
361
+ id: z.ZodString;
362
+ name: z.ZodString;
363
+ aliases: z.ZodArray<z.ZodString>;
364
+ description: z.ZodString;
365
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
366
+ traits: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
367
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
368
+ contentHash: z.ZodString;
369
+ }, z.core.$strip>;
370
+ ages: z.ZodArray<z.ZodObject<{
371
+ id: z.ZodString;
372
+ label: z.ZodString;
373
+ ageValue: z.ZodNullable<z.ZodNumber>;
374
+ description: z.ZodString;
375
+ skeleton: z.ZodArray<z.ZodObject<{
376
+ section: z.ZodNullable<z.ZodString>;
377
+ label: z.ZodString;
378
+ answer: z.ZodString;
379
+ }, z.core.$strip>>;
380
+ appearances: z.ZodArray<z.ZodObject<{
381
+ id: z.ZodString;
382
+ label: z.ZodString;
383
+ description: z.ZodString;
384
+ assetIds: z.ZodArray<z.ZodString>;
385
+ }, z.core.$strip>>;
386
+ sceneCount: z.ZodNumber;
387
+ }, z.core.$strip>>;
388
+ skeleton: z.ZodArray<z.ZodObject<{
389
+ section: z.ZodNullable<z.ZodString>;
390
+ label: z.ZodString;
391
+ answer: z.ZodString;
392
+ }, z.core.$strip>>;
393
+ stats: z.ZodObject<{
394
+ sceneCount: z.ZodNumber;
395
+ speakingSceneCount: z.ZodNumber;
396
+ lineCount: z.ZodNumber;
397
+ wordCount: z.ZodNumber;
398
+ firstSceneId: z.ZodNullable<z.ZodString>;
399
+ lastSceneId: z.ZodNullable<z.ZodString>;
400
+ }, z.core.$strip>;
401
+ scenes: z.ZodArray<z.ZodObject<{
402
+ id: z.ZodString;
403
+ number: z.ZodNullable<z.ZodString>;
404
+ heading: z.ZodString;
405
+ speaking: z.ZodBoolean;
406
+ lineCount: z.ZodNumber;
407
+ ageId: z.ZodNullable<z.ZodString>;
408
+ appearanceId: z.ZodNullable<z.ZodString>;
409
+ }, z.core.$strip>>;
410
+ sampleDialogue: z.ZodArray<z.ZodObject<{
411
+ elementId: z.ZodString;
412
+ sceneId: z.ZodString;
413
+ text: z.ZodString;
414
+ }, z.core.$strip>>;
415
+ relationships: z.ZodArray<z.ZodObject<{
416
+ entityId: z.ZodString;
417
+ name: z.ZodString;
418
+ sharedSceneCount: z.ZodNumber;
419
+ }, z.core.$strip>>;
420
+ props: z.ZodArray<z.ZodObject<{
421
+ entityId: z.ZodString;
422
+ name: z.ZodString;
423
+ }, z.core.$strip>>;
424
+ assets: z.ZodArray<z.ZodObject<{
425
+ assetId: z.ZodString;
426
+ role: z.ZodString;
427
+ kind: z.ZodString;
428
+ title: z.ZodString;
429
+ }, z.core.$loose>>;
430
+ }, z.core.$strip>;
431
+ export declare const characterPacketSchema: z.ZodObject<{
432
+ packetVersion: z.ZodLiteral<1>;
433
+ kind: z.ZodLiteral<"character">;
434
+ documentId: z.ZodString;
435
+ documentTitle: z.ZodString;
436
+ snapshotId: z.ZodNullable<z.ZodString>;
437
+ templateId: z.ZodString;
438
+ language: z.ZodString;
439
+ generatedAt: z.ZodString;
440
+ hash: z.ZodString;
441
+ truncated: z.ZodOptional<z.ZodBoolean>;
442
+ body: z.ZodObject<{
443
+ character: z.ZodObject<{
444
+ id: z.ZodString;
445
+ name: z.ZodString;
446
+ aliases: z.ZodArray<z.ZodString>;
447
+ description: z.ZodString;
448
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
449
+ traits: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
450
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
451
+ contentHash: z.ZodString;
452
+ }, z.core.$strip>;
453
+ ages: z.ZodArray<z.ZodObject<{
454
+ id: z.ZodString;
455
+ label: z.ZodString;
456
+ ageValue: z.ZodNullable<z.ZodNumber>;
457
+ description: z.ZodString;
458
+ skeleton: z.ZodArray<z.ZodObject<{
459
+ section: z.ZodNullable<z.ZodString>;
460
+ label: z.ZodString;
461
+ answer: z.ZodString;
462
+ }, z.core.$strip>>;
463
+ appearances: z.ZodArray<z.ZodObject<{
464
+ id: z.ZodString;
465
+ label: z.ZodString;
466
+ description: z.ZodString;
467
+ assetIds: z.ZodArray<z.ZodString>;
468
+ }, z.core.$strip>>;
469
+ sceneCount: z.ZodNumber;
470
+ }, z.core.$strip>>;
471
+ skeleton: z.ZodArray<z.ZodObject<{
472
+ section: z.ZodNullable<z.ZodString>;
473
+ label: z.ZodString;
474
+ answer: z.ZodString;
475
+ }, z.core.$strip>>;
476
+ stats: z.ZodObject<{
477
+ sceneCount: z.ZodNumber;
478
+ speakingSceneCount: z.ZodNumber;
479
+ lineCount: z.ZodNumber;
480
+ wordCount: z.ZodNumber;
481
+ firstSceneId: z.ZodNullable<z.ZodString>;
482
+ lastSceneId: z.ZodNullable<z.ZodString>;
483
+ }, z.core.$strip>;
484
+ scenes: z.ZodArray<z.ZodObject<{
485
+ id: z.ZodString;
486
+ number: z.ZodNullable<z.ZodString>;
487
+ heading: z.ZodString;
488
+ speaking: z.ZodBoolean;
489
+ lineCount: z.ZodNumber;
490
+ ageId: z.ZodNullable<z.ZodString>;
491
+ appearanceId: z.ZodNullable<z.ZodString>;
492
+ }, z.core.$strip>>;
493
+ sampleDialogue: z.ZodArray<z.ZodObject<{
494
+ elementId: z.ZodString;
495
+ sceneId: z.ZodString;
496
+ text: z.ZodString;
497
+ }, z.core.$strip>>;
498
+ relationships: z.ZodArray<z.ZodObject<{
499
+ entityId: z.ZodString;
500
+ name: z.ZodString;
501
+ sharedSceneCount: z.ZodNumber;
502
+ }, z.core.$strip>>;
503
+ props: z.ZodArray<z.ZodObject<{
504
+ entityId: z.ZodString;
505
+ name: z.ZodString;
506
+ }, z.core.$strip>>;
507
+ assets: z.ZodArray<z.ZodObject<{
508
+ assetId: z.ZodString;
509
+ role: z.ZodString;
510
+ kind: z.ZodString;
511
+ title: z.ZodString;
512
+ }, z.core.$loose>>;
513
+ }, z.core.$strip>;
514
+ }, z.core.$strip>;
515
+ export type CharacterPacket = z.infer<typeof characterPacketSchema>;
516
+ export declare const locationPacketBodySchema: z.ZodObject<{
517
+ location: z.ZodObject<{
518
+ id: z.ZodString;
519
+ name: z.ZodString;
520
+ aliases: z.ZodArray<z.ZodString>;
521
+ description: z.ZodString;
522
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
523
+ parent: z.ZodNullable<z.ZodObject<{
524
+ id: z.ZodString;
525
+ name: z.ZodString;
526
+ }, z.core.$strip>>;
527
+ children: z.ZodArray<z.ZodObject<{
528
+ id: z.ZodString;
529
+ name: z.ZodString;
530
+ }, z.core.$strip>>;
531
+ contentHash: z.ZodString;
532
+ }, z.core.$strip>;
533
+ versions: z.ZodArray<z.ZodObject<{
534
+ id: z.ZodString;
535
+ label: z.ZodString;
536
+ description: z.ZodString;
537
+ setting: z.ZodNullable<z.ZodString>;
538
+ sceneCount: z.ZodNumber;
539
+ }, z.core.$strip>>;
540
+ scenes: z.ZodArray<z.ZodObject<{
541
+ id: z.ZodString;
542
+ number: z.ZodNullable<z.ZodString>;
543
+ heading: z.ZodString;
544
+ time: z.ZodNullable<z.ZodString>;
545
+ pages: z.ZodNullable<z.ZodObject<{
546
+ start: z.ZodString;
547
+ end: z.ZodString;
548
+ eighths: z.ZodNumber;
549
+ }, z.core.$strip>>;
550
+ cast: z.ZodArray<z.ZodString>;
551
+ versionId: z.ZodNullable<z.ZodString>;
552
+ }, z.core.$strip>>;
553
+ totals: z.ZodObject<{
554
+ sceneCount: z.ZodNumber;
555
+ eighths: z.ZodNumber;
556
+ timesOfDay: z.ZodRecord<z.ZodString, z.ZodNumber>;
557
+ }, z.core.$strip>;
558
+ setElements: z.ZodArray<z.ZodObject<{
559
+ entityId: z.ZodString;
560
+ kind: z.ZodString;
561
+ name: z.ZodString;
562
+ }, z.core.$strip>>;
563
+ assets: z.ZodArray<z.ZodObject<{
564
+ assetId: z.ZodString;
565
+ role: z.ZodString;
566
+ kind: z.ZodString;
567
+ title: z.ZodString;
568
+ }, z.core.$loose>>;
569
+ }, z.core.$strip>;
570
+ export declare const locationPacketSchema: z.ZodObject<{
571
+ packetVersion: z.ZodLiteral<1>;
572
+ kind: z.ZodLiteral<"location">;
573
+ documentId: z.ZodString;
574
+ documentTitle: z.ZodString;
575
+ snapshotId: z.ZodNullable<z.ZodString>;
576
+ templateId: z.ZodString;
577
+ language: z.ZodString;
578
+ generatedAt: z.ZodString;
579
+ hash: z.ZodString;
580
+ truncated: z.ZodOptional<z.ZodBoolean>;
581
+ body: z.ZodObject<{
582
+ location: z.ZodObject<{
583
+ id: z.ZodString;
584
+ name: z.ZodString;
585
+ aliases: z.ZodArray<z.ZodString>;
586
+ description: z.ZodString;
587
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
588
+ parent: z.ZodNullable<z.ZodObject<{
589
+ id: z.ZodString;
590
+ name: z.ZodString;
591
+ }, z.core.$strip>>;
592
+ children: z.ZodArray<z.ZodObject<{
593
+ id: z.ZodString;
594
+ name: z.ZodString;
595
+ }, z.core.$strip>>;
596
+ contentHash: z.ZodString;
597
+ }, z.core.$strip>;
598
+ versions: z.ZodArray<z.ZodObject<{
599
+ id: z.ZodString;
600
+ label: z.ZodString;
601
+ description: z.ZodString;
602
+ setting: z.ZodNullable<z.ZodString>;
603
+ sceneCount: z.ZodNumber;
604
+ }, z.core.$strip>>;
605
+ scenes: z.ZodArray<z.ZodObject<{
606
+ id: z.ZodString;
607
+ number: z.ZodNullable<z.ZodString>;
608
+ heading: z.ZodString;
609
+ time: z.ZodNullable<z.ZodString>;
610
+ pages: z.ZodNullable<z.ZodObject<{
611
+ start: z.ZodString;
612
+ end: z.ZodString;
613
+ eighths: z.ZodNumber;
614
+ }, z.core.$strip>>;
615
+ cast: z.ZodArray<z.ZodString>;
616
+ versionId: z.ZodNullable<z.ZodString>;
617
+ }, z.core.$strip>>;
618
+ totals: z.ZodObject<{
619
+ sceneCount: z.ZodNumber;
620
+ eighths: z.ZodNumber;
621
+ timesOfDay: z.ZodRecord<z.ZodString, z.ZodNumber>;
622
+ }, z.core.$strip>;
623
+ setElements: z.ZodArray<z.ZodObject<{
624
+ entityId: z.ZodString;
625
+ kind: z.ZodString;
626
+ name: z.ZodString;
627
+ }, z.core.$strip>>;
628
+ assets: z.ZodArray<z.ZodObject<{
629
+ assetId: z.ZodString;
630
+ role: z.ZodString;
631
+ kind: z.ZodString;
632
+ title: z.ZodString;
633
+ }, z.core.$loose>>;
634
+ }, z.core.$strip>;
635
+ }, z.core.$strip>;
636
+ export type LocationPacket = z.infer<typeof locationPacketSchema>;
637
+ export declare const shotPacketBodySchema: z.ZodObject<{
638
+ shot: z.ZodObject<{
639
+ id: z.ZodString;
640
+ number: z.ZodNullable<z.ZodString>;
641
+ label: z.ZodNullable<z.ZodString>;
642
+ status: z.ZodString;
643
+ camera: z.ZodRecord<z.ZodString, z.ZodUnknown>;
644
+ estimatedDurationMs: z.ZodNullable<z.ZodNumber>;
645
+ description: z.ZodNullable<z.ZodString>;
646
+ elementIds: z.ZodArray<z.ZodString>;
647
+ contentHash: z.ZodString;
648
+ assets: z.ZodArray<z.ZodObject<{
649
+ assetId: z.ZodString;
650
+ role: z.ZodString;
651
+ kind: z.ZodString;
652
+ title: z.ZodString;
653
+ }, z.core.$loose>>;
654
+ sceneId: z.ZodString;
655
+ range: z.ZodNullable<z.ZodObject<{
656
+ startElementId: z.ZodString;
657
+ endElementId: z.ZodString;
658
+ text: z.ZodString;
659
+ }, z.core.$strip>>;
660
+ }, z.core.$strip>;
661
+ scene: z.ZodObject<{
662
+ id: z.ZodString;
663
+ number: z.ZodNullable<z.ZodString>;
664
+ heading: z.ZodObject<{
665
+ raw: z.ZodString;
666
+ intro: z.ZodNullable<z.ZodString>;
667
+ location: z.ZodNullable<z.ZodString>;
668
+ time: z.ZodNullable<z.ZodString>;
669
+ }, z.core.$strip>;
670
+ locationEntityId: z.ZodNullable<z.ZodString>;
671
+ contentHash: z.ZodString;
672
+ }, z.core.$strip>;
673
+ script: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
674
+ id: z.ZodString;
675
+ type: z.ZodLiteral<"character">;
676
+ text: z.ZodString;
677
+ speakerEntityId: z.ZodNullable<z.ZodString>;
678
+ extension: z.ZodNullable<z.ZodString>;
679
+ }, z.core.$strip>, z.ZodObject<{
680
+ id: z.ZodString;
681
+ type: z.ZodLiteral<"parenthetical">;
682
+ text: z.ZodString;
683
+ speakerEntityId: z.ZodNullable<z.ZodString>;
684
+ }, z.core.$strip>, z.ZodObject<{
685
+ id: z.ZodString;
686
+ type: z.ZodLiteral<"dialogue">;
687
+ text: z.ZodString;
688
+ speakerEntityId: z.ZodNullable<z.ZodString>;
689
+ dual: z.ZodBoolean;
690
+ lineIndex: z.ZodNumber;
691
+ }, z.core.$strip>, z.ZodObject<{
692
+ id: z.ZodString;
693
+ type: z.ZodString;
694
+ text: z.ZodString;
695
+ }, z.core.$strip>]>>;
696
+ subjects: z.ZodArray<z.ZodObject<{
697
+ entityId: z.ZodString;
698
+ kind: z.ZodString;
699
+ name: z.ZodString;
700
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
701
+ assets: z.ZodArray<z.ZodObject<{
702
+ assetId: z.ZodString;
703
+ role: z.ZodString;
704
+ kind: z.ZodString;
705
+ title: z.ZodString;
706
+ }, z.core.$loose>>;
707
+ }, z.core.$strip>>;
708
+ location: z.ZodNullable<z.ZodObject<{
709
+ entityId: z.ZodString;
710
+ name: z.ZodString;
711
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
712
+ description: z.ZodString;
713
+ assets: z.ZodArray<z.ZodObject<{
714
+ assetId: z.ZodString;
715
+ role: z.ZodString;
716
+ kind: z.ZodString;
717
+ title: z.ZodString;
718
+ }, z.core.$loose>>;
719
+ }, z.core.$strip>>;
720
+ previousShot: z.ZodNullable<z.ZodObject<{
721
+ id: z.ZodString;
722
+ number: z.ZodNullable<z.ZodString>;
723
+ label: z.ZodNullable<z.ZodString>;
724
+ status: z.ZodString;
725
+ camera: z.ZodRecord<z.ZodString, z.ZodUnknown>;
726
+ estimatedDurationMs: z.ZodNullable<z.ZodNumber>;
727
+ description: z.ZodNullable<z.ZodString>;
728
+ elementIds: z.ZodArray<z.ZodString>;
729
+ contentHash: z.ZodString;
730
+ assets: z.ZodArray<z.ZodObject<{
731
+ assetId: z.ZodString;
732
+ role: z.ZodString;
733
+ kind: z.ZodString;
734
+ title: z.ZodString;
735
+ }, z.core.$loose>>;
736
+ }, z.core.$strip>>;
737
+ nextShot: z.ZodNullable<z.ZodObject<{
738
+ id: z.ZodString;
739
+ number: z.ZodNullable<z.ZodString>;
740
+ label: z.ZodNullable<z.ZodString>;
741
+ status: z.ZodString;
742
+ camera: z.ZodRecord<z.ZodString, z.ZodUnknown>;
743
+ estimatedDurationMs: z.ZodNullable<z.ZodNumber>;
744
+ description: z.ZodNullable<z.ZodString>;
745
+ elementIds: z.ZodArray<z.ZodString>;
746
+ contentHash: z.ZodString;
747
+ assets: z.ZodArray<z.ZodObject<{
748
+ assetId: z.ZodString;
749
+ role: z.ZodString;
750
+ kind: z.ZodString;
751
+ title: z.ZodString;
752
+ }, z.core.$loose>>;
753
+ }, z.core.$strip>>;
754
+ }, z.core.$strip>;
755
+ export declare const shotPacketSchema: z.ZodObject<{
756
+ packetVersion: z.ZodLiteral<1>;
757
+ kind: z.ZodLiteral<"shot">;
758
+ documentId: z.ZodString;
759
+ documentTitle: z.ZodString;
760
+ snapshotId: z.ZodNullable<z.ZodString>;
761
+ templateId: z.ZodString;
762
+ language: z.ZodString;
763
+ generatedAt: z.ZodString;
764
+ hash: z.ZodString;
765
+ truncated: z.ZodOptional<z.ZodBoolean>;
766
+ body: z.ZodObject<{
767
+ shot: z.ZodObject<{
768
+ id: z.ZodString;
769
+ number: z.ZodNullable<z.ZodString>;
770
+ label: z.ZodNullable<z.ZodString>;
771
+ status: z.ZodString;
772
+ camera: z.ZodRecord<z.ZodString, z.ZodUnknown>;
773
+ estimatedDurationMs: z.ZodNullable<z.ZodNumber>;
774
+ description: z.ZodNullable<z.ZodString>;
775
+ elementIds: z.ZodArray<z.ZodString>;
776
+ contentHash: z.ZodString;
777
+ assets: z.ZodArray<z.ZodObject<{
778
+ assetId: z.ZodString;
779
+ role: z.ZodString;
780
+ kind: z.ZodString;
781
+ title: z.ZodString;
782
+ }, z.core.$loose>>;
783
+ sceneId: z.ZodString;
784
+ range: z.ZodNullable<z.ZodObject<{
785
+ startElementId: z.ZodString;
786
+ endElementId: z.ZodString;
787
+ text: z.ZodString;
788
+ }, z.core.$strip>>;
789
+ }, z.core.$strip>;
790
+ scene: z.ZodObject<{
791
+ id: z.ZodString;
792
+ number: z.ZodNullable<z.ZodString>;
793
+ heading: z.ZodObject<{
794
+ raw: z.ZodString;
795
+ intro: z.ZodNullable<z.ZodString>;
796
+ location: z.ZodNullable<z.ZodString>;
797
+ time: z.ZodNullable<z.ZodString>;
798
+ }, z.core.$strip>;
799
+ locationEntityId: z.ZodNullable<z.ZodString>;
800
+ contentHash: z.ZodString;
801
+ }, z.core.$strip>;
802
+ script: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
803
+ id: z.ZodString;
804
+ type: z.ZodLiteral<"character">;
805
+ text: z.ZodString;
806
+ speakerEntityId: z.ZodNullable<z.ZodString>;
807
+ extension: z.ZodNullable<z.ZodString>;
808
+ }, z.core.$strip>, z.ZodObject<{
809
+ id: z.ZodString;
810
+ type: z.ZodLiteral<"parenthetical">;
811
+ text: z.ZodString;
812
+ speakerEntityId: z.ZodNullable<z.ZodString>;
813
+ }, z.core.$strip>, z.ZodObject<{
814
+ id: z.ZodString;
815
+ type: z.ZodLiteral<"dialogue">;
816
+ text: z.ZodString;
817
+ speakerEntityId: z.ZodNullable<z.ZodString>;
818
+ dual: z.ZodBoolean;
819
+ lineIndex: z.ZodNumber;
820
+ }, z.core.$strip>, z.ZodObject<{
821
+ id: z.ZodString;
822
+ type: z.ZodString;
823
+ text: z.ZodString;
824
+ }, z.core.$strip>]>>;
825
+ subjects: z.ZodArray<z.ZodObject<{
826
+ entityId: z.ZodString;
827
+ kind: z.ZodString;
828
+ name: z.ZodString;
829
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
830
+ assets: z.ZodArray<z.ZodObject<{
831
+ assetId: z.ZodString;
832
+ role: z.ZodString;
833
+ kind: z.ZodString;
834
+ title: z.ZodString;
835
+ }, z.core.$loose>>;
836
+ }, z.core.$strip>>;
837
+ location: z.ZodNullable<z.ZodObject<{
838
+ entityId: z.ZodString;
839
+ name: z.ZodString;
840
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
841
+ description: z.ZodString;
842
+ assets: z.ZodArray<z.ZodObject<{
843
+ assetId: z.ZodString;
844
+ role: z.ZodString;
845
+ kind: z.ZodString;
846
+ title: z.ZodString;
847
+ }, z.core.$loose>>;
848
+ }, z.core.$strip>>;
849
+ previousShot: z.ZodNullable<z.ZodObject<{
850
+ id: z.ZodString;
851
+ number: z.ZodNullable<z.ZodString>;
852
+ label: z.ZodNullable<z.ZodString>;
853
+ status: z.ZodString;
854
+ camera: z.ZodRecord<z.ZodString, z.ZodUnknown>;
855
+ estimatedDurationMs: z.ZodNullable<z.ZodNumber>;
856
+ description: z.ZodNullable<z.ZodString>;
857
+ elementIds: z.ZodArray<z.ZodString>;
858
+ contentHash: z.ZodString;
859
+ assets: z.ZodArray<z.ZodObject<{
860
+ assetId: z.ZodString;
861
+ role: z.ZodString;
862
+ kind: z.ZodString;
863
+ title: z.ZodString;
864
+ }, z.core.$loose>>;
865
+ }, z.core.$strip>>;
866
+ nextShot: z.ZodNullable<z.ZodObject<{
867
+ id: z.ZodString;
868
+ number: z.ZodNullable<z.ZodString>;
869
+ label: z.ZodNullable<z.ZodString>;
870
+ status: z.ZodString;
871
+ camera: z.ZodRecord<z.ZodString, z.ZodUnknown>;
872
+ estimatedDurationMs: z.ZodNullable<z.ZodNumber>;
873
+ description: z.ZodNullable<z.ZodString>;
874
+ elementIds: z.ZodArray<z.ZodString>;
875
+ contentHash: z.ZodString;
876
+ assets: z.ZodArray<z.ZodObject<{
877
+ assetId: z.ZodString;
878
+ role: z.ZodString;
879
+ kind: z.ZodString;
880
+ title: z.ZodString;
881
+ }, z.core.$loose>>;
882
+ }, z.core.$strip>>;
883
+ }, z.core.$strip>;
884
+ }, z.core.$strip>;
885
+ export type ShotPacket = z.infer<typeof shotPacketSchema>;
886
+ export type AnyPacket = ScenePacket | CharacterPacket | LocationPacket | ShotPacket;
887
+ export {};