@aviaryhq/cloudglue-js 0.4.12 → 0.4.13

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.
@@ -14,7 +14,9 @@ const Webhooks_1 = require("../generated/Webhooks");
14
14
  const Frames_1 = require("../generated/Frames");
15
15
  const Face_Detection_1 = require("../generated/Face_Detection");
16
16
  const Face_Match_1 = require("../generated/Face_Match");
17
+ const Tags_1 = require("../generated/Tags");
17
18
  const webhooks_api_1 = require("./api/webhooks.api");
19
+ const tags_api_1 = require("./api/tags.api");
18
20
  const error_1 = require("./error");
19
21
  const files_api_1 = require("./api/files.api");
20
22
  const describe_api_1 = require("./api/describe.api");
@@ -44,7 +46,7 @@ class CloudGlue {
44
46
  headers: {
45
47
  Authorization: `Bearer ${this.apiKey}`,
46
48
  'x-sdk-client': 'cloudglue-js',
47
- 'x-sdk-version': '0.4.12',
49
+ 'x-sdk-version': '0.4.13',
48
50
  },
49
51
  baseURL: this.baseUrl,
50
52
  timeout: this.timeout,
@@ -69,6 +71,7 @@ class CloudGlue {
69
71
  const faceDetectionApi = (0, Face_Detection_1.createApiClient)(this.baseUrl, sharedConfig);
70
72
  const faceMatchApi = (0, Face_Match_1.createApiClient)(this.baseUrl, sharedConfig);
71
73
  const webhooksApi = (0, Webhooks_1.createApiClient)(this.baseUrl, sharedConfig);
74
+ const tagsApi = (0, Tags_1.createApiClient)(this.baseUrl, sharedConfig);
72
75
  // Configure base URL and axios config for all clients
73
76
  [
74
77
  filesApi,
@@ -84,6 +87,7 @@ class CloudGlue {
84
87
  faceDetectionApi,
85
88
  faceMatchApi,
86
89
  webhooksApi,
90
+ tagsApi,
87
91
  ].forEach((client) => {
88
92
  Object.assign(client.axios.defaults, axiosConfig);
89
93
  client.axios.interceptors.response.use((response) => {
@@ -116,6 +120,7 @@ class CloudGlue {
116
120
  this.faceDetection = new face_detection_api_1.EnhancedFaceDetectionApi(faceDetectionApi);
117
121
  this.faceMatch = new face_match_api_1.EnhancedFaceMatchApi(faceMatchApi);
118
122
  this.webhooks = new webhooks_api_1.EnhancedWebhooksApi(webhooksApi);
123
+ this.tags = new tags_api_1.EnhancedTagsApi(tagsApi);
119
124
  }
120
125
  }
121
126
  exports.CloudGlue = CloudGlue;
@@ -1,4 +1,5 @@
1
1
  import type { z } from 'zod';
2
+ import { ListVideoTagsResponse, VideoTag } from '../generated/common';
2
3
  import { schemas as collectionsSchemas } from '../generated/Collections';
3
4
  import { schemas as chatSchemas } from '../generated/Chat';
4
5
  import { schemas as transcribeSchemas } from '../generated/Transcribe';
@@ -12,6 +13,7 @@ import { FrameExtraction } from '../generated/common';
12
13
  import { schemas as faceDetectionSchemas } from '../generated/Face_Detection';
13
14
  import { schemas as faceMatchSchemas } from '../generated/Face_Match';
14
15
  import { FilterOperator } from './enums';
16
+ import { schemas as tagsSchemas } from '../generated/Tags';
15
17
  /**
16
18
  * Represents a video file in the Cloudglue system
17
19
  * Contains metadata about the file including its status, size, and video information
@@ -263,3 +265,6 @@ export type WaitForReadyOptions = {
263
265
  maxAttempts?: number;
264
266
  };
265
267
  export type ThumbnailType = 'segment' | 'keyframe' | 'file' | 'frame';
268
+ export type CreateVideoTagParams = z.infer<typeof tagsSchemas.CreateVideoTagRequest>;
269
+ export type UpdateVideoTagParams = z.infer<typeof tagsSchemas.UpdateVideoTagRequest>;
270
+ export type { ListVideoTagsResponse, VideoTag };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aviaryhq/cloudglue-js",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "description": "Cloudglue API client for Node.js",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",