@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
@@ -108,9 +108,9 @@ declare const ConversationSchema: z.ZodObject<{
108
108
  none: "none";
109
109
  }>>;
110
110
  visibility: z.ZodOptional<z.ZodEnum<{
111
+ organization: "organization";
111
112
  public: "public";
112
113
  private: "private";
113
- organization: "organization";
114
114
  monetized: "monetized";
115
115
  inherit: "inherit";
116
116
  }>>;
@@ -182,9 +182,9 @@ declare const ConversationSchema: z.ZodObject<{
182
182
  text: z.ZodString;
183
183
  }, z.core.$strip>>>;
184
184
  visibility: z.ZodEnum<{
185
+ organization: "organization";
185
186
  public: "public";
186
187
  private: "private";
187
- organization: "organization";
188
188
  monetized: "monetized";
189
189
  inherit: "inherit";
190
190
  }>;
@@ -210,23 +210,23 @@ declare const ConversationSchema: z.ZodObject<{
210
210
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
211
211
  state: z.ZodEnum<{
212
212
  success: "success";
213
- error: "error";
214
213
  queued: "queued";
215
214
  "in-progress": "in-progress";
216
215
  "timed-out": "timed-out";
216
+ error: "error";
217
217
  }>;
218
218
  source: z.ZodEnum<{
219
- web: "web";
220
219
  api: "api";
220
+ web: "web";
221
221
  }>;
222
222
  created_at: z.ZodString;
223
223
  last_updated: z.ZodString;
224
224
  asset_type: z.ZodDefault<z.ZodEnum<{
225
- organization: "organization";
226
- file: "file";
227
225
  user: "user";
226
+ organization: "organization";
228
227
  team: "team";
229
228
  dataset: "dataset";
229
+ file: "file";
230
230
  service: "service";
231
231
  route: "route";
232
232
  post: "post";
@@ -303,14 +303,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
303
303
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
304
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
305
305
  success: "success";
306
- error: "error";
307
306
  queued: "queued";
308
307
  "in-progress": "in-progress";
309
308
  "timed-out": "timed-out";
309
+ error: "error";
310
310
  }>>>;
311
311
  source: z.ZodDefault<z.ZodEnum<{
312
- web: "web";
313
312
  api: "api";
313
+ web: "web";
314
314
  }>>;
315
315
  created_at: z.ZodDefault<z.ZodString>;
316
316
  last_updated: z.ZodDefault<z.ZodString>;
@@ -321,9 +321,9 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
321
321
  "pay-per-use": "pay-per-use";
322
322
  }>>;
323
323
  visibility: z.ZodDefault<z.ZodEnum<{
324
+ organization: "organization";
324
325
  public: "public";
325
326
  private: "private";
326
- organization: "organization";
327
327
  monetized: "monetized";
328
328
  inherit: "inherit";
329
329
  }>>;
@@ -346,13 +346,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
346
346
  team_id: string | null;
347
347
  org_id: string | null;
348
348
  name: string;
349
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
350
- source: "web" | "api";
349
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
350
+ source: "api" | "web";
351
351
  created_at: string;
352
352
  last_updated: string;
353
353
  asset_type: "conversation";
354
354
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
355
- visibility: "public" | "private" | "organization" | "monetized" | "inherit";
355
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
356
356
  metadata: {
357
357
  members: string[];
358
358
  doi_url?: string | null | undefined;
@@ -385,13 +385,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
385
385
  team_id: string | null;
386
386
  org_id: string | null;
387
387
  name: string;
388
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
389
- source: "web" | "api";
388
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
389
+ source: "api" | "web";
390
390
  created_at: string;
391
391
  last_updated: string;
392
392
  asset_type: "conversation";
393
393
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
394
- visibility: "public" | "private" | "organization" | "monetized" | "inherit";
394
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
395
395
  metadata: {
396
396
  members: string[];
397
397
  doi_url?: string | null | undefined;
@@ -421,19 +421,40 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
421
421
  name_url_slug?: string | null | undefined;
422
422
  }>>;
423
423
  declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
424
- parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
425
- source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
426
- web: "web";
427
- api: "api";
428
- }>>>;
429
424
  asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
