@ourofoundation/ouro-js 3.7.7 → 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.
@@ -34,10 +34,21 @@ 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;
40
- description: z.ZodString;
45
+ description: z.ZodObject<{
46
+ json: z.ZodObject<{
47
+ type: z.ZodLiteral<"doc">;
48
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
49
+ }, z.core.$strip>;
50
+ text: z.ZodString;
51
+ }, z.core.$strip>;
41
52
  status: z.ZodDefault<z.ZodEnum<{
42
53
  pending: "pending";
43
54
  in_progress: "in_progress";
@@ -77,8 +88,14 @@ declare const QuestItemBaseSchema: z.ZodObject<{
77
88
  child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
78
89
  eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
79
90
  eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ eval_categories_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
92
  eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
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
+ }>>>;
82
99
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
83
100
  asset_type: z.ZodEnum<{
84
101
  dataset: "dataset";
@@ -131,7 +148,13 @@ declare const QuestItemBaseSchema: z.ZodObject<{
131
148
  declare const QuestItemSchema: z.ZodObject<{
132
149
  id: z.ZodUUID;
133
150
  quest_id: z.ZodUUID;
134
- description: z.ZodString;
151
+ description: z.ZodObject<{
152
+ json: z.ZodObject<{
153
+ type: z.ZodLiteral<"doc">;
154
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
155
+ }, z.core.$strip>;
156
+ text: z.ZodString;
157
+ }, z.core.$strip>;
135
158
  status: z.ZodDefault<z.ZodEnum<{
136
159
  pending: "pending";
137
160
  in_progress: "in_progress";
@@ -171,8 +194,14 @@ declare const QuestItemSchema: z.ZodObject<{
171
194
  child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
172
195
  eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
173
196
  eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ eval_categories_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
198
  eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
175
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
+ }>>>;
176
205
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
177
206
  asset_type: z.ZodEnum<{
178
207
  dataset: "dataset";
@@ -228,11 +257,18 @@ declare const QuestItemSchema: z.ZodObject<{
228
257
  * `quest_id`, `created_by`, and lifecycle-derived fields
229
258
  * (`auto_skipped`, `status_before_auto_skip`).
230
259
  *
231
- * Accepts a plain description string as a convenience — it's lifted
232
- * into `{ description }` by the `union` below.
260
+ * Accepts a plain description string or TipTap Content as a convenience —
261
+ * a bare string is lifted into `{ description }` by the `union` below.
262
+ * The backend normalizes either shape with `toContentFromMaybeMarkdown`.
233
263
  */
234
264
  declare const CreateQuestItemObjectSchema: z.ZodObject<{
235
- description: z.ZodString;
265
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
266
+ json: z.ZodObject<{
267
+ type: z.ZodLiteral<"doc">;
268
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
269
+ }, z.core.$strip>;
270
+ text: z.ZodString;
271
+ }, z.core.$strip>]>;
236
272
  type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
237
273
  sort_order: z.ZodOptional<z.ZodNumber>;
238
274
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
@@ -258,8 +294,14 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
258
294
  child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
259
295
  eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
260
296
  eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
+ eval_categories_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
298
  eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
262
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
+ }>>>;
263
305
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
264
306
  asset_type: z.ZodEnum<{
265
307
  dataset: "dataset";
@@ -297,10 +339,51 @@ declare const CreateQuestItemObjectSchema: z.ZodObject<{
297
339
  }, z.core.$strip>>>>;
298
340
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
299
341
  }, z.core.$strip>;
300
- declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
301
- description: string;
342
+ declare const CreateQuestItemSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
343
+ description: string | {
344
+ json: {
345
+ type: "doc";
346
+ content: any[];
347
+ };
348
+ text: string;
349
+ };
350
+ type: string;
351
+ reward_xp: number;
352
+ reward_currency: "usd" | "btc";
353
+ reward_amount: number;
354
+ leaderboard_enabled: boolean;
355
+ leaderboard_order: "desc" | "asc";
356
+ sort_order?: number | undefined;
357
+ assignee_id?: string | null | undefined;
358
+ expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
359
+ child_quest_id?: string | null | undefined;
360
+ eval_route_id?: string | null | undefined;
361
+ eval_score_path?: string | null | undefined;
362
+ eval_categories_path?: string | null | undefined;
363
+ eval_pass_min?: number | null | undefined;
364
+ eval_pass_max?: number | null | undefined;
365
+ submission_assets?: Record<string, {
366
+ [x: string]: any;
367
+ asset_type: "dataset" | "file" | "post";
368
+ required: boolean;
369
+ primary?: boolean | undefined;
370
+ input_filter?: "image" | "video" | "audio" | "pdf" | "3d model" | "atomic structure" | null | undefined;
371
+ file_extensions?: string[] | null | undefined;
372
+ contains_file_extensions?: string[] | null | undefined;
373
+ }> | null | undefined;
374
+ eval_static_inputs?: Record<string, {
375
+ asset_id: string;
376
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
377
+ }> | null | undefined;
378
+ notes?: string | null | undefined;
302
379
  }, string>>, z.ZodObject<{
303
- description: z.ZodString;
380
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
381
+ json: z.ZodObject<{
382
+ type: z.ZodLiteral<"doc">;
383
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
384
+ }, z.core.$strip>;
385
+ text: z.ZodString;
386
+ }, z.core.$strip>]>;
304
387
  type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
305
388
  sort_order: z.ZodOptional<z.ZodNumber>;
306
389
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
@@ -326,73 +409,14 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
326
409
  child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
327
410
  eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
328
411
  eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ eval_categories_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
413
  eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
330
414
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
331
- submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
332
- asset_type: z.ZodEnum<{
333
- dataset: "dataset";
334
- file: "file";
335
- post: "post";
336
- }>;
337
- primary: z.ZodOptional<z.ZodBoolean>;
338
- input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
339
- image: "image";
340
- video: "video";
341
- audio: "audio";
342
- pdf: "pdf";
343
- "3d model": "3d model";
344
- "atomic structure": "atomic structure";
345
- }>>>;
346
- file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
347
- contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
348
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
349
- }, z.core.$catchall<z.ZodAny>>>>>;
350
- eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
351
- asset_id: z.ZodUUID;
352
- asset_type: z.ZodEnum<{
353
- user: "user";
354
- organization: "organization";
355
- team: "team";
356
- dataset: "dataset";
357
- file: "file";
358
- service: "service";
359
- route: "route";
360
- post: "post";
361
- quest: "quest";
362
- comment: "comment";
363
- conversation: "conversation";
364
- }>;
365
- }, z.core.$strip>>>>;
366
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
367
- }, z.core.$strip>]>, z.ZodObject<{
368
- description: z.ZodString;
369
- type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
370
- sort_order: z.ZodOptional<z.ZodNumber>;
371
- assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
372
- expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
373
- user: "user";
374
- organization: "organization";
375
- team: "team";
376
- dataset: "dataset";
377
- file: "file";
378
- service: "service";
379
- route: "route";
380
- post: "post";
381
- quest: "quest";
382
- comment: "comment";
383
- conversation: "conversation";
384
- }>>>;
385
- reward_xp: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
386
- reward_currency: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
387
- usd: "usd";
388
- btc: "btc";
415
+ leaderboard_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
416
+ leaderboard_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
417
+ desc: "desc";
418
+ asc: "asc";
389
419
  }>>>;
