@ourofoundation/ouro-js 3.5.0 → 3.5.2

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 (107) hide show
  1. package/dist/{chunk-BFBGVGNF.js → chunk-35CJDNHH.js} +2 -2
  2. package/dist/{chunk-BFBGVGNF.js.map → chunk-35CJDNHH.js.map} +1 -1
  3. package/dist/chunk-3UWDQLTN.js +2 -0
  4. package/dist/chunk-3UWDQLTN.js.map +1 -0
  5. package/dist/chunk-6GPIZJ4T.cjs +2 -0
  6. package/dist/chunk-6GPIZJ4T.cjs.map +1 -0
  7. package/dist/{chunk-CONKY65O.cjs → chunk-6ZJQTECB.cjs} +2 -2
  8. package/dist/{chunk-CONKY65O.cjs.map → chunk-6ZJQTECB.cjs.map} +1 -1
  9. package/dist/{chunk-XWXLCG4E.cjs → chunk-BWAEBQKV.cjs} +2 -2
  10. package/dist/chunk-BWAEBQKV.cjs.map +1 -0
  11. package/dist/chunk-F5CWCYOP.cjs +2 -0
  12. package/dist/chunk-F5CWCYOP.cjs.map +1 -0
  13. package/dist/{chunk-QT3A4ULM.cjs → chunk-FRMPLGE4.cjs} +2 -2
  14. package/dist/{chunk-QT3A4ULM.cjs.map → chunk-FRMPLGE4.cjs.map} +1 -1
  15. package/dist/{chunk-6YF2RSXS.js → chunk-G3VMEPTP.js} +2 -2
  16. package/dist/{chunk-6YF2RSXS.js.map → chunk-G3VMEPTP.js.map} +1 -1
  17. package/dist/chunk-HIXNQKVP.cjs +2 -0
  18. package/dist/{chunk-NEINJFFK.cjs.map → chunk-HIXNQKVP.cjs.map} +1 -1
  19. package/dist/chunk-IWOXGKK4.js +2 -0
  20. package/dist/chunk-IWOXGKK4.js.map +1 -0
  21. package/dist/chunk-KCVE35IO.js +2 -0
  22. package/dist/chunk-KCVE35IO.js.map +1 -0
  23. package/dist/chunk-MLTO7TMM.js +2 -0
  24. package/dist/chunk-MLTO7TMM.js.map +1 -0
  25. package/dist/chunk-OBWPO2QT.cjs +2 -0
  26. package/dist/chunk-OBWPO2QT.cjs.map +1 -0
  27. package/dist/{chunk-Z3ALIFYO.js → chunk-R2W4NEEJ.js} +2 -2
  28. package/dist/chunk-R2W4NEEJ.js.map +1 -0
  29. package/dist/{chunk-IP4OVRZB.cjs → chunk-ROMY5WNQ.cjs} +2 -2
  30. package/dist/chunk-ROMY5WNQ.cjs.map +1 -0
  31. package/dist/chunk-SR5UZ4NP.js +2 -0
  32. package/dist/chunk-SR5UZ4NP.js.map +1 -0
  33. package/dist/{chunk-JKTQY4RU.js → chunk-TYOQ32UV.js} +2 -2
  34. package/dist/{chunk-JKTQY4RU.js.map → chunk-TYOQ32UV.js.map} +1 -1
  35. package/dist/chunk-V73EW77Y.cjs +2 -0
  36. package/dist/chunk-V73EW77Y.cjs.map +1 -0
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.d.cts +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/schema/assets.cjs +1 -1
  42. package/dist/schema/assets.d.cts +85 -84
  43. package/dist/schema/assets.d.ts +85 -84
  44. package/dist/schema/assets.js +1 -1
  45. package/dist/schema/comments.cjs +1 -1
  46. package/dist/schema/comments.d.cts +140 -136
  47. package/dist/schema/comments.d.ts +140 -136
  48. package/dist/schema/comments.js +1 -1
  49. package/dist/schema/common.d.cts +16 -16
  50. package/dist/schema/common.d.ts +16 -16
  51. package/dist/schema/conversations.cjs +1 -1
  52. package/dist/schema/conversations.d.cts +70 -69
  53. package/dist/schema/conversations.d.ts +70 -69
  54. package/dist/schema/conversations.js +1 -1
  55. package/dist/schema/datasets.cjs +1 -1
  56. package/dist/schema/datasets.d.cts +283 -107
  57. package/dist/schema/datasets.d.ts +283 -107
  58. package/dist/schema/datasets.js +1 -1
  59. package/dist/schema/files.cjs +1 -1
  60. package/dist/schema/files.d.cts +101 -100
  61. package/dist/schema/files.d.ts +101 -100
  62. package/dist/schema/files.js +1 -1
  63. package/dist/schema/notifications.d.cts +2 -2
  64. package/dist/schema/notifications.d.ts +2 -2
  65. package/dist/schema/organizations.d.cts +1 -1
  66. package/dist/schema/organizations.d.ts +1 -1
  67. package/dist/schema/posts.cjs +1 -1
  68. package/dist/schema/posts.d.cts +131 -129
  69. package/dist/schema/posts.d.ts +131 -129
  70. package/dist/schema/posts.js +1 -1
  71. package/dist/schema/quests.cjs +1 -1
  72. package/dist/schema/quests.d.cts +178 -177
  73. package/dist/schema/quests.d.ts +178 -177
  74. package/dist/schema/quests.js +1 -1
  75. package/dist/schema/services.cjs +1 -1
  76. package/dist/schema/services.d.cts +131 -127
  77. package/dist/schema/services.d.ts +131 -127
  78. package/dist/schema/services.js +1 -1
  79. package/dist/schema/teams.d.cts +18 -18
  80. package/dist/schema/teams.d.ts +18 -18
  81. package/dist/utils/quest-submission.cjs +1 -1
  82. package/dist/utils/quest-submission.d.cts +7 -7
  83. package/dist/utils/quest-submission.d.ts +7 -7
  84. package/dist/utils/quest-submission.js +1 -1
  85. package/package.json +1 -1
  86. package/dist/chunk-7F26V24D.js +0 -2
  87. package/dist/chunk-7F26V24D.js.map +0 -1
  88. package/dist/chunk-B4225TEG.js +0 -2
  89. package/dist/chunk-B4225TEG.js.map +0 -1
  90. package/dist/chunk-BQ5WODME.cjs +0 -2
  91. package/dist/chunk-BQ5WODME.cjs.map +0 -1
  92. package/dist/chunk-G2MXCB7Q.js +0 -2
  93. package/dist/chunk-G2MXCB7Q.js.map +0 -1
  94. package/dist/chunk-IP4OVRZB.cjs.map +0 -1
  95. package/dist/chunk-JW7FACNZ.cjs +0 -2
  96. package/dist/chunk-JW7FACNZ.cjs.map +0 -1
  97. package/dist/chunk-MH4A7XAY.cjs +0 -2
  98. package/dist/chunk-MH4A7XAY.cjs.map +0 -1
  99. package/dist/chunk-NEINJFFK.cjs +0 -2
  100. package/dist/chunk-U3F23ASS.js +0 -2
  101. package/dist/chunk-U3F23ASS.js.map +0 -1
  102. package/dist/chunk-WUC5AUUJ.cjs +0 -2
  103. package/dist/chunk-WUC5AUUJ.cjs.map +0 -1
  104. package/dist/chunk-XWXLCG4E.cjs.map +0 -1
  105. package/dist/chunk-Y6AKG4FJ.js +0 -2
  106. package/dist/chunk-Y6AKG4FJ.js.map +0 -1
  107. package/dist/chunk-Z3ALIFYO.js.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";
