@shotstack/schemas 1.14.0 → 1.14.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.
@@ -4172,21 +4172,20 @@
4172
4172
  "example": "google-drive"
4173
4173
  },
4174
4174
  "options": {
4175
- "description": "Additional Google Drive configuration and features.",
4175
+ "description": "Additional Google Drive configuration and features. If omitted, files are saved to the root of My Drive using the default Shotstack filename.",
4176
4176
  "$ref": "#/components/schemas/GoogleDriveDestinationOptions"
4177
4177
  }
4178
4178
  },
4179
4179
  "type": "object",
4180
4180
  "required": [
4181
- "provider",
4182
- "options"
4181
+ "provider"
4183
4182
  ]
4184
4183
  },
4185
4184
  "GoogleDriveDestinationOptions": {
4186
4185
  "description": "Pass the folder ID and options to configure how assets are stored in Google Drive.",
4187
4186
  "properties": {
4188
4187
  "folderId": {
4189
- "description": "The Google Drive folder ID where asset will be stored. The folder ID is required and can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.",
4188
+ "description": "The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.",
4190
4189
  "type": "string",
4191
4190
  "example": "1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A"
4192
4191
  },
@@ -4195,10 +4194,7 @@
4195
4194
  "type": "string",
4196
4195
  "example": "my-file"
4197
4196
  }
4198
- },
4199
- "required": [
4200
- "folderId"
4201
- ]
4197
+ }
4202
4198
  },
4203
4199
  "VimeoDestination": {
4204
4200
  "description": "Send videos to [Vimeo](https://shotstack.io/docs/guide/serving-assets/destinations/vimeo/) video hosting and streaming service. Vimeo credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/vimeo), not in the request.",
@@ -403,7 +403,14 @@
403
403
  ]
404
404
  },
405
405
  "options": {
406
- "$ref": "#/$defs/GoogleDriveDestinationOptions"
406
+ "anyOf": [
407
+ {
408
+ "$ref": "#/$defs/GoogleDriveDestinationOptions"
409
+ },
410
+ {
411
+ "type": "null"
412
+ }
413
+ ]
407
414
  }
408
415
  },
409
416
  "type": "object",
@@ -416,7 +423,14 @@
416
423
  "GoogleDriveDestinationOptions": {
417
424
  "properties": {
418
425
  "folderId": {
419
- "type": "string"
426
+ "anyOf": [
427
+ {
428
+ "type": "string"
429
+ },
430
+ {
431
+ "type": "null"
432
+ }
433
+ ]
420
434
  },
421
435
  "filename": {
422
436
  "anyOf": [
@@ -429,12 +443,12 @@
429
443
  ]
430
444
  }
431
445
  },
446
+ "type": "object",
447
+ "additionalProperties": false,
432
448
  "required": [
433
449
  "folderId",
434
450
  "filename"
435
- ],
436
- "type": "object",
437
- "additionalProperties": false
451
+ ]
438
452
  },
439
453
  "VimeoDestination": {
440
454
  "properties": {
@@ -4111,7 +4111,14 @@
4111
4111
  ]
4112
4112
  },
4113
4113
  "options": {
4114
- "$ref": "#/$defs/GoogleDriveDestinationOptions"
4114
+ "anyOf": [
4115
+ {
4116
+ "$ref": "#/$defs/GoogleDriveDestinationOptions"
4117
+ },
4118
+ {
4119
+ "type": "null"
4120
+ }
4121
+ ]
4115
4122
  }
4116
4123
  },
4117
4124
  "type": "object",
@@ -4124,7 +4131,14 @@
4124
4131
  "GoogleDriveDestinationOptions": {
4125
4132
  "properties": {
4126
4133
  "folderId": {
4127
- "type": "string"
4134
+ "anyOf": [
4135
+ {
4136
+ "type": "string"
4137
+ },
4138
+ {
4139
+ "type": "null"
4140
+ }
4141
+ ]
4128
4142
  },
4129
4143
  "filename": {
4130
4144
  "anyOf": [
@@ -4137,12 +4151,12 @@
4137
4151
  ]
4138
4152
  }
4139
4153
  },
4154
+ "type": "object",
4155
+ "additionalProperties": false,
4140
4156
  "required": [
4141
4157
  "folderId",
4142
4158
  "filename"
4143
- ],
4144
- "type": "object",
4145
- "additionalProperties": false
4159
+ ]
4146
4160
  },
4147
4161
  "VimeoDestination": {
4148
4162
  "properties": {
@@ -5,8 +5,15 @@
5
5
  "description": "Pass the folder ID and options to configure how assets are stored in Google Drive.",
6
6
  "properties": {
7
7
  "folderId": {
8
- "description": "The Google Drive folder ID where asset will be stored. The folder ID is required and can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.",
9
- "type": "string"
8
+ "anyOf": [
9
+ {
10
+ "type": "string",
11
+ "description": "The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>."
12
+ },
13
+ {
14
+ "type": "null"
15
+ }
16
+ ]
10
17
  },
11
18
  "filename": {
12
19
  "anyOf": [
@@ -20,11 +27,11 @@
20
27
  ]
21
28
  }
22
29
  },
30
+ "type": "object",
31
+ "additionalProperties": false,
23
32
  "required": [
24
33
  "folderId",
25
34
  "filename"
26
- ],
27
- "type": "object",
28
- "additionalProperties": false
35
+ ]
29
36
  }
