@ourofoundation/ouro-js 3.5.0 → 3.5.2

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 (107) hide show
  1. package/dist/{chunk-BFBGVGNF.js → chunk-35CJDNHH.js} +2 -2
  2. package/dist/{chunk-BFBGVGNF.js.map → chunk-35CJDNHH.js.map} +1 -1
  3. package/dist/chunk-3UWDQLTN.js +2 -0
  4. package/dist/chunk-3UWDQLTN.js.map +1 -0
  5. package/dist/chunk-6GPIZJ4T.cjs +2 -0
  6. package/dist/chunk-6GPIZJ4T.cjs.map +1 -0
  7. package/dist/{chunk-CONKY65O.cjs → chunk-6ZJQTECB.cjs} +2 -2
  8. package/dist/{chunk-CONKY65O.cjs.map → chunk-6ZJQTECB.cjs.map} +1 -1
  9. package/dist/{chunk-XWXLCG4E.cjs → chunk-BWAEBQKV.cjs} +2 -2
  10. package/dist/chunk-BWAEBQKV.cjs.map +1 -0
  11. package/dist/chunk-F5CWCYOP.cjs +2 -0
  12. package/dist/chunk-F5CWCYOP.cjs.map +1 -0
  13. package/dist/{chunk-QT3A4ULM.cjs → chunk-FRMPLGE4.cjs} +2 -2
  14. package/dist/{chunk-QT3A4ULM.cjs.map → chunk-FRMPLGE4.cjs.map} +1 -1
  15. package/dist/{chunk-6YF2RSXS.js → chunk-G3VMEPTP.js} +2 -2
  16. package/dist/{chunk-6YF2RSXS.js.map → chunk-G3VMEPTP.js.map} +1 -1
  17. package/dist/chunk-HIXNQKVP.cjs +2 -0
  18. package/dist/{chunk-NEINJFFK.cjs.map → chunk-HIXNQKVP.cjs.map} +1 -1
  19. package/dist/chunk-IWOXGKK4.js +2 -0
  20. package/dist/chunk-IWOXGKK4.js.map +1 -0
  21. package/dist/chunk-KCVE35IO.js +2 -0
  22. package/dist/chunk-KCVE35IO.js.map +1 -0
  23. package/dist/chunk-MLTO7TMM.js +2 -0
  24. package/dist/chunk-MLTO7TMM.js.map +1 -0
  25. package/dist/chunk-OBWPO2QT.cjs +2 -0
  26. package/dist/chunk-OBWPO2QT.cjs.map +1 -0
  27. package/dist/{chunk-Z3ALIFYO.js → chunk-R2W4NEEJ.js} +2 -2
  28. package/dist/chunk-R2W4NEEJ.js.map +1 -0
  29. package/dist/{chunk-IP4OVRZB.cjs → chunk-ROMY5WNQ.cjs} +2 -2
  30. package/dist/chunk-ROMY5WNQ.cjs.map +1 -0
  31. package/dist/chunk-SR5UZ4NP.js +2 -0
  32. package/dist/chunk-SR5UZ4NP.js.map +1 -0
  33. package/dist/{chunk-JKTQY4RU.js → chunk-TYOQ32UV.js} +2 -2
  34. package/dist/{chunk-JKTQY4RU.js.map → chunk-TYOQ32UV.js.map} +1 -1
  35. package/dist/chunk-V73EW77Y.cjs +2 -0
  36. package/dist/chunk-V73EW77Y.cjs.map +1 -0
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.d.cts +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/schema/assets.cjs +1 -1
  42. package/dist/schema/assets.d.cts +85 -84
  43. package/dist/schema/assets.d.ts +85 -84
  44. package/dist/schema/assets.js +1 -1
  45. package/dist/schema/comments.cjs +1 -1
  46. package/dist/schema/comments.d.cts +140 -136
  47. package/dist/schema/comments.d.ts +140 -136
  48. package/dist/schema/comments.js +1 -1
  49. package/dist/schema/common.d.cts +16 -16
  50. package/dist/schema/common.d.ts +16 -16
  51. package/dist/schema/conversations.cjs +1 -1
  52. package/dist/schema/conversations.d.cts +70 -69
  53. package/dist/schema/conversations.d.ts +70 -69
  54. package/dist/schema/conversations.js +1 -1
  55. package/dist/schema/datasets.cjs +1 -1
  56. package/dist/schema/datasets.d.cts +283 -107
  57. package/dist/schema/datasets.d.ts +283 -107
  58. package/dist/schema/datasets.js +1 -1
  59. package/dist/schema/files.cjs +1 -1
  60. package/dist/schema/files.d.cts +101 -100
  61. package/dist/schema/files.d.ts +101 -100
  62. package/dist/schema/files.js +1 -1
  63. package/dist/schema/notifications.d.cts +2 -2
  64. package/dist/schema/notifications.d.ts +2 -2
  65. package/dist/schema/organizations.d.cts +1 -1
  66. package/dist/schema/organizations.d.ts +1 -1
  67. package/dist/schema/posts.cjs +1 -1
  68. package/dist/schema/posts.d.cts +131 -129
  69. package/dist/schema/posts.d.ts +131 -129
  70. package/dist/schema/posts.js +1 -1
  71. package/dist/schema/quests.cjs +1 -1
  72. package/dist/schema/quests.d.cts +178 -177
  73. package/dist/schema/quests.d.ts +178 -177
  74. package/dist/schema/quests.js +1 -1
  75. package/dist/schema/services.cjs +1 -1
  76. package/dist/schema/services.d.cts +131 -127
  77. package/dist/schema/services.d.ts +131 -127
  78. package/dist/schema/services.js +1 -1
  79. package/dist/schema/teams.d.cts +18 -18
  80. package/dist/schema/teams.d.ts +18 -18
  81. package/dist/utils/quest-submission.cjs +1 -1
  82. package/dist/utils/quest-submission.d.cts +7 -7
  83. package/dist/utils/quest-submission.d.ts +7 -7
  84. package/dist/utils/quest-submission.js +1 -1
  85. package/package.json +1 -1
  86. package/dist/chunk-7F26V24D.js +0 -2
  87. package/dist/chunk-7F26V24D.js.map +0 -1
  88. package/dist/chunk-B4225TEG.js +0 -2
  89. package/dist/chunk-B4225TEG.js.map +0 -1
  90. package/dist/chunk-BQ5WODME.cjs +0 -2
  91. package/dist/chunk-BQ5WODME.cjs.map +0 -1
  92. package/dist/chunk-G2MXCB7Q.js +0 -2
  93. package/dist/chunk-G2MXCB7Q.js.map +0 -1
  94. package/dist/chunk-IP4OVRZB.cjs.map +0 -1
  95. package/dist/chunk-JW7FACNZ.cjs +0 -2
  96. package/dist/chunk-JW7FACNZ.cjs.map +0 -1
  97. package/dist/chunk-MH4A7XAY.cjs +0 -2
  98. package/dist/chunk-MH4A7XAY.cjs.map +0 -1
  99. package/dist/chunk-NEINJFFK.cjs +0 -2
  100. package/dist/chunk-U3F23ASS.js +0 -2
  101. package/dist/chunk-U3F23ASS.js.map +0 -1
  102. package/dist/chunk-WUC5AUUJ.cjs +0 -2
  103. package/dist/chunk-WUC5AUUJ.cjs.map +0 -1
  104. package/dist/chunk-XWXLCG4E.cjs.map +0 -1
  105. package/dist/chunk-Y6AKG4FJ.js +0 -2
  106. package/dist/chunk-Y6AKG4FJ.js.map +0 -1
  107. package/dist/chunk-Z3ALIFYO.js.map +0 -1