112
111
  public: "public";
113
112
  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";
186
185
  public: "public";
187
186
  private: "private";
187
+ organization: "organization";
188
188
  monetized: "monetized";
189
189
  inherit: "inherit";
190
190
  }>;
@@ -222,15 +222,16 @@ declare const CommentSchema: z.ZodObject<{
222
222
  }, z.core.$strip>>>;
223
223
  state: z.ZodEnum<{
224
224
  success: "success";
225
+ error: "error";
225
226
  queued: "queued";
226
227
  "in-progress": "in-progress";
227
228
  "timed-out": "timed-out";
228
- error: "error";
229
229
  }>;
230
230
  source: z.ZodEnum<{
231
- api: "api";
232
231
  web: "web";
232
+ api: "api";
233
233
  }>;
234
+ is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
234
235
  created_at: z.ZodString;
235
236
  last_updated: z.ZodString;
236
237
  asset_type: z.ZodDefault<z.ZodLiteral<"comment">>;
@@ -240,30 +241,6 @@ declare const CommentSchema: z.ZodObject<{
240
241
  }, z.core.$strip>>>>;
241
242
  }, z.core.$strip>;
242
243
  declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
243
- user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
244
- id: z.ZodOptional<z.ZodUUID>;
245
- user_id: z.ZodOptional<z.ZodUUID>;
246
- username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
247
- name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
248
- avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
249
- bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
250
- is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
251
- claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
252
- urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
253
- value: z.ZodString;
254
- }, z.core.$strip>>>>;
255
- post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
256
- actor_type: z.ZodOptional<z.ZodEnum<{
257
- base: "base";
258
- agent: "agent";
259
- verified: "verified";
260
- }>>;
261
- plan_type: z.ZodOptional<z.ZodEnum<{
262
- free: "free";
263
- gold: "gold";
264
- }>>;
265
- last_active: z.ZodOptional<z.ZodString>;
266
- }, z.core.$strip>>>;
267
244
  organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
