@ourofoundation/ouro-js 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/chunk-7F26V24D.js +2 -0
  2. package/dist/chunk-7F26V24D.js.map +1 -0
  3. package/dist/chunk-CONKY65O.cjs +2 -0
  4. package/dist/chunk-CONKY65O.cjs.map +1 -0
  5. package/dist/chunk-JKTQY4RU.js +2 -0
  6. package/dist/chunk-JKTQY4RU.js.map +1 -0
  7. package/dist/chunk-JW7FACNZ.cjs +2 -0
  8. package/dist/chunk-JW7FACNZ.cjs.map +1 -0
  9. package/dist/chunk-XWXLCG4E.cjs +2 -0
  10. package/dist/chunk-XWXLCG4E.cjs.map +1 -0
  11. package/dist/chunk-Z3ALIFYO.js +2 -0
  12. package/dist/chunk-Z3ALIFYO.js.map +1 -0
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.d.cts +3 -1
  15. package/dist/index.d.ts +3 -1
  16. package/dist/index.js +1 -1
  17. package/dist/schema/assets.d.cts +84 -84
  18. package/dist/schema/assets.d.ts +84 -84
  19. package/dist/schema/comments.d.cts +136 -136
  20. package/dist/schema/comments.d.ts +136 -136
  21. package/dist/schema/common.d.cts +16 -16
  22. package/dist/schema/common.d.ts +16 -16
  23. package/dist/schema/conversations.d.cts +69 -69
  24. package/dist/schema/conversations.d.ts +69 -69
  25. package/dist/schema/datasets.d.cts +106 -106
  26. package/dist/schema/datasets.d.ts +106 -106
  27. package/dist/schema/files.d.cts +100 -100
  28. package/dist/schema/files.d.ts +100 -100
  29. package/dist/schema/notifications.d.cts +2 -2
  30. package/dist/schema/notifications.d.ts +2 -2
  31. package/dist/schema/organizations.d.cts +1 -1
  32. package/dist/schema/organizations.d.ts +1 -1
  33. package/dist/schema/posts.d.cts +127 -127
  34. package/dist/schema/posts.d.ts +127 -127
  35. package/dist/schema/quests.cjs +2 -0
  36. package/dist/schema/quests.cjs.map +1 -0
  37. package/dist/schema/quests.d.cts +1517 -0
  38. package/dist/schema/quests.d.ts +1517 -0
  39. package/dist/schema/quests.js +2 -0
  40. package/dist/schema/quests.js.map +1 -0
  41. package/dist/schema/services.cjs +1 -1
  42. package/dist/schema/services.d.cts +275 -124
  43. package/dist/schema/services.d.ts +275 -124
  44. package/dist/schema/services.js +1 -1
  45. package/dist/schema/tags.d.cts +7 -7
  46. package/dist/schema/tags.d.ts +7 -7
  47. package/dist/schema/teams.d.cts +18 -18
  48. package/dist/schema/teams.d.ts +18 -18
  49. package/dist/utils/quest-submission.cjs +2 -0
  50. package/dist/utils/quest-submission.cjs.map +1 -0
  51. package/dist/utils/quest-submission.d.cts +134 -0
  52. package/dist/utils/quest-submission.d.ts +134 -0
  53. package/dist/utils/quest-submission.js +2 -0
  54. package/dist/utils/quest-submission.js.map +1 -0
  55. package/package.json +1 -1
  56. package/dist/chunk-42EQ7ULD.cjs +0 -2
  57. package/dist/chunk-42EQ7ULD.cjs.map +0 -1
  58. package/dist/chunk-FDKZIS34.js +0 -2
  59. package/dist/chunk-FDKZIS34.js.map +0 -1
@@ -119,9 +119,9 @@ declare const PostSchema: z.ZodObject<{
119
119
  none: "none";
120
120
  }>>;
121
121
  visibility: z.ZodOptional<z.ZodEnum<{
122
+ organization: "organization";
122
123
  public: "public";
123
124
  private: "private";
124
- organization: "organization";
125
125
  monetized: "monetized";
126
126
  inherit: "inherit";
127
127
  }>>;
@@ -192,9 +192,9 @@ declare const PostSchema: z.ZodObject<{
192
192
  text: z.ZodString;
193
193
  }, z.core.$strip>>>;
