@ourofoundation/ouro-js 3.5.2 → 3.5.4

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 (60) hide show
  1. package/dist/chunk-73DHYPGU.cjs +2 -0
  2. package/dist/chunk-73DHYPGU.cjs.map +1 -0
  3. package/dist/{chunk-G24BRDHO.cjs → chunk-FLOHG4H4.cjs} +2 -2
  4. package/dist/chunk-FLOHG4H4.cjs.map +1 -0
  5. package/dist/chunk-QR2BSJ2C.js +2 -0
  6. package/dist/chunk-QR2BSJ2C.js.map +1 -0
  7. package/dist/{chunk-HIXNQKVP.cjs → chunk-W73NWPCZ.cjs} +2 -2
  8. package/dist/chunk-W73NWPCZ.cjs.map +1 -0
  9. package/dist/{chunk-CIWFH5BJ.js → chunk-X2PI5PAT.js} +2 -2
  10. package/dist/chunk-X2PI5PAT.js.map +1 -0
  11. package/dist/chunk-XLJBQ7BU.js +2 -0
  12. package/dist/chunk-XLJBQ7BU.js.map +1 -0
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.d.cts +1 -1
  15. package/dist/index.d.ts +1 -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.cjs +1 -1
  24. package/dist/schema/conversations.d.cts +71 -69
  25. package/dist/schema/conversations.d.ts +71 -69
  26. package/dist/schema/conversations.js +1 -1
  27. package/dist/schema/datasets.cjs +1 -1
  28. package/dist/schema/datasets.d.cts +186 -140
  29. package/dist/schema/datasets.d.ts +186 -140
  30. package/dist/schema/datasets.js +1 -1
  31. package/dist/schema/events.cjs +1 -1
  32. package/dist/schema/events.d.cts +6 -1
  33. package/dist/schema/events.d.ts +6 -1
  34. package/dist/schema/events.js +1 -1
  35. package/dist/schema/files.d.cts +100 -100
  36. package/dist/schema/files.d.ts +100 -100
  37. package/dist/schema/notifications.d.cts +2 -2
  38. package/dist/schema/notifications.d.ts +2 -2
  39. package/dist/schema/organizations.d.cts +1 -1
  40. package/dist/schema/organizations.d.ts +1 -1
  41. package/dist/schema/posts.d.cts +127 -127
  42. package/dist/schema/posts.d.ts +127 -127
  43. package/dist/schema/quests.d.cts +177 -177
  44. package/dist/schema/quests.d.ts +177 -177
  45. package/dist/schema/services.d.cts +127 -127
  46. package/dist/schema/services.d.ts +127 -127
  47. package/dist/schema/teams.d.cts +18 -18
  48. package/dist/schema/teams.d.ts +18 -18
  49. package/dist/utils/quest-submission.d.cts +7 -7
  50. package/dist/utils/quest-submission.d.ts +7 -7
  51. package/package.json +1 -1
  52. package/dist/chunk-35CJDNHH.js +0 -2
  53. package/dist/chunk-35CJDNHH.js.map +0 -1
  54. package/dist/chunk-3UWDQLTN.js +0 -2
  55. package/dist/chunk-3UWDQLTN.js.map +0 -1
  56. package/dist/chunk-CIWFH5BJ.js.map +0 -1
  57. package/dist/chunk-G24BRDHO.cjs.map +0 -1
  58. package/dist/chunk-HIXNQKVP.cjs.map +0 -1
  59. package/dist/chunk-OBWPO2QT.cjs +0 -2
  60. package/dist/chunk-OBWPO2QT.cjs.map +0 -1
@@ -108,9 +108,9 @@ declare const CommentSchema: 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 CommentSchema: 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
  }>;
@@ -222,14 +222,14 @@ declare const CommentSchema: z.ZodObject<{
222
222
  }, z.core.$strip>>>;
