@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
@@ -37,7 +37,13 @@ declare const EntryStatusSchema: z.ZodEnum<{
37
37
  declare const QuestItemBaseSchema: z.ZodObject<{
38
38
  id: z.ZodUUID;
39
39
  quest_id: z.ZodUUID;
40
- description: z.ZodString;
40
+ description: z.ZodObject<{
41
+ json: z.ZodObject<{
42
+ type: z.ZodLiteral<"doc">;
43
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
44
+ }, z.core.$strip>;
45
+ text: z.ZodString;
46
+ }, z.core.$strip>;
41
47
  status: z.ZodDefault<z.ZodEnum<{
42
48
  pending: "pending";
43
49
  in_progress: "in_progress";
@@ -57,10 +63,10 @@ declare const QuestItemBaseSchema: z.ZodObject<{
57
63
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
58
64
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
59
65
  user: "user";
66
+ file: "file";
60
67
  organization: "organization";
61
68
  team: "team";
62
69
  dataset: "dataset";
63
- file: "file";
64
70
  service: "service";
65
71
  route: "route";
66
72
  post: "post";
@@ -81,8 +87,8 @@ declare const QuestItemBaseSchema: z.ZodObject<{
81
87
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
82
88
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
83
89
  asset_type: z.ZodEnum<{
84
- dataset: "dataset";
85
90
  file: "file";
91
+ dataset: "dataset";
86
92
  post: "post";
87
93
  }>;
88
94
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -102,10 +108,10 @@ declare const QuestItemBaseSchema: z.ZodObject<{
102
108
  asset_id: z.ZodUUID;
103
109
  asset_type: z.ZodEnum<{
104
110
  user: "user";
111
+ file: "file";
105
112
  organization: "organization";
106
113
  team: "team";
107
114
  dataset: "dataset";
108
- file: "file";
109
115
  service: "service";
110
116
  route: "route";
111
117
  post: "post";
@@ -131,7 +137,13 @@ declare const QuestItemBaseSchema: z.ZodObject<{
131
137
  declare const QuestItemSchema: z.ZodObject<{
132
138
  id: z.ZodUUID;
133
139
  quest_id: z.ZodUUID;
134
- description: z.ZodString;
140
+ description: z.ZodObject<{
141
+ json: z.ZodObject<{
142
+ type: z.ZodLiteral<"doc">;
143
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
144
+ }, z.core.$strip>;
145
+ text: z.ZodString;
146
+ }, z.core.$strip>;
135
147
  status: z.ZodDefault<z.ZodEnum<{
136
148
  pending: "pending";
137
149
  in_progress: "in_progress";
@@ -151,10 +163,10 @@ declare const QuestItemSchema: z.ZodObject<{
151
163
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
152
164
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
153
165
  user: "user";
166
+ file: "file";
154
167
  organization: "organization";
155
168
  team: "team";
156
169
  dataset: "dataset";
157
- file: "file";
158
170
  service: "service";
159
171
  route: "route";
160
172
  post: "post";
@@ -175,8 +187,8 @@ declare const QuestItemSchema: z.ZodObject<{
175
187
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
176
188
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
177
189
  asset_type: z.ZodEnum<{
178
- dataset: "dataset";
179
190
  file: "file";
191
+ dataset: "dataset";
180
192
  post: "post";
181
193
  }>;
182
194
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -196,10 +208,10 @@ declare const QuestItemSchema: z.ZodObject<{
196
208
  asset_id: z.ZodUUID;
197
209
  asset_type: z.ZodEnum<{
198
210
  user: "user";
211
+ file: "file";
199
212
  organization: "organization";
200
213
  team: "team";
201
214
  dataset: "dataset";
202
- file: "file";
203
215
  service: "service";
204
216
  route: "route";
205
217
  post: "post";
@@ -228,20 +240,27 @@ declare const QuestItemSchema: z.ZodObject<{
228
240
  * `quest_id`, `created_by`, and lifecycle-derived fields
229
241
  * (`auto_skipped`, `status_before_auto_skip`).
230
242
  *
231
- * Accepts a plain description string as a convenience — it's lifted
232
- * into `{ description }` by the `union` below.
243
+ * Accepts a plain description string or TipTap Content as a convenience —
244
+ * a bare string is lifted into `{ description }` by the `union` below.
245
+ * The backend normalizes either shape with `toContentFromMaybeMarkdown`.
233
246
  */
234
247
  declare const CreateQuestItemObjectSchema: z.ZodObject<{
235
- description: z.ZodString;
248
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
249
+ json: z.ZodObject<{
250
+ type: z.ZodLiteral<"doc">;
251
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
252
+ }, z.core.$strip>;
253
+ text: z.ZodString;
254
+ }, z.core.$strip>]>;
236
255
  type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
237
256
  sort_order: z.ZodOptional<z.ZodNumber>;
238
257
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
239
258
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
240
259
  user: "user";
260
+ file: "file";
241
261
  organization: "organization";
242
262
  team: "team";
243
263
  dataset: "dataset";
244
- file: "file";
245
264
  service: "service";
246
265
  route: "route";
247
266
  post: "post";
@@ -262,8 +281,8 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
262
281
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
263
282
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
264
283
  asset_type: z.ZodEnum<{
265
- dataset: "dataset";
266
284
  file: "file";
285
+ dataset: "dataset";
267
286
  post: "post";
268
287
  }>;
269
288
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -283,10 +302,10 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
283
302
  asset_id: z.ZodUUID;
284
303
  asset_type: z.ZodEnum<{
285
304
  user: "user";
305
+ file: "file";
286
306
  organization: "organization";
287
307
  team: "team";
288
308
  dataset: "dataset";
289
- file: "file";
290
309
  service: "service";
291
310
  route: "route";
292
311
  post: "post";
@@ -297,84 +316,57 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
297
316
  }, z.core.$strip>>>>;
298
317
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
299
318
  }, z.core.$strip>;
300
- declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
301
- description: string;
319
+ declare const CreateQuestItemSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
320
+ description: string | {
321
+ json: {
322
+ type: "doc";
323
+ content: any[];
324
+ };
325
+ text: string;
326
+ };
327
+ type: string;
328
+ reward_xp: number;
329
+ reward_currency: "usd" | "btc";
330
+ reward_amount: number;
331
+ sort_order?: number | undefined;
332
+ assignee_id?: string | null | undefined;
333
+ expected_asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
334
+ child_quest_id?: string | null | undefined;
335
+ eval_route_id?: string | null | undefined;
336
+ eval_score_path?: string | null | undefined;
337
+ eval_pass_min?: number | null | undefined;
338
+ eval_pass_max?: number | null | undefined;
339
+ submission_assets?: Record<string, {
340
+ [x: string]: any;
341
+ asset_type: "file" | "dataset" | "post";
342
+ required: boolean;
343
+ primary?: boolean | undefined;
344
+ input_filter?: "image" | "video" | "audio" | "pdf" | "3d model" | "atomic structure" | null | undefined;
345
+ file_extensions?: string[] | null | undefined;
346
+ contains_file_extensions?: string[] | null | undefined;
347
+ }> | null | undefined;
348
+ eval_static_inputs?: Record<string, {
349
+ asset_id: string;
350
+ asset_type: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
351
+ }> | null | undefined;
352
+ notes?: string | null | undefined;
302
353
  }, string>>, z.ZodObject<{
303
- description: z.ZodString;
354
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
355
+ json: z.ZodObject<{
356
+ type: z.ZodLiteral<"doc">;
357
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
358
+ }, z.core.$strip>;
359
+ text: z.ZodString;
360
+ }, z.core.$strip>]>;
304
361
  type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
305
362
  sort_order: z.ZodOptional<z.ZodNumber>;
306
363
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
307
364
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
308
365
  user: "user";
309
- organization: "organization";
310
- team: "team";
311
- dataset: "dataset";
312
366
  file: "file";
313
- service: "service";
314
- route: "route";
315
- post: "post";
316
- quest: "quest";
317
- comment: "comment";
318
- conversation: "conversation";
319
- }>>>;
320
- reward_xp: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
321
- reward_currency: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
322
- usd: "usd";
323
- btc: "btc";
324
- }>>>;
325
- reward_amount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
326
- child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
327
- eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
328
- eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
- eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
330
- eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
331
- submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
332
- asset_type: z.ZodEnum<{
333
- dataset: "dataset";
334
- file: "file";
335
- post: "post";
336
- }>;
337
- primary: z.ZodOptional<z.ZodBoolean>;
338
- input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
339
- image: "image";
340
- video: "video";
341
- audio: "audio";
342
- pdf: "pdf";
343
- "3d model": "3d model";
344
- "atomic structure": "atomic structure";
345
- }>>>;
346
- file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
347
- contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
348
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
349
- }, z.core.$catchall<z.ZodAny>>>>>;
350
- eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
351
- asset_id: z.ZodUUID;
352
- asset_type: z.ZodEnum<{
353
- user: "user";
354
- organization: "organization";
355
- team: "team";
356
- dataset: "dataset";
357
- file: "file";
358
- service: "service";
359
- route: "route";
360
- post: "post";
361
- quest: "quest";
362
- comment: "comment";
363
- conversation: "conversation";
364
- }>;
365
- }, z.core.$strip>>>>;
366
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
367
- }, z.core.$strip>]>, z.ZodObject<{
368
- description: z.ZodString;
369
- type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
370
- sort_order: z.ZodOptional<z.ZodNumber>;
371
- assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
372
- expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
373
- user: "user";
374
367
  organization: "organization";
375
368
  team: "team";
376
369
  dataset: "dataset";
377
- file: "file";
378
370
  service: "service";
379
371
  route: "route";
380
372
  post: "post";
@@ -395,8 +387,8 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
395
387
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
396
388
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
397
389
  asset_type: z.ZodEnum<{
398
- dataset: "dataset";
399
390
  file: "file";
391
+ dataset: "dataset";
400
392
  post: "post";
401
393
  }>;
402
394
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -416,10 +408,10 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
416
408
  asset_id: z.ZodUUID;
417
409
  asset_type: z.ZodEnum<{
418
410
  user: "user";
411
+ file: "file";
419
412
  organization: "organization";
420
413
  team: "team";
421
414
  dataset: "dataset";
422
- file: "file";
423
415
  service: "service";
424
416
  route: "route";
425
417
  post: "post";
@@ -429,7 +421,7 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
429
421
  }>;
430
422
  }, z.core.$strip>>>>;
431
423
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
- }, z.core.$strip>>;
424
+ }, z.core.$strip>]>;
433
425
  declare const QuestSchema: z.ZodObject<{
434
426
  id: z.ZodUUID;
435
427
  user_id: z.ZodUUID;
@@ -673,14 +665,14 @@ declare const QuestSchema: z.ZodObject<{
673
665
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
674
666
  state: z.ZodEnum<{
675
667
  success: "success";
668
+ error: "error";
676
669
  queued: "queued";
677
670
  "in-progress": "in-progress";
678
671
  "timed-out": "timed-out";
679
- error: "error";
680
672
  }>;
681
673
  source: z.ZodEnum<{
682
- api: "api";
683
674
  web: "web";
675
+ api: "api";
684
676
  }>;
685
677
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
686
678
  created_at: z.ZodString;
@@ -707,7 +699,13 @@ declare const QuestSchema: z.ZodObject<{
707
699
  items: z.ZodOptional<z.ZodArray<z.ZodObject<{
708
700
  id: z.ZodOptional<z.ZodUUID>;
709
701
  quest_id: z.ZodOptional<z.ZodUUID>;
710
- description: z.ZodOptional<z.ZodString>;
702
+ description: z.ZodOptional<z.ZodObject<{
703
+ json: z.ZodObject<{
704
+ type: z.ZodLiteral<"doc">;
705
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
706
+ }, z.core.$strip>;
707
+ text: z.ZodString;
708
+ }, z.core.$strip>>;
711
709
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
712
710
  pending: "pending";
713
711
  in_progress: "in_progress";
@@ -727,10 +725,10 @@ declare const QuestSchema: z.ZodObject<{
727
725
  assignee_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
728
726
  expected_asset_type: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
729
727
  user: "user";
728
+ file: "file";
730
729
  organization: "organization";
731
730
  team: "team";
732
731
  dataset: "dataset";
733
- file: "file";
734
732
  service: "service";
735
733
  route: "route";
736
734
  post: "post";
@@ -751,8 +749,8 @@ declare const QuestSchema: z.ZodObject<{
751
749
  eval_pass_max: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
752
750
  submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
753
751
  asset_type: z.ZodEnum<{
754
- dataset: "dataset";
755
752
  file: "file";
753
+ dataset: "dataset";
756
754
  post: "post";
757
755
  }>;
758
756
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -772,10 +770,10 @@ declare const QuestSchema: z.ZodObject<{
772
770
  asset_id: z.ZodUUID;
773
771
  asset_type: z.ZodEnum<{
774
772
  user: "user";
773
+ file: "file";
775
774
  organization: "organization";
776
775
  team: "team";
777
776
  dataset: "dataset";
778
- file: "file";
779
777
  service: "service";
780
778
  route: "route";
781
779
  post: "post";
@@ -822,22 +820,18 @@ declare const QuestSchema: z.ZodObject<{
822
820
  * `CreatePostSchema` defaults `org_id`/`team_id` so non-frontend callers
823
821
  * don't have to know about `GLOBAL_ORG_ID`.
824
822
  *
825
- * The `items` field accepts either plain strings or full item objects —
826
- * the backend `createQuestItems`/`createQuest` paths already handle both
827
- * shapes, and `CreateQuestItemSchema` normalizes strings into
828
- * `{ description }`.
823
+ * The `items` field accepts either plain strings, TipTap Content objects, or
824
+ * full item objects — the backend `createQuestItems`/`createQuest` paths
825
+ * already handle both shapes, and `CreateQuestItemSchema` normalizes strings
826
+ * into `{ description }`.
829
827
  */
830
828
  declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
831
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
832
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
833
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
834
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
- }, z.core.$strip>>>>;
836
829
  monetization: z.ZodOptional<z.ZodEnum<{
837
830
  none: "none";
838
831
  "pay-to-unlock": "pay-to-unlock";
839
832
  "pay-per-use": "pay-per-use";
840
833
  }>>;
834
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
841
835
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
842
836
  license_id: z.ZodOptional<z.ZodString>;
843
837
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -854,6 +848,10 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
854
848
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
855
849
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
856
850
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
851
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
852
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
853
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
854
+ }, z.core.$strip>>>>;
857
855
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
858
856
  id: z.ZodDefault<z.ZodUUID>;
859
857
  team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
@@ -861,14 +859,14 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
861
859
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
862
860
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
863
861
  success: "success";
862
+ error: "error";
864
863
  queued: "queued";
865
864
  "in-progress": "in-progress";
866
865
  "timed-out": "timed-out";
867
- error: "error";
868
866
  }>>>;
869
867
  source: z.ZodDefault<z.ZodEnum<{
870
- api: "api";
871
868
  web: "web";
869
+ api: "api";
872
870
  }>>;
873
871
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
874
872
  organization: "organization";
@@ -964,84 +962,57 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
964
962
  cancelled: "cancelled";
965
963
  }>>;
966
964
  max_xp_per_contributor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
967
- items: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
968
- description: string;
965
+ items: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
966
+ description: string | {
967
+ json: {
968
+ type: "doc";
969
+ content: any[];
970
+ };
971
+ text: string;
972
+ };
973
+ type: string;
974
+ reward_xp: number;
975
+ reward_currency: "usd" | "btc";
976
+ reward_amount: number;
977
+ sort_order?: number | undefined;
978
+ assignee_id?: string | null | undefined;
979
+ expected_asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
980
+ child_quest_id?: string | null | undefined;
981
+ eval_route_id?: string | null | undefined;
982
+ eval_score_path?: string | null | undefined;
983
+ eval_pass_min?: number | null | undefined;
984
+ eval_pass_max?: number | null | undefined;
985
+ submission_assets?: Record<string, {
986
+ [x: string]: any;
987
+ asset_type: "file" | "dataset" | "post";
988
+ required: boolean;
989
+ primary?: boolean | undefined;
990
+ input_filter?: "image" | "video" | "audio" | "pdf" | "3d model" | "atomic structure" | null | undefined;
991
+ file_extensions?: string[] | null | undefined;
992
+ contains_file_extensions?: string[] | null | undefined;
993
+ }> | null | undefined;
994
+ eval_static_inputs?: Record<string, {
995
+ asset_id: string;
996
+ asset_type: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
997
+ }> | null | undefined;
998
+ notes?: string | null | undefined;
969
999
  }, string>>, z.ZodObject<{
970
- description: z.ZodString;
1000
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1001
+ json: z.ZodObject<{
1002
+ type: z.ZodLiteral<"doc">;
1003
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1004
+ }, z.core.$strip>;
1005
+ text: z.ZodString;
1006
+ }, z.core.$strip>]>;
971
1007
  type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
972
1008
  sort_order: z.ZodOptional<z.ZodNumber>;
973
1009
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
974
1010
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
975
1011
  user: "user";
976
- organization: "organization";
977
- team: "team";
978
- dataset: "dataset";
979
1012
  file: "file";
980
- service: "service";
981
- route: "route";
982
- post: "post";
983
- quest: "quest";
984
- comment: "comment";
985
- conversation: "conversation";
986
- }>>>;
987
- reward_xp: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
988
- reward_currency: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
989
- usd: "usd";
990
- btc: "btc";
991
- }>>>;
992
- reward_amount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
993
- child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
994
- eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
995
- eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
996
- eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
997
- eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
998
- submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
999
- asset_type: z.ZodEnum<{
1000
- dataset: "dataset";
1001
- file: "file";
1002
- post: "post";
1003
- }>;
1004
- primary: z.ZodOptional<z.ZodBoolean>;
1005
- input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1006
- image: "image";
1007
- video: "video";
1008
- audio: "audio";
1009
- pdf: "pdf";
1010
- "3d model": "3d model";
1011
- "atomic structure": "atomic structure";
1012
- }>>>;
1013
- file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1014
- contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1015
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1016
- }, z.core.$catchall<z.ZodAny>>>>>;
1017
- eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1018
- asset_id: z.ZodUUID;
1019
- asset_type: z.ZodEnum<{
1020
- user: "user";
1021
- organization: "organization";
1022
- team: "team";
1023
- dataset: "dataset";
1024
- file: "file";
1025
- service: "service";
1026
- route: "route";
1027
- post: "post";
1028
- quest: "quest";
1029
- comment: "comment";
1030
- conversation: "conversation";
1031
- }>;
1032
- }, z.core.$strip>>>>;
1033
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1034
- }, z.core.$strip>]>, z.ZodObject<{
1035
- description: z.ZodString;
1036
- type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1037
- sort_order: z.ZodOptional<z.ZodNumber>;
1038
- assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1039
- expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1040
- user: "user";
1041
1013
  organization: "organization";
1042
1014
  team: "team";
1043
1015
  dataset: "dataset";
1044
- file: "file";
1045
1016
  service: "service";
1046
1017
  route: "route";
1047
1018
  post: "post";
@@ -1062,8 +1033,8 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1062
1033
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1063
1034
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1064
1035
  asset_type: z.ZodEnum<{
1065
- dataset: "dataset";
1066
1036
  file: "file";
1037
+ dataset: "dataset";
1067
1038
  post: "post";
1068
1039
  }>;
1069
1040
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -1083,10 +1054,10 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1083
1054
  asset_id: z.ZodUUID;
1084
1055
  asset_type: z.ZodEnum<{
1085
1056
  user: "user";
1057
+ file: "file";
1086
1058
  organization: "organization";
1087
1059
  team: "team";
1088
1060
  dataset: "dataset";
1089
- file: "file";
1090
1061
  service: "service";
1091
1062
  route: "route";
1092
1063
  post: "post";
@@ -1096,13 +1067,13 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1096
1067
  }>;
1097
1068
  }, z.core.$strip>>>>;
