@aviaryhq/cloudglue-js 0.5.4 → 0.5.5

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.
@@ -0,0 +1,219 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShareApi = exports.schemas = void 0;
4
+ exports.createApiClient = createApiClient;
5
+ const core_1 = require("@zodios/core");
6
+ const zod_1 = require("zod");
7
+ const ShareableAsset = zod_1.z
8
+ .object({
9
+ id: zod_1.z.string().uuid(),
10
+ file_id: zod_1.z.string().uuid(),
11
+ file_segment_id: zod_1.z.string().uuid().optional(),
12
+ title: zod_1.z.string().optional(),
13
+ description: zod_1.z.string().optional(),
14
+ metadata: zod_1.z.object({}).partial().strict().passthrough().optional(),
15
+ preview_url: zod_1.z.string().optional(),
16
+ media_download_url: zod_1.z.string().optional(),
17
+ media_download_expires_at: zod_1.z.number().nullish(),
18
+ share_url: zod_1.z.string().optional(),
19
+ status: zod_1.z.enum(['pending', 'processing', 'completed', 'failed']).optional(),
20
+ asset_type: zod_1.z.enum(['file', 'file_segment']).optional(),
21
+ created_at: zod_1.z.number(),
22
+ object: zod_1.z.literal('share').optional(),
23
+ })
24
+ .strict()
25
+ .passthrough();
26
+ const ShareableAssetListResponse = zod_1.z
27
+ .object({
28
+ object: zod_1.z.literal('list'),
29
+ data: zod_1.z.array(ShareableAsset),
30
+ total: zod_1.z.number().int(),
31
+ limit: zod_1.z.number().int(),
32
+ offset: zod_1.z.number().int(),
33
+ })
34
+ .strict()
35
+ .passthrough();
36
+ const CreateShareableAssetRequest = zod_1.z
37
+ .object({
38
+ file_id: zod_1.z.string().uuid(),
39
+ file_segment_id: zod_1.z.string().uuid().optional(),
40
+ title: zod_1.z.string().optional(),
41
+ description: zod_1.z.string().optional(),
42
+ metadata: zod_1.z.object({}).partial().strict().passthrough().optional(),
43
+ })
44
+ .strict()
45
+ .passthrough();
46
+ const UpdateShareableAssetRequest = zod_1.z
47
+ .object({
48
+ title: zod_1.z.string(),
49
+ description: zod_1.z.string(),
50
+ metadata: zod_1.z.object({}).partial().strict().passthrough(),
51
+ })
52
+ .partial()
53
+ .strict()
54
+ .passthrough();
55
+ exports.schemas = {
56
+ ShareableAsset,
57
+ ShareableAssetListResponse,
58
+ CreateShareableAssetRequest,
59
+ UpdateShareableAssetRequest,
60
+ };
61
+ const endpoints = (0, core_1.makeApi)([
62
+ {
63
+ method: 'post',
64
+ path: '/share',
65
+ alias: 'createShareableAsset',
66
+ description: `Create a publicly available shareable asset`,
67
+ requestFormat: 'json',
68
+ parameters: [
69
+ {
70
+ name: 'body',
71
+ description: `Shareable asset creation request parameters`,
72
+ type: 'Body',
73
+ schema: CreateShareableAssetRequest,
74
+ },
75
+ ],
76
+ response: ShareableAsset,
77
+ errors: [
78
+ {
79
+ status: 400,
80
+ description: `Invalid request parameters or configuration`,
81
+ schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
82
+ },
83
+ {
84
+ status: 404,
85
+ description: `File or file segment not found`,
86
+ schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
87
+ },
88
+ {
89
+ status: 409,
90
+ description: `Shareable asset already exists`,
91
+ schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
92
+ },
93
+ {
94
+ status: 500,
95
+ description: `An unexpected error occurred on the server`,
96
+ schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
97
+ },
98
+ ],
99
+ },
100
+ {
101
+ method: 'get',
102
+ path: '/share',
103
+ alias: 'listShareableAssets',
104
+ description: `List shareable assets`,
105
+ requestFormat: 'json',
106
+ parameters: [
107
+ {
108
+ name: 'file_id',
109
+ type: 'Query',
110
+ schema: zod_1.z.string().uuid().optional(),
111
+ },
112
+ {
113
+ name: 'file_segment_id',
114
+ type: 'Query',
115
+ schema: zod_1.z.string().uuid().optional(),
116
+ },
117
+ {
118
+ name: 'limit',
119
+ type: 'Query',
120
+ schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
121
+ },
122
+ {
123
+ name: 'offset',
124
+ type: 'Query',
125
+ schema: zod_1.z.number().int().gte(0).optional().default(0),
126
+ },
127
+ {
128
+ name: 'created_before',
129
+ type: 'Query',
130
+ schema: zod_1.z.string().optional(),
131
+ },
132
+ {
133
+ name: 'created_after',
134
+ type: 'Query',
135
+ schema: zod_1.z.string().optional(),
136
+ },
137
+ ],
138
+ response: ShareableAssetListResponse,
139
+ },
140
+ {
141
+ method: 'get',
142
+ path: '/share/:id',
143
+ alias: 'getShareableAsset',
144
+ description: `Get a shareable asset`,
145
+ requestFormat: 'json',
146
+ parameters: [
147
+ {
148
+ name: 'id',
149
+ type: 'Path',
150
+ schema: zod_1.z.string().uuid(),
151
+ },
152
+ ],
153
+ response: ShareableAsset,
154
+ errors: [
155
+ {
156
+ status: 404,
157
+ description: `Shareable asset not found`,
158
+ schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
159
+ },
160
+ ],
161
+ },
162
+ {
163
+ method: 'delete',
164
+ path: '/share/:id',
165
+ alias: 'deleteShareableAsset',
166
+ description: `Delete a shareable asset`,
167
+ requestFormat: 'json',
168
+ parameters: [
169
+ {
170
+ name: 'id',
171
+ type: 'Path',
172
+ schema: zod_1.z.string().uuid(),
173
+ },
174
+ ],
175
+ response: zod_1.z
176
+ .object({ id: zod_1.z.string().uuid(), object: zod_1.z.literal('share') })
177
+ .strict()
178
+ .passthrough(),
179
+ errors: [
180
+ {
181
+ status: 404,
182
+ description: `Shareable asset not found`,
183
+ schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
184
+ },
185
+ ],
186
+ },
187
+ {
188
+ method: 'put',
189
+ path: '/share/:id',
190
+ alias: 'updateShareableAsset',
191
+ description: `Update a shareable asset`,
192
+ requestFormat: 'json',
193
+ parameters: [
194
+ {
195
+ name: 'body',
196
+ description: `Shareable asset update request parameters`,
197
+ type: 'Body',
198
+ schema: UpdateShareableAssetRequest,
199
+ },
200
+ {
201
+ name: 'id',
202
+ type: 'Path',
203
+ schema: zod_1.z.string().uuid(),
204
+ },
205
+ ],
206
+ response: ShareableAsset,
207
+ errors: [
208
+ {
209
+ status: 404,
210
+ description: `Shareable asset not found`,
211
+ schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
212
+ },
213
+ ],
214
+ },
215
+ ]);
216
+ exports.ShareApi = new core_1.Zodios('https://api.cloudglue.dev/v1', endpoints);
217
+ function createApiClient(baseUrl, options) {
218
+ return new core_1.Zodios(baseUrl, endpoints, options);
219
+ }
@@ -70,6 +70,23 @@ export type File = {
70
70
  thumbnail_url?: string | undefined;
71
71
  source?: ('video' | 'youtube' | 's3' | 'dropbox' | 'http' | 'upload' | 'google-drive' | 'zoom' | 'gong' | 'recall') | undefined;
72
72
  };