194
194
  visibility: z.ZodEnum<{
195
+ organization: "organization";
195
196
  public: "public";
196
197
  private: "private";
197
- organization: "organization";
198
198
  monetized: "monetized";
199
199
  inherit: "inherit";
200
200
  }>;
@@ -219,24 +219,24 @@ declare const PostSchema: z.ZodObject<{
219
219
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
220
  state: z.ZodEnum<{
221
221
  success: "success";
222
- error: "error";
223
222
  queued: "queued";
224
223
  "in-progress": "in-progress";
225
224
  "timed-out": "timed-out";
225
+ error: "error";
226
226
  }>;
227
227
  source: z.ZodEnum<{
228
- web: "web";
229
228
  api: "api";
229
+ web: "web";
230
230
  }>;
231
231
  created_at: z.ZodString;
232
232
  last_updated: z.ZodString;
233
233
  name: z.ZodNullable<z.ZodString>;
234
234
  asset_type: z.ZodEnum<{
235
- organization: "organization";
236
- file: "file";
237
235
  user: "user";
236
+ organization: "organization";
238
237
  team: "team";
239
238
  dataset: "dataset";
239
+ file: "file";
240
240
  service: "service";
241
241
  route: "route";
242
242
  post: "post";
@@ -271,15 +271,28 @@ declare const PostSchema: z.ZodObject<{
271
271
  }, z.core.$strip>;
272
272
  declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
273
273
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
274
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
275
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
+ originality: z.ZodEnum<{
280
+ original: "original";
281
+ derivative: "derivative";
282
+ "third-party": "third-party";
283
+ }>;
284
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
286
+ }, z.core.$strip>>>>;
287
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
288
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
289
+ text: z.ZodString;
290
+ }, z.core.$strip>>>>;
274
291
  monetization: z.ZodOptional<z.ZodEnum<{
275
292
  none: "none";
276
293
  "pay-to-unlock": "pay-to-unlock";
277
294
  "pay-per-use": "pay-per-use";
278
295
  }>>;
279
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
280
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
281
- text: z.ZodString;
282
- }, z.core.$strip>>>>;
283
296
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
284
297
  license_id: z.ZodOptional<z.ZodString>;
285
298
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -296,38 +309,25 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
296
309
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
297
310
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
298
311
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
299
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
300
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
- originality: z.ZodEnum<{
305
- original: "original";
306
- derivative: "derivative";
307
- "third-party": "third-party";
308
- }>;
309
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
- }, z.core.$strip>>>>;
312
312
  id: z.ZodDefault<z.ZodUUID>;
313
313
  team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
314
314
  org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
315
315
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
316
316
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
317
317
  success: "success";
318
- error: "error";
319
318
  queued: "queued";
320
319
  "in-progress": "in-progress";
321
320
  "timed-out": "timed-out";
321
+ error: "error";
322
322
  }>>>;
323
323
  source: z.ZodDefault<z.ZodEnum<{
324
- web: "web";
325
324
  api: "api";
325
+ web: "web";
326
326
  }>>;
327
327
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
328
+ organization: "organization";
328
329
  public: "public";
329
330
  private: "private";
330
- organization: "organization";
331
331
  monetized: "monetized";
332
332
  inherit: "inherit";
333
333
  }>>>;
@@ -343,9 +343,9 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
343
343
  id: string;
344
344
  team_id: string | null;
345
345
  org_id: string | null;
346
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
347
- source: "web" | "api";
348
- visibility: "public" | "private" | "organization" | "monetized" | "inherit";
346
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
347
+ source: "api" | "web";
348
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
349
349
  created_at: string;
350
350
  last_updated: string;
351
351
  asset_type: "post";
@@ -355,11 +355,20 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
355
355
  content: any[];
356
356
  };
357
357
  parent?: Record<string, any> | undefined;
358
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
358
+ metadata?: {
359
+ originality: "original" | "derivative" | "third-party";
360
+ doi_url?: string | null | undefined;
361
+ external_url?: string | null | undefined;
362
+ paper_url?: string | null | undefined;
363
+ github_url?: string | null | undefined;
364
+ source?: string | null | undefined;
365
+ reply_to_comment_id?: string | null | undefined;
366
+ } | null | undefined;
359
367
  description?: {
360
368
  json: Record<string, any>;
361
369
  text: string;
362
370
  } | null | undefined;
