@ourofoundation/ouro-js 3.7.8 → 3.8.0

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.
Files changed (133) hide show
  1. package/dist/{chunk-66AAHP6X.cjs → chunk-23FTPTDP.cjs} +2 -2
  2. package/dist/{chunk-66AAHP6X.cjs.map → chunk-23FTPTDP.cjs.map} +1 -1
  3. package/dist/chunk-33C7IDRP.js +2 -0
  4. package/dist/chunk-33C7IDRP.js.map +1 -0
  5. package/dist/{chunk-4NAPVNIX.js → chunk-3UE4H5TR.js} +2 -2
  6. package/dist/{chunk-4NAPVNIX.js.map → chunk-3UE4H5TR.js.map} +1 -1
  7. package/dist/{chunk-3OUJXTJZ.js → chunk-5CKFMTWZ.js} +2 -2
  8. package/dist/{chunk-3OUJXTJZ.js.map → chunk-5CKFMTWZ.js.map} +1 -1
  9. package/dist/{chunk-Z66O3S3W.cjs → chunk-5SC4M4E3.cjs} +2 -2
  10. package/dist/{chunk-Z66O3S3W.cjs.map → chunk-5SC4M4E3.cjs.map} +1 -1
  11. package/dist/{chunk-KHUEMWG2.js → chunk-6OO4SOWL.js} +2 -2
  12. package/dist/{chunk-KHUEMWG2.js.map → chunk-6OO4SOWL.js.map} +1 -1
  13. package/dist/{chunk-7YG2YDXN.cjs → chunk-7R5EIIIR.cjs} +2 -2
  14. package/dist/{chunk-7YG2YDXN.cjs.map → chunk-7R5EIIIR.cjs.map} +1 -1
  15. package/dist/chunk-APZA6MIM.js +2 -0
  16. package/dist/chunk-APZA6MIM.js.map +1 -0
  17. package/dist/chunk-AUDVUOLX.js +2 -0
  18. package/dist/chunk-AUDVUOLX.js.map +1 -0
  19. package/dist/{chunk-ZRJUBEIK.cjs → chunk-BELCP7OL.cjs} +2 -2
  20. package/dist/{chunk-ZRJUBEIK.cjs.map → chunk-BELCP7OL.cjs.map} +1 -1
  21. package/dist/{chunk-CW4TV3DY.js → chunk-CXMEZGVG.js} +2 -2
  22. package/dist/{chunk-CW4TV3DY.js.map → chunk-CXMEZGVG.js.map} +1 -1
  23. package/dist/{chunk-42WKTHH5.js → chunk-EIB2YGN3.js} +2 -2
  24. package/dist/{chunk-42WKTHH5.js.map → chunk-EIB2YGN3.js.map} +1 -1
  25. package/dist/{chunk-EMDUI7HF.js → chunk-GT7CSIDN.js} +2 -2
  26. package/dist/{chunk-EMDUI7HF.js.map → chunk-GT7CSIDN.js.map} +1 -1
  27. package/dist/{chunk-PB4XG5WM.js → chunk-GX6RCMZR.js} +2 -2
  28. package/dist/{chunk-PB4XG5WM.js.map → chunk-GX6RCMZR.js.map} +1 -1
  29. package/dist/{chunk-W3N744QV.js → chunk-KMENBGAB.js} +2 -2
  30. package/dist/{chunk-W3N744QV.js.map → chunk-KMENBGAB.js.map} +1 -1
  31. package/dist/{chunk-UDTRH3OQ.cjs → chunk-M2ZH6MMH.cjs} +2 -2
  32. package/dist/{chunk-UDTRH3OQ.cjs.map → chunk-M2ZH6MMH.cjs.map} +1 -1
  33. package/dist/{chunk-YTIUJ72Q.js → chunk-M5ZLLARC.js} +2 -2
  34. package/dist/{chunk-YTIUJ72Q.js.map → chunk-M5ZLLARC.js.map} +1 -1
  35. package/dist/{chunk-3RFYEL3A.cjs → chunk-N3HC2ASR.cjs} +2 -2
  36. package/dist/{chunk-3RFYEL3A.cjs.map → chunk-N3HC2ASR.cjs.map} +1 -1
  37. package/dist/chunk-NVKZLT3M.cjs +2 -0
  38. package/dist/chunk-NVKZLT3M.cjs.map +1 -0
  39. package/dist/{chunk-QWD7POET.cjs → chunk-O6RFWCC4.cjs} +2 -2
  40. package/dist/{chunk-QWD7POET.cjs.map → chunk-O6RFWCC4.cjs.map} +1 -1
  41. package/dist/{chunk-3C7PGJ33.js → chunk-QUBJLDJY.js} +2 -2
  42. package/dist/{chunk-3C7PGJ33.js.map → chunk-QUBJLDJY.js.map} +1 -1
  43. package/dist/chunk-RNBIB6S7.cjs +2 -0
  44. package/dist/chunk-RNBIB6S7.cjs.map +1 -0
  45. package/dist/{chunk-FJTFM3ML.cjs → chunk-RQUVICCB.cjs} +2 -2
  46. package/dist/{chunk-FJTFM3ML.cjs.map → chunk-RQUVICCB.cjs.map} +1 -1
  47. package/dist/chunk-RRDGLT3N.cjs +2 -0
  48. package/dist/{chunk-LD5G6GFH.cjs.map → chunk-RRDGLT3N.cjs.map} +1 -1
  49. package/dist/chunk-SZWAE35B.cjs +2 -0
  50. package/dist/chunk-SZWAE35B.cjs.map +1 -0
  51. package/dist/chunk-U5JVCESS.js +2 -0
  52. package/dist/chunk-U5JVCESS.js.map +1 -0
  53. package/dist/{chunk-B3OK6NNR.cjs → chunk-W4V643O5.cjs} +2 -2
  54. package/dist/{chunk-B3OK6NNR.cjs.map → chunk-W4V643O5.cjs.map} +1 -1
  55. package/dist/chunk-YFEGRZXL.cjs +2 -0
  56. package/dist/chunk-YFEGRZXL.cjs.map +1 -0
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.d.cts +3 -3
  59. package/dist/index.d.ts +3 -3
  60. package/dist/index.js +1 -1
  61. package/dist/schema/asset-filters.cjs +1 -1
  62. package/dist/schema/asset-filters.d.cts +7 -7
  63. package/dist/schema/asset-filters.d.ts +7 -7
  64. package/dist/schema/asset-filters.js +1 -1
  65. package/dist/schema/assets.cjs +1 -1
  66. package/dist/schema/assets.d.cts +63 -63
  67. package/dist/schema/assets.d.ts +63 -63
  68. package/dist/schema/assets.js +1 -1
  69. package/dist/schema/comments.cjs +1 -1
  70. package/dist/schema/comments.d.cts +59 -59
  71. package/dist/schema/comments.d.ts +59 -59
  72. package/dist/schema/comments.js +1 -1
  73. package/dist/schema/common.cjs +1 -1
  74. package/dist/schema/common.d.cts +10 -9
  75. package/dist/schema/common.d.ts +10 -9
  76. package/dist/schema/common.js +1 -1
  77. package/dist/schema/conversations.cjs +1 -1
  78. package/dist/schema/conversations.d.cts +77 -58
  79. package/dist/schema/conversations.d.ts +77 -58
  80. package/dist/schema/conversations.js +1 -1
  81. package/dist/schema/datasets.cjs +1 -1
  82. package/dist/schema/datasets.d.cts +137 -137
  83. package/dist/schema/datasets.d.ts +137 -137
  84. package/dist/schema/datasets.js +1 -1
  85. package/dist/schema/files.cjs +1 -1
  86. package/dist/schema/files.d.cts +154 -89
  87. package/dist/schema/files.d.ts +154 -89
  88. package/dist/schema/files.js +1 -1
  89. package/dist/schema/notifications.cjs +1 -1
  90. package/dist/schema/notifications.d.cts +106 -106
  91. package/dist/schema/notifications.d.ts +106 -106
  92. package/dist/schema/notifications.js +1 -1
  93. package/dist/schema/organizations.cjs +1 -1
  94. package/dist/schema/organizations.js +1 -1
  95. package/dist/schema/posts.cjs +1 -1
  96. package/dist/schema/posts.d.cts +91 -91
  97. package/dist/schema/posts.d.ts +91 -91
  98. package/dist/schema/posts.js +1 -1
  99. package/dist/schema/quests.cjs +1 -1
  100. package/dist/schema/quests.d.cts +192 -131
  101. package/dist/schema/quests.d.ts +192 -131
  102. package/dist/schema/quests.js +1 -1
  103. package/dist/schema/services.cjs +1 -1
  104. package/dist/schema/services.d.cts +132 -132
  105. package/dist/schema/services.d.ts +132 -132
  106. package/dist/schema/services.js +1 -1
  107. package/dist/schema/teams.cjs +1 -1
  108. package/dist/schema/teams.d.cts +15 -15
  109. package/dist/schema/teams.d.ts +15 -15
  110. package/dist/schema/teams.js +1 -1
  111. package/dist/utils/quest-submission.cjs +1 -1
  112. package/dist/utils/quest-submission.d.cts +4 -4
  113. package/dist/utils/quest-submission.d.ts +4 -4
  114. package/dist/utils/quest-submission.js +1 -1
  115. package/package.json +2 -2
  116. package/tests/files.test.mjs +42 -0
  117. package/dist/chunk-3BZRQYRC.js +0 -2
  118. package/dist/chunk-3BZRQYRC.js.map +0 -1
  119. package/dist/chunk-ASLHRT77.js +0 -2
  120. package/dist/chunk-ASLHRT77.js.map +0 -1
  121. package/dist/chunk-LD5G6GFH.cjs +0 -2
  122. package/dist/chunk-MNECKGIP.cjs +0 -2
  123. package/dist/chunk-MNECKGIP.cjs.map +0 -1
  124. package/dist/chunk-UVVPXYJA.cjs +0 -2
  125. package/dist/chunk-UVVPXYJA.cjs.map +0 -1
  126. package/dist/chunk-W6AKVS4L.cjs +0 -2
  127. package/dist/chunk-W6AKVS4L.cjs.map +0 -1
  128. package/dist/chunk-W6MBAIKZ.cjs +0 -2
  129. package/dist/chunk-W6MBAIKZ.cjs.map +0 -1
  130. package/dist/chunk-XVN3DFMT.js +0 -2
  131. package/dist/chunk-XVN3DFMT.js.map +0 -1
  132. package/dist/chunk-Y6TOO6ET.js +0 -2
  133. package/dist/chunk-Y6TOO6ET.js.map +0 -1