73
+ export type SearchFilter = Partial<{
74
+ metadata: Array<SearchFilterCriteria & Partial<{
75
+ scope: 'file' | 'segment';
76
+ }>>;
77
+ video_info: Array<SearchFilterCriteria & Partial<{
78
+ path: 'duration_seconds' | 'has_audio';
79
+ }>>;
80
+ file: Array<SearchFilterCriteria & Partial<{
81
+ path: 'bytes' | 'filename' | 'uri' | 'created_at' | 'id';
82
+ }>>;
83
+ }>;
84
+ export type SearchFilterCriteria = {
85
+ path: string;
86
+ operator: 'NotEqual' | 'Equal' | 'LessThan' | 'GreaterThan' | 'ContainsAny' | 'ContainsAll' | 'In' | 'Like';
87
+ valueText?: string | undefined;
88
+ valueTextArray?: Array<string> | undefined;
89
+ };
73
90
  export type Segmentation = {
74
91
  segmentation_id: string;
75
92
  status: 'pending' | 'processing' | 'completed' | 'failed' | 'not_applicable';
@@ -2694,6 +2711,224 @@ export declare const DescribeOutput: z.ZodObject<{
2694
2711
  end_time: z.ZodOptional<z.ZodNumber>;
2695
2712
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2696
2713
  }, z.ZodTypeAny, "passthrough">>;
2714
+ export declare const SearchFilterCriteria: z.ZodObject<{
2715
+ path: z.ZodString;
2716
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2717
+ valueText: z.ZodOptional<z.ZodString>;
2718
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2719
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2720
+ path: z.ZodString;
2721
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2722
+ valueText: z.ZodOptional<z.ZodString>;
2723
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2724
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2725
+ path: z.ZodString;
2726
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2727
+ valueText: z.ZodOptional<z.ZodString>;
2728
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2729
+ }, z.ZodTypeAny, "passthrough">>;
2730
+ export declare const SearchFilter: z.ZodObject<{
2731
+ metadata: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2732
+ path: z.ZodString;
2733
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2734
+ valueText: z.ZodOptional<z.ZodString>;
2735
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2736
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2737
+ path: z.ZodString;
2738
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2739
+ valueText: z.ZodOptional<z.ZodString>;
2740
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2741
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2742
+ path: z.ZodString;
2743
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2744
+ valueText: z.ZodOptional<z.ZodString>;
2745
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2746
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2747
+ scope: z.ZodOptional<z.ZodDefault<z.ZodEnum<["file", "segment"]>>>;
2748
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2749
+ scope: z.ZodOptional<z.ZodDefault<z.ZodEnum<["file", "segment"]>>>;
2750
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2751
+ scope: z.ZodOptional<z.ZodDefault<z.ZodEnum<["file", "segment"]>>>;
2752
+ }, z.ZodTypeAny, "passthrough">>>, "many">>;
2753
+ video_info: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2754
+ path: z.ZodString;
2755
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2756
+ valueText: z.ZodOptional<z.ZodString>;
2757
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2758
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2759
+ path: z.ZodString;
2760
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2761
+ valueText: z.ZodOptional<z.ZodString>;
2762
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2763
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2764
+ path: z.ZodString;
2765
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2766
+ valueText: z.ZodOptional<z.ZodString>;
2767
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2768
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2769
+ path: z.ZodOptional<z.ZodEnum<["duration_seconds", "has_audio"]>>;
2770
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2771
+ path: z.ZodOptional<z.ZodEnum<["duration_seconds", "has_audio"]>>;
2772
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2773
+ path: z.ZodOptional<z.ZodEnum<["duration_seconds", "has_audio"]>>;
2774
+ }, z.ZodTypeAny, "passthrough">>>, "many">>;
2775
+ file: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2776
+ path: z.ZodString;
2777
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2778
+ valueText: z.ZodOptional<z.ZodString>;
2779
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2780
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2781
+ path: z.ZodString;
2782
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2783
+ valueText: z.ZodOptional<z.ZodString>;
2784
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2785
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2786
+ path: z.ZodString;
2787
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2788
+ valueText: z.ZodOptional<z.ZodString>;
2789
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2790
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2791
+ path: z.ZodOptional<z.ZodEnum<["bytes", "filename", "uri", "created_at", "id"]>>;
2792
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2793
+ path: z.ZodOptional<z.ZodEnum<["bytes", "filename", "uri", "created_at", "id"]>>;
2794
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2795
+ path: z.ZodOptional<z.ZodEnum<["bytes", "filename", "uri", "created_at", "id"]>>;
2796
+ }, z.ZodTypeAny, "passthrough">>>, "many">>;
2797
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2798
+ metadata: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2799
+ path: z.ZodString;
2800
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2801
+ valueText: z.ZodOptional<z.ZodString>;
2802
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2803
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2804
+ path: z.ZodString;
2805
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2806
+ valueText: z.ZodOptional<z.ZodString>;
2807
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2808
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2809
+ path: z.ZodString;
2810
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2811
+ valueText: z.ZodOptional<z.ZodString>;
2812
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2813
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2814
+ scope: z.ZodOptional<z.ZodDefault<z.ZodEnum<["file", "segment"]>>>;
2815
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2816
+ scope: z.ZodOptional<z.ZodDefault<z.ZodEnum<["file", "segment"]>>>;
2817
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2818
+ scope: z.ZodOptional<z.ZodDefault<z.ZodEnum<["file", "segment"]>>>;
2819
+ }, z.ZodTypeAny, "passthrough">>>, "many">>;
2820
+ video_info: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2821
+ path: z.ZodString;
2822
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2823
+ valueText: z.ZodOptional<z.ZodString>;
2824
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2825
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2826
+ path: z.ZodString;
2827
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2828
+ valueText: z.ZodOptional<z.ZodString>;
2829
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2830
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2831
+ path: z.ZodString;
2832
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2833
+ valueText: z.ZodOptional<z.ZodString>;
2834
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2835
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2836
+ path: z.ZodOptional<z.ZodEnum<["duration_seconds", "has_audio"]>>;
2837
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2838
+ path: z.ZodOptional<z.ZodEnum<["duration_seconds", "has_audio"]>>;
2839
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2840
+ path: z.ZodOptional<z.ZodEnum<["duration_seconds", "has_audio"]>>;
2841
+ }, z.ZodTypeAny, "passthrough">>>, "many">>;
2842
+ file: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2843
+ path: z.ZodString;
2844
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2845
+ valueText: z.ZodOptional<z.ZodString>;
2846
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2847
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2848
+ path: z.ZodString;
2849
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2850
+ valueText: z.ZodOptional<z.ZodString>;
2851
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2852
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2853
+ path: z.ZodString;
2854
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2855
+ valueText: z.ZodOptional<z.ZodString>;
2856
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2857
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2858
+ path: z.ZodOptional<z.ZodEnum<["bytes", "filename", "uri", "created_at", "id"]>>;
2859
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2860
+ path: z.ZodOptional<z.ZodEnum<["bytes", "filename", "uri", "created_at", "id"]>>;
2861
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2862
+ path: z.ZodOptional<z.ZodEnum<["bytes", "filename", "uri", "created_at", "id"]>>;
2863
+ }, z.ZodTypeAny, "passthrough">>>, "many">>;
2864
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2865
+ metadata: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2866
+ path: z.ZodString;
2867
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2868
+ valueText: z.ZodOptional<z.ZodString>;
2869
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2870
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2871
+ path: z.ZodString;
2872
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2873
+ valueText: z.ZodOptional<z.ZodString>;
2874
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2875
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2876
+ path: z.ZodString;
2877
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2878
+ valueText: z.ZodOptional<z.ZodString>;
2879
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2880
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2881
+ scope: z.ZodOptional<z.ZodDefault<z.ZodEnum<["file", "segment"]>>>;
2882
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2883
+ scope: z.ZodOptional<z.ZodDefault<z.ZodEnum<["file", "segment"]>>>;
2884
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2885
+ scope: z.ZodOptional<z.ZodDefault<z.ZodEnum<["file", "segment"]>>>;
2886
+ }, z.ZodTypeAny, "passthrough">>>, "many">>;
2887
+ video_info: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2888
+ path: z.ZodString;
2889
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2890
+ valueText: z.ZodOptional<z.ZodString>;
2891
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2892
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2893
+ path: z.ZodString;
2894
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2895
+ valueText: z.ZodOptional<z.ZodString>;
2896
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2897
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2898
+ path: z.ZodString;
2899
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2900
+ valueText: z.ZodOptional<z.ZodString>;
2901
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2902
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2903
+ path: z.ZodOptional<z.ZodEnum<["duration_seconds", "has_audio"]>>;
2904
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2905
+ path: z.ZodOptional<z.ZodEnum<["duration_seconds", "has_audio"]>>;
2906
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2907
+ path: z.ZodOptional<z.ZodEnum<["duration_seconds", "has_audio"]>>;
2908
+ }, z.ZodTypeAny, "passthrough">>>, "many">>;
2909
+ file: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2910
+ path: z.ZodString;
2911
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2912
+ valueText: z.ZodOptional<z.ZodString>;
2913
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2914
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2915
+ path: z.ZodString;
2916
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2917
+ valueText: z.ZodOptional<z.ZodString>;
2918
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2919
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2920
+ path: z.ZodString;
2921
+ operator: z.ZodEnum<["NotEqual", "Equal", "LessThan", "GreaterThan", "ContainsAny", "ContainsAll", "In", "Like"]>;
2922
+ valueText: z.ZodOptional<z.ZodString>;
2923
+ valueTextArray: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2924
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2925
+ path: z.ZodOptional<z.ZodEnum<["bytes", "filename", "uri", "created_at", "id"]>>;
2926
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2927
+ path: z.ZodOptional<z.ZodEnum<["bytes", "filename", "uri", "created_at", "id"]>>;
2928
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2929
+ path: z.ZodOptional<z.ZodEnum<["bytes", "filename", "uri", "created_at", "id"]>>;
2930
+ }, z.ZodTypeAny, "passthrough">>>, "many">>;
2931
+ }, z.ZodTypeAny, "passthrough">>;
2697
2932
  export declare const FrameExtractionUniformConfig: z.ZodObject<{
2698
2933
  frames_per_second: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2699
2934
  max_width: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FaceBoundingBox = exports.FrameExtraction = exports.FrameExtractionConfig = exports.FrameExtractionThumbnailsConfig = exports.FrameExtractionUniformConfig = exports.DescribeOutput = exports.SpeechOutputPart = exports.DescribeOutputPart = exports.ThumbnailList = exports.Thumbnail = exports.ThumbnailType = exports.Segmentation = exports.Shot = exports.File = exports.FileSegmentationConfig = exports.SegmentationConfig = exports.KeyframeConfig = exports.SegmentationManualConfig = exports.SegmentationShotDetectorConfig = exports.SegmentationUniformConfig = exports.ThumbnailsConfig = exports.ListVideoTagsResponse = exports.PaginationResponse = exports.VideoTag = void 0;
3
+ exports.FaceBoundingBox = exports.FrameExtraction = exports.FrameExtractionConfig = exports.FrameExtractionThumbnailsConfig = exports.FrameExtractionUniformConfig = exports.SearchFilter = exports.SearchFilterCriteria = exports.DescribeOutput = exports.SpeechOutputPart = exports.DescribeOutputPart = exports.ThumbnailList = exports.Thumbnail = exports.ThumbnailType = exports.Segmentation = exports.Shot = exports.File = exports.FileSegmentationConfig = exports.SegmentationConfig = exports.KeyframeConfig = exports.SegmentationManualConfig = exports.SegmentationShotDetectorConfig = exports.SegmentationUniformConfig = exports.ThumbnailsConfig = exports.ListVideoTagsResponse = exports.PaginationResponse = exports.VideoTag = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.VideoTag = zod_1.z
6
6
  .object({
@@ -225,6 +225,47 @@ exports.DescribeOutput = zod_1.z
225
225
  .partial()
226
226
  .strict()
227
227
  .passthrough();
228
+ exports.SearchFilterCriteria = zod_1.z
229
+ .object({
230
+ path: zod_1.z.string(),
231
+ operator: zod_1.z.enum([
232
+ 'NotEqual',
233
+ 'Equal',
234
+ 'LessThan',
235
+ 'GreaterThan',
236
+ 'ContainsAny',
237
+ 'ContainsAll',
238
+ 'In',
239
+ 'Like',
240
+ ]),
241
+ valueText: zod_1.z.string().optional(),
242
+ valueTextArray: zod_1.z.array(zod_1.z.string()).optional(),
243
+ })
244
+ .strict()
245
+ .passthrough();
246
+ exports.SearchFilter = zod_1.z
247
+ .object({
248
+ metadata: zod_1.z.array(exports.SearchFilterCriteria.and(zod_1.z
249
+ .object({ scope: zod_1.z.enum(['file', 'segment']).default('file') })
250
+ .partial()
251
+ .strict()
252
+ .passthrough())),
253
+ video_info: zod_1.z.array(exports.SearchFilterCriteria.and(zod_1.z
254
+ .object({ path: zod_1.z.enum(['duration_seconds', 'has_audio']) })
255
+ .partial()
256
+ .strict()
257
+ .passthrough())),
258
+ file: zod_1.z.array(exports.SearchFilterCriteria.and(zod_1.z
259
+ .object({
260
+ path: zod_1.z.enum(['bytes', 'filename', 'uri', 'created_at', 'id']),
261
+ })
262
+ .partial()
263
+ .strict()
264
+ .passthrough())),
265
+ })
266
+ .partial()
267
+ .strict()
268
+ .passthrough();
228
269
  exports.FrameExtractionUniformConfig = zod_1.z
229
270
  .object({
230
271
  frames_per_second: zod_1.z.number().gte(0.1).lte(30).default(1),
@@ -12,3 +12,4 @@ export { FramesApi } from './Frames';
12
12
  export { SegmentsApi } from './Segments';
13
13
  export { Face_MatchApi } from './Face_Match';
14
14
  export { Face_DetectionApi } from './Face_Detection';
15
+ export { ShareApi } from './Share';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Face_DetectionApi = exports.Face_MatchApi = exports.SegmentsApi = exports.FramesApi = exports.SegmentationsApi = exports.SearchApi = exports.WebhooksApi = exports.DescribeApi = exports.TranscribeApi = exports.ChatApi = exports.CollectionsApi = exports.FilesApi = exports.ExtractApi = exports.TagsApi = void 0;
3
+ exports.ShareApi = exports.Face_DetectionApi = exports.Face_MatchApi = exports.SegmentsApi = exports.FramesApi = exports.SegmentationsApi = exports.SearchApi = exports.WebhooksApi = exports.DescribeApi = exports.TranscribeApi = exports.ChatApi = exports.CollectionsApi = exports.FilesApi = exports.ExtractApi = exports.TagsApi = void 0;
4
4
  var Tags_1 = require("./Tags");
5
5
  Object.defineProperty(exports, "TagsApi", { enumerable: true, get: function () { return Tags_1.TagsApi; } });
6
6
  var Extract_1 = require("./Extract");
@@ -29,3 +29,5 @@ var Face_Match_1 = require("./Face_Match");
29
29
  Object.defineProperty(exports, "Face_MatchApi", { enumerable: true, get: function () { return Face_Match_1.Face_MatchApi; } });
30
30
  var Face_Detection_1 = require("./Face_Detection");
31
31
  Object.defineProperty(exports, "Face_DetectionApi", { enumerable: true, get: function () { return Face_Detection_1.Face_DetectionApi; } });
32
+ var Share_1 = require("./Share");
33
+ Object.defineProperty(exports, "ShareApi", { enumerable: true, get: function () { return Share_1.ShareApi; } });
@@ -7,7 +7,7 @@ export declare class EnhancedChatApi {
7
7
  createCompletion({ model, ...params }: z.infer<typeof chatSchemas.ChatCompletionRequest>): Promise<Partial<{
8
8
  id: string;
9
9
  object: string;
10
- created: number;
10
+ created_at: number;
11
11
  model: string;
12
12
  choices: Array<Partial<{
13
13
  index: number;
@@ -29,6 +29,16 @@ export declare class EnhancedChatApi {
29
29
  }>>;
30
30
  }> & import("../../generated/common").DescribeOutput>;
31
31
  }>>;
32
+ payload: Partial<{
33
+ messages: Array<{
34
+ role: "system" | "user" | "assistant";
35
+ content: string;
36
+ name?: string | undefined;
37
+ }>;
38
+ temperature: number;
39
+ filter: import("../../generated/common").SearchFilter;
40
+ collections: Array<string>;
41
+ }>;
32
42
  usage: Partial<{
33
43
  prompt_tokens: number;
34
44
  completion_tokens: number;
@@ -38,7 +48,7 @@ export declare class EnhancedChatApi {
38
48
  getCompletion(id: string): Promise<Partial<{
39
49
  id: string;
40
50
  object: string;
41
- created: number;
51
+ created_at: number;
42
52
  model: string;
43
53
  choices: Array<Partial<{
44
54
  index: number;
@@ -60,6 +70,16 @@ export declare class EnhancedChatApi {
60
70
  }>>;
61
71
  }> & import("../../generated/common").DescribeOutput>;
62
72
  }>>;
73
+ payload: Partial<{
74
+ messages: Array<{
75
+ role: "system" | "user" | "assistant";
76
+ content: string;
77
+ name?: string | undefined;
78
+ }>;
79
+ temperature: number;
80
+ filter: import("../../generated/common").SearchFilter;
81
+ collections: Array<string>;
82
+ }>;
63
83
  usage: Partial<{
64
84
  prompt_tokens: number;
65
85
  completion_tokens: number;
@@ -75,7 +95,7 @@ export declare class EnhancedChatApi {
75
95
  object: "list";
76
96
  data: Array<{
77
97
  id: string;
78
- created: number;
98
+ created_at: number;
79
99
  object: "chat.completion";
80
100
  model: string;
81
101
  usage: Partial<{
@@ -91,6 +111,16 @@ export declare class EnhancedChatApi {
91
111
  name?: string | undefined;
92
112
  };
93
113
  }>;
114
+ payload: Partial<{
115
+ messages: Array<{
116
+ role: "system" | "user" | "assistant";
117
+ content: string;
118
+ name?: string | undefined;
119
+ }>;
120
+ temperature: number;
121
+ filter: import("../../generated/common").SearchFilter;
122
+ collections: Array<string>;
123
+ }>;
94
124
  }>;
95
125
  total: number;
96
126
  limit: number;