@ourofoundation/ouro-js 3.7.8 → 3.7.9
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-QWD7POET.cjs → chunk-2KQZYT5W.cjs} +2 -2
- package/dist/{chunk-QWD7POET.cjs.map → chunk-2KQZYT5W.cjs.map} +1 -1
- package/dist/{chunk-66AAHP6X.cjs → chunk-4CXHZFX4.cjs} +2 -2
- package/dist/{chunk-66AAHP6X.cjs.map → chunk-4CXHZFX4.cjs.map} +1 -1
- package/dist/{chunk-ASLHRT77.js → chunk-4TQRYYVQ.js} +2 -2
- package/dist/{chunk-ASLHRT77.js.map → chunk-4TQRYYVQ.js.map} +1 -1
- package/dist/chunk-5CSPQ2RL.cjs +2 -0
- package/dist/chunk-5CSPQ2RL.cjs.map +1 -0
- package/dist/{chunk-UVVPXYJA.cjs → chunk-6DS2XXIF.cjs} +2 -2
- package/dist/{chunk-UVVPXYJA.cjs.map → chunk-6DS2XXIF.cjs.map} +1 -1
- package/dist/{chunk-Y6TOO6ET.js → chunk-732QBVGP.js} +2 -2
- package/dist/{chunk-Y6TOO6ET.js.map → chunk-732QBVGP.js.map} +1 -1
- package/dist/{chunk-KHUEMWG2.js → chunk-BUO2Y3O3.js} +2 -2
- package/dist/{chunk-KHUEMWG2.js.map → chunk-BUO2Y3O3.js.map} +1 -1
- package/dist/{chunk-B3OK6NNR.cjs → chunk-EP5DBAZQ.cjs} +2 -2
- package/dist/{chunk-B3OK6NNR.cjs.map → chunk-EP5DBAZQ.cjs.map} +1 -1
- package/dist/{chunk-3C7PGJ33.js → chunk-F6PWGWDJ.js} +2 -2
- package/dist/{chunk-3C7PGJ33.js.map → chunk-F6PWGWDJ.js.map} +1 -1
- package/dist/{chunk-PB4XG5WM.js → chunk-FDCVNMMO.js} +2 -2
- package/dist/{chunk-PB4XG5WM.js.map → chunk-FDCVNMMO.js.map} +1 -1
- package/dist/{chunk-3OUJXTJZ.js → chunk-HZDBAPRY.js} +2 -2
- package/dist/{chunk-3OUJXTJZ.js.map → chunk-HZDBAPRY.js.map} +1 -1
- package/dist/{chunk-LD5G6GFH.cjs → chunk-ICEXKHCC.cjs} +2 -2
- package/dist/{chunk-LD5G6GFH.cjs.map → chunk-ICEXKHCC.cjs.map} +1 -1
- package/dist/{chunk-EMDUI7HF.js → chunk-JAVIKBEC.js} +2 -2
- package/dist/{chunk-EMDUI7HF.js.map → chunk-JAVIKBEC.js.map} +1 -1
- package/dist/{chunk-W6MBAIKZ.cjs → chunk-PXT4NFAJ.cjs} +2 -2
- package/dist/{chunk-W6MBAIKZ.cjs.map → chunk-PXT4NFAJ.cjs.map} +1 -1
- package/dist/{chunk-UDTRH3OQ.cjs → chunk-QJ3DLN2Y.cjs} +2 -2
- package/dist/{chunk-UDTRH3OQ.cjs.map → chunk-QJ3DLN2Y.cjs.map} +1 -1
- package/dist/{chunk-4NAPVNIX.js → chunk-SIZVKGUT.js} +2 -2
- package/dist/{chunk-4NAPVNIX.js.map → chunk-SIZVKGUT.js.map} +1 -1
- package/dist/{chunk-3RFYEL3A.cjs → chunk-SZ5PIWEE.cjs} +2 -2
- package/dist/{chunk-3RFYEL3A.cjs.map → chunk-SZ5PIWEE.cjs.map} +1 -1
- package/dist/{chunk-7YG2YDXN.cjs → chunk-TB7MTWMO.cjs} +2 -2
- package/dist/{chunk-7YG2YDXN.cjs.map → chunk-TB7MTWMO.cjs.map} +1 -1
- package/dist/chunk-V3QRQO6H.js +2 -0
- package/dist/chunk-V3QRQO6H.js.map +1 -0
- package/dist/{chunk-YTIUJ72Q.js → chunk-VC4DZZ3C.js} +2 -2
- package/dist/{chunk-YTIUJ72Q.js.map → chunk-VC4DZZ3C.js.map} +1 -1
- 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/asset-filters.d.cts +7 -7
- package/dist/schema/asset-filters.d.ts +7 -7
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +63 -63
- package/dist/schema/assets.d.ts +63 -63
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +59 -59
- package/dist/schema/comments.d.ts +59 -59
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.d.cts +9 -9
- package/dist/schema/common.d.ts +9 -9
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +57 -57
- package/dist/schema/conversations.d.ts +57 -57
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +137 -137
- package/dist/schema/datasets.d.ts +137 -137
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +88 -88
- package/dist/schema/files.d.ts +88 -88
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.d.cts +106 -106
- package/dist/schema/notifications.d.ts +106 -106
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +91 -91
- package/dist/schema/posts.d.ts +91 -91
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +192 -131
- package/dist/schema/quests.d.ts +192 -131
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +132 -132
- package/dist/schema/services.d.ts +132 -132
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +15 -15
- package/dist/schema/teams.d.ts +15 -15
- package/dist/schema/teams.js +1 -1
- package/dist/utils/quest-submission.cjs +1 -1
- package/dist/utils/quest-submission.d.cts +4 -4
- package/dist/utils/quest-submission.d.ts +4 -4
- package/dist/utils/quest-submission.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-W6AKVS4L.cjs +0 -2
- package/dist/chunk-W6AKVS4L.cjs.map +0 -1
- package/dist/chunk-XVN3DFMT.js +0 -2
- package/dist/chunk-XVN3DFMT.js.map +0 -1
package/dist/schema/quests.d.ts
CHANGED
|
@@ -34,6 +34,11 @@ declare const EntryStatusSchema: z.ZodEnum<{
|
|
|
34
34
|
accepted: "accepted";
|
|
35
35
|
rejected: "rejected";
|
|
36
36
|
}>;
|
|
37
|
+
/** desc = higher scores rank first; asc = lower scores rank first */
|
|
38
|
+
declare const LeaderboardOrderSchema: z.ZodEnum<{
|
|
39
|
+
desc: "desc";
|
|
40
|
+
asc: "asc";
|
|
41
|
+
}>;
|
|
37
42
|
declare const QuestItemBaseSchema: z.ZodObject<{
|
|
38
43
|
id: z.ZodUUID;
|
|
39
44
|
quest_id: z.ZodUUID;
|
|
@@ -63,10 +68,10 @@ declare const QuestItemBaseSchema: z.ZodObject<{
|
|
|
63
68
|
assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
64
69
|
expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
65
70
|
user: "user";
|
|
66
|
-
file: "file";
|
|
67
71
|
organization: "organization";
|
|
68
72
|
team: "team";
|
|
69
73
|
dataset: "dataset";
|
|
74
|
+
file: "file";
|
|
70
75
|
service: "service";
|
|
71
76
|
route: "route";
|
|
72
77
|
post: "post";
|
|
@@ -83,12 +88,18 @@ declare const QuestItemBaseSchema: z.ZodObject<{
|
|
|
83
88
|
child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
84
89
|
eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
85
90
|
eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
eval_categories_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
92
|
eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
87
93
|
eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
94
|
+
leaderboard_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
95
|
+
leaderboard_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
desc: "desc";
|
|
97
|
+
asc: "asc";
|
|
98
|
+
}>>>;
|
|
88
99
|
submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
89
100
|
asset_type: z.ZodEnum<{
|
|
90
|
-
file: "file";
|
|
91
101
|
dataset: "dataset";
|
|
102
|
+
file: "file";
|
|
92
103
|
post: "post";
|
|
93
104
|
}>;
|
|
94
105
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -108,10 +119,10 @@ declare const QuestItemBaseSchema: z.ZodObject<{
|
|
|
108
119
|
asset_id: z.ZodUUID;
|
|
109
120
|
asset_type: z.ZodEnum<{
|
|
110
121
|
user: "user";
|
|
111
|
-
file: "file";
|
|
112
122
|
organization: "organization";
|
|
113
123
|
team: "team";
|
|
114
124
|
dataset: "dataset";
|
|
125
|
+
file: "file";
|
|
115
126
|
service: "service";
|
|
116
127
|
route: "route";
|
|
117
128
|
post: "post";
|
|
@@ -163,10 +174,10 @@ declare const QuestItemSchema: z.ZodObject<{
|
|
|
163
174
|
assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
164
175
|
expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
165
176
|
user: "user";
|
|
166
|
-
file: "file";
|
|
167
177
|
organization: "organization";
|
|
168
178
|
team: "team";
|
|
169
179
|
dataset: "dataset";
|
|
180
|
+
file: "file";
|
|
170
181
|
service: "service";
|
|
171
182
|
route: "route";
|
|
172
183
|
post: "post";
|
|
@@ -183,12 +194,18 @@ declare const QuestItemSchema: z.ZodObject<{
|
|
|
183
194
|
child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
184
195
|
eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
185
196
|
eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
eval_categories_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
186
198
|
eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
187
199
|
eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
200
|
+
leaderboard_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
201
|
+
leaderboard_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
202
|
+
desc: "desc";
|
|
203
|
+
asc: "asc";
|
|
204
|
+
}>>>;
|
|
188
205
|
submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
189
206
|
asset_type: z.ZodEnum<{
|
|
190
|
-
file: "file";
|
|
191
207
|
dataset: "dataset";
|
|
208
|
+
file: "file";
|
|
192
209
|
post: "post";
|
|
193
210
|
}>;
|
|
194
211
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -208,10 +225,10 @@ declare const QuestItemSchema: z.ZodObject<{
|
|
|
208
225
|
asset_id: z.ZodUUID;
|
|
209
226
|
asset_type: z.ZodEnum<{
|
|
210
227
|
user: "user";
|
|
211
|
-
file: "file";
|
|
212
228
|
organization: "organization";
|
|
213
229
|
team: "team";
|
|
214
230
|
dataset: "dataset";
|
|
231
|
+
file: "file";
|
|
215
232
|
service: "service";
|
|
216
233
|
route: "route";
|
|
217
234
|
post: "post";
|
|
@@ -257,10 +274,10 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
|
|
|
257
274
|
assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
258
275
|
expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
259
276
|
user: "user";
|
|
260
|
-
file: "file";
|
|
261
277
|
organization: "organization";
|
|
262
278
|
team: "team";
|
|
263
279
|
dataset: "dataset";
|
|
280
|
+
file: "file";
|
|
264
281
|
service: "service";
|
|
265
282
|
route: "route";
|
|
266
283
|
post: "post";
|
|
@@ -277,12 +294,18 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
|
|
|
277
294
|
child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
278
295
|
eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
279
296
|
eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
eval_categories_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
298
|
eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
281
299
|
eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
300
|
+
leaderboard_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
301
|
+
leaderboard_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
302
|
+
desc: "desc";
|
|
303
|
+
asc: "asc";
|
|
304
|
+
}>>>;
|
|
282
305
|
submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
283
306
|
asset_type: z.ZodEnum<{
|
|
284
|
-
file: "file";
|
|
285
307
|
dataset: "dataset";
|
|
308
|
+
file: "file";
|
|
286
309
|
post: "post";
|
|
287
310
|
}>;
|
|
288
311
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -302,10 +325,10 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
|
|
|
302
325
|
asset_id: z.ZodUUID;
|
|
303
326
|
asset_type: z.ZodEnum<{
|
|
304
327
|
user: "user";
|
|
305
|
-
file: "file";
|
|
306
328
|
organization: "organization";
|
|
307
329
|
team: "team";
|
|
308
330
|
dataset: "dataset";
|
|
331
|
+
file: "file";
|
|
309
332
|
service: "service";
|
|
310
333
|
route: "route";
|
|
311
334
|
post: "post";
|
|
@@ -328,17 +351,20 @@ declare const CreateQuestItemSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString,
|
|
|
328
351
|
reward_xp: number;
|
|
329
352
|
reward_currency: "usd" | "btc";
|
|
330
353
|
reward_amount: number;
|
|
354
|
+
leaderboard_enabled: boolean;
|
|
355
|
+
leaderboard_order: "desc" | "asc";
|
|
331
356
|
sort_order?: number | undefined;
|
|
332
357
|
assignee_id?: string | null | undefined;
|
|
333
|
-
expected_asset_type?: "user" | "
|
|
358
|
+
expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
|
|
334
359
|
child_quest_id?: string | null | undefined;
|
|
335
360
|
eval_route_id?: string | null | undefined;
|
|
336
361
|
eval_score_path?: string | null | undefined;
|
|
362
|
+
eval_categories_path?: string | null | undefined;
|
|
337
363
|
eval_pass_min?: number | null | undefined;
|
|
338
364
|
eval_pass_max?: number | null | undefined;
|
|
339
365
|
submission_assets?: Record<string, {
|
|
340
366
|
[x: string]: any;
|
|
341
|
-
asset_type: "
|
|
367
|
+
asset_type: "dataset" | "file" | "post";
|
|
342
368
|
required: boolean;
|
|
343
369
|
primary?: boolean | undefined;
|
|
344
370
|
input_filter?: "image" | "video" | "audio" | "pdf" | "3d model" | "atomic structure" | null | undefined;
|
|
@@ -347,7 +373,7 @@ declare const CreateQuestItemSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString,
|
|
|
347
373
|
}> | null | undefined;
|
|
348
374
|
eval_static_inputs?: Record<string, {
|
|
349
375
|
asset_id: string;
|
|
350
|
-
asset_type: "user" | "
|
|
376
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
|
|
351
377
|
}> | null | undefined;
|
|
352
378
|
notes?: string | null | undefined;
|
|
353
379
|
}, string>>, z.ZodObject<{
|
|
@@ -363,10 +389,10 @@ declare const CreateQuestItemSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString,
|
|
|
363
389
|
assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
364
390
|
expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
365
391
|
user: "user";
|
|
366
|
-
file: "file";
|
|
367
392
|
organization: "organization";
|
|
368
393
|
team: "team";
|
|
369
394
|
dataset: "dataset";
|
|
395
|
+
file: "file";
|
|
370
396
|
service: "service";
|
|
371
397
|
route: "route";
|
|
372
398
|
post: "post";
|
|
@@ -383,12 +409,18 @@ declare const CreateQuestItemSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString,
|
|
|
383
409
|
child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
384
410
|
eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
385
411
|
eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
+
eval_categories_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
413
|
eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
387
414
|
eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
415
|
+
leaderboard_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
416
|
+
leaderboard_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
417
|
+
desc: "desc";
|
|
418
|
+
asc: "asc";
|
|
419
|
+
}>>>;
|
|
388
420
|
submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
389
421
|
asset_type: z.ZodEnum<{
|
|
390
|
-
file: "file";
|
|
391
422
|
dataset: "dataset";
|
|
423
|
+
file: "file";
|
|
392
424
|
post: "post";
|
|
393
425
|
}>;
|
|
394
426
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -408,10 +440,10 @@ declare const CreateQuestItemSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString,
|
|
|
408
440
|
asset_id: z.ZodUUID;
|
|
409
441
|
asset_type: z.ZodEnum<{
|
|
410
442
|
user: "user";
|
|
411
|
-
file: "file";
|
|
412
443
|
organization: "organization";
|
|
413
444
|
team: "team";
|
|
414
445
|
dataset: "dataset";
|
|
446
|
+
file: "file";
|
|
415
447
|
service: "service";
|
|
416
448
|
route: "route";
|
|
417
449
|
post: "post";
|
|
@@ -665,14 +697,14 @@ declare const QuestSchema: z.ZodObject<{
|
|
|
665
697
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
666
698
|
state: z.ZodEnum<{
|
|
667
699
|
success: "success";
|
|
668
|
-
error: "error";
|
|
669
700
|
queued: "queued";
|
|
670
701
|
"in-progress": "in-progress";
|
|
671
702
|
"timed-out": "timed-out";
|
|
703
|
+
error: "error";
|
|
672
704
|
}>;
|
|
673
705
|
source: z.ZodEnum<{
|
|
674
|
-
web: "web";
|
|
675
706
|
api: "api";
|
|
707
|
+
web: "web";
|
|
676
708
|
}>;
|
|
677
709
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
678
710
|
created_at: z.ZodString;
|
|
@@ -725,10 +757,10 @@ declare const QuestSchema: z.ZodObject<{
|
|
|
725
757
|
assignee_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
726
758
|
expected_asset_type: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
727
759
|
user: "user";
|
|
728
|
-
file: "file";
|
|
729
760
|
organization: "organization";
|
|
730
761
|
team: "team";
|
|
731
762
|
dataset: "dataset";
|
|
763
|
+
file: "file";
|
|
732
764
|
service: "service";
|
|
733
765
|
route: "route";
|
|
734
766
|
post: "post";
|
|
@@ -745,12 +777,18 @@ declare const QuestSchema: z.ZodObject<{
|
|
|
745
777
|
child_quest_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
746
778
|
eval_route_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
747
779
|
eval_score_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
780
|
+
eval_categories_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
748
781
|
eval_pass_min: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
749
782
|
eval_pass_max: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
783
|
+
leaderboard_enabled: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
784
|
+
leaderboard_order: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
785
|
+
desc: "desc";
|
|
786
|
+
asc: "asc";
|
|
787
|
+
}>>>>;
|
|
750
788
|
submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
751
789
|
asset_type: z.ZodEnum<{
|
|
752
|
-
file: "file";
|
|
753
790
|
dataset: "dataset";
|
|
791
|
+
file: "file";
|
|
754
792
|
post: "post";
|
|
755
793
|
}>;
|
|
756
794
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -770,10 +808,10 @@ declare const QuestSchema: z.ZodObject<{
|
|
|
770
808
|
asset_id: z.ZodUUID;
|
|
771
809
|
asset_type: z.ZodEnum<{
|
|
772
810
|
user: "user";
|
|
773
|
-
file: "file";
|
|
774
811
|
organization: "organization";
|
|
775
812
|
team: "team";
|
|
776
813
|
dataset: "dataset";
|
|
814
|
+
file: "file";
|
|
777
815
|
service: "service";
|
|
778
816
|
route: "route";
|
|
779
817
|
post: "post";
|
|
@@ -826,12 +864,16 @@ declare const QuestSchema: z.ZodObject<{
|
|
|
826
864
|
* into `{ description }`.
|
|
827
865
|
*/
|
|
828
866
|
declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
867
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
868
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
869
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
870
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
871
|
+
}, z.core.$strip>>>>;
|
|
829
872
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
830
873
|
none: "none";
|
|
831
874
|
"pay-to-unlock": "pay-to-unlock";
|
|
832
875
|
"pay-per-use": "pay-per-use";
|
|
833
876
|
}>>;
|
|
834
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
835
877
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
836
878
|
license_id: z.ZodOptional<z.ZodString>;
|
|
837
879
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -848,10 +890,6 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
848
890
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
849
891
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
850
892
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
851
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
852
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
853
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
854
|
-
}, z.core.$strip>>>>;
|
|
855
893
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
856
894
|
id: z.ZodDefault<z.ZodUUID>;
|
|
857
895
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
@@ -859,14 +897,14 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
859
897
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
860
898
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
861
899
|
success: "success";
|
|
862
|
-
error: "error";
|
|
863
900
|
queued: "queued";
|
|
864
901
|
"in-progress": "in-progress";
|
|
865
902
|
"timed-out": "timed-out";
|
|
903
|
+
error: "error";
|
|
866
904
|
}>>>;
|
|
867
905
|
source: z.ZodDefault<z.ZodEnum<{
|
|
868
|
-
web: "web";
|
|
869
906
|
api: "api";
|
|
907
|
+
web: "web";
|
|
870
908
|
}>>;
|
|
871
909
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
872
910
|
organization: "organization";
|
|
@@ -974,17 +1012,20 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
974
1012
|
reward_xp: number;
|
|
975
1013
|
reward_currency: "usd" | "btc";
|
|
976
1014
|
reward_amount: number;
|
|
1015
|
+
leaderboard_enabled: boolean;
|
|
1016
|
+
leaderboard_order: "desc" | "asc";
|
|
977
1017
|
sort_order?: number | undefined;
|
|
978
1018
|
assignee_id?: string | null | undefined;
|
|
979
|
-
expected_asset_type?: "user" | "
|
|
1019
|
+
expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
|
|
980
1020
|
child_quest_id?: string | null | undefined;
|
|
981
1021
|
eval_route_id?: string | null | undefined;
|
|
982
1022
|
eval_score_path?: string | null | undefined;
|
|
1023
|
+
eval_categories_path?: string | null | undefined;
|
|
983
1024
|
eval_pass_min?: number | null | undefined;
|
|
984
1025
|
eval_pass_max?: number | null | undefined;
|
|
985
1026
|
submission_assets?: Record<string, {
|
|
986
1027
|
[x: string]: any;
|
|
987
|
-
asset_type: "
|
|
1028
|
+
asset_type: "dataset" | "file" | "post";
|
|
988
1029
|
required: boolean;
|
|
989
1030
|
primary?: boolean | undefined;
|
|
990
1031
|
input_filter?: "image" | "video" | "audio" | "pdf" | "3d model" | "atomic structure" | null | undefined;
|
|
@@ -993,7 +1034,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
993
1034
|
}> | null | undefined;
|
|
994
1035
|
eval_static_inputs?: Record<string, {
|
|
995
1036
|
asset_id: string;
|
|
996
|
-
asset_type: "user" | "
|
|
1037
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
|
|
997
1038
|
}> | null | undefined;
|
|
998
1039
|
notes?: string | null | undefined;
|
|
999
1040
|
}, string>>, z.ZodObject<{
|
|
@@ -1009,10 +1050,10 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1009
1050
|
assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1010
1051
|
expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1011
1052
|
user: "user";
|
|
1012
|
-
file: "file";
|
|
1013
1053
|
organization: "organization";
|
|
1014
1054
|
team: "team";
|
|
1015
1055
|
dataset: "dataset";
|
|
1056
|
+
file: "file";
|
|
1016
1057
|
service: "service";
|
|
1017
1058
|
route: "route";
|
|
1018
1059
|
post: "post";
|
|
@@ -1029,12 +1070,18 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1029
1070
|
child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1030
1071
|
eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1031
1072
|
eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1073
|
+
eval_categories_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1032
1074
|
eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1033
1075
|
eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1076
|
+
leaderboard_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1077
|
+
leaderboard_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1078
|
+
desc: "desc";
|
|
1079
|
+
asc: "asc";
|
|
1080
|
+
}>>>;
|
|
1034
1081
|
submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1035
1082
|
asset_type: z.ZodEnum<{
|
|
1036
|
-
file: "file";
|
|
1037
1083
|
dataset: "dataset";
|
|
1084
|
+
file: "file";
|
|
1038
1085
|
post: "post";
|
|
1039
1086
|
}>;
|
|
1040
1087
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1054,10 +1101,10 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1054
1101
|
asset_id: z.ZodUUID;
|
|
1055
1102
|
asset_type: z.ZodEnum<{
|
|
1056
1103
|
user: "user";
|
|
1057
|
-
file: "file";
|
|
1058
1104
|
organization: "organization";
|
|
1059
1105
|
team: "team";
|
|
1060
1106
|
dataset: "dataset";
|
|
1107
|
+
file: "file";
|
|
1061
1108
|
service: "service";
|
|
1062
1109
|
route: "route";
|
|
1063
1110
|
post: "post";
|
|
@@ -1072,8 +1119,8 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1072
1119
|
id: string;
|
|
1073
1120
|
team_id: string | null;
|
|
1074
1121
|
org_id: string | null;
|
|
1075
|
-
state: "success" | "
|
|
1076
|
-
source: "
|
|
1122
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
1123
|
+
source: "api" | "web";
|
|
1077
1124
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
1078
1125
|
attribution: {
|
|
1079
1126
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -1112,17 +1159,20 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1112
1159
|
reward_xp: number;
|
|
1113
1160
|
reward_currency: "usd" | "btc";
|
|
1114
1161
|
reward_amount: number;
|
|
1162
|
+
leaderboard_enabled: boolean;
|
|
1163
|
+
leaderboard_order: "desc" | "asc";
|
|
1115
1164
|
sort_order?: number | undefined;
|
|
1116
1165
|
assignee_id?: string | null | undefined;
|
|
1117
|
-
expected_asset_type?: "user" | "
|
|
1166
|
+
expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
|
|
1118
1167
|
child_quest_id?: string | null | undefined;
|
|
1119
1168
|
eval_route_id?: string | null | undefined;
|
|
1120
1169
|
eval_score_path?: string | null | undefined;
|
|
1170
|
+
eval_categories_path?: string | null | undefined;
|
|
1121
1171
|
eval_pass_min?: number | null | undefined;
|
|
1122
1172
|
eval_pass_max?: number | null | undefined;
|
|
1123
1173
|
submission_assets?: Record<string, {
|
|
1124
1174
|
[x: string]: any;
|
|
1125
|
-
asset_type: "
|
|
1175
|
+
asset_type: "dataset" | "file" | "post";
|
|
1126
1176
|
required: boolean;
|
|
1127
1177
|
primary?: boolean | undefined;
|
|
1128
1178
|
input_filter?: "image" | "video" | "audio" | "pdf" | "3d model" | "atomic structure" | null | undefined;
|
|
@@ -1131,12 +1181,16 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1131
1181
|
}> | null | undefined;
|
|
1132
1182
|
eval_static_inputs?: Record<string, {
|
|
1133
1183
|
asset_id: string;
|
|
1134
|
-
asset_type: "user" | "
|
|
1184
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
|
|
1135
1185
|
}> | null | undefined;
|
|
1136
1186
|
notes?: string | null | undefined;
|
|
1137
1187
|
}[];
|
|
1138
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1139
1188
|
parent?: Record<string, any> | undefined;
|
|
1189
|
+
metadata?: {
|
|
1190
|
+
source?: string | null | undefined;
|
|
1191
|
+
reply_to_comment_id?: string | null | undefined;
|
|
1192
|
+
} | null | undefined;
|
|
1193
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1140
1194
|
parent_id?: string | null | undefined;
|
|
1141
1195
|
license_id?: string | undefined;
|
|
1142
1196
|
price?: number | null | undefined;
|
|
@@ -1147,10 +1201,6 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1147
1201
|
stripe_product_id?: string | null | undefined;
|
|
1148
1202
|
stripe_price_id?: string | null | undefined;
|
|
1149
1203
|
stripe_meter_id?: string | null | undefined;
|
|
1150
|
-
metadata?: {
|
|
1151
|
-
source?: string | null | undefined;
|
|
1152
|
-
reply_to_comment_id?: string | null | undefined;
|
|
1153
|
-
} | null | undefined;
|
|
1154
1204
|
preview?: Record<string, any>[] | null | undefined;
|
|
1155
1205
|
name_url_slug?: string | null | undefined;
|
|
1156
1206
|
description?: {
|
|
@@ -1165,8 +1215,8 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1165
1215
|
id: string;
|
|
1166
1216
|
team_id: string | null;
|
|
1167
1217
|
org_id: string | null;
|
|
1168
|
-
state: "success" | "
|
|
1169
|
-
source: "
|
|
1218
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
1219
|
+
source: "api" | "web";
|
|
1170
1220
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
1171
1221
|
attribution: {
|
|
1172
1222
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -1205,17 +1255,20 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1205
1255
|
reward_xp: number;
|
|
1206
1256
|
reward_currency: "usd" | "btc";
|
|
1207
1257
|
reward_amount: number;
|
|
1258
|
+
leaderboard_enabled: boolean;
|
|
1259
|
+
leaderboard_order: "desc" | "asc";
|
|
1208
1260
|
sort_order?: number | undefined;
|
|
1209
1261
|
assignee_id?: string | null | undefined;
|
|
1210
|
-
expected_asset_type?: "user" | "
|
|
1262
|
+
expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
|
|
1211
1263
|
child_quest_id?: string | null | undefined;
|
|
1212
1264
|
eval_route_id?: string | null | undefined;
|
|
1213
1265
|
eval_score_path?: string | null | undefined;
|
|
1266
|
+
eval_categories_path?: string | null | undefined;
|
|
1214
1267
|
eval_pass_min?: number | null | undefined;
|
|
1215
1268
|
eval_pass_max?: number | null | undefined;
|
|
1216
1269
|
submission_assets?: Record<string, {
|
|
1217
1270
|
[x: string]: any;
|
|
1218
|
-
asset_type: "
|
|
1271
|
+
asset_type: "dataset" | "file" | "post";
|
|
1219
1272
|
required: boolean;
|
|
1220
1273
|
primary?: boolean | undefined;
|
|
1221
1274
|
input_filter?: "image" | "video" | "audio" | "pdf" | "3d model" | "atomic structure" | null | undefined;
|
|
@@ -1224,12 +1277,16 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1224
1277
|
}> | null | undefined;
|
|
1225
1278
|
eval_static_inputs?: Record<string, {
|
|
1226
1279
|
asset_id: string;
|
|
1227
|
-
asset_type: "user" | "
|
|
1280
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
|
|
1228
1281
|
}> | null | undefined;
|
|
1229
1282
|
notes?: string | null | undefined;
|
|
1230
1283
|
}[];
|
|
1231
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1232
1284
|
parent?: Record<string, any> | undefined;
|
|
1285
|
+
metadata?: {
|
|
1286
|
+
source?: string | null | undefined;
|
|
1287
|
+
reply_to_comment_id?: string | null | undefined;
|
|
1288
|
+
} | null | undefined;
|
|
1289
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1233
1290
|
parent_id?: string | null | undefined;
|
|
1234
1291
|
license_id?: string | undefined;
|
|
1235
1292
|
price?: number | null | undefined;
|
|
@@ -1240,10 +1297,6 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1240
1297
|
stripe_product_id?: string | null | undefined;
|
|
1241
1298
|
stripe_price_id?: string | null | undefined;
|
|
1242
1299
|
stripe_meter_id?: string | null | undefined;
|
|
1243
|
-
metadata?: {
|
|
1244
|
-
source?: string | null | undefined;
|
|
1245
|
-
reply_to_comment_id?: string | null | undefined;
|
|
1246
|
-
} | null | undefined;
|
|
1247
1300
|
preview?: Record<string, any>[] | null | undefined;
|
|
1248
1301
|
name_url_slug?: string | null | undefined;
|
|
1249
1302
|
description?: {
|
|
@@ -1256,6 +1309,28 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1256
1309
|
max_xp_per_contributor?: number | null | undefined;
|
|
1257
1310
|
}>>;
|
|
1258
1311
|
declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
1312
|
+
quest: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1313
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1314
|
+
closable: "closable";
|
|
1315
|
+
continuous: "continuous";
|
|
1316
|
+
}>>>;
|
|
1317
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1318
|
+
open: "open";
|
|
1319
|
+
draft: "draft";
|
|
1320
|
+
closed: "closed";
|
|
1321
|
+
cancelled: "cancelled";
|
|
1322
|
+
}>>>;
|
|
1323
|
+
max_xp_per_contributor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1324
|
+
closed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1325
|
+
}, z.core.$strip>>>;
|
|
1326
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
1327
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1328
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1329
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1330
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1331
|
+
}, z.core.$strip>>>>;
|
|
1332
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1333
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
1259
1334
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1260
1335
|
organization: "organization";
|
|
1261
1336
|
public: "public";
|
|
@@ -1263,6 +1338,14 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1263
1338
|
monetized: "monetized";
|
|
1264
1339
|
inherit: "inherit";
|
|
1265
1340
|
}>>;
|
|
1341
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1342
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1343
|
+
text: z.ZodString;
|
|
1344
|
+
}, z.core.$strip>>>>;
|
|
1345
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1346
|
+
api: "api";
|
|
1347
|
+
web: "web";
|
|
1348
|
+
}>>;
|
|
1266
1349
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
1267
1350
|
none: "none";
|
|
1268
1351
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -1299,40 +1382,14 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1299
1382
|
}, z.core.$strip>>;
|
|
1300
1383
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1301
1384
|
success: "success";
|
|
1302
|
-
error: "error";
|
|
1303
1385
|
queued: "queued";
|
|
1304
1386
|
"in-progress": "in-progress";
|
|
1305
1387
|
"timed-out": "timed-out";
|
|
1388
|
+
error: "error";
|
|
1306
1389
|
}>>;
|
|
1307
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
1308
|
-
web: "web";
|
|
1309
|
-
api: "api";
|
|
1310
|
-
}>>;
|
|
1311
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1312
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1313
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
1314
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
1315
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1316
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1317
|
-
text: z.ZodString;
|
|
1318
|
-
}, z.core.$strip>>>>;
|
|
1319
1390
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
1320
1391
|
license_id: z.ZodOptional<z.ZodString>;
|
|
1321
1392
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1322
|
-
quest: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1323
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1324
|
-
closable: "closable";
|
|
1325
|
-
continuous: "continuous";
|
|
1326
|
-
}>>>;
|
|
1327
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1328
|
-
open: "open";
|
|
1329
|
-
draft: "draft";
|
|
1330
|
-
closed: "closed";
|
|
1331
|
-
cancelled: "cancelled";
|
|
1332
|
-
}>>>;
|
|
1333
|
-
max_xp_per_contributor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1334
|
-
closed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1335
|
-
}, z.core.$strip>>>;
|
|
1336
1393
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1337
1394
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1338
1395
|
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -1348,17 +1405,32 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1348
1405
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1349
1406
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1350
1407
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1351
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1352
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1353
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1354
|
-
}, z.core.$strip>>>>;
|
|
1355
1408
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
1356
1409
|
asset_type: z.ZodDefault<z.ZodLiteral<"quest">>;
|
|
1357
1410
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
1358
1411
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1359
1412
|
asset_type: "quest";
|
|
1360
1413
|
last_updated: string;
|
|
1414
|
+
quest?: {
|
|
1415
|
+
type?: "closable" | "continuous" | undefined;
|
|
1416
|
+
status?: "open" | "draft" | "closed" | "cancelled" | undefined;
|
|
1417
|
+
max_xp_per_contributor?: number | null | undefined;
|
|
1418
|
+
closed_at?: string | null | undefined;
|
|
1419
|
+
} | undefined;
|
|
1420
|
+
org_id?: string | undefined;
|
|
1421
|
+
parent?: Record<string, any> | undefined;
|
|
1422
|
+
metadata?: {
|
|
1423
|
+
source?: string | null | undefined;
|
|
1424
|
+
reply_to_comment_id?: string | null | undefined;
|
|
1425
|
+
} | null | undefined;
|
|
1426
|
+
name?: string | undefined;
|
|
1427
|
+
team_id?: string | undefined;
|
|
1361
1428
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1429
|
+
description?: {
|
|
1430
|
+
json: Record<string, any>;
|
|
1431
|
+
text: string;
|
|
1432
|
+
} | null | undefined;
|
|
1433
|
+
source?: "api" | "web" | undefined;
|
|
1362
1434
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1363
1435
|
attribution?: {
|
|
1364
1436
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -1379,25 +1451,10 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1379
1451
|
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
1380
1452
|
doi?: string | null | undefined;
|
|
1381
1453
|
} | undefined;
|
|
1382
|
-
state?: "success" | "
|
|
1383
|
-
source?: "web" | "api" | undefined;
|
|
1384
|
-
parent?: Record<string, any> | undefined;
|
|
1385
|
-
name?: string | undefined;
|
|
1386
|
-
org_id?: string | undefined;
|
|
1387
|
-
team_id?: string | undefined;
|
|
1388
|
-
description?: {
|
|
1389
|
-
json: Record<string, any>;
|
|
1390
|
-
text: string;
|
|
1391
|
-
} | null | undefined;
|
|
1454
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
1392
1455
|
parent_id?: string | null | undefined;
|
|
1393
1456
|
license_id?: string | undefined;
|
|
1394
1457
|
license?: Record<string, any> | undefined;
|
|
1395
|
-
quest?: {
|
|
1396
|
-
type?: "closable" | "continuous" | undefined;
|
|
1397
|
-
status?: "open" | "draft" | "closed" | "cancelled" | undefined;
|
|
1398
|
-
max_xp_per_contributor?: number | null | undefined;
|
|
1399
|
-
closed_at?: string | null | undefined;
|
|
1400
|
-
} | undefined;
|
|
1401
1458
|
name_url_slug?: string | null | undefined;
|
|
1402
1459
|
price?: number | null | undefined;
|
|
1403
1460
|
unit_cost?: number | null | undefined;
|
|
@@ -1407,15 +1464,30 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1407
1464
|
stripe_product_id?: string | null | undefined;
|
|
1408
1465
|
stripe_price_id?: string | null | undefined;
|
|
1409
1466
|
stripe_meter_id?: string | null | undefined;
|
|
1410
|
-
metadata?: {
|
|
1411
|
-
source?: string | null | undefined;
|
|
1412
|
-
reply_to_comment_id?: string | null | undefined;
|
|
1413
|
-
} | null | undefined;
|
|
1414
1467
|
preview?: Record<string, any>[] | null | undefined;
|
|
1415
1468
|
}, {
|
|
1416
1469
|
asset_type: "quest";
|
|
1417
1470
|
last_updated: string;
|
|
1471
|
+
quest?: {
|
|
1472
|
+
type?: "closable" | "continuous" | undefined;
|
|
1473
|
+
status?: "open" | "draft" | "closed" | "cancelled" | undefined;
|
|
1474
|
+
max_xp_per_contributor?: number | null | undefined;
|
|
1475
|
+
closed_at?: string | null | undefined;
|
|
1476
|
+
} | undefined;
|
|
1477
|
+
org_id?: string | undefined;
|
|
1478
|
+
parent?: Record<string, any> | undefined;
|
|
1479
|
+
metadata?: {
|
|
1480
|
+
source?: string | null | undefined;
|
|
1481
|
+
reply_to_comment_id?: string | null | undefined;
|
|
1482
|
+
} | null | undefined;
|
|
1483
|
+
name?: string | undefined;
|
|
1484
|
+
team_id?: string | undefined;
|
|
1418
1485
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1486
|
+
description?: {
|
|
1487
|
+
json: Record<string, any>;
|
|
1488
|
+
text: string;
|
|
1489
|
+
} | null | undefined;
|
|
1490
|
+
source?: "api" | "web" | undefined;
|
|
1419
1491
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1420
1492
|
attribution?: {
|
|
1421
1493
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -1436,25 +1508,10 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1436
1508
|
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
1437
1509
|
doi?: string | null | undefined;
|
|
1438
1510
|
} | undefined;
|
|
1439
|
-
state?: "success" | "
|
|
1440
|
-
source?: "web" | "api" | undefined;
|
|
1441
|
-
parent?: Record<string, any> | undefined;
|
|
1442
|
-
name?: string | undefined;
|
|
1443
|
-
org_id?: string | undefined;
|
|
1444
|
-
team_id?: string | undefined;
|
|
1445
|
-
description?: {
|
|
1446
|
-
json: Record<string, any>;
|
|
1447
|
-
text: string;
|
|
1448
|
-
} | null | undefined;
|
|
1511
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
1449
1512
|
parent_id?: string | null | undefined;
|
|
1450
1513
|
license_id?: string | undefined;
|
|
1451
1514
|
license?: Record<string, any> | undefined;
|
|
1452
|
-
quest?: {
|
|
1453
|
-
type?: "closable" | "continuous" | undefined;
|
|
1454
|
-
status?: "open" | "draft" | "closed" | "cancelled" | undefined;
|
|
1455
|
-
max_xp_per_contributor?: number | null | undefined;
|
|
1456
|
-
closed_at?: string | null | undefined;
|
|
1457
|
-
} | undefined;
|
|
1458
1515
|
name_url_slug?: string | null | undefined;
|
|
1459
1516
|
price?: number | null | undefined;
|
|
1460
1517
|
unit_cost?: number | null | undefined;
|
|
@@ -1464,10 +1521,6 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1464
1521
|
stripe_product_id?: string | null | undefined;
|
|
1465
1522
|
stripe_price_id?: string | null | undefined;
|
|
1466
1523
|
stripe_meter_id?: string | null | undefined;
|
|
1467
|
-
metadata?: {
|
|
1468
|
-
source?: string | null | undefined;
|
|
1469
|
-
reply_to_comment_id?: string | null | undefined;
|
|
1470
|
-
} | null | undefined;
|
|
1471
1524
|
preview?: Record<string, any>[] | null | undefined;
|
|
1472
1525
|
}>>;
|
|
1473
1526
|
declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
@@ -1483,10 +1536,10 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
|
1483
1536
|
assignee_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
1484
1537
|
expected_asset_type: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1485
1538
|
user: "user";
|
|
1486
|
-
file: "file";
|
|
1487
1539
|
organization: "organization";
|
|
1488
1540
|
team: "team";
|
|
1489
1541
|
dataset: "dataset";
|
|
1542
|
+
file: "file";
|
|
1490
1543
|
service: "service";
|
|
1491
1544
|
route: "route";
|
|
1492
1545
|
post: "post";
|
|
@@ -1503,12 +1556,18 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
|
1503
1556
|
child_quest_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
1504
1557
|
eval_route_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
1505
1558
|
eval_score_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1559
|
+
eval_categories_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1506
1560
|
eval_pass_min: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1507
1561
|
eval_pass_max: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1562
|
+
leaderboard_enabled: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1563
|
+
leaderboard_order: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1564
|
+
desc: "desc";
|
|
1565
|
+
asc: "asc";
|
|
1566
|
+
}>>>>;
|
|
1508
1567
|
submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1509
1568
|
asset_type: z.ZodEnum<{
|
|
1510
|
-
file: "file";
|
|
1511
1569
|
dataset: "dataset";
|
|
1570
|
+
file: "file";
|
|
1512
1571
|
post: "post";
|
|
1513
1572
|
}>;
|
|
1514
1573
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1528,10 +1587,10 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
|
|
|
1528
1587
|
asset_id: z.ZodUUID;
|
|
1529
1588
|
asset_type: z.ZodEnum<{
|
|
1530
1589
|
user: "user";
|
|
1531
|
-
file: "file";
|
|
1532
1590
|
organization: "organization";
|
|
1533
1591
|
team: "team";
|
|
1534
1592
|
dataset: "dataset";
|
|
1593
|
+
file: "file";
|
|
1535
1594
|
service: "service";
|
|
1536
1595
|
route: "route";
|
|
1537
1596
|
post: "post";
|
|
@@ -1556,10 +1615,10 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
1556
1615
|
asset_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1557
1616
|
asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1558
1617
|
user: "user";
|
|
1559
|
-
file: "file";
|
|
1560
1618
|
organization: "organization";
|
|
1561
1619
|
team: "team";
|
|
1562
1620
|
dataset: "dataset";
|
|
1621
|
+
file: "file";
|
|
1563
1622
|
service: "service";
|
|
1564
1623
|
route: "route";
|
|
1565
1624
|
post: "post";
|
|
@@ -1571,10 +1630,10 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
1571
1630
|
asset_id: z.ZodUUID;
|
|
1572
1631
|
asset_type: z.ZodEnum<{
|
|
1573
1632
|
user: "user";
|
|
1574
|
-
file: "file";
|
|
1575
1633
|
organization: "organization";
|
|
1576
1634
|
team: "team";
|
|
1577
1635
|
dataset: "dataset";
|
|
1636
|
+
file: "file";
|
|
1578
1637
|
service: "service";
|
|
1579
1638
|
route: "route";
|
|
1580
1639
|
post: "post";
|
|
@@ -1606,6 +1665,7 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
1606
1665
|
reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1607
1666
|
eval_action_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1608
1667
|
eval_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1668
|
+
eval_category_scores: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
1609
1669
|
eval_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1610
1670
|
skipped: "skipped";
|
|
1611
1671
|
running: "running";
|
|
@@ -1622,10 +1682,10 @@ declare const CreateEntrySchema: z.ZodObject<{
|
|
|
1622
1682
|
asset_id: z.ZodUUID;
|
|
1623
1683
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
1624
1684
|
user: "user";
|
|
1625
|
-
file: "file";
|
|
1626
1685
|
organization: "organization";
|
|
1627
1686
|
team: "team";
|
|
1628
1687
|
dataset: "dataset";
|
|
1688
|
+
file: "file";
|
|
1629
1689
|
service: "service";
|
|
1630
1690
|
route: "route";
|
|
1631
1691
|
post: "post";
|
|
@@ -1662,6 +1722,7 @@ type QuestItemStatus = z.infer<typeof QuestItemStatusSchema>;
|
|
|
1662
1722
|
type RewardCurrency = z.infer<typeof RewardCurrencySchema>;
|
|
1663
1723
|
type EntryEvalStatus = z.infer<typeof EntryEvalStatusSchema>;
|
|
1664
1724
|
type EntryStatus = z.infer<typeof EntryStatusSchema>;
|
|
1725
|
+
type LeaderboardOrder = z.infer<typeof LeaderboardOrderSchema>;
|
|
1665
1726
|
type Quest = z.infer<typeof QuestSchema>;
|
|
1666
1727
|
type QuestItem = z.infer<typeof QuestItemSchema>;
|
|
1667
1728
|
type CreateQuest = z.infer<typeof CreateQuestSchema>;
|
|
@@ -1672,4 +1733,4 @@ type Entry = z.infer<typeof EntrySchema>;
|
|
|
1672
1733
|
type CreateEntry = z.infer<typeof CreateEntrySchema>;
|
|
1673
1734
|
type ReviewEntry = z.infer<typeof ReviewEntrySchema>;
|
|
1674
1735
|
|
|
1675
|
-
export { type CreateEntry, CreateEntrySchema, type CreateQuest, type CreateQuestItem, CreateQuestItemObjectSchema, CreateQuestItemSchema, CreateQuestSchema, type Entry, type EntryEvalStatus, EntryEvalStatusSchema, EntrySchema, type EntryStatus, EntryStatusSchema, type Quest, type QuestItem, QuestItemBaseSchema, QuestItemSchema, type QuestItemStatus, QuestItemStatusSchema, QuestSchema, type QuestStatus, QuestStatusSchema, type QuestType, QuestTypeSchema, type ReviewEntry, ReviewEntrySchema, type RewardCurrency, RewardCurrencySchema, type UpdateQuest, type UpdateQuestItem, UpdateQuestItemSchema, UpdateQuestSchema };
|
|
1736
|
+
export { type CreateEntry, CreateEntrySchema, type CreateQuest, type CreateQuestItem, CreateQuestItemObjectSchema, CreateQuestItemSchema, CreateQuestSchema, type Entry, type EntryEvalStatus, EntryEvalStatusSchema, EntrySchema, type EntryStatus, EntryStatusSchema, type LeaderboardOrder, LeaderboardOrderSchema, type Quest, type QuestItem, QuestItemBaseSchema, QuestItemSchema, type QuestItemStatus, QuestItemStatusSchema, QuestSchema, type QuestStatus, QuestStatusSchema, type QuestType, QuestTypeSchema, type ReviewEntry, ReviewEntrySchema, type RewardCurrency, RewardCurrencySchema, type UpdateQuest, type UpdateQuestItem, UpdateQuestItemSchema, UpdateQuestSchema };
|