@@ -1,5 +1,13 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ declare const ZipArchiveMetadataSchema: z.ZodObject<{
4
+ entry_count: z.ZodNumber;
5
+ file_count: z.ZodNumber;
6
+ directory_count: z.ZodNumber;
7
+ total_uncompressed_size: z.ZodNumber;
8
+ total_compressed_size: z.ZodNumber;
9
+ preview_truncated: z.ZodBoolean;
10
+ }, z.core.$strip>;
3
11
  declare const FileSchema: z.ZodObject<{
4
12
  id: z.ZodUUID;
5
13
  user_id: z.ZodUUID;
@@ -243,14 +251,14 @@ declare const FileSchema: z.ZodObject<{
243
251
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
244
252
  state: z.ZodEnum<{
245
253
  success: "success";
246
- error: "error";
247
254
  queued: "queued";
248
255
  "in-progress": "in-progress";
249
256
  "timed-out": "timed-out";
257
+ error: "error";
250
258
  }>;
251
259
  source: z.ZodEnum<{
252
- web: "web";
253
260
  api: "api";
261
+ web: "web";
254
262
  }>;
255
263
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
256
264
  created_at: z.ZodString;
@@ -269,21 +277,29 @@ declare const FileSchema: z.ZodObject<{
269
277
  size: z.ZodNumber;
270
278
  width: z.ZodOptional<z.ZodNumber>;
271
279
  height: z.ZodOptional<z.ZodNumber>;
280
+ archive: z.ZodOptional<z.ZodObject<{
281
+ entry_count: z.ZodNumber;
282
+ file_count: z.ZodNumber;
283
+ directory_count: z.ZodNumber;
284
+ total_uncompressed_size: z.ZodNumber;
285
+ total_compressed_size: z.ZodNumber;
286
+ preview_truncated: z.ZodBoolean;
287
+ }, z.core.$strip>>;
272
288
  source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
273
289
  reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
274
290
  }, z.core.$strip>;
275
291
  }, z.core.$strip>;
276
292
  declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
277
- monetization: z.ZodOptional<z.ZodEnum<{
278
- none: "none";
279
- "pay-to-unlock": "pay-to-unlock";
280
- "pay-per-use": "pay-per-use";
281
- }>>;
282
293
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
283
294
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
284
295
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
285
296
  text: z.ZodString;
286
297
  }, z.core.$strip>>>>;
