@ourofoundation/ouro-js 3.5.1 → 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.
- package/dist/{chunk-XQQVHVWP.js → chunk-35CJDNHH.js} +2 -2
- package/dist/{chunk-XQQVHVWP.js.map → chunk-35CJDNHH.js.map} +1 -1
- package/dist/{chunk-6XQFD2Z2.cjs → chunk-6GPIZJ4T.cjs} +2 -2
- package/dist/chunk-6GPIZJ4T.cjs.map +1 -0
- package/dist/{chunk-HN7Y7VMJ.cjs → chunk-6ZJQTECB.cjs} +2 -2
- package/dist/{chunk-HN7Y7VMJ.cjs.map → chunk-6ZJQTECB.cjs.map} +1 -1
- package/dist/{chunk-6FG474SV.cjs → chunk-BWAEBQKV.cjs} +2 -2
- package/dist/chunk-BWAEBQKV.cjs.map +1 -0
- package/dist/{chunk-DC6TYS3A.cjs → chunk-F5CWCYOP.cjs} +2 -2
- package/dist/chunk-F5CWCYOP.cjs.map +1 -0
- package/dist/{chunk-NJQ5YWYJ.cjs → chunk-HIXNQKVP.cjs} +2 -2
- package/dist/{chunk-NJQ5YWYJ.cjs.map → chunk-HIXNQKVP.cjs.map} +1 -1
- package/dist/{chunk-OS542EYD.js → chunk-IWOXGKK4.js} +2 -2
- package/dist/chunk-IWOXGKK4.js.map +1 -0
- package/dist/chunk-KCVE35IO.js +2 -0
- package/dist/chunk-KCVE35IO.js.map +1 -0
- package/dist/chunk-MLTO7TMM.js +2 -0
- package/dist/chunk-MLTO7TMM.js.map +1 -0
- package/dist/{chunk-EK5P7FST.js → chunk-R2W4NEEJ.js} +2 -2
- package/dist/chunk-R2W4NEEJ.js.map +1 -0
- package/dist/{chunk-M2JJPDBW.js → chunk-TYOQ32UV.js} +2 -2
- package/dist/{chunk-M2JJPDBW.js.map → chunk-TYOQ32UV.js.map} +1 -1
- package/dist/chunk-V73EW77Y.cjs +2 -0
- package/dist/chunk-V73EW77Y.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.d.cts +84 -84
- package/dist/schema/assets.d.ts +84 -84
- package/dist/schema/comments.d.cts +136 -136
- package/dist/schema/comments.d.ts +136 -136
- package/dist/schema/common.d.cts +16 -16
- package/dist/schema/common.d.ts +16 -16
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +69 -69
- package/dist/schema/conversations.d.ts +69 -69
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.d.cts +137 -137
- package/dist/schema/datasets.d.ts +137 -137
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +100 -103
- package/dist/schema/files.d.ts +100 -103
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.d.cts +2 -2
- package/dist/schema/notifications.d.ts +2 -2
- package/dist/schema/organizations.d.cts +1 -1
- package/dist/schema/organizations.d.ts +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +127 -130
- package/dist/schema/posts.d.ts +127 -130
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +177 -180
- package/dist/schema/quests.d.ts +177 -180
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +127 -130
- package/dist/schema/services.d.ts +127 -130
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/utils/quest-submission.cjs +1 -1
- package/dist/utils/quest-submission.d.cts +7 -7
- package/dist/utils/quest-submission.d.ts +7 -7
- package/dist/utils/quest-submission.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-6FG474SV.cjs.map +0 -1
- package/dist/chunk-6XQFD2Z2.cjs.map +0 -1
- package/dist/chunk-DC6TYS3A.cjs.map +0 -1
- package/dist/chunk-EK5P7FST.js.map +0 -1
- package/dist/chunk-OFDJA6ZW.cjs +0 -2
- package/dist/chunk-OFDJA6ZW.cjs.map +0 -1
- package/dist/chunk-OS542EYD.js.map +0 -1
- package/dist/chunk-VJJLRHOX.js +0 -2
- package/dist/chunk-VJJLRHOX.js.map +0 -1
- package/dist/chunk-W5UCZ73B.js +0 -2
- package/dist/chunk-W5UCZ73B.js.map +0 -1
package/dist/schema/quests.d.cts
CHANGED
|
@@ -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,14 +640,14 @@ 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
652
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
653
653
|
created_at: z.ZodString;
|
|
@@ -702,11 +702,11 @@ declare const QuestSchema: z.ZodObject<{
|
|
|
702
702
|
created_by: z.ZodOptional<z.ZodUUID>;
|
|
703
703
|
assignee_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
704
704
|
expected_asset_type: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
705
|
-
user: "user";
|
|
706
705
|
organization: "organization";
|
|
706
|
+
file: "file";
|
|
707
|
+
user: "user";
|
|
707
708
|
team: "team";
|
|
708
709
|
dataset: "dataset";
|
|
709
|
-
file: "file";
|
|
710
710
|
service: "service";
|
|
711
711
|
route: "route";
|
|
712
712
|
post: "post";
|
|
@@ -727,8 +727,8 @@ declare const QuestSchema: z.ZodObject<{
|
|
|
727
727
|
eval_pass_max: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
728
728
|
submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
729
729
|
asset_type: z.ZodEnum<{
|
|
730
|
-
dataset: "dataset";
|
|
731
730
|
file: "file";
|
|
731
|
+
dataset: "dataset";
|
|
732
732
|
post: "post";
|
|
733
733
|
}>;
|
|
734
734
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -747,11 +747,11 @@ declare const QuestSchema: z.ZodObject<{
|
|
|
747
747
|
eval_static_inputs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
748
748
|
asset_id: z.ZodUUID;
|
|
749
749
|
asset_type: z.ZodEnum<{
|
|
750
|
-
user: "user";
|
|
751
750
|
organization: "organization";
|
|
751
|
+
file: "file";
|
|
752
|
+
user: "user";
|
|
752
753
|
team: "team";
|
|
753
754
|
dataset: "dataset";
|
|
754
|
-
file: "file";
|
|
755
755
|
service: "service";
|
|
756
756
|
route: "route";
|
|
757
757
|
post: "post";
|
|
@@ -793,19 +793,6 @@ declare const QuestSchema: z.ZodObject<{
|
|
|
793
793
|
*/
|
|
794
794
|
declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
795
795
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
796
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
797
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
798
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
799
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
800
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
801
|
-
originality: z.ZodEnum<{
|
|
802
|
-
original: "original";
|
|
803
|
-
derivative: "derivative";
|
|
804
|
-
"third-party": "third-party";
|
|
805
|
-
}>;
|
|
806
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
807
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
808
|
-
}, z.core.$strip>>>>;
|
|
809
796
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
810
797
|
none: "none";
|
|
811
798
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -827,6 +814,19 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
827
814
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
828
815
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
829
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>>>>;
|
|
830
830
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
831
831
|
id: z.ZodDefault<z.ZodUUID>;
|
|
832
832
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
@@ -834,19 +834,19 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
834
834
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
835
835
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
836
836
|
success: "success";
|
|
837
|
+
error: "error";
|
|
837
838
|
queued: "queued";
|
|
838
839
|
"in-progress": "in-progress";
|
|
839
840
|
"timed-out": "timed-out";
|
|
840
|
-
error: "error";
|
|
841
841
|
}>>>;
|
|
842
842
|
source: z.ZodDefault<z.ZodEnum<{
|
|
843
|
-
api: "api";
|
|
844
843
|
web: "web";
|
|
844
|
+
api: "api";
|
|
845
845
|
}>>;
|
|
846
846
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
847
|
-
organization: "organization";
|
|
848
847
|
public: "public";
|
|
849
848
|
private: "private";
|
|
849
|
+
organization: "organization";
|
|
850
850
|
monetized: "monetized";
|
|
851
851
|
inherit: "inherit";
|
|
852
852
|
}>>>;
|
|
@@ -880,11 +880,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
880
880
|
sort_order: z.ZodOptional<z.ZodNumber>;
|
|
881
881
|
assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
882
882
|
expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
883
|
-
user: "user";
|
|
884
883
|
organization: "organization";
|
|
884
|
+
file: "file";
|
|
885
|
+
user: "user";
|
|
885
886
|
team: "team";
|
|
886
887
|
dataset: "dataset";
|
|
887
|
-
file: "file";
|
|
888
888
|
service: "service";
|
|
889
889
|
route: "route";
|
|
890
890
|
post: "post";
|
|
@@ -905,8 +905,8 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
905
905
|
eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
906
906
|
submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
907
907
|
asset_type: z.ZodEnum<{
|
|
908
|
-
dataset: "dataset";
|
|
909
908
|
file: "file";
|
|
909
|
+
dataset: "dataset";
|
|
910
910
|
post: "post";
|
|
911
911
|
}>;
|
|
912
912
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -925,11 +925,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
925
925
|
eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
926
926
|
asset_id: z.ZodUUID;
|
|
927
927
|
asset_type: z.ZodEnum<{
|
|
928
|
-
user: "user";
|
|
929
928
|
organization: "organization";
|
|
929
|
+
file: "file";
|
|
930
|
+
user: "user";
|
|
930
931
|
team: "team";
|
|
931
932
|
dataset: "dataset";
|
|
932
|
-
file: "file";
|
|
933
933
|
service: "service";
|
|
934
934
|
route: "route";
|
|
935
935
|
post: "post";
|
|
@@ -945,11 +945,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
945
945
|
sort_order: z.ZodOptional<z.ZodNumber>;
|
|
946
946
|
assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
947
947
|
expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
948
|
-
user: "user";
|
|
949
948
|
organization: "organization";
|
|
949
|
+
file: "file";
|
|
950
|
+
user: "user";
|
|
950
951
|
team: "team";
|
|
951
952
|
dataset: "dataset";
|
|
952
|
-
file: "file";
|
|
953
953
|
service: "service";
|
|
954
954
|
route: "route";
|
|
955
955
|
post: "post";
|
|
@@ -970,8 +970,8 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
970
970
|
eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
971
971
|
submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
972
972
|
asset_type: z.ZodEnum<{
|
|
973
|
-
dataset: "dataset";
|
|
974
973
|
file: "file";
|
|
974
|
+
dataset: "dataset";
|
|
975
975
|
post: "post";
|
|
976
976
|
}>;
|
|
977
977
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -990,11 +990,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
990
990
|
eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
991
991
|
asset_id: z.ZodUUID;
|
|
992
992
|
asset_type: z.ZodEnum<{
|
|
993
|
-
user: "user";
|
|
994
993
|
organization: "organization";
|
|
994
|
+
file: "file";
|
|
995
|
+
user: "user";
|
|
995
996
|
team: "team";
|
|
996
997
|
dataset: "dataset";
|
|
997
|
-
file: "file";
|
|
998
998
|
service: "service";
|
|
999
999
|
route: "route";
|
|
1000
1000
|
post: "post";
|
|
@@ -1009,9 +1009,9 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1009
1009
|
id: string;
|
|
1010
1010
|
team_id: string | null;
|
|
1011
1011
|
org_id: string | null;
|
|
1012
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
1013
|
-
source: "
|
|
1014
|
-
visibility: "
|
|
1012
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
1013
|
+
source: "web" | "api";
|
|
1014
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
1015
1015
|
created_at: string;
|
|
1016
1016
|
last_updated: string;
|
|
1017
1017
|
asset_type: "quest";
|
|
@@ -1026,7 +1026,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1026
1026
|
reward_amount: number;
|
|
1027
1027
|
sort_order?: number | undefined;
|
|
1028
1028
|
assignee_id?: string | null | undefined;
|
|
1029
|
-
expected_asset_type?: "
|
|
1029
|
+
expected_asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
|
|
1030
1030
|
child_quest_id?: string | null | undefined;
|
|
1031
1031
|
eval_route_id?: string | null | undefined;
|
|
1032
1032
|
eval_score_path?: string | null | undefined;
|
|
@@ -1034,7 +1034,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1034
1034
|
eval_pass_max?: number | null | undefined;
|
|
1035
1035
|
submission_assets?: Record<string, {
|
|
1036
1036
|
[x: string]: any;
|
|
1037
|
-
asset_type: "
|
|
1037
|
+
asset_type: "file" | "dataset" | "post";
|
|
1038
1038
|
required: boolean;
|
|
1039
1039
|
primary?: boolean | undefined;
|
|
1040
1040
|
input_filter?: "audio" | "video" | "image" | "pdf" | "3d model" | "atomic structure" | null | undefined;
|
|
@@ -1043,20 +1043,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1043
1043
|
}> | null | undefined;
|
|
1044
1044
|
eval_static_inputs?: Record<string, {
|
|
1045
1045
|
asset_id: string;
|
|
1046
|
-
asset_type: "
|
|
1046
|
+
asset_type: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
|
|
1047
1047
|
}> | null | undefined;
|
|
1048
1048
|
notes?: string | null | undefined;
|
|
1049
1049
|
}[];
|
|
1050
1050
|
parent?: Record<string, any> | undefined;
|
|
1051
|
-
metadata?: {
|
|
1052
|
-
originality: "original" | "derivative" | "third-party";
|
|
1053
|
-
doi_url?: string | null | undefined;
|
|
1054
|
-
external_url?: string | null | undefined;
|
|
1055
|
-
paper_url?: string | null | undefined;
|
|
1056
|
-
github_url?: string | null | undefined;
|
|
1057
|
-
source?: string | null | undefined;
|
|
1058
|
-
reply_to_comment_id?: string | null | undefined;
|
|
1059
|
-
} | null | undefined;
|
|
1060
1051
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1061
1052
|
parent_id?: string | null | undefined;
|
|
1062
1053
|
license_id?: string | undefined;
|
|
@@ -1068,6 +1059,15 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1068
1059
|
stripe_product_id?: string | null | undefined;
|
|
1069
1060
|
stripe_price_id?: string | null | undefined;
|
|
1070
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;
|
|
1071
1071
|
preview?: Record<string, any>[] | null | undefined;
|
|
1072
1072
|
name_url_slug?: string | null | undefined;
|
|
1073
1073
|
description?: {
|
|
@@ -1082,9 +1082,9 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1082
1082
|
id: string;
|
|
1083
1083
|
team_id: string | null;
|
|
1084
1084
|
org_id: string | null;
|
|
1085
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
1086
|
-
source: "
|
|
1087
|
-
visibility: "
|
|
1085
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
1086
|
+
source: "web" | "api";
|
|
1087
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
1088
1088
|
created_at: string;
|
|
1089
1089
|
last_updated: string;
|
|
1090
1090
|
asset_type: "quest";
|
|
@@ -1099,7 +1099,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1099
1099
|
reward_amount: number;
|
|
1100
1100
|
sort_order?: number | undefined;
|
|
1101
1101
|
assignee_id?: string | null | undefined;
|
|
1102
|
-
expected_asset_type?: "
|
|
1102
|
+
expected_asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
|
|
1103
1103
|
child_quest_id?: string | null | undefined;
|
|
1104
1104
|
eval_route_id?: string | null | undefined;
|
|
1105
1105
|
eval_score_path?: string | null | undefined;
|
|
@@ -1107,7 +1107,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1107
1107
|
eval_pass_max?: number | null | undefined;
|
|
1108
1108
|
submission_assets?: Record<string, {
|
|
1109
1109
|
[x: string]: any;
|
|
1110
|
-
asset_type: "
|
|
1110
|
+
asset_type: "file" | "dataset" | "post";
|
|
1111
1111
|
required: boolean;
|
|
1112
1112
|
primary?: boolean | undefined;
|
|
1113
1113
|
input_filter?: "audio" | "video" | "image" | "pdf" | "3d model" | "atomic structure" | null | undefined;
|
|
@@ -1116,20 +1116,11 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1116
1116
|
}> | null | undefined;
|
|
1117
1117
|
eval_static_inputs?: Record<string, {
|
|
1118
1118
|
asset_id: string;
|
|
1119
|
-
asset_type: "
|
|
1119
|
+
asset_type: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
|
|
1120
1120
|
}> | null | undefined;
|
|
1121
1121
|
notes?: string | null | undefined;
|
|
1122
1122
|
}[];
|
|
1123
1123
|
parent?: Record<string, any> | undefined;
|
|
1124
|
-
metadata?: {
|
|
1125
|
-
originality: "original" | "derivative" | "third-party";
|
|
1126
|
-
doi_url?: string | null | undefined;
|
|
1127
|
-
external_url?: string | null | undefined;
|
|
1128
|
-
paper_url?: string | null | undefined;
|
|
1129
|
-
github_url?: string | null | undefined;
|
|
1130
|
-
source?: string | null | undefined;
|
|
1131
|
-
reply_to_comment_id?: string | null | undefined;
|
|
1132
|
-
} | null | undefined;
|
|
1133
1124
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1134
1125
|
parent_id?: string | null | undefined;
|
|
1135
1126
|
license_id?: string | undefined;
|
|
@@ -1141,6 +1132,15 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1141
1132
|
stripe_product_id?: string | null | undefined;
|
|
1142
1133
|
stripe_price_id?: string | null | undefined;
|
|
1143
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;
|
|
1144
1144
|
preview?: Record<string, any>[] | null | undefined;
|
|
1145
1145
|
name_url_slug?: string | null | undefined;
|
|
1146
1146
|
description?: {
|
|
@@ -1153,52 +1153,18 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1153
1153
|
max_xp_per_contributor?: number | null | undefined;
|
|
1154
1154
|
}>>;
|
|
1155
1155
|
declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
1156
|
-
quest: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1157
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1158
|
-
closable: "closable";
|
|
1159
|
-
continuous: "continuous";
|
|
1160
|
-
}>>>;
|
|
1161
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1162
|
-
open: "open";
|
|
1163
|
-
draft: "draft";
|
|
1164
|
-
closed: "closed";
|
|
1165
|
-
cancelled: "cancelled";
|
|
1166
|
-
}>>>;
|
|
1167
|
-
max_xp_per_contributor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1168
|
-
closed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1169
|
-
}, z.core.$strip>>>;
|
|
1170
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
1171
1156
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1177
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
1178
|
-
original: "original";
|
|
1179
|
-
derivative: "derivative";
|
|
1180
|
-
"third-party": "third-party";
|
|
1181
|
-
}>>;
|
|
1182
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1183
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1184
|
-
}, z.core.$strip>>>>;
|
|
1185
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1186
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
1157
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1158
|
+
web: "web";
|
|
1159
|
+
api: "api";
|
|
1160
|
+
}>>;
|
|
1187
1161
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1188
|
-
organization: "organization";
|
|
1189
1162
|
public: "public";
|
|
1190
1163
|
private: "private";
|
|
1164
|
+
organization: "organization";
|
|
1191
1165
|
monetized: "monetized";
|
|
1192
1166
|
inherit: "inherit";
|
|
1193
1167
|
}>>;
|
|
1194
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1195
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1196
|
-
text: z.ZodString;
|
|
1197
|
-
}, z.core.$strip>>>>;
|
|
1198
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
1199
|
-
api: "api";
|
|
1200
|
-
web: "web";
|
|
1201
|
-
}>>;
|
|
1202
1168
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
1203
1169
|
none: "none";
|
|
1204
1170
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -1206,14 +1172,35 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1206
1172
|
}>>;
|
|
1207
1173
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1208
1174
|
success: "success";
|
|
1175
|
+
error: "error";
|
|
1209
1176
|
queued: "queued";
|
|
1210
1177
|
"in-progress": "in-progress";
|
|
1211
1178
|
"timed-out": "timed-out";
|
|
1212
|
-
error: "error";
|
|
1213
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>>>>;
|
|
1214
1187
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
1215
1188
|
license_id: z.ZodOptional<z.ZodString>;
|
|
1216
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>>>;
|
|
1217
1204
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1218
1205
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1219
1206
|
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -1229,43 +1216,46 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1229
1216
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1230
1217
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1231
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>>>>;
|
|
1232
1232
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
1233
|
-
is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
1234
1233
|
asset_type: z.ZodDefault<z.ZodLiteral<"quest">>;
|
|
1235
1234
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
1236
1235
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1237
1236
|
asset_type: "quest";
|
|
1238
1237
|
last_updated: string;
|
|
1239
|
-
quest?: {
|
|
1240
|
-
type?: "closable" | "continuous" | undefined;
|
|
1241
|
-
status?: "open" | "draft" | "closed" | "cancelled" | undefined;
|
|
1242
|
-
max_xp_per_contributor?: number | null | undefined;
|
|
1243
|
-
closed_at?: string | null | undefined;
|
|
1244
|
-
} | undefined;
|
|
1245
|
-
org_id?: string | undefined;
|
|
1246
1238
|
parent?: Record<string, any> | undefined;
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
github_url?: string | null | undefined;
|
|
1252
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
1253
|
-
source?: string | null | undefined;
|
|
1254
|
-
reply_to_comment_id?: string | null | undefined;
|
|
1255
|
-
} | 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;
|
|
1256
1243
|
name?: string | undefined;
|
|
1244
|
+
org_id?: string | undefined;
|
|
1257
1245
|
team_id?: string | undefined;
|
|
1258
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1259
1246
|
description?: {
|
|
1260
1247
|
json: Record<string, any>;
|
|
1261
1248
|
text: string;
|
|
1262
1249
|
} | null | undefined;
|
|
1263
|
-
source?: "api" | "web" | undefined;
|
|
1264
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1265
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
1266
1250
|
parent_id?: string | null | undefined;
|
|
1267
1251
|
license_id?: string | undefined;
|
|
1268
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;
|
|
1269
1259
|
name_url_slug?: string | null | undefined;
|
|
1270
1260
|
price?: number | null | undefined;
|
|
1271
1261
|
unit_cost?: number | null | undefined;
|
|
@@ -1275,19 +1265,6 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1275
1265
|
stripe_product_id?: string | null | undefined;
|
|
1276
1266
|
stripe_price_id?: string | null | undefined;
|
|
1277
1267
|
stripe_meter_id?: string | null | undefined;
|
|
1278
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
1279
|
-
is_pinned_in_team?: boolean | undefined;
|
|
1280
|
-
}, {
|
|
1281
|
-
asset_type: "quest";
|
|
1282
|
-
last_updated: string;
|
|
1283
|
-
quest?: {
|
|
1284
|
-
type?: "closable" | "continuous" | undefined;
|
|
1285
|
-
status?: "open" | "draft" | "closed" | "cancelled" | undefined;
|
|
1286
|
-
max_xp_per_contributor?: number | null | undefined;
|
|
1287
|
-
closed_at?: string | null | undefined;
|
|
1288
|
-
} | undefined;
|
|
1289
|
-
org_id?: string | undefined;
|
|
1290
|
-
parent?: Record<string, any> | undefined;
|
|
1291
1268
|
metadata?: {
|
|
1292
1269
|
doi_url?: string | null | undefined;
|
|
1293
1270
|
external_url?: string | null | undefined;
|
|
@@ -1297,19 +1274,31 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1297
1274
|
source?: string | null | undefined;
|
|
1298
1275
|
reply_to_comment_id?: string | null | undefined;
|
|
1299
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;
|
|
1300
1286
|
name?: string | undefined;
|
|
1287
|
+
org_id?: string | undefined;
|
|
1301
1288
|
team_id?: string | undefined;
|
|
1302
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1303
1289
|
description?: {
|
|
1304
1290
|
json: Record<string, any>;
|
|
1305
1291
|
text: string;
|
|
1306
1292
|
} | null | undefined;
|
|
1307
|
-
source?: "api" | "web" | undefined;
|
|
1308
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1309
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
1310
1293
|
parent_id?: string | null | undefined;
|
|
1311
1294
|
license_id?: string | undefined;
|
|
1312
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;
|
|
1313
1302
|
name_url_slug?: string | null | undefined;
|
|
1314
1303
|
price?: number | null | undefined;
|
|
1315
1304
|
unit_cost?: number | null | undefined;
|
|
@@ -1319,8 +1308,16 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1319
1308
|
stripe_product_id?: string | null | undefined;
|
|
1320
1309
|
stripe_price_id?: string | null | undefined;
|
|
1321
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;
|
|
1322
1320
|
preview?: Record<string, any>[] | null | undefined;
|
|
1323
|
-
is_pinned_in_team?: boolean | undefined;
|
|
1324
1321
|
}>>;
|
|
1325
1322
|
declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
1326
1323
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1328,11 +1325,11 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
|
1328
1325
|
sort_order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1329
1326
|
assignee_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
1330
1327
|
expected_asset_type: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1331
|
-
user: "user";
|
|
1332
1328
|
organization: "organization";
|
|
1329
|
+
file: "file";
|
|
1330
|
+
user: "user";
|
|
1333
1331
|
team: "team";
|
|
1334
1332
|
dataset: "dataset";
|
|
1335
|
-
file: "file";
|
|
1336
1333
|
service: "service";
|
|
1337
1334
|
route: "route";
|
|
1338
1335
|
post: "post";
|
|
@@ -1353,8 +1350,8 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
|
1353
1350
|
eval_pass_max: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1354
1351
|
submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1355
1352
|
asset_type: z.ZodEnum<{
|
|
1356
|
-
dataset: "dataset";
|
|
1357
1353
|
file: "file";
|
|
1354
|
+
dataset: "dataset";
|
|
1358
1355
|
post: "post";
|
|
1359
1356
|
}>;
|
|
1360
1357
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1373,11 +1370,11 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
|
1373
1370
|
eval_static_inputs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1374
1371
|
asset_id: z.ZodUUID;
|
|
1375
1372
|
asset_type: z.ZodEnum<{
|
|
1376
|
-
user: "user";
|
|
1377
1373
|
organization: "organization";
|
|
1374
|
+
file: "file";
|
|
1375
|
+
user: "user";
|
|
1378
1376
|
team: "team";
|
|
1379
1377
|
dataset: "dataset";
|
|
1380
|
-
file: "file";
|
|
1381
1378
|
service: "service";
|
|
1382
1379
|
route: "route";
|
|
1383
1380
|
post: "post";
|
|
@@ -1401,11 +1398,11 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
1401
1398
|
item_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1402
1399
|
asset_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1403
1400
|
asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1404
|
-
user: "user";
|
|
1405
1401
|
organization: "organization";
|
|
1402
|
+
file: "file";
|
|
1403
|
+
user: "user";
|
|
1406
1404
|
team: "team";
|
|
1407
1405
|
dataset: "dataset";
|
|
1408
|
-
file: "file";
|
|
1409
1406
|
service: "service";
|
|
1410
1407
|
route: "route";
|
|
1411
1408
|
post: "post";
|
|
@@ -1416,11 +1413,11 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
1416
1413
|
assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1417
1414
|
asset_id: z.ZodUUID;
|
|
1418
1415
|
asset_type: z.ZodEnum<{
|
|
1419
|
-
user: "user";
|
|
1420
1416
|
organization: "organization";
|
|
1417
|
+
file: "file";
|
|
1418
|
+
user: "user";
|
|
1421
1419
|
team: "team";
|
|
1422
1420
|
dataset: "dataset";
|
|
1423
|
-
file: "file";
|
|
1424
1421
|
service: "service";
|
|
1425
1422
|
route: "route";
|
|
1426
1423
|
post: "post";
|
|
@@ -1467,11 +1464,11 @@ declare const CreateEntrySchema: z.ZodObject<{
|
|
|
1467
1464
|
assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUUID, z.ZodObject<{
|
|
1468
1465
|
asset_id: z.ZodUUID;
|
|
1469
1466
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
1470
|
-
user: "user";
|
|
1471
1467
|
organization: "organization";
|
|
1468
|
+
file: "file";
|
|
1469
|
+
user: "user";
|
|
1472
1470
|
team: "team";
|
|
1473
1471
|
dataset: "dataset";
|
|
1474
|
-
file: "file";
|
|
1475
1472
|
service: "service";
|
|
1476
1473
|
route: "route";
|
|
1477
1474
|
post: "post";
|