268
245
  id: z.ZodOptional<z.ZodUUID>;
269
246
  name: z.ZodOptional<z.ZodString>;
@@ -296,6 +273,56 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
296
273
  api_only: "api_only";
297
274
  }>>>>;
298
275
  }, 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>;
299
326
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
300
327
  id: z.ZodOptional<z.ZodUUID>;
301
328
  org_id: z.ZodOptional<z.ZodUUID>;
@@ -343,9 +370,9 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
343
370
  none: "none";
344
371
  }>>;
345
372
  visibility: z.ZodOptional<z.ZodEnum<{
346
- organization: "organization";
347
373
  public: "public";
348
374
  private: "private";
375
+ organization: "organization";
349
376
  monetized: "monetized";
350
377
  inherit: "inherit";
351
378
  }>>;
@@ -405,49 +432,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
405
432
  }, z.core.$strip>>>;
406
433
  created_at: z.ZodOptional<z.ZodString>;
407
434
  }, z.core.$strip>>>;
408
- org_id: z.ZodOptional<z.ZodUUID>;
409
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
410
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
411
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
- originality: z.ZodEnum<{
416
- original: "original";
417
- derivative: "derivative";
418
- "third-party": "third-party";
419
- }>;
420
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
421
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
- }, z.core.$strip>>>>;
423
- team_id: z.ZodOptional<z.ZodUUID>;
424
- visibility: z.ZodOptional<z.ZodEnum<{
425
- organization: "organization";
426
- public: "public";
427
- private: "private";
428
- monetized: "monetized";
429
- inherit: "inherit";
430
- }>>;
431
435
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
432
436
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
433
437
  text: z.ZodString;
434
438
  }, z.core.$strip>>>>;
435
- source: z.ZodOptional<z.ZodEnum<{
436
- api: "api";
437
- web: "web";
438
- }>>;
439
- monetization: z.ZodOptional<z.ZodEnum<{
440
- none: "none";
441
- "pay-to-unlock": "pay-to-unlock";
442
- "pay-per-use": "pay-per-use";
443
- }>>;
444
- state: z.ZodOptional<z.ZodEnum<{
445
- success: "success";
446
- queued: "queued";
447
- "in-progress": "in-progress";
448
- "timed-out": "timed-out";
449
- error: "error";
450
- }>>;
451
439
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
452
440
  license_id: z.ZodOptional<z.ZodString>;
453
441
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -467,10 +455,24 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
467
455
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
468
456
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
469
457
  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>>>>;
470
471
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
471
472
  type: z.ZodString;
472
473
  content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
473
474
  }, z.core.$strip>>>>>;
475
+ is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
474
476
  asset_type: z.ZodDefault<z.ZodLiteral<"comment">>;
475
477
  id: z.ZodDefault<z.ZodString>;
476
478
  name: z.ZodDefault<z.ZodString>;
@@ -482,23 +484,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
482
484
  name: string;
483
485
  created_at: string;
484
486
  last_updated: string;
485
- user?: {
486
- id?: string | undefined;
487
- user_id?: string | undefined;
488
- username?: string | null | undefined;
489
- name?: string | null | undefined;
490
- avatar_path?: string | null | undefined;
491
- bio?: string | null | undefined;
492
- is_provisioned?: boolean | undefined;
493
- claimed_at?: string | null | undefined;
494
- urls?: {
495
- value: string;
496
- }[] | undefined;
497
- post_id?: string | null | undefined;
498
- actor_type?: "base" | "agent" | "verified" | undefined;
499
- plan_type?: "free" | "gold" | undefined;
500
- last_active?: string | undefined;
501
- } | undefined;
502
487
  organization?: {
503
488
  id?: string | undefined;
504
489
  name?: string | undefined;
@@ -518,6 +503,30 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
518
503
  actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
519
504
  source_policy?: "any" | "web_only" | "api_only" | undefined;
520
505
  } | 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;
