@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
@@ -22,10 +22,10 @@ declare const DatasetRefsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
22
22
  }>;
23
23
  asset_type: z.ZodOptional<z.ZodEnum<{
24
24
  user: "user";
25
- file: "file";
26
25
  organization: "organization";
27
26
  team: "team";
28
27
  dataset: "dataset";
28
+ file: "file";
29
29
  service: "service";
30
30
  route: "route";
31
31
  post: "post";
@@ -71,10 +71,10 @@ declare const EnrichedDatasetSchemaFieldSchema: z.ZodObject<{
71
71
  }>>>;
72
72
  asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
73
73
  user: "user";
74
- file: "file";
75
74
  organization: "organization";
76
75
  team: "team";
77
76
  dataset: "dataset";
77
+ file: "file";
78
78
  service: "service";
79
79
  route: "route";
80
80
  post: "post";
@@ -89,10 +89,10 @@ declare const ResolvedRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
89
89
  id: z.ZodUUID;
90
90
  asset_type: z.ZodEnum<{
91
91
  user: "user";
92
- file: "file";
93
92
  organization: "organization";
94
93
  team: "team";
95
94
  dataset: "dataset";
95
+ file: "file";
96
96
  service: "service";
97
97
  route: "route";
98
98
  post: "post";
@@ -118,10 +118,10 @@ declare const ResolvedRefsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodStri
118
118
  id: z.ZodUUID;
119
119
  asset_type: z.ZodEnum<{
120
120
  user: "user";
121
- file: "file";
122
121
  organization: "organization";
123
122
  team: "team";
124
123
  dataset: "dataset";
124
+ file: "file";
125
125
  service: "service";
126
126
  route: "route";
127
127
  post: "post";
@@ -383,14 +383,14 @@ declare const DatasetSchema: z.ZodObject<{
383
383
  }, z.core.$strip>;
384
384
  state: z.ZodEnum<{
385
385
  success: "success";
386
- error: "error";
387
386
  queued: "queued";
388
387
  "in-progress": "in-progress";
389
388
  "timed-out": "timed-out";
389
+ error: "error";
390
390
  }>;
391
391
  source: z.ZodEnum<{
392
- web: "web";
393
392
  api: "api";
393
+ web: "web";
394
394
  }>;
395
395
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
396
396
  created_at: z.ZodString;
@@ -407,10 +407,10 @@ declare const DatasetSchema: z.ZodObject<{
407
407
  }>;
408
408
  asset_type: z.ZodOptional<z.ZodEnum<{
409
409
  user: "user";
410
- file: "file";
411
410
  organization: "organization";
412
411
  team: "team";
413
412
  dataset: "dataset";
413
+ file: "file";
414
414
  service: "service";
415
415
  route: "route";
416
416
  post: "post";
@@ -438,16 +438,16 @@ declare const DatasetSchema: z.ZodObject<{
438
438
  preview: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
439
439
  }, z.core.$strip>;
440
440
  declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
441
- monetization: z.ZodOptional<z.ZodEnum<{
442
- none: "none";
443
- "pay-to-unlock": "pay-to-unlock";
444
- "pay-per-use": "pay-per-use";
445
- }>>;
446
441
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
447
442
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
448
443
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
449
444
  text: z.ZodString;
450
445
  }, z.core.$strip>>>>;
446
+ monetization: z.ZodOptional<z.ZodEnum<{
447
+ none: "none";
448
+ "pay-to-unlock": "pay-to-unlock";
449
+ "pay-per-use": "pay-per-use";
450
+ }>>;
451
451
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
452
452
  license_id: z.ZodOptional<z.ZodString>;
453
453
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -471,14 +471,14 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
471
471
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
472
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
473
473
  success: "success";
474
- error: "error";
475
474
  queued: "queued";
476
475
  "in-progress": "in-progress";
477
476
  "timed-out": "timed-out";
477
+ error: "error";
478
478
  }>>>;
479
479
  source: z.ZodDefault<z.ZodEnum<{
480
- web: "web";
481
480
  api: "api";
481
+ web: "web";
482
482
  }>>;
483
483
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
484
484
  organization: "organization";
@@ -566,10 +566,10 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
566
566
  }>;
567
567
  asset_type: z.ZodOptional<z.ZodEnum<{
568
568
  user: "user";
569
- file: "file";
570
569
  organization: "organization";
571
570
  team: "team";
572
571
  dataset: "dataset";
572
+ file: "file";
573
573
  service: "service";
574
574
  route: "route";
575
575
  post: "post";
@@ -600,8 +600,8 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
600
600
  team_id: string | null;
601
601
  org_id: string | null;
602
602
  name: string;
603
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
604
- source: "web" | "api";
603
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
604
+ source: "api" | "web";
605
605
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
606
606
  attribution: {
607
607
  originality: "original" | "derivative" | "third-party";
@@ -638,7 +638,7 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
638
638
  bucket: "public-files" | "files";
639
639
  refs?: Record<string, {
640
640
  kind: "action" | "asset";
641
- asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
641
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
642
642
  }> | null | undefined;
643
643
  enum_columns?: Record<string, {
644
644
  values: string[];
@@ -647,12 +647,12 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
647
647
  reply_to_comment_id?: string | null | undefined;
648
648
  };
649
649
  preview: Record<string, any>[];
650
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
651
650
  parent?: Record<string, any> | undefined;
652
651
  description?: {
653
652
  json: Record<string, any>;
654
653
  text: string;
655
654
  } | null | undefined;
655
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
656
656
  parent_id?: string | null | undefined;
657
657
  license_id?: string | undefined;
658
658
  price?: number | null | undefined;
@@ -669,8 +669,8 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
669
669
  team_id: string | null;
670
670
  org_id: string | null;
671
671
  name: string;
672
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
673
- source: "web" | "api";
672
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
673
+ source: "api" | "web";
674
674
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
675
675
  attribution: {
676
676
  originality: "original" | "derivative" | "third-party";
@@ -707,7 +707,7 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
707
707
  bucket: "public-files" | "files";
708
708
  refs?: Record<string, {
709
709
  kind: "action" | "asset";
710
- asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
710
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
711
711
  }> | null | undefined;
712
712
  enum_columns?: Record<string, {
713
713
  values: string[];
@@ -716,12 +716,12 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
716
716
  reply_to_comment_id?: string | null | undefined;
717
717
  };
718
718
  preview: Record<string, any>[];
719
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
720
719
  parent?: Record<string, any> | undefined;
721
720
  description?: {
722
721
  json: Record<string, any>;
723
722
  text: string;
724
723
  } | null | undefined;
724
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
725
725
  parent_id?: string | null | undefined;
726
726
  license_id?: string | undefined;
727
727
  price?: number | null | undefined;
@@ -735,16 +735,16 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
735
735
  name_url_slug?: string | null | undefined;
736
736
  }>>;
737
737
  declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
738
- monetization: z.ZodOptional<z.ZodEnum<{
739
- none: "none";
740
- "pay-to-unlock": "pay-to-unlock";
741
- "pay-per-use": "pay-per-use";
742
- }>>;
743
738
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
744
739
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
745
740
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
746
741
  text: z.ZodString;
747
742
  }, z.core.$strip>>>>;
743
+ monetization: z.ZodOptional<z.ZodEnum<{
744
+ none: "none";
745
+ "pay-to-unlock": "pay-to-unlock";
746
+ "pay-per-use": "pay-per-use";
747
+ }>>;
748
748
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
749
749
  license_id: z.ZodOptional<z.ZodString>;
750
750
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -768,14 +768,14 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
768
768
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
769
769
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
770
770
  success: "success";
771
- error: "error";
772
771
  queued: "queued";
773
772
  "in-progress": "in-progress";
774
773
  "timed-out": "timed-out";
774
+ error: "error";
775
775
  }>>>;
776
776
  source: z.ZodDefault<z.ZodEnum<{
777
- web: "web";
778
777
  api: "api";
778
+ web: "web";
779
779
  }>>;
780
780
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
781
781
  organization: "organization";
@@ -863,10 +863,10 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
863
863
  }>;
