@ourofoundation/ouro-js 3.7.8 → 3.7.9

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 (95) hide show
  1. package/dist/{chunk-QWD7POET.cjs → chunk-2KQZYT5W.cjs} +2 -2
  2. package/dist/{chunk-QWD7POET.cjs.map → chunk-2KQZYT5W.cjs.map} +1 -1
  3. package/dist/{chunk-66AAHP6X.cjs → chunk-4CXHZFX4.cjs} +2 -2
  4. package/dist/{chunk-66AAHP6X.cjs.map → chunk-4CXHZFX4.cjs.map} +1 -1
  5. package/dist/{chunk-ASLHRT77.js → chunk-4TQRYYVQ.js} +2 -2
  6. package/dist/{chunk-ASLHRT77.js.map → chunk-4TQRYYVQ.js.map} +1 -1
  7. package/dist/chunk-5CSPQ2RL.cjs +2 -0
  8. package/dist/chunk-5CSPQ2RL.cjs.map +1 -0
  9. package/dist/{chunk-UVVPXYJA.cjs → chunk-6DS2XXIF.cjs} +2 -2
  10. package/dist/{chunk-UVVPXYJA.cjs.map → chunk-6DS2XXIF.cjs.map} +1 -1
  11. package/dist/{chunk-Y6TOO6ET.js → chunk-732QBVGP.js} +2 -2
  12. package/dist/{chunk-Y6TOO6ET.js.map → chunk-732QBVGP.js.map} +1 -1
  13. package/dist/{chunk-KHUEMWG2.js → chunk-BUO2Y3O3.js} +2 -2
  14. package/dist/{chunk-KHUEMWG2.js.map → chunk-BUO2Y3O3.js.map} +1 -1
  15. package/dist/{chunk-B3OK6NNR.cjs → chunk-EP5DBAZQ.cjs} +2 -2
  16. package/dist/{chunk-B3OK6NNR.cjs.map → chunk-EP5DBAZQ.cjs.map} +1 -1
  17. package/dist/{chunk-3C7PGJ33.js → chunk-F6PWGWDJ.js} +2 -2
  18. package/dist/{chunk-3C7PGJ33.js.map → chunk-F6PWGWDJ.js.map} +1 -1
  19. package/dist/{chunk-PB4XG5WM.js → chunk-FDCVNMMO.js} +2 -2
  20. package/dist/{chunk-PB4XG5WM.js.map → chunk-FDCVNMMO.js.map} +1 -1
  21. package/dist/{chunk-3OUJXTJZ.js → chunk-HZDBAPRY.js} +2 -2
  22. package/dist/{chunk-3OUJXTJZ.js.map → chunk-HZDBAPRY.js.map} +1 -1
  23. package/dist/{chunk-LD5G6GFH.cjs → chunk-ICEXKHCC.cjs} +2 -2
  24. package/dist/{chunk-LD5G6GFH.cjs.map → chunk-ICEXKHCC.cjs.map} +1 -1
  25. package/dist/{chunk-EMDUI7HF.js → chunk-JAVIKBEC.js} +2 -2
  26. package/dist/{chunk-EMDUI7HF.js.map → chunk-JAVIKBEC.js.map} +1 -1
  27. package/dist/{chunk-W6MBAIKZ.cjs → chunk-PXT4NFAJ.cjs} +2 -2
  28. package/dist/{chunk-W6MBAIKZ.cjs.map → chunk-PXT4NFAJ.cjs.map} +1 -1
  29. package/dist/{chunk-UDTRH3OQ.cjs → chunk-QJ3DLN2Y.cjs} +2 -2
  30. package/dist/{chunk-UDTRH3OQ.cjs.map → chunk-QJ3DLN2Y.cjs.map} +1 -1
  31. package/dist/{chunk-4NAPVNIX.js → chunk-SIZVKGUT.js} +2 -2
  32. package/dist/{chunk-4NAPVNIX.js.map → chunk-SIZVKGUT.js.map} +1 -1
  33. package/dist/{chunk-3RFYEL3A.cjs → chunk-SZ5PIWEE.cjs} +2 -2
  34. package/dist/{chunk-3RFYEL3A.cjs.map → chunk-SZ5PIWEE.cjs.map} +1 -1
  35. package/dist/{chunk-7YG2YDXN.cjs → chunk-TB7MTWMO.cjs} +2 -2
  36. package/dist/{chunk-7YG2YDXN.cjs.map → chunk-TB7MTWMO.cjs.map} +1 -1
  37. package/dist/chunk-V3QRQO6H.js +2 -0
  38. package/dist/chunk-V3QRQO6H.js.map +1 -0
  39. package/dist/{chunk-YTIUJ72Q.js → chunk-VC4DZZ3C.js} +2 -2
  40. package/dist/{chunk-YTIUJ72Q.js.map → chunk-VC4DZZ3C.js.map} +1 -1
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.d.cts +1 -1
  43. package/dist/index.d.ts +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/schema/asset-filters.d.cts +7 -7
  46. package/dist/schema/asset-filters.d.ts +7 -7
  47. package/dist/schema/assets.cjs +1 -1
  48. package/dist/schema/assets.d.cts +63 -63
  49. package/dist/schema/assets.d.ts +63 -63
  50. package/dist/schema/assets.js +1 -1
  51. package/dist/schema/comments.cjs +1 -1
  52. package/dist/schema/comments.d.cts +59 -59
  53. package/dist/schema/comments.d.ts +59 -59
  54. package/dist/schema/comments.js +1 -1
  55. package/dist/schema/common.d.cts +9 -9
  56. package/dist/schema/common.d.ts +9 -9
  57. package/dist/schema/conversations.cjs +1 -1
  58. package/dist/schema/conversations.d.cts +57 -57
  59. package/dist/schema/conversations.d.ts +57 -57
  60. package/dist/schema/conversations.js +1 -1
  61. package/dist/schema/datasets.cjs +1 -1
  62. package/dist/schema/datasets.d.cts +137 -137
  63. package/dist/schema/datasets.d.ts +137 -137
  64. package/dist/schema/datasets.js +1 -1
  65. package/dist/schema/files.cjs +1 -1
  66. package/dist/schema/files.d.cts +88 -88
  67. package/dist/schema/files.d.ts +88 -88
  68. package/dist/schema/files.js +1 -1
  69. package/dist/schema/notifications.d.cts +106 -106
  70. package/dist/schema/notifications.d.ts +106 -106
  71. package/dist/schema/posts.cjs +1 -1
  72. package/dist/schema/posts.d.cts +91 -91
  73. package/dist/schema/posts.d.ts +91 -91
  74. package/dist/schema/posts.js +1 -1
  75. package/dist/schema/quests.cjs +1 -1
  76. package/dist/schema/quests.d.cts +192 -131
  77. package/dist/schema/quests.d.ts +192 -131
  78. package/dist/schema/quests.js +1 -1
  79. package/dist/schema/services.cjs +1 -1
  80. package/dist/schema/services.d.cts +132 -132
  81. package/dist/schema/services.d.ts +132 -132
  82. package/dist/schema/services.js +1 -1
  83. package/dist/schema/teams.cjs +1 -1
  84. package/dist/schema/teams.d.cts +15 -15
  85. package/dist/schema/teams.d.ts +15 -15
  86. package/dist/schema/teams.js +1 -1
  87. package/dist/utils/quest-submission.cjs +1 -1
  88. package/dist/utils/quest-submission.d.cts +4 -4
  89. package/dist/utils/quest-submission.d.ts +4 -4
  90. package/dist/utils/quest-submission.js +1 -1
  91. package/package.json +1 -1
  92. package/dist/chunk-W6AKVS4L.cjs +0 -2
  93. package/dist/chunk-W6AKVS4L.cjs.map +0 -1
  94. package/dist/chunk-XVN3DFMT.js +0 -2
  95. package/dist/chunk-XVN3DFMT.js.map +0 -1