298
+ monetization: z.ZodOptional<z.ZodEnum<{
299
+ none: "none";
300
+ "pay-to-unlock": "pay-to-unlock";
301
+ "pay-per-use": "pay-per-use";
302
+ }>>;
287
303
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
288
304
  license_id: z.ZodOptional<z.ZodString>;
289
305
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -307,8 +323,8 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
307
323
  name: z.ZodString;
308
324
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
325
  source: z.ZodDefault<z.ZodEnum<{
310
- web: "web";
311
326
  api: "api";
327
+ web: "web";
312
328
  }>>;
313
329
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
314
330
  organization: "organization";
@@ -399,20 +415,28 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
399
415
  size: z.ZodNumber;
400
416
  width: z.ZodOptional<z.ZodNumber>;
401
417
  height: z.ZodOptional<z.ZodNumber>;
418
+ archive: z.ZodOptional<z.ZodObject<{
419
+ entry_count: z.ZodNumber;
420
+ file_count: z.ZodNumber;
421
+ directory_count: z.ZodNumber;
422
+ total_uncompressed_size: z.ZodNumber;
423
+ total_compressed_size: z.ZodNumber;
424
+ preview_truncated: z.ZodBoolean;
425
+ }, z.core.$strip>>;
402
426
  source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
403
427
  reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