223
223
  state: z.ZodEnum<{
224
224
  success: "success";
225
- error: "error";
226
225
  queued: "queued";
227
226
  "in-progress": "in-progress";
228
227
  "timed-out": "timed-out";
228
+ error: "error";
229
229
  }>;
230
230
  source: z.ZodEnum<{
231
- web: "web";
232
231
  api: "api";
232
+ web: "web";
233
233
  }>;
234
234
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
235
235
  created_at: z.ZodString;
@@ -241,6 +241,30 @@ declare const CommentSchema: z.ZodObject<{
241
241
  }, z.core.$strip>>>>;
242
242
  }, z.core.$strip>;
243
243
  declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
244
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
245
+ id: z.ZodOptional<z.ZodUUID>;
246
+ user_id: z.ZodOptional<z.ZodUUID>;
247
+ username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
248
+ name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
249
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
250
+ bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
251
+ is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
252
+ claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
253
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
254
+ value: z.ZodString;
255
+ }, z.core.$strip>>>>;
256
+ post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
257
+ actor_type: z.ZodOptional<z.ZodEnum<{
258
+ base: "base";
259
+ agent: "agent";
260
+ verified: "verified";
261
+ }>>;
262
+ plan_type: z.ZodOptional<z.ZodEnum<{
263
+ free: "free";
264
+ gold: "gold";
265
+ }>>;
266
+ last_active: z.ZodOptional<z.ZodString>;
267
+ }, z.core.$strip>>>;
244
268
  organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
245
269
  id: z.ZodOptional<z.ZodUUID>;
246
270
  name: z.ZodOptional<z.ZodString>;
@@ -273,56 +297,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
273
297
  api_only: "api_only";
274
298
  }>>>>;
275
299
  }, z.core.$strip>>>;
276
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
277
- source: z.ZodOptional<z.ZodEnum<{
278
- web: "web";
279
- api: "api";
280
- }>>;
281
- visibility: z.ZodOptional<z.ZodEnum<{
282
- public: "public";
283
- private: "private";
284
- organization: "organization";
285
- monetized: "monetized";
286
- inherit: "inherit";
287
- }>>;
288
- monetization: z.ZodOptional<z.ZodEnum<{
289
- none: "none";
290
- "pay-to-unlock": "pay-to-unlock";
291
- "pay-per-use": "pay-per-use";
292
- }>>;
293
- state: z.ZodOptional<z.ZodEnum<{
294
- success: "success";
295
- error: "error";
296
- queued: "queued";
297
- "in-progress": "in-progress";
298
- "timed-out": "timed-out";
299
- }>>;
300
- user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
301
- id: z.ZodOptional<z.ZodUUID>;
302
- user_id: z.ZodOptional<z.ZodUUID>;
303
- username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
304
- name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
305
- avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
306
- bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
307
- is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
308
- claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
309
- urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
310
- value: z.ZodString;
311
- }, z.core.$strip>>>>;
312
- post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
313
- actor_type: z.ZodOptional<z.ZodEnum<{
314
- base: "base";
315
- agent: "agent";
316
- verified: "verified";
317
- }>>;
318
- plan_type: z.ZodOptional<z.ZodEnum<{
319
- free: "free";
320
- gold: "gold";
321
- }>>;
322
- last_active: z.ZodOptional<z.ZodString>;
323
- }, z.core.$strip>>>;
324
- org_id: z.ZodOptional<z.ZodUUID>;
325
- team_id: z.ZodOptional<z.ZodUUID>;
326
300
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
327
301
  id: z.ZodOptional<z.ZodUUID>;
328
302
  org_id: z.ZodOptional<z.ZodUUID>;
@@ -370,9 +344,9 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
370
344
  none: "none";
371
345
  }>>;
372
346
  visibility: z.ZodOptional<z.ZodEnum<{
347
+ organization: "organization";
373
348
  public: "public";
374
349
  private: "private";
375
- organization: "organization";
376
350
  monetized: "monetized";
377
351
  inherit: "inherit";
378
352
  }>>;
