@aviaryhq/cloudglue-js 0.3.0 → 0.3.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.
@@ -198,7 +198,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
198
198
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
199
199
  }, z.ZodTypeAny, "passthrough">>>;
200
200
  thumbnail_url: z.ZodOptional<z.ZodString>;
201
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
201
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
202
202
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
203
203
  id: z.ZodString;
204
204
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -227,7 +227,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
227
227
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
228
228
  }, z.ZodTypeAny, "passthrough">>>;
229
229
  thumbnail_url: z.ZodOptional<z.ZodString>;
230
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
230
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
231
231
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
232
232
  id: z.ZodString;
233
233
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -256,7 +256,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
256
256
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
257
257
  }, z.ZodTypeAny, "passthrough">>>;
258
258
  thumbnail_url: z.ZodOptional<z.ZodString>;
259
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
259
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
260
260
  }, z.ZodTypeAny, "passthrough">>;
261
261
  errors: [{
262
262
  status: 400;
@@ -389,7 +389,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
389
389
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
390
390
  }, z.ZodTypeAny, "passthrough">>>;
391
391
  thumbnail_url: z.ZodOptional<z.ZodString>;
392
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
392
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
393
393
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
394
394
  id: z.ZodString;
395
395
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -418,7 +418,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
418
418
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
419
419
  }, z.ZodTypeAny, "passthrough">>>;
420
420
  thumbnail_url: z.ZodOptional<z.ZodString>;
421
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
421
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
422
422
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
423
423
  id: z.ZodString;
424
424
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -447,7 +447,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
447
447
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
448
448
  }, z.ZodTypeAny, "passthrough">>>;
449
449
  thumbnail_url: z.ZodOptional<z.ZodString>;
450
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
450
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
451
451
  }, z.ZodTypeAny, "passthrough">>;
452
452
  errors: [{
453
453
  status: 404;
@@ -565,7 +565,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
565
565
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
566
566
  }, z.ZodTypeAny, "passthrough">>>;
567
567
  thumbnail_url: z.ZodOptional<z.ZodString>;
568
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
568
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
569
569
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
570
570
  id: z.ZodString;
571
571
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -594,7 +594,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
594
594
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
595
595
  }, z.ZodTypeAny, "passthrough">>>;
596
596
  thumbnail_url: z.ZodOptional<z.ZodString>;
597
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
597
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
598
598
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
599
599
  id: z.ZodString;
600
600
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -623,7 +623,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
623
623
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
624
624
  }, z.ZodTypeAny, "passthrough">>>;
625
625
  thumbnail_url: z.ZodOptional<z.ZodString>;
626
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
626
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
627
627
  }, z.ZodTypeAny, "passthrough">>;
628
628
  errors: [{
629
629
  status: 400;
@@ -1493,7 +1493,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
1493
1493
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
1494
1494
  }, z.ZodTypeAny, "passthrough">>>;
1495
1495
  thumbnail_url: z.ZodOptional<z.ZodString>;
1496
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
1496
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
1497
1497
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1498
1498
  id: z.ZodString;
1499
1499
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -1522,7 +1522,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
1522
1522
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
1523
1523
  }, z.ZodTypeAny, "passthrough">>>;
1524
1524
  thumbnail_url: z.ZodOptional<z.ZodString>;
1525
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
1525
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
1526
1526
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1527
1527
  id: z.ZodString;
1528
1528
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -1551,7 +1551,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
1551
1551
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
1552
1552
  }, z.ZodTypeAny, "passthrough">>>;
1553
1553
  thumbnail_url: z.ZodOptional<z.ZodString>;
1554
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
1554
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
1555
1555
  }, z.ZodTypeAny, "passthrough">>;
1556
1556
  errors: [{
1557
1557
  status: 400;
@@ -1684,7 +1684,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
1684
1684
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
1685
1685
  }, z.ZodTypeAny, "passthrough">>>;
1686
1686
  thumbnail_url: z.ZodOptional<z.ZodString>;
1687
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
1687
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
1688
1688
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1689
1689
  id: z.ZodString;
1690
1690
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -1713,7 +1713,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
1713
1713
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
1714
1714
  }, z.ZodTypeAny, "passthrough">>>;
1715
1715
  thumbnail_url: z.ZodOptional<z.ZodString>;
1716
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
1716
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
1717
1717
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1718
1718
  id: z.ZodString;
1719
1719
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -1742,7 +1742,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
1742
1742
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
1743
1743
  }, z.ZodTypeAny, "passthrough">>>;
1744
1744
  thumbnail_url: z.ZodOptional<z.ZodString>;
1745
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
1745
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
1746
1746
  }, z.ZodTypeAny, "passthrough">>;
1747
1747
  errors: [{
1748
1748
  status: 404;
@@ -1860,7 +1860,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
1860
1860
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
1861
1861
  }, z.ZodTypeAny, "passthrough">>>;
1862
1862
  thumbnail_url: z.ZodOptional<z.ZodString>;
1863
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
1863
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
1864
1864
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1865
1865
  id: z.ZodString;
1866
1866
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -1889,7 +1889,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
1889
1889
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
1890
1890
  }, z.ZodTypeAny, "passthrough">>>;