521
530
  team?: {
522
531
  id?: string | undefined;
523
532
  org_id?: string | undefined;
@@ -546,7 +555,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
546
555
  json: Record<string, any>;
547
556
  } | null | undefined;
548
557
  default_role?: "admin" | "read" | "write" | "none" | undefined;
549
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
558
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
550
559
  actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
551
560
  source_policy?: "any" | "web_only" | "api_only" | null | undefined;
552
561
  userMembership?: {
@@ -578,26 +587,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
578
587
  }[] | undefined;
579
588
  created_at?: string | undefined;
580
589
  } | undefined;
581
- org_id?: string | undefined;
582
- parent?: Record<string, any> | undefined;
583
- metadata?: {
584
- originality: "original" | "derivative" | "third-party";
585
- doi_url?: string | null | undefined;
586
- external_url?: string | null | undefined;
587
- paper_url?: string | null | undefined;
588
- github_url?: string | null | undefined;
589
- source?: string | null | undefined;
590
- reply_to_comment_id?: string | null | undefined;
591
- } | null | undefined;
592
- team_id?: string | undefined;
593
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
594
590
  description?: {
595
591
  json: Record<string, any>;
596
592
  text: string;
597
593
  } | null | undefined;
598
- source?: "api" | "web" | undefined;
599
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
600
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
601
594
  parent_id?: string | null | undefined;
602
595
  license_id?: string | undefined;
603
596
  license?: Record<string, any> | undefined;
@@ -611,33 +604,26 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
611
604
  stripe_product_id?: string | null | undefined;
612
605
  stripe_price_id?: string | null | undefined;
613
606
  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;
614
616
  preview?: {
615
617
  type: string;
616
618
  content: Record<string, any>[];
617
619
  } | null | undefined;
620
+ is_pinned_in_team?: boolean | undefined;
618
621
  }, {
619
622
  asset_type: "comment";
620
623
  id: string;
621
624
  name: string;
622
625
  created_at: string;
623
626
  last_updated: string;
624
- user?: {
625
- id?: string | undefined;
626
- user_id?: string | undefined;
627
- username?: string | null | undefined;
628
- name?: string | null | undefined;
629
- avatar_path?: string | null | undefined;
630
- bio?: string | null | undefined;
631
- is_provisioned?: boolean | undefined;
632
- claimed_at?: string | null | undefined;
633
- urls?: {
634
- value: string;
635
- }[] | undefined;
636
- post_id?: string | null | undefined;
637
- actor_type?: "base" | "agent" | "verified" | undefined;
638
- plan_type?: "free" | "gold" | undefined;
639
- last_active?: string | undefined;
640
- } | undefined;
641
627
  organization?: {
642
628
  id?: string | undefined;
643
629
  name?: string | undefined;
@@ -657,6 +643,30 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
657
643
  actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
658
644
  source_policy?: "any" | "web_only" | "api_only" | undefined;
659
645
  } | 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;
660
670
  team?: {
661
671
  id?: string | undefined;
662
672
  org_id?: string | undefined;
@@ -685,7 +695,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
685
695
  json: Record<string, any>;
686
696
  } | null | undefined;
687
697
  default_role?: "admin" | "read" | "write" | "none" | undefined;
688
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
698
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
689
699
  actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
690
700
  source_policy?: "any" | "web_only" | "api_only" | null | undefined;
691
701
  userMembership?: {
@@ -717,26 +727,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
717
727
  }[] | undefined;
718
728
  created_at?: string | undefined;
719
729
  } | undefined;
720
- org_id?: string | undefined;
721
- parent?: Record<string, any> | undefined;
722
- metadata?: {
723
- originality: "original" | "derivative" | "third-party";
724
- doi_url?: string | null | undefined;
725
- external_url?: string | null | undefined;
726
- paper_url?: string | null | undefined;
727
- github_url?: string | null | undefined;
728
- source?: string | null | undefined;
729
- reply_to_comment_id?: string | null | undefined;
730
- } | null | undefined;
731
- team_id?: string | undefined;
732
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
733
730
  description?: {
734
731
  json: Record<string, any>;
735
732
  text: string;
736
733
  } | null | undefined;
737
- source?: "api" | "web" | undefined;
738
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
739
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
740
734
  parent_id?: string | null | undefined;
