@shotstack/schemas 1.3.8 → 1.3.9

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.
@@ -3134,7 +3134,7 @@
3134
3134
  "description": "Rotate a clip by the specified angle in degrees. Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.",
3135
3135
  "oneOf": [
3136
3136
  {
3137
- "type": "integer",
3137
+ "type": "number",
3138
3138
  "description": "The angle to rotate the clip. Can be 0 to 360, or 0 to -360. Using a positive number rotates the clip clockwise, negative numbers counter-clockwise.",
3139
3139
  "format": "float",
3140
3140
  "minimum": -360,
@@ -6223,7 +6223,7 @@
6223
6223
  },
6224
6224
  "height": {
6225
6225
  "description": "The height in pixels of the ingested source file, if a video or image.",
6226
- "type": "string",
6226
+ "type": "integer",
6227
6227
  "example": 1080
6228
6228
  },
6229
6229
  "duration": {
package/dist/schema.d.ts CHANGED
@@ -4130,7 +4130,7 @@ export interface components {
4130
4130
  * @description The height in pixels of the ingested source file, if a video or image.
4131
4131
  * @example 1080
4132
4132
  */
4133
- height?: string;
4133
+ height?: number;
4134
4134
  /**
4135
4135
  * Format: float
4136
4136
  * @description The duration in seconds of the ingested source file, if a video or audio file.
@@ -1430,7 +1430,7 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
1430
1430
  status: zod_1.z.optional(zod_1.z.enum(["queued", "importing", "ready", "failed", "deleted", "overwritten"])),
1431
1431
  outputs: zod_1.z.optional(exports.outputsresponseOutputsResponseSchema),
1432
1432
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number().int())),
1433
- height: zod_1.z.optional(zod_1.z.string()),
1433
+ height: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number().int())),
1434
1434
  duration: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number())),
1435
1435
  fps: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number())),
1436
1436
  created: zod_1.z.optional(zod_1.z.string()),
@@ -2097,7 +2097,7 @@ exports.offsetSchema = exports.offsetOffsetSchema;
2097
2097
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
2098
2098
  */
2099
2099
  exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
2100
- angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number().int().gte(-360).lte(360)), zod_1.z.array(exports.tweenTweenSchema)])),
2100
+ angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number().gte(-360).lte(360)), zod_1.z.array(exports.tweenTweenSchema)])),
2101
2101
  });
2102
2102
  exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema;
