@shotstack/schemas 1.11.0 → 1.12.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.
@@ -928,6 +928,11 @@
928
928
  "Clip": {
929
929
  "description": "A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.",
930
930
  "properties": {
931
+ "id": {
932
+ "description": "Optional client-generated identifier. Used by client SDKs (e.g. the Shotstack Studio SDK) to reference a clip across edits without relying on its position in the timeline. The render API does not use this field and it does not appear in render output.",
933
+ "type": "string",
934
+ "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
935
+ },
931
936
  "asset": {
932
937
  "$ref": "#/components/schemas/Asset"
933
938
  },
@@ -2351,18 +2356,21 @@
2351
2356
  "type": "string"
2352
2357
  },
2353
2358
  "html": {
2354
- "description": "The HTML markup for the asset.",
2359
+ "description": "The HTML markup for the asset. Max 1,000,000 characters.",
2355
2360
  "type": "string",
2361
+ "maxLength": 1000000,
2356
2362
  "example": "<div class='card'><h1>{{title}}</h1></div>"
2357
2363
  },
2358
2364
  "css": {
2359
- "description": "The CSS string applied to the HTML.",
2365
+ "description": "The CSS string applied to the HTML. Max 500,000 characters.",
2360
2366
  "type": "string",
2367
+ "maxLength": 500000,
2361
2368
  "example": ".card { font-family: 'Inter'; padding: 32px; }"
2362
2369
  },
2363
2370
  "js": {
2364
- "description": "Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically.\n",
2371
+ "description": "Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters.\n",
2365
2372
  "type": "string",
2373
+ "maxLength": 500000,
2366
2374
  "example": "gsap.to('.card', { x: 200, duration: 1 });"
2367
2375
  }
2368
2376
  },
@@ -3,6 +3,16 @@
3
3
  "strict": true,