1098
1069
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
- }, z.core.$strip>>>>>;
1070
+ }, z.core.$strip>]>>>>;
1100
1071
  }, z.core.$strip>, z.ZodTransform<{
1101
1072
  id: string;
1102
1073
  team_id: string | null;
1103
1074
  org_id: string | null;
1104
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
1105
- source: "api" | "web";
1075
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
1076
+ source: "web" | "api";
1106
1077
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
1107
1078
  attribution: {
1108
1079
  originality: "original" | "derivative" | "third-party";
@@ -1130,14 +1101,20 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1130
1101
  type: "closable" | "continuous";
1131
1102
  status: "open" | "draft" | "closed" | "cancelled";
1132
1103
  items: {
1133
- description: string;
1104
+ description: string | {
1105
+ json: {
1106
+ type: "doc";
1107
+ content: any[];
1108
+ };
1109
+ text: string;
1110
+ };
1134
1111
  type: string;
1135
1112
  reward_xp: number;
1136
1113
  reward_currency: "usd" | "btc";
1137
1114
  reward_amount: number;
1138
1115
  sort_order?: number | undefined;
1139
1116
  assignee_id?: string | null | undefined;
1140
- expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1117
+ expected_asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1141
1118
  child_quest_id?: string | null | undefined;
1142
1119
  eval_route_id?: string | null | undefined;
1143
1120
  eval_score_path?: string | null | undefined;
@@ -1145,7 +1122,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1145
1122
  eval_pass_max?: number | null | undefined;
1146
1123
  submission_assets?: Record<string, {
1147
1124
  [x: string]: any;
1148
- asset_type: "dataset" | "file" | "post";
1125
+ asset_type: "file" | "dataset" | "post";
1149
1126
  required: boolean;
1150
1127
  primary?: boolean | undefined;
1151
1128
  input_filter?: "image" | "video" | "audio" | "pdf" | "3d model" | "atomic structure" | null | undefined;
@@ -1154,16 +1131,12 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1154
1131
  }> | null | undefined;
1155
1132
  eval_static_inputs?: Record<string, {
1156
1133
  asset_id: string;
1157
- asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
1134
+ asset_type: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
1158
1135
  }> | null | undefined;
1159
1136
  notes?: string | null | undefined;
1160
1137
  }[];
1161
- parent?: Record<string, any> | undefined;
1162
- metadata?: {
1163
- source?: string | null | undefined;
1164
- reply_to_comment_id?: string | null | undefined;
1165
- } | null | undefined;
1166
1138
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1139
+ parent?: Record<string, any> | undefined;
1167
1140
  parent_id?: string | null | undefined;
1168
1141
  license_id?: string | undefined;
1169
1142
  price?: number | null | undefined;
@@ -1174,6 +1147,10 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1174
1147
  stripe_product_id?: string | null | undefined;
1175
1148
  stripe_price_id?: string | null | undefined;
1176
1149
  stripe_meter_id?: string | null | undefined;
1150
+ metadata?: {
1151
+ source?: string | null | undefined;
1152
+ reply_to_comment_id?: string | null | undefined;
1153
+ } | null | undefined;
1177
1154
  preview?: Record<string, any>[] | null | undefined;
1178
1155
  name_url_slug?: string | null | undefined;
1179
1156
  description?: {
@@ -1188,8 +1165,8 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1188
1165
  id: string;
1189
1166
  team_id: string | null;
1190
1167
  org_id: string | null;
1191
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
1192
- source: "api" | "web";
1168
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
1169
+ source: "web" | "api";
1193
1170
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
1194
1171
  attribution: {
1195
1172
  originality: "original" | "derivative" | "third-party";
@@ -1217,14 +1194,20 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1217
1194
  type: "closable" | "continuous";
1218
1195
  status: "open" | "draft" | "closed" | "cancelled";
1219
1196
  items: {
1220
- description: string;
1197
+ description: string | {
1198
+ json: {
1199
+ type: "doc";
1200
+ content: any[];
1201
+ };
1202
+ text: string;
1203
+ };
1221
1204
  type: string;
1222
1205
  reward_xp: number;
1223
1206
  reward_currency: "usd" | "btc";
1224
1207
  reward_amount: number;
1225
1208
  sort_order?: number | undefined;
1226
1209
  assignee_id?: string | null | undefined;
1227
- expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1210
+ expected_asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1228
1211
  child_quest_id?: string | null | undefined;
1229
1212
  eval_route_id?: string | null | undefined;
1230
1213
  eval_score_path?: string | null | undefined;
@@ -1232,7 +1215,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1232
1215
  eval_pass_max?: number | null | undefined;
1233
1216
  submission_assets?: Record<string, {
1234
1217
  [x: string]: any;
1235
- asset_type: "dataset" | "file" | "post";
1218
+ asset_type: "file" | "dataset" | "post";
1236
1219
  required: boolean;
1237
1220
  primary?: boolean | undefined;
1238
1221
  input_filter?: "image" | "video" | "audio" | "pdf" | "3d model" | "atomic structure" | null | undefined;
@@ -1241,16 +1224,12 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1241
1224
  }> | null | undefined;
1242
1225
  eval_static_inputs?: Record<string, {
1243
1226
  asset_id: string;
1244
- asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
1227
+ asset_type: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
1245
1228
  }> | null | undefined;
1246
1229
  notes?: string | null | undefined;
1247
1230
  }[];
1248
- parent?: Record<string, any> | undefined;
1249
- metadata?: {
1250
- source?: string | null | undefined;
1251
- reply_to_comment_id?: string | null | undefined;
1252
- } | null | undefined;
1253
1231
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1232
+ parent?: Record<string, any> | undefined;
1254
1233
  parent_id?: string | null | undefined;
1255
1234
  license_id?: string | undefined;
1256
1235
  price?: number | null | undefined;
@@ -1261,6 +1240,10 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1261
1240
  stripe_product_id?: string | null | undefined;
1262
1241
  stripe_price_id?: string | null | undefined;
1263
1242
  stripe_meter_id?: string | null | undefined;
1243
+ metadata?: {
1244
+ source?: string | null | undefined;
1245
+ reply_to_comment_id?: string | null | undefined;
1246
+ } | null | undefined;
1264
1247
  preview?: Record<string, any>[] | null | undefined;
1265
1248
  name_url_slug?: string | null | undefined;
1266
1249
  description?: {
@@ -1273,28 +1256,6 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1273
1256
  max_xp_per_contributor?: number | null | undefined;
1274
1257
  }>>;
1275
1258
  declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1276
- quest: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1277
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1278
- closable: "closable";
1279
- continuous: "continuous";
1280
- }>>>;
1281
- status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1282
- open: "open";
1283
- draft: "draft";
1284
- closed: "closed";
1285
- cancelled: "cancelled";
1286
- }>>>;
1287
- max_xp_per_contributor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1288
- closed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1289
- }, z.core.$strip>>>;
1290
- org_id: z.ZodOptional<z.ZodUUID>;
1291
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1292
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1293
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1294
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1295
- }, z.core.$strip>>>>;
1296
- name: z.ZodOptional<z.ZodString>;
1297
- team_id: z.ZodOptional<z.ZodUUID>;
1298
1259
  visibility: z.ZodOptional<z.ZodEnum<{
1299
1260
  organization: "organization";
1300
1261
  public: "public";
@@ -1302,14 +1263,6 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1302
1263
  monetized: "monetized";
1303
1264
  inherit: "inherit";
1304
1265
  }>>;