2103
2103
  /**
@@ -6107,7 +6107,7 @@ export declare const sourceresponseattributesSourceResponseAttributesSchema: z.Z
6107
6107
  }, z.core.$strip>>>;
6108
6108
  }, z.core.$strip>>;
6109
6109
  width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6110
- height: z.ZodOptional<z.ZodString>;
6110
+ height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6111
6111
  duration: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6112
6112
  fps: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6113
6113
  created: z.ZodOptional<z.ZodString>;
@@ -6211,7 +6211,7 @@ export declare const sourceResponseAttributesSchema: z.ZodObject<{
6211
6211
  }, z.core.$strip>>>;
6212
6212
  }, z.core.$strip>>;
6213
6213
  width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6214
- height: z.ZodOptional<z.ZodString>;
6214
+ height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6215
6215
  duration: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6216
6216
  fps: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6217
6217
  created: z.ZodOptional<z.ZodString>;
@@ -6321,7 +6321,7 @@ export declare const sourceresponsedataSourceResponseDataSchema: z.ZodObject<{
6321
6321
  }, z.core.$strip>>>;
6322
6322
  }, z.core.$strip>>;
6323
6323
  width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6324
- height: z.ZodOptional<z.ZodString>;
6324
+ height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6325
6325
  duration: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6326
6326
  fps: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6327
6327
  created: z.ZodOptional<z.ZodString>;
@@ -6429,7 +6429,7 @@ export declare const sourceResponseDataSchema: z.ZodObject<{
6429
6429
  }, z.core.$strip>>>;
6430
6430
  }, z.core.$strip>>;
6431
6431
  width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6432
- height: z.ZodOptional<z.ZodString>;
6432
+ height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6433
6433
  duration: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6434
6434
  fps: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6435
6435
  created: z.ZodOptional<z.ZodString>;
@@ -6541,7 +6541,7 @@ export declare const sourcelistresponseSourceListResponseSchema: z.ZodObject<{
6541
6541
  }, z.core.$strip>>>;
6542
6542
  }, z.core.$strip>>;
6543
6543
  width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6544
- height: z.ZodOptional<z.ZodString>;
6544
+ height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6545
6545
  duration: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6546
6546
  fps: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6547
6547
  created: z.ZodOptional<z.ZodString>;
@@ -6651,7 +6651,7 @@ export declare const sourceListResponseSchema: z.ZodObject<{
6651
6651
  }, z.core.$strip>>>;
6652
6652
  }, z.core.$strip>>;
6653
6653
  width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6654
- height: z.ZodOptional<z.ZodString>;
6654
+ height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6655
6655
  duration: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6656
6656
  fps: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6657
6657
  created: z.ZodOptional<z.ZodString>;
@@ -6764,7 +6764,7 @@ export declare const sourceresponseSourceResponseSchema: z.ZodObject<{
6764
6764
  }, z.core.$strip>>>;
6765
6765
  }, z.core.$strip>>;
6766
6766
  width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6767
- height: z.ZodOptional<z.ZodString>;
6767
+ height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6768
6768
  duration: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6769
6769
  fps: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6770
6770
  created: z.ZodOptional<z.ZodString>;
@@ -6874,7 +6874,7 @@ export declare const sourceResponseSchema: z.ZodObject<{
6874
6874
  }, z.core.$strip>>>;
6875
6875
  }, z.core.$strip>>;
6876
6876
  width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6877
- height: z.ZodOptional<z.ZodString>;
6877
+ height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6878
6878
  duration: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6879
6879
  fps: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
6880
6880
  created: z.ZodOptional<z.ZodString>;
@@ -40468,7 +40468,7 @@ export declare const getSourcesResponse: z.ZodObject<{
40468
40468
  }, z.core.$strip>>>;
40469
40469
  }, z.core.$strip>>;
40470
40470
  width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
40471
- height: z.ZodOptional<z.ZodString>;
40471
+ height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
40472
40472
  duration: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
40473
40473
  fps: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
40474
40474
  created: z.ZodOptional<z.ZodString>;
@@ -40777,7 +40777,7 @@ export declare const getSourceResponse: z.ZodObject<{
40777
40777
  }, z.core.$strip>>>;
40778
40778
  }, z.core.$strip>>;
40779
40779
  width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
40780
- height: z.ZodOptional<z.ZodString>;
40780
+ height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
40781
40781
  duration: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
40782
40782
  fps: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
40783
40783
  created: z.ZodOptional<z.ZodString>;
@@ -1420,7 +1420,7 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
1420
1420
  status: z.optional(z.enum(["queued", "importing", "ready", "failed", "deleted", "overwritten"])),
1421
1421
  outputs: z.optional(outputsresponseOutputsResponseSchema),
1422
1422
  width: z.optional(z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number().int())),
1423
- height: z.optional(z.string()),
1423
+ height: z.optional(z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number().int())),
1424
1424
  duration: z.optional(z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number())),
1425
1425
  fps: z.optional(z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number())),
1426
1426
  created: z.optional(z.string()),
@@ -2087,7 +2087,7 @@ export const offsetSchema = offsetOffsetSchema;
2087
2087
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
2088
2088
  */
2089
2089
  export const rotatetransformationRotateTransformationSchema = z.object({
2090
- angle: z.optional(z.union([z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number().int().gte(-360).lte(360)), z.array(tweenTweenSchema)])),
2090
+ angle: z.optional(z.union([z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number().gte(-360).lte(360)), z.array(tweenTweenSchema)])),
2091
2091
  });
2092
2092
  export const rotateTransformationSchema = rotatetransformationRotateTransformationSchema;
2093
2093
  /**
@@ -1787,7 +1787,7 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
1787
1787
  ),
1788
1788
  outputs: z.optional(outputsresponseOutputsResponseSchema),
1789
1789
  width: z.optional(z.preprocess(((v: unknown) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number().int())),
1790
- height: z.optional(z.string()),
1790
+ height: z.optional(z.preprocess(((v: unknown) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number().int())),
1791
1791
  duration: z.optional(z.preprocess(((v: unknown) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number())),
1792
1792
  fps: z.optional(z.preprocess(((v: unknown) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number())),
1793
1793
  created: z.optional(z.string()),
@@ -2556,7 +2556,7 @@ export const offsetSchema = offsetOffsetSchema;
2556
2556
  */
2557
2557
  export const rotatetransformationRotateTransformationSchema = z.object({
2558
2558
  angle: z.optional(
2559
- z.union([z.preprocess(((v: unknown) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number().int().gte(-360).lte(360)), z.array(tweenTweenSchema)])
2559
+ z.union([z.preprocess(((v: unknown) => v === '' || Array.isArray(v) ? NaN : v), z.coerce.number().gte(-360).lte(360)), z.array(tweenTweenSchema)])
2560
2560
  ),
2561
2561
  });
2562
2562
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",