390
- reward_amount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
391
- child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
392
- eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
393
- eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
394
- eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
395
- eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
396
420
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
397
421
  asset_type: z.ZodEnum<{
398
422
  dataset: "dataset";
@@ -429,7 +453,7 @@ declare const CreateQuestItemSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.
429
453
  }>;
430
454
  }, z.core.$strip>>>>;
431
455
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
- }, z.core.$strip>>;
456
+ }, z.core.$strip>]>;
433
457
  declare const QuestSchema: z.ZodObject<{
434
458
  id: z.ZodUUID;
435
459
  user_id: z.ZodUUID;
@@ -707,7 +731,13 @@ declare const QuestSchema: z.ZodObject<{
707
731
  items: z.ZodOptional<z.ZodArray<z.ZodObject<{
708
732
  id: z.ZodOptional<z.ZodUUID>;
709
733
  quest_id: z.ZodOptional<z.ZodUUID>;
710
- description: z.ZodOptional<z.ZodString>;
734
+ description: z.ZodOptional<z.ZodObject<{
735
+ json: z.ZodObject<{
736
+ type: z.ZodLiteral<"doc">;
737
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
738
+ }, z.core.$strip>;
739
+ text: z.ZodString;
740
+ }, z.core.$strip>>;
711
741
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
712
742
  pending: "pending";
713
743
  in_progress: "in_progress";
@@ -747,8 +777,14 @@ declare const QuestSchema: z.ZodObject<{
747
777
  child_quest_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
748
778
  eval_route_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
749
779
  eval_score_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
780
+ eval_categories_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
750
781
  eval_pass_min: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
751
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
+ }>>>>;
752
788
  submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
753
789
  asset_type: z.ZodEnum<{
754
790
  dataset: "dataset";
@@ -822,10 +858,10 @@ declare const QuestSchema: z.ZodObject<{
822
858
  * `CreatePostSchema` defaults `org_id`/`team_id` so non-frontend callers
823
859
  * don't have to know about `GLOBAL_ORG_ID`.
824
860
  *
825
- * The `items` field accepts either plain strings or full item objects —
826
- * the backend `createQuestItems`/`createQuest` paths already handle both
827
- * shapes, and `CreateQuestItemSchema` normalizes strings into
828
- * `{ description }`.
861
+ * The `items` field accepts either plain strings, TipTap Content objects, or
862
+ * full item objects — the backend `createQuestItems`/`createQuest` paths
863
+ * already handle both shapes, and `CreateQuestItemSchema` normalizes strings
864
+ * into `{ description }`.
829
865
  */
830
866
  declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
831
867
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -964,10 +1000,51 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
964
1000
  cancelled: "cancelled";
965
1001
  }>>;
966
1002
  max_xp_per_contributor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
967
- items: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
968
- description: string;
1003
+ items: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
1004
+ description: string | {
1005
+ json: {
1006
+ type: "doc";
1007
+ content: any[];
1008
+ };
1009
+ text: string;
1010
+ };
1011
+ type: string;
1012
+ reward_xp: number;
1013
+ reward_currency: "usd" | "btc";
1014
+ reward_amount: number;
1015
+ leaderboard_enabled: boolean;
1016
+ leaderboard_order: "desc" | "asc";
1017
+ sort_order?: number | undefined;
1018
+ assignee_id?: string | null | undefined;
1019
+ expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1020
+ child_quest_id?: string | null | undefined;
1021
+ eval_route_id?: string | null | undefined;
1022
+ eval_score_path?: string | null | undefined;
1023
+ eval_categories_path?: string | null | undefined;
1024
+ eval_pass_min?: number | null | undefined;
1025
+ eval_pass_max?: number | null | undefined;
1026
+ submission_assets?: Record<string, {
1027
+ [x: string]: any;
1028
+ asset_type: "dataset" | "file" | "post";
1029
+ required: boolean;
1030
+ primary?: boolean | undefined;
1031
+ input_filter?: "image" | "video" | "audio" | "pdf" | "3d model" | "atomic structure" | null | undefined;
1032
+ file_extensions?: string[] | null | undefined;
1033
+ contains_file_extensions?: string[] | null | undefined;
1034
+ }> | null | undefined;
1035
+ eval_static_inputs?: Record<string, {
1036
+ asset_id: string;
1037
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
1038
+ }> | null | undefined;
1039
+ notes?: string | null | undefined;
969
1040
  }, string>>, z.ZodObject<{
970
- description: z.ZodString;
1041
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1042
+ json: z.ZodObject<{
1043
+ type: z.ZodLiteral<"doc">;
1044
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1045
+ }, z.core.$strip>;
1046
+ text: z.ZodString;
1047
+ }, z.core.$strip>]>;
971
1048
  type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
972
1049
  sort_order: z.ZodOptional<z.ZodNumber>;
973
1050
  assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
@@ -993,73 +1070,14 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
993
1070
  child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
994
1071
  eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
995
1072
  eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1073
+ eval_categories_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
996
1074
  eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
997
1075
  eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
998
- submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
999
- asset_type: z.ZodEnum<{
1000
- dataset: "dataset";
1001
- file: "file";
1002
- post: "post";
1003
- }>;
1004
- primary: z.ZodOptional<z.ZodBoolean>;
1005
- input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1006
- image: "image";
1007
- video: "video";
1008
- audio: "audio";
1009
- pdf: "pdf";
1010
- "3d model": "3d model";
1011
- "atomic structure": "atomic structure";
1012
- }>>>;
1013
- file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1014
- contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1015
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1016
- }, z.core.$catchall<z.ZodAny>>>>>;
1017
- eval_static_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1018
- asset_id: z.ZodUUID;
1019
- asset_type: z.ZodEnum<{
1020
- user: "user";
1021
- organization: "organization";
1022
- team: "team";
1023
- dataset: "dataset";
1024
- file: "file";
1025
- service: "service";
1026
- route: "route";
1027
- post: "post";
1028
- quest: "quest";
1029
- comment: "comment";
1030
- conversation: "conversation";
1031
- }>;
1032
- }, z.core.$strip>>>>;
1033
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1034
- }, z.core.$strip>]>, z.ZodObject<{
1035
- description: z.ZodString;
1036
- type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1037
- sort_order: z.ZodOptional<z.ZodNumber>;
1038
- assignee_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1039
- expected_asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1040
- user: "user";
1041
- organization: "organization";
1042
- team: "team";
1043
- dataset: "dataset";
1044
- file: "file";
1045
- service: "service";
1046
- route: "route";
1047
- post: "post";
1048
- quest: "quest";
1049
- comment: "comment";
1050
- conversation: "conversation";
1051
- }>>>;
1052
- reward_xp: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1053
- reward_currency: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1054
- usd: "usd";
1055
- btc: "btc";
1076
+ leaderboard_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1077
+ leaderboard_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1078
+ desc: "desc";
1079
+ asc: "asc";
1056
1080
  }>>>;