1305
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1306
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
1307
- text: z.ZodString;
1308
- }, z.core.$strip>>>>;
1309
- source: z.ZodOptional<z.ZodEnum<{
1310
- api: "api";
1311
- web: "web";
1312
- }>>;
1313
1266
  monetization: z.ZodOptional<z.ZodEnum<{
1314
1267
  none: "none";
1315
1268
  "pay-to-unlock": "pay-to-unlock";
@@ -1346,14 +1299,40 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1346
1299
  }, z.core.$strip>>;
1347
1300
  state: z.ZodOptional<z.ZodEnum<{
1348
1301
  success: "success";
1302
+ error: "error";
1349
1303
  queued: "queued";
1350
1304
  "in-progress": "in-progress";
1351
1305
  "timed-out": "timed-out";
1352
- error: "error";
1353
1306
  }>>;
1307
+ source: z.ZodOptional<z.ZodEnum<{
1308
+ web: "web";
1309
+ api: "api";
1310
+ }>>;
1311
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1312
+ name: z.ZodOptional<z.ZodString>;
1313
+ org_id: z.ZodOptional<z.ZodUUID>;
1314
+ team_id: z.ZodOptional<z.ZodUUID>;
1315
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1316
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
1317
+ text: z.ZodString;
1318
+ }, z.core.$strip>>>>;
1354
1319
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
1355
1320
  license_id: z.ZodOptional<z.ZodString>;