30
37
  }
@@ -12,8 +12,15 @@
12
12
  ]
13
13
  },
14
14
  "options": {
15
- "description": "Additional Google Drive configuration and features.",
16
- "$ref": "#/$defs/GoogleDriveDestinationOptions"
15
+ "anyOf": [
16
+ {
17
+ "description": "Additional Google Drive configuration and features. If omitted, files are saved to the root of My Drive using the default Shotstack filename.",
18
+ "$ref": "#/$defs/GoogleDriveDestinationOptions"
19
+ },
20
+ {
21
+ "type": "null"
22
+ }
23
+ ]
17
24
  }
18
25
  },
19
26
  "type": "object",
@@ -27,8 +34,15 @@
27
34
  "description": "Pass the folder ID and options to configure how assets are stored in Google Drive.",
28
35
  "properties": {
29
36
  "folderId": {
30
- "description": "The Google Drive folder ID where asset will be stored. The folder ID is required and can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.",
31
- "type": "string"
37
+ "anyOf": [
38
+ {
39
+ "type": "string",
40
+ "description": "The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>."
41
+ },
42
+ {
43
+ "type": "null"
44
+ }
45
+ ]
32
46
  },
33
47
  "filename": {
34
48
  "anyOf": [
@@ -42,12 +56,12 @@
42
56
  ]
43
57
  }
44
58
  },
59
+ "type": "object",
60
+ "additionalProperties": false,
45
61
  "required": [
46
62
  "folderId",
47
63
  "filename"
48
- ],
49
- "type": "object",
50
- "additionalProperties": false
64
+ ]
51
65
  }
52
66
  }
53
67
  }
@@ -697,7 +697,14 @@
697
697
  ]
698
698
  },
699
699
  "options": {
700
- "$ref": "#/$defs/GoogleDriveDestinationOptions"
700
+ "anyOf": [
701
+ {
702
+ "$ref": "#/$defs/GoogleDriveDestinationOptions"
703
+ },
704
+ {
705
+ "type": "null"
706
+ }
707
+ ]
701
708
  }
702
709
  },
703
710
  "type": "object",
@@ -710,7 +717,14 @@
710
717
  "GoogleDriveDestinationOptions": {
711
718
  "properties": {
712
719
  "folderId": {
713
- "type": "string"
720
+ "anyOf": [
721
+ {
722
+ "type": "string"
723
+ },
724
+ {
725
+ "type": "null"
726
+ }
727
+ ]
714
728
  },
715
729
  "filename": {
716
730
  "anyOf": [
@@ -723,12 +737,12 @@
723
737
  ]
724
738
  }
725
739
  },
740
+ "type": "object",
741
+ "additionalProperties": false,
726
742
  "required": [
727
743
  "folderId",
728
744
  "filename"
729
- ],
730
- "type": "object",
731
- "additionalProperties": false
745
+ ]
732
746
  },
733
747
  "VimeoDestination": {
734
748
  "properties": {
@@ -4424,8 +4424,15 @@
4424
4424
  ]
4425
4425
  },
4426
4426
  "options": {
4427
- "description": "Additional Google Drive configuration and features.",
4428
- "$ref": "#/$defs/GoogleDriveDestinationOptions"
4427
+ "anyOf": [
4428
+ {
4429
+ "description": "Additional Google Drive configuration and features. If omitted, files are saved to the root of My Drive using the default Shotstack filename.",
4430
+ "$ref": "#/$defs/GoogleDriveDestinationOptions"
4431
+ },
4432
+ {
4433
+ "type": "null"
4434
+ }
4435
+ ]
4429
4436
  }
4430
4437
  },
4431
4438
  "type": "object",
@@ -4439,8 +4446,15 @@
4439
4446
  "description": "Pass the folder ID and options to configure how assets are stored in Google Drive.",
4440
4447
  "properties": {
4441
4448
  "folderId": {
4442
- "description": "The Google Drive folder ID where asset will be stored. The folder ID is required and can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.",
4443
- "type": "string"
4449
+ "anyOf": [
4450
+ {
4451
+ "type": "string",
4452
+ "description": "The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>."
4453
+ },
4454
+ {
4455
+ "type": "null"
4456
+ }
4457
+ ]
4444
4458
  },
4445
4459
  "filename": {
4446
4460
  "anyOf": [
@@ -4454,12 +4468,12 @@
4454
4468
  ]
4455
4469
  }
4456
4470
  },