1057
- reward_amount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1058
- child_quest_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1059
- eval_route_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1060
- eval_score_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1061
- eval_pass_min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1062
- eval_pass_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1063
1081
  submission_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1064
1082
  asset_type: z.ZodEnum<{
1065
1083
  dataset: "dataset";
@@ -1096,7 +1114,7 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1096
1114
  }>;
1097
1115
  }, z.core.$strip>>>>;
1098
1116
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
- }, z.core.$strip>>>>>;
1117
+ }, z.core.$strip>]>>>>;
1100
1118
  }, z.core.$strip>, z.ZodTransform<{
1101
1119
  id: string;
1102
1120
  team_id: string | null;
@@ -1130,17 +1148,26 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1130
1148
  type: "closable" | "continuous";
1131
1149
  status: "open" | "draft" | "closed" | "cancelled";
1132
1150
  items: {
1133
- description: string;
1151
+ description: string | {
1152
+ json: {
1153
+ type: "doc";
1154
+ content: any[];
1155
+ };
1156
+ text: string;
1157
+ };
1134
1158
  type: string;
1135
1159
  reward_xp: number;
1136
1160
  reward_currency: "usd" | "btc";
1137
1161
  reward_amount: number;
1162
+ leaderboard_enabled: boolean;
1163
+ leaderboard_order: "desc" | "asc";
1138
1164
  sort_order?: number | undefined;
1139
1165
  assignee_id?: string | null | undefined;
1140
1166
  expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1141
1167
  child_quest_id?: string | null | undefined;
1142
1168
  eval_route_id?: string | null | undefined;
1143
1169
  eval_score_path?: string | null | undefined;
1170
+ eval_categories_path?: string | null | undefined;
1144
1171
  eval_pass_min?: number | null | undefined;
1145
1172
  eval_pass_max?: number | null | undefined;
1146
1173
  submission_assets?: Record<string, {
@@ -1217,17 +1244,26 @@ declare const CreateQuestSchema: z.ZodPipe<z.ZodObject<{
1217
1244
  type: "closable" | "continuous";
1218
1245
  status: "open" | "draft" | "closed" | "cancelled";
1219
1246
  items: {
1220
- description: string;
1247
+ description: string | {
1248
+ json: {
1249
+ type: "doc";
1250
+ content: any[];
1251
+ };
1252
+ text: string;
1253
+ };
1221
1254
  type: string;
1222
1255
  reward_xp: number;
1223
1256
  reward_currency: "usd" | "btc";
1224
1257
  reward_amount: number;
1258
+ leaderboard_enabled: boolean;
1259
+ leaderboard_order: "desc" | "asc";
1225
1260
  sort_order?: number | undefined;
1226
1261
  assignee_id?: string | null | undefined;
1227
1262
  expected_asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | null | undefined;
1228
1263
  child_quest_id?: string | null | undefined;
1229
1264
  eval_route_id?: string | null | undefined;
1230
1265
  eval_score_path?: string | null | undefined;
1266
+ eval_categories_path?: string | null | undefined;
1231
1267
  eval_pass_min?: number | null | undefined;
1232
1268
  eval_pass_max?: number | null | undefined;
1233
1269
  submission_assets?: Record<string, {
@@ -1488,7 +1524,13 @@ declare const UpdateQuestSchema: z.ZodPipe<z.ZodObject<{
1488
1524
  preview?: Record<string, any>[] | null | undefined;
1489
1525
  }>>;
1490
1526
  declare const UpdateQuestItemSchema: z.ZodObject<{
1491
- description: z.ZodOptional<z.ZodString>;
1527
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1528
+ json: z.ZodObject<{
1529
+ type: z.ZodLiteral<"doc">;
1530
+ content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1531
+ }, z.core.$strip>;
1532
+ text: z.ZodString;
1533
+ }, z.core.$strip>]>>;
1492
1534
  type: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
1493
1535
  sort_order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1494
1536
  assignee_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
@@ -1514,8 +1556,14 @@ declare const UpdateQuestItemSchema: z.ZodObject<{
1514
1556
  child_quest_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
1515
1557
  eval_route_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
1516
1558
  eval_score_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1559
+ eval_categories_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1517
1560
  eval_pass_min: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1518
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
+ }>>>>;
1519
1567
  submission_assets: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1520
1568
  asset_type: z.ZodEnum<{
1521
1569
  dataset: "dataset";
@@ -1617,6 +1665,7 @@ declare const EntrySchema: z.ZodObject<{
1617
1665
  reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1618
1666
  eval_action_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1619
1667
  eval_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1668
+ eval_category_scores: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
1620
1669
  eval_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1621
1670
  skipped: "skipped";
1622
1671
  running: "running";
@@ -1673,6 +1722,7 @@ type QuestItemStatus = z.infer<typeof QuestItemStatusSchema>;
1673
1722
  type RewardCurrency = z.infer<typeof RewardCurrencySchema>;
1674
1723
  type EntryEvalStatus = z.infer<typeof EntryEvalStatusSchema>;
1675
1724
  type EntryStatus = z.infer<typeof EntryStatusSchema>;
1725
+ type LeaderboardOrder = z.infer<typeof LeaderboardOrderSchema>;
1676
1726
  type Quest = z.infer<typeof QuestSchema>;
1677
1727
  type QuestItem = z.infer<typeof QuestItemSchema>;
1678
1728
  type CreateQuest = z.infer<typeof CreateQuestSchema>;
@@ -1683,4 +1733,4 @@ type Entry = z.infer<typeof EntrySchema>;
1683
1733
  type CreateEntry = z.infer<typeof CreateEntrySchema>;
1684
1734
  type ReviewEntry = z.infer<typeof ReviewEntrySchema>;
1685
1735
 
1686
- 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 };