@ourofoundation/ouro-js 3.7.8 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/{chunk-66AAHP6X.cjs → chunk-23FTPTDP.cjs} +2 -2
  2. package/dist/{chunk-66AAHP6X.cjs.map → chunk-23FTPTDP.cjs.map} +1 -1
  3. package/dist/chunk-33C7IDRP.js +2 -0
  4. package/dist/chunk-33C7IDRP.js.map +1 -0
  5. package/dist/{chunk-4NAPVNIX.js → chunk-3UE4H5TR.js} +2 -2
  6. package/dist/{chunk-4NAPVNIX.js.map → chunk-3UE4H5TR.js.map} +1 -1
  7. package/dist/{chunk-3OUJXTJZ.js → chunk-5CKFMTWZ.js} +2 -2
  8. package/dist/{chunk-3OUJXTJZ.js.map → chunk-5CKFMTWZ.js.map} +1 -1
  9. package/dist/{chunk-Z66O3S3W.cjs → chunk-5SC4M4E3.cjs} +2 -2
  10. package/dist/{chunk-Z66O3S3W.cjs.map → chunk-5SC4M4E3.cjs.map} +1 -1
  11. package/dist/{chunk-KHUEMWG2.js → chunk-6OO4SOWL.js} +2 -2
  12. package/dist/{chunk-KHUEMWG2.js.map → chunk-6OO4SOWL.js.map} +1 -1
  13. package/dist/{chunk-7YG2YDXN.cjs → chunk-7R5EIIIR.cjs} +2 -2
  14. package/dist/{chunk-7YG2YDXN.cjs.map → chunk-7R5EIIIR.cjs.map} +1 -1
  15. package/dist/chunk-APZA6MIM.js +2 -0
  16. package/dist/chunk-APZA6MIM.js.map +1 -0
  17. package/dist/chunk-AUDVUOLX.js +2 -0
  18. package/dist/chunk-AUDVUOLX.js.map +1 -0
  19. package/dist/{chunk-ZRJUBEIK.cjs → chunk-BELCP7OL.cjs} +2 -2
  20. package/dist/{chunk-ZRJUBEIK.cjs.map → chunk-BELCP7OL.cjs.map} +1 -1
  21. package/dist/{chunk-CW4TV3DY.js → chunk-CXMEZGVG.js} +2 -2
  22. package/dist/{chunk-CW4TV3DY.js.map → chunk-CXMEZGVG.js.map} +1 -1
  23. package/dist/{chunk-42WKTHH5.js → chunk-EIB2YGN3.js} +2 -2
  24. package/dist/{chunk-42WKTHH5.js.map → chunk-EIB2YGN3.js.map} +1 -1
  25. package/dist/{chunk-EMDUI7HF.js → chunk-GT7CSIDN.js} +2 -2
  26. package/dist/{chunk-EMDUI7HF.js.map → chunk-GT7CSIDN.js.map} +1 -1
  27. package/dist/{chunk-PB4XG5WM.js → chunk-GX6RCMZR.js} +2 -2
  28. package/dist/{chunk-PB4XG5WM.js.map → chunk-GX6RCMZR.js.map} +1 -1
  29. package/dist/{chunk-W3N744QV.js → chunk-KMENBGAB.js} +2 -2
  30. package/dist/{chunk-W3N744QV.js.map → chunk-KMENBGAB.js.map} +1 -1
  31. package/dist/{chunk-UDTRH3OQ.cjs → chunk-M2ZH6MMH.cjs} +2 -2
  32. package/dist/{chunk-UDTRH3OQ.cjs.map → chunk-M2ZH6MMH.cjs.map} +1 -1
  33. package/dist/{chunk-YTIUJ72Q.js → chunk-M5ZLLARC.js} +2 -2
  34. package/dist/{chunk-YTIUJ72Q.js.map → chunk-M5ZLLARC.js.map} +1 -1
  35. package/dist/{chunk-3RFYEL3A.cjs → chunk-N3HC2ASR.cjs} +2 -2
  36. package/dist/{chunk-3RFYEL3A.cjs.map → chunk-N3HC2ASR.cjs.map} +1 -1
  37. package/dist/chunk-NVKZLT3M.cjs +2 -0
  38. package/dist/chunk-NVKZLT3M.cjs.map +1 -0
  39. package/dist/{chunk-QWD7POET.cjs → chunk-O6RFWCC4.cjs} +2 -2
  40. package/dist/{chunk-QWD7POET.cjs.map → chunk-O6RFWCC4.cjs.map} +1 -1
  41. package/dist/{chunk-3C7PGJ33.js → chunk-QUBJLDJY.js} +2 -2
  42. package/dist/{chunk-3C7PGJ33.js.map → chunk-QUBJLDJY.js.map} +1 -1
  43. package/dist/chunk-RNBIB6S7.cjs +2 -0
  44. package/dist/chunk-RNBIB6S7.cjs.map +1 -0
  45. package/dist/{chunk-FJTFM3ML.cjs → chunk-RQUVICCB.cjs} +2 -2
  46. package/dist/{chunk-FJTFM3ML.cjs.map → chunk-RQUVICCB.cjs.map} +1 -1
  47. package/dist/chunk-RRDGLT3N.cjs +2 -0
  48. package/dist/{chunk-LD5G6GFH.cjs.map → chunk-RRDGLT3N.cjs.map} +1 -1
  49. package/dist/chunk-SZWAE35B.cjs +2 -0
  50. package/dist/chunk-SZWAE35B.cjs.map +1 -0
  51. package/dist/chunk-U5JVCESS.js +2 -0
  52. package/dist/chunk-U5JVCESS.js.map +1 -0
  53. package/dist/{chunk-B3OK6NNR.cjs → chunk-W4V643O5.cjs} +2 -2
  54. package/dist/{chunk-B3OK6NNR.cjs.map → chunk-W4V643O5.cjs.map} +1 -1
  55. package/dist/chunk-YFEGRZXL.cjs +2 -0
  56. package/dist/chunk-YFEGRZXL.cjs.map +1 -0
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.d.cts +3 -3
  59. package/dist/index.d.ts +3 -3
  60. package/dist/index.js +1 -1
  61. package/dist/schema/asset-filters.cjs +1 -1
  62. package/dist/schema/asset-filters.d.cts +7 -7
  63. package/dist/schema/asset-filters.d.ts +7 -7
  64. package/dist/schema/asset-filters.js +1 -1
  65. package/dist/schema/assets.cjs +1 -1
  66. package/dist/schema/assets.d.cts +63 -63
  67. package/dist/schema/assets.d.ts +63 -63
  68. package/dist/schema/assets.js +1 -1
  69. package/dist/schema/comments.cjs +1 -1
  70. package/dist/schema/comments.d.cts +59 -59
  71. package/dist/schema/comments.d.ts +59 -59
  72. package/dist/schema/comments.js +1 -1
  73. package/dist/schema/common.cjs +1 -1
  74. package/dist/schema/common.d.cts +10 -9
  75. package/dist/schema/common.d.ts +10 -9
  76. package/dist/schema/common.js +1 -1
  77. package/dist/schema/conversations.cjs +1 -1
  78. package/dist/schema/conversations.d.cts +77 -58
  79. package/dist/schema/conversations.d.ts +77 -58
  80. package/dist/schema/conversations.js +1 -1
  81. package/dist/schema/datasets.cjs +1 -1
  82. package/dist/schema/datasets.d.cts +137 -137
  83. package/dist/schema/datasets.d.ts +137 -137
  84. package/dist/schema/datasets.js +1 -1
  85. package/dist/schema/files.cjs +1 -1
  86. package/dist/schema/files.d.cts +154 -89
  87. package/dist/schema/files.d.ts +154 -89
  88. package/dist/schema/files.js +1 -1
  89. package/dist/schema/notifications.cjs +1 -1
  90. package/dist/schema/notifications.d.cts +106 -106
  91. package/dist/schema/notifications.d.ts +106 -106
  92. package/dist/schema/notifications.js +1 -1
  93. package/dist/schema/organizations.cjs +1 -1
  94. package/dist/schema/organizations.js +1 -1
  95. package/dist/schema/posts.cjs +1 -1
  96. package/dist/schema/posts.d.cts +91 -91
  97. package/dist/schema/posts.d.ts +91 -91
  98. package/dist/schema/posts.js +1 -1
  99. package/dist/schema/quests.cjs +1 -1
  100. package/dist/schema/quests.d.cts +192 -131
  101. package/dist/schema/quests.d.ts +192 -131
  102. package/dist/schema/quests.js +1 -1
  103. package/dist/schema/services.cjs +1 -1
  104. package/dist/schema/services.d.cts +132 -132
  105. package/dist/schema/services.d.ts +132 -132
  106. package/dist/schema/services.js +1 -1
  107. package/dist/schema/teams.cjs +1 -1
  108. package/dist/schema/teams.d.cts +15 -15
  109. package/dist/schema/teams.d.ts +15 -15
  110. package/dist/schema/teams.js +1 -1
  111. package/dist/utils/quest-submission.cjs +1 -1
  112. package/dist/utils/quest-submission.d.cts +4 -4
  113. package/dist/utils/quest-submission.d.ts +4 -4
  114. package/dist/utils/quest-submission.js +1 -1
  115. package/package.json +2 -2
  116. package/tests/files.test.mjs +42 -0
  117. package/dist/chunk-3BZRQYRC.js +0 -2
  118. package/dist/chunk-3BZRQYRC.js.map +0 -1
  119. package/dist/chunk-ASLHRT77.js +0 -2
  120. package/dist/chunk-ASLHRT77.js.map +0 -1
  121. package/dist/chunk-LD5G6GFH.cjs +0 -2
  122. package/dist/chunk-MNECKGIP.cjs +0 -2
  123. package/dist/chunk-MNECKGIP.cjs.map +0 -1
  124. package/dist/chunk-UVVPXYJA.cjs +0 -2
  125. package/dist/chunk-UVVPXYJA.cjs.map +0 -1
  126. package/dist/chunk-W6AKVS4L.cjs +0 -2
  127. package/dist/chunk-W6AKVS4L.cjs.map +0 -1
  128. package/dist/chunk-W6MBAIKZ.cjs +0 -2
  129. package/dist/chunk-W6MBAIKZ.cjs.map +0 -1
  130. package/dist/chunk-XVN3DFMT.js +0 -2
  131. package/dist/chunk-XVN3DFMT.js.map +0 -1
  132. package/dist/chunk-Y6TOO6ET.js +0 -2
  133. package/dist/chunk-Y6TOO6ET.js.map +0 -1
