@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
@@ -2,10 +2,10 @@ import { z } from 'zod';
2
2
 
3
3
  declare const AssetTypeSchema: z.ZodEnum<{
4
4
  user: "user";
5
- file: "file";
6
5
  organization: "organization";
7
6
  team: "team";
8
7
  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";
47
46
  organization: "organization";
48
47
  team: "team";
49
48
  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";
80
79
  organization: "organization";
81
80
  team: "team";
82
81
  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";
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";
@@ -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
- api: "api";
110
109
  checkout: "checkout";
110
+ api: "api";
111
111
  }>;
112
112
  assetType: z.ZodEnum<{
113
113
  user: "user";
114
- file: "file";
115
114
  organization: "organization";
116
115
  team: "team";
117
116
  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";
142
141
  organization: "organization";
143
142
  team: "team";
144
143
  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";
159
158
  queued: "queued";
160
159
  "in-progress": "in-progress";
161
160
  "timed-out": "timed-out";
161
+ error: "error";
162
162
  }>;
163
163
  declare const SourceSchema: z.ZodEnum<{
164
- web: "web";
165
164
  api: "api";
165
+ web: "web";
166
166
  }>;
167
167
  declare const HttpMethodSchema: z.ZodEnum<{
168
168
  GET: "GET";
@@ -1,2 +1,2 @@
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
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
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";
246
245
  queued: "queued";
247
246
  "in-progress": "in-progress";
248
247
  "timed-out": "timed-out";
248
+ error: "error";
249
249
  }>;
250
250
  source: z.ZodEnum<{
251
- web: "web";
252
251
  api: "api";
252
+ web: "web";
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";
260
259
  organization: "organization";
261
260
  team: "team";
262
261
  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";
333
332
  queued: "queued";
334
333
  "in-progress": "in-progress";
335
334
  "timed-out": "timed-out";
335
+ error: "error";
336
336
  }>>>;
337
337
  source: z.ZodDefault<z.ZodEnum<{
338
- web: "web";
339
338
  api: "api";
339
+ web: "web";
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" | "error" | "queued" | "in-progress" | "timed-out";
432
- source: "web" | "api";
431
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
432
+ source: "api" | "web";
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" | "error" | "queued" | "in-progress" | "timed-out";
485
- source: "web" | "api";
484
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
485
+ source: "api" | "web";
486
486
  attribution: {
487
487
  originality: "original" | "derivative" | "third-party";
488
488
  external_url?: string | null | undefined;
@@ -533,6 +533,15 @@ 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>>>;
536
545
  visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
537
546
  organization: "organization";
538
547
  public: "public";
@@ -540,6 +549,14 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
540
549
  monetized: "monetized";
541
550
  inherit: "inherit";
542
551
  }>>>;
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
+ }>>>;
543
560
  monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
544
561
  none: "none";
545
562
  "pay-to-unlock": "pay-to-unlock";
@@ -612,22 +629,11 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
612
629
  } | null | undefined>>>;
613
630
  state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
614
631
  success: "success";
615
- error: "error";
616
632
  queued: "queued";
617
633
  "in-progress": "in-progress";
618
634
  "timed-out": "timed-out";
635
+ error: "error";
619
636
  }>>>>;
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>>;
631
637
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
632
638
  license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
633
639
  name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -645,16 +651,24 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
645
651
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
646
652
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
647
653
  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>>;
653
654
  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;
657
666
  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;
658
672
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
659
673
  attribution?: {
660
674
  originality: "original" | "derivative" | "third-party";
@@ -675,15 +689,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
675
689
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
676
690
  doi?: string | null | undefined;
677
691
  } | 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;
692
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
687
693
  parent_id?: string | null | undefined;
688
694
  license_id?: string | undefined;
689
695
  name_url_slug?: string | null | undefined;
@@ -695,16 +701,24 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
695
701
  stripe_product_id?: string | null | undefined;
696
702
  stripe_price_id?: string | null | undefined;
697
703
  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;
698
708
  metadata?: {
699
709
  members: string[];
700
710
  source?: string | null | undefined;
701
711
  reply_to_comment_id?: string | null | undefined;
702
712
  } | undefined;
703
- preview?: Record<string, any>[] | null | undefined;
713
+ created_at?: string | undefined;
704
714
  last_updated?: string | undefined;
705
- }, {
706
- asset_type?: "conversation" | undefined;
715
+ name?: string | null | undefined;
707
716
  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;
708
722
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
709
723
  attribution?: {
710
724
  originality: "original" | "derivative" | "third-party";
@@ -725,15 +739,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
725
739
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
726
740
  doi?: string | null | undefined;
727
741
  } | 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;
742
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
737
743
  parent_id?: string | null | undefined;
738
744
  license_id?: string | undefined;
739
745
  name_url_slug?: string | null | undefined;
@@ -745,13 +751,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
745
751
  stripe_product_id?: string | null | undefined;
746
752
  stripe_price_id?: string | null | undefined;
747
753
  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;
753
754
  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";
979
978
  organization: "organization";
980
979
  team: "team";
981
980
  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";
1059
1058
  queued: "queued";
1060
1059
  "in-progress": "in-progress";
1061
1060
  "timed-out": "timed-out";
1061
+ error: "error";
1062
1062
  }>>;