404
428
  }, z.core.$strip>;
405
429
  }, z.core.$strip>, z.ZodObject<{
406
- monetization: z.ZodOptional<z.ZodEnum<{
407
- none: "none";
408
- "pay-to-unlock": "pay-to-unlock";
409
- "pay-per-use": "pay-per-use";
410
- }>>;
411
430
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
412
431
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
413
432
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
414
433
  text: z.ZodString;
415
434
  }, z.core.$strip>>>>;
435
+ monetization: z.ZodOptional<z.ZodEnum<{
436
+ none: "none";
437
+ "pay-to-unlock": "pay-to-unlock";
438
+ "pay-per-use": "pay-per-use";
439
+ }>>;
416
440
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
417
441
  license_id: z.ZodOptional<z.ZodString>;
418
442
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -436,8 +460,8 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
436
460
  name: z.ZodString;
437
461
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
438
462
  source: z.ZodDefault<z.ZodEnum<{
439
- web: "web";
440
463
  api: "api";
464
+ web: "web";
441
465
  }>>;
442
466
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
443
467
  organization: "organization";
@@ -525,7 +549,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
525
549
  team_id: string | null;
526
550
  org_id: string | null;
527
551
  name: string;
528
- source: "web" | "api";
552
+ source: "api" | "web";
529
553
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
530
554
  attribution: {
531
555
  originality: "original" | "derivative" | "third-party";
@@ -560,15 +584,23 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
560
584
  size: number;
561
585
  width?: number | undefined;
562
586
  height?: number | undefined;
587
+ archive?: {
588
+ entry_count: number;
589
+ file_count: number;
590
+ directory_count: number;
591
+ total_uncompressed_size: number;
592
+ total_compressed_size: number;
593
+ preview_truncated: boolean;
594
+ } | undefined;
563
595
  source?: string | null | undefined;
564
596
  reply_to_comment_id?: string | null | undefined;
565
597
  };