864
864
  asset_type: z.ZodOptional<z.ZodEnum<{
865
865
  user: "user";
866
- file: "file";
867
866
  organization: "organization";
868
867
  team: "team";
869
868
  dataset: "dataset";
869
+ file: "file";
870
870
  service: "service";
871
871
  route: "route";
872
872
  post: "post";
@@ -887,8 +887,8 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
887
887
  team_id: string | null;
888
888
  org_id: string | null;
889
889
  name: string;
890
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
891
- source: "web" | "api";
890
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
891
+ source: "api" | "web";
892
892
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
893
893
  attribution: {
894
894
  originality: "original" | "derivative" | "third-party";
@@ -918,7 +918,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
918
918
  columns: string[];
919
919
  refs?: Record<string, {
920
920
  kind: "action" | "asset";
921
- asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
921
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
922
922
  }> | null | undefined;
923
923
  enum_columns?: Record<string, {
924
924
  values: string[];
@@ -927,12 +927,12 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
927
927
  reply_to_comment_id?: string | null | undefined;
928
928
  };
929
929
  preview: Record<string, any>[];
930
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
931
930
  parent?: Record<string, any> | undefined;
932
931
  description?: {
933
932
  json: Record<string, any>;
934
933
  text: string;
935
934
  } | null | undefined;
935
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
936
936
  parent_id?: string | null | undefined;
937
937
  license_id?: string | undefined;
938
938
  price?: number | null | undefined;
@@ -949,8 +949,8 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
949
949
  team_id: string | null;
950
950
  org_id: string | null;
951
951
  name: string;
952
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
953
- source: "web" | "api";
952
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
953
+ source: "api" | "web";
954
954
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
955
955
  attribution: {
956
956
  originality: "original" | "derivative" | "third-party";
@@ -980,7 +980,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
980
980
  columns: string[];
981
981
  refs?: Record<string, {
982
982
  kind: "action" | "asset";
983
- asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
983
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
984
984
  }> | null | undefined;
985
985
  enum_columns?: Record<string, {
986
986
  values: string[];
@@ -989,12 +989,12 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
989
989
  reply_to_comment_id?: string | null | undefined;
990
990
  };
991
991
  preview: Record<string, any>[];
992
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
993
992
  parent?: Record<string, any> | undefined;
994
993
  description?: {
995
994
  json: Record<string, any>;
996
995
  text: string;
997
996
  } | null | undefined;
997
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
998
998
  parent_id?: string | null | undefined;
999
999
  license_id?: string | undefined;
1000
1000
  price?: number | null | undefined;
@@ -1008,6 +1008,49 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
1008
1008
  name_url_slug?: string | null | undefined;
1009
1009
  }>>;
1010
1010
  declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
1011
+ org_id: z.ZodOptional<z.ZodUUID>;
1012
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1013
+ metadata: z.ZodOptional<z.ZodObject<{
1014
+ table_name: z.ZodString;
1015
+ schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
1016
+ columns: z.ZodArray<z.ZodString>;
1017
+ refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1018
+ kind: z.ZodEnum<{
1019
+ action: "action";
1020
+ asset: "asset";
1021
+ }>;
1022
+ asset_type: z.ZodOptional<z.ZodEnum<{
1023
+ user: "user";
1024
+ organization: "organization";
1025
+ team: "team";
1026
+ dataset: "dataset";
1027
+ file: "file";
1028
+ service: "service";
1029
+ route: "route";
1030
+ post: "post";
1031
+ quest: "quest";
1032
+ comment: "comment";
1033
+ conversation: "conversation";
1034
+ }>>;
1035
+ }, z.core.$strip>>>>;
1036
+ enum_columns: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1037
+ values: z.ZodArray<z.ZodString>;
1038
+ }, z.core.$strip>>>>;
1039
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1040
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1041
+ type: z.ZodOptional<z.ZodString>;
1042
+ size: z.ZodOptional<z.ZodNumber>;
1043
+ path: z.ZodOptional<z.ZodString>;
1044
+ extension: z.ZodOptional<z.ZodString>;
1045
+ name: z.ZodOptional<z.ZodString>;
1046
+ id: z.ZodOptional<z.ZodUUID>;
1047
+ bucket: z.ZodOptional<z.ZodEnum<{
1048
+ "public-files": "public-files";
1049
+ files: "files";
1050
+ }>>;
1051
+ }, z.core.$strip>>;
1052
+ name: z.ZodOptional<z.ZodString>;
1053
+ team_id: z.ZodOptional<z.ZodUUID>;
1011
1054
  visibility: z.ZodOptional<z.ZodEnum<{
1012
1055
  organization: "organization";
1013
1056
  public: "public";
@@ -1015,6 +1058,14 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
1015
1058
  monetized: "monetized";
1016
1059
  inherit: "inherit";
1017
1060
  }>>;