4471
+ "type": "object",
4472
+ "additionalProperties": false,
4457
4473
  "required": [
4458
4474
  "folderId",
4459
4475
  "filename"
4460
- ],
4461
- "type": "object",
4462
- "additionalProperties": false
4476
+ ]
4463
4477
  },
4464
4478
  "VimeoDestination": {
4465
4479
  "description": "Send videos to [Vimeo](https://shotstack.io/docs/guide/serving-assets/destinations/vimeo/) video hosting and streaming service. Vimeo credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/vimeo), not in the request.",
package/dist/schema.d.ts CHANGED
@@ -2527,16 +2527,16 @@ export interface components {
2527
2527
  * @example google-drive
2528
2528
  */
2529
2529
  provider: string;
2530
- /** @description Additional Google Drive configuration and features. */
2531
- options: components["schemas"]["GoogleDriveDestinationOptions"];
2530
+ /** @description Additional Google Drive configuration and features. If omitted, files are saved to the root of My Drive using the default Shotstack filename. */
2531
+ options?: components["schemas"]["GoogleDriveDestinationOptions"];
2532
2532
  };
2533
2533
  /** @description Pass the folder ID and options to configure how assets are stored in Google Drive. */
2534
2534
  GoogleDriveDestinationOptions: {
2535
2535
  /**
2536
- * @description The Google Drive folder ID where asset will be stored. The folder ID is required and can be retrieved from the URL when logged in to Google Drive, e.g. <a href="#">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.
2536
+ * @description The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. <a href="#">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.
2537
2537
  * @example 1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A
2538
2538
  */
2539
- folderId: string;
2539
+ folderId?: string;
2540
2540
  /**
2541
2541
  * @description Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.
2542
2542
  * @example my-file
@@ -268,7 +268,7 @@ exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinat
268
268
  * Pass the folder ID and options to configure how assets are stored in Google Drive.
269
269
  */
270
270
  exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = zod_1.z.object({
271
- folderId: zod_1.z.string(),
271
+ folderId: zod_1.z.optional(zod_1.z.string()),
272
272
  filename: zod_1.z.optional(zod_1.z.string())
273
273
  }).strict();
274
274
  exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
@@ -277,7 +277,7 @@ exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOpti
277
277
  */
278
278
  exports.googleDriveDestinationGoogleDriveDestinationSchema = zod_1.z.object({
279
279
  provider: zod_1.z.literal("google-drive"),
280
- options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
280
+ options: zod_1.z.optional(exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema)
281
281
  }).strict();
282
282
  exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema;
283
283
  /**
@@ -236,11 +236,11 @@ export declare const googleCloudStorageDestinationSchema: z.ZodObject<{
236
236
  * Pass the folder ID and options to configure how assets are stored in Google Drive.
237
237
  */
238
238
  export declare const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema: z.ZodObject<{
239
- folderId: z.ZodString;
239
+ folderId: z.ZodOptional<z.ZodString>;
240
240
  filename: z.ZodOptional<z.ZodString>;
241
241
  }, z.core.$strict>;
242
242
  export declare const googleDriveDestinationOptionsSchema: z.ZodObject<{
243
- folderId: z.ZodString;
243
+ folderId: z.ZodOptional<z.ZodString>;
244
244
  filename: z.ZodOptional<z.ZodString>;
245
245
  }, z.core.$strict>;
246
246
  /**
@@ -248,17 +248,17 @@ export declare const googleDriveDestinationOptionsSchema: z.ZodObject<{
248
248
  */
249
249
  export declare const googleDriveDestinationGoogleDriveDestinationSchema: z.ZodObject<{
250
250
  provider: z.ZodLiteral<"google-drive">;
251
- options: z.ZodObject<{
252
- folderId: z.ZodString;
251
+ options: z.ZodOptional<z.ZodObject<{
252
+ folderId: z.ZodOptional<z.ZodString>;
253
253
  filename: z.ZodOptional<z.ZodString>;
254
- }, z.core.$strict>;
254
+ }, z.core.$strict>>;
255
255
  }, z.core.$strict>;
256
256
  export declare const googleDriveDestinationSchema: z.ZodObject<{
257
257
  provider: z.ZodLiteral<"google-drive">;
258
- options: z.ZodObject<{
259
- folderId: z.ZodString;
258
+ options: z.ZodOptional<z.ZodObject<{
259
+ folderId: z.ZodOptional<z.ZodString>;
260
260
  filename: z.ZodOptional<z.ZodString>;
261
- }, z.core.$strict>;
261
+ }, z.core.$strict>>;
262
262
  }, z.core.$strict>;
263
263
  /**
264
264
  * Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
@@ -578,10 +578,10 @@ export declare const destinationsDestinationsSchema: z.ZodDiscriminatedUnion<[z.
578
578
  }, z.core.$strict>>;
579
579
  }, z.core.$strict>, z.ZodObject<{
580
580
  provider: z.ZodLiteral<"google-drive">;
581
- options: z.ZodObject<{
582
- folderId: z.ZodString;
581
+ options: z.ZodOptional<z.ZodObject<{
582
+ folderId: z.ZodOptional<z.ZodString>;
583
583
  filename: z.ZodOptional<z.ZodString>;
584
- }, z.core.$strict>;
584
+ }, z.core.$strict>>;
585
585
  }, z.core.$strict>, z.ZodObject<{
586
586
  provider: z.ZodLiteral<"vimeo">;
587
587
  options: z.ZodOptional<z.ZodObject<{
@@ -670,10 +670,10 @@ export declare const destinationsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
670
670
  }, z.core.$strict>>;
671
671
  }, z.core.$strict>, z.ZodObject<{
672
672
  provider: z.ZodLiteral<"google-drive">;
673
- options: z.ZodObject<{
674
- folderId: z.ZodString;
673
+ options: z.ZodOptional<z.ZodObject<{
674
+ folderId: z.ZodOptional<z.ZodString>;
675
675
  filename: z.ZodOptional<z.ZodString>;
676
- }, z.core.$strict>;
676
+ }, z.core.$strict>>;
677
677
  }, z.core.$strict>, z.ZodObject<{
678
678
  provider: z.ZodLiteral<"vimeo">;
679
679
  options: z.ZodOptional<z.ZodObject<{
@@ -2632,10 +2632,10 @@ export declare const transferTransferSchema: z.ZodObject<{
2632
2632
  }, z.core.$strict>>;
2633
2633
  }, z.core.$strict>, z.ZodObject<{
2634
2634
  provider: z.ZodLiteral<"google-drive">;
2635
- options: z.ZodObject<{
2636
- folderId: z.ZodString;
2635
+ options: z.ZodOptional<z.ZodObject<{
2636
+ folderId: z.ZodOptional<z.ZodString>;
2637
2637
  filename: z.ZodOptional<z.ZodString>;
2638
- }, z.core.$strict>;
2638
+ }, z.core.$strict>>;
2639
2639
  }, z.core.$strict>, z.ZodObject<{
2640
2640
  provider: z.ZodLiteral<"vimeo">;
2641
2641
  options: z.ZodOptional<z.ZodObject<{
@@ -2728,10 +2728,10 @@ export declare const transferSchema: z.ZodObject<{
2728
2728
  }, z.core.$strict>>;
2729
2729
  }, z.core.$strict>, z.ZodObject<{
2730
2730
  provider: z.ZodLiteral<"google-drive">;
2731
- options: z.ZodObject<{
2732
- folderId: z.ZodString;
2731
+ options: z.ZodOptional<z.ZodObject<{
2732
+ folderId: z.ZodOptional<z.ZodString>;
2733
2733
  filename: z.ZodOptional<z.ZodString>;
2734
- }, z.core.$strict>;
2734
+ }, z.core.$strict>>;
2735
2735
  }, z.core.$strict>, z.ZodObject<{
2736
2736
  provider: z.ZodLiteral<"vimeo">;
2737
2737
  options: z.ZodOptional<z.ZodObject<{
@@ -4476,10 +4476,10 @@ export declare const sourceSourceSchema: z.ZodObject<{
4476
4476
  }, z.core.$strict>>;
4477
4477
  }, z.core.$strict>, z.ZodObject<{
4478
4478
  provider: z.ZodLiteral<"google-drive">;
4479
- options: z.ZodObject<{
4480
- folderId: z.ZodString;
4479
+ options: z.ZodOptional<z.ZodObject<{
4480
+ folderId: z.ZodOptional<z.ZodString>;
4481
4481
  filename: z.ZodOptional<z.ZodString>;
4482
- }, z.core.$strict>;
4482
+ }, z.core.$strict>>;
4483
4483
  }, z.core.$strict>, z.ZodObject<{
4484
4484
  provider: z.ZodLiteral<"vimeo">;
4485
4485
  options: z.ZodOptional<z.ZodObject<{
@@ -4645,10 +4645,10 @@ export declare const sourceSchema: z.ZodObject<{
4645
4645
  }, z.core.$strict>>;
4646
4646
  }, z.core.$strict>, z.ZodObject<{
4647
4647
  provider: z.ZodLiteral<"google-drive">;
4648
- options: z.ZodObject<{
4649
- folderId: z.ZodString;
4648
+ options: z.ZodOptional<z.ZodObject<{
4649
+ folderId: z.ZodOptional<z.ZodString>;
4650
4650
  filename: z.ZodOptional<z.ZodString>;
4651
- }, z.core.$strict>;
4651
+ }, z.core.$strict>>;
4652
4652
  }, z.core.$strict>, z.ZodObject<{
4653
4653
  provider: z.ZodLiteral<"vimeo">;
4654
4654
  options: z.ZodOptional<z.ZodObject<{
@@ -5090,10 +5090,10 @@ export declare const outputOutputSchema: z.ZodObject<{
5090
5090
  }, z.core.$strict>>;
5091
5091
  }, z.core.$strict>, z.ZodObject<{
5092
5092
  provider: z.ZodLiteral<"google-drive">;
5093
- options: z.ZodObject<{
5094
- folderId: z.ZodString;
5093
+ options: z.ZodOptional<z.ZodObject<{
5094
+ folderId: z.ZodOptional<z.ZodString>;
5095
5095
  filename: z.ZodOptional<z.ZodString>;
5096
- }, z.core.$strict>;
5096
+ }, z.core.$strict>>;
5097
5097
  }, z.core.$strict>, z.ZodObject<{
5098
5098
  provider: z.ZodLiteral<"vimeo">;
5099
5099
  options: z.ZodOptional<z.ZodObject<{
@@ -5240,10 +5240,10 @@ export declare const outputSchema: z.ZodObject<{
5240
5240
  }, z.core.$strict>>;
5241
5241
  }, z.core.$strict>, z.ZodObject<{
5242
5242
  provider: z.ZodLiteral<"google-drive">;
5243
- options: z.ZodObject<{
5244
- folderId: z.ZodString;
5243
+ options: z.ZodOptional<z.ZodObject<{
5244
+ folderId: z.ZodOptional<z.ZodString>;
5245
5245
  filename: z.ZodOptional<z.ZodString>;
5246
- }, z.core.$strict>;
5246
+ }, z.core.$strict>>;
5247
5247
  }, z.core.$strict>, z.ZodObject<{
5248
5248
  provider: z.ZodLiteral<"vimeo">;
5249
5249
  options: z.ZodOptional<z.ZodObject<{
@@ -22529,10 +22529,10 @@ export declare const editEditSchema: z.ZodObject<{
22529
22529
  }, z.core.$strict>>;
22530
22530
  }, z.core.$strict>, z.ZodObject<{
22531
22531
  provider: z.ZodLiteral<"google-drive">;
22532
- options: z.ZodObject<{
22533
- folderId: z.ZodString;
22532
+ options: z.ZodOptional<z.ZodObject<{
22533
+ folderId: z.ZodOptional<z.ZodString>;
22534
22534
  filename: z.ZodOptional<z.ZodString>;
22535
- }, z.core.$strict>;
22535
+ }, z.core.$strict>>;
22536
22536
  }, z.core.$strict>, z.ZodObject<{
22537
22537
  provider: z.ZodLiteral<"vimeo">;
22538
22538
  options: z.ZodOptional<z.ZodObject<{
@@ -24945,10 +24945,10 @@ export declare const editSchema: z.ZodObject<{
24945
24945
  }, z.core.$strict>>;
24946
24946
  }, z.core.$strict>, z.ZodObject<{
24947
24947
  provider: z.ZodLiteral<"google-drive">;
24948
- options: z.ZodObject<{
24949
- folderId: z.ZodString;
24948
+ options: z.ZodOptional<z.ZodObject<{
24949
+ folderId: z.ZodOptional<z.ZodString>;
24950
24950
  filename: z.ZodOptional<z.ZodString>;
24951
- }, z.core.$strict>;
24951
+ }, z.core.$strict>>;
24952
24952
  }, z.core.$strict>, z.ZodObject<{
24953
24953
  provider: z.ZodLiteral<"vimeo">;
24954
24954
  options: z.ZodOptional<z.ZodObject<{
@@ -27383,10 +27383,10 @@ export declare const renderresponsedataRenderResponseDataSchema: z.ZodObject<{
27383
27383
  }, z.core.$strict>>;
27384
27384
  }, z.core.$strict>, z.ZodObject<{
27385
27385
  provider: z.ZodLiteral<"google-drive">;
27386
- options: z.ZodObject<{
27387
- folderId: z.ZodString;
27386
+ options: z.ZodOptional<z.ZodObject<{
27387
+ folderId: z.ZodOptional<z.ZodString>;
27388
27388
  filename: z.ZodOptional<z.ZodString>;
27389
- }, z.core.$strict>;
27389
+ }, z.core.$strict>>;
27390
27390
  }, z.core.$strict>, z.ZodObject<{
27391
27391
  provider: z.ZodLiteral<"vimeo">;
27392
27392
  options: z.ZodOptional<z.ZodObject<{
@@ -29821,10 +29821,10 @@ export declare const renderResponseDataSchema: z.ZodObject<{
29821
29821
  }, z.core.$strict>>;
29822
29822
  }, z.core.$strict>, z.ZodObject<{
29823
29823
  provider: z.ZodLiteral<"google-drive">;
29824
- options: z.ZodObject<{
29825
- folderId: z.ZodString;
29824
+ options: z.ZodOptional<z.ZodObject<{
29825
+ folderId: z.ZodOptional<z.ZodString>;
29826
29826
  filename: z.ZodOptional<z.ZodString>;
29827
- }, z.core.$strict>;
29827
+ }, z.core.$strict>>;
29828
29828
  }, z.core.$strict>, z.ZodObject<{
29829
29829
  provider: z.ZodLiteral<"vimeo">;
29830
29830
  options: z.ZodOptional<z.ZodObject<{
@@ -32265,10 +32265,10 @@ export declare const renderresponseRenderResponseSchema: z.ZodObject<{
32265
32265
  }, z.core.$strict>>;
32266
32266
  }, z.core.$strict>, z.ZodObject<{
32267
32267
  provider: z.ZodLiteral<"google-drive">;
32268
- options: z.ZodObject<{
32269
- folderId: z.ZodString;
32268
+ options: z.ZodOptional<z.ZodObject<{
32269
+ folderId: z.ZodOptional<z.ZodString>;
32270
32270
  filename: z.ZodOptional<z.ZodString>;
32271
- }, z.core.$strict>;
32271
+ }, z.core.$strict>>;
32272
32272
  }, z.core.$strict>, z.ZodObject<{
32273
32273
  provider: z.ZodLiteral<"vimeo">;
32274
32274
  options: z.ZodOptional<z.ZodObject<{
@@ -34707,10 +34707,10 @@ export declare const renderResponseSchema: z.ZodObject<{
34707
34707
  }, z.core.$strict>>;
34708
34708
  }, z.core.$strict>, z.ZodObject<{
34709
34709
  provider: z.ZodLiteral<"google-drive">;
34710
- options: z.ZodObject<{
34711
- folderId: z.ZodString;
34710
+ options: z.ZodOptional<z.ZodObject<{
34711
+ folderId: z.ZodOptional<z.ZodString>;
34712
34712
  filename: z.ZodOptional<z.ZodString>;
34713
- }, z.core.$strict>;
34713
+ }, z.core.$strict>>;
34714
34714
  }, z.core.$strict>, z.ZodObject<{
34715
34715
  provider: z.ZodLiteral<"vimeo">;
34716
34716
  options: z.ZodOptional<z.ZodObject<{
@@ -37134,10 +37134,10 @@ export declare const templatedataresponsedataTemplateDataResponseDataSchema: z.Z
37134
37134
  }, z.core.$strict>>;
37135
37135
  }, z.core.$strict>, z.ZodObject<{
37136
37136
  provider: z.ZodLiteral<"google-drive">;
37137
- options: z.ZodObject<{
37138
- folderId: z.ZodString;
37137
+ options: z.ZodOptional<z.ZodObject<{
37138
+ folderId: z.ZodOptional<z.ZodString>;
37139
37139
  filename: z.ZodOptional<z.ZodString>;
37140
- }, z.core.$strict>;
37140
+ }, z.core.$strict>>;
37141
37141
  }, z.core.$strict>, z.ZodObject<{
37142
37142
  provider: z.ZodLiteral<"vimeo">;
37143
37143
  options: z.ZodOptional<z.ZodObject<{
@@ -39555,10 +39555,10 @@ export declare const templateDataResponseDataSchema: z.ZodObject<{
39555
39555
  }, z.core.$strict>>;
39556
39556
  }, z.core.$strict>, z.ZodObject<{
39557
39557
  provider: z.ZodLiteral<"google-drive">;
39558
- options: z.ZodObject<{
39559
- folderId: z.ZodString;
39558
+ options: z.ZodOptional<z.ZodObject<{
39559
+ folderId: z.ZodOptional<z.ZodString>;
39560
39560
  filename: z.ZodOptional<z.ZodString>;
39561
- }, z.core.$strict>;
39561
+ }, z.core.$strict>>;
39562
39562
  }, z.core.$strict>, z.ZodObject<{
39563
39563
  provider: z.ZodLiteral<"vimeo">;
39564
39564
  options: z.ZodOptional<z.ZodObject<{
@@ -41982,10 +41982,10 @@ export declare const templatedataresponseTemplateDataResponseSchema: z.ZodObject
41982
41982
  }, z.core.$strict>>;
41983
41983
  }, z.core.$strict>, z.ZodObject<{
41984
41984
  provider: z.ZodLiteral<"google-drive">;
41985
- options: z.ZodObject<{
41986
- folderId: z.ZodString;
41985
+ options: z.ZodOptional<z.ZodObject<{
41986
+ folderId: z.ZodOptional<z.ZodString>;
41987
41987
  filename: z.ZodOptional<z.ZodString>;
41988
- }, z.core.$strict>;
41988
+ }, z.core.$strict>>;
41989
41989
  }, z.core.$strict>, z.ZodObject<{
41990
41990
  provider: z.ZodLiteral<"vimeo">;
41991
41991
  options: z.ZodOptional<z.ZodObject<{
@@ -44407,10 +44407,10 @@ export declare const templateDataResponseSchema: z.ZodObject<{
44407
44407
  }, z.core.$strict>>;
44408
44408
  }, z.core.$strict>, z.ZodObject<{
44409
44409
  provider: z.ZodLiteral<"google-drive">;
44410
- options: z.ZodObject<{
44411
- folderId: z.ZodString;
44410
+ options: z.ZodOptional<z.ZodObject<{
44411
+ folderId: z.ZodOptional<z.ZodString>;
44412
44412
  filename: z.ZodOptional<z.ZodString>;
44413
- }, z.core.$strict>;
44413
+ }, z.core.$strict>>;
44414
44414
  }, z.core.$strict>, z.ZodObject<{
44415
44415
  provider: z.ZodLiteral<"vimeo">;
44416
44416
  options: z.ZodOptional<z.ZodObject<{
@@ -46830,10 +46830,10 @@ export declare const templateTemplateSchema: z.ZodObject<{
46830
46830
  }, z.core.$strict>>;
46831
46831
  }, z.core.$strict>, z.ZodObject<{
46832
46832
  provider: z.ZodLiteral<"google-drive">;
46833
- options: z.ZodObject<{
46834
- folderId: z.ZodString;
46833
+ options: z.ZodOptional<z.ZodObject<{
46834
+ folderId: z.ZodOptional<z.ZodString>;
46835
46835
  filename: z.ZodOptional<z.ZodString>;
46836
- }, z.core.$strict>;
46836
+ }, z.core.$strict>>;
46837
46837
  }, z.core.$strict>, z.ZodObject<{
46838
46838
  provider: z.ZodLiteral<"vimeo">;
46839
46839
  options: z.ZodOptional<z.ZodObject<{
@@ -49249,10 +49249,10 @@ export declare const templateSchema: z.ZodObject<{
49249
49249
  }, z.core.$strict>>;
49250
49250
  }, z.core.$strict>, z.ZodObject<{
49251
49251
  provider: z.ZodLiteral<"google-drive">;
49252
- options: z.ZodObject<{
49253
- folderId: z.ZodString;
49252
+ options: z.ZodOptional<z.ZodObject<{
49253
+ folderId: z.ZodOptional<z.ZodString>;
49254
49254
  filename: z.ZodOptional<z.ZodString>;
49255
- }, z.core.$strict>;
49255
+ }, z.core.$strict>>;
49256
49256
  }, z.core.$strict>, z.ZodObject<{
49257
49257
  provider: z.ZodLiteral<"vimeo">;
49258
49258
  options: z.ZodOptional<z.ZodObject<{
@@ -51667,10 +51667,10 @@ export declare const postRenderRequest: z.ZodObject<{
51667
51667
  }, z.core.$strict>>;
51668
51668
  }, z.core.$strict>, z.ZodObject<{
51669
51669
  provider: z.ZodLiteral<"google-drive">;
51670
- options: z.ZodObject<{
51671
- folderId: z.ZodString;
51670
+ options: z.ZodOptional<z.ZodObject<{
51671
+ folderId: z.ZodOptional<z.ZodString>;
51672
51672
  filename: z.ZodOptional<z.ZodString>;
51673
- }, z.core.$strict>;
51673
+ }, z.core.$strict>>;
51674
51674
  }, z.core.$strict>, z.ZodObject<{
51675
51675
  provider: z.ZodLiteral<"vimeo">;
51676
51676
  options: z.ZodOptional<z.ZodObject<{
@@ -54132,10 +54132,10 @@ export declare const getRenderResponse: z.ZodObject<{
54132
54132
  }, z.core.$strict>>;
54133
54133
  }, z.core.$strict>, z.ZodObject<{
54134
54134
  provider: z.ZodLiteral<"google-drive">;
54135
- options: z.ZodObject<{
54136
- folderId: z.ZodString;
54135
+ options: z.ZodOptional<z.ZodObject<{
54136
+ folderId: z.ZodOptional<z.ZodString>;
54137
54137
  filename: z.ZodOptional<z.ZodString>;
54138
- }, z.core.$strict>;
54138
+ }, z.core.$strict>>;
54139
54139
  }, z.core.$strict>, z.ZodObject<{
54140
54140
  provider: z.ZodLiteral<"vimeo">;
54141
54141
  options: z.ZodOptional<z.ZodObject<{
@@ -56576,10 +56576,10 @@ export declare const postTemplateRequest: z.ZodObject<{
56576
56576
  }, z.core.$strict>>;
56577
56577
  }, z.core.$strict>, z.ZodObject<{
56578
56578
  provider: z.ZodLiteral<"google-drive">;
56579
- options: z.ZodObject<{
56580
- folderId: z.ZodString;
56579
+ options: z.ZodOptional<z.ZodObject<{
56580
+ folderId: z.ZodOptional<z.ZodString>;
56581
56581
  filename: z.ZodOptional<z.ZodString>;
56582
- }, z.core.$strict>;
56582
+ }, z.core.$strict>>;
56583
56583
  }, z.core.$strict>, z.ZodObject<{
56584
56584
  provider: z.ZodLiteral<"vimeo">;
56585
56585
  options: z.ZodOptional<z.ZodObject<{
@@ -59035,10 +59035,10 @@ export declare const getTemplateResponse: z.ZodObject<{
59035
59035
  }, z.core.$strict>>;
59036
59036
  }, z.core.$strict>, z.ZodObject<{
59037
59037
  provider: z.ZodLiteral<"google-drive">;
59038
- options: z.ZodObject<{
59039
- folderId: z.ZodString;
59038
+ options: z.ZodOptional<z.ZodObject<{
59039
+ folderId: z.ZodOptional<z.ZodString>;
59040
59040
  filename: z.ZodOptional<z.ZodString>;
59041
- }, z.core.$strict>;
59041
+ }, z.core.$strict>>;
59042
59042
  }, z.core.$strict>, z.ZodObject<{
59043
59043
  provider: z.ZodLiteral<"vimeo">;
59044
59044
  options: z.ZodOptional<z.ZodObject<{
@@ -61456,10 +61456,10 @@ export declare const putTemplateRequest: z.ZodObject<{
61456
61456
  }, z.core.$strict>>;
61457
61457
  }, z.core.$strict>, z.ZodObject<{
61458
61458
  provider: z.ZodLiteral<"google-drive">;
61459
- options: z.ZodObject<{
61460
- folderId: z.ZodString;
61459
+ options: z.ZodOptional<z.ZodObject<{
61460
+ folderId: z.ZodOptional<z.ZodString>;
61461
61461
  filename: z.ZodOptional<z.ZodString>;
61462
- }, z.core.$strict>;
61462
+ }, z.core.$strict>>;
61463
61463
  }, z.core.$strict>, z.ZodObject<{
61464
61464
  provider: z.ZodLiteral<"vimeo">;
61465
61465
  options: z.ZodOptional<z.ZodObject<{
@@ -61697,10 +61697,10 @@ export declare const postServeAssetRequest: z.ZodObject<{
61697
61697
  }, z.core.$strict>>;
61698
61698
  }, z.core.$strict>, z.ZodObject<{
61699
61699
  provider: z.ZodLiteral<"google-drive">;
61700
- options: z.ZodObject<{
61701
- folderId: z.ZodString;
61700
+ options: z.ZodOptional<z.ZodObject<{
61701
+ folderId: z.ZodOptional<z.ZodString>;
61702
61702
  filename: z.ZodOptional<z.ZodString>;
61703
- }, z.core.$strict>;
61703
+ }, z.core.$strict>>;
61704
61704
  }, z.core.$strict>, z.ZodObject<{
61705
61705
  provider: z.ZodLiteral<"vimeo">;
61706
61706
  options: z.ZodOptional<z.ZodObject<{
@@ -62004,10 +62004,10 @@ export declare const postSourceRequest: z.ZodObject<{
62004
62004
  }, z.core.$strict>>;
62005
62005
  }, z.core.$strict>, z.ZodObject<{
62006
62006
  provider: z.ZodLiteral<"google-drive">;
62007
- options: z.ZodObject<{
62008
- folderId: z.ZodString;
62007
+ options: z.ZodOptional<z.ZodObject<{
62008
+ folderId: z.ZodOptional<z.ZodString>;
62009
62009
  filename: z.ZodOptional<z.ZodString>;
62010
- }, z.core.$strict>;
62010
+ }, z.core.$strict>>;
62011
62011
  }, z.core.$strict>, z.ZodObject<{
62012
62012
  provider: z.ZodLiteral<"vimeo">;
62013
62013
  options: z.ZodOptional<z.ZodObject<{
@@ -260,7 +260,7 @@ export const googleCloudStorageDestinationSchema = googleCloudStorageDestination
260
260
  * Pass the folder ID and options to configure how assets are stored in Google Drive.
261
261
  */
262
262
  export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = z.object({
263
- folderId: z.string(),
263
+ folderId: z.optional(z.string()),
264
264
  filename: z.optional(z.string())
265
265
  }).strict();
266
266
  export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
@@ -269,7 +269,7 @@ export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptions
269
269
  */
270
270
  export const googleDriveDestinationGoogleDriveDestinationSchema = z.object({
271
271
  provider: z.literal("google-drive"),
272
- options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
272
+ options: z.optional(googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema)
273
273
  }).strict();
274
274
  export const googleDriveDestinationSchema = googleDriveDestinationGoogleDriveDestinationSchema;
275
275
  /**
@@ -188,7 +188,7 @@ export const googleCloudStorageDestinationSchema = googleCloudStorageDestination
188
188
  * Pass the folder ID and options to configure how assets are stored in Google Drive.
189
189
  */
190
190
  export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = z.object({
191
- folderId: z.string(),
191
+ folderId: z.optional(z.string()),
192
192
  filename: z.optional(z.string())
193
193
  }).strict();
194
194
 
@@ -199,7 +199,7 @@ export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptions
199
199
  */
200
200
  export const googleDriveDestinationGoogleDriveDestinationSchema = z.object({
201
201
  provider: z.literal("google-drive"),
202
- options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
202
+ options: z.optional(googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema)
203
203
  }).strict();
204
204
 
205
205
  export const googleDriveDestinationSchema = googleDriveDestinationGoogleDriveDestinationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",