@ourofoundation/ouro-js 3.7.7 → 3.7.8

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 (93) hide show
  1. package/dist/{chunk-F6PWGWDJ.js → chunk-3C7PGJ33.js} +2 -2
  2. package/dist/{chunk-F6PWGWDJ.js.map → chunk-3C7PGJ33.js.map} +1 -1
  3. package/dist/{chunk-HZDBAPRY.js → chunk-3OUJXTJZ.js} +2 -2
  4. package/dist/{chunk-HZDBAPRY.js.map → chunk-3OUJXTJZ.js.map} +1 -1
  5. package/dist/{chunk-SZ5PIWEE.cjs → chunk-3RFYEL3A.cjs} +2 -2
  6. package/dist/{chunk-SZ5PIWEE.cjs.map → chunk-3RFYEL3A.cjs.map} +1 -1
  7. package/dist/{chunk-SIZVKGUT.js → chunk-4NAPVNIX.js} +2 -2
  8. package/dist/{chunk-SIZVKGUT.js.map → chunk-4NAPVNIX.js.map} +1 -1
  9. package/dist/{chunk-4CXHZFX4.cjs → chunk-66AAHP6X.cjs} +2 -2
  10. package/dist/{chunk-4CXHZFX4.cjs.map → chunk-66AAHP6X.cjs.map} +1 -1
  11. package/dist/{chunk-TB7MTWMO.cjs → chunk-7YG2YDXN.cjs} +2 -2
  12. package/dist/{chunk-TB7MTWMO.cjs.map → chunk-7YG2YDXN.cjs.map} +1 -1
  13. package/dist/{chunk-4TQRYYVQ.js → chunk-ASLHRT77.js} +2 -2
  14. package/dist/{chunk-4TQRYYVQ.js.map → chunk-ASLHRT77.js.map} +1 -1
  15. package/dist/{chunk-EP5DBAZQ.cjs → chunk-B3OK6NNR.cjs} +2 -2
  16. package/dist/{chunk-EP5DBAZQ.cjs.map → chunk-B3OK6NNR.cjs.map} +1 -1
  17. package/dist/{chunk-JAVIKBEC.js → chunk-EMDUI7HF.js} +2 -2
  18. package/dist/{chunk-JAVIKBEC.js.map → chunk-EMDUI7HF.js.map} +1 -1
  19. package/dist/{chunk-BUO2Y3O3.js → chunk-KHUEMWG2.js} +2 -2
  20. package/dist/{chunk-BUO2Y3O3.js.map → chunk-KHUEMWG2.js.map} +1 -1
  21. package/dist/{chunk-ICEXKHCC.cjs → chunk-LD5G6GFH.cjs} +2 -2
  22. package/dist/{chunk-ICEXKHCC.cjs.map → chunk-LD5G6GFH.cjs.map} +1 -1
  23. package/dist/{chunk-FDCVNMMO.js → chunk-PB4XG5WM.js} +2 -2
  24. package/dist/{chunk-FDCVNMMO.js.map → chunk-PB4XG5WM.js.map} +1 -1
  25. package/dist/{chunk-2KQZYT5W.cjs → chunk-QWD7POET.cjs} +2 -2
  26. package/dist/{chunk-2KQZYT5W.cjs.map → chunk-QWD7POET.cjs.map} +1 -1
  27. package/dist/{chunk-QJ3DLN2Y.cjs → chunk-UDTRH3OQ.cjs} +2 -2
  28. package/dist/{chunk-QJ3DLN2Y.cjs.map → chunk-UDTRH3OQ.cjs.map} +1 -1
  29. package/dist/{chunk-6DS2XXIF.cjs → chunk-UVVPXYJA.cjs} +2 -2
  30. package/dist/{chunk-6DS2XXIF.cjs.map → chunk-UVVPXYJA.cjs.map} +1 -1
  31. package/dist/chunk-W6AKVS4L.cjs +2 -0
  32. package/dist/chunk-W6AKVS4L.cjs.map +1 -0
  33. package/dist/{chunk-PXT4NFAJ.cjs → chunk-W6MBAIKZ.cjs} +2 -2
  34. package/dist/{chunk-PXT4NFAJ.cjs.map → chunk-W6MBAIKZ.cjs.map} +1 -1
  35. package/dist/chunk-XVN3DFMT.js +2 -0
  36. package/dist/chunk-XVN3DFMT.js.map +1 -0
  37. package/dist/{chunk-732QBVGP.js → chunk-Y6TOO6ET.js} +2 -2
  38. package/dist/{chunk-732QBVGP.js.map → chunk-Y6TOO6ET.js.map} +1 -1
  39. package/dist/{chunk-VC4DZZ3C.js → chunk-YTIUJ72Q.js} +2 -2
  40. package/dist/{chunk-VC4DZZ3C.js.map → chunk-YTIUJ72Q.js.map} +1 -1
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.js +1 -1
  43. package/dist/schema/asset-filters.d.cts +7 -7
  44. package/dist/schema/asset-filters.d.ts +7 -7
  45. package/dist/schema/assets.cjs +1 -1
  46. package/dist/schema/assets.d.cts +63 -63
  47. package/dist/schema/assets.d.ts +63 -63
  48. package/dist/schema/assets.js +1 -1
  49. package/dist/schema/comments.cjs +1 -1
  50. package/dist/schema/comments.d.cts +59 -59
  51. package/dist/schema/comments.d.ts +59 -59
  52. package/dist/schema/comments.js +1 -1
  53. package/dist/schema/common.d.cts +9 -9
  54. package/dist/schema/common.d.ts +9 -9
  55. package/dist/schema/conversations.cjs +1 -1
  56. package/dist/schema/conversations.d.cts +57 -57
  57. package/dist/schema/conversations.d.ts +57 -57
  58. package/dist/schema/conversations.js +1 -1
  59. package/dist/schema/datasets.cjs +1 -1
  60. package/dist/schema/datasets.d.cts +137 -137
  61. package/dist/schema/datasets.d.ts +137 -137
  62. package/dist/schema/datasets.js +1 -1
  63. package/dist/schema/files.cjs +1 -1
  64. package/dist/schema/files.d.cts +88 -88
  65. package/dist/schema/files.d.ts +88 -88
  66. package/dist/schema/files.js +1 -1
  67. package/dist/schema/notifications.d.cts +106 -106
  68. package/dist/schema/notifications.d.ts +106 -106
  69. package/dist/schema/posts.cjs +1 -1
  70. package/dist/schema/posts.d.cts +91 -91
  71. package/dist/schema/posts.d.ts +91 -91
  72. package/dist/schema/posts.js +1 -1
  73. package/dist/schema/quests.cjs +1 -1
  74. package/dist/schema/quests.d.cts +262 -273
  75. package/dist/schema/quests.d.ts +262 -273
  76. package/dist/schema/quests.js +1 -1
  77. package/dist/schema/services.cjs +1 -1
  78. package/dist/schema/services.d.cts +132 -132
  79. package/dist/schema/services.d.ts +132 -132
  80. package/dist/schema/services.js +1 -1
  81. package/dist/schema/teams.cjs +1 -1
  82. package/dist/schema/teams.d.cts +15 -15
  83. package/dist/schema/teams.d.ts +15 -15
  84. package/dist/schema/teams.js +1 -1
  85. package/dist/utils/quest-submission.cjs +1 -1
  86. package/dist/utils/quest-submission.d.cts +4 -4
  87. package/dist/utils/quest-submission.d.ts +4 -4
  88. package/dist/utils/quest-submission.js +1 -1
  89. package/package.json +1 -1
  90. package/dist/chunk-BTHFK5MC.js +0 -2
  91. package/dist/chunk-BTHFK5MC.js.map +0 -1
  92. package/dist/chunk-ZTTLI5V5.cjs +0 -2
  93. package/dist/chunk-ZTTLI5V5.cjs.map +0 -1