566
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
567
598
  parent?: Record<string, any> | undefined;
568
599
  description?: {
569
600
  json: Record<string, any>;
570
601
  text: string;
571
602
  } | null | undefined;
603
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
572
604
  parent_id?: string | null | undefined;
573
605
  license_id?: string | undefined;
574
606
  price?: number | null | undefined;
@@ -586,7 +618,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
586
618
  team_id: string | null;
587
619
  org_id: string | null;
588
620
  name: string;
589
- source: "web" | "api";
621
+ source: "api" | "web";
590
622
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
591
623
  attribution: {
592
624
  originality: "original" | "derivative" | "third-party";
@@ -616,12 +648,12 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
616
648
  source?: string | null | undefined;
617
649
  reply_to_comment_id?: string | null | undefined;
618
650
  };
619
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
620
651
  parent?: Record<string, any> | undefined;
621
652
  description?: {
622
653
  json: Record<string, any>;
623
654
  text: string;
624
655
  } | null | undefined;
656
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
625
657
  parent_id?: string | null | undefined;
626
658
  license_id?: string | undefined;
627
659
  price?: number | null | undefined;
@@ -639,7 +671,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
639
671
  team_id: string | null;
640
672
  org_id: string | null;
641
673
  name: string;
642
- source: "web" | "api";
674
+ source: "api" | "web";
643
675
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
644
676
  attribution: {
645
677
  originality: "original" | "derivative" | "third-party";
@@ -674,15 +706,23 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
674
706
  size: number;
675
707
  width?: number | undefined;
676
708
  height?: number | undefined;
709
+ archive?: {
710
+ entry_count: number;
711
+ file_count: number;
712
+ directory_count: number;
713
+ total_uncompressed_size: number;
714
+ total_compressed_size: number;
715
+ preview_truncated: boolean;
716
+ } | undefined;
677
717
  source?: string | null | undefined;
678
718
  reply_to_comment_id?: string | null | undefined;
679
719
  };
680
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
681
720
  parent?: Record<string, any> | undefined;
682
721
  description?: {
683
722
  json: Record<string, any>;
684
723
  text: string;
685
724
  } | null | undefined;
725
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
686
726
  parent_id?: string | null | undefined;
687
727
  license_id?: string | undefined;
688
728
  price?: number | null | undefined;
@@ -700,7 +740,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
700
740
  team_id: string | null;
701
741
  org_id: string | null;
702
742
  name: string;
703
- source: "web" | "api";
743
+ source: "api" | "web";
704
744
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
705
745
  attribution: {
706
746
  originality: "original" | "derivative" | "third-party";
@@ -730,12 +770,12 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
730
770
  source?: string | null | undefined;
731
771
  reply_to_comment_id?: string | null | undefined;
732
772
  };
733
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
734
773
  parent?: Record<string, any> | undefined;
735
774
  description?: {
736
775
  json: Record<string, any>;
737
776
  text: string;
738
777
  } | null | undefined;
778
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
739
779
  parent_id?: string | null | undefined;
740
780
  license_id?: string | undefined;
741
781
  price?: number | null | undefined;
@@ -751,6 +791,34 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
751
791
  }>>;
752
792
  declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
753
793
  asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"file">>>;
794
+ org_id: z.ZodOptional<z.ZodUUID>;
795
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
796
+ metadata: z.ZodOptional<z.ZodObject<{
797
+ id: z.ZodUUID;
798
+ path: z.ZodString;
799
+ bucket: z.ZodEnum<{
800
+ "public-files": "public-files";
801
+ files: "files";
802
+ }>;
803
+ name: z.ZodString;
804
+ type: z.ZodString;
805
+ extension: z.ZodString;
806
+ size: z.ZodNumber;
807
+ width: z.ZodOptional<z.ZodNumber>;
808
+ height: z.ZodOptional<z.ZodNumber>;
809
+ archive: z.ZodOptional<z.ZodObject<{
810
+ entry_count: z.ZodNumber;
811
+ file_count: z.ZodNumber;
812
+ directory_count: z.ZodNumber;
813
+ total_uncompressed_size: z.ZodNumber;
814
+ total_compressed_size: z.ZodNumber;
815
+ preview_truncated: z.ZodBoolean;
816
+ }, z.core.$strip>>;
817
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
818
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
819
+ }, z.core.$strip>>;
820
+ name: z.ZodOptional<z.ZodString>;
821
+ team_id: z.ZodOptional<z.ZodUUID>;
754
822
  visibility: z.ZodOptional<z.ZodEnum<{
755
823
  organization: "organization";
756
824
  public: "public";
@@ -758,6 +826,14 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
758
826
  monetized: "monetized";
759
827
  inherit: "inherit";
760
828
  }>>;