4
4
  "schema": {
5
5
  "properties": {
6
+ "id": {
7
+ "anyOf": [
8
+ {
9
+ "type": "string"
10
+ },
11
+ {
12
+ "type": "null"
13
+ }
14
+ ]
15
+ },
6
16
  "asset": {
7
17
  "$ref": "#/$defs/Asset"
8
18
  },
@@ -215,6 +225,7 @@
215
225
  },
216
226
  "additionalProperties": false,
217
227
  "required": [
228
+ "id",
218
229
  "asset",
219
230
  "start",
220
231
  "length",
@@ -187,6 +187,16 @@
187
187
  },
188
188
  "Clip": {
189
189
  "properties": {
190
+ "id": {
191
+ "anyOf": [
192
+ {
193
+ "type": "string"
194
+ },
195
+ {
196
+ "type": "null"
197
+ }
198
+ ]
199
+ },
190
200
  "asset": {
191
201
  "$ref": "#/$defs/Asset"
192
202
  },
@@ -399,6 +409,7 @@
399
409
  },
400
410
  "additionalProperties": false,
401
411
  "required": [
412
+ "id",
402
413
  "asset",
403
414
  "start",
404
415
  "length",
@@ -145,6 +145,17 @@
145
145
  "Clip": {
146
146
  "description": "A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.",
147
147
  "properties": {
148
+ "id": {
149
+ "anyOf": [
150
+ {
151
+ "type": "string",
152
+ "description": "Optional client-generated identifier. Used by client SDKs (e.g. the Shotstack Studio SDK) to reference a clip across edits without relying on its position in the timeline. The render API does not use this field and it does not appear in render output."
153
+ },
154
+ {
155
+ "type": "null"
156
+ }
157
+ ]
158
+ },
148
159
  "asset": {
149
160
  "$ref": "#/$defs/Asset"
150
161
  },
@@ -378,6 +389,7 @@
378
389
  },
379
390
  "additionalProperties": false,
380
391
  "required": [
392
+ "id",
381
393
  "asset",
382
394
  "start",
383
395
  "length",
@@ -63,6 +63,16 @@
63
63
  },
64
64
  "Clip": {
65
65
  "properties": {
66
+ "id": {
67
+ "anyOf": [
68
+ {
69
+ "type": "string"
70
+ },
71
+ {
72
+ "type": "null"
73
+ }
74
+ ]
75
+ },
66
76
  "asset": {
67
77
  "$ref": "#/$defs/Asset"
68
78
  },
@@ -168,6 +178,7 @@
168
178
  },
169
179
  "additionalProperties": false,
170
180
  "required": [
181
+ "id",
171
182
  "asset",
172
183
  "start",
173
184
  "length",
@@ -131,6 +131,16 @@
131
131
  },
132
132
  "Clip": {
133
133
  "properties": {
134
+ "id": {
135
+ "anyOf": [
136
+ {
137
+ "type": "string"
138
+ },
139
+ {
140
+ "type": "null"
141
+ }
142
+ ]
143
+ },
134
144
  "asset": {
135
145
  "$ref": "#/$defs/Asset"
136
146
  },
@@ -343,6 +353,7 @@
343
353
  },
344
354
  "additionalProperties": false,
345
355
  "required": [
356
+ "id",
346
357
  "asset",
347
358
  "start",
348
359
  "length",
@@ -18,6 +18,16 @@
18
18
  "$defs": {
19
19
  "Clip": {
20
20
  "properties": {
21
+ "id": {
22
+ "anyOf": [
23
+ {
24
+ "type": "string"
25
+ },
26
+ {
27
+ "type": "null"
28
+ }
29
+ ]
30
+ },
21
31
  "asset": {
22
32
  "$ref": "#/$defs/Asset"
23
33
  },
@@ -230,6 +240,7 @@
230
240
  },
231
241
  "additionalProperties": false,
232
242
  "required": [
243
+ "id",
233
244
  "asset",
234
245
  "start",
235
246
  "length",
package/dist/schema.d.ts CHANGED
@@ -457,6 +457,11 @@ export interface components {
457
457
  };
458
458
  /** @description A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it. */
459
459
  Clip: {
460
+ /**
461
+ * @description Optional client-generated identifier. Used by client SDKs (e.g. the Shotstack Studio SDK) to reference a clip across edits without relying on its position in the timeline. The render API does not use this field and it does not appear in render output.
462
+ * @example f47ac10b-58cc-4372-a567-0e02b2c3d479
463
+ */
464
+ id?: string;
460
465
  asset: components["schemas"]["Asset"];
461
466
  /** @description The start position of the Clip on the timeline. */
462
467
  start: number | string;
@@ -1274,17 +1279,17 @@ export interface components {
1274
1279
  */
1275
1280
  type: "html5";
1276
1281
  /**
1277
- * @description The HTML markup for the asset.
1282
+ * @description The HTML markup for the asset. Max 1,000,000 characters.
1278
1283
  * @example <div class='card'><h1>{{title}}</h1></div>
1279
1284
  */
1280
1285
  html: string;
1281
1286
  /**
1282
- * @description The CSS string applied to the HTML.
1287
+ * @description The CSS string applied to the HTML. Max 500,000 characters.
1283
1288
  * @example .card { font-family: 'Inter'; padding: 32px; }
1284
1289
  */
1285
1290
  css?: string;
1286
1291
  /**
1287
- * @description Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically.
1292
+ * @description Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters.
1288
1293
  * @example gsap.to('.card', { x: 200, duration: 1 });
1289
1294
  */
1290
1295
  js?: string;
@@ -425,9 +425,9 @@ exports.fontSchema = exports.fontFontSchema;
425
425
  */
426
426
  exports.html5AssetHtml5AssetSchema = zod_1.z.object({
427
427
  type: zod_1.z.enum(['html5']),
428
- html: zod_1.z.string(),
429
- css: zod_1.z.optional(zod_1.z.string()),
430
- js: zod_1.z.optional(zod_1.z.string())
428
+ html: zod_1.z.string().max(1000000),
429
+ css: zod_1.z.optional(zod_1.z.string().max(500000)),
430
+ js: zod_1.z.optional(zod_1.z.string().max(500000))
431
431
  }).strict();
432
432
  exports.html5AssetSchema = exports.html5AssetHtml5AssetSchema;
433
433
  /**
@@ -2388,6 +2388,7 @@ exports.assetSchema = exports.assetAssetSchema;
2388
2388
  * A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.
2389
2389
  */
2390
2390
  exports.clipClipSchema = zod_1.z.object({
2391
+ id: zod_1.z.optional(zod_1.z.string()),
2391
2392
  asset: exports.assetAssetSchema,
2392
2393
  start: zod_1.z.union([
2393
2394
  zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -8384,6 +8384,7 @@ export declare const assetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8384
8384
  * A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.
8385
8385
  */
8386
8386
  export declare const clipClipSchema: z.ZodObject<{
8387
+ id: z.ZodOptional<z.ZodString>;
8387
8388
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
8388
8389
  type: z.ZodEnum<{
8389
8390
  video: "video";
@@ -9595,6 +9596,7 @@ export declare const clipClipSchema: z.ZodObject<{
9595
9596
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
9596
9597
  }, z.core.$strict>;
9597
9598
  export declare const clipSchema: z.ZodObject<{
9599
+ id: z.ZodOptional<z.ZodString>;
9598
9600
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
9599
9601
  type: z.ZodEnum<{
9600
9602
  video: "video";
@@ -10810,6 +10812,7 @@ export declare const clipSchema: z.ZodObject<{
10810
10812
  */
10811
10813
  export declare const trackTrackSchema: z.ZodObject<{
10812
10814
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
10815
+ id: z.ZodOptional<z.ZodString>;
10813
10816
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
10814
10817
  type: z.ZodEnum<{
10815
10818
  video: "video";
@@ -12020,6 +12023,7 @@ export declare const trackTrackSchema: z.ZodObject<{
12020
12023
  }, z.core.$strict>>;
12021
12024
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
12022
12025
  }, z.core.$strict>, z.ZodTransform<{
12026
+ id?: string;
12023
12027
  asset?: {
12024
12028
  type: "text";
12025
12029
  text: string;
@@ -12478,6 +12482,7 @@ export declare const trackTrackSchema: z.ZodObject<{
12478
12482
  };
12479
12483
  alias?: string;
12480
12484
  }, {
12485
+ id?: string;
12481
12486
  asset?: {
12482
12487
  type: "text";
12483
12488
  text: string;
@@ -12940,6 +12945,7 @@ export declare const trackTrackSchema: z.ZodObject<{
12940
12945
  }, z.core.$strict>;
12941
12946
  export declare const trackSchema: z.ZodObject<{
12942
12947
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
12948
+ id: z.ZodOptional<z.ZodString>;
12943
12949
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
12944
12950
  type: z.ZodEnum<{
12945
12951
  video: "video";
@@ -14150,6 +14156,7 @@ export declare const trackSchema: z.ZodObject<{
14150
14156
  }, z.core.$strict>>;
14151
14157
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
14152
14158
  }, z.core.$strict>, z.ZodTransform<{
14159
+ id?: string;
14153
14160
  asset?: {
14154
14161
  type: "text";
14155
14162
  text: string;
@@ -14608,6 +14615,7 @@ export declare const trackSchema: z.ZodObject<{
14608
14615
  };
14609
14616
  alias?: string;
14610
14617
  }, {
14618
+ id?: string;
14611
14619
  asset?: {
14612
14620
  type: "text";
14613
14621
  text: string;
@@ -15087,6 +15095,7 @@ export declare const timelineTimelineSchema: z.ZodObject<{
15087
15095
  }, z.core.$strict>>>;
15088
15096
  tracks: z.ZodArray<z.ZodObject<{
15089
15097
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
15098
+ id: z.ZodOptional<z.ZodString>;
15090
15099
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
15091
15100
  type: z.ZodEnum<{
15092
15101
  video: "video";
@@ -16297,6 +16306,7 @@ export declare const timelineTimelineSchema: z.ZodObject<{
16297
16306
  }, z.core.$strict>>;
16298
16307
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
16299
16308
  }, z.core.$strict>, z.ZodTransform<{
16309
+ id?: string;
16300
16310
  asset?: {
16301
16311
  type: "text";
16302
16312
  text: string;
@@ -16755,6 +16765,7 @@ export declare const timelineTimelineSchema: z.ZodObject<{
16755
16765
  };
16756
16766
  alias?: string;
16757
16767
  }, {
16768
+ id?: string;
16758
16769
  asset?: {
16759
16770
  type: "text";
16760
16771
  text: string;
@@ -17233,6 +17244,7 @@ export declare const timelineSchema: z.ZodObject<{
17233
17244
  }, z.core.$strict>>>;
17234
17245
  tracks: z.ZodArray<z.ZodObject<{
17235
17246
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
17247
+ id: z.ZodOptional<z.ZodString>;
17236
17248
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
17237
17249
  type: z.ZodEnum<{
17238
17250
  video: "video";
@@ -18443,6 +18455,7 @@ export declare const timelineSchema: z.ZodObject<{
18443
18455
  }, z.core.$strict>>;
18444
18456
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
18445
18457
  }, z.core.$strict>, z.ZodTransform<{
18458
+ id?: string;
18446
18459
  asset?: {
18447
18460
  type: "text";
18448
18461
  text: string;
@@ -18901,6 +18914,7 @@ export declare const timelineSchema: z.ZodObject<{
18901
18914
  };
18902
18915
  alias?: string;
18903
18916
  }, {
18917
+ id?: string;
18904
18918
  asset?: {
18905
18919
  type: "text";
18906
18920
  text: string;
@@ -19383,6 +19397,7 @@ export declare const editEditSchema: z.ZodObject<{
19383
19397
  }, z.core.$strict>>>;
19384
19398
  tracks: z.ZodArray<z.ZodObject<{
19385
19399
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
19400
+ id: z.ZodOptional<z.ZodString>;
19386
19401
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
19387
19402
  type: z.ZodEnum<{
19388
19403
  video: "video";
@@ -20593,6 +20608,7 @@ export declare const editEditSchema: z.ZodObject<{
20593
20608
  }, z.core.$strict>>;
20594
20609
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
20595
20610
  }, z.core.$strict>, z.ZodTransform<{
20611
+ id?: string;
20596
20612
  asset?: {
20597
20613
  type: "text";
20598
20614
  text: string;
@@ -21051,6 +21067,7 @@ export declare const editEditSchema: z.ZodObject<{
21051
21067
  };
21052
21068
  alias?: string;
21053
21069
  }, {
21070
+ id?: string;
21054
21071
  asset?: {
21055
21072
  type: "text";
21056
21073
  text: string;
@@ -21695,6 +21712,7 @@ export declare const editSchema: z.ZodObject<{
21695
21712
  }, z.core.$strict>>>;
21696
21713
  tracks: z.ZodArray<z.ZodObject<{
21697
21714
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
21715
+ id: z.ZodOptional<z.ZodString>;
21698
21716
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
21699
21717
  type: z.ZodEnum<{
21700
21718
  video: "video";
@@ -22905,6 +22923,7 @@ export declare const editSchema: z.ZodObject<{
22905
22923
  }, z.core.$strict>>;
22906
22924
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
22907
22925
  }, z.core.$strict>, z.ZodTransform<{
22926
+ id?: string;
22908
22927
  asset?: {
22909
22928
  type: "text";
22910
22929
  text: string;
@@ -23363,6 +23382,7 @@ export declare const editSchema: z.ZodObject<{
23363
23382
  };
23364
23383
  alias?: string;
23365
23384
  }, {
23385
+ id?: string;
23366
23386
  asset?: {
23367
23387
  type: "text";
23368
23388
  text: string;
@@ -24029,6 +24049,7 @@ export declare const renderresponsedataRenderResponseDataSchema: z.ZodObject<{
24029
24049
  }, z.core.$strict>>>;
24030
24050
  tracks: z.ZodArray<z.ZodObject<{
24031
24051
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
24052
+ id: z.ZodOptional<z.ZodString>;
24032
24053
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
24033
24054
  type: z.ZodEnum<{
24034
24055
  video: "video";
@@ -25239,6 +25260,7 @@ export declare const renderresponsedataRenderResponseDataSchema: z.ZodObject<{
25239
25260
  }, z.core.$strict>>;
25240
25261
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
25241
25262
  }, z.core.$strict>, z.ZodTransform<{
25263
+ id?: string;
25242
25264
  asset?: {
25243
25265
  type: "text";
25244
25266
  text: string;
@@ -25697,6 +25719,7 @@ export declare const renderresponsedataRenderResponseDataSchema: z.ZodObject<{
25697
25719
  };
25698
25720
  alias?: string;
25699
25721
  }, {
25722
+ id?: string;
25700
25723
  asset?: {
25701
25724
  type: "text";
25702
25725
  text: string;
@@ -26363,6 +26386,7 @@ export declare const renderResponseDataSchema: z.ZodObject<{
26363
26386
  }, z.core.$strict>>>;
26364
26387
  tracks: z.ZodArray<z.ZodObject<{
26365
26388
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
26389
+ id: z.ZodOptional<z.ZodString>;
26366
26390
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
26367
26391
  type: z.ZodEnum<{
26368
26392
  video: "video";
@@ -27573,6 +27597,7 @@ export declare const renderResponseDataSchema: z.ZodObject<{
27573
27597
  }, z.core.$strict>>;
27574
27598
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
27575
27599
  }, z.core.$strict>, z.ZodTransform<{
27600
+ id?: string;
27576
27601
  asset?: {
27577
27602
  type: "text";
27578
27603
  text: string;
@@ -28031,6 +28056,7 @@ export declare const renderResponseDataSchema: z.ZodObject<{
28031
28056
  };
28032
28057
  alias?: string;
28033
28058
  }, {
28059
+ id?: string;
28034
28060
  asset?: {
28035
28061
  type: "text";
28036
28062
  text: string;
@@ -28703,6 +28729,7 @@ export declare const renderresponseRenderResponseSchema: z.ZodObject<{
28703
28729
  }, z.core.$strict>>>;
28704
28730
  tracks: z.ZodArray<z.ZodObject<{
28705
28731
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
28732
+ id: z.ZodOptional<z.ZodString>;
28706
28733
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
28707
28734
  type: z.ZodEnum<{
28708
28735
  video: "video";
@@ -29913,6 +29940,7 @@ export declare const renderresponseRenderResponseSchema: z.ZodObject<{
29913
29940
  }, z.core.$strict>>;
29914
29941
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
29915
29942
  }, z.core.$strict>, z.ZodTransform<{
29943
+ id?: string;
29916
29944
  asset?: {
29917
29945
  type: "text";
29918
29946
  text: string;
@@ -30371,6 +30399,7 @@ export declare const renderresponseRenderResponseSchema: z.ZodObject<{
30371
30399
  };
30372
30400
  alias?: string;
30373
30401
  }, {
30402
+ id?: string;
30374
30403
  asset?: {
30375
30404
  type: "text";
30376
30405
  text: string;
@@ -31041,6 +31070,7 @@ export declare const renderResponseSchema: z.ZodObject<{
31041
31070
  }, z.core.$strict>>>;
31042
31071
  tracks: z.ZodArray<z.ZodObject<{
31043
31072
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
31073
+ id: z.ZodOptional<z.ZodString>;
31044
31074
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
31045
31075
  type: z.ZodEnum<{
31046
31076
  video: "video";
@@ -32251,6 +32281,7 @@ export declare const renderResponseSchema: z.ZodObject<{
32251
32281
  }, z.core.$strict>>;
32252
32282
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
32253
32283
  }, z.core.$strict>, z.ZodTransform<{
32284
+ id?: string;
32254
32285
  asset?: {
32255
32286
  type: "text";
32256
32287
  text: string;
@@ -32709,6 +32740,7 @@ export declare const renderResponseSchema: z.ZodObject<{
32709
32740
  };
32710
32741
  alias?: string;
32711
32742
  }, {
32743
+ id?: string;
32712
32744
  asset?: {
32713
32745
  type: "text";
32714
32746
  text: string;
@@ -33364,6 +33396,7 @@ export declare const templatedataresponsedataTemplateDataResponseDataSchema: z.Z
33364
33396
  }, z.core.$strict>>>;
33365
33397
  tracks: z.ZodArray<z.ZodObject<{
33366
33398
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
33399
+ id: z.ZodOptional<z.ZodString>;
33367
33400
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
33368
33401
  type: z.ZodEnum<{
33369
33402
  video: "video";
@@ -34574,6 +34607,7 @@ export declare const templatedataresponsedataTemplateDataResponseDataSchema: z.Z
34574
34607
  }, z.core.$strict>>;
34575
34608
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
34576
34609
  }, z.core.$strict>, z.ZodTransform<{
34610
+ id?: string;
34577
34611
  asset?: {
34578
34612
  type: "text";
34579
34613
  text: string;
@@ -35032,6 +35066,7 @@ export declare const templatedataresponsedataTemplateDataResponseDataSchema: z.Z
35032
35066
  };
35033
35067
  alias?: string;
35034
35068
  }, {
35069
+ id?: string;
35035
35070
  asset?: {
35036
35071
  type: "text";
35037
35072
  text: string;
@@ -35681,6 +35716,7 @@ export declare const templateDataResponseDataSchema: z.ZodObject<{
35681
35716
  }, z.core.$strict>>>;
35682
35717
  tracks: z.ZodArray<z.ZodObject<{
35683
35718
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
35719
+ id: z.ZodOptional<z.ZodString>;
35684
35720
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
35685
35721
  type: z.ZodEnum<{
35686
35722
  video: "video";
@@ -36891,6 +36927,7 @@ export declare const templateDataResponseDataSchema: z.ZodObject<{
36891
36927
  }, z.core.$strict>>;
36892
36928
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
36893
36929
  }, z.core.$strict>, z.ZodTransform<{
36930
+ id?: string;
36894
36931
  asset?: {
36895
36932
  type: "text";
36896
36933
  text: string;
@@ -37349,6 +37386,7 @@ export declare const templateDataResponseDataSchema: z.ZodObject<{
37349
37386
  };
37350
37387
  alias?: string;
37351
37388
  }, {
37389
+ id?: string;
37352
37390
  asset?: {
37353
37391
  type: "text";
37354
37392
  text: string;
@@ -38004,6 +38042,7 @@ export declare const templatedataresponseTemplateDataResponseSchema: z.ZodObject
38004
38042
  }, z.core.$strict>>>;
38005
38043
  tracks: z.ZodArray<z.ZodObject<{
38006
38044
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
38045
+ id: z.ZodOptional<z.ZodString>;
38007
38046
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
38008
38047
  type: z.ZodEnum<{
38009
38048
  video: "video";
@@ -39214,6 +39253,7 @@ export declare const templatedataresponseTemplateDataResponseSchema: z.ZodObject
39214
39253
  }, z.core.$strict>>;
39215
39254
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
39216
39255
  }, z.core.$strict>, z.ZodTransform<{
39256
+ id?: string;
39217
39257
  asset?: {
39218
39258
  type: "text";
39219
39259
  text: string;
@@ -39672,6 +39712,7 @@ export declare const templatedataresponseTemplateDataResponseSchema: z.ZodObject
39672
39712
  };
39673
39713
  alias?: string;
39674
39714
  }, {
39715
+ id?: string;
39675
39716
  asset?: {
39676
39717
  type: "text";
39677
39718
  text: string;
@@ -40325,6 +40366,7 @@ export declare const templateDataResponseSchema: z.ZodObject<{
40325
40366
  }, z.core.$strict>>>;
40326
40367
  tracks: z.ZodArray<z.ZodObject<{
40327
40368
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
40369
+ id: z.ZodOptional<z.ZodString>;
40328
40370
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
40329
40371
  type: z.ZodEnum<{
40330
40372
  video: "video";
@@ -41535,6 +41577,7 @@ export declare const templateDataResponseSchema: z.ZodObject<{
41535
41577
  }, z.core.$strict>>;
41536
41578
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
41537
41579
  }, z.core.$strict>, z.ZodTransform<{
41580
+ id?: string;
41538
41581
  asset?: {
41539
41582
  type: "text";
41540
41583
  text: string;
@@ -41993,6 +42036,7 @@ export declare const templateDataResponseSchema: z.ZodObject<{
41993
42036
  };
41994
42037
  alias?: string;
41995
42038
  }, {
42039
+ id?: string;
41996
42040
  asset?: {
41997
42041
  type: "text";
41998
42042
  text: string;
@@ -42644,6 +42688,7 @@ export declare const templateTemplateSchema: z.ZodObject<{
42644
42688
  }, z.core.$strict>>>;
42645
42689
  tracks: z.ZodArray<z.ZodObject<{
42646
42690
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
42691
+ id: z.ZodOptional<z.ZodString>;
42647
42692
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
42648
42693
  type: z.ZodEnum<{
42649
42694
  video: "video";
@@ -43854,6 +43899,7 @@ export declare const templateTemplateSchema: z.ZodObject<{
43854
43899
  }, z.core.$strict>>;
43855
43900
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
43856
43901
  }, z.core.$strict>, z.ZodTransform<{
43902
+ id?: string;
43857
43903
  asset?: {
43858
43904
  type: "text";
43859
43905
  text: string;
@@ -44312,6 +44358,7 @@ export declare const templateTemplateSchema: z.ZodObject<{
44312
44358
  };
44313
44359
  alias?: string;
44314
44360
  }, {
44361
+ id?: string;
44315
44362
  asset?: {
44316
44363
  type: "text";
44317
44364
  text: string;
@@ -44959,6 +45006,7 @@ export declare const templateSchema: z.ZodObject<{
44959
45006
  }, z.core.$strict>>>;
44960
45007
  tracks: z.ZodArray<z.ZodObject<{
44961
45008
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
45009
+ id: z.ZodOptional<z.ZodString>;
44962
45010
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
44963
45011
  type: z.ZodEnum<{
44964
45012
  video: "video";
@@ -46169,6 +46217,7 @@ export declare const templateSchema: z.ZodObject<{
46169
46217
  }, z.core.$strict>>;
46170
46218
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
46171
46219
  }, z.core.$strict>, z.ZodTransform<{
46220
+ id?: string;
46172
46221
  asset?: {
46173
46222
  type: "text";
46174
46223
  text: string;
@@ -46627,6 +46676,7 @@ export declare const templateSchema: z.ZodObject<{
46627
46676
  };
46628
46677
  alias?: string;
46629
46678
  }, {
46679
+ id?: string;
46630
46680
  asset?: {
46631
46681
  type: "text";
46632
46682
  text: string;
@@ -47273,6 +47323,7 @@ export declare const postRenderRequest: z.ZodObject<{
47273
47323
  }, z.core.$strict>>>;
47274
47324
  tracks: z.ZodArray<z.ZodObject<{
47275
47325
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
47326
+ id: z.ZodOptional<z.ZodString>;
47276
47327
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
47277
47328
  type: z.ZodEnum<{
47278
47329
  video: "video";
@@ -48483,6 +48534,7 @@ export declare const postRenderRequest: z.ZodObject<{
48483
48534
  }, z.core.$strict>>;
48484
48535
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
48485
48536
  }, z.core.$strict>, z.ZodTransform<{
48537
+ id?: string;
48486
48538
  asset?: {
48487
48539
  type: "text";
48488
48540
  text: string;
@@ -48941,6 +48993,7 @@ export declare const postRenderRequest: z.ZodObject<{
48941
48993
  };
48942
48994
  alias?: string;
48943
48995
  }, {
48996
+ id?: string;
48944
48997
  asset?: {
48945
48998
  type: "text";
48946
48999
  text: string;
@@ -49634,6 +49687,7 @@ export declare const getRenderResponse: z.ZodObject<{
49634
49687
  }, z.core.$strict>>>;
49635
49688
  tracks: z.ZodArray<z.ZodObject<{
49636
49689
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
49690
+ id: z.ZodOptional<z.ZodString>;
49637
49691
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
49638
49692
  type: z.ZodEnum<{
49639
49693
  video: "video";
@@ -50844,6 +50898,7 @@ export declare const getRenderResponse: z.ZodObject<{
50844
50898
  }, z.core.$strict>>;
50845
50899
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
50846
50900
  }, z.core.$strict>, z.ZodTransform<{
50901
+ id?: string;
50847
50902
  asset?: {
50848
50903
  type: "text";
50849
50904
  text: string;
@@ -51302,6 +51357,7 @@ export declare const getRenderResponse: z.ZodObject<{
51302
51357
  };
51303
51358
  alias?: string;
51304
51359
  }, {
51360
+ id?: string;
51305
51361
  asset?: {
51306
51362
  type: "text";
51307
51363
  text: string;
@@ -51974,6 +52030,7 @@ export declare const postTemplateRequest: z.ZodObject<{
51974
52030
  }, z.core.$strict>>>;
51975
52031
  tracks: z.ZodArray<z.ZodObject<{
51976
52032
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
52033
+ id: z.ZodOptional<z.ZodString>;
51977
52034
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
51978
52035
  type: z.ZodEnum<{
51979
52036
  video: "video";
@@ -53184,6 +53241,7 @@ export declare const postTemplateRequest: z.ZodObject<{
53184
53241
  }, z.core.$strict>>;
53185
53242
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
53186
53243
  }, z.core.$strict>, z.ZodTransform<{
53244
+ id?: string;
53187
53245
  asset?: {
53188
53246
  type: "text";
53189
53247
  text: string;
@@ -53642,6 +53700,7 @@ export declare const postTemplateRequest: z.ZodObject<{
53642
53700
  };
53643
53701
  alias?: string;
53644
53702
  }, {
53703
+ id?: string;
53645
53704
  asset?: {
53646
53705
  type: "text";
53647
53706
  text: string;
@@ -54329,6 +54388,7 @@ export declare const getTemplateResponse: z.ZodObject<{
54329
54388
  }, z.core.$strict>>>;
54330
54389
  tracks: z.ZodArray<z.ZodObject<{
54331
54390
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
54391
+ id: z.ZodOptional<z.ZodString>;
54332
54392
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
54333
54393
  type: z.ZodEnum<{
54334
54394
  video: "video";
@@ -55539,6 +55599,7 @@ export declare const getTemplateResponse: z.ZodObject<{
55539
55599
  }, z.core.$strict>>;
55540
55600
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
55541
55601
  }, z.core.$strict>, z.ZodTransform<{
55602
+ id?: string;
55542
55603
  asset?: {
55543
55604
  type: "text";
55544
55605
  text: string;
@@ -55997,6 +56058,7 @@ export declare const getTemplateResponse: z.ZodObject<{
55997
56058
  };
55998
56059
  alias?: string;
55999
56060
  }, {
56061
+ id?: string;
56000
56062
  asset?: {
56001
56063
  type: "text";
56002
56064
  text: string;
@@ -56646,6 +56708,7 @@ export declare const putTemplateRequest: z.ZodObject<{
56646
56708
  }, z.core.$strict>>>;
56647
56709
  tracks: z.ZodArray<z.ZodObject<{
56648
56710
  clips: z.ZodArray<z.ZodPipe<z.ZodObject<{
56711
+ id: z.ZodOptional<z.ZodString>;
56649
56712
  asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
56650
56713
  type: z.ZodEnum<{
56651
56714
  video: "video";
@@ -57856,6 +57919,7 @@ export declare const putTemplateRequest: z.ZodObject<{
57856
57919
  }, z.core.$strict>>;
57857
57920
  alias: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
57858
57921
  }, z.core.$strict>, z.ZodTransform<{
57922
+ id?: string;
57859
57923
  asset?: {
57860
57924
  type: "text";
57861
57925
  text: string;
@@ -58314,6 +58378,7 @@ export declare const putTemplateRequest: z.ZodObject<{
58314
58378
  };
58315
58379
  alias?: string;
58316
58380
  }, {
58381
+ id?: string;
58317
58382
  asset?: {
58318
58383
  type: "text";
58319
58384
  text: string;
@@ -417,9 +417,9 @@ export const fontSchema = fontFontSchema;
417
417
  */
418
418
  export const html5AssetHtml5AssetSchema = z.object({
419
419
  type: z.enum(['html5']),
420
- html: z.string(),
421
- css: z.optional(z.string()),
422
- js: z.optional(z.string())
420
+ html: z.string().max(1000000),
421
+ css: z.optional(z.string().max(500000)),
422
+ js: z.optional(z.string().max(500000))
423
423
  }).strict();
424
424
  export const html5AssetSchema = html5AssetHtml5AssetSchema;
425
425
  /**
@@ -2380,6 +2380,7 @@ export const assetSchema = assetAssetSchema;
2380
2380
  * A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.
2381
2381
  */
2382
2382
  export const clipClipSchema = z.object({
2383
+ id: z.optional(z.string()),
2383
2384
  asset: assetAssetSchema,
2384
2385
  start: z.union([
2385
2386
  z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -373,9 +373,9 @@ export const fontSchema = fontFontSchema;
373
373
  */
374
374
  export const html5AssetHtml5AssetSchema = z.object({
375
375
  type: z.enum(['html5']),
376
- html: z.string(),
377
- css: z.optional(z.string()),
378
- js: z.optional(z.string())
376
+ html: z.string().max(1000000),
377
+ css: z.optional(z.string().max(500000)),
378
+ js: z.optional(z.string().max(500000))
379
379
  }).strict();
380
380
 
381
381
  export const html5AssetSchema = html5AssetHtml5AssetSchema;
@@ -1936,6 +1936,7 @@ export const assetSchema = assetAssetSchema;
1936
1936
  * A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.
1937
1937
  */
1938
1938
  export const clipClipSchema = z.object({
1939
+ id: z.optional(z.string()),
1939
1940
  asset: assetAssetSchema,
1940
1941
  start: z.union([
1941
1942
  z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.11.0",
3
+ "version": "1.12.1",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",