1063
1063
  source: z.ZodOptional<z.ZodEnum<{
1064
- web: "web";
1065
1064
  api: "api";
1065
+ web: "web";
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";
246
245
  queued: "queued";
247
246
  "in-progress": "in-progress";
248
247
  "timed-out": "timed-out";
248
+ error: "error";
249
249
  }>;
250
250
  source: z.ZodEnum<{
251
- web: "web";
252
251
  api: "api";
252
+ web: "web";
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";
260
259
  organization: "organization";
261
260
  team: "team";
262
261
  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";
333
332
  queued: "queued";
334
333
  "in-progress": "in-progress";
335
334
  "timed-out": "timed-out";
335
+ error: "error";
336
336
  }>>>;
337
337
  source: z.ZodDefault<z.ZodEnum<{
338
- web: "web";
339
338
  api: "api";
339
+ web: "web";
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" | "error" | "queued" | "in-progress" | "timed-out";
432
- source: "web" | "api";
431
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
432
+ source: "api" | "web";
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" | "error" | "queued" | "in-progress" | "timed-out";
485
- source: "web" | "api";
484
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
485
+ source: "api" | "web";
486
486
  attribution: {
487
487
  originality: "original" | "derivative" | "third-party";
488
488
  external_url?: string | null | undefined;
@@ -533,6 +533,15 @@ 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>>>;
536
545
  visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
537
546
  organization: "organization";
538
547
  public: "public";
@@ -540,6 +549,14 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
540
549
  monetized: "monetized";
541
550
  inherit: "inherit";
542
551
  }>>>;
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
+ }>>>;
543
560
  monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
544
561
  none: "none";
545
562
  "pay-to-unlock": "pay-to-unlock";
@@ -612,22 +629,11 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
612
629
  } | null | undefined>>>;
613
630
  state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
614
631
  success: "success";
615
- error: "error";
616
632
  queued: "queued";
617
633
  "in-progress": "in-progress";
618
634
  "timed-out": "timed-out";
635
+ error: "error";
619
636
  }>>>>;
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>>;
631
637
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
632
638
  license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
633
639
  name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -645,16 +651,24 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
645
651
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
646
652
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
647
653
  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>>;
653
654
  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;
657
666
  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;
658
672
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
659
673
  attribution?: {
660
674
  originality: "original" | "derivative" | "third-party";
@@ -675,15 +689,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
675
689
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
676
690
  doi?: string | null | undefined;
677
691
  } | 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;
692
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
687
693
  parent_id?: string | null | undefined;
688
694
  license_id?: string | undefined;
689
695
  name_url_slug?: string | null | undefined;
@@ -695,16 +701,24 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
695
701
  stripe_product_id?: string | null | undefined;
696
702
  stripe_price_id?: string | null | undefined;
697
703
  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;
698
708
  metadata?: {
699
709
  members: string[];
700
710
  source?: string | null | undefined;
701
711
  reply_to_comment_id?: string | null | undefined;
702
712
  } | undefined;
703
- preview?: Record<string, any>[] | null | undefined;
713
+ created_at?: string | undefined;
704
714
  last_updated?: string | undefined;
705
- }, {
706
- asset_type?: "conversation" | undefined;
715
+ name?: string | null | undefined;
707
716
  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;
708
722
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
709
723
  attribution?: {
710
724
  originality: "original" | "derivative" | "third-party";
@@ -725,15 +739,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
725
739
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
726
740
  doi?: string | null | undefined;
727
741
  } | 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;
742
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
737
743
  parent_id?: string | null | undefined;
738
744
  license_id?: string | undefined;
739
745
  name_url_slug?: string | null | undefined;
@@ -745,13 +751,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
745
751
  stripe_product_id?: string | null | undefined;
746
752
  stripe_price_id?: string | null | undefined;
747
753
  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;
753
754
  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";
979
978
  organization: "organization";
980
979
  team: "team";
981
980
  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";
1059
1058
  queued: "queued";
1060
1059
  "in-progress": "in-progress";
1061
1060
  "timed-out": "timed-out";
1061
+ error: "error";
1062
1062
  }>>;
1063
1063
  source: z.ZodOptional<z.ZodEnum<{
1064
- web: "web";
1065
1064
  api: "api";
1065
+ web: "web";
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-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
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
2
2
  //# sourceMappingURL=conversations.js.map
@@ -1,2 +1,2 @@
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
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
2
2
  //# sourceMappingURL=datasets.cjs.map