@@ -243,14 +243,14 @@ declare const FileSchema: z.ZodObject<{
243
243
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
244
244
  state: z.ZodEnum<{
245
245
  success: "success";
246
- error: "error";
247
246
  queued: "queued";
248
247
  "in-progress": "in-progress";
249
248
  "timed-out": "timed-out";
249
+ error: "error";
250
250
  }>;
251
251
  source: z.ZodEnum<{
252
- web: "web";
253
252
  api: "api";
253
+ web: "web";
254
254
  }>;
255
255
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
256
256
  created_at: z.ZodString;
@@ -274,16 +274,16 @@ declare const FileSchema: z.ZodObject<{
274
274
  }, z.core.$strip>;
275
275
  }, z.core.$strip>;
276
276
  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
277
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
283
278
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
284
279
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
285
280
  text: z.ZodString;
286
281
  }, z.core.$strip>>>>;
282
+ monetization: z.ZodOptional<z.ZodEnum<{
283
+ none: "none";
284
+ "pay-to-unlock": "pay-to-unlock";
285
+ "pay-per-use": "pay-per-use";
286
+ }>>;
287
287
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
288
288
  license_id: z.ZodOptional<z.ZodString>;
289
289
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -307,8 +307,8 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
307
307
  name: z.ZodString;
