@ourofoundation/ouro-js 1.0.2 → 1.0.4

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.
@@ -40,7 +40,6 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
40
40
  org_id: z.ZodString;
41
41
  organization: z.ZodOptional<z.ZodObject<{
42
42
  id: z.ZodOptional<z.ZodString>;
43
- owner_id: z.ZodOptional<z.ZodString>;
44
43
  name: z.ZodOptional<z.ZodString>;
45
44
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
46
45
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -60,7 +59,6 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
60
59
  name?: string | undefined;
61
60
  size?: string | undefined;
62
61
  email?: string | null | undefined;
63
- owner_id?: string | undefined;
64
62
  avatar_path?: string | null | undefined;
65
63
  mission?: string | null | undefined;
66
64
  domain?: string | null | undefined;
@@ -73,7 +71,6 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
73
71
  name?: string | undefined;
74
72
  size?: string | undefined;
75
73
  email?: string | null | undefined;
76
- owner_id?: string | undefined;
77
74
  avatar_path?: string | null | undefined;
78
75
  mission?: string | null | undefined;
79
76
  domain?: string | null | undefined;
@@ -109,7 +106,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
109
106
  default_role?: "none" | "admin" | "read" | "write" | undefined;
110
107
  }>>;
111
108
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
112
- asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
109
+ asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
113
110
  name: z.ZodString;
114
111
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
115
112
  slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -124,46 +121,61 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
124
121
  price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
125
122
  metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
126
123
  preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
124
+ state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
127
125
  created_at: z.ZodString;
128
126
  last_updated: z.ZodString;