829
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
830
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
831
+ text: z.ZodString;
832
+ }, z.core.$strip>>>>;
833
+ source: z.ZodOptional<z.ZodEnum<{
834
+ api: "api";
835
+ web: "web";
836
+ }>>;
761
837
  monetization: z.ZodOptional<z.ZodEnum<{
762
838
  none: "none";
763
839
  "pay-to-unlock": "pay-to-unlock";
@@ -794,23 +870,11 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
794
870
  }, z.core.$strip>>;
795
871
  state: z.ZodOptional<z.ZodEnum<{
796
872
  success: "success";
797
- error: "error";
798
873
  queued: "queued";
799
874
  "in-progress": "in-progress";
800
875
  "timed-out": "timed-out";
876
+ error: "error";
801
877
  }>>;
802
- source: z.ZodOptional<z.ZodEnum<{
803
- web: "web";
804
- api: "api";
805
- }>>;
806
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
807
- name: z.ZodOptional<z.ZodString>;
808
- org_id: z.ZodOptional<z.ZodUUID>;
809
- team_id: z.ZodOptional<z.ZodUUID>;
810
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
811
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
812
- text: z.ZodString;
813
- }, z.core.$strip>>>>;
814
878
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
815
879
  license_id: z.ZodOptional<z.ZodString>;
816
880
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -829,28 +893,42 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
829
893
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
830
894
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
831
895
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
832
- metadata: z.ZodOptional<z.ZodObject<{
833
- id: z.ZodUUID;
834
- path: z.ZodString;
835
- bucket: z.ZodEnum<{
836
- "public-files": "public-files";
837
- files: "files";
838
- }>;
839
- name: z.ZodString;
840
- type: z.ZodString;
841
- extension: z.ZodString;
842
- size: z.ZodNumber;
843
- width: z.ZodOptional<z.ZodNumber>;
844
- height: z.ZodOptional<z.ZodNumber>;
845
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
846
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
847
- }, z.core.$strip>>;
848
896
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
849
897
  last_updated: z.ZodDefault<z.ZodString>;