1061
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1062
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
1063
+ text: z.ZodString;
1064
+ }, z.core.$strip>>>>;
1065
+ source: z.ZodOptional<z.ZodEnum<{
1066
+ api: "api";
1067
+ web: "web";
1068
+ }>>;
1018
1069
  monetization: z.ZodOptional<z.ZodEnum<{
1019
1070
  none: "none";
1020
1071
  "pay-to-unlock": "pay-to-unlock";
@@ -1051,23 +1102,11 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
1051
1102
  }, z.core.$strip>>;
1052
1103
  state: z.ZodOptional<z.ZodEnum<{
1053
1104
  success: "success";
1054
- error: "error";
1055
1105
  queued: "queued";
1056
1106
  "in-progress": "in-progress";
1057
1107
  "timed-out": "timed-out";
1108
+ error: "error";
1058
1109
  }>>;
1059
- source: z.ZodOptional<z.ZodEnum<{
1060
- web: "web";
1061
- api: "api";
1062
- }>>;
1063
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1064
- name: z.ZodOptional<z.ZodString>;
1065
- org_id: z.ZodOptional<z.ZodUUID>;
1066
- team_id: z.ZodOptional<z.ZodUUID>;
1067
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1068
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
1069
- text: z.ZodString;
1070
- }, z.core.$strip>>>>;
1071
1110
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
1072
1111
  license_id: z.ZodOptional<z.ZodString>;
