@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.
@@ -1,5 +1,6 @@
1
1
  import { type ZodiosOptions } from '@zodios/core';
2
2
  import { z } from 'zod';
3
+ import { SearchFilter } from './common';
3
4
  type SearchResponse = {
4
5
  id: string;
5
6
  object: 'search';
@@ -95,23 +96,6 @@ type FaceGroupResult = {
95
96
  item_count: number;
96
97
  best_score: number;
97
98
  };
98
- type SearchFilter = Partial<{
99
- metadata: Array<SearchFilterCriteria & Partial<{
100
- scope: 'file' | 'segment';
101
- }>>;
102
- video_info: Array<SearchFilterCriteria & Partial<{
103
- path: 'duration_seconds' | 'has_audio';
104
- }>>;
105
- file: Array<SearchFilterCriteria & Partial<{
106
- path: 'bytes' | 'filename' | 'uri' | 'created_at' | 'id';
107
- }>>;
108
- }>;
109
- type SearchFilterCriteria = {
110
- path: string;
111
- operator: 'NotEqual' | 'Equal' | 'LessThan' | 'GreaterThan' | 'ContainsAny' | 'ContainsAll' | 'In' | 'Like';
112
- valueText?: string | undefined;
113
- valueTextArray?: Array<string> | undefined;
114
- };
115
99
  type SearchResponseList = {
116
100
  object: 'list';
117
101
  data: Array<{
@@ -129,8 +113,6 @@ type SearchResponseList = {
129
113
  limit: number;
130
114
  offset: number;
131
115
  };
132
- declare const SearchFilterCriteria: z.ZodType<SearchFilterCriteria>;
133
- declare const SearchFilter: z.ZodType<SearchFilter>;
134
116
  declare const SearchModalities: z.ZodArray<z.ZodEnum<["general_content", "speech_lexical", "ocr_lexical", "tag_semantic", "tag_lexical"]>, "many">;
135
117
  declare const SearchResponseList: z.ZodType<SearchResponseList>;
136
118
  declare const SearchTagResponse: z.ZodType<SearchTagResponse>;
@@ -141,28 +123,6 @@ declare const SegmentGroupResult: z.ZodType<SegmentGroupResult>;
141
123
  declare const FaceGroupResult: z.ZodType<FaceGroupResult>;
142
124
  declare const SearchResponse: z.ZodType<SearchResponse>;
143
125
  export declare const schemas: {
144
- SearchFilterCriteria: z.ZodType<SearchFilterCriteria, z.ZodTypeDef, SearchFilterCriteria>;
145
- SearchFilter: z.ZodType<Partial<{
146
- metadata: Array<SearchFilterCriteria & Partial<{
147
- scope: "file" | "segment";
148
- }>>;
149
- video_info: Array<SearchFilterCriteria & Partial<{
150
- path: "duration_seconds" | "has_audio";
151
- }>>;
152
- file: Array<SearchFilterCriteria & Partial<{
153
- path: "bytes" | "filename" | "uri" | "created_at" | "id";
154
- }>>;
155
- }>, z.ZodTypeDef, Partial<{
156
- metadata: Array<SearchFilterCriteria & Partial<{
157
- scope: "file" | "segment";
158
- }>>;
159
- video_info: Array<SearchFilterCriteria & Partial<{
160
- path: "duration_seconds" | "has_audio";
161
- }>>;
162
- file: Array<SearchFilterCriteria & Partial<{
163
- path: "bytes" | "filename" | "uri" | "created_at" | "id";
164
- }>>;
165
- }>>;
166
126
  SearchModalities: z.ZodArray<z.ZodEnum<["general_content", "speech_lexical", "ocr_lexical", "tag_semantic", "tag_lexical"]>, "many">;
167
127
  SearchRequest: z.ZodType<Partial<{
168
128
  scope: "file" | "segment" | "face";
@@ -4,47 +4,7 @@ exports.SearchApi = exports.schemas = void 0;
4
4
  exports.createApiClient = createApiClient;
5
5
  const core_1 = require("@zodios/core");
6
6
  const zod_1 = require("zod");
7
- const SearchFilterCriteria = zod_1.z
8
- .object({
9
- path: zod_1.z.string(),
10
- operator: zod_1.z.enum([
11
- 'NotEqual',
12
- 'Equal',
13
- 'LessThan',
14
- 'GreaterThan',
15
- 'ContainsAny',
16
- 'ContainsAll',
17
- 'In',
18
- 'Like',
19
- ]),
20
- valueText: zod_1.z.string().optional(),
21
- valueTextArray: zod_1.z.array(zod_1.z.string()).optional(),
22
- })
23
- .strict()
24
- .passthrough();
25
- const SearchFilter = zod_1.z
26
- .object({
27
- metadata: zod_1.z.array(SearchFilterCriteria.and(zod_1.z
28
- .object({ scope: zod_1.z.enum(['file', 'segment']).default('file') })
29
- .partial()
30
- .strict()
31
- .passthrough())),
32
- video_info: zod_1.z.array(SearchFilterCriteria.and(zod_1.z
33
- .object({ path: zod_1.z.enum(['duration_seconds', 'has_audio']) })
34
- .partial()
35
- .strict()
36
- .passthrough())),
37
- file: zod_1.z.array(SearchFilterCriteria.and(zod_1.z
38
- .object({
39
- path: zod_1.z.enum(['bytes', 'filename', 'uri', 'created_at', 'id']),
40
- })
41
- .partial()
42
- .strict()
43
- .passthrough())),
44
- })
45
- .partial()
46
- .strict()
47
- .passthrough();
7
+ const common_1 = require("./common");
48
8
  const SearchModalities = zod_1.z.array(zod_1.z.enum([
49
9
  'general_content',
50
10
  'speech_lexical',
@@ -63,7 +23,7 @@ const SearchRequest = zod_1.z
63
23
  .strict()
64
24
  .passthrough(),
65
25
  limit: zod_1.z.number().int().gte(1).default(10),
66
- filter: SearchFilter,
26
+ filter: common_1.SearchFilter,
67
27
  threshold: zod_1.z.number(),
68
28
  group_by_key: zod_1.z.literal('file'),
69
29
  sort_by: zod_1.z.enum(['score', 'item_count']).default('score'),
@@ -243,8 +203,6 @@ const SearchResponse = zod_1.z
243
203
  .strict()
244
204
  .passthrough();
245
205
  exports.schemas = {
246
- SearchFilterCriteria,
247
- SearchFilter,
248
206
  SearchModalities,
249
207
  SearchRequest,
250
208
  SearchResponseList,
@@ -0,0 +1,464 @@
1
+ import { type ZodiosOptions } from '@zodios/core';
2
+ import { z } from 'zod';
3
+ type ShareableAsset = {
4
+ id: string;
5
+ file_id: string;
6
+ file_segment_id?: string | undefined;
7
+ title?: string | undefined;
8
+ description?: string | undefined;
9
+ metadata?: {} | undefined;
10
+ preview_url?: string | undefined;
11
+ media_download_url?: string | undefined;
12
+ media_download_expires_at?: (number | null) | undefined;
13
+ share_url?: string | undefined;
14
+ status?: ('pending' | 'processing' | 'completed' | 'failed') | undefined;
15
+ asset_type?: ('file' | 'file_segment') | undefined;
16
+ created_at: number;
17
+ object?: 'share' | undefined;
18
+ };
19
+ type ShareableAssetListResponse = {
20
+ object: 'list';
21
+ data: Array<ShareableAsset>;
22
+ total: number;
23
+ limit: number;
24
+ offset: number;
25
+ };
26
+ declare const ShareableAsset: z.ZodType<ShareableAsset>;
27
+ declare const ShareableAssetListResponse: z.ZodType<ShareableAssetListResponse>;
28
+ export declare const schemas: {
29
+ ShareableAsset: z.ZodType<ShareableAsset, z.ZodTypeDef, ShareableAsset>;
30
+ ShareableAssetListResponse: z.ZodType<ShareableAssetListResponse, z.ZodTypeDef, ShareableAssetListResponse>;
31
+ CreateShareableAssetRequest: z.ZodObject<{
32
+ file_id: z.ZodString;
33
+ file_segment_id: z.ZodOptional<z.ZodString>;
34
+ title: z.ZodOptional<z.ZodString>;
35
+ description: z.ZodOptional<z.ZodString>;
36
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
37
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
38
+ file_id: z.ZodString;
39
+ file_segment_id: z.ZodOptional<z.ZodString>;
40
+ title: z.ZodOptional<z.ZodString>;
41
+ description: z.ZodOptional<z.ZodString>;
42
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
43
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
44
+ file_id: z.ZodString;
45
+ file_segment_id: z.ZodOptional<z.ZodString>;
46
+ title: z.ZodOptional<z.ZodString>;
47
+ description: z.ZodOptional<z.ZodString>;
48
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
49
+ }, z.ZodTypeAny, "passthrough">>;
50
+ UpdateShareableAssetRequest: z.ZodObject<{
51
+ title: z.ZodOptional<z.ZodString>;
52
+ description: z.ZodOptional<z.ZodString>;
53
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
54
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
55
+ title: z.ZodOptional<z.ZodString>;
56
+ description: z.ZodOptional<z.ZodString>;
57
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
58
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
59
+ title: z.ZodOptional<z.ZodString>;
60
+ description: z.ZodOptional<z.ZodString>;
61
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
62
+ }, z.ZodTypeAny, "passthrough">>;
63
+ };
64
+ export declare const ShareApi: import("@zodios/core").ZodiosInstance<[{
65
+ method: "post";
66
+ path: "/share";
67
+ alias: "createShareableAsset";
68
+ description: "Create a publicly available shareable asset";
69
+ requestFormat: "json";
70
+ parameters: [{
71
+ name: "body";
72
+ description: string;
73
+ type: "Body";
74
+ schema: z.ZodObject<{
75
+ file_id: z.ZodString;
76
+ file_segment_id: z.ZodOptional<z.ZodString>;
77
+ title: z.ZodOptional<z.ZodString>;
78
+ description: z.ZodOptional<z.ZodString>;
79
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
80
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
81
+ file_id: z.ZodString;
82
+ file_segment_id: z.ZodOptional<z.ZodString>;
83
+ title: z.ZodOptional<z.ZodString>;
84
+ description: z.ZodOptional<z.ZodString>;
85
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
86
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
87
+ file_id: z.ZodString;
88
+ file_segment_id: z.ZodOptional<z.ZodString>;
89
+ title: z.ZodOptional<z.ZodString>;
90
+ description: z.ZodOptional<z.ZodString>;
91
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
92
+ }, z.ZodTypeAny, "passthrough">>;
93
+ }];
94
+ response: z.ZodType<ShareableAsset, z.ZodTypeDef, ShareableAsset>;
95
+ errors: [{
96
+ status: 400;
97
+ description: string;
98
+ schema: z.ZodObject<{
99
+ error: z.ZodString;
100
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
101
+ error: z.ZodString;
102
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
103
+ error: z.ZodString;
104
+ }, z.ZodTypeAny, "passthrough">>;
105
+ }, {
106
+ status: 404;
107
+ description: string;
108
+ schema: z.ZodObject<{
109
+ error: z.ZodString;
110
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
111
+ error: z.ZodString;
112
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
113
+ error: z.ZodString;
114
+ }, z.ZodTypeAny, "passthrough">>;
115
+ }, {
116
+ status: 409;
117
+ description: string;
118
+ schema: z.ZodObject<{
119
+ error: z.ZodString;
120
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
121
+ error: z.ZodString;
122
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
123
+ error: z.ZodString;
124
+ }, z.ZodTypeAny, "passthrough">>;
125
+ }, {
126
+ status: 500;
127
+ description: string;
128
+ schema: z.ZodObject<{
129
+ error: z.ZodString;
130
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
131
+ error: z.ZodString;
132
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
133
+ error: z.ZodString;
134
+ }, z.ZodTypeAny, "passthrough">>;
135
+ }];
136
+ }, {
137
+ method: "get";
138
+ path: "/share";
139
+ alias: "listShareableAssets";
140
+ description: "List shareable assets";
141
+ requestFormat: "json";
142
+ parameters: [{
143
+ name: "file_id";
144
+ type: "Query";
145
+ schema: z.ZodOptional<z.ZodString>;
146
+ }, {
147
+ name: "file_segment_id";
148
+ type: "Query";
149
+ schema: z.ZodOptional<z.ZodString>;
150
+ }, {
151
+ name: "limit";
152
+ type: "Query";
153
+ schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
154
+ }, {
155
+ name: "offset";
156
+ type: "Query";
157
+ schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
158
+ }, {
159
+ name: "created_before";
160
+ type: "Query";
161
+ schema: z.ZodOptional<z.ZodString>;
162
+ }, {
163
+ name: "created_after";
164
+ type: "Query";
165
+ schema: z.ZodOptional<z.ZodString>;
166
+ }];
167
+ response: z.ZodType<ShareableAssetListResponse, z.ZodTypeDef, ShareableAssetListResponse>;
168
+ }, {
169
+ method: "get";
170
+ path: "/share/:id";
171
+ alias: "getShareableAsset";
172
+ description: "Get a shareable asset";
173
+ requestFormat: "json";
174
+ parameters: [{
175
+ name: "id";
176
+ type: "Path";
177
+ schema: z.ZodString;
178
+ }];
179
+ response: z.ZodType<ShareableAsset, z.ZodTypeDef, ShareableAsset>;
180
+ errors: [{
181
+ status: 404;
182
+ description: string;
183
+ schema: z.ZodObject<{
184
+ error: z.ZodString;
185
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
186
+ error: z.ZodString;
187
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
188
+ error: z.ZodString;
189
+ }, z.ZodTypeAny, "passthrough">>;
190
+ }];
191
+ }, {
192
+ method: "delete";
193
+ path: "/share/:id";
194
+ alias: "deleteShareableAsset";
195
+ description: "Delete a shareable asset";
196
+ requestFormat: "json";
197
+ parameters: [{
198
+ name: "id";
199
+ type: "Path";
200
+ schema: z.ZodString;
201
+ }];
202
+ response: z.ZodObject<{
203
+ id: z.ZodString;
204
+ object: z.ZodLiteral<"share">;
205
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
206
+ id: z.ZodString;
207
+ object: z.ZodLiteral<"share">;
208
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
209
+ id: z.ZodString;
210
+ object: z.ZodLiteral<"share">;
211
+ }, z.ZodTypeAny, "passthrough">>;
212
+ errors: [{
213
+ status: 404;
214
+ description: string;
215
+ schema: z.ZodObject<{
216
+ error: z.ZodString;
217
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
218
+ error: z.ZodString;
219
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
220
+ error: z.ZodString;
221
+ }, z.ZodTypeAny, "passthrough">>;
222
+ }];
223
+ }, {
224
+ method: "put";
225
+ path: "/share/:id";
226
+ alias: "updateShareableAsset";
227
+ description: "Update a shareable asset";
228
+ requestFormat: "json";
229
+ parameters: [{
230
+ name: "body";
231
+ description: string;
232
+ type: "Body";
233
+ schema: z.ZodObject<{
234
+ title: z.ZodOptional<z.ZodString>;
235
+ description: z.ZodOptional<z.ZodString>;
236
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
237
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
238
+ title: z.ZodOptional<z.ZodString>;
239
+ description: z.ZodOptional<z.ZodString>;
240
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
241
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
242
+ title: z.ZodOptional<z.ZodString>;
243
+ description: z.ZodOptional<z.ZodString>;
244
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
245
+ }, z.ZodTypeAny, "passthrough">>;
246
+ }, {
247
+ name: "id";
248
+ type: "Path";
249
+ schema: z.ZodString;
250
+ }];
251
+ response: z.ZodType<ShareableAsset, z.ZodTypeDef, ShareableAsset>;
252
+ errors: [{
253
+ status: 404;
254
+ description: string;
255
+ schema: z.ZodObject<{
256
+ error: z.ZodString;
257
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
258
+ error: z.ZodString;
259
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
260
+ error: z.ZodString;
261
+ }, z.ZodTypeAny, "passthrough">>;
262
+ }];
263
+ }]>;
264
+ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions): import("@zodios/core").ZodiosInstance<[{
265
+ method: "post";
266
+ path: "/share";
267
+ alias: "createShareableAsset";
268
+ description: "Create a publicly available shareable asset";
269
+ requestFormat: "json";
270
+ parameters: [{
271
+ name: "body";
272
+ description: string;
273
+ type: "Body";
274
+ schema: z.ZodObject<{
275
+ file_id: z.ZodString;
276
+ file_segment_id: z.ZodOptional<z.ZodString>;
277
+ title: z.ZodOptional<z.ZodString>;
278
+ description: z.ZodOptional<z.ZodString>;
279
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
280
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
281
+ file_id: z.ZodString;
282
+ file_segment_id: z.ZodOptional<z.ZodString>;
283
+ title: z.ZodOptional<z.ZodString>;
284
+ description: z.ZodOptional<z.ZodString>;
285
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
286
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
287
+ file_id: z.ZodString;
288
+ file_segment_id: z.ZodOptional<z.ZodString>;
289
+ title: z.ZodOptional<z.ZodString>;
290
+ description: z.ZodOptional<z.ZodString>;
291
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
292
+ }, z.ZodTypeAny, "passthrough">>;
293
+ }];
294
+ response: z.ZodType<ShareableAsset, z.ZodTypeDef, ShareableAsset>;
295
+ errors: [{
296
+ status: 400;
297
+ description: string;
298
+ schema: z.ZodObject<{
299
+ error: z.ZodString;
300
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
301
+ error: z.ZodString;
302
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
303
+ error: z.ZodString;
304
+ }, z.ZodTypeAny, "passthrough">>;
305
+ }, {
306
+ status: 404;
307
+ description: string;
308
+ schema: z.ZodObject<{
309
+ error: z.ZodString;
310
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
311
+ error: z.ZodString;
312
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
313
+ error: z.ZodString;
314
+ }, z.ZodTypeAny, "passthrough">>;
315
+ }, {
316
+ status: 409;
317
+ description: string;
318
+ schema: z.ZodObject<{
319
+ error: z.ZodString;
320
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
321
+ error: z.ZodString;
322
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
323
+ error: z.ZodString;
324
+ }, z.ZodTypeAny, "passthrough">>;
325
+ }, {
326
+ status: 500;
327
+ description: string;
328
+ schema: z.ZodObject<{
329
+ error: z.ZodString;
330
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
331
+ error: z.ZodString;
332
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
333
+ error: z.ZodString;
334
+ }, z.ZodTypeAny, "passthrough">>;
335
+ }];
336
+ }, {
337
+ method: "get";
338
+ path: "/share";
339
+ alias: "listShareableAssets";
340
+ description: "List shareable assets";
341
+ requestFormat: "json";
342
+ parameters: [{
343
+ name: "file_id";
344
+ type: "Query";
345
+ schema: z.ZodOptional<z.ZodString>;
346
+ }, {
347
+ name: "file_segment_id";
348
+ type: "Query";
349
+ schema: z.ZodOptional<z.ZodString>;
350
+ }, {
351
+ name: "limit";
352
+ type: "Query";
353
+ schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
354
+ }, {
355
+ name: "offset";
356
+ type: "Query";
357
+ schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
358
+ }, {
359
+ name: "created_before";
360
+ type: "Query";
361
+ schema: z.ZodOptional<z.ZodString>;
362
+ }, {
363
+ name: "created_after";
364
+ type: "Query";
365
+ schema: z.ZodOptional<z.ZodString>;
366
+ }];
367
+ response: z.ZodType<ShareableAssetListResponse, z.ZodTypeDef, ShareableAssetListResponse>;
368
+ }, {
369
+ method: "get";
370
+ path: "/share/:id";
371
+ alias: "getShareableAsset";
372
+ description: "Get a shareable asset";
373
+ requestFormat: "json";
374
+ parameters: [{
375
+ name: "id";
376
+ type: "Path";
377
+ schema: z.ZodString;
378
+ }];
379
+ response: z.ZodType<ShareableAsset, z.ZodTypeDef, ShareableAsset>;
380
+ errors: [{
381
+ status: 404;
382
+ description: string;
383
+ schema: z.ZodObject<{
384
+ error: z.ZodString;
385
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
386
+ error: z.ZodString;
387
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
388
+ error: z.ZodString;
389
+ }, z.ZodTypeAny, "passthrough">>;
390
+ }];
391
+ }, {
392
+ method: "delete";
393
+ path: "/share/:id";
394
+ alias: "deleteShareableAsset";
395
+ description: "Delete a shareable asset";
396
+ requestFormat: "json";
397
+ parameters: [{
398
+ name: "id";
399
+ type: "Path";
400
+ schema: z.ZodString;
401
+ }];
402
+ response: z.ZodObject<{
403
+ id: z.ZodString;
404
+ object: z.ZodLiteral<"share">;
405
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
406
+ id: z.ZodString;
407
+ object: z.ZodLiteral<"share">;
408
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
409
+ id: z.ZodString;
410
+ object: z.ZodLiteral<"share">;
411
+ }, z.ZodTypeAny, "passthrough">>;
412
+ errors: [{
413
+ status: 404;
414
+ description: string;
415
+ schema: z.ZodObject<{
416
+ error: z.ZodString;
417
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
418
+ error: z.ZodString;
419
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
420
+ error: z.ZodString;
421
+ }, z.ZodTypeAny, "passthrough">>;
422
+ }];
423
+ }, {
424
+ method: "put";
425
+ path: "/share/:id";
426
+ alias: "updateShareableAsset";
427
+ description: "Update a shareable asset";
428
+ requestFormat: "json";
429
+ parameters: [{
430
+ name: "body";
431
+ description: string;
432
+ type: "Body";
433
+ schema: z.ZodObject<{
434
+ title: z.ZodOptional<z.ZodString>;
435
+ description: z.ZodOptional<z.ZodString>;
436
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
437
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
438
+ title: z.ZodOptional<z.ZodString>;
439
+ description: z.ZodOptional<z.ZodString>;
440
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
441
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
442
+ title: z.ZodOptional<z.ZodString>;
443
+ description: z.ZodOptional<z.ZodString>;
444
+ metadata: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
445
+ }, z.ZodTypeAny, "passthrough">>;
446
+ }, {
447
+ name: "id";
448
+ type: "Path";
449
+ schema: z.ZodString;
450
+ }];
451
+ response: z.ZodType<ShareableAsset, z.ZodTypeDef, ShareableAsset>;
452
+ errors: [{
453
+ status: 404;
454
+ description: string;
455
+ schema: z.ZodObject<{
456
+ error: z.ZodString;
457
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
458
+ error: z.ZodString;
459
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
460
+ error: z.ZodString;
461
+ }, z.ZodTypeAny, "passthrough">>;
462
+ }];
463
+ }]>;
464
+ export {};