425
+ parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
426
+ metadata: z.ZodOptional<z.ZodObject<{
427
+ members: z.ZodArray<z.ZodString>;
428
+ doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
429
+ external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
430
+ paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
431
+ github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
432
+ originality: z.ZodOptional<z.ZodEnum<{
433
+ original: "original";
434
+ derivative: "derivative";
435
+ "third-party": "third-party";
436
+ }>>;
437
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
438
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
439
+ }, z.core.$strip>>;
440
+ created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
441
+ last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
442
+ name: z.ZodOptional<z.ZodString>;
430
443
  visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
444
+ organization: "organization";
431
445
  public: "public";
432
446
  private: "private";
433
- organization: "organization";
434
447
  monetized: "monetized";
435
448
  inherit: "inherit";
436
449
  }>>>;
450
+ description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
451
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
452
+ text: z.ZodString;
453
+ }, z.core.$strip>>>>>;
454
+ source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
455
+ api: "api";
456
+ web: "web";
457
+ }>>>;
437
458
  monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
438
459
  none: "none";
439
460
  "pay-to-unlock": "pay-to-unlock";
@@ -441,17 +462,11 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
441
462
  }>>>;
442
463
  state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
443
464
  success: "success";
444
- error: "error";
445
465
  queued: "queued";
446
466
  "in-progress": "in-progress";
447
467
  "timed-out": "timed-out";
468
+ error: "error";
448
469
  }>>>>;
449
- name: z.ZodOptional<z.ZodString>;
450
- description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
451
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
452
- text: z.ZodString;
453
- }, z.core.$strip>>>>>;
454
- created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
455
470
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
456
471
  license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
457
472
  name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -469,35 +484,31 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
469
484
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
470
485
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
471
486
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
472
- metadata: z.ZodOptional<z.ZodObject<{
473
- members: z.ZodArray<z.ZodString>;
474
- doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
475
- external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
476
- paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
477
- github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
478
- originality: z.ZodOptional<z.ZodEnum<{
479
- original: "original";
480
- derivative: "derivative";
481
- "third-party": "third-party";
482
- }>>;
483
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
484
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
485
- }, z.core.$strip>>;
486
487
  preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