@@ -56,11 +56,11 @@ declare const QuestItemBaseSchema: z.ZodObject<{
56
56
  created_by: z.ZodUUID;
57
57
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
58
58
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
59
- user: "user";
60
59
  organization: "organization";
60
+ file: "file";
61
+ user: "user";
61
62
  team: "team";
62
63
  dataset: "dataset";
63
- file: "file";
64
64
  service: "service";
65
65
  route: "route";
66
66
  post: "post";
@@ -81,8 +81,8 @@ declare const QuestItemBaseSchema: z.ZodObject<{
81
81
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
82
82
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
83
83
  asset_type: z.ZodEnum<{
84
- dataset: "dataset";
85
84
  file: "file";
85
+ dataset: "dataset";
86
86
  post: "post";
87
87
  }>;
88
88
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -101,11 +101,11 @@ declare const QuestItemBaseSchema: z.ZodObject<{
101
101
  eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
102
102
  asset_id: z.ZodUUID;
103
103
  asset_type: z.ZodEnum<{
104
- user: "user";
105
104
  organization: "organization";
105
+ file: "file";
106
+ user: "user";
106
107
  team: "team";
107
108
  dataset: "dataset";
108
- file: "file";
109
109
  service: "service";
110
110
  route: "route";
111
111
  post: "post";
@@ -150,11 +150,11 @@ declare const QuestItemSchema: z.ZodObject<{
150
150
  created_by: z.ZodUUID;
151
151
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
152
152
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
153
- user: "user";
154
153
  organization: "organization";
154
+ file: "file";
155
+ user: "user";
155
156
  team: "team";
156
157
  dataset: "dataset";
157
- file: "file";
158
158
  service: "service";
159
159
  route: "route";
160
160
  post: "post";
@@ -175,8 +175,8 @@ declare const QuestItemSchema: z.ZodObject<{
175
175
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
176
176
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
177
177
  asset_type: z.ZodEnum<{
178
- dataset: "dataset";
179
178
  file: "file";
179
+ dataset: "dataset";
180
180
  post: "post";
181
181
  }>;
182
182
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -195,11 +195,11 @@ declare const QuestItemSchema: z.ZodObject<{
195
195
  eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
196
196
  asset_id: z.ZodUUID;
197
197
  asset_type: z.ZodEnum<{
198
- user: "user";
199
198
  organization: "organization";
199
+ file: "file";
200
+ user: "user";
200
201
  team: "team";
201
202
  dataset: "dataset";
202
- file: "file";
203
203
  service: "service";
204
204
  route: "route";
205
205
  post: "post";
@@ -237,11 +237,11 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
237
237
  sort_order: z.ZodOptional<z.ZodNumber>;
238
238
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
239
239
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
240
- user: "user";
241
240
  organization: "organization";
241
+ file: "file";
242
+ user: "user";
242
243
  team: "team";
243
244
  dataset: "dataset";
244
- file: "file";
245
245
  service: "service";
246
246
  route: "route";
247
247
  post: "post";
@@ -262,8 +262,8 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
262
262
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
263
263
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
264
264
  asset_type: z.ZodEnum<{
265
- dataset: "dataset";
266
265
  file: "file";
266
+ dataset: "dataset";
267
267
  post: "post";
268
268
  }>;
269
269
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -282,11 +282,11 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
282
282
  eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
283
283
  asset_id: z.ZodUUID;
284
284
  asset_type: z.ZodEnum<{
285
- user: "user";
286
285
  organization: "organization";
286
+ file: "file";
287
+ user: "user";
287
288
  team: "team";
288
289
  dataset: "dataset";
289
- file: "file";
290
290
  service: "service";
291
291
  route: "route";
292
292
  post: "post";
@@ -305,11 +305,11 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
305
305
  sort_order: z.ZodOptional<z.ZodNumber>;
306
306
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
307
307
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
308
- user: "user";
309
308
  organization: "organization";
309
+ file: "file";
310
+ user: "user";
310
311
  team: "team";
311
312
  dataset: "dataset";
312
- file: "file";
313
313
  service: "service";
314
314
  route: "route";
315
315
  post: "post";
@@ -330,8 +330,8 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
330
330
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
331
331
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
332
332
  asset_type: z.ZodEnum<{
333
- dataset: "dataset";
334
333
  file: "file";
334
+ dataset: "dataset";
335
335
  post: "post";
336
336
  }>;
337
337
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -350,11 +350,11 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
350
350
  eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
351
351
  asset_id: z.ZodUUID;
352
352
  asset_type: z.ZodEnum<{
353
- user: "user";
354
353
  organization: "organization";
354
+ file: "file";
355
+ user: "user";
355
356
  team: "team";
356
357
  dataset: "dataset";
357
- file: "file";
358
358
  service: "service";
359
359
  route: "route";
360
360
  post: "post";
@@ -370,11 +370,11 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
370
370
  sort_order: z.ZodOptional<z.ZodNumber>;
371
371
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
372
372
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
373
- user: "user";
374
373
  organization: "organization";
374
+ file: "file";
375
+ user: "user";
375
376
  team: "team";
376
377
  dataset: "dataset";
377
- file: "file";
378
378
  service: "service";
379
379
  route: "route";
380
380
  post: "post";
@@ -395,8 +395,8 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
395
395
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
396
396
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
397
397
  asset_type: z.ZodEnum<{
398
- dataset: "dataset";
399
398
  file: "file";
399
+ dataset: "dataset";
400
400
  post: "post";
401
401
  }>;
402
402
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -415,11 +415,11 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
415
415
  eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
416
416
  asset_id: z.ZodUUID;
417
417
  asset_type: z.ZodEnum<{
418
- user: "user";
419
418
  organization: "organization";
419
+ file: "file";
420
+ user: "user";
420
421
  team: "team";
421
422
  dataset: "dataset";
422
- file: "file";
423
423
  service: "service";
424
424
  route: "route";
425
425
  post: "post";
@@ -538,9 +538,9 @@ declare const QuestSchema: z.ZodObject<{
538
538
  none: "none";
539
539
  }>>;
540
540
  visibility: z.ZodOptional<z.ZodEnum<{
541
- organization: "organization";
542
541
  public: "public";
543
542
  private: "private";
543
+ organization: "organization";
544
544
  monetized: "monetized";
545
545
  inherit: "inherit";
546
546
  }>>;
@@ -612,9 +612,9 @@ declare const QuestSchema: z.ZodObject<{
612
612
  text: z.ZodString;
613
613
  }, z.core.$strip>>>;
614
614
  visibility: z.ZodEnum<{
615
- organization: "organization";
616
615
  public: "public";
617
616
  private: "private";
617
+ organization: "organization";
618
618
  monetized: "monetized";
619
619
  inherit: "inherit";
620
620
  }>;
@@ -640,15 +640,16 @@ declare const QuestSchema: z.ZodObject<{
640
640
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
641
641
  state: z.ZodEnum<{
642
642
  success: "success";
643
+ error: "error";
643
644
  queued: "queued";
644
645
  "in-progress": "in-progress";
645
646
  "timed-out": "timed-out";
646
- error: "error";
647
647
  }>;
648
648
  source: z.ZodEnum<{
649
- api: "api";
650
649
  web: "web";
650
+ api: "api";
651
651
  }>;
652
+ is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
652
653
  created_at: z.ZodString;
653
654
  last_updated: z.ZodString;
654
655
  asset_type: z.ZodDefault<z.ZodLiteral<"quest">>;
@@ -701,11 +702,11 @@ declare const QuestSchema: z.ZodObject<{
701
702
  created_by: z.ZodOptional<z.ZodUUID>;
702
703
  assignee_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
703
704
  expected_asset_type: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
704
- user: "user";
705
705
  organization: "organization";
706
+ file: "file";
707
+ user: "user";
706
708
  team: "team";
707
709
  dataset: "dataset";
708
- file: "file";
709
710
  service: "service";
710
711
  route: "route";
711
712
  post: "post";
@@ -726,8 +727,8 @@ declare const QuestSchema: z.ZodObject<{
726
727
  eval_pass_max: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
727
728
  submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
728
729
  asset_type: z.ZodEnum<{
729
- dataset: "dataset";
730
730
  file: "file";
731
+ dataset: "dataset";
731
732
  post: "post";
732
733
  }>;
733
734
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -746,11 +747,11 @@ declare const QuestSchema: z.ZodObject<{
746
747
  eval_static_inputs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
747
748
  asset_id: z.ZodUUID;
748
749
  asset_type: z.ZodEnum<{
749
- user: "user";
750
750
  organization: "organization";
751
+ file: "file";
752
+ user: "user";
751
753
  team: "team";
752
754
  dataset: "dataset";
753
- file: "file";
754
755
  service: "service";
755
756
  route: "route";
756
757
  post: "post";
@@ -792,19 +793,6 @@ declare const QuestSchema: z.ZodObject<{
792
793
  */
793
794
  declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
794
795
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
795
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
796
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
798
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
799
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
800
- originality: z.ZodEnum<{
801
- original: "original";
802
- derivative: "derivative";
803
- "third-party": "third-party";
804
- }>;
805
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
807
- }, z.core.$strip>>>>;
808
796
  monetization: z.ZodOptional<z.ZodEnum<{
809
797
  none: "none";
810
798
  "pay-to-unlock": "pay-to-unlock";
@@ -826,6 +814,19 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
826
814
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
827
815
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
828
816
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
817
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
818
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
819
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
820
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
821
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
+ originality: z.ZodEnum<{
823
+ original: "original";
824
+ derivative: "derivative";
825
+ "third-party": "third-party";
826
+ }>;
827
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
828
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
+ }, z.core.$strip>>>>;
829
830
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
830
831
  id: z.ZodDefault<z.ZodUUID>;
831
832
  team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
@@ -833,19 +834,19 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
833
834
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
834
835
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
835
836
  success: "success";
837
+ error: "error";
836
838
  queued: "queued";
837
839
  "in-progress": "in-progress";
838
840
  "timed-out": "timed-out";
839
- error: "error";
840
841
  }>>>;
841
842
  source: z.ZodDefault<z.ZodEnum<{
842
- api: "api";
843
843
  web: "web";
844
+ api: "api";
844
845
  }>>;
845
846
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
846
- organization: "organization";
847
847
  public: "public";
848
848
  private: "private";
849
+ organization: "organization";
849
850
  monetized: "monetized";
850
851
  inherit: "inherit";
851
852
  }>>>;
@@ -879,11 +880,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
879
880
  sort_order: z.ZodOptional<z.ZodNumber>;
880
881
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
881
882
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
882
- user: "user";
883
883
  organization: "organization";
884
+ file: "file";
885
+ user: "user";
884
886
  team: "team";
885
887
  dataset: "dataset";
886
- file: "file";
887
888
  service: "service";
888
889
  route: "route";
889
890
  post: "post";
@@ -904,8 +905,8 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
904
905
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
905
906
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
906
907
  asset_type: z.ZodEnum<{
907
- dataset: "dataset";
908
908
  file: "file";
909
+ dataset: "dataset";
909
910
  post: "post";
910
911
  }>;
911
912
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -924,11 +925,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
924
925
  eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
925
926
  asset_id: z.ZodUUID;
926
927
  asset_type: z.ZodEnum<{
927
- user: "user";
928
928
  organization: "organization";
929
+ file: "file";
930
+ user: "user";
929
931
  team: "team";
930
932
  dataset: "dataset";
931
- file: "file";
932
933
  service: "service";
933
934
  route: "route";
934
935
  post: "post";
@@ -944,11 +945,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
944
945
  sort_order: z.ZodOptional<z.ZodNumber>;
945
946
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
946
947
  expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
947
- user: "user";
948
948
  organization: "organization";
949
+ file: "file";
950
+ user: "user";
949
951
  team: "team";
950
952
  dataset: "dataset";
951
- file: "file";
952
953
  service: "service";
953
954
  route: "route";
954
955
  post: "post";
@@ -969,8 +970,8 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
969
970
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
970
971
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
971
972
  asset_type: z.ZodEnum<{
972
- dataset: "dataset";
973
973
  file: "file";
974
+ dataset: "dataset";
974
975
  post: "post";
975
976
  }>;
976
977
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -989,11 +990,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
989
990
  eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
990
991
  asset_id: z.ZodUUID;
991
992
  asset_type: z.ZodEnum<{
992
- user: "user";
993
993
  organization: "organization";
994
+ file: "file";
995
+ user: "user";
994
996
  team: "team";
995
997
  dataset: "dataset";
996
- file: "file";
997
998
  service: "service";
998
999
  route: "route";
999
1000
  post: "post";
@@ -1008,9 +1009,9 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1008
1009
  id: string;
1009
1010
  team_id: string | null;
1010
1011
  org_id: string | null;
1011
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
1012
- source: "api" | "web";
1013
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
1012
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
1013
+ source: "web" | "api";
1014
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
1014
1015
  created_at: string;
1015
1016
  last_updated: string;
1016
1017
  asset_type: "quest";
@@ -1025,7 +1026,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1025
1026
  reward_amount: number;
1026
1027
  sort_order?: number | undefined;
1027
1028
  assignee_id?: string | null | undefined;
1028
- expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1029
+ expected_asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1029
1030
  child_quest_id?: string | null | undefined;
1030
1031
  eval_route_id?: string | null | undefined;
1031
1032
  eval_score_path?: string | null | undefined;
@@ -1033,7 +1034,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1033
1034
  eval_pass_max?: number | null | undefined;
1034
1035
  submission_assets?: Record<string, {
1035
1036
  [x: string]: any;
1036
- asset_type: "dataset" | "file" | "post";
1037
+ asset_type: "file" | "dataset" | "post";
1037
1038
  required: boolean;
1038
1039
  primary?: boolean | undefined;
1039
1040
  input_filter?: "audio" | "video" | "image" | "pdf" | "3d model" | "atomic structure" | null | undefined;
@@ -1042,20 +1043,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1042
1043
  }> | null | undefined;
1043
1044
  eval_static_inputs?: Record<string, {
1044
1045
  asset_id: string;
1045
- asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
1046
+ asset_type: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
1046
1047
  }> | null | undefined;
1047
1048
  notes?: string | null | undefined;
1048
1049
  }[];
1049
1050
  parent?: Record<string, any> | undefined;
1050
- metadata?: {
1051
- originality: "original" | "derivative" | "third-party";
1052
- doi_url?: string | null | undefined;
1053
- external_url?: string | null | undefined;
1054
- paper_url?: string | null | undefined;
1055
- github_url?: string | null | undefined;
1056
- source?: string | null | undefined;
1057
- reply_to_comment_id?: string | null | undefined;
1058
- } | null | undefined;
1059
1051
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1060
1052
  parent_id?: string | null | undefined;
1061
1053
  license_id?: string | undefined;
@@ -1067,6 +1059,15 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1067
1059
  stripe_product_id?: string | null | undefined;
1068
1060
  stripe_price_id?: string | null | undefined;
1069
1061
  stripe_meter_id?: string | null | undefined;
1062
+ metadata?: {
1063
+ originality: "original" | "derivative" | "third-party";
1064
+ doi_url?: string | null | undefined;
1065
+ external_url?: string | null | undefined;
1066
+ paper_url?: string | null | undefined;
1067
+ github_url?: string | null | undefined;
1068
+ source?: string | null | undefined;
1069
+ reply_to_comment_id?: string | null | undefined;
1070
+ } | null | undefined;
1070
1071
  preview?: Record<string, any>[] | null | undefined;
1071
1072
  name_url_slug?: string | null | undefined;
1072
1073
  description?: {
@@ -1081,9 +1082,9 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1081
1082
  id: string;
1082
1083
  team_id: string | null;
1083
1084
  org_id: string | null;
1084
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
1085
- source: "api" | "web";
1086
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
1085
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
1086
+ source: "web" | "api";
1087
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
1087
1088
  created_at: string;
1088
1089
  last_updated: string;
1089
1090
  asset_type: "quest";
@@ -1098,7 +1099,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1098
1099
  reward_amount: number;
1099
1100
  sort_order?: number | undefined;
1100
1101
  assignee_id?: string | null | undefined;
1101
- expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1102
+ expected_asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1102
1103
  child_quest_id?: string | null | undefined;
1103
1104
  eval_route_id?: string | null | undefined;
1104
1105
  eval_score_path?: string | null | undefined;
@@ -1106,7 +1107,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1106
1107
  eval_pass_max?: number | null | undefined;
1107
1108
  submission_assets?: Record<string, {
1108
1109
  [x: string]: any;
1109
- asset_type: "dataset" | "file" | "post";
1110
+ asset_type: "file" | "dataset" | "post";
1110
1111
  required: boolean;
1111
1112
  primary?: boolean | undefined;
1112
1113
  input_filter?: "audio" | "video" | "image" | "pdf" | "3d model" | "atomic structure" | null | undefined;
@@ -1115,20 +1116,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1115
1116
  }> | null | undefined;
1116
1117
  eval_static_inputs?: Record<string, {
1117
1118
  asset_id: string;
1118
- asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
1119
+ asset_type: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
1119
1120
  }> | null | undefined;
1120
1121
  notes?: string | null | undefined;
1121
1122
  }[];
1122
1123
  parent?: Record<string, any> | undefined;
1123
- metadata?: {
1124
- originality: "original" | "derivative" | "third-party";
1125
- doi_url?: string | null | undefined;
1126
- external_url?: string | null | undefined;
1127
- paper_url?: string | null | undefined;
1128
- github_url?: string | null | undefined;
1129
- source?: string | null | undefined;
1130
- reply_to_comment_id?: string | null | undefined;
1131
- } | null | undefined;
1132
1124
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1133
1125
  parent_id?: string | null | undefined;
1134
1126
  license_id?: string | undefined;
@@ -1140,6 +1132,15 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1140
1132
  stripe_product_id?: string | null | undefined;
1141
1133
  stripe_price_id?: string | null | undefined;
1142
1134
  stripe_meter_id?: string | null | undefined;
1135
+ metadata?: {
1136
+ originality: "original" | "derivative" | "third-party";
1137
+ doi_url?: string | null | undefined;
1138
+ external_url?: string | null | undefined;
1139
+ paper_url?: string | null | undefined;
1140
+ github_url?: string | null | undefined;
1141
+ source?: string | null | undefined;
1142
+ reply_to_comment_id?: string | null | undefined;
1143
+ } | null | undefined;
1143
1144
  preview?: Record<string, any>[] | null | undefined;
1144
1145
  name_url_slug?: string | null | undefined;
1145
1146
  description?: {
@@ -1152,52 +1153,18 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1152
1153
  max_xp_per_contributor?: number | null | undefined;
1153
1154
  }>>;
1154
1155
  declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1155
- quest: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1156
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1157
- closable: "closable";
1158
- continuous: "continuous";
1159
- }>>>;
1160
- status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1161
- open: "open";
1162
- draft: "draft";
1163
- closed: "closed";
1164
- cancelled: "cancelled";
1165
- }>>>;
1166
- max_xp_per_contributor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1167
- closed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1168
- }, z.core.$strip>>>;
1169
- org_id: z.ZodOptional<z.ZodUUID>;
1170
1156
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1171
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1172
- doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1173
- external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1174
- paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1175
- github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1176
- originality: z.ZodOptional<z.ZodEnum<{
1177
- original: "original";
1178
- derivative: "derivative";
1179
- "third-party": "third-party";
1180
- }>>;
1181
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1182
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1183
- }, z.core.$strip>>>>;
1184
- name: z.ZodOptional<z.ZodString>;
1185
- team_id: z.ZodOptional<z.ZodUUID>;
1157
+ source: z.ZodOptional<z.ZodEnum<{
1158
+ web: "web";
1159
+ api: "api";
1160
+ }>>;
1186
1161
  visibility: z.ZodOptional<z.ZodEnum<{
1187
- organization: "organization";
1188
1162
  public: "public";
1189
1163
  private: "private";
1164
+ organization: "organization";
1190
1165
  monetized: "monetized";
1191
1166
  inherit: "inherit";
1192
1167
  }>>;
1193
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1194
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
1195
- text: z.ZodString;
1196
- }, z.core.$strip>>>>;
1197
- source: z.ZodOptional<z.ZodEnum<{
1198
- api: "api";
1199
- web: "web";
1200
- }>>;
1201
1168
  monetization: z.ZodOptional<z.ZodEnum<{
1202
1169
  none: "none";
1203
1170
  "pay-to-unlock": "pay-to-unlock";
@@ -1205,14 +1172,35 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1205
1172
  }>>;
1206
1173
  state: z.ZodOptional<z.ZodEnum<{
1207
1174
  success: "success";
1175
+ error: "error";
1208
1176
  queued: "queued";
1209
1177
  "in-progress": "in-progress";
1210
1178
  "timed-out": "timed-out";
1211
- error: "error";
1212
1179
  }>>;
1180
+ name: z.ZodOptional<z.ZodString>;
1181
+ org_id: z.ZodOptional<z.ZodUUID>;
1182
+ team_id: z.ZodOptional<z.ZodUUID>;
1183
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1184
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
1185
+ text: z.ZodString;
1186
+ }, z.core.$strip>>>>;
1213
1187
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
1214
1188
  license_id: z.ZodOptional<z.ZodString>;
1215
1189
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1190
+ quest: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1191
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1192
+ closable: "closable";
1193
+ continuous: "continuous";
1194
+ }>>>;
1195
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1196
+ open: "open";
1197
+ draft: "draft";
1198
+ closed: "closed";
1199
+ cancelled: "cancelled";
1200
+ }>>>;
1201
+ max_xp_per_contributor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1202
+ closed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1203
+ }, z.core.$strip>>>;
1216
1204
  name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1217
1205
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1218
1206
  unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -1228,42 +1216,46 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1228
1216
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1229
1217
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1230
1218
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1219
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1220
+ doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1221
+ external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1222
+ paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1223
+ github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1224
+ originality: z.ZodOptional<z.ZodEnum<{
1225
+ original: "original";
1226
+ derivative: "derivative";
1227
+ "third-party": "third-party";
1228
+ }>>;
1229
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1230
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1231
+ }, z.core.$strip>>>>;
1231
1232
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
1232
1233
  asset_type: z.ZodDefault<z.ZodLiteral<"quest">>;
1233
1234
  last_updated: z.ZodDefault<z.ZodString>;
1234
1235
  }, z.core.$strip>, z.ZodTransform<{
1235
1236
  asset_type: "quest";
1236
1237
  last_updated: string;
1237
- quest?: {
1238
- type?: "closable" | "continuous" | undefined;
1239
- status?: "open" | "draft" | "closed" | "cancelled" | undefined;
1240
- max_xp_per_contributor?: number | null | undefined;
1241
- closed_at?: string | null | undefined;
1242
- } | undefined;
1243
- org_id?: string | undefined;
1244
1238
  parent?: Record<string, any> | undefined;
1245
- metadata?: {
1246
- doi_url?: string | null | undefined;
1247
- external_url?: string | null | undefined;
1248
- paper_url?: string | null | undefined;
1249
- github_url?: string | null | undefined;
1250
- originality?: "original" | "derivative" | "third-party" | undefined;
1251
- source?: string | null | undefined;
1252
- reply_to_comment_id?: string | null | undefined;
1253
- } | null | undefined;
1239
+ source?: "web" | "api" | undefined;
1240
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
1241
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1242
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1254
1243
  name?: string | undefined;
1244
+ org_id?: string | undefined;
1255
1245
  team_id?: string | undefined;
1256
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1257
1246
  description?: {
1258
1247
  json: Record<string, any>;
1259
1248
  text: string;
1260
1249
  } | null | undefined;
1261
- source?: "api" | "web" | undefined;
1262
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1263
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1264
1250
  parent_id?: string | null | undefined;
1265
1251
  license_id?: string | undefined;
1266
1252
  license?: Record<string, any> | undefined;
1253
+ quest?: {
1254
+ type?: "closable" | "continuous" | undefined;
1255
+ status?: "open" | "draft" | "closed" | "cancelled" | undefined;
1256
+ max_xp_per_contributor?: number | null | undefined;
1257
+ closed_at?: string | null | undefined;
1258
+ } | undefined;
1267
1259
  name_url_slug?: string | null | undefined;
1268
1260
  price?: number | null | undefined;
1269
1261
  unit_cost?: number | null | undefined;
@@ -1273,18 +1265,6 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1273
1265
  stripe_product_id?: string | null | undefined;
1274
1266
  stripe_price_id?: string | null | undefined;
1275
1267
  stripe_meter_id?: string | null | undefined;
1276
- preview?: Record<string, any>[] | null | undefined;
1277
- }, {
1278
- asset_type: "quest";
1279
- last_updated: string;
1280
- quest?: {
1281
- type?: "closable" | "continuous" | undefined;
1282
- status?: "open" | "draft" | "closed" | "cancelled" | undefined;
1283
- max_xp_per_contributor?: number | null | undefined;
1284
- closed_at?: string | null | undefined;
1285
- } | undefined;
1286
- org_id?: string | undefined;
1287
- parent?: Record<string, any> | undefined;
1288
1268
  metadata?: {
1289
1269
  doi_url?: string | null | undefined;
1290
1270
  external_url?: string | null | undefined;
@@ -1294,19 +1274,31 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1294
1274
  source?: string | null | undefined;
1295
1275
  reply_to_comment_id?: string | null | undefined;
1296
1276
  } | null | undefined;
1277
+ preview?: Record<string, any>[] | null | undefined;
1278
+ }, {
1279
+ asset_type: "quest";
1280
+ last_updated: string;
1281
+ parent?: Record<string, any> | undefined;
1282
+ source?: "web" | "api" | undefined;
1283
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
1284
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1285
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1297
1286
  name?: string | undefined;
1287
+ org_id?: string | undefined;
1298
1288
  team_id?: string | undefined;
1299
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1300
1289
  description?: {
1301
1290
  json: Record<string, any>;
1302
1291
  text: string;
1303
1292
  } | null | undefined;
1304
- source?: "api" | "web" | undefined;
1305
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1306
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1307
1293
  parent_id?: string | null | undefined;
1308
1294
  license_id?: string | undefined;
1309
1295
  license?: Record<string, any> | undefined;
1296
+ quest?: {
1297
+ type?: "closable" | "continuous" | undefined;
1298
+ status?: "open" | "draft" | "closed" | "cancelled" | undefined;
1299
+ max_xp_per_contributor?: number | null | undefined;
1300
+ closed_at?: string | null | undefined;
1301
+ } | undefined;
1310
1302
  name_url_slug?: string | null | undefined;
1311
1303
  price?: number | null | undefined;
1312
1304
  unit_cost?: number | null | undefined;
@@ -1316,6 +1308,15 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1316
1308
  stripe_product_id?: string | null | undefined;
1317
1309
  stripe_price_id?: string | null | undefined;
1318
1310
  stripe_meter_id?: string | null | undefined;
1311
+ metadata?: {
1312
+ doi_url?: string | null | undefined;
1313
+ external_url?: string | null | undefined;
1314
+ paper_url?: string | null | undefined;
1315
+ github_url?: string | null | undefined;
1316
+ originality?: "original" | "derivative" | "third-party" | undefined;
1317
+ source?: string | null | undefined;
1318
+ reply_to_comment_id?: string | null | undefined;
1319
+ } | null | undefined;
1319
1320
  preview?: Record<string, any>[] | null | undefined;
1320
1321
  }>>;
1321
1322
  declare const UpdateQuestItemSchema: z.ZodObject<{
@@ -1324,11 +1325,11 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
1324
1325
  sort_order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1325
1326
  assignee_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
1326
1327
  expected_asset_type: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1327
- user: "user";
1328
1328
  organization: "organization";
1329
+ file: "file";
1330
+ user: "user";
1329
1331
  team: "team";
1330
1332
  dataset: "dataset";
1331
- file: "file";
1332
1333
  service: "service";
1333
1334
  route: "route";
1334
1335
  post: "post";
@@ -1349,8 +1350,8 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
1349
1350
  eval_pass_max: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1350
1351
  submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1351
1352
  asset_type: z.ZodEnum<{
1352
- dataset: "dataset";
1353
1353
  file: "file";
1354
+ dataset: "dataset";
1354
1355
  post: "post";
1355
1356
  }>;
1356
1357
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -1369,11 +1370,11 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
1369
1370
  eval_static_inputs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1370
1371
  asset_id: z.ZodUUID;
1371
1372
  asset_type: z.ZodEnum<{
1372
- user: "user";
1373
1373
  organization: "organization";
1374
+ file: "file";
1375
+ user: "user";
1374
1376
  team: "team";
1375
1377
  dataset: "dataset";
1376
- file: "file";
1377
1378
  service: "service";
1378
1379
  route: "route";
1379
1380
  post: "post";
@@ -1397,11 +1398,11 @@ declare const EntrySchema: z.ZodObject<{
1397
1398
  item_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1398
1399
  asset_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1399
1400
  asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1400
- user: "user";
1401
1401
  organization: "organization";
1402
+ file: "file";
1403
+ user: "user";
1402
1404
  team: "team";
1403
1405
  dataset: "dataset";
1404
- file: "file";
1405
1406
  service: "service";
1406
1407
  route: "route";
1407
1408
  post: "post";
@@ -1412,11 +1413,11 @@ declare const EntrySchema: z.ZodObject<{
1412
1413
  assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1413
1414
  asset_id: z.ZodUUID;
1414
1415
  asset_type: z.ZodEnum<{
1415
- user: "user";
1416
1416
  organization: "organization";
1417
+ file: "file";
1418
+ user: "user";
1417
1419
  team: "team";
1418
1420
  dataset: "dataset";
1419
- file: "file";
1420
1421
  service: "service";
1421
1422
  route: "route";
1422
1423
  post: "post";
@@ -1463,11 +1464,11 @@ declare const CreateEntrySchema: z.ZodObject<{
1463
1464
  assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUUID, z.ZodObject<{
1464
1465
  asset_id: z.ZodUUID;
1465
1466
  asset_type: z.ZodOptional<z.ZodEnum<{
1466
- user: "user";
1467
1467
  organization: "organization";
1468
+ file: "file";
1469
+ user: "user";
1468
1470
  team: "team";
1469
1471
  dataset: "dataset";
1470
- file: "file";
1471
1472
  service: "service";
1472
1473
  route: "route";
1473
1474
  post: "post";