371
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
363
372
  parent_id?: string | null | undefined;
364
373
  license_id?: string | undefined;
365
374
  price?: number | null | undefined;
@@ -370,23 +379,14 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
370
379
  stripe_product_id?: string | null | undefined;
371
380
  stripe_price_id?: string | null | undefined;
372
381
  stripe_meter_id?: string | null | undefined;
373
- metadata?: {
374
- originality: "original" | "derivative" | "third-party";
375
- doi_url?: string | null | undefined;
376
- external_url?: string | null | undefined;
377
- paper_url?: string | null | undefined;
378
- github_url?: string | null | undefined;
379
- source?: string | null | undefined;
380
- reply_to_comment_id?: string | null | undefined;
381
- } | null | undefined;
382
382
  name_url_slug?: string | null | undefined;
383
383
  }, {
384
384
  id: string;
385
385
  team_id: string | null;
386
386
  org_id: string | null;
387
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
388
- source: "web" | "api";
389
- visibility: "public" | "private" | "organization" | "monetized" | "inherit";
387
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
388
+ source: "api" | "web";
389
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
390
390
  created_at: string;
391
391
  last_updated: string;
392
392
  asset_type: "post";
@@ -396,11 +396,20 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
396
396
  content: any[];
397
397
  };
398
398
  parent?: Record<string, any> | undefined;
399
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
399
+ metadata?: {
400
+ originality: "original" | "derivative" | "third-party";
401
+ doi_url?: string | null | undefined;
402
+ external_url?: string | null | undefined;
403
+ paper_url?: string | null | undefined;
404
+ github_url?: string | null | undefined;
405
+ source?: string | null | undefined;
406
+ reply_to_comment_id?: string | null | undefined;
407
+ } | null | undefined;
400
408
  description?: {
401
409
  json: Record<string, any>;
402
410
  text: string;
403
411
  } | null | undefined;
412
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
404
413
  parent_id?: string | null | undefined;
405
414
  license_id?: string | undefined;
406
415
  price?: number | null | undefined;
@@ -411,15 +420,6 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
411
420
  stripe_product_id?: string | null | undefined;
412
421
  stripe_price_id?: string | null | undefined;
413
422
  stripe_meter_id?: string | null | undefined;
414
- metadata?: {
415
- originality: "original" | "derivative" | "third-party";
416
- doi_url?: string | null | undefined;
417
- external_url?: string | null | undefined;
418
- paper_url?: string | null | undefined;
419
- github_url?: string | null | undefined;
420
- source?: string | null | undefined;
421
- reply_to_comment_id?: string | null | undefined;
422
- } | null | undefined;
423
423
  name_url_slug?: string | null | undefined;
424
424
  }>>;