487
- last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
488
488
  }, z.core.$strip>, z.ZodTransform<{
489
- parent?: Record<string, any> | undefined;
490
- source?: "web" | "api" | undefined;
491
489
  asset_type?: "conversation" | undefined;
492
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
493
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
494
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
490
+ parent?: Record<string, any> | undefined;
491
+ metadata?: {
492
+ members: string[];
493
+ doi_url?: string | null | undefined;
494
+ external_url?: string | null | undefined;
495
+ paper_url?: string | null | undefined;
496
+ github_url?: string | null | undefined;
497
+ originality?: "original" | "derivative" | "third-party" | undefined;
498
+ source?: string | null | undefined;
499
+ reply_to_comment_id?: string | null | undefined;
500
+ } | undefined;
501
+ created_at?: string | undefined;
502
+ last_updated?: string | undefined;
495
503
  name?: string | undefined;
504
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
496
505
  description?: {
497
506
  json: Record<string, any>;
498
507
  text: string;
499
508
  } | null | undefined;
500
- created_at?: string | undefined;
509
+ source?: "api" | "web" | undefined;
510
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
511
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
501
512
  parent_id?: string | null | undefined;
502
513
  license_id?: string | undefined;
503
514
  name_url_slug?: string | null | undefined;
@@ -509,6 +520,10 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
509
520
  stripe_product_id?: string | null | undefined;
510
521
  stripe_price_id?: string | null | undefined;
511
522
  stripe_meter_id?: string | null | undefined;
523
+ preview?: Record<string, any>[] | null | undefined;
524
+ }, {
525
+ asset_type?: "conversation" | undefined;
526
+ parent?: Record<string, any> | undefined;
512
527
  metadata?: {
513
528
  members: string[];
514
529
  doi_url?: string | null | undefined;
@@ -519,21 +534,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
519
534
  source?: string | null | undefined;
520
535
  reply_to_comment_id?: string | null | undefined;
521
536
  } | undefined;
522
- preview?: Record<string, any>[] | null | undefined;
537
+ created_at?: string | undefined;
523
538
  last_updated?: string | undefined;
524
- }, {
525
- parent?: Record<string, any> | undefined;
526
- source?: "web" | "api" | undefined;
527
- asset_type?: "conversation" | undefined;
528
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
529
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
530
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
531
539
  name?: string | undefined;
540
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
532
541
  description?: {
533
542
  json: Record<string, any>;
534
543
  text: string;
535
544
  } | null | undefined;
536
- created_at?: string | undefined;
545
+ source?: "api" | "web" | undefined;
546
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
547
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
537
548
  parent_id?: string | null | undefined;
538
549
  license_id?: string | undefined;
539
550
  name_url_slug?: string | null | undefined;
@@ -545,18 +556,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
545
556
  stripe_product_id?: string | null | undefined;
546
557
  stripe_price_id?: string | null | undefined;
547
558
  stripe_meter_id?: string | null | undefined;
548
- metadata?: {
549
- members: string[];
550
- doi_url?: string | null | undefined;
551
- external_url?: string | null | undefined;
552
- paper_url?: string | null | undefined;
553
- github_url?: string | null | undefined;
554
- originality?: "original" | "derivative" | "third-party" | undefined;
555
- source?: string | null | undefined;
556
- reply_to_comment_id?: string | null | undefined;
557
- } | undefined;
558
559
  preview?: Record<string, any>[] | null | undefined;
559
- last_updated?: string | undefined;
560
560
  }>>;