741
735
  license_id?: string | undefined;
742
736
  license?: Record<string, any> | undefined;
@@ -750,10 +744,20 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
750
744
  stripe_product_id?: string | null | undefined;
751
745
  stripe_price_id?: string | null | undefined;
752
746
  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;
753
756
  preview?: {
754
757
  type: string;
755
758
  content: Record<string, any>[];
756
759
  } | null | undefined;
760
+ is_pinned_in_team?: boolean | undefined;
757
761
  }>>;
758
762
 
759
763
  type Comment = z.infer<typeof CommentSchema>;
@@ -1,2 +1,2 @@
1
- export{a as CommentSchema,b as CreateCommentSchema}from'../chunk-6YF2RSXS.js';import'../chunk-G2MXCB7Q.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=comments.js.map
1
+ export{a as CommentSchema,b as CreateCommentSchema}from'../chunk-G3VMEPTP.js';import'../chunk-SR5UZ4NP.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=comments.js.map
2
2
  //# sourceMappingURL=comments.js.map
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const AssetTypeSchema: z.ZodEnum<{
4
- user: "user";
5
4
  organization: "organization";
5
+ file: "file";
6
+ user: "user";
6
7
  team: "team";
7
8
  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";
18
17
  public: "public";
19
18
  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
- user: "user";
46
45
  organization: "organization";
46
+ file: "file";
47
+ user: "user";
47
48
  team: "team";
48
49
  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
- user: "user";
79
78
  organization: "organization";
79
+ file: "file";
80
+ user: "user";
80
81
  team: "team";
81
82
  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
- user: "user";
92
91
  organization: "organization";
92
+ file: "file";
93
+ user: "user";
93
94
  team: "team";
94
95
  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
- checkout: "checkout";
110
109
  api: "api";
110
+ checkout: "checkout";
111
111
  }>;
112
112
  assetType: z.ZodEnum<{
113
- user: "user";
114
113
  organization: "organization";
114
+ file: "file";
115
+ user: "user";
115
116
  team: "team";
116
117
  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
- user: "user";
141
140
  organization: "organization";
141
+ file: "file";
142
+ user: "user";
142
143
  team: "team";
143
144
  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";
158
159
  queued: "queued";
159
160
  "in-progress": "in-progress";
160
161
  "timed-out": "timed-out";
161
- error: "error";
162
162
  }>;
163
163
  declare const SourceSchema: z.ZodEnum<{
164
- api: "api";
165
164
  web: "web";
165
+ api: "api";
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
- user: "user";
5
4
  organization: "organization";
5
+ file: "file";
6
+ user: "user";
6
7
  team: "team";
7
8
  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";
18
17
  public: "public";
19
18
  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
- user: "user";
46
45
  organization: "organization";
46
+ file: "file";
47
+ user: "user";
47
48
  team: "team";
48
49
  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
- user: "user";
79
78
  organization: "organization";
79
+ file: "file";
80
+ user: "user";
80
81
  team: "team";
81
82
  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
- user: "user";
92
91
  organization: "organization";
92
+ file: "file";
93
+ user: "user";
93
94
  team: "team";
94
95
  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
- checkout: "checkout";
110
109
  api: "api";
110
+ checkout: "checkout";
111
111
  }>;
112
112
  assetType: z.ZodEnum<{
113
- user: "user";
114
113
  organization: "organization";
114
+ file: "file";
115
+ user: "user";
115
116
  team: "team";
116
117
  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
- user: "user";
141
140
  organization: "organization";
141
+ file: "file";
142
+ user: "user";
142
143
  team: "team";
143
144
  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";
158
159
  queued: "queued";
159
160
  "in-progress": "in-progress";
160
161
  "timed-out": "timed-out";
161
- error: "error";
162
162
  }>;
163
163
  declare const SourceSchema: z.ZodEnum<{
164
- api: "api";
165
164
  web: "web";
165
+ api: "api";
166
166
  }>;
167
167
 
168
168
  type Role = z.infer<typeof RoleSchema>;
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkNEINJFFK_cjs=require('../chunk-NEINJFFK.cjs');require('../chunk-WUC5AUUJ.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,"ConversationSchema",{enumerable:true,get:function(){return chunkNEINJFFK_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkNEINJFFK_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkNEINJFFK_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkNEINJFFK_cjs.c}});//# sourceMappingURL=conversations.cjs.map
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
2
2
  //# sourceMappingURL=conversations.cjs.map