425
425
  declare const ReadPostSchema: z.ZodObject<{
@@ -530,9 +530,9 @@ declare const ReadPostSchema: z.ZodObject<{
530
530
  none: "none";
531
531
  }>>;
532
532
  visibility: z.ZodOptional<z.ZodEnum<{
533
+ organization: "organization";
533
534
  public: "public";
534
535
  private: "private";
535
- organization: "organization";
536
536
  monetized: "monetized";
537
537
  inherit: "inherit";
538
538
  }>>;
@@ -603,9 +603,9 @@ declare const ReadPostSchema: z.ZodObject<{
603
603
  text: z.ZodString;
604
604
  }, z.core.$strip>>>;
605
605
  visibility: z.ZodEnum<{
606
+ organization: "organization";
606
607
  public: "public";
607
608
  private: "private";
608
- organization: "organization";
609
609
  monetized: "monetized";
610
610
  inherit: "inherit";
611
611
  }>;
@@ -630,24 +630,24 @@ declare const ReadPostSchema: z.ZodObject<{
630
630
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
631
  state: z.ZodEnum<{
632
632
  success: "success";
633
- error: "error";
634
633
  queued: "queued";
635
634
  "in-progress": "in-progress";
636
635
  "timed-out": "timed-out";
636
+ error: "error";
637
637
  }>;
638
638
  source: z.ZodEnum<{
639
- web: "web";
640
639
  api: "api";
640
+ web: "web";
641
641
  }>;
642
642
  created_at: z.ZodString;
643
643
  last_updated: z.ZodString;
644
644
  name: z.ZodNullable<z.ZodString>;
645
645
  asset_type: z.ZodEnum<{
646
- organization: "organization";
647
- file: "file";
648
646
  user: "user";
647
+ organization: "organization";
649
648
  team: "team";
650
649
  dataset: "dataset";
650
+ file: "file";
651
651
  service: "service";
652
652
  route: "route";
653
653
  post: "post";
@@ -792,9 +792,9 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
792
792
  none: "none";
793
793
  }>>;
794
794
  visibility: z.ZodOptional<z.ZodEnum<{
795
+ organization: "organization";
795
796
  public: "public";
796
797
  private: "private";
797
- organization: "organization";
798
798
  monetized: "monetized";
799
799
  inherit: "inherit";
800
800
  }>>;
@@ -865,9 +865,9 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
865
865
  text: z.ZodString;
866
866
  }, z.core.$strip>>>;
867
867
  visibility: z.ZodEnum<{
868
+ organization: "organization";
868
869
  public: "public";
869
870
  private: "private";
870
- organization: "organization";
871
871
  monetized: "monetized";
872
872
  inherit: "inherit";
873
873
  }>;
@@ -892,24 +892,24 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
892
892
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
893
893
  state: z.ZodEnum<{
894
894
  success: "success";
895
- error: "error";
896
895
  queued: "queued";
897
896
  "in-progress": "in-progress";
898
897
  "timed-out": "timed-out";
898
+ error: "error";
899
899
  }>;
900
900
  source: z.ZodEnum<{
901
- web: "web";
902
901
  api: "api";
902
+ web: "web";
903
903
  }>;
904
904
  created_at: z.ZodString;
905
905
  last_updated: z.ZodString;
906
906
  name: z.ZodNullable<z.ZodString>;
907
907
  asset_type: z.ZodEnum<{
908
- organization: "organization";
909
- file: "file";
910
908
  user: "user";
909
+ organization: "organization";
911
910
  team: "team";
912
911
  dataset: "dataset";
912
+ file: "file";
913
913
  service: "service";
914
914
  route: "route";
915
915
  post: "post";
@@ -1054,9 +1054,9 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1054
1054
  none: "none";
1055
1055
  }>>;
1056
1056
  visibility: z.ZodOptional<z.ZodEnum<{
1057
+ organization: "organization";
1057
1058
  public: "public";
1058
1059
  private: "private";
1059
- organization: "organization";
1060
1060
  monetized: "monetized";
1061
1061
  inherit: "inherit";
1062
1062
  }>>;
@@ -1127,9 +1127,9 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1127
1127
  text: z.ZodString;
1128
1128
  }, z.core.$strip>>>;
1129
1129
  visibility: z.ZodEnum<{
1130
+ organization: "organization";
1130
1131
  public: "public";
1131
1132
  private: "private";
1132
- organization: "organization";
1133
1133
  monetized: "monetized";
1134
1134
  inherit: "inherit";
1135
1135
  }>;
@@ -1154,24 +1154,24 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1154
1154
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1155
1155
  state: z.ZodEnum<{
1156
1156
  success: "success";
1157
- error: "error";
1158
1157
  queued: "queued";
1159
1158
  "in-progress": "in-progress";
1160
1159
  "timed-out": "timed-out";
1160
+ error: "error";
1161
1161
  }>;
1162
1162
  source: z.ZodEnum<{
1163
- web: "web";
1164
1163
  api: "api";
1164
+ web: "web";
1165
1165
  }>;
1166
1166
  created_at: z.ZodString;
1167
1167
  last_updated: z.ZodString;
1168
1168
  name: z.ZodNullable<z.ZodString>;
1169
1169
  asset_type: z.ZodEnum<{
1170
- organization: "organization";
1171
- file: "file";
1172
1170
  user: "user";
1171
+ organization: "organization";
1173
1172
  team: "team";
1174
1173
  dataset: "dataset";
1174
+ file: "file";
1175
1175
  service: "service";
1176
1176
  route: "route";
1177
1177
  post: "post";
@@ -1205,17 +1205,12 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1205
1205
  }, z.core.$strip>>;
1206
1206
  }, z.core.$strip>>;