1891
1891
  thumbnail_url: z.ZodOptional<z.ZodString>;
1892
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
1892
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
1893
1893
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1894
1894
  id: z.ZodString;
1895
1895
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -1918,7 +1918,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
1918
1918
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
1919
1919
  }, z.ZodTypeAny, "passthrough">>>;
1920
1920
  thumbnail_url: z.ZodOptional<z.ZodString>;
1921
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
1921
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
1922
1922
  }, z.ZodTypeAny, "passthrough">>;
1923
1923
  errors: [{
1924
1924
  status: 400;
@@ -39,7 +39,7 @@ export type File = {
39
39
  has_audio: boolean | null;
40
40
  }> | undefined;
41
41
  thumbnail_url?: string | undefined;
42
- source?: ("video" | "youtube" | "s3" | "dropbox" | "http" | "upload") | undefined;
42
+ source?: ("video" | "youtube" | "s3" | "dropbox" | "http" | "upload" | "google-drive") | undefined;
43
43
  };
44
44
  export type Segmentation = {
45
45
  segmentation_id: string;
@@ -508,7 +508,7 @@ export declare const File: z.ZodObject<{
508
508
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
509
509
  }, z.ZodTypeAny, "passthrough">>>;
510
510
  thumbnail_url: z.ZodOptional<z.ZodString>;
511
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
511
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
512
512
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
513
513
  id: z.ZodString;
514
514
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -537,7 +537,7 @@ export declare const File: z.ZodObject<{
537
537
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
538
538
  }, z.ZodTypeAny, "passthrough">>>;
539
539
  thumbnail_url: z.ZodOptional<z.ZodString>;
540
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
540
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
541
541
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
542
542
  id: z.ZodString;
543
543
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -566,7 +566,7 @@ export declare const File: z.ZodObject<{
566
566
  has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
567
567
  }, z.ZodTypeAny, "passthrough">>>;
568
568
  thumbnail_url: z.ZodOptional<z.ZodString>;
569
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
569
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
570
570
  }, z.ZodTypeAny, "passthrough">>;
571
571
  export declare const Segmentation: z.ZodObject<{
572
572
  segmentation_id: z.ZodString;
@@ -71,7 +71,15 @@ exports.File = zod_1.z
71
71
  .optional(),
72
72
  thumbnail_url: zod_1.z.string().optional(),
73
73
  source: zod_1.z
74
- .enum(["video", "youtube", "s3", "dropbox", "http", "upload"])
74
+ .enum([
75
+ "video",
76
+ "youtube",
77
+ "s3",
78
+ "dropbox",
79
+ "http",
80
+ "upload",
81
+ "google-drive",
82
+ ])
75
83
  .optional(),
76
84
  })
77
85
  .strict()
@@ -208,7 +208,7 @@ declare class EnhancedFilesApi {
208
208
  has_audio: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodNull]>>;
209
209
  }, import("zod").ZodTypeAny, "passthrough">>>;
210
210
  thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
211
- source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
211
+ source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
212
212
  }, import("zod").ZodTypeAny, "passthrough">>;
213
213
  deleteFile(fileId: string): Promise<import("zod").objectOutputType<{
214
214
  id: import("zod").ZodString;
@@ -242,7 +242,7 @@ declare class EnhancedFilesApi {
242
242
  has_audio: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodNull]>>;
243
243
  }, import("zod").ZodTypeAny, "passthrough">>>;
244
244
  thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
245
- source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
245
+ source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
246
246
  }, import("zod").ZodTypeAny, "passthrough">>;
247
247
  listFileSegmentations(fileId: string, params?: {
248
248
  limit?: number;
@@ -496,7 +496,7 @@ declare class EnhancedFilesApi {
496
496
  has_audio: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodNull]>>;
497
497
  }, import("zod").ZodTypeAny, "passthrough">>>;
498
498
  thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
499
- source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload"]>>;
499
+ source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive"]>>;
500
500
  }, import("zod").ZodTypeAny, "passthrough">>;
501
501
  }
502
502
  declare class EnhancedCollectionsApi {
@@ -475,7 +475,7 @@ class CloudGlue {
475
475
  headers: {
476
476
  Authorization: `Bearer ${this.apiKey}`,
477
477
  'x-sdk-client': 'cloudglue-js',
478
- 'x-sdk-version': '0.3.0',
478
+ 'x-sdk-version': '0.3.1',
479
479
  },
480
480
  baseURL: this.baseUrl,
481
481
  timeout: this.timeout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aviaryhq/cloudglue-js",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Cloudglue API client for Node.js",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -13,7 +13,8 @@
13
13
  "build": "tsc && node scripts/build.js",
14
14
  "watch": "tsc --watch",
15
15
  "prepare": "npm run build",
16
- "publish": "npm run build && npm publish"
16
+ "prepublishOnly": "npm run build",
17
+ "release": "npm run build && npm publish"
17
18
  },
18
19
  "repository": {
19
20
  "type": "git",