@ourofoundation/ouro-js 3.5.2 → 3.5.3
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-73DHYPGU.cjs +2 -0
- package/dist/chunk-73DHYPGU.cjs.map +1 -0
- package/dist/chunk-XLJBQ7BU.js +2 -0
- package/dist/chunk-XLJBQ7BU.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +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.d.cts +69 -69
- package/dist/schema/conversations.d.ts +69 -69
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +186 -140
- package/dist/schema/datasets.d.ts +186 -140
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.d.cts +100 -100
- package/dist/schema/files.d.ts +100 -100
- 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.d.cts +127 -127
- package/dist/schema/posts.d.ts +127 -127
- package/dist/schema/quests.d.cts +177 -177
- package/dist/schema/quests.d.ts +177 -177
- package/dist/schema/services.d.cts +127 -127
- package/dist/schema/services.d.ts +127 -127
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/utils/quest-submission.d.cts +7 -7
- package/dist/utils/quest-submission.d.ts +7 -7
- package/package.json +1 -1
- package/dist/chunk-3UWDQLTN.js +0 -2
- package/dist/chunk-3UWDQLTN.js.map +0 -1
- package/dist/chunk-OBWPO2QT.cjs +0 -2
- package/dist/chunk-OBWPO2QT.cjs.map +0 -1
package/dist/schema/quests.d.ts
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
|
-
organization: "organization";
|
|
60
|
-
file: "file";
|
|
61
59
|
user: "user";
|
|
60
|
+
organization: "organization";
|
|
62
61
|
team: "team";
|
|
63
62
|
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
|
-
file: "file";
|
|
85
84
|
dataset: "dataset";
|
|
85
|
+
file: "file";
|
|
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
|
-
organization: "organization";
|
|
105
|
-
file: "file";
|
|
106
104
|
user: "user";
|
|
105
|
+
organization: "organization";
|
|
107
106
|
team: "team";
|
|
108
107
|
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
|
-
organization: "organization";
|
|
154
|
-
file: "file";
|
|
155
153
|
user: "user";
|
|
154
|
+
organization: "organization";
|
|
156
155
|
team: "team";
|
|
157
156
|
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
|
-
file: "file";
|
|
179
178
|
dataset: "dataset";
|
|
179
|
+
file: "file";
|
|
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
|
-
organization: "organization";
|
|
199
|
-
file: "file";
|
|
200
198
|
user: "user";
|
|
199
|
+
organization: "organization";
|
|
201
200
|
team: "team";
|
|
202
201
|
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
|
-
organization: "organization";
|
|
241
|
-
file: "file";
|
|
242
240
|
user: "user";
|
|
241
|
+
organization: "organization";
|
|
243
242
|
team: "team";
|
|
244
243
|
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
|
-
file: "file";
|
|
266
265
|
dataset: "dataset";
|
|
266
|
+
file: "file";
|
|
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
|
-
organization: "organization";
|
|
286
|
-
file: "file";
|
|
287
285
|
user: "user";
|
|
286
|
+
organization: "organization";
|
|
288
287
|
team: "team";
|
|
289
288
|
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
|
-
organization: "organization";
|
|
309
|
-
file: "file";
|
|
310
308
|
user: "user";
|
|
309
|
+
organization: "organization";
|
|
311
310
|
team: "team";
|
|
312
311
|
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
|
-
file: "file";
|
|
334
333
|
dataset: "dataset";
|
|
334
|
+
file: "file";
|
|
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
|
-
organization: "organization";
|
|
354
|
-
file: "file";
|
|
355
353
|
user: "user";
|
|
354
|
+
organization: "organization";
|
|
356
355
|
team: "team";
|
|
357
356
|
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
|
-
organization: "organization";
|
|
374
|
-
file: "file";
|
|
375
373
|
user: "user";
|
|
374
|
+
organization: "organization";
|
|
376
375
|
team: "team";
|
|
377
376
|
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
|
-
file: "file";
|
|
399
398
|
dataset: "dataset";
|
|
399
|
+
file: "file";
|
|
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
|
-
organization: "organization";
|
|
419
|
-
file: "file";
|
|
420
418
|
user: "user";
|
|
419
|
+
organization: "organization";
|
|
421
420
|
team: "team";
|
|
422
421
|
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";
|
|
541
542
|
public: "public";
|
|
542
543
|
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";
|
|
615
616
|
public: "public";
|
|
616
617
|
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";
|
|
644
643
|
queued: "queued";
|
|
645
644
|
"in-progress": "in-progress";
|
|
646
645
|
"timed-out": "timed-out";
|
|
646
|
+
error: "error";
|
|
647
647
|
}>;
|
|
648
648
|
source: z.ZodEnum<{
|
|
649
|
-
web: "web";
|
|
650
649
|
api: "api";
|
|
650
|
+
web: "web";
|
|
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
|
-
organization: "organization";
|
|
706
|
-
file: "file";
|
|
707
705
|
user: "user";
|
|
706
|
+
organization: "organization";
|
|
708
707
|
team: "team";
|
|
709
708
|
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
|
-
file: "file";
|
|
731
730
|
dataset: "dataset";
|
|
731
|
+
file: "file";
|
|
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
|
-
organization: "organization";
|
|
751
|
-
file: "file";
|
|
752
750
|
user: "user";
|
|
751
|
+
organization: "organization";
|
|
753
752
|
team: "team";
|
|
754
753
|
dataset: "dataset";
|
|
754
|
+
file: "file";
|
|
755
755
|
service: "service";
|
|
756
756
|
route: "route";
|
|
757
757
|
post: "post";
|
|
@@ -793,6 +793,19 @@ 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>>>>;
|
|
796
809
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
797
810
|
none: "none";
|
|
798
811
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -814,19 +827,6 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
814
827
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
815
828
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
816
829
|
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";
|
|
838
837
|
queued: "queued";
|
|
839
838
|
"in-progress": "in-progress";
|
|
840
839
|
"timed-out": "timed-out";
|
|
840
|
+
error: "error";
|
|
841
841
|
}>>>;
|
|
842
842
|
source: z.ZodDefault<z.ZodEnum<{
|
|
843
|
-
web: "web";
|
|
844
843
|
api: "api";
|
|
844
|
+
web: "web";
|
|
845
845
|
}>>;
|
|
846
846
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
847
|
+
organization: "organization";
|
|
847
848
|
public: "public";
|
|
848
849
|
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
|
-
organization: "organization";
|
|
884
|
-
file: "file";
|
|
885
883
|
user: "user";
|
|
884
|
+
organization: "organization";
|
|
886
885
|
team: "team";
|
|
887
886
|
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
|
-
file: "file";
|
|
909
908
|
dataset: "dataset";
|
|
909
|
+
file: "file";
|
|
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
|
-
organization: "organization";
|
|
929
|
-
file: "file";
|
|
930
928
|
user: "user";
|
|
929
|
+
organization: "organization";
|
|
931
930
|
team: "team";
|
|
932
931
|
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
|
-
organization: "organization";
|
|
949
|
-
file: "file";
|
|
950
948
|
user: "user";
|
|
949
|
+
organization: "organization";
|
|
951
950
|
team: "team";
|
|
952
951
|
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
|
-
file: "file";
|
|
974
973
|
dataset: "dataset";
|
|
974
|
+
file: "file";
|
|
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
|
-
organization: "organization";
|
|
994
|
-
file: "file";
|
|
995
993
|
user: "user";
|
|
994
|
+
organization: "organization";
|
|
996
995
|
team: "team";
|
|
997
996
|
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" | "
|
|
1013
|
-
source: "
|
|
1014
|
-
visibility: "
|
|
1012
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
1013
|
+
source: "api" | "web";
|
|
1014
|
+
visibility: "organization" | "public" | "private" | "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?: "user" | "organization" | "team" | "dataset" | "file" | "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: "dataset" | "file" | "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,11 +1043,20 @@ 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: "user" | "organization" | "team" | "dataset" | "file" | "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;
|
|
1051
1060
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1052
1061
|
parent_id?: string | null | undefined;
|
|
1053
1062
|
license_id?: string | undefined;
|
|
@@ -1059,15 +1068,6 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1059
1068
|
stripe_product_id?: string | null | undefined;
|
|
1060
1069
|
stripe_price_id?: string | null | undefined;
|
|
1061
1070
|
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" | "
|
|
1086
|
-
source: "
|
|
1087
|
-
visibility: "
|
|
1085
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
1086
|
+
source: "api" | "web";
|
|
1087
|
+
visibility: "organization" | "public" | "private" | "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?: "user" | "organization" | "team" | "dataset" | "file" | "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: "dataset" | "file" | "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,11 +1116,20 @@ 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: "user" | "organization" | "team" | "dataset" | "file" | "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;
|
|
1124
1133
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1125
1134
|
parent_id?: string | null | undefined;
|
|
1126
1135
|
license_id?: string | undefined;
|
|
@@ -1132,15 +1141,6 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1132
1141
|
stripe_product_id?: string | null | undefined;
|
|
1133
1142
|
stripe_price_id?: string | null | undefined;
|
|
1134
1143
|
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,18 +1153,52 @@ 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>;
|
|
1156
1171
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1172
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1173
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1174
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1175
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
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>;
|
|
1161
1187
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1188
|
+
organization: "organization";
|
|
1162
1189
|
public: "public";
|
|
1163
1190
|
private: "private";
|
|
1164
|
-
organization: "organization";
|
|
1165
1191
|
monetized: "monetized";
|
|
1166
1192
|
inherit: "inherit";
|
|
1167
1193
|
}>>;
|
|
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
|
+
}>>;
|
|
1168
1202
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
1169
1203
|
none: "none";
|
|
1170
1204
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -1172,35 +1206,14 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1172
1206
|
}>>;
|
|
1173
1207
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1174
1208
|
success: "success";
|
|
1175
|
-
error: "error";
|
|
1176
1209
|
queued: "queued";
|
|
1177
1210
|
"in-progress": "in-progress";
|
|
1178
1211
|
"timed-out": "timed-out";
|
|
1212
|
+
error: "error";
|
|
1179
1213
|
}>>;
|
|
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>>>>;
|
|
1187
1214
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
1188
1215
|
license_id: z.ZodOptional<z.ZodString>;
|
|
1189
1216
|
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>>>;
|
|
1204
1217
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1205
1218
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1206
1219
|
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -1216,46 +1229,42 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1216
1229
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1217
1230
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1218
1231
|
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
1233
|
asset_type: z.ZodDefault<z.ZodLiteral<"quest">>;
|
|
1234
1234
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
1235
1235
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1236
1236
|
asset_type: "quest";
|
|
1237
1237
|
last_updated: string;
|
|
1238
|
+
quest?: {
|
|
1239
|
+
type?: "closable" | "continuous" | undefined;
|
|
1240
|
+
status?: "open" | "draft" | "closed" | "cancelled" | undefined;
|
|
1241
|
+
max_xp_per_contributor?: number | null | undefined;
|
|
1242
|
+
closed_at?: string | null | undefined;
|
|
1243
|
+
} | undefined;
|
|
1244
|
+
org_id?: string | undefined;
|
|
1238
1245
|
parent?: Record<string, any> | undefined;
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1246
|
+
metadata?: {
|
|
1247
|
+
doi_url?: string | null | undefined;
|
|
1248
|
+
external_url?: string | null | undefined;
|
|
1249
|
+
paper_url?: string | null | undefined;
|
|
1250
|
+
github_url?: string | null | undefined;
|
|
1251
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
1252
|
+
source?: string | null | undefined;
|
|
1253
|
+
reply_to_comment_id?: string | null | undefined;
|
|
1254
|
+
} | null | undefined;
|
|
1243
1255
|
name?: string | undefined;
|
|
1244
|
-
org_id?: string | undefined;
|
|
1245
1256
|
team_id?: string | undefined;
|
|
1257
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1246
1258
|
description?: {
|
|
1247
1259
|
json: Record<string, any>;
|
|
1248
1260
|
text: string;
|
|
1249
1261
|
} | null | undefined;
|
|
1262
|
+
source?: "api" | "web" | undefined;
|
|
1263
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1264
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
1250
1265
|
parent_id?: string | null | undefined;
|
|
1251
1266
|
license_id?: string | undefined;
|
|
1252
1267
|
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;
|
|
1259
1268
|
name_url_slug?: string | null | undefined;
|
|
1260
1269
|
price?: number | null | undefined;
|
|
1261
1270
|
unit_cost?: number | null | undefined;
|
|
@@ -1265,6 +1274,18 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1265
1274
|
stripe_product_id?: string | null | undefined;
|
|
1266
1275
|
stripe_price_id?: string | null | undefined;
|
|
1267
1276
|
stripe_meter_id?: string | null | undefined;
|
|
1277
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
1278
|
+
}, {
|
|
1279
|
+
asset_type: "quest";
|
|
1280
|
+
last_updated: string;
|
|
1281
|
+
quest?: {
|
|
1282
|
+
type?: "closable" | "continuous" | undefined;
|
|
1283
|
+
status?: "open" | "draft" | "closed" | "cancelled" | undefined;
|
|
1284
|
+
max_xp_per_contributor?: number | null | undefined;
|
|
1285
|
+
closed_at?: string | null | undefined;
|
|
1286
|
+
} | undefined;
|
|
1287
|
+
org_id?: string | undefined;
|
|
1288
|
+
parent?: Record<string, any> | undefined;
|
|
1268
1289
|
metadata?: {
|
|
1269
1290
|
doi_url?: string | null | undefined;
|
|
1270
1291
|
external_url?: string | null | undefined;
|
|
@@ -1274,31 +1295,19 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1274
1295
|
source?: string | null | undefined;
|
|
1275
1296
|
reply_to_comment_id?: string | null | undefined;
|
|
1276
1297
|
} | 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;
|
|
1286
1298
|
name?: string | undefined;
|
|
1287
|
-
org_id?: string | undefined;
|
|
1288
1299
|
team_id?: string | undefined;
|
|
1300
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1289
1301
|
description?: {
|
|
1290
1302
|
json: Record<string, any>;
|
|
1291
1303
|
text: string;
|
|
1292
1304
|
} | null | undefined;
|
|
1305
|
+
source?: "api" | "web" | undefined;
|
|
1306
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1307
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
1293
1308
|
parent_id?: string | null | undefined;
|
|
1294
1309
|
license_id?: string | undefined;
|
|
1295
1310
|
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;
|
|
1302
1311
|
name_url_slug?: string | null | undefined;
|
|
1303
1312
|
price?: number | null | undefined;
|
|
1304
1313
|
unit_cost?: number | null | undefined;
|
|
@@ -1308,15 +1317,6 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1308
1317
|
stripe_product_id?: string | null | undefined;
|
|
1309
1318
|
stripe_price_id?: string | null | undefined;
|
|
1310
1319
|
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;
|
|
1320
1320
|
preview?: Record<string, any>[] | null | undefined;
|
|
1321
1321
|
}>>;
|
|
1322
1322
|
declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
@@ -1325,11 +1325,11 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
|
1325
1325
|
sort_order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1326
1326
|
assignee_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
1327
1327
|
expected_asset_type: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1328
|
-
organization: "organization";
|
|
1329
|
-
file: "file";
|
|
1330
1328
|
user: "user";
|
|
1329
|
+
organization: "organization";
|
|
1331
1330
|
team: "team";
|
|
1332
1331
|
dataset: "dataset";
|
|
1332
|
+
file: "file";
|
|
1333
1333
|
service: "service";
|
|
1334
1334
|
route: "route";
|
|
1335
1335
|
post: "post";
|
|
@@ -1350,8 +1350,8 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
|
1350
1350
|
eval_pass_max: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1351
1351
|
submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1352
1352
|
asset_type: z.ZodEnum<{
|
|
1353
|
-
file: "file";
|
|
1354
1353
|
dataset: "dataset";
|
|
1354
|
+
file: "file";
|
|
1355
1355
|
post: "post";
|
|
1356
1356
|
}>;
|
|
1357
1357
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1370,11 +1370,11 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
|
1370
1370
|
eval_static_inputs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1371
1371
|
asset_id: z.ZodUUID;
|
|
1372
1372
|
asset_type: z.ZodEnum<{
|
|
1373
|
-
organization: "organization";
|
|
1374
|
-
file: "file";
|
|
1375
1373
|
user: "user";
|
|
1374
|
+
organization: "organization";
|
|
1376
1375
|
team: "team";
|
|
1377
1376
|
dataset: "dataset";
|
|
1377
|
+
file: "file";
|
|
1378
1378
|
service: "service";
|
|
1379
1379
|
route: "route";
|
|
1380
1380
|
post: "post";
|
|
@@ -1398,11 +1398,11 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
1398
1398
|
item_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1399
1399
|
asset_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1400
1400
|
asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1401
|
-
organization: "organization";
|
|
1402
|
-
file: "file";
|
|
1403
1401
|
user: "user";
|
|
1402
|
+
organization: "organization";
|
|
1404
1403
|
team: "team";
|
|
1405
1404
|
dataset: "dataset";
|
|
1405
|
+
file: "file";
|
|
1406
1406
|
service: "service";
|
|
1407
1407
|
route: "route";
|
|
1408
1408
|
post: "post";
|
|
@@ -1413,11 +1413,11 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
1413
1413
|
assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1414
1414
|
asset_id: z.ZodUUID;
|
|
1415
1415
|
asset_type: z.ZodEnum<{
|
|
1416
|
-
organization: "organization";
|
|
1417
|
-
file: "file";
|
|
1418
1416
|
user: "user";
|
|
1417
|
+
organization: "organization";
|
|
1419
1418
|
team: "team";
|
|
1420
1419
|
dataset: "dataset";
|
|
1420
|
+
file: "file";
|
|
1421
1421
|
service: "service";
|
|
1422
1422
|
route: "route";
|
|
1423
1423
|
post: "post";
|
|
@@ -1464,11 +1464,11 @@ declare const CreateEntrySchema: z.ZodObject<{
|
|
|
1464
1464
|
assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUUID, z.ZodObject<{
|
|
1465
1465
|
asset_id: z.ZodUUID;
|
|
1466
1466
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
1467
|
-
organization: "organization";
|
|
1468
|
-
file: "file";
|
|
1469
1467
|
user: "user";
|
|
1468
|
+
organization: "organization";
|
|
1470
1469
|
team: "team";
|
|
1471
1470
|
dataset: "dataset";
|
|
1471
|
+
file: "file";
|
|
1472
1472
|
service: "service";
|
|
1473
1473
|
route: "route";
|
|
1474
1474
|
post: "post";
|