308
308
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
309
  source: z.ZodDefault<z.ZodEnum<{
310
- web: "web";
311
310
  api: "api";
311
+ web: "web";
312
312
  }>>;
313
313
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
314
314
  organization: "organization";
@@ -403,16 +403,16 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
403
403
  reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
404
404
  }, z.core.$strip>;
405
405
  }, 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
406
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
412
407
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
413
408
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
414
409
  text: z.ZodString;
415
410
  }, z.core.$strip>>>>;
411
+ monetization: z.ZodOptional<z.ZodEnum<{
412
+ none: "none";
413
+ "pay-to-unlock": "pay-to-unlock";
414
+ "pay-per-use": "pay-per-use";
415
+ }>>;
416
416
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
417
417
  license_id: z.ZodOptional<z.ZodString>;
418
418
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -436,8 +436,8 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
436
436
  name: z.ZodString;
437
437
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
438
438
  source: z.ZodDefault<z.ZodEnum<{
439
- web: "web";
440
439
  api: "api";
440
+ web: "web";
441
441
  }>>;
442
442
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
443
443
  organization: "organization";
@@ -525,7 +525,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
525
525
  team_id: string | null;
526
526
  org_id: string | null;
527
527
  name: string;
528
- source: "web" | "api";
528
+ source: "api" | "web";
529
529
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
530
530
  attribution: {
531
531
  originality: "original" | "derivative" | "third-party";
@@ -563,12 +563,12 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
563
563
  source?: string | null | undefined;
564
564
  reply_to_comment_id?: string | null | undefined;
565
565
  };
566
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
567
566
  parent?: Record<string, any> | undefined;
568
567
  description?: {
569
568
  json: Record<string, any>;
570
569
  text: string;
571
570
  } | null | undefined;
571
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
572
572
  parent_id?: string | null | undefined;
573
573
  license_id?: string | undefined;
574
574
  price?: number | null | undefined;
@@ -586,7 +586,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
586
586
  team_id: string | null;
587
587
  org_id: string | null;
588
588
  name: string;
589
- source: "web" | "api";
589
+ source: "api" | "web";
590
590
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
591
591
  attribution: {
592
592
  originality: "original" | "derivative" | "third-party";
@@ -616,12 +616,12 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
616
616
  source?: string | null | undefined;
617
617
  reply_to_comment_id?: string | null | undefined;
618
618
  };
619
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
620
619
  parent?: Record<string, any> | undefined;
621
620
  description?: {
622
621
  json: Record<string, any>;
623
622
  text: string;
624
623
  } | null | undefined;
624
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
625
625
  parent_id?: string | null | undefined;