1356
1321
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1322
+ quest: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1323
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1324
+ closable: "closable";
1325
+ continuous: "continuous";
1326
+ }>>>;
1327
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1328
+ open: "open";
1329
+ draft: "draft";
1330
+ closed: "closed";
1331
+ cancelled: "cancelled";
1332
+ }>>>;
1333
+ max_xp_per_contributor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1334
+ closed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1335
+ }, z.core.$strip>>>;
1357
1336
  name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1358
1337
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1359
1338
  unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -1369,32 +1348,17 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1369
1348
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1370
1349
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1371
1350
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1351
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1352
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1353
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1354
+ }, z.core.$strip>>>>;
1372
1355
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
1373
1356
  asset_type: z.ZodDefault<z.ZodLiteral<"quest">>;
1374
1357
  last_updated: z.ZodDefault<z.ZodString>;
1375
1358
  }, z.core.$strip>, z.ZodTransform<{
1376
1359
  asset_type: "quest";
1377
1360
  last_updated: string;
1378
- quest?: {
1379
- type?: "closable" | "continuous" | undefined;
1380
- status?: "open" | "draft" | "closed" | "cancelled" | undefined;
1381
- max_xp_per_contributor?: number | null | undefined;
1382
- closed_at?: string | null | undefined;
1383
- } | undefined;
1384
- org_id?: string | undefined;
1385
- parent?: Record<string, any> | undefined;
1386
- metadata?: {
1387
- source?: string | null | undefined;
1388
- reply_to_comment_id?: string | null | undefined;
1389
- } | null | undefined;
1390
- name?: string | undefined;
1391
- team_id?: string | undefined;
1392
1361
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1393
- description?: {
1394
- json: Record<string, any>;
1395
- text: string;
1396
- } | null | undefined;
1397
- source?: "api" | "web" | undefined;
1398
1362
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1399
1363
  attribution?: {
1400
1364
  originality: "original" | "derivative" | "third-party";
@@ -1415,10 +1379,25 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1415
1379
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
1416
1380
  doi?: string | null | undefined;
1417
1381
  } | undefined;
1418
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1382
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1383
+ source?: "web" | "api" | undefined;
1384
+ parent?: Record<string, any> | undefined;
1385
+ name?: string | undefined;
1386
+ org_id?: string | undefined;
1387
+ team_id?: string | undefined;
1388
+ description?: {
1389
+ json: Record<string, any>;
1390
+ text: string;
1391
+ } | null | undefined;
1419
1392
  parent_id?: string | null | undefined;
1420
1393
  license_id?: string | undefined;
1421
1394
  license?: Record<string, any> | undefined;
1395
+ quest?: {
1396
+ type?: "closable" | "continuous" | undefined;
1397
+ status?: "open" | "draft" | "closed" | "cancelled" | undefined;
1398
+ max_xp_per_contributor?: number | null | undefined;
1399
+ closed_at?: string | null | undefined;
1400
+ } | undefined;
1422
1401
  name_url_slug?: string | null | undefined;
1423
1402
  price?: number | null | undefined;
1424
1403
  unit_cost?: number | null | undefined;
@@ -1428,30 +1407,15 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1428
1407
  stripe_product_id?: string | null | undefined;
1429
1408
  stripe_price_id?: string | null | undefined;
1430
1409
  stripe_meter_id?: string | null | undefined;
1431
- preview?: Record<string, any>[] | null | undefined;
1432
- }, {
1433
- asset_type: "quest";
1434
- last_updated: string;
1435
- quest?: {
1436
- type?: "closable" | "continuous" | undefined;
1437
- status?: "open" | "draft" | "closed" | "cancelled" | undefined;
1438
- max_xp_per_contributor?: number | null | undefined;
1439
- closed_at?: string | null | undefined;
1440
- } | undefined;
1441
- org_id?: string | undefined;
1442
- parent?: Record<string, any> | undefined;
1443
1410
  metadata?: {
1444
1411
  source?: string | null | undefined;
1445
1412
  reply_to_comment_id?: string | null | undefined;
1446
1413
  } | null | undefined;
1447
- name?: string | undefined;
1448
- team_id?: string | undefined;
1414
+ preview?: Record<string, any>[] | null | undefined;
1415
+ }, {
1416
+ asset_type: "quest";
1417
+ last_updated: string;
1449
1418
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1450
- description?: {
1451
- json: Record<string, any>;
1452
- text: string;
1453
- } | null | undefined;
1454
- source?: "api" | "web" | undefined;
1455
1419
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1456
1420
  attribution?: {
1457
1421
  originality: "original" | "derivative" | "third-party";
@@ -1472,10 +1436,25 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1472
1436
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
1473
1437
  doi?: string | null | undefined;
1474
1438
  } | undefined;
1475
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1439
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1440
+ source?: "web" | "api" | undefined;
1441
+ parent?: Record<string, any> | undefined;
1442
+ name?: string | undefined;
1443
+ org_id?: string | undefined;
1444
+ team_id?: string | undefined;
1445
+ description?: {
1446
+ json: Record<string, any>;
1447
+ text: string;
1448
+ } | null | undefined;
1476
1449
  parent_id?: string | null | undefined;
1477
1450
  license_id?: string | undefined;
1478
1451
  license?: Record<string, any> | undefined;
1452
+ quest?: {
1453
+ type?: "closable" | "continuous" | undefined;
1454
+ status?: "open" | "draft" | "closed" | "cancelled" | undefined;
1455
+ max_xp_per_contributor?: number | null | undefined;
1456
+ closed_at?: string | null | undefined;
1457
+ } | undefined;
1479
1458
  name_url_slug?: string | null | undefined;
1480
1459
  price?: number | null | undefined;
1481
1460
  unit_cost?: number | null | undefined;
@@ -1485,19 +1464,29 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1485
1464
  stripe_product_id?: string | null | undefined;
1486
1465
  stripe_price_id?: string | null | undefined;
1487
1466
  stripe_meter_id?: string | null | undefined;
1467
+ metadata?: {
1468
+ source?: string | null | undefined;
1469
+ reply_to_comment_id?: string | null | undefined;
1470
+ } | null | undefined;
1488
1471
  preview?: Record<string, any>[] | null | undefined;
1489
1472
  }>>;