@@ -2,10 +2,10 @@ import { z } from 'zod';
2
2
 
3
3
  declare const AssetTypeSchema: z.ZodEnum<{
4
4
  user: "user";
5
+ file: "file";
5
6
  organization: "organization";
6
7
  team: "team";
7
8
  dataset: "dataset";
8
- file: "file";
9
9
  service: "service";
10
10
  route: "route";
11
11
  post: "post";
@@ -43,10 +43,10 @@ declare const EmbeddingSchema: z.ZodObject<{
43
43
  content: z.ZodString;
44
44
  asset_type: z.ZodEnum<{
45
45
  user: "user";
46
+ file: "file";
46
47
  organization: "organization";
47
48
  team: "team";
48
49
  dataset: "dataset";
49
- file: "file";
50
50
  service: "service";
51
51
  route: "route";
52
52
  post: "post";
@@ -76,10 +76,10 @@ declare const ConnectionSchema: z.ZodObject<{
76
76
  target_id: z.ZodUUID;
77
77
  source_asset_type: z.ZodEnum<{
78
78
  user: "user";
79
+ file: "file";
79
80
  organization: "organization";
80
81
  team: "team";
81
82
  dataset: "dataset";
82
- file: "file";
83
83
  service: "service";
84
84
  route: "route";
85
85
  post: "post";
@@ -89,10 +89,10 @@ declare const ConnectionSchema: z.ZodObject<{
89
89
  }>;
90
90
  target_asset_type: z.ZodEnum<{
91
91
  user: "user";
92
+ file: "file";
92
93
  organization: "organization";
93
94
  team: "team";
94
95
  dataset: "dataset";
95
- file: "file";
96
96
  service: "service";
97
97
  route: "route";
98
98
  post: "post";
@@ -106,15 +106,15 @@ declare const ConnectionSchema: z.ZodObject<{
106
106
  declare const PurchaseAssetSchema: z.ZodObject<{
107
107
  assetId: z.ZodUUID;
108
108
  method: z.ZodEnum<{
109
- checkout: "checkout";
110
109
  api: "api";
110
+ checkout: "checkout";
111
111
  }>;
112
112
  assetType: z.ZodEnum<{
113
113
  user: "user";
114
+ file: "file";
114
115
  organization: "organization";
115
116
  team: "team";
116
117
  dataset: "dataset";
117
- file: "file";
118
118
  service: "service";
119
119
  route: "route";
120
120
  post: "post";
@@ -138,10 +138,10 @@ declare const PermissionSchema: z.ZodObject<{
138
138
  org_id: z.ZodNullable<z.ZodUUID>;
139
139
  asset_type: z.ZodEnum<{
140
140
  user: "user";
141
+ file: "file";
141
142
  organization: "organization";
142
143
  team: "team";
143
144
  dataset: "dataset";
144
- file: "file";
145
145
  service: "service";
146
146
  route: "route";
147
147
  post: "post";
@@ -155,14 +155,14 @@ declare const PermissionSchema: z.ZodObject<{
155
155
  }, z.core.$strip>;
156
156
  declare const StatusSchema: z.ZodEnum<{
157
157
  success: "success";
158
+ error: "error";
158
159
  queued: "queued";
159
160
  "in-progress": "in-progress";
160
161
  "timed-out": "timed-out";
161
- error: "error";
162
162
  }>;
163
163
  declare const SourceSchema: z.ZodEnum<{
164
- api: "api";
165
164
  web: "web";
165
+ api: "api";
166
166
  }>;
167
167
  declare const HttpMethodSchema: z.ZodEnum<{
168
168
  GET: "GET";
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk6DS2XXIF_cjs=require('../chunk-6DS2XXIF.cjs');require('../chunk-4CXHZFX4.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,"ConversationSchema",{enumerable:true,get:function(){return chunk6DS2XXIF_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunk6DS2XXIF_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunk6DS2XXIF_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunk6DS2XXIF_cjs.c}});//# sourceMappingURL=conversations.cjs.map
1
+ 'use strict';var chunkUVVPXYJA_cjs=require('../chunk-UVVPXYJA.cjs');require('../chunk-66AAHP6X.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,"ConversationSchema",{enumerable:true,get:function(){return chunkUVVPXYJA_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkUVVPXYJA_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkUVVPXYJA_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkUVVPXYJA_cjs.c}});//# sourceMappingURL=conversations.cjs.map
2
2
  //# sourceMappingURL=conversations.cjs.map
@@ -242,24 +242,24 @@ declare const ConversationSchema: z.ZodObject<{
242
242
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
243
243
  state: z.ZodEnum<{
244
244
  success: "success";
245
+ error: "error";
245
246
  queued: "queued";
246
247
  "in-progress": "in-progress";
247
248
  "timed-out": "timed-out";
248
- error: "error";
249
249
  }>;
250
250
  source: z.ZodEnum<{
251
- api: "api";
252
251
  web: "web";
252
+ api: "api";
253
253
  }>;
254
254
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
255
255
  created_at: z.ZodString;
256
256
  last_updated: z.ZodString;
257
257
  asset_type: z.ZodDefault<z.ZodEnum<{
258
258
  user: "user";
259
+ file: "file";
259
260
  organization: "organization";
260
261
  team: "team";
261
262
  dataset: "dataset";
262
- file: "file";
263
263
  service: "service";
264
264
  route: "route";
265
265
  post: "post";
@@ -329,14 +329,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
329
329
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
330
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
331
331
  success: "success";
332
+ error: "error";
332
333
  queued: "queued";
333
334
  "in-progress": "in-progress";
334
335
  "timed-out": "timed-out";
335
- error: "error";
336
336
  }>>>;
337
337
  source: z.ZodDefault<z.ZodEnum<{
338
- api: "api";
339
338
  web: "web";
339
+ api: "api";
340
340
  }>>;
341
341
  attribution: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
342
342
  originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -428,8 +428,8 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
428
428
  id: string;
429
429
  team_id: string | null;
430
430
  org_id: string | null;
431
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
432
- source: "api" | "web";
431
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
432
+ source: "web" | "api";
433
433
  attribution: {
434
434
  originality: "original" | "derivative" | "third-party";
435
435
  external_url?: string | null | undefined;
@@ -481,8 +481,8 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
481
481
  id: string;
482
482
  team_id: string | null;
483
483
  org_id: string | null;
484
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
485
- source: "api" | "web";
484
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
485
+ source: "web" | "api";
486
486
  attribution: {
487
487
  originality: "original" | "derivative" | "third-party";
488
488
  external_url?: string | null | undefined;
@@ -533,15 +533,6 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
533
533
  }>>;
534
534
  declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
535
535
  asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
536
- parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
537
- metadata: z.ZodOptional<z.ZodObject<{
538
- members: z.ZodArray<z.ZodString>;
539
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
540
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
541
- }, z.core.$strip>>;
542
- created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
543
- last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
544
- name: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, z.ZodTransform<string | undefined, string | null>>, z.ZodTransform<string | null, string | undefined>>>;
545
536
  visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
546
537
  organization: "organization";
547
538
  public: "public";
@@ -549,14 +540,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
549
540
  monetized: "monetized";
550
541
  inherit: "inherit";
551
542
  }>>>;
552
- description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
553
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
554
- text: z.ZodString;
555
- }, z.core.$strip>>>>>;
556
- source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
557
- api: "api";
558
- web: "web";
559
- }>>>;
560
543
  monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
561
544
  none: "none";
562
545
  "pay-to-unlock": "pay-to-unlock";
@@ -629,11 +612,22 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
629
612
  } | null | undefined>>>;
630
613
  state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
631
614
  success: "success";
615
+ error: "error";
632
616
  queued: "queued";
633
617
  "in-progress": "in-progress";
634
618
  "timed-out": "timed-out";
635
- error: "error";
636
619
  }>>>>;
620
+ source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
621
+ web: "web";
622
+ api: "api";
623
+ }>>>;
624
+ parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
625
+ name: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, z.ZodTransform<string | undefined, string | null>>, z.ZodTransform<string | null, string | undefined>>>;
626
+ description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
627
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
628
+ text: z.ZodString;
629
+ }, z.core.$strip>>>>>;
630
+ created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
637
631
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
638
632
  license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
639
633
  name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -651,24 +645,16 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
651
645
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
652
646
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
653
647
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
648
+ metadata: z.ZodOptional<z.ZodObject<{
649
+ members: z.ZodArray<z.ZodString>;
650
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
651
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
652
+ }, z.core.$strip>>;
654
653
  preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
654
+ last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
655
655
  }, z.core.$strip>, z.ZodTransform<{
656
656
  asset_type?: "conversation" | undefined;
657
- parent?: Record<string, any> | undefined;
658
- metadata?: {
659
- members: string[];
660
- source?: string | null | undefined;
661
- reply_to_comment_id?: string | null | undefined;
662
- } | undefined;
663
- created_at?: string | undefined;
664
- last_updated?: string | undefined;
665
- name?: string | null | undefined;
666
657
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
667
- description?: {
668
- json: Record<string, any>;
669
- text: string;
670
- } | null | undefined;
671
- source?: "api" | "web" | undefined;
672
658
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
673
659
  attribution?: {
674
660
  originality: "original" | "derivative" | "third-party";
@@ -689,7 +675,15 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
689
675
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
690
676
  doi?: string | null | undefined;
691
677
  } | undefined;
692
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
678
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
679
+ source?: "web" | "api" | undefined;
680
+ parent?: Record<string, any> | undefined;
681
+ name?: string | null | undefined;
682
+ description?: {
683
+ json: Record<string, any>;
684
+ text: string;
685
+ } | null | undefined;
686
+ created_at?: string | undefined;
693
687
  parent_id?: string | null | undefined;
694
688
  license_id?: string | undefined;
695
689
  name_url_slug?: string | null | undefined;
@@ -701,24 +695,16 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
701
695
  stripe_product_id?: string | null | undefined;
702
696
  stripe_price_id?: string | null | undefined;
703
697
  stripe_meter_id?: string | null | undefined;
704
- preview?: Record<string, any>[] | null | undefined;
705
- }, {
706
- asset_type?: "conversation" | undefined;
707
- parent?: Record<string, any> | undefined;
708
698
  metadata?: {
709
699
  members: string[];
710
700
  source?: string | null | undefined;
711
701
  reply_to_comment_id?: string | null | undefined;
712
702
  } | undefined;
713
- created_at?: string | undefined;
703
+ preview?: Record<string, any>[] | null | undefined;
714
704
  last_updated?: string | undefined;
715
- name?: string | null | undefined;
705
+ }, {
706
+ asset_type?: "conversation" | undefined;
716
707
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
717
- description?: {
718
- json: Record<string, any>;
719
- text: string;
720
- } | null | undefined;
721
- source?: "api" | "web" | undefined;
722
708
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
723
709
  attribution?: {
724
710
  originality: "original" | "derivative" | "third-party";
@@ -739,7 +725,15 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
739
725
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
740
726
  doi?: string | null | undefined;
741
727
  } | undefined;
742
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
728
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
729
+ source?: "web" | "api" | undefined;
730
+ parent?: Record<string, any> | undefined;
731
+ name?: string | null | undefined;
732
+ description?: {
733
+ json: Record<string, any>;
734
+ text: string;
735
+ } | null | undefined;
736
+ created_at?: string | undefined;
743
737
  parent_id?: string | null | undefined;
744
738
  license_id?: string | undefined;
745
739
  name_url_slug?: string | null | undefined;
@@ -751,7 +745,13 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
751
745
  stripe_product_id?: string | null | undefined;
752
746
  stripe_price_id?: string | null | undefined;
753
747
  stripe_meter_id?: string | null | undefined;
748
+ metadata?: {
749
+ members: string[];
750
+ source?: string | null | undefined;
751
+ reply_to_comment_id?: string | null | undefined;
752
+ } | undefined;
754
753
  preview?: Record<string, any>[] | null | undefined;
754
+ last_updated?: string | undefined;
755
755
  }>>;
756
756
  declare const MessageSchema: z.ZodObject<{
757
757
  id: z.ZodUUID;
@@ -975,10 +975,10 @@ declare const MessageSchema: z.ZodObject<{
975
975
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
976
976
  asset_type: z.ZodOptional<z.ZodEnum<{
977
977
  user: "user";
978
+ file: "file";
978
979
  organization: "organization";
979
980
  team: "team";
980
981
  dataset: "dataset";
981
- file: "file";
982
982
  service: "service";
983
983
  route: "route";
984
984
  post: "post";
@@ -1055,14 +1055,14 @@ declare const MessageSchema: z.ZodObject<{
1055
1055
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
1056
1056
  state: z.ZodOptional<z.ZodEnum<{
1057
1057
  success: "success";
1058
+ error: "error";
1058
1059
  queued: "queued";
1059
1060
  "in-progress": "in-progress";
1060
1061
  "timed-out": "timed-out";
1061
- error: "error";
1062
1062
  }>>;
1063
1063
  source: z.ZodOptional<z.ZodEnum<{
1064
- api: "api";
1065
1064
  web: "web";
1065
+ api: "api";
1066
1066
  }>>;
1067
1067
  is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
1068
1068
  created_at: z.ZodOptional<z.ZodString>;
@@ -242,24 +242,24 @@ declare const ConversationSchema: z.ZodObject<{
242
242
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
243
243
  state: z.ZodEnum<{
244
244
  success: "success";
245
+ error: "error";
245
246
  queued: "queued";
246
247
  "in-progress": "in-progress";
247
248
  "timed-out": "timed-out";
248
- error: "error";
249
249
  }>;
250
250
  source: z.ZodEnum<{
251
- api: "api";
252
251
  web: "web";
252
+ api: "api";
253
253
  }>;
254
254
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
255
255
  created_at: z.ZodString;
256
256
  last_updated: z.ZodString;
257
257
  asset_type: z.ZodDefault<z.ZodEnum<{
258
258
  user: "user";
259
+ file: "file";
259
260
  organization: "organization";
260
261
  team: "team";
261
262
  dataset: "dataset";
262
- file: "file";
263
263
  service: "service";
264
264
  route: "route";
265
265
  post: "post";
@@ -329,14 +329,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
329
329
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
330
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
331
331
  success: "success";
332
+ error: "error";
332
333
  queued: "queued";
333
334
  "in-progress": "in-progress";
334
335
  "timed-out": "timed-out";
335
- error: "error";
336
336
  }>>>;
337
337
  source: z.ZodDefault<z.ZodEnum<{
338
- api: "api";
339
338
  web: "web";
339
+ api: "api";
340
340
  }>>;
341
341
  attribution: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
342
342
  originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -428,8 +428,8 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
428
428
  id: string;
429
429
  team_id: string | null;
430
430
  org_id: string | null;
431
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
432
- source: "api" | "web";
431
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
432
+ source: "web" | "api";
433
433
  attribution: {
434
434
  originality: "original" | "derivative" | "third-party";
435
435
  external_url?: string | null | undefined;
@@ -481,8 +481,8 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
481
481
  id: string;
482
482
  team_id: string | null;
483
483
  org_id: string | null;
484
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
485
- source: "api" | "web";
484
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
485
+ source: "web" | "api";
486
486
  attribution: {
487
487
  originality: "original" | "derivative" | "third-party";
488
488
  external_url?: string | null | undefined;
@@ -533,15 +533,6 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
533
533
  }>>;
534
534
  declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
535
535
  asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
536
- parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
537
- metadata: z.ZodOptional<z.ZodObject<{
538
- members: z.ZodArray<z.ZodString>;
539
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
540
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
541
- }, z.core.$strip>>;
542
- created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
543
- last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
544
- name: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, z.ZodTransform<string | undefined, string | null>>, z.ZodTransform<string | null, string | undefined>>>;
545
536
  visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
546
537
  organization: "organization";
547
538
  public: "public";
@@ -549,14 +540,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
549
540
  monetized: "monetized";
550
541
  inherit: "inherit";
551
542
  }>>>;
552
- description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
553
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
554
- text: z.ZodString;
555
- }, z.core.$strip>>>>>;
556
- source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
557
- api: "api";
558
- web: "web";
559
- }>>>;
560
543
  monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
561
544
  none: "none";
562
545
  "pay-to-unlock": "pay-to-unlock";
@@ -629,11 +612,22 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
629
612
  } | null | undefined>>>;
630
613
  state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
631
614
  success: "success";
615
+ error: "error";
632
616
  queued: "queued";
633
617
  "in-progress": "in-progress";
634
618
  "timed-out": "timed-out";
635
- error: "error";
636
619
  }>>>>;
620
+ source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
621
+ web: "web";
622
+ api: "api";
623
+ }>>>;
624
+ parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
625
+ name: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, z.ZodTransform<string | undefined, string | null>>, z.ZodTransform<string | null, string | undefined>>>;
626
+ description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
627
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
628
+ text: z.ZodString;
629
+ }, z.core.$strip>>>>>;
630
+ created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
637
631
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
638
632
  license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
639
633
  name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -651,24 +645,16 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
651
645
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
652
646
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
653
647
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
648
+ metadata: z.ZodOptional<z.ZodObject<{
649
+ members: z.ZodArray<z.ZodString>;
650
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
651
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
652
+ }, z.core.$strip>>;
654
653
  preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
654
+ last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
655
655
  }, z.core.$strip>, z.ZodTransform<{
656
656
  asset_type?: "conversation" | undefined;
657
- parent?: Record<string, any> | undefined;
658
- metadata?: {
659
- members: string[];
660
- source?: string | null | undefined;
661
- reply_to_comment_id?: string | null | undefined;
662
- } | undefined;
663
- created_at?: string | undefined;
664
- last_updated?: string | undefined;
665
- name?: string | null | undefined;
666
657
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
667
- description?: {
668
- json: Record<string, any>;
669
- text: string;
670
- } | null | undefined;
671
- source?: "api" | "web" | undefined;
672
658
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
673
659
  attribution?: {
674
660
  originality: "original" | "derivative" | "third-party";
@@ -689,7 +675,15 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
689
675
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
690
676
  doi?: string | null | undefined;
691
677
  } | undefined;
692
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
678
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
679
+ source?: "web" | "api" | undefined;
680
+ parent?: Record<string, any> | undefined;
681
+ name?: string | null | undefined;
682
+ description?: {
683
+ json: Record<string, any>;
684
+ text: string;
685
+ } | null | undefined;
686
+ created_at?: string | undefined;
693
687
  parent_id?: string | null | undefined;
694
688
  license_id?: string | undefined;
695
689
  name_url_slug?: string | null | undefined;
@@ -701,24 +695,16 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
701
695
  stripe_product_id?: string | null | undefined;
702
696
  stripe_price_id?: string | null | undefined;
703
697
  stripe_meter_id?: string | null | undefined;
704
- preview?: Record<string, any>[] | null | undefined;
705
- }, {
706
- asset_type?: "conversation" | undefined;
707
- parent?: Record<string, any> | undefined;
708
698
  metadata?: {
709
699
  members: string[];
710
700
  source?: string | null | undefined;
711
701
  reply_to_comment_id?: string | null | undefined;
712
702
  } | undefined;
713
- created_at?: string | undefined;
703
+ preview?: Record<string, any>[] | null | undefined;
714
704
  last_updated?: string | undefined;
715
- name?: string | null | undefined;
705
+ }, {
706
+ asset_type?: "conversation" | undefined;
716
707
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
717
- description?: {
718
- json: Record<string, any>;
719
- text: string;
720
- } | null | undefined;
721
- source?: "api" | "web" | undefined;
722
708
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
723
709
  attribution?: {
724
710
  originality: "original" | "derivative" | "third-party";
@@ -739,7 +725,15 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
739
725
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
740
726
  doi?: string | null | undefined;
741
727
  } | undefined;
742
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
728
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
729
+ source?: "web" | "api" | undefined;
730
+ parent?: Record<string, any> | undefined;
731
+ name?: string | null | undefined;
732
+ description?: {
733
+ json: Record<string, any>;
734
+ text: string;
735
+ } | null | undefined;
736
+ created_at?: string | undefined;
743
737
  parent_id?: string | null | undefined;
744
738
  license_id?: string | undefined;
745
739
  name_url_slug?: string | null | undefined;
@@ -751,7 +745,13 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
751
745
  stripe_product_id?: string | null | undefined;
752
746
  stripe_price_id?: string | null | undefined;
753
747
  stripe_meter_id?: string | null | undefined;
748
+ metadata?: {
749
+ members: string[];
750
+ source?: string | null | undefined;
751
+ reply_to_comment_id?: string | null | undefined;
752
+ } | undefined;
754
753
  preview?: Record<string, any>[] | null | undefined;
754
+ last_updated?: string | undefined;
755
755
  }>>;
756
756
  declare const MessageSchema: z.ZodObject<{
757
757
  id: z.ZodUUID;
@@ -975,10 +975,10 @@ declare const MessageSchema: z.ZodObject<{
975
975
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
976
976
  asset_type: z.ZodOptional<z.ZodEnum<{
977
977
  user: "user";
978
+ file: "file";
978
979
  organization: "organization";
979
980
  team: "team";
980
981
  dataset: "dataset";
981
- file: "file";
982
982
  service: "service";
983
983
  route: "route";
984
984
  post: "post";
@@ -1055,14 +1055,14 @@ declare const MessageSchema: z.ZodObject<{
1055
1055
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
1056
1056
  state: z.ZodOptional<z.ZodEnum<{
1057
1057
  success: "success";
1058
+ error: "error";
1058
1059
  queued: "queued";
1059
1060
  "in-progress": "in-progress";
1060
1061
  "timed-out": "timed-out";
1061
- error: "error";
1062
1062
  }>>;
1063
1063
  source: z.ZodOptional<z.ZodEnum<{
1064
- api: "api";
1065
1064
  web: "web";
1065
+ api: "api";
1066
1066
  }>>;
1067
1067
  is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
1068
1068
  created_at: z.ZodOptional<z.ZodString>;
@@ -1,2 +1,2 @@
1
- export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-732QBVGP.js';import'../chunk-BUO2Y3O3.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=conversations.js.map
1
+ export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-Y6TOO6ET.js';import'../chunk-KHUEMWG2.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=conversations.js.map
2
2
  //# sourceMappingURL=conversations.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk2KQZYT5W_cjs=require('../chunk-2KQZYT5W.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,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunk2KQZYT5W_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunk2KQZYT5W_cjs.i}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunk2KQZYT5W_cjs.c}});Object.defineProperty(exports,"DatasetRefsSchema",{enumerable:true,get:function(){return chunk2KQZYT5W_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunk2KQZYT5W_cjs.g}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunk2KQZYT5W_cjs.d}});Object.defineProperty(exports,"RefKindSchema",{enumerable:true,get:function(){return chunk2KQZYT5W_cjs.a}});Object.defineProperty(exports,"ResolvedRefSchema",{enumerable:true,get:function(){return chunk2KQZYT5W_cjs.e}});Object.defineProperty(exports,"ResolvedRefsSchema",{enumerable:true,get:function(){return chunk2KQZYT5W_cjs.f}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunk2KQZYT5W_cjs.j}});//# sourceMappingURL=datasets.cjs.map
1
+ 'use strict';var chunkQWD7POET_cjs=require('../chunk-QWD7POET.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,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkQWD7POET_cjs.h}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkQWD7POET_cjs.i}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunkQWD7POET_cjs.c}});Object.defineProperty(exports,"DatasetRefsSchema",{enumerable:true,get:function(){return chunkQWD7POET_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkQWD7POET_cjs.g}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunkQWD7POET_cjs.d}});Object.defineProperty(exports,"RefKindSchema",{enumerable:true,get:function(){return chunkQWD7POET_cjs.a}});Object.defineProperty(exports,"ResolvedRefSchema",{enumerable:true,get:function(){return chunkQWD7POET_cjs.e}});Object.defineProperty(exports,"ResolvedRefsSchema",{enumerable:true,get:function(){return chunkQWD7POET_cjs.f}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkQWD7POET_cjs.j}});//# sourceMappingURL=datasets.cjs.map
2
2
  //# sourceMappingURL=datasets.cjs.map