1207
1207
  declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1208
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1209
- source: z.ZodOptional<z.ZodEnum<{
1210
- web: "web";
1211
- api: "api";
1212
- }>>;
1213
1208
  asset_type: z.ZodOptional<z.ZodEnum<{
1214
- organization: "organization";
1215
- file: "file";
1216
1209
  user: "user";
1210
+ organization: "organization";
1217
1211
  team: "team";
1218
1212
  dataset: "dataset";
1213
+ file: "file";
1219
1214
  service: "service";
1220
1215
  route: "route";
1221
1216
  post: "post";
@@ -1223,13 +1218,38 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1223
1218
  comment: "comment";
1224
1219
  conversation: "conversation";
1225
1220
  }>>;
1221
+ org_id: z.ZodOptional<z.ZodUUID>;
1222
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1223
+ metadata: z.ZodOptional<z.ZodObject<{
1224
+ doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1225
+ external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1226
+ paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1227
+ github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1228
+ originality: z.ZodOptional<z.ZodEnum<{
1229
+ original: "original";
1230
+ derivative: "derivative";
1231
+ "third-party": "third-party";
1232
+ }>>;
1233
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1234
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1235
+ }, z.core.$strip>>;
1236
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1237
+ team_id: z.ZodOptional<z.ZodUUID>;
1226
1238
  visibility: z.ZodOptional<z.ZodEnum<{
1239
+ organization: "organization";
1227
1240
  public: "public";
1228
1241
  private: "private";
1229
- organization: "organization";
1230
1242
  monetized: "monetized";
1231
1243
  inherit: "inherit";
1232
1244
  }>>;
1245
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1246
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
1247
+ text: z.ZodString;
1248
+ }, z.core.$strip>>>>;
1249
+ source: z.ZodOptional<z.ZodEnum<{
1250
+ api: "api";
1251
+ web: "web";
1252
+ }>>;
1233
1253
  monetization: z.ZodOptional<z.ZodEnum<{
1234
1254
  none: "none";
1235
1255
  "pay-to-unlock": "pay-to-unlock";
@@ -1237,18 +1257,11 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1237
1257
  }>>;
1238
1258
  state: z.ZodOptional<z.ZodEnum<{
1239
1259
  success: "success";
1240
- error: "error";
1241
1260
  queued: "queued";
1242
1261
  "in-progress": "in-progress";
1243
1262
  "timed-out": "timed-out";
1263
+ error: "error";
1244
1264
  }>>;
1245
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1246
- org_id: z.ZodOptional<z.ZodUUID>;
1247
- team_id: z.ZodOptional<z.ZodUUID>;
1248
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1249
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
1250
- text: z.ZodString;
1251
- }, z.core.$strip>>>>;
1252
1265
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
1253
1266
  license_id: z.ZodOptional<z.ZodString>;
1254
1267
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -1267,19 +1280,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1267
1280
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1268
1281
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1269
1282
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1270
- metadata: z.ZodOptional<z.ZodObject<{
1271
- doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1272
- external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1273
- paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1274
- github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1275
- originality: z.ZodOptional<z.ZodEnum<{
1276
- original: "original";
1277
- derivative: "derivative";
1278
- "third-party": "third-party";
1279
- }>>;
1280
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1281
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1282
- }, z.core.$strip>>;
1283
1283
  preview: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1284
1284
  type: z.ZodLiteral<"doc">;
1285
1285
  content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
@@ -1287,19 +1287,28 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1287
1287
  last_updated: z.ZodDefault<z.ZodString>;