@@ -432,10 +406,49 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
432
406
  }, z.core.$strip>>>;
433
407
  created_at: z.ZodOptional<z.ZodString>;
434
408
  }, z.core.$strip>>>;
409
+ org_id: z.ZodOptional<z.ZodUUID>;
410
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
411
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
412
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ originality: z.ZodEnum<{
417
+ original: "original";
418
+ derivative: "derivative";
419
+ "third-party": "third-party";
420
+ }>;
421
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ }, z.core.$strip>>>>;
424
+ team_id: z.ZodOptional<z.ZodUUID>;
425
+ visibility: z.ZodOptional<z.ZodEnum<{
426
+ organization: "organization";
427
+ public: "public";
428
+ private: "private";
429
+ monetized: "monetized";
430
+ inherit: "inherit";
431
+ }>>;
435
432
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
436
433
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
437
434
  text: z.ZodString;
438
435
  }, z.core.$strip>>>>;
436
+ source: z.ZodOptional<z.ZodEnum<{
437
+ api: "api";
438
+ web: "web";
439
+ }>>;
440
+ monetization: z.ZodOptional<z.ZodEnum<{
441
+ none: "none";
442
+ "pay-to-unlock": "pay-to-unlock";
443
+ "pay-per-use": "pay-per-use";
444
+ }>>;
445
+ state: z.ZodOptional<z.ZodEnum<{
446
+ success: "success";
447
+ queued: "queued";
448
+ "in-progress": "in-progress";
449
+ "timed-out": "timed-out";
450
+ error: "error";
451
+ }>>;
439
452
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
440
453
  license_id: z.ZodOptional<z.ZodString>;
441
454
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -455,19 +468,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
455
468
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
456
469
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
457
470
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
458
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
459
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
- originality: z.ZodEnum<{
464
- original: "original";
465
- derivative: "derivative";
466
- "third-party": "third-party";
467
- }>;
468
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
- }, z.core.$strip>>>>;
471
471
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
472
472
  type: z.ZodString;
473
473
  content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -484,6 +484,23 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
484
484
  name: string;
485
485
  created_at: string;
486
486
  last_updated: string;
487
+ user?: {
488
+ id?: string | undefined;
489
+ user_id?: string | undefined;
490
+ username?: string | null | undefined;
491
+ name?: string | null | undefined;
492
+ avatar_path?: string | null | undefined;
493
+ bio?: string | null | undefined;
494
+ is_provisioned?: boolean | undefined;
495
+ claimed_at?: string | null | undefined;
496
+ urls?: {
497
+ value: string;
498
+ }[] | undefined;
499
+ post_id?: string | null | undefined;
500
+ actor_type?: "base" | "agent" | "verified" | undefined;
501
+ plan_type?: "free" | "gold" | undefined;
502
+ last_active?: string | undefined;
503
+ } | undefined;
487
504
  organization?: {
488
505
  id?: string | undefined;
489
506
  name?: string | undefined;
@@ -503,30 +520,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
503
520
  actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
504
521
  source_policy?: "any" | "web_only" | "api_only" | undefined;
505
522
  } | undefined;
506
- parent?: Record<string, any> | undefined;
507
- source?: "web" | "api" | undefined;
508
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
509
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
510
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
511
- user?: {
512
- id?: string | undefined;
513
- user_id?: string | undefined;
514
- username?: string | null | undefined;
515
- name?: string | null | undefined;
516
- avatar_path?: string | null | undefined;
517
- bio?: string | null | undefined;
518
- is_provisioned?: boolean | undefined;
519
- claimed_at?: string | null | undefined;
520
- urls?: {
521
- value: string;
522
- }[] | undefined;
523
- post_id?: string | null | undefined;
524
- actor_type?: "base" | "agent" | "verified" | undefined;
525
- plan_type?: "free" | "gold" | undefined;
526
- last_active?: string | undefined;
527
- } | undefined;
528
- org_id?: string | undefined;
529
- team_id?: string | undefined;
530
523
  team?: {
531
524
  id?: string | undefined;
532
525
  org_id?: string | undefined;
@@ -555,7 +548,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
555
548
  json: Record<string, any>;
556
549
  } | null | undefined;