850
898
  }, z.core.$strip>, z.ZodTransform<{
851
899
  last_updated: string;
852
900
  asset_type?: "file" | undefined;
901
+ org_id?: string | undefined;
902
+ parent?: Record<string, any> | undefined;
903
+ metadata?: {
904
+ id: string;
905
+ path: string;
906
+ bucket: "public-files" | "files";
907
+ name: string;
908
+ type: string;
909
+ extension: string;
910
+ size: number;
911
+ width?: number | undefined;
912
+ height?: number | undefined;
913
+ archive?: {
914
+ entry_count: number;
915
+ file_count: number;
916
+ directory_count: number;
917
+ total_uncompressed_size: number;
918
+ total_compressed_size: number;
919
+ preview_truncated: boolean;
920
+ } | undefined;
921
+ source?: string | null | undefined;
922
+ reply_to_comment_id?: string | null | undefined;
923
+ } | undefined;
924
+ name?: string | undefined;
925
+ team_id?: string | undefined;
853
926
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
927
+ description?: {
928
+ json: Record<string, any>;
929
+ text: string;
930
+ } | null | undefined;
931
+ source?: "api" | "web" | undefined;
854
932
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
855
933
  attribution?: {
856
934
  originality: "original" | "derivative" | "third-party";
@@ -871,16 +949,7 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
871
949
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
872
950
  doi?: string | null | undefined;
873
951
  } | undefined;
874
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
875
- source?: "web" | "api" | undefined;
876
- parent?: Record<string, any> | undefined;
877
- name?: string | undefined;
878
- org_id?: string | undefined;
879
- team_id?: string | undefined;
880
- description?: {
881
- json: Record<string, any>;
882
- text: string;
883
- } | null | undefined;
952
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
884
953
  parent_id?: string | null | undefined;
885
954
  license_id?: string | undefined;
886
955
  license?: Record<string, any> | undefined;
@@ -893,6 +962,12 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
893
962
  stripe_product_id?: string | null | undefined;
894
963
  stripe_price_id?: string | null | undefined;
895
964
  stripe_meter_id?: string | null | undefined;
965
+ preview?: Record<string, any>[] | null | undefined;
966
+ }, {
967
+ last_updated: string;
968
+ asset_type?: "file" | undefined;
969
+ org_id?: string | undefined;
970
+ parent?: Record<string, any> | undefined;
896
971
  metadata?: {
897
972
  id: string;
898
973
  path: string;
@@ -903,14 +978,25 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
903
978
  size: number;
904
979
  width?: number | undefined;
905
980
  height?: number | undefined;
981
+ archive?: {
982
+ entry_count: number;
983
+ file_count: number;
984
+ directory_count: number;
985
+ total_uncompressed_size: number;
986
+ total_compressed_size: number;
987
+ preview_truncated: boolean;
988
+ } | undefined;
906
989
  source?: string | null | undefined;
907
990
  reply_to_comment_id?: string | null | undefined;
908
991
  } | undefined;
909
- preview?: Record<string, any>[] | null | undefined;
910
- }, {
911
- last_updated: string;
912
- asset_type?: "file" | undefined;
992
+ name?: string | undefined;
993
+ team_id?: string | undefined;
913
994
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
995
+ description?: {
996
+ json: Record<string, any>;
997
+ text: string;
998
+ } | null | undefined;
999
+ source?: "api" | "web" | undefined;
914
1000
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
915
1001
  attribution?: {
916
1002
  originality: "original" | "derivative" | "third-party";
@@ -931,16 +1017,7 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
931
1017
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
932
1018
  doi?: string | null | undefined;
933
1019
  } | undefined;
934
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
935
- source?: "web" | "api" | undefined;
936
- parent?: Record<string, any> | undefined;
937
- name?: string | undefined;
938
- org_id?: string | undefined;
939
- team_id?: string | undefined;
940
- description?: {
941
- json: Record<string, any>;
942
- text: string;
943
- } | null | undefined;
1020
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
944
1021
  parent_id?: string | null | undefined;
945
1022
  license_id?: string | undefined;
946
1023
  license?: Record<string, any> | undefined;
@@ -953,24 +1030,12 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
953
1030
  stripe_product_id?: string | null | undefined;
954
1031
  stripe_price_id?: string | null | undefined;
955
1032
  stripe_meter_id?: string | null | undefined;
956
- metadata?: {
957
- id: string;
958
- path: string;
959
- bucket: "public-files" | "files";
960
- name: string;
961
- type: string;
962
- extension: string;
963
- size: number;
964
- width?: number | undefined;
965
- height?: number | undefined;
966
- source?: string | null | undefined;
967
- reply_to_comment_id?: string | null | undefined;
968
- } | undefined;
969
1033
  preview?: Record<string, any>[] | null | undefined;
970
1034
  }>>;
971
1035
 
972
1036
  type File = z.infer<typeof FileSchema>;
973
1037
  type CreateFile = z.infer<typeof CreateFileSchema>;
974
1038
  type UpdateFile = z.infer<typeof updateFileSchema>;
1039
+ type ZipArchiveMetadata = z.infer<typeof ZipArchiveMetadataSchema>;
975
1040
 
976
- export { type CreateFile, CreateFileSchema, type File, FileSchema, type UpdateFile, updateFileSchema };
1041
+ export { type CreateFile, CreateFileSchema, type File, FileSchema, type UpdateFile, type ZipArchiveMetadata, ZipArchiveMetadataSchema, updateFileSchema };