626
626
  license_id?: string | undefined;
627
627
  price?: number | null | undefined;
@@ -639,7 +639,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
639
639
  team_id: string | null;
640
640
  org_id: string | null;
641
641
  name: string;
642
- source: "web" | "api";
642
+ source: "api" | "web";
643
643
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
644
644
  attribution: {
645
645
  originality: "original" | "derivative" | "third-party";
@@ -677,12 +677,12 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
677
677
  source?: string | null | undefined;
678
678
  reply_to_comment_id?: string | null | undefined;
679
679
  };
680
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
681
680
  parent?: Record<string, any> | undefined;
682
681
  description?: {
683
682
  json: Record<string, any>;
684
683
  text: string;
685
684
  } | null | undefined;
685
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
686
686
  parent_id?: string | null | undefined;
687
687
  license_id?: string | undefined;
688
688
  price?: number | null | undefined;
@@ -700,7 +700,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
700
700
  team_id: string | null;
701
701
  org_id: string | null;
702
702
  name: string;
703
- source: "web" | "api";
703
+ source: "api" | "web";
704
704
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
705
705
  attribution: {
706
706
  originality: "original" | "derivative" | "third-party";
@@ -730,12 +730,12 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
730
730
  source?: string | null | undefined;
731
731
  reply_to_comment_id?: string | null | undefined;
732
732
  };
733
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
734
733
  parent?: Record<string, any> | undefined;
735
734
  description?: {
736
735
  json: Record<string, any>;
737
736
  text: string;
738
737
  } | null | undefined;
738
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
739
739
  parent_id?: string | null | undefined;
740
740
  license_id?: string | undefined;
741
741
  price?: number | null | undefined;
@@ -751,6 +751,26 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
751
751
  }>>;
752
752
  declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
753
753
  asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"file">>>;
754
+ org_id: z.ZodOptional<z.ZodUUID>;
755
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
756
+ metadata: z.ZodOptional<z.ZodObject<{
757
+ id: z.ZodUUID;
758
+ path: z.ZodString;
759
+ bucket: z.ZodEnum<{
760
+ "public-files": "public-files";
761
+ files: "files";
762
+ }>;
763
+ name: z.ZodString;
764
+ type: z.ZodString;
765
+ extension: z.ZodString;
766
+ size: z.ZodNumber;
767
+ width: z.ZodOptional<z.ZodNumber>;
768
+ height: z.ZodOptional<z.ZodNumber>;
769
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
770
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
771
+ }, z.core.$strip>>;
772
+ name: z.ZodOptional<z.ZodString>;
773
+ team_id: z.ZodOptional<z.ZodUUID>;
754
774
  visibility: z.ZodOptional<z.ZodEnum<{
755
775
  organization: "organization";
756
776
  public: "public";
@@ -758,6 +778,14 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
758
778
  monetized: "monetized";
759
779
  inherit: "inherit";
760
780
  }>>;
781
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
782
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
783
+ text: z.ZodString;
784
+ }, z.core.$strip>>>>;
785
+ source: z.ZodOptional<z.ZodEnum<{
786
+ api: "api";
787
+ web: "web";
788
+ }>>;
761
789
  monetization: z.ZodOptional<z.ZodEnum<{
762
790
  none: "none";
763
791
  "pay-to-unlock": "pay-to-unlock";
@@ -794,23 +822,11 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
794
822
  }, z.core.$strip>>;
795
823
  state: z.ZodOptional<z.ZodEnum<{
796
824
  success: "success";
797
- error: "error";
798
825
  queued: "queued";
799
826
  "in-progress": "in-progress";
800
827
  "timed-out": "timed-out";
828
+ error: "error";
801
829
  }>>;
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
830
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
815
831
  license_id: z.ZodOptional<z.ZodString>;
816
832
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -829,28 +845,34 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
829
845
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
830
846
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
831
847
  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
848
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
849
849
  last_updated: z.ZodDefault<z.ZodString>;