557
550
  default_role?: "admin" | "read" | "write" | "none" | undefined;
558
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
551
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
559
552
  actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
560
553
  source_policy?: "any" | "web_only" | "api_only" | null | undefined;
561
554
  userMembership?: {
@@ -587,10 +580,26 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
587
580
  }[] | undefined;
588
581
  created_at?: string | undefined;
589
582
  } | undefined;
583
+ org_id?: string | undefined;
584
+ parent?: Record<string, any> | undefined;
585
+ metadata?: {
586
+ originality: "original" | "derivative" | "third-party";
587
+ doi_url?: string | null | undefined;
588
+ external_url?: string | null | undefined;
589
+ paper_url?: string | null | undefined;
590
+ github_url?: string | null | undefined;
591
+ source?: string | null | undefined;
592
+ reply_to_comment_id?: string | null | undefined;
593
+ } | null | undefined;
594
+ team_id?: string | undefined;
595
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
590
596
  description?: {
591
597
  json: Record<string, any>;
592
598
  text: string;
593
599
  } | null | undefined;
600
+ source?: "api" | "web" | undefined;
601
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
602
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
594
603
  parent_id?: string | null | undefined;
595
604
  license_id?: string | undefined;
596
605
  license?: Record<string, any> | undefined;
@@ -604,15 +613,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
604
613
  stripe_product_id?: string | null | undefined;
605
614
  stripe_price_id?: string | null | undefined;
606
615
  stripe_meter_id?: string | null | undefined;
607
- metadata?: {
608
- originality: "original" | "derivative" | "third-party";
609
- doi_url?: string | null | undefined;
610
- external_url?: string | null | undefined;
611
- paper_url?: string | null | undefined;
612
- github_url?: string | null | undefined;
613
- source?: string | null | undefined;
614
- reply_to_comment_id?: string | null | undefined;
615
- } | null | undefined;
616
616
  preview?: {
617
617
  type: string;
618
618
  content: Record<string, any>[];
@@ -624,6 +624,23 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
624
624
  name: string;
625
625
  created_at: string;
626
626
  last_updated: string;
627
+ user?: {
628
+ id?: string | undefined;
629
+ user_id?: string | undefined;
630
+ username?: string | null | undefined;
631
+ name?: string | null | undefined;
632
+ avatar_path?: string | null | undefined;
633
+ bio?: string | null | undefined;
634
+ is_provisioned?: boolean | undefined;
635
+ claimed_at?: string | null | undefined;
636
+ urls?: {
637
+ value: string;
638
+ }[] | undefined;
639
+ post_id?: string | null | undefined;
640
+ actor_type?: "base" | "agent" | "verified" | undefined;
641
+ plan_type?: "free" | "gold" | undefined;
642
+ last_active?: string | undefined;
643
+ } | undefined;
627
644
  organization?: {
628
645
  id?: string | undefined;
629
646
  name?: string | undefined;
@@ -643,30 +660,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
643
660
  actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
644
661
  source_policy?: "any" | "web_only" | "api_only" | undefined;
645
662
  } | undefined;
646
- parent?: Record<string, any> | undefined;
647
- source?: "web" | "api" | undefined;
648
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
649
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
650
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
651
- user?: {
652
- id?: string | undefined;
653
- user_id?: string | undefined;
654
- username?: string | null | undefined;
655
- name?: string | null | undefined;
656
- avatar_path?: string | null | undefined;
657
- bio?: string | null | undefined;
658
- is_provisioned?: boolean | undefined;
659
- claimed_at?: string | null | undefined;
660
- urls?: {
661
- value: string;
662
- }[] | undefined;
663
- post_id?: string | null | undefined;
664
- actor_type?: "base" | "agent" | "verified" | undefined;
665
- plan_type?: "free" | "gold" | undefined;
666
- last_active?: string | undefined;
667
- } | undefined;
668
- org_id?: string | undefined;
669
- team_id?: string | undefined;
670
663
  team?: {
671
664
  id?: string | undefined;
672
665
  org_id?: string | undefined;
@@ -695,7 +688,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
695
688
  json: Record<string, any>;
696
689
  } | null | undefined;
697
690
  default_role?: "admin" | "read" | "write" | "none" | undefined;
698
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
691
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
699
692
  actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
700
693
  source_policy?: "any" | "web_only" | "api_only" | null | undefined;
701
694
  userMembership?: {
@@ -727,10 +720,26 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
727
720
  }[] | undefined;
728
721
  created_at?: string | undefined;
729
722
  } | undefined;