1490
1473
  declare const UpdateQuestItemSchema: z.ZodObject<{
1491
- description: z.ZodOptional<z.ZodString>;
1474
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1475
+ json: z.ZodObject<{
1476
+ type: z.ZodLiteral<"doc">;
1477
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1478
+ }, z.core.$strip>;
1479
+ text: z.ZodString;
1480
+ }, z.core.$strip>]>>;
1492
1481
  type: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
1493
1482
  sort_order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1494
1483
  assignee_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
1495
1484
  expected_asset_type: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1496
1485
  user: "user";
1486
+ file: "file";
1497
1487
  organization: "organization";
1498
1488
  team: "team";
1499
1489
  dataset: "dataset";
1500
- file: "file";
1501
1490
  service: "service";
1502
1491
  route: "route";
1503
1492
  post: "post";
@@ -1518,8 +1507,8 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
1518
1507
  eval_pass_max: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1519
1508
  submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1520
1509
  asset_type: z.ZodEnum<{
1521
- dataset: "dataset";
1522
1510
  file: "file";
1511
+ dataset: "dataset";
1523
1512
  post: "post";
1524
1513
  }>;
1525
1514
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -1539,10 +1528,10 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
1539
1528
  asset_id: z.ZodUUID;
1540
1529
  asset_type: z.ZodEnum<{
1541
1530
  user: "user";
1531
+ file: "file";
1542
1532
  organization: "organization";
1543
1533
  team: "team";
1544
1534
  dataset: "dataset";
1545
- file: "file";
1546
1535
  service: "service";
1547
1536
  route: "route";
1548
1537
  post: "post";
@@ -1567,10 +1556,10 @@ declare const EntrySchema: z.ZodObject<{
1567
1556
  asset_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1568
1557
  asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1569
1558
  user: "user";
1559
+ file: "file";
1570
1560
  organization: "organization";
1571
1561
  team: "team";
1572
1562
  dataset: "dataset";
1573
- file: "file";
1574
1563
  service: "service";
1575
1564
  route: "route";
1576
1565
  post: "post";
@@ -1582,10 +1571,10 @@ declare const EntrySchema: z.ZodObject<{
1582
1571
  asset_id: z.ZodUUID;
1583
1572
  asset_type: z.ZodEnum<{
1584
1573
  user: "user";
1574
+ file: "file";
1585
1575
  organization: "organization";
1586
1576
  team: "team";
1587
1577
  dataset: "dataset";
1588
- file: "file";
1589
1578
  service: "service";
1590
1579
  route: "route";
1591
1580
  post: "post";
@@ -1633,10 +1622,10 @@ declare const CreateEntrySchema: z.ZodObject<{
1633
1622
  asset_id: z.ZodUUID;
1634
1623
  asset_type: z.ZodOptional<z.ZodEnum<{
1635
1624
  user: "user";
1625
+ file: "file";
1636
1626
  organization: "organization";
1637
1627
  team: "team";
1638
1628
  dataset: "dataset";
1639
- file: "file";
1640
1629
  service: "service";
1641
1630
  route: "route";
1642
1631
  post: "post";