561
561
  declare const MessageSchema: z.ZodObject<{
562
562
  id: z.ZodUUID;
@@ -108,9 +108,9 @@ declare const ConversationSchema: z.ZodObject<{
108
108
  none: "none";
109
109
  }>>;
110
110
  visibility: z.ZodOptional<z.ZodEnum<{
111
+ organization: "organization";
111
112
  public: "public";
112
113
  private: "private";
113
- organization: "organization";
114
114
  monetized: "monetized";
115
115
  inherit: "inherit";
116
116
  }>>;
@@ -182,9 +182,9 @@ declare const ConversationSchema: z.ZodObject<{
182
182
  text: z.ZodString;
183
183
  }, z.core.$strip>>>;
184
184
  visibility: z.ZodEnum<{
185
+ organization: "organization";
185
186
  public: "public";
186
187
  private: "private";
187
- organization: "organization";
188
188
  monetized: "monetized";
189
189
  inherit: "inherit";
190
190
  }>;
@@ -210,23 +210,23 @@ declare const ConversationSchema: z.ZodObject<{
210
210
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
211
211
  state: z.ZodEnum<{
212
212
  success: "success";
213
- error: "error";
214
213
  queued: "queued";
215
214
  "in-progress": "in-progress";
216
215
  "timed-out": "timed-out";
216
+ error: "error";
217
217
  }>;
218
218
  source: z.ZodEnum<{
219
- web: "web";
220
219
  api: "api";
220
+ web: "web";
221
221
  }>;
222
222
  created_at: z.ZodString;
223
223
  last_updated: z.ZodString;
224
224
  asset_type: z.ZodDefault<z.ZodEnum<{
225
- organization: "organization";
226
- file: "file";
227
225
  user: "user";
226
+ organization: "organization";
228
227
  team: "team";
229
228
  dataset: "dataset";
229
+ file: "file";
230
230
  service: "service";
231
231
  route: "route";
232
232
  post: "post";
@@ -303,14 +303,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
303
303
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
304
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
305
305
  success: "success";
306
- error: "error";
307
306
  queued: "queued";
308
307
  "in-progress": "in-progress";
309
308
  "timed-out": "timed-out";
309
+ error: "error";
310
310
  }>>>;
311
311
  source: z.ZodDefault<z.ZodEnum<{
312
- web: "web";
313
312
  api: "api";
313
+ web: "web";
314
314
  }>>;
315
315
  created_at: z.ZodDefault<z.ZodString>;
316
316
  last_updated: z.ZodDefault<z.ZodString>;
@@ -321,9 +321,9 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
321
321
  "pay-per-use": "pay-per-use";
322
322
  }>>;
323
323
  visibility: z.ZodDefault<z.ZodEnum<{
324
+ organization: "organization";
324
325
  public: "public";
325
326
  private: "private";
326
- organization: "organization";
327
327
  monetized: "monetized";
328
328
  inherit: "inherit";
329
329
  }>>;
@@ -346,13 +346,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
346
346
  team_id: string | null;
347
347
  org_id: string | null;
348
348
  name: string;
349
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
350
- source: "web" | "api";
349
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
350
+ source: "api" | "web";
351
351
  created_at: string;
352
352
  last_updated: string;
353
353
  asset_type: "conversation";
354
354
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
355
- visibility: "public" | "private" | "organization" | "monetized" | "inherit";
355
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
356
356
  metadata: {
357
357
  members: string[];
358
358
  doi_url?: string | null | undefined;
@@ -385,13 +385,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
385
385
  team_id: string | null;
386
386
  org_id: string | null;
387
387
  name: string;
388
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
389
- source: "web" | "api";
388
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
389
+ source: "api" | "web";
390
390
  created_at: string;
391
391
  last_updated: string;
392
392
  asset_type: "conversation";
393
393
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
394
- visibility: "public" | "private" | "organization" | "monetized" | "inherit";
394
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
395
395
  metadata: {
396
396
  members: string[];
397
397
  doi_url?: string | null | undefined;
@@ -421,19 +421,40 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
421
421
  name_url_slug?: string | null | undefined;
422
422
  }>>;
423
423
  declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
424
- parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
425
- source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
426
- web: "web";
427
- api: "api";
428
- }>>>;
429
424
  asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
425
+ parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
426
+ metadata: z.ZodOptional<z.ZodObject<{
427
+ members: z.ZodArray<z.ZodString>;
428
+ doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
429
+ external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
430
+ paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
431
+ github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
432
+ originality: z.ZodOptional<z.ZodEnum<{
433
+ original: "original";
434
+ derivative: "derivative";
435
+ "third-party": "third-party";
436
+ }>>;
437
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
438
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
439
+ }, z.core.$strip>>;
440
+ created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
441
+ last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
442
+ name: z.ZodOptional<z.ZodString>;
430
443
  visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
444
+ organization: "organization";
431
445
  public: "public";
432
446
  private: "private";
433
- organization: "organization";
434
447
  monetized: "monetized";
435
448
  inherit: "inherit";
436
449
  }>>>;
450
+ description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
451
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
452
+ text: z.ZodString;
453
+ }, z.core.$strip>>>>>;
454
+ source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
455
+ api: "api";
456
+ web: "web";
457
+ }>>>;
437
458
  monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
438
459
  none: "none";
439
460
  "pay-to-unlock": "pay-to-unlock";
@@ -441,17 +462,11 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
441
462
  }>>>;
442
463
  state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
443
464
  success: "success";
444
- error: "error";
445
465
  queued: "queued";
446
466
  "in-progress": "in-progress";
447
467
  "timed-out": "timed-out";
468
+ error: "error";
448
469
  }>>>>;
449
- name: z.ZodOptional<z.ZodString>;
450
- description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
451
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
452
- text: z.ZodString;
453
- }, z.core.$strip>>>>>;
454
- created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
455
470
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
456
471
  license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
457
472
  name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -469,35 +484,31 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