723
+ org_id?: string | undefined;
724
+ parent?: Record<string, any> | undefined;
725
+ metadata?: {
726
+ originality: "original" | "derivative" | "third-party";
727
+ doi_url?: string | null | undefined;
728
+ external_url?: string | null | undefined;
729
+ paper_url?: string | null | undefined;
730
+ github_url?: string | null | undefined;
731
+ source?: string | null | undefined;
732
+ reply_to_comment_id?: string | null | undefined;
733
+ } | null | undefined;
734
+ team_id?: string | undefined;
735
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
730
736
  description?: {
731
737
  json: Record<string, any>;
732
738
  text: string;
733
739
  } | null | undefined;
740
+ source?: "api" | "web" | undefined;
741
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
742
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
734
743
  parent_id?: string | null | undefined;
735
744
  license_id?: string | undefined;
736
745
  license?: Record<string, any> | undefined;
@@ -744,15 +753,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
744
753
  stripe_product_id?: string | null | undefined;
745
754
  stripe_price_id?: string | null | undefined;
746
755
  stripe_meter_id?: string | null | undefined;
747
- metadata?: {
748
- originality: "original" | "derivative" | "third-party";
749
- doi_url?: string | null | undefined;
750
- external_url?: string | null | undefined;
751
- paper_url?: string | null | undefined;
752
- github_url?: string | null | undefined;
753
- source?: string | null | undefined;
754
- reply_to_comment_id?: string | null | undefined;
755
- } | null | undefined;
756
756
  preview?: {
757
757
  type: string;
758
758
  content: Record<string, any>[];
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const AssetTypeSchema: z.ZodEnum<{
4
- organization: "organization";
5
- file: "file";
6
4
  user: "user";
5
+ organization: "organization";
7
6
  team: "team";
8
7
  dataset: "dataset";
8
+ file: "file";
9
9
  service: "service";
10
10
  route: "route";
11
11
  post: "post";
@@ -14,9 +14,9 @@ declare const AssetTypeSchema: z.ZodEnum<{
14
14
  conversation: "conversation";
15
15
  }>;
16
16
  declare const VisibilitySchema: z.ZodEnum<{
17
+ organization: "organization";
17
18
  public: "public";
18
19
  private: "private";
19
- organization: "organization";
20
20
  monetized: "monetized";
21
21
  inherit: "inherit";
22
22
  }>;
@@ -42,11 +42,11 @@ declare const EmbeddingSchema: z.ZodObject<{
42
42
  embedding: z.ZodArray<z.ZodNumber>;
43
43
  content: z.ZodString;
44
44
  asset_type: z.ZodEnum<{
45
- organization: "organization";
46
- file: "file";
47
45
  user: "user";
46
+ organization: "organization";
48
47
  team: "team";
49
48
  dataset: "dataset";
49
+ file: "file";
50
50
  service: "service";
51
51
  route: "route";
52
52
  post: "post";
@@ -75,11 +75,11 @@ declare const ConnectionSchema: z.ZodObject<{
75
75
  source_id: z.ZodUUID;
76
76
  target_id: z.ZodUUID;
77
77
  source_asset_type: z.ZodEnum<{
78
- organization: "organization";
79
- file: "file";
80
78
  user: "user";
79
+ organization: "organization";
81
80
  team: "team";
82
81
  dataset: "dataset";
82
+ file: "file";
83
83
  service: "service";
84
84
  route: "route";
85
85
  post: "post";
@@ -88,11 +88,11 @@ declare const ConnectionSchema: z.ZodObject<{
88
88
  conversation: "conversation";
89
89
  }>;
90
90
  target_asset_type: z.ZodEnum<{
91
- organization: "organization";
92
- file: "file";
93
91
  user: "user";
92
+ organization: "organization";
94
93
  team: "team";
95
94
  dataset: "dataset";
95
+ file: "file";
96
96
  service: "service";
97
97
  route: "route";
98
98
  post: "post";
@@ -106,15 +106,15 @@ declare const ConnectionSchema: z.ZodObject<{
106
106
  declare const PurchaseAssetSchema: z.ZodObject<{
107
107
  assetId: z.ZodUUID;
108
108
  method: z.ZodEnum<{
109
- api: "api";
110
109
  checkout: "checkout";
110
+ api: "api";
111
111
  }>;
112
112
  assetType: z.ZodEnum<{
113
- organization: "organization";
114
- file: "file";
115
113
  user: "user";
114
+ organization: "organization";
116
115
  team: "team";
117
116
  dataset: "dataset";
117
+ file: "file";
118
118
  service: "service";
119
119
  route: "route";
120
120
  post: "post";
@@ -137,11 +137,11 @@ declare const PermissionSchema: z.ZodObject<{
137
137
  user_id: z.ZodNullable<z.ZodUUID>;
138
138
  org_id: z.ZodNullable<z.ZodUUID>;
139
139
  asset_type: z.ZodEnum<{
140
- organization: "organization";
141
- file: "file";
142
140
  user: "user";
141
+ organization: "organization";
143
142
  team: "team";
144
143
  dataset: "dataset";
144
+ file: "file";
145
145
  service: "service";
146
146
  route: "route";
147
147
  post: "post";
@@ -155,14 +155,14 @@ declare const PermissionSchema: z.ZodObject<{
155
155
  }, z.core.$strip>;
156
156
  declare const StatusSchema: z.ZodEnum<{
157
157
  success: "success";
158
- error: "error";
159
158
  queued: "queued";
160
159
  "in-progress": "in-progress";
161
160
  "timed-out": "timed-out";
161
+ error: "error";
162
162
  }>;
163
163
  declare const SourceSchema: z.ZodEnum<{
164
- web: "web";
165
164
  api: "api";
165
+ web: "web";
166
166
  }>;
167
167
 
168
168
  type Role = z.infer<typeof RoleSchema>;
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const AssetTypeSchema: z.ZodEnum<{
4
- organization: "organization";
5
- file: "file";
6
4
  user: "user";
5
+ organization: "organization";
7
6
  team: "team";
8
7
  dataset: "dataset";
8
+ file: "file";
9
9
  service: "service";
10
10
  route: "route";
11
11
  post: "post";
@@ -14,9 +14,9 @@ declare const AssetTypeSchema: z.ZodEnum<{
14
14
  conversation: "conversation";
15
15
  }>;
16
16
  declare const VisibilitySchema: z.ZodEnum<{
17
+ organization: "organization";
17
18
  public: "public";
18
19
  private: "private";
19
- organization: "organization";
20
20
  monetized: "monetized";
21
21
  inherit: "inherit";
22
22
  }>;
@@ -42,11 +42,11 @@ declare const EmbeddingSchema: z.ZodObject<{
42
42
  embedding: z.ZodArray<z.ZodNumber>;
43
43
  content: z.ZodString;
44
44
  asset_type: z.ZodEnum<{
45
- organization: "organization";
46
- file: "file";
47
45
  user: "user";
46
+ organization: "organization";
48
47
  team: "team";
49
48
  dataset: "dataset";
49
+ file: "file";
50
50
  service: "service";
51
51
  route: "route";
52
52
  post: "post";
@@ -75,11 +75,11 @@ declare const ConnectionSchema: z.ZodObject<{
75
75
  source_id: z.ZodUUID;
76
76
  target_id: z.ZodUUID;
77
77
  source_asset_type: z.ZodEnum<{
78
- organization: "organization";
79
- file: "file";
80
78
  user: "user";
79
+ organization: "organization";
81
80
  team: "team";
82
81
  dataset: "dataset";
82
+ file: "file";
83
83
  service: "service";
84
84
  route: "route";
85
85
  post: "post";
@@ -88,11 +88,11 @@ declare const ConnectionSchema: z.ZodObject<{
88
88
  conversation: "conversation";
89
89
  }>;
90
90
  target_asset_type: z.ZodEnum<{
91
- organization: "organization";
92
- file: "file";
93
91
  user: "user";
92
+ organization: "organization";
94
93
  team: "team";
95
94
  dataset: "dataset";
95
+ file: "file";
96
96
  service: "service";
97
97
  route: "route";
98
98
  post: "post";
@@ -106,15 +106,15 @@ declare const ConnectionSchema: z.ZodObject<{
106
106
  declare const PurchaseAssetSchema: z.ZodObject<{
107
107
  assetId: z.ZodUUID;
108
108
  method: z.ZodEnum<{
109
- api: "api";
110
109
  checkout: "checkout";
110
+ api: "api";
111
111
  }>;
112
112
  assetType: z.ZodEnum<{
113
- organization: "organization";
114
- file: "file";
115
113
  user: "user";
114
+ organization: "organization";
116
115
  team: "team";
117
116
  dataset: "dataset";
117
+ file: "file";
118
118
  service: "service";
119
119
  route: "route";
120
120
  post: "post";
@@ -137,11 +137,11 @@ declare const PermissionSchema: z.ZodObject<{
137
137
  user_id: z.ZodNullable<z.ZodUUID>;
138
138
  org_id: z.ZodNullable<z.ZodUUID>;
139
139
  asset_type: z.ZodEnum<{
140
- organization: "organization";
141
- file: "file";
142
140
  user: "user";
141
+ organization: "organization";
143
142
  team: "team";
144
143
  dataset: "dataset";
144
+ file: "file";
145
145
  service: "service";
146
146
  route: "route";
147
147
  post: "post";
@@ -155,14 +155,14 @@ declare const PermissionSchema: z.ZodObject<{
155
155
  }, z.core.$strip>;
156
156
  declare const StatusSchema: z.ZodEnum<{
157
157
  success: "success";
158
- error: "error";
159
158
  queued: "queued";
160
159
  "in-progress": "in-progress";
161
160
  "timed-out": "timed-out";
161
+ error: "error";
162
162
  }>;
163
163
  declare const SourceSchema: z.ZodEnum<{
164
- web: "web";
165
164
  api: "api";
165
+ web: "web";
166
166
  }>;
167
167
 
168
168
  type Role = z.infer<typeof RoleSchema>;
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkHIXNQKVP_cjs=require('../chunk-HIXNQKVP.cjs');require('../chunk-F5CWCYOP.cjs'),require('../chunk-ROMY5WNQ.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkHIXNQKVP_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkHIXNQKVP_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkHIXNQKVP_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkHIXNQKVP_cjs.c}});//# sourceMappingURL=conversations.cjs.map
1
+ 'use strict';var chunkW73NWPCZ_cjs=require('../chunk-W73NWPCZ.cjs');require('../chunk-F5CWCYOP.cjs'),require('../chunk-ROMY5WNQ.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkW73NWPCZ_cjs.c}});//# sourceMappingURL=conversations.cjs.map
2
2
  //# sourceMappingURL=conversations.cjs.map