1073
1112
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -1086,52 +1125,43 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
1086
1125
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1087
1126
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1088
1127
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1089
- metadata: z.ZodOptional<z.ZodObject<{
1090
- table_name: z.ZodString;
1091
- schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
1092
- columns: z.ZodArray<z.ZodString>;
1093
- refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1094
- kind: z.ZodEnum<{
1095
- action: "action";
1096
- asset: "asset";
1097
- }>;
1098
- asset_type: z.ZodOptional<z.ZodEnum<{
1099
- user: "user";
1100
- file: "file";
1101
- organization: "organization";
1102
- team: "team";
1103
- dataset: "dataset";
1104
- service: "service";
1105
- route: "route";
1106
- post: "post";
1107
- quest: "quest";
1108
- comment: "comment";
1109
- conversation: "conversation";
1110
- }>>;
1111
- }, z.core.$strip>>>>;
1112
- enum_columns: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1113
- values: z.ZodArray<z.ZodString>;
1114
- }, z.core.$strip>>>>;
1115
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1116
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1117
- type: z.ZodOptional<z.ZodString>;
1118
- size: z.ZodOptional<z.ZodNumber>;
1119
- path: z.ZodOptional<z.ZodString>;
1120
- extension: z.ZodOptional<z.ZodString>;
1121
- name: z.ZodOptional<z.ZodString>;
1122
- id: z.ZodOptional<z.ZodUUID>;
1123
- bucket: z.ZodOptional<z.ZodEnum<{
1124
- "public-files": "public-files";
1125
- files: "files";
1126
- }>>;
1127
- }, z.core.$strip>>;
1128
1128
  preview: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1129