850
850
  }, z.core.$strip>, z.ZodTransform<{
851
851
  last_updated: string;
852
852
  asset_type?: "file" | undefined;
853
+ org_id?: string | undefined;
854
+ parent?: Record<string, any> | undefined;
855
+ metadata?: {
856
+ id: string;
857
+ path: string;
858
+ bucket: "public-files" | "files";
859
+ name: string;
860
+ type: string;
861
+ extension: string;
862
+ size: number;
863
+ width?: number | undefined;
864
+ height?: number | undefined;
865
+ source?: string | null | undefined;
866
+ reply_to_comment_id?: string | null | undefined;
867
+ } | undefined;
868
+ name?: string | undefined;
869
+ team_id?: string | undefined;
853
870
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
871
+ description?: {
872
+ json: Record<string, any>;
873
+ text: string;
874
+ } | null | undefined;
875
+ source?: "api" | "web" | undefined;
854
876
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
855
877
  attribution?: {
856
878
  originality: "original" | "derivative" | "third-party";
@@ -871,16 +893,7 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
871
893
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
872
894
  doi?: string | null | undefined;
873
895
  } | 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;
896
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
884
897
  parent_id?: string | null | undefined;
885
898
  license_id?: string | undefined;
886
899
  license?: Record<string, any> | undefined;
@@ -893,6 +906,12 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
893
906
  stripe_product_id?: string | null | undefined;
894
907
  stripe_price_id?: string | null | undefined;
895
908
  stripe_meter_id?: string | null | undefined;
909
+ preview?: Record<string, any>[] | null | undefined;
910
+ }, {
911
+ last_updated: string;
912
+ asset_type?: "file" | undefined;
913
+ org_id?: string | undefined;
914
+ parent?: Record<string, any> | undefined;
896
915
  metadata?: {
897
916
  id: string;
898
917
  path: string;
@@ -906,11 +925,14 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
906
925
  source?: string | null | undefined;
907
926
  reply_to_comment_id?: string | null | undefined;
908
927
  } | undefined;
909
- preview?: Record<string, any>[] | null | undefined;
910
- }, {
911
- last_updated: string;
912
- asset_type?: "file" | undefined;
928
+ name?: string | undefined;
929
+ team_id?: string | undefined;
913
930
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
931
+ description?: {
932
+ json: Record<string, any>;
933
+ text: string;
934
+ } | null | undefined;
935
+ source?: "api" | "web" | undefined;
914
936
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
915
937
  attribution?: {
916
938
  originality: "original" | "derivative" | "third-party";
@@ -931,16 +953,7 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
931
953
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
932
954
  doi?: string | null | undefined;
933
955
  } | 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;
956
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
944
957
  parent_id?: string | null | undefined;
945
958
  license_id?: string | undefined;
946
959
  license?: Record<string, any> | undefined;
@@ -953,19 +966,6 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
953
966
  stripe_product_id?: string | null | undefined;
954
967
  stripe_price_id?: string | null | undefined;
955
968
  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
969
  preview?: Record<string, any>[] | null | undefined;
970
970
  }>>;
971
971
 
@@ -1,2 +1,2 @@
1
- export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'../chunk-ASLHRT77.js';import'../chunk-PB4XG5WM.js';import'../chunk-YTIUJ72Q.js';import'../chunk-42WKTHH5.js';import'../chunk-G6GCUGMM.js';import'../chunk-3BZRQYRC.js';import'../chunk-DUBPWSCA.js';import'../chunk-42ADEGDM.js';//# sourceMappingURL=files.js.map
1
+ export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'../chunk-4TQRYYVQ.js';import'../chunk-FDCVNMMO.js';import'../chunk-VC4DZZ3C.js';import'../chunk-42WKTHH5.js';import'../chunk-G6GCUGMM.js';import'../chunk-42ADEGDM.js';import'../chunk-DUBPWSCA.js';import'../chunk-3BZRQYRC.js';//# sourceMappingURL=files.js.map
2
2
  //# sourceMappingURL=files.js.map