1288
1288
  }, z.core.$strip>, z.ZodTransform<{
1289
1289
  last_updated: string;
1290
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1291
+ org_id?: string | undefined;
1290
1292
  parent?: Record<string, any> | undefined;
1291
- source?: "web" | "api" | undefined;
1292
- asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1293
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
1294
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1295
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1293
+ metadata?: {
1294
+ doi_url?: string | null | undefined;
1295
+ external_url?: string | null | undefined;
1296
+ paper_url?: string | null | undefined;
1297
+ github_url?: string | null | undefined;
1298
+ originality?: "original" | "derivative" | "third-party" | undefined;
1299
+ source?: string | null | undefined;
1300
+ reply_to_comment_id?: string | null | undefined;
1301
+ } | undefined;
1296
1302
  name?: string | null | undefined;
1297
- org_id?: string | undefined;
1298
1303
  team_id?: string | undefined;
1304
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1299
1305
  description?: {
1300
1306
  json: Record<string, any>;
1301
1307
  text: string;
1302
1308
  } | null | undefined;
1309
+ source?: "api" | "web" | undefined;
1310
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1311
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1303
1312
  parent_id?: string | null | undefined;
1304
1313
  license_id?: string | undefined;
1305
1314
  license?: Record<string, any> | undefined;
@@ -1312,6 +1321,15 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1312
1321
  stripe_product_id?: string | null | undefined;
1313
1322
  stripe_price_id?: string | null | undefined;
1314
1323
  stripe_meter_id?: string | null | undefined;
1324
+ preview?: {
1325
+ type: "doc";
1326
+ content: any[];
1327
+ } | undefined;
1328
+ }, {
1329
+ last_updated: string;
1330
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1331
+ org_id?: string | undefined;
1332
+ parent?: Record<string, any> | undefined;
1315
1333
  metadata?: {
1316
1334
  doi_url?: string | null | undefined;
1317
1335
  external_url?: string | null | undefined;
@@ -1321,25 +1339,16 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1321
1339
  source?: string | null | undefined;
1322
1340
  reply_to_comment_id?: string | null | undefined;
1323
1341
  } | undefined;
1324
- preview?: {
1325
- type: "doc";
1326
- content: any[];
1327
- } | undefined;
1328
- }, {
1329
- last_updated: string;
1330
- parent?: Record<string, any> | undefined;
1331
- source?: "web" | "api" | undefined;
1332
- asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1333
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
1334
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1335
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1336
1342
  name?: string | null | undefined;
1337
- org_id?: string | undefined;
1338
1343
  team_id?: string | undefined;
1344
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1339
1345
  description?: {
1340
1346
  json: Record<string, any>;
1341
1347
  text: string;
1342
1348
  } | null | undefined;
1349
+ source?: "api" | "web" | undefined;
1350
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1351
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1343
1352
  parent_id?: string | null | undefined;
1344
1353
  license_id?: string | undefined;
1345
1354
  license?: Record<string, any> | undefined;
@@ -1352,15 +1361,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1352
1361
  stripe_product_id?: string | null | undefined;
1353
1362
  stripe_price_id?: string | null | undefined;
1354
1363
  stripe_meter_id?: string | null | undefined;
1355
- metadata?: {
1356
- doi_url?: string | null | undefined;
1357
- external_url?: string | null | undefined;
1358
- paper_url?: string | null | undefined;
1359
- github_url?: string | null | undefined;
1360
- originality?: "original" | "derivative" | "third-party" | undefined;
1361
- source?: string | null | undefined;
1362
- reply_to_comment_id?: string | null | undefined;
1363
- } | undefined;
1364
1364
  preview?: {
1365
1365
  type: "doc";
1366
1366
  content: any[];
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkXWXLCG4E_cjs=require('../chunk-XWXLCG4E.cjs'),chunkCONKY65O_cjs=require('../chunk-CONKY65O.cjs');require('../chunk-JW7FACNZ.cjs'),require('../chunk-IP4OVRZB.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"CreateEntrySchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.p}});Object.defineProperty(exports,"CreateQuestItemObjectSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.i}});Object.defineProperty(exports,"CreateQuestItemSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.j}});Object.defineProperty(exports,"CreateQuestSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.l}});Object.defineProperty(exports,"EntryEvalStatusSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.e}});Object.defineProperty(exports,"EntrySchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.o}});Object.defineProperty(exports,"EntryStatusSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.f}});Object.defineProperty(exports,"QuestItemBaseSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.g}});Object.defineProperty(exports,"QuestItemSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.h}});Object.defineProperty(exports,"QuestItemStatusSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.c}});Object.defineProperty(exports,"QuestSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.k}});Object.defineProperty(exports,"QuestStatusSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.b}});Object.defineProperty(exports,"QuestTypeSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.a}});Object.defineProperty(exports,"ReviewEntrySchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.q}});Object.defineProperty(exports,"RewardCurrencySchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.d}});Object.defineProperty(exports,"UpdateQuestItemSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.n}});Object.defineProperty(exports,"UpdateQuestSchema",{enumerable:true,get:function(){return chunkXWXLCG4E_cjs.m}});Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunkCONKY65O_cjs.c}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunkCONKY65O_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunkCONKY65O_cjs.d}});//# sourceMappingURL=quests.cjs.map
2
+ //# sourceMappingURL=quests.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"quests.cjs"}