@aviaryhq/cloudglue-js 0.4.6 → 0.4.8

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.
@@ -645,7 +645,7 @@ class CloudGlue {
645
645
  headers: {
646
646
  Authorization: `Bearer ${this.apiKey}`,
647
647
  'x-sdk-client': 'cloudglue-js',
648
- 'x-sdk-version': '0.4.6',
648
+ 'x-sdk-version': '0.4.8',
649
649
  },
650
650
  baseURL: this.baseUrl,
651
651
  timeout: this.timeout,
@@ -11,6 +11,7 @@ import { schemas as webhooksSchemas } from '../generated/Webhooks';
11
11
  import { FrameExtraction } from '../generated/common';
12
12
  import { schemas as faceDetectionSchemas } from '../generated/Face_Detection';
13
13
  import { schemas as faceMatchSchemas } from '../generated/Face_Match';
14
+ import { FilterOperator } from './enums';
14
15
  /**
15
16
  * Represents a video file in the Cloudglue system
16
17
  * Contains metadata about the file including its status, size, and video information
@@ -213,3 +214,45 @@ export type EnhancedSourceImage = {
213
214
  base64_image?: string;
214
215
  file_path?: string;
215
216
  };
217
+ /**
218
+ * Configuration options for initializing the CloudGlue client
219
+ */
220
+ export interface CloudGlueConfig {
221
+ apiKey?: string;
222
+ baseUrl?: string;
223
+ /**
224
+ * Time limit in milliseconds before we timeout a request
225
+ */
226
+ timeout?: number;
227
+ }
228
+ export interface Filter {
229
+ metadata?: Array<{
230
+ path: string;
231
+ operator: FilterOperator;
232
+ valueText?: string;
233
+ valueTextArray?: string[];
234
+ }>;
235
+ video_info?: Array<{
236
+ path: "duration_seconds" | "has_audio";
237
+ operator: FilterOperator;
238
+ valueText?: string;
239
+ valueTextArray?: string[];
240
+ }>;
241
+ file?: Array<{
242
+ path: "bytes" | "filename" | "uri" | "created_at" | "id";
243
+ operator: FilterOperator;
244
+ valueText?: string;
245
+ valueTextArray?: string[];
246
+ }>;
247
+ }
248
+ export interface ListFilesParams {
249
+ status?: "pending" | "processing" | "completed" | "failed" | "not_applicable";
250
+ limit?: number;
251
+ offset?: number;
252
+ order?: "created_at" | "filename";
253
+ sort?: "asc" | "desc";
254
+ created_before?: string;
255
+ created_after?: string;
256
+ filter?: Filter;
257
+ }
258
+ export type DefaultSegmentationConfig = z.infer<typeof collectionsSchemas.DefaultSegmentationConfig>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aviaryhq/cloudglue-js",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "Cloudglue API client for Node.js",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",