469
484
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
470
485
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
471
486
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
472
- metadata: z.ZodOptional<z.ZodObject<{
473
- members: z.ZodArray<z.ZodString>;
474
- doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
475
- external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
476
- paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
477
- github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
478
- originality: z.ZodOptional<z.ZodEnum<{
479
- original: "original";
480
- derivative: "derivative";
481
- "third-party": "third-party";
482
- }>>;
483
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
484
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
485
- }, z.core.$strip>>;
486
487
  preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
487
- last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
488
488
  }, z.core.$strip>, z.ZodTransform<{
489
- parent?: Record<string, any> | undefined;
490
- source?: "web" | "api" | undefined;
491
489
  asset_type?: "conversation" | undefined;
492
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
493
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
494
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
490
+ parent?: Record<string, any> | undefined;
491
+ metadata?: {
492
+ members: string[];
493
+ doi_url?: string | null | undefined;
494
+ external_url?: string | null | undefined;
495
+ paper_url?: string | null | undefined;
496
+ github_url?: string | null | undefined;
497
+ originality?: "original" | "derivative" | "third-party" | undefined;
498
+ source?: string | null | undefined;
499
+ reply_to_comment_id?: string | null | undefined;
500
+ } | undefined;
501
+ created_at?: string | undefined;
502
+ last_updated?: string | undefined;
495
503
  name?: string | undefined;
504
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
496
505
  description?: {
497
506
  json: Record<string, any>;
498
507
  text: string;
499
508
  } | null | undefined;
500
- created_at?: string | undefined;
509
+ source?: "api" | "web" | undefined;
510
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
511
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
501
512
  parent_id?: string | null | undefined;
502
513
  license_id?: string | undefined;
503
514
  name_url_slug?: string | null | undefined;
@@ -509,6 +520,10 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
509
520
  stripe_product_id?: string | null | undefined;
510
521
  stripe_price_id?: string | null | undefined;
511
522
  stripe_meter_id?: string | null | undefined;
523
+ preview?: Record<string, any>[] | null | undefined;
524
+ }, {
525
+ asset_type?: "conversation" | undefined;
526
+ parent?: Record<string, any> | undefined;
512
527
  metadata?: {
513
528
  members: string[];
514
529
  doi_url?: string | null | undefined;
@@ -519,21 +534,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
519
534
  source?: string | null | undefined;
520
535
  reply_to_comment_id?: string | null | undefined;
521
536
  } | undefined;
522
- preview?: Record<string, any>[] | null | undefined;
537
+ created_at?: string | undefined;
523
538
  last_updated?: string | undefined;
524
- }, {
525
- parent?: Record<string, any> | undefined;
526
- source?: "web" | "api" | undefined;
527
- asset_type?: "conversation" | undefined;
528
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
529
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
530
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
531
539
  name?: string | undefined;
540
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
532
541
  description?: {
533
542
  json: Record<string, any>;
534
543
  text: string;
535
544
  } | null | undefined;
536
- created_at?: string | undefined;
545
+ source?: "api" | "web" | undefined;
546
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
547
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
537
548
  parent_id?: string | null | undefined;
538
549
  license_id?: string | undefined;
539
550
  name_url_slug?: string | null | undefined;
@@ -545,18 +556,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
545
556
  stripe_product_id?: string | null | undefined;
546
557
  stripe_price_id?: string | null | undefined;
547
558
  stripe_meter_id?: string | null | undefined;
548
- metadata?: {
549
- members: string[];
550
- doi_url?: string | null | undefined;
551
- external_url?: string | null | undefined;
552
- paper_url?: string | null | undefined;
553
- github_url?: string | null | undefined;
554
- originality?: "original" | "derivative" | "third-party" | undefined;
555
- source?: string | null | undefined;
556
- reply_to_comment_id?: string | null | undefined;
557
- } | undefined;
558
559
  preview?: Record<string, any>[] | null | undefined;
559
- last_updated?: string | undefined;
560
560
  }>>;
561
561
  declare const MessageSchema: z.ZodObject<{
562
562
  id: z.ZodUUID;