@shotstack/schemas 1.4.3 → 1.4.4
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.
- package/dist/api.bundled.json +8 -0
- package/dist/schema.d.ts +4 -0
- package/dist/zod/zod.gen.cjs +18 -30
- package/dist/zod/zod.gen.d.ts +322 -634
- package/dist/zod/zod.gen.js +18 -30
- package/dist/zod/zod.gen.ts +18 -30
- package/package.json +1 -1
package/dist/api.bundled.json
CHANGED
|
@@ -4398,6 +4398,14 @@
|
|
|
4398
4398
|
"nobody",
|
|
4399
4399
|
"contacts"
|
|
4400
4400
|
]
|
|
4401
|
+
},
|
|
4402
|
+
"download": {
|
|
4403
|
+
"description": "Set whether the video can be downloaded.",
|
|
4404
|
+
"type": "boolean"
|
|
4405
|
+
},
|
|
4406
|
+
"add": {
|
|
4407
|
+
"description": "Set whether other users can add the video to their collections.",
|
|
4408
|
+
"type": "boolean"
|
|
4401
4409
|
}
|
|
4402
4410
|
},
|
|
4403
4411
|
"type": "object"
|
package/dist/schema.d.ts
CHANGED
|
@@ -2794,6 +2794,10 @@ export interface components {
|
|
|
2794
2794
|
* @enum {string}
|
|
2795
2795
|
*/
|
|
2796
2796
|
comments?: "anybody" | "nobody" | "contacts";
|
|
2797
|
+
/** @description Set whether the video can be downloaded. */
|
|
2798
|
+
download?: boolean;
|
|
2799
|
+
/** @description Set whether other users can add the video to their collections. */
|
|
2800
|
+
add?: boolean;
|
|
2797
2801
|
};
|
|
2798
2802
|
/** @description A template is a saved [Edit](#tocs_edit) than can be loaded and re-used. */
|
|
2799
2803
|
Template: {
|
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -730,7 +730,7 @@ exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageD
|
|
|
730
730
|
* Send videos and assets to a [Google Cloud Storage](https://cloud.google.com/storage) bucket. Send files with your own prefix and filename. Google Cloud credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/google-cloud-storage), not in the request.
|
|
731
731
|
*/
|
|
732
732
|
exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = zod_1.z.object({
|
|
733
|
-
provider: zod_1.z.
|
|
733
|
+
provider: zod_1.z.literal('google-cloud-storage'),
|
|
734
734
|
options: zod_1.z.optional(exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
|
|
735
735
|
});
|
|
736
736
|
exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
|
|
@@ -746,7 +746,7 @@ exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOpti
|
|
|
746
746
|
* Send rendered videos and assets to the [Google Drive](https://shotstack.io/docs/guide/serving-assets/destinations/google-drive/) cloud storage service. Google Drive uses OAuth and you must authenticate and link your Google account via [dashboard](https://dashboard.shotstack.io/integrations/google-drive), not in the request.
|
|
747
747
|
*/
|
|
748
748
|
exports.googleDriveDestinationGoogleDriveDestinationSchema = zod_1.z.object({
|
|
749
|
-
provider: zod_1.z.
|
|
749
|
+
provider: zod_1.z.literal('google-drive'),
|
|
750
750
|
options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
|
|
751
751
|
});
|
|
752
752
|
exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema;
|
|
@@ -762,7 +762,7 @@ exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinatio
|
|
|
762
762
|
* Send videos to the [Mux](https://shotstack.io/docs/guide/serving-assets/destinations/mux/) video hosting and streaming service. Mux credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/mux), not in the request.
|
|
763
763
|
*/
|
|
764
764
|
exports.muxDestinationMuxDestinationSchema = zod_1.z.object({
|
|
765
|
-
provider: zod_1.z.
|
|
765
|
+
provider: zod_1.z.literal('mux'),
|
|
766
766
|
options: zod_1.z.optional(exports.muxDestinationOptionsMuxDestinationOptionsSchema)
|
|
767
767
|
});
|
|
768
768
|
exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema;
|
|
@@ -781,7 +781,7 @@ exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOp
|
|
|
781
781
|
* Send videos and assets to an [Amazon S3](https://shotstack.io/docs/guide/serving-assets/destinations/s3/) bucket. Send files to any region with your own prefix and filename. AWS credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/s3), not in the request.
|
|
782
782
|
*/
|
|
783
783
|
exports.s3DestinationS3DestinationSchema = zod_1.z.object({
|
|
784
|
-
provider: zod_1.z.
|
|
784
|
+
provider: zod_1.z.literal('s3'),
|
|
785
785
|
options: zod_1.z.optional(exports.s3DestinationOptionsS3DestinationOptionsSchema)
|
|
786
786
|
});
|
|
787
787
|
exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
|
|
@@ -789,7 +789,7 @@ exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
|
|
|
789
789
|
* Send videos and assets to the [Shotstack hosting and CDN](https://shotstack.io/docs/guide/serving-assets/destinations/shotstack/) service. This destination is enabled by default.
|
|
790
790
|
*/
|
|
791
791
|
exports.shotstackDestinationShotstackDestinationSchema = zod_1.z.object({
|
|
792
|
-
provider: zod_1.z.
|
|
792
|
+
provider: zod_1.z.literal('shotstack'),
|
|
793
793
|
exclude: zod_1.z.optional(zod_1.z.boolean())
|
|
794
794
|
});
|
|
795
795
|
exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema;
|
|
@@ -811,7 +811,7 @@ exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = zod_1.z.object(
|
|
|
811
811
|
* Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
|
|
812
812
|
*/
|
|
813
813
|
exports.tiktokDestinationTiktokDestinationSchema = zod_1.z.object({
|
|
814
|
-
provider: zod_1.z.
|
|
814
|
+
provider: zod_1.z.literal('tiktok'),
|
|
815
815
|
options: zod_1.z.optional(exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema)
|
|
816
816
|
});
|
|
817
817
|
/**
|
|
@@ -834,7 +834,9 @@ exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = zod
|
|
|
834
834
|
'anybody',
|
|
835
835
|
'nobody',
|
|
836
836
|
'contacts'
|
|
837
|
-
]))
|
|
837
|
+
])),
|
|
838
|
+
download: zod_1.z.optional(zod_1.z.boolean()),
|
|
839
|
+
add: zod_1.z.optional(zod_1.z.boolean())
|
|
838
840
|
});
|
|
839
841
|
exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
|
|
840
842
|
/**
|
|
@@ -851,7 +853,7 @@ exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDest
|
|
|
851
853
|
* 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.
|
|
852
854
|
*/
|
|
853
855
|
exports.vimeoDestinationVimeoDestinationSchema = zod_1.z.object({
|
|
854
|
-
provider: zod_1.z.
|
|
856
|
+
provider: zod_1.z.literal('vimeo'),
|
|
855
857
|
options: zod_1.z.optional(exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema)
|
|
856
858
|
});
|
|
857
859
|
exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema;
|
|
@@ -860,28 +862,14 @@ exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema;
|
|
|
860
862
|
*
|
|
861
863
|
* By default all ingested and generated assets are automatically sent to the [Shotstack hosting destination](https://shotstack.io/docs/guide/serving-assets/hosting/). You can [opt-out](https://shotstack.io/docs/guide/serving-assets/self-host/) from by setting the Shotstack destination **exclude** property to **true**.
|
|
862
864
|
*/
|
|
863
|
-
exports.destinationsDestinationsSchema = zod_1.z.
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
destinations: zod_1.z.optional(zod_1.z.literal('s3Destination_S3Destination'))
|
|
872
|
-
}).and(exports.s3DestinationS3DestinationSchema),
|
|
873
|
-
zod_1.z.object({
|
|
874
|
-
destinations: zod_1.z.optional(zod_1.z.literal('googleCloudStorageDestination_GoogleCloudStorageDestination'))
|
|
875
|
-
}).and(exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema),
|
|
876
|
-
zod_1.z.object({
|
|
877
|
-
destinations: zod_1.z.optional(zod_1.z.literal('googleDriveDestination_GoogleDriveDestination'))
|
|
878
|
-
}).and(exports.googleDriveDestinationGoogleDriveDestinationSchema),
|
|
879
|
-
zod_1.z.object({
|
|
880
|
-
destinations: zod_1.z.optional(zod_1.z.literal('vimeoDestination_VimeoDestination'))
|
|
881
|
-
}).and(exports.vimeoDestinationVimeoDestinationSchema),
|
|
882
|
-
zod_1.z.object({
|
|
883
|
-
destinations: zod_1.z.optional(zod_1.z.literal('tiktokDestination_TiktokDestination'))
|
|
884
|
-
}).and(exports.tiktokDestinationTiktokDestinationSchema)
|
|
865
|
+
exports.destinationsDestinationsSchema = zod_1.z.discriminatedUnion("provider", [
|
|
866
|
+
exports.shotstackDestinationShotstackDestinationSchema,
|
|
867
|
+
exports.muxDestinationMuxDestinationSchema,
|
|
868
|
+
exports.s3DestinationS3DestinationSchema,
|
|
869
|
+
exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema,
|
|
870
|
+
exports.googleDriveDestinationGoogleDriveDestinationSchema,
|
|
871
|
+
exports.vimeoDestinationVimeoDestinationSchema,
|
|
872
|
+
exports.tiktokDestinationTiktokDestinationSchema
|
|
885
873
|
]);
|
|
886
874
|
exports.destinationsSchema = exports.destinationsDestinationsSchema;
|
|
887
875
|
/**
|