1129
  asset_type: z.ZodDefault<z.ZodLiteral<"dataset">>;
1130
1130
  last_updated: z.ZodDefault<z.ZodString>;
1131
1131
  }, z.core.$strip>, z.ZodTransform<{
1132
1132
  asset_type: "dataset";
1133
1133
  last_updated: string;
1134
+ org_id?: string | undefined;
1135
+ parent?: Record<string, any> | undefined;
1136
+ metadata?: {
1137
+ table_name: string;
1138
+ schema: "datasets";
1139
+ columns: string[];
1140
+ refs?: Record<string, {
1141
+ kind: "action" | "asset";
1142
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1143
+ }> | null | undefined;
1144
+ enum_columns?: Record<string, {
1145
+ values: string[];
1146
+ }> | null | undefined;
1147
+ source?: string | null | undefined;
1148
+ reply_to_comment_id?: string | null | undefined;
1149
+ type?: string | undefined;
1150
+ size?: number | undefined;
1151
+ path?: string | undefined;
1152
+ extension?: string | undefined;
1153
+ name?: string | undefined;
1154
+ id?: string | undefined;
1155
+ bucket?: "public-files" | "files" | undefined;
1156
+ } | undefined;
1157
+ name?: string | undefined;
1158
+ team_id?: string | undefined;
1134
1159
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1160
+ description?: {
1161
+ json: Record<string, any>;
1162
+ text: string;
1163
+ } | null | undefined;
1164
+ source?: "api" | "web" | undefined;
1135
1165
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1136
1166
  attribution?: {
1137
1167
  originality: "original" | "derivative" | "third-party";
@@ -1152,16 +1182,7 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
1152
1182
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
1153
1183
  doi?: string | null | undefined;
1154
1184
  } | undefined;
1155
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1156
- source?: "web" | "api" | undefined;
1157
- parent?: Record<string, any> | undefined;
1158
- name?: string | undefined;
1159
- org_id?: string | undefined;
1160
- team_id?: string | undefined;
1161
- description?: {
1162
- json: Record<string, any>;
1163
- text: string;
1164
- } | null | undefined;
1185
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1165
1186
  parent_id?: string | null | undefined;
1166
1187
  license_id?: string | undefined;
1167
1188
  license?: Record<string, any> | undefined;
@@ -1174,13 +1195,19 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
1174
1195
  stripe_product_id?: string | null | undefined;
1175
1196
  stripe_price_id?: string | null | undefined;
1176
1197
  stripe_meter_id?: string | null | undefined;
1198
+ preview?: Record<string, any>[] | undefined;
1199
+ }, {
1200
+ asset_type: "dataset";
1201
+ last_updated: string;
1202
+ org_id?: string | undefined;
1203
+ parent?: Record<string, any> | undefined;
1177
1204
  metadata?: {
1178
1205
  table_name: string;
1179
1206
  schema: "datasets";
1180
1207
  columns: string[];
1181
1208
  refs?: Record<string, {
1182
1209
  kind: "action" | "asset";
1183
- asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1210
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1184
1211
  }> | null | undefined;
1185
1212
  enum_columns?: Record<string, {
1186
1213
  values: string[];
@@ -1195,11 +1222,14 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
1195
1222
  id?: string | undefined;
1196
1223
  bucket?: "public-files" | "files" | undefined;
1197
1224
  } | undefined;
1198
- preview?: Record<string, any>[] | undefined;
1199
- }, {
1200
- asset_type: "dataset";
1201
- last_updated: string;
1225
+ name?: string | undefined;
1226
+ team_id?: string | undefined;
1202
1227
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1228
+ description?: {
1229
+ json: Record<string, any>;
1230
+ text: string;
1231
+ } | null | undefined;
1232
+ source?: "api" | "web" | undefined;
1203
1233
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1204
1234
  attribution?: {
1205
1235
  originality: "original" | "derivative" | "third-party";
@@ -1220,16 +1250,7 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
1220
1250
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
1221
1251
  doi?: string | null | undefined;
1222
1252
  } | undefined;
1223
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1224
- source?: "web" | "api" | undefined;
1225
- parent?: Record<string, any> | undefined;
1226
- name?: string | undefined;
1227
- org_id?: string | undefined;
1228
- team_id?: string | undefined;
1229
- description?: {
1230
- json: Record<string, any>;
1231
- text: string;
1232
- } | null | undefined;
1253
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1233
1254
  parent_id?: string | null | undefined;
1234
1255
  license_id?: string | undefined;
1235
1256
  license?: Record<string, any> | undefined;
@@ -1242,27 +1263,6 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
1242
1263
  stripe_product_id?: string | null | undefined;
1243
1264
  stripe_price_id?: string | null | undefined;
1244
1265
  stripe_meter_id?: string | null | undefined;
1245
- metadata?: {
1246
- table_name: string;
1247
- schema: "datasets";
1248
- columns: string[];
1249
- refs?: Record<string, {
1250
- kind: "action" | "asset";
1251
- asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1252
- }> | null | undefined;
1253
- enum_columns?: Record<string, {
1254
- values: string[];
1255
- }> | null | undefined;
1256
- source?: string | null | undefined;
1257
- reply_to_comment_id?: string | null | undefined;
1258
- type?: string | undefined;
1259
- size?: number | undefined;
1260
- path?: string | undefined;
1261
- extension?: string | undefined;
1262
- name?: string | undefined;
1263
- id?: string | undefined;
1264
- bucket?: "public-files" | "files" | undefined;
1265
- } | undefined;
1266
1266
  preview?: Record<string, any>[] | undefined;
1267
1267
  }>>;
1268
1268
 
@@ -1,2 +1,2 @@
1
- export{h as CreateDatasetFromFileSchema,i as CreateDatasetFromSchemaSchema,c as DatasetEnumColumnsSchema,b as DatasetRefsSchema,g as DatasetSchema,d as EnrichedDatasetSchemaFieldSchema,a as RefKindSchema,e as ResolvedRefSchema,f as ResolvedRefsSchema,j as updateDatasetSchema}from'../chunk-3C7PGJ33.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=datasets.js.map
1
+ export{h as CreateDatasetFromFileSchema,i as CreateDatasetFromSchemaSchema,c as DatasetEnumColumnsSchema,b as DatasetRefsSchema,g as DatasetSchema,d as EnrichedDatasetSchemaFieldSchema,a as RefKindSchema,e as ResolvedRefSchema,f as ResolvedRefsSchema,j as updateDatasetSchema}from'../chunk-F6PWGWDJ.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=datasets.js.map
2
2
  //# sourceMappingURL=datasets.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkW6MBAIKZ_cjs=require('../chunk-W6MBAIKZ.cjs');require('../chunk-7YG2YDXN.cjs'),require('../chunk-LD5G6GFH.cjs'),require('../chunk-ZRJUBEIK.cjs'),require('../chunk-L6SVUDFH.cjs'),require('../chunk-MNECKGIP.cjs'),require('../chunk-7HF5VHUN.cjs'),require('../chunk-JRBBNFFI.cjs');Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunkW6MBAIKZ_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunkW6MBAIKZ_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunkW6MBAIKZ_cjs.c}});//# sourceMappingURL=files.cjs.map
1
+ 'use strict';var chunkPXT4NFAJ_cjs=require('../chunk-PXT4NFAJ.cjs');require('../chunk-TB7MTWMO.cjs'),require('../chunk-ICEXKHCC.cjs'),require('../chunk-ZRJUBEIK.cjs'),require('../chunk-L6SVUDFH.cjs'),require('../chunk-JRBBNFFI.cjs'),require('../chunk-7HF5VHUN.cjs'),require('../chunk-MNECKGIP.cjs');Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunkPXT4NFAJ_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunkPXT4NFAJ_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunkPXT4NFAJ_cjs.c}});//# sourceMappingURL=files.cjs.map
2
2
  //# sourceMappingURL=files.cjs.map