@@ -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";
@@ -70,16 +70,17 @@ declare const ConnectionSchema: z.ZodObject<{
70
70
  component: "component";
71
71
  link: "link";
72
72
  completion: "completion";
73
+ evaluation: "evaluation";
73
74
  }>;
74
75
  action_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
75
76
  source_id: z.ZodUUID;
76
77
  target_id: z.ZodUUID;
77
78
  source_asset_type: z.ZodEnum<{
78
79
  user: "user";
79
- file: "file";
80
80
  organization: "organization";
81
81
  team: "team";
82
82
  dataset: "dataset";
83
+ file: "file";
83
84
  service: "service";
84
85
  route: "route";
85
86
  post: "post";
@@ -89,10 +90,10 @@ declare const ConnectionSchema: z.ZodObject<{
89
90
  }>;
90
91
  target_asset_type: z.ZodEnum<{
91
92
  user: "user";
92
- file: "file";
93
93
  organization: "organization";
94
94
  team: "team";
95
95
  dataset: "dataset";
96
+ file: "file";
96
97
  service: "service";
97
98
  route: "route";
98
99
  post: "post";
@@ -106,15 +107,15 @@ declare const ConnectionSchema: z.ZodObject<{
106
107
  declare const PurchaseAssetSchema: z.ZodObject<{
107
108
  assetId: z.ZodUUID;
108
109
  method: z.ZodEnum<{
109
- api: "api";
110
110
  checkout: "checkout";
111
+ api: "api";
111
112
  }>;
112
113
  assetType: z.ZodEnum<{
113
114
  user: "user";
114
- file: "file";
115
115
  organization: "organization";
116
116
  team: "team";
117
117
  dataset: "dataset";
118
+ file: "file";
118
119
  service: "service";
119
120
  route: "route";
120
121
  post: "post";
@@ -138,10 +139,10 @@ declare const PermissionSchema: z.ZodObject<{
138
139
  org_id: z.ZodNullable<z.ZodUUID>;
139
140
  asset_type: z.ZodEnum<{
140
141
  user: "user";
141
- file: "file";
142
142
  organization: "organization";
143
143
  team: "team";
144
144
  dataset: "dataset";
145
+ file: "file";
145
146
  service: "service";
146
147
  route: "route";
147
148
  post: "post";
@@ -155,14 +156,14 @@ declare const PermissionSchema: z.ZodObject<{
155
156
  }, z.core.$strip>;
156
157
  declare const StatusSchema: z.ZodEnum<{
157
158
  success: "success";
158
- error: "error";
159
159
  queued: "queued";
160
160
  "in-progress": "in-progress";
161
161
  "timed-out": "timed-out";
162
+ error: "error";
162
163
  }>;
163
164
  declare const SourceSchema: z.ZodEnum<{
164
- web: "web";
165
165
  api: "api";
166
+ web: "web";
166
167
  }>;
167
168
  declare const HttpMethodSchema: z.ZodEnum<{
168
169
  GET: "GET";
@@ -1,2 +1,2 @@
1
- export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,l as HttpMethodSchema,d as MonetizationSchema,i as PermissionSchema,e as PriceCurrencySchema,h as PurchaseAssetSchema,c as RoleSchema,k as SourceSchema,j as StatusSchema,b as VisibilitySchema}from'../chunk-3BZRQYRC.js';//# sourceMappingURL=common.js.map
1
+ export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,l as HttpMethodSchema,d as MonetizationSchema,i as PermissionSchema,e as PriceCurrencySchema,h as PurchaseAssetSchema,c as RoleSchema,k as SourceSchema,j as StatusSchema,b as VisibilitySchema}from'../chunk-33C7IDRP.js';//# sourceMappingURL=common.js.map
2
2
  //# sourceMappingURL=common.js.map
@@ -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 chunkRNBIB6S7_cjs=require('../chunk-RNBIB6S7.cjs');require('../chunk-23FTPTDP.cjs'),require('../chunk-7R5EIIIR.cjs'),require('../chunk-RRDGLT3N.cjs'),require('../chunk-BELCP7OL.cjs'),require('../chunk-L6SVUDFH.cjs'),require('../chunk-YFEGRZXL.cjs'),require('../chunk-7HF5VHUN.cjs'),require('../chunk-JRBBNFFI.cjs');Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkRNBIB6S7_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkRNBIB6S7_cjs.b}});Object.defineProperty(exports,"MessageReactionSchema",{enumerable:true,get:function(){return chunkRNBIB6S7_cjs.e}});Object.defineProperty(exports,"MessageReactionValueSchema",{enumerable:true,get:function(){return chunkRNBIB6S7_cjs.d}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkRNBIB6S7_cjs.f}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkRNBIB6S7_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,14 +751,17 @@ 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
+ declare const MessageReactionValueSchema: z.ZodUnion<readonly [z.ZodLiteral<"heart">, z.ZodLiteral<"thumbs-up">, z.ZodLiteral<"thumbs-down">, z.ZodLiteral<"question">, z.ZodLiteral<"skull">]>;
757
+ declare const MessageReactionSchema: z.ZodObject<{
758
+ id: z.ZodUUID;
759
+ message_id: z.ZodUUID;
760
+ conversation_id: z.ZodUUID;
761
+ user_id: z.ZodUUID;
762
+ value: z.ZodUnion<readonly [z.ZodLiteral<"heart">, z.ZodLiteral<"thumbs-up">, z.ZodLiteral<"thumbs-down">, z.ZodLiteral<"question">, z.ZodLiteral<"skull">]>;
763
+ created_at: z.ZodString;
764
+ }, z.core.$strip>;
756
765
  declare const MessageSchema: z.ZodObject<{
757
766
  id: z.ZodUUID;
758
767
  conversation_id: z.ZodUUID;
@@ -795,6 +804,14 @@ declare const MessageSchema: z.ZodObject<{
795
804
  }, z.core.$strip>;
796
805
  text: z.ZodString;
797
806
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
807
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
808
+ id: z.ZodUUID;
809
+ message_id: z.ZodUUID;
810
+ conversation_id: z.ZodUUID;
811
+ user_id: z.ZodUUID;
812
+ value: z.ZodUnion<readonly [z.ZodLiteral<"heart">, z.ZodLiteral<"thumbs-up">, z.ZodLiteral<"thumbs-down">, z.ZodLiteral<"question">, z.ZodLiteral<"skull">]>;
813
+ created_at: z.ZodString;
814
+ }, z.core.$strip>>>>;
798
815
  assets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
799
816
  id: z.ZodOptional<z.ZodUUID>;
800
817
  user_id: z.ZodOptional<z.ZodUUID>;
@@ -975,10 +992,10 @@ declare const MessageSchema: z.ZodObject<{
975
992
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
976
993
  asset_type: z.ZodOptional<z.ZodEnum<{
977
994
  user: "user";
978
- file: "file";
979
995
  organization: "organization";
980
996
  team: "team";
981
997
  dataset: "dataset";
998
+ file: "file";
982
999
  service: "service";
983
1000
  route: "route";
984
1001
  post: "post";
@@ -1055,14 +1072,14 @@ declare const MessageSchema: z.ZodObject<{
1055
1072
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
1056
1073
  state: z.ZodOptional<z.ZodEnum<{
1057
1074
  success: "success";
1058
- error: "error";
1059
1075
  queued: "queued";
1060
1076
  "in-progress": "in-progress";
1061
1077
  "timed-out": "timed-out";
1078
+ error: "error";
1062
1079
  }>>;
1063
1080
  source: z.ZodOptional<z.ZodEnum<{
1064
- web: "web";
1065
1081
  api: "api";
1082
+ web: "web";
1066
1083
  }>>;
1067
1084
  is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
1068
1085
  created_at: z.ZodOptional<z.ZodString>;
@@ -1106,6 +1123,8 @@ declare const MessageSchema: z.ZodObject<{
1106
1123
  type Conversation = z.infer<typeof ConversationSchema>;
1107
1124
  type CreateConversation = z.infer<typeof CreateConversationSchema>;
1108
1125
  type UpdateConversation = z.infer<typeof UpdateConversationSchema>;
1126
+ type MessageReactionValue = z.infer<typeof MessageReactionValueSchema>;
1127
+ type MessageReaction = z.infer<typeof MessageReactionSchema>;
1109
1128
  type Message = z.infer<typeof MessageSchema>;
1110
1129
 
1111
- export { type Conversation, ConversationSchema, type CreateConversation, CreateConversationSchema, type Message, MessageSchema, type UpdateConversation, UpdateConversationSchema };
1130
+ export { type Conversation, ConversationSchema, type CreateConversation, CreateConversationSchema, type Message, type MessageReaction, MessageReactionSchema, type MessageReactionValue, MessageReactionValueSchema, MessageSchema, type UpdateConversation, UpdateConversationSchema };