129
127
  }, {
128
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
130
129
  metadata: z.ZodObject<{
131
- eTag: z.ZodString;
130
+ id: z.ZodString;
131
+ path: z.ZodString;
132
+ bucket: z.ZodEnum<["public-files", "files"]>;
133
+ name: z.ZodString;
134
+ type: z.ZodString;
132
135
  size: z.ZodNumber;
133
- mimetype: z.ZodString;
134
- cacheControl: z.ZodString;
135
- lastModified: z.ZodString;
136
+ width: z.ZodOptional<z.ZodNumber>;
137
+ height: z.ZodOptional<z.ZodNumber>;
136
138
  }, "strip", z.ZodTypeAny, {
137
- lastModified: string;
139
+ type: string;
140
+ id: string;
141
+ name: string;
142
+ path: string;
138
143
  size: number;
139
- eTag: string;
140
- mimetype: string;
141
- cacheControl: string;
144
+ bucket: "public-files" | "files";
145
+ height?: number | undefined;
146
+ width?: number | undefined;
142
147
  }, {
143
- lastModified: string;
148
+ type: string;
149
+ id: string;
150
+ name: string;
151
+ path: string;
144
152
  size: number;
145
- eTag: string;
146
- mimetype: string;
147
- cacheControl: string;
153
+ bucket: "public-files" | "files";
154
+ height?: number | undefined;
155
+ width?: number | undefined;
148
156
  }>;
149
157
  }>, "strip", z.ZodTypeAny, {
150
158
  id: string;
151
159
  name: string;
152
160
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
153
161
  metadata: {
154
- lastModified: string;
162
+ type: string;
163
+ id: string;
164
+ name: string;
165
+ path: string;
155
166
  size: number;
156
- eTag: string;
157
- mimetype: string;
158
- cacheControl: string;
167
+ bucket: "public-files" | "files";
168
+ height?: number | undefined;
169
+ width?: number | undefined;
159
170
  };
160
171
  user_id: string;
161
172
  org_id: string;
162
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
173
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
163
174
  created_at: string;
164
175
  last_updated: string;
165
176
  team_id: string;
166
177
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
178
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
167
179
  description?: string | null | undefined;
168
180
  user?: {
169
181
  id?: string | undefined;
@@ -181,7 +193,6 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
181
193
  name?: string | undefined;
182
194
  size?: string | undefined;
183
195
  email?: string | null | undefined;
184
- owner_id?: string | undefined;
185
196
  avatar_path?: string | null | undefined;
186
197
  mission?: string | null | undefined;
187
198
  domain?: string | null | undefined;
@@ -214,19 +225,23 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
214
225
  name: string;
215
226
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
216
227
  metadata: {
217
- lastModified: string;
228
+ type: string;
229
+ id: string;
230
+ name: string;
231
+ path: string;
218
232
  size: number;
219
- eTag: string;
220
- mimetype: string;
221
- cacheControl: string;
233
+ bucket: "public-files" | "files";
234
+ height?: number | undefined;
235
+ width?: number | undefined;
222
236
  };
223
237
  user_id: string;
224
238
  org_id: string;
225
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
239
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
226
240
  created_at: string;
227
241
  last_updated: string;
228
242
  team_id: string;
229
243
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
244
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
230
245
  description?: string | null | undefined;
231
246
  user?: {
232
247
  id?: string | undefined;
@@ -244,7 +259,6 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
244
259
  name?: string | undefined;
245
260
  size?: string | undefined;
246
261
  email?: string | null | undefined;
247
- owner_id?: string | undefined;
248
262
  avatar_path?: string | null | undefined;
249
263
  mission?: string | null | undefined;
250
264
  domain?: string | null | undefined;
@@ -273,5 +287,841 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
273
287
  price_id?: string | null | undefined;
274
288
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
275
289
  }>;
290
+ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
291
+ id: z.ZodOptional<z.ZodString>;
292
+ user_id: z.ZodOptional<z.ZodString>;
293
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
294
+ id: z.ZodOptional<z.ZodString>;
295
+ user_id: z.ZodOptional<z.ZodString>;
296
+ username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
297
+ avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
298
+ bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
299
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
300
+ value: z.ZodString;
301
+ }, "strip", z.ZodTypeAny, {
302
+ value: string;
303
+ }, {
304
+ value: string;
305
+ }>, "many">>>;
306
+ last_active: z.ZodOptional<z.ZodString>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ id?: string | undefined;
309
+ user_id?: string | undefined;
310
+ avatar_path?: string | null | undefined;
311
+ urls?: {
312
+ value: string;
313
+ }[] | undefined;
314
+ username?: string | null | undefined;
315
+ bio?: string | null | undefined;
316
+ last_active?: string | undefined;
317
+ }, {
318
+ id?: string | undefined;
319
+ user_id?: string | undefined;
320
+ avatar_path?: string | null | undefined;
321
+ urls?: {
322
+ value: string;
323
+ }[] | undefined;
324
+ username?: string | null | undefined;
325
+ bio?: string | null | undefined;
326
+ last_active?: string | undefined;
327
+ }>>>;
328
+ org_id: z.ZodOptional<z.ZodString>;
329
+ organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
330
+ id: z.ZodOptional<z.ZodString>;
331
+ name: z.ZodOptional<z.ZodString>;
332
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
333
+ mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
334
+ size: z.ZodOptional<z.ZodString>;
335
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
336
+ domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
337
+ urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
338
+ value: z.ZodString;
339
+ }, "strip", z.ZodTypeAny, {
340
+ value: string;
341
+ }, {
342
+ value: string;
343
+ }>, "many">>>>;
344
+ base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ id?: string | undefined;
347
+ name?: string | undefined;
348
+ size?: string | undefined;
349
+ email?: string | null | undefined;
350
+ avatar_path?: string | null | undefined;
351
+ mission?: string | null | undefined;
352
+ domain?: string | null | undefined;
353
+ urls?: {
354
+ value: string;
355
+ }[] | null | undefined;
356
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
357
+ }, {
358
+ id?: string | undefined;
359
+ name?: string | undefined;
360
+ size?: string | undefined;
361
+ email?: string | null | undefined;
362
+ avatar_path?: string | null | undefined;
363
+ mission?: string | null | undefined;
364
+ domain?: string | null | undefined;
365
+ urls?: {
366
+ value: string;
367
+ }[] | null | undefined;
368
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
369
+ }>>>;
370
+ team_id: z.ZodOptional<z.ZodString>;
371
+ team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
372
+ id: z.ZodOptional<z.ZodString>;
373
+ org_id: z.ZodOptional<z.ZodString>;
374
+ name: z.ZodOptional<z.ZodString>;
375
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
376
+ default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
377
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
378
+ created_at: z.ZodOptional<z.ZodString>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ id?: string | undefined;
381
+ name?: string | undefined;
382
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
383
+ description?: string | null | undefined;
384
+ org_id?: string | undefined;
385
+ created_at?: string | undefined;
386
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
387
+ }, {
388
+ id?: string | undefined;
389
+ name?: string | undefined;
390
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
391
+ description?: string | null | undefined;
392
+ org_id?: string | undefined;
393
+ created_at?: string | undefined;
394
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
395
+ }>>>;
396
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
397
+ asset_type: z.ZodOptional<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
398
+ name: z.ZodOptional<z.ZodString>;
399
+ name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
400
+ slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
401
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
402
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
403
+ monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
404
+ price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
405
+ unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
406
+ cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
407
+ cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
408
+ product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
409
+ price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
410
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
411
+ preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
412
+ state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
413
+ created_at: z.ZodOptional<z.ZodString>;
414
+ last_updated: z.ZodOptional<z.ZodString>;
415
+ }, "user_id">, {
416
+ id: z.ZodDefault<z.ZodString>;
417
+ team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
418
+ org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
419
+ name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
420
+ state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
421
+ visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
422
+ }>, {
423
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
424
+ state: z.ZodLiteral<"success">;
425
+ metadata: z.ZodObject<{
426
+ id: z.ZodString;
427
+ path: z.ZodString;
428
+ bucket: z.ZodEnum<["public-files", "files"]>;
429
+ name: z.ZodString;
430
+ type: z.ZodString;
431
+ size: z.ZodNumber;
432
+ width: z.ZodOptional<z.ZodNumber>;
433
+ height: z.ZodOptional<z.ZodNumber>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ type: string;
436
+ id: string;
437
+ name: string;
438
+ path: string;
439
+ size: number;
440
+ bucket: "public-files" | "files";
441
+ height?: number | undefined;
442
+ width?: number | undefined;
443
+ }, {
444
+ type: string;
445
+ id: string;
446
+ name: string;
447
+ path: string;
448
+ size: number;
449
+ bucket: "public-files" | "files";
450
+ height?: number | undefined;
451
+ width?: number | undefined;
452
+ }>;
453
+ }>, "strip", z.ZodTypeAny, {
454
+ id: string;
455
+ state: "success";
456
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
457
+ metadata: {
458
+ type: string;
459
+ id: string;
460
+ name: string;
461
+ path: string;
462
+ size: number;
463
+ bucket: "public-files" | "files";
464
+ height?: number | undefined;
465
+ width?: number | undefined;
466
+ };
467
+ org_id: string | null;
468
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
469
+ team_id: string | null;
470
+ name?: string | undefined;
471
+ description?: string | null | undefined;
472
+ user?: {
473
+ id?: string | undefined;
474
+ user_id?: string | undefined;
475
+ avatar_path?: string | null | undefined;
476
+ urls?: {
477
+ value: string;
478
+ }[] | undefined;
479
+ username?: string | null | undefined;
480
+ bio?: string | null | undefined;
481
+ last_active?: string | undefined;
482
+ } | undefined;
483
+ organization?: {
484
+ id?: string | undefined;
485
+ name?: string | undefined;
486
+ size?: string | undefined;
487
+ email?: string | null | undefined;
488
+ avatar_path?: string | null | undefined;
489
+ mission?: string | null | undefined;
490
+ domain?: string | null | undefined;
491
+ urls?: {
492
+ value: string;
493
+ }[] | null | undefined;
494
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
495
+ } | undefined;
496
+ created_at?: string | undefined;
497
+ last_updated?: string | undefined;
498
+ team?: {
499
+ id?: string | undefined;
500
+ name?: string | undefined;
501
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
502
+ description?: string | null | undefined;
503
+ org_id?: string | undefined;
504
+ created_at?: string | undefined;
505
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
506
+ } | undefined;
507
+ parent_id?: string | null | undefined;
508
+ name_url_slug?: string | null | undefined;
509
+ slug?: string | null | undefined;
510
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
511
+ price?: number | null | undefined;
512
+ unit_cost?: number | null | undefined;
513
+ cost_accounting?: "fixed" | "variable" | null | undefined;
514
+ cost_unit?: string | null | undefined;
515
+ product_id?: string | null | undefined;
516
+ price_id?: string | null | undefined;
517
+ preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
518
+ }, {
519
+ state: "success";
520
+ metadata: {
521
+ type: string;
522
+ id: string;
523
+ name: string;
524
+ path: string;
525
+ size: number;
526
+ bucket: "public-files" | "files";
527
+ height?: number | undefined;
528
+ width?: number | undefined;
529
+ };
530
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
531
+ id?: string | undefined;
532
+ name?: string | undefined;
533
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
534
+ description?: string | null | undefined;
535
+ user?: {
536
+ id?: string | undefined;
537
+ user_id?: string | undefined;
538
+ avatar_path?: string | null | undefined;
539
+ urls?: {
540
+ value: string;
541
+ }[] | undefined;
542
+ username?: string | null | undefined;
543
+ bio?: string | null | undefined;
544
+ last_active?: string | undefined;
545
+ } | undefined;
546
+ organization?: {
547
+ id?: string | undefined;
548
+ name?: string | undefined;
549
+ size?: string | undefined;
550
+ email?: string | null | undefined;
551
+ avatar_path?: string | null | undefined;
552
+ mission?: string | null | undefined;
553
+ domain?: string | null | undefined;
554
+ urls?: {
555
+ value: string;
556
+ }[] | null | undefined;
557
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
558
+ } | undefined;
559
+ org_id?: string | null | undefined;
560
+ created_at?: string | undefined;
561
+ last_updated?: string | undefined;
562
+ team_id?: string | null | undefined;
563
+ team?: {
564
+ id?: string | undefined;
565
+ name?: string | undefined;
566
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
567
+ description?: string | null | undefined;
568
+ org_id?: string | undefined;
569
+ created_at?: string | undefined;
570
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
571
+ } | undefined;
572
+ parent_id?: string | null | undefined;
573
+ name_url_slug?: string | null | undefined;
574
+ slug?: string | null | undefined;
575
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
576
+ price?: number | null | undefined;
577
+ unit_cost?: number | null | undefined;
578
+ cost_accounting?: "fixed" | "variable" | null | undefined;
579
+ cost_unit?: string | null | undefined;
580
+ product_id?: string | null | undefined;
581
+ price_id?: string | null | undefined;
582
+ preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
583
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
584
+ id: z.ZodOptional<z.ZodString>;
585
+ user_id: z.ZodOptional<z.ZodString>;
586
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
587
+ id: z.ZodOptional<z.ZodString>;
588
+ user_id: z.ZodOptional<z.ZodString>;
589
+ username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
590
+ avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
591
+ bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
592
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
593
+ value: z.ZodString;
594
+ }, "strip", z.ZodTypeAny, {
595
+ value: string;
596
+ }, {
597
+ value: string;
598
+ }>, "many">>>;
599
+ last_active: z.ZodOptional<z.ZodString>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ id?: string | undefined;
602
+ user_id?: string | undefined;
603
+ avatar_path?: string | null | undefined;
604
+ urls?: {
605
+ value: string;
606
+ }[] | undefined;
607
+ username?: string | null | undefined;
608
+ bio?: string | null | undefined;
609
+ last_active?: string | undefined;
610
+ }, {
611
+ id?: string | undefined;
612
+ user_id?: string | undefined;
613
+ avatar_path?: string | null | undefined;
614
+ urls?: {
615
+ value: string;
616
+ }[] | undefined;
617
+ username?: string | null | undefined;
618
+ bio?: string | null | undefined;
619
+ last_active?: string | undefined;
620
+ }>>>;
621
+ org_id: z.ZodOptional<z.ZodString>;
622
+ organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
623
+ id: z.ZodOptional<z.ZodString>;
624
+ name: z.ZodOptional<z.ZodString>;
625
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
626
+ mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
627
+ size: z.ZodOptional<z.ZodString>;
628
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
629
+ domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
630
+ urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
631
+ value: z.ZodString;
632
+ }, "strip", z.ZodTypeAny, {
633
+ value: string;
634
+ }, {
635
+ value: string;
636
+ }>, "many">>>>;
637
+ base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ id?: string | undefined;
640
+ name?: string | undefined;
641
+ size?: string | undefined;
642
+ email?: string | null | undefined;
643
+ avatar_path?: string | null | undefined;
644
+ mission?: string | null | undefined;
645
+ domain?: string | null | undefined;
646
+ urls?: {
647
+ value: string;
648
+ }[] | null | undefined;
649
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
650
+ }, {
651
+ id?: string | undefined;
652
+ name?: string | undefined;
653
+ size?: string | undefined;
654
+ email?: string | null | undefined;
655
+ avatar_path?: string | null | undefined;
656
+ mission?: string | null | undefined;
657
+ domain?: string | null | undefined;
658
+ urls?: {
659
+ value: string;
660
+ }[] | null | undefined;
661
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
662
+ }>>>;
663
+ team_id: z.ZodOptional<z.ZodString>;
664
+ team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
665
+ id: z.ZodOptional<z.ZodString>;
666
+ org_id: z.ZodOptional<z.ZodString>;
667
+ name: z.ZodOptional<z.ZodString>;
668
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
669
+ default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
670
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
671
+ created_at: z.ZodOptional<z.ZodString>;
672
+ }, "strip", z.ZodTypeAny, {
673
+ id?: string | undefined;
674
+ name?: string | undefined;
675
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
676
+ description?: string | null | undefined;
677
+ org_id?: string | undefined;
678
+ created_at?: string | undefined;
679
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
680
+ }, {
681
+ id?: string | undefined;
682
+ name?: string | undefined;
683
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
684
+ description?: string | null | undefined;
685
+ org_id?: string | undefined;
686
+ created_at?: string | undefined;
687
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
688
+ }>>>;
689
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
690
+ asset_type: z.ZodOptional<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
691
+ name: z.ZodOptional<z.ZodString>;
692
+ name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
693
+ slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
694
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
695
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
696
+ monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
697
+ price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
698
+ unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
699
+ cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
700
+ cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
701
+ product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
702
+ price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
703
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
704
+ preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
705
+ state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
706
+ created_at: z.ZodOptional<z.ZodString>;
707
+ last_updated: z.ZodOptional<z.ZodString>;
708
+ }, "user_id">, {
709
+ id: z.ZodDefault<z.ZodString>;
710
+ team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
711
+ org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
712
+ name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
713
+ state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
714
+ visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
715
+ }>, {
716
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
717
+ state: z.ZodLiteral<"in-progress">;
718
+ metadata: z.ZodObject<{
719
+ type: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
721
+ type: string;
722
+ }, {
723
+ type: string;
724
+ }>;
725
+ }>, "strip", z.ZodTypeAny, {
726
+ id: string;
727
+ state: "in-progress";
728
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
729
+ metadata: {
730
+ type: string;
731
+ };
732
+ org_id: string | null;
733
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
734
+ team_id: string | null;
735
+ name?: string | undefined;
736
+ description?: string | null | undefined;
737
+ user?: {
738
+ id?: string | undefined;
739
+ user_id?: string | undefined;
740
+ avatar_path?: string | null | undefined;
741
+ urls?: {
742
+ value: string;
743
+ }[] | undefined;
744
+ username?: string | null | undefined;
745
+ bio?: string | null | undefined;
746
+ last_active?: string | undefined;
747
+ } | undefined;
748
+ organization?: {
749
+ id?: string | undefined;
750
+ name?: string | undefined;
751
+ size?: string | undefined;
752
+ email?: string | null | undefined;
753
+ avatar_path?: string | null | undefined;
754
+ mission?: string | null | undefined;
755
+ domain?: string | null | undefined;
756
+ urls?: {
757
+ value: string;
758
+ }[] | null | undefined;
759
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
760
+ } | undefined;
761
+ created_at?: string | undefined;
762
+ last_updated?: string | undefined;
763
+ team?: {
764
+ id?: string | undefined;
765
+ name?: string | undefined;
766
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
767
+ description?: string | null | undefined;
768
+ org_id?: string | undefined;
769
+ created_at?: string | undefined;
770
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
771
+ } | undefined;
772
+ parent_id?: string | null | undefined;
773
+ name_url_slug?: string | null | undefined;
774
+ slug?: string | null | undefined;
775
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
776
+ price?: number | null | undefined;
777
+ unit_cost?: number | null | undefined;
778
+ cost_accounting?: "fixed" | "variable" | null | undefined;
779
+ cost_unit?: string | null | undefined;
780
+ product_id?: string | null | undefined;
781
+ price_id?: string | null | undefined;
782
+ preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
783
+ }, {
784
+ state: "in-progress";
785
+ metadata: {
786
+ type: string;
787
+ };
788
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
789
+ id?: string | undefined;
790
+ name?: string | undefined;
791
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
792
+ description?: string | null | undefined;
793
+ user?: {
794
+ id?: string | undefined;
795
+ user_id?: string | undefined;
796
+ avatar_path?: string | null | undefined;
797
+ urls?: {
798
+ value: string;
799
+ }[] | undefined;
800
+ username?: string | null | undefined;
801
+ bio?: string | null | undefined;
802
+ last_active?: string | undefined;
803
+ } | undefined;
804
+ organization?: {
805
+ id?: string | undefined;
806
+ name?: string | undefined;
807
+ size?: string | undefined;
808
+ email?: string | null | undefined;
809
+ avatar_path?: string | null | undefined;
810
+ mission?: string | null | undefined;
811
+ domain?: string | null | undefined;
812
+ urls?: {
813
+ value: string;
814
+ }[] | null | undefined;
815
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
816
+ } | undefined;
817
+ org_id?: string | null | undefined;
818
+ created_at?: string | undefined;
819
+ last_updated?: string | undefined;
820
+ team_id?: string | null | undefined;
821
+ team?: {
822
+ id?: string | undefined;
823
+ name?: string | undefined;
824
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
825
+ description?: string | null | undefined;
826
+ org_id?: string | undefined;
827
+ created_at?: string | undefined;
828
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
829
+ } | undefined;
830
+ parent_id?: string | null | undefined;
831
+ name_url_slug?: string | null | undefined;
832
+ slug?: string | null | undefined;
833
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
834
+ price?: number | null | undefined;
835
+ unit_cost?: number | null | undefined;
836
+ cost_accounting?: "fixed" | "variable" | null | undefined;
837
+ cost_unit?: string | null | undefined;
838
+ product_id?: string | null | undefined;
839
+ price_id?: string | null | undefined;
840
+ preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
841
+ }>]>;
842
+ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
843
+ id: z.ZodOptional<z.ZodString>;
844
+ user_id: z.ZodOptional<z.ZodString>;
845
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
846
+ id: z.ZodOptional<z.ZodString>;
847
+ user_id: z.ZodOptional<z.ZodString>;
848
+ username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
849
+ avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
850
+ bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
851
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
852
+ value: z.ZodString;
853
+ }, "strip", z.ZodTypeAny, {
854
+ value: string;
855
+ }, {
856
+ value: string;
857
+ }>, "many">>>;
858
+ last_active: z.ZodOptional<z.ZodString>;
859
+ }, "strip", z.ZodTypeAny, {
860
+ id?: string | undefined;
861
+ user_id?: string | undefined;
862
+ avatar_path?: string | null | undefined;
863
+ urls?: {
864
+ value: string;
865
+ }[] | undefined;
866
+ username?: string | null | undefined;
867
+ bio?: string | null | undefined;
868
+ last_active?: string | undefined;
869
+ }, {
870
+ id?: string | undefined;
871
+ user_id?: string | undefined;
872
+ avatar_path?: string | null | undefined;
873
+ urls?: {
874
+ value: string;
875
+ }[] | undefined;
876
+ username?: string | null | undefined;
877
+ bio?: string | null | undefined;
878
+ last_active?: string | undefined;
879
+ }>>>;
880
+ org_id: z.ZodOptional<z.ZodString>;
881
+ organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
882
+ id: z.ZodOptional<z.ZodString>;
883
+ name: z.ZodOptional<z.ZodString>;
884
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
885
+ mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
886
+ size: z.ZodOptional<z.ZodString>;
887
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
888
+ domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
889
+ urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
890
+ value: z.ZodString;
891
+ }, "strip", z.ZodTypeAny, {
892
+ value: string;
893
+ }, {
894
+ value: string;
895
+ }>, "many">>>>;
896
+ base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ id?: string | undefined;
899
+ name?: string | undefined;
900
+ size?: string | undefined;
901
+ email?: string | null | undefined;
902
+ avatar_path?: string | null | undefined;
903
+ mission?: string | null | undefined;
904
+ domain?: string | null | undefined;
905
+ urls?: {
906
+ value: string;
907
+ }[] | null | undefined;
908
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
909
+ }, {
910
+ id?: string | undefined;
911
+ name?: string | undefined;
912
+ size?: string | undefined;
913
+ email?: string | null | undefined;
914
+ avatar_path?: string | null | undefined;
915
+ mission?: string | null | undefined;
916
+ domain?: string | null | undefined;
917
+ urls?: {
918
+ value: string;
919
+ }[] | null | undefined;
920
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
921
+ }>>>;
922
+ team_id: z.ZodOptional<z.ZodString>;
923
+ team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
924
+ id: z.ZodOptional<z.ZodString>;
925
+ org_id: z.ZodOptional<z.ZodString>;
926
+ name: z.ZodOptional<z.ZodString>;
927
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
928
+ default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
929
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
930
+ created_at: z.ZodOptional<z.ZodString>;
931
+ }, "strip", z.ZodTypeAny, {
932
+ id?: string | undefined;
933
+ name?: string | undefined;
934
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
935
+ description?: string | null | undefined;
936
+ org_id?: string | undefined;
937
+ created_at?: string | undefined;
938
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
939
+ }, {
940
+ id?: string | undefined;
941
+ name?: string | undefined;
942
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
943
+ description?: string | null | undefined;
944
+ org_id?: string | undefined;
945
+ created_at?: string | undefined;
946
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
947
+ }>>>;
948
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
949
+ name: z.ZodOptional<z.ZodString>;
950
+ name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
951
+ slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
952
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
953
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
954
+ monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
955
+ price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
956
+ unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
957
+ cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
958
+ cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
959
+ product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
960
+ price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
961
+ preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
962
+ state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
963
+ created_at: z.ZodOptional<z.ZodString>;
964
+ last_updated: z.ZodOptional<z.ZodString>;
965
+ asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">>;
966
+ metadata: z.ZodOptional<z.ZodObject<{
967
+ id: z.ZodString;
968
+ path: z.ZodString;
969
+ bucket: z.ZodEnum<["public-files", "files"]>;
970
+ name: z.ZodString;
971
+ type: z.ZodString;
972
+ size: z.ZodNumber;
973
+ width: z.ZodOptional<z.ZodNumber>;
974
+ height: z.ZodOptional<z.ZodNumber>;
975
+ }, "strip", z.ZodTypeAny, {
976
+ type: string;
977
+ id: string;
978
+ name: string;
979
+ path: string;
980
+ size: number;
981
+ bucket: "public-files" | "files";
982
+ height?: number | undefined;
983
+ width?: number | undefined;
984
+ }, {
985
+ type: string;
986
+ id: string;
987
+ name: string;
988
+ path: string;
989
+ size: number;
990
+ bucket: "public-files" | "files";
991
+ height?: number | undefined;
992
+ width?: number | undefined;
993
+ }>>;
994
+ }, "id" | "user_id" | "created_at" | "last_updated">, {
995
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
996
+ last_updated: z.ZodDefault<z.ZodString>;
997
+ }>, "strip", z.ZodTypeAny, {
998
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
999
+ last_updated: string;
1000
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1001
+ name?: string | undefined;
1002
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1003
+ metadata?: {
1004
+ type: string;
1005
+ id: string;
1006
+ name: string;
1007
+ path: string;
1008
+ size: number;
1009
+ bucket: "public-files" | "files";
1010
+ height?: number | undefined;
1011
+ width?: number | undefined;
1012
+ } | undefined;
1013
+ description?: string | null | undefined;
1014
+ user?: {
1015
+ id?: string | undefined;
1016
+ user_id?: string | undefined;
1017
+ avatar_path?: string | null | undefined;
1018
+ urls?: {
1019
+ value: string;
1020
+ }[] | undefined;
1021
+ username?: string | null | undefined;
1022
+ bio?: string | null | undefined;
1023
+ last_active?: string | undefined;
1024
+ } | undefined;
1025
+ organization?: {
1026
+ id?: string | undefined;
1027
+ name?: string | undefined;
1028
+ size?: string | undefined;
1029
+ email?: string | null | undefined;
1030
+ avatar_path?: string | null | undefined;
1031
+ mission?: string | null | undefined;
1032
+ domain?: string | null | undefined;
1033
+ urls?: {
1034
+ value: string;
1035
+ }[] | null | undefined;
1036
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
1037
+ } | undefined;
1038
+ org_id?: string | undefined;
1039
+ team_id?: string | undefined;
1040
+ team?: {
1041
+ id?: string | undefined;
1042
+ name?: string | undefined;
1043
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1044
+ description?: string | null | undefined;
1045
+ org_id?: string | undefined;
1046
+ created_at?: string | undefined;
1047
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
1048
+ } | undefined;
1049
+ parent_id?: string | null | undefined;
1050
+ name_url_slug?: string | null | undefined;
1051
+ slug?: string | null | undefined;
1052
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1053
+ price?: number | null | undefined;
1054
+ unit_cost?: number | null | undefined;
1055
+ cost_accounting?: "fixed" | "variable" | null | undefined;
1056
+ cost_unit?: string | null | undefined;
1057
+ product_id?: string | null | undefined;
1058
+ price_id?: string | null | undefined;
1059
+ preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
1060
+ }, {
1061
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1062
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1063
+ name?: string | undefined;
1064
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1065
+ metadata?: {
1066
+ type: string;
1067
+ id: string;
1068
+ name: string;
1069
+ path: string;
1070
+ size: number;
1071
+ bucket: "public-files" | "files";
1072
+ height?: number | undefined;
1073
+ width?: number | undefined;
1074
+ } | undefined;
1075
+ description?: string | null | undefined;
1076
+ user?: {
1077
+ id?: string | undefined;
1078
+ user_id?: string | undefined;
1079
+ avatar_path?: string | null | undefined;
1080
+ urls?: {
1081
+ value: string;
1082
+ }[] | undefined;
1083
+ username?: string | null | undefined;
1084
+ bio?: string | null | undefined;
1085
+ last_active?: string | undefined;
1086
+ } | undefined;
1087
+ organization?: {
1088
+ id?: string | undefined;
1089
+ name?: string | undefined;
1090
+ size?: string | undefined;
1091
+ email?: string | null | undefined;
1092
+ avatar_path?: string | null | undefined;
1093
+ mission?: string | null | undefined;
1094
+ domain?: string | null | undefined;
1095
+ urls?: {
1096
+ value: string;
1097
+ }[] | null | undefined;
1098
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
1099
+ } | undefined;
1100
+ org_id?: string | undefined;
1101
+ last_updated?: string | undefined;
1102
+ team_id?: string | undefined;
1103
+ team?: {
1104
+ id?: string | undefined;
1105
+ name?: string | undefined;
1106
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1107
+ description?: string | null | undefined;
1108
+ org_id?: string | undefined;
1109
+ created_at?: string | undefined;
1110
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
1111
+ } | undefined;
1112
+ parent_id?: string | null | undefined;
1113
+ name_url_slug?: string | null | undefined;
1114
+ slug?: string | null | undefined;
1115
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1116
+ price?: number | null | undefined;
1117
+ unit_cost?: number | null | undefined;
1118
+ cost_accounting?: "fixed" | "variable" | null | undefined;
1119
+ cost_unit?: string | null | undefined;
1120
+ product_id?: string | null | undefined;
1121
+ price_id?: string | null | undefined;
1122
+ preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
1123
+ }>;
276
1124
  type File = z.infer<typeof FileSchema>;
277
- export { FileSchema, type File };
1125
+ type CreateFile = z.infer<typeof CreateFileSchema>;
1126
+ type UpdateFile = z.infer<typeof updateFileSchema>;
1127
+ export { FileSchema, CreateFileSchema, updateFileSchema, type File, type CreateFile, type UpdateFile, };