@ourofoundation/ouro-js 3.2.4 → 3.3.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 (146) hide show
  1. package/dist/chunk-42EQ7ULD.cjs +2 -0
  2. package/dist/chunk-42EQ7ULD.cjs.map +1 -0
  3. package/dist/chunk-43KB23BA.cjs +2 -0
  4. package/dist/chunk-43KB23BA.cjs.map +1 -0
  5. package/dist/{chunk-7RF362MN.cjs → chunk-4K6R6FZD.cjs} +2 -2
  6. package/dist/{chunk-7RF362MN.cjs.map → chunk-4K6R6FZD.cjs.map} +1 -1
  7. package/dist/{chunk-SKQ6BRPY.js → chunk-6YF2RSXS.js} +2 -2
  8. package/dist/{chunk-SKQ6BRPY.js.map → chunk-6YF2RSXS.js.map} +1 -1
  9. package/dist/{chunk-TGAK4B5M.js → chunk-B4225TEG.js} +2 -2
  10. package/dist/{chunk-TGAK4B5M.js.map → chunk-B4225TEG.js.map} +1 -1
  11. package/dist/{chunk-Q34MIANF.js → chunk-BFBGVGNF.js} +2 -2
  12. package/dist/{chunk-Q34MIANF.js.map → chunk-BFBGVGNF.js.map} +1 -1
  13. package/dist/{chunk-OFSSOFOC.cjs → chunk-BQ5WODME.cjs} +2 -2
  14. package/dist/{chunk-OFSSOFOC.cjs.map → chunk-BQ5WODME.cjs.map} +1 -1
  15. package/dist/{chunk-WYHO26N6.js → chunk-CF56NFUG.js} +2 -2
  16. package/dist/{chunk-WYHO26N6.js.map → chunk-CF56NFUG.js.map} +1 -1
  17. package/dist/chunk-CIWFH5BJ.js +2 -0
  18. package/dist/chunk-CIWFH5BJ.js.map +1 -0
  19. package/dist/chunk-EY4OFSDP.js +2 -0
  20. package/dist/chunk-EY4OFSDP.js.map +1 -0
  21. package/dist/chunk-FDKZIS34.js +2 -0
  22. package/dist/chunk-FDKZIS34.js.map +1 -0
  23. package/dist/chunk-G24BRDHO.cjs +2 -0
  24. package/dist/chunk-G24BRDHO.cjs.map +1 -0
  25. package/dist/{chunk-KZOOYWQ7.js → chunk-G2MXCB7Q.js} +2 -2
  26. package/dist/{chunk-KZOOYWQ7.js.map → chunk-G2MXCB7Q.js.map} +1 -1
  27. package/dist/{chunk-FQ4F7DQH.cjs → chunk-IP4OVRZB.cjs} +2 -2
  28. package/dist/{chunk-FQ4F7DQH.cjs.map → chunk-IP4OVRZB.cjs.map} +1 -1
  29. package/dist/{chunk-XIH622YH.js → chunk-JISPX5A6.js} +2 -2
  30. package/dist/{chunk-XIH622YH.js.map → chunk-JISPX5A6.js.map} +1 -1
  31. package/dist/{chunk-KYK27OHG.cjs → chunk-MH4A7XAY.cjs} +2 -2
  32. package/dist/{chunk-KYK27OHG.cjs.map → chunk-MH4A7XAY.cjs.map} +1 -1
  33. package/dist/chunk-MOEVC3KD.cjs +2 -0
  34. package/dist/chunk-MOEVC3KD.cjs.map +1 -0
  35. package/dist/chunk-NEINJFFK.cjs +2 -0
  36. package/dist/{chunk-CVFVOARW.cjs.map → chunk-NEINJFFK.cjs.map} +1 -1
  37. package/dist/{chunk-P5JYABNP.cjs → chunk-QT3A4ULM.cjs} +2 -2
  38. package/dist/{chunk-P5JYABNP.cjs.map → chunk-QT3A4ULM.cjs.map} +1 -1
  39. package/dist/{chunk-7SSENGQL.js → chunk-U3F23ASS.js} +2 -2
  40. package/dist/{chunk-7SSENGQL.js.map → chunk-U3F23ASS.js.map} +1 -1
  41. package/dist/chunk-UY43EQTO.cjs +2 -0
  42. package/dist/{chunk-IW4MZW5P.cjs.map → chunk-UY43EQTO.cjs.map} +1 -1
  43. package/dist/{chunk-OIPOIY6M.cjs → chunk-VOY623ZD.cjs} +2 -2
  44. package/dist/{chunk-OIPOIY6M.cjs.map → chunk-VOY623ZD.cjs.map} +1 -1
  45. package/dist/{chunk-MB4EEZKP.js → chunk-WLGOABHV.js} +2 -2
  46. package/dist/{chunk-MB4EEZKP.js.map → chunk-WLGOABHV.js.map} +1 -1
  47. package/dist/chunk-WRHPQNEL.js +2 -0
  48. package/dist/chunk-WRHPQNEL.js.map +1 -0
  49. package/dist/{chunk-V5DSXK34.cjs → chunk-WUC5AUUJ.cjs} +2 -2
  50. package/dist/{chunk-V5DSXK34.cjs.map → chunk-WUC5AUUJ.cjs.map} +1 -1
  51. package/dist/{chunk-XWUYZSVO.js → chunk-Y6AKG4FJ.js} +2 -2
  52. package/dist/{chunk-XWUYZSVO.js.map → chunk-Y6AKG4FJ.js.map} +1 -1
  53. package/dist/index.cjs +1 -1
  54. package/dist/index.d.cts +1 -2
  55. package/dist/index.d.ts +1 -2
  56. package/dist/index.js +1 -1
  57. package/dist/schema/assets.cjs +1 -1
  58. package/dist/schema/assets.d.cts +84 -90
  59. package/dist/schema/assets.d.ts +84 -90
  60. package/dist/schema/assets.js +1 -1
  61. package/dist/schema/comments.cjs +1 -1
  62. package/dist/schema/comments.d.cts +136 -136
  63. package/dist/schema/comments.d.ts +136 -136
  64. package/dist/schema/comments.js +1 -1
  65. package/dist/schema/common.cjs +1 -1
  66. package/dist/schema/common.d.cts +17 -28
  67. package/dist/schema/common.d.ts +17 -28
  68. package/dist/schema/common.js +1 -1
  69. package/dist/schema/conversations.cjs +1 -1
  70. package/dist/schema/conversations.d.cts +69 -71
  71. package/dist/schema/conversations.d.ts +69 -71
  72. package/dist/schema/conversations.js +1 -1
  73. package/dist/schema/datasets.cjs +1 -1
  74. package/dist/schema/datasets.d.cts +106 -106
  75. package/dist/schema/datasets.d.ts +106 -106
  76. package/dist/schema/datasets.js +1 -1
  77. package/dist/schema/events.cjs +2 -0
  78. package/dist/schema/events.cjs.map +1 -0
  79. package/dist/schema/events.d.cts +113 -0
  80. package/dist/schema/events.d.ts +113 -0
  81. package/dist/schema/events.js +2 -0
  82. package/dist/schema/events.js.map +1 -0
  83. package/dist/schema/files.cjs +1 -1
  84. package/dist/schema/files.d.cts +100 -100
  85. package/dist/schema/files.d.ts +100 -100
  86. package/dist/schema/files.js +1 -1
  87. package/dist/schema/notifications.cjs +1 -1
  88. package/dist/schema/notifications.d.cts +2 -4
  89. package/dist/schema/notifications.d.ts +2 -4
  90. package/dist/schema/notifications.js +1 -1
  91. package/dist/schema/organizations.cjs +1 -1
  92. package/dist/schema/organizations.d.cts +1 -1
  93. package/dist/schema/organizations.d.ts +1 -1
  94. package/dist/schema/organizations.js +1 -1
  95. package/dist/schema/posts.cjs +1 -1
  96. package/dist/schema/posts.d.cts +127 -137
  97. package/dist/schema/posts.d.ts +127 -137
  98. package/dist/schema/posts.js +1 -1
  99. package/dist/schema/services.cjs +1 -1
  100. package/dist/schema/services.d.cts +124 -131
  101. package/dist/schema/services.d.ts +124 -131
  102. package/dist/schema/services.js +1 -1
  103. package/dist/schema/teams.cjs +1 -1
  104. package/dist/schema/teams.d.cts +18 -18
  105. package/dist/schema/teams.d.ts +18 -18
  106. package/dist/schema/teams.js +1 -1
  107. package/dist/utils/navigate.cjs +1 -1
  108. package/dist/utils/navigate.d.cts +2 -2
  109. package/dist/utils/navigate.d.ts +2 -2
  110. package/dist/utils/navigate.js +1 -1
  111. package/package.json +1 -1
  112. package/scripts/dump-events.ts +10 -0
  113. package/dist/chunk-3ZHWBPGA.cjs +0 -2
  114. package/dist/chunk-3ZHWBPGA.cjs.map +0 -1
  115. package/dist/chunk-6AK3RVZR.cjs +0 -2
  116. package/dist/chunk-6AK3RVZR.cjs.map +0 -1
  117. package/dist/chunk-6RGIIOOP.js +0 -2
  118. package/dist/chunk-6RGIIOOP.js.map +0 -1
  119. package/dist/chunk-6TOGDJKP.cjs +0 -2
  120. package/dist/chunk-6TOGDJKP.cjs.map +0 -1
  121. package/dist/chunk-7ABFUHWW.js +0 -2
  122. package/dist/chunk-7ABFUHWW.js.map +0 -1
  123. package/dist/chunk-BU2S7UEL.js +0 -2
  124. package/dist/chunk-BU2S7UEL.js.map +0 -1
  125. package/dist/chunk-CVFVOARW.cjs +0 -2
  126. package/dist/chunk-DHQJ2FCF.cjs +0 -2
  127. package/dist/chunk-DHQJ2FCF.cjs.map +0 -1
  128. package/dist/chunk-FNW6DDNP.cjs +0 -2
  129. package/dist/chunk-FNW6DDNP.cjs.map +0 -1
  130. package/dist/chunk-IW4MZW5P.cjs +0 -2
  131. package/dist/chunk-JPCZIGX2.js +0 -2
  132. package/dist/chunk-JPCZIGX2.js.map +0 -1
  133. package/dist/chunk-XMYZV7TD.js +0 -2
  134. package/dist/chunk-XMYZV7TD.js.map +0 -1
  135. package/dist/schema/blueprints.cjs +0 -2
  136. package/dist/schema/blueprints.cjs.map +0 -1
  137. package/dist/schema/blueprints.d.cts +0 -823
  138. package/dist/schema/blueprints.d.ts +0 -823
  139. package/dist/schema/blueprints.js +0 -2
  140. package/dist/schema/blueprints.js.map +0 -1
  141. package/dist/schema/replications.cjs +0 -2
  142. package/dist/schema/replications.cjs.map +0 -1
  143. package/dist/schema/replications.d.cts +0 -827
  144. package/dist/schema/replications.d.ts +0 -827
  145. package/dist/schema/replications.js +0 -2
  146. package/dist/schema/replications.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,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";
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
234
  created_at: z.ZodString;
235
235
  last_updated: z.ZodString;
@@ -240,30 +240,6 @@ declare const CommentSchema: z.ZodObject<{
240
240
  }, z.core.$strip>>>>;
241
241
  }, z.core.$strip>;
242
242
  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
243
  organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
268
244
  id: z.ZodOptional<z.ZodUUID>;
269
245
  name: z.ZodOptional<z.ZodString>;
@@ -296,6 +272,56 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
296
272
  api_only: "api_only";
297
273
  }>>>>;
298
274
  }, z.core.$strip>>>;
275
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
276
+ source: z.ZodOptional<z.ZodEnum<{
277
+ web: "web";
278
+ api: "api";
279
+ }>>;
280
+ visibility: z.ZodOptional<z.ZodEnum<{
281
+ public: "public";
282
+ private: "private";
283
+ organization: "organization";
284
+ monetized: "monetized";
285
+ inherit: "inherit";
286
+ }>>;
287
+ monetization: z.ZodOptional<z.ZodEnum<{
288
+ none: "none";
289
+ "pay-to-unlock": "pay-to-unlock";
290
+ "pay-per-use": "pay-per-use";
291
+ }>>;
292
+ state: z.ZodOptional<z.ZodEnum<{
293
+ success: "success";
294
+ error: "error";
295
+ queued: "queued";
296
+ "in-progress": "in-progress";
297
+ "timed-out": "timed-out";
298
+ }>>;
299
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
300
+ id: z.ZodOptional<z.ZodUUID>;
301
+ user_id: z.ZodOptional<z.ZodUUID>;
302
+ username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
303
+ name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
304
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
305
+ bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
306
+ is_provisioned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
307
+ claimed_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
308
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
309
+ value: z.ZodString;
310
+ }, z.core.$strip>>>>;
311
+ post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
312
+ actor_type: z.ZodOptional<z.ZodEnum<{
313
+ base: "base";
314
+ agent: "agent";
315
+ verified: "verified";
316
+ }>>;
317
+ plan_type: z.ZodOptional<z.ZodEnum<{
318
+ free: "free";
319
+ gold: "gold";
320
+ }>>;
321
+ last_active: z.ZodOptional<z.ZodString>;
322
+ }, z.core.$strip>>>;
323
+ org_id: z.ZodOptional<z.ZodUUID>;
324
+ team_id: z.ZodOptional<z.ZodUUID>;
299
325
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
300
326
  id: z.ZodOptional<z.ZodUUID>;
301
327
  org_id: z.ZodOptional<z.ZodUUID>;
@@ -343,9 +369,9 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
343
369
  none: "none";
344
370
  }>>;
345
371
  visibility: z.ZodOptional<z.ZodEnum<{
346
- organization: "organization";
347
372
  public: "public";
348
373
  private: "private";
374
+ organization: "organization";
349
375
  monetized: "monetized";
350
376
  inherit: "inherit";
351
377
  }>>;
@@ -405,49 +431,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
405
431
  }, z.core.$strip>>>;
406
432
  created_at: z.ZodOptional<z.ZodString>;
407
433
  }, 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
434
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
432
435
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
433
436
  text: z.ZodString;
434
437
  }, 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
438
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
452
439
  license_id: z.ZodOptional<z.ZodString>;
453
440
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -467,6 +454,19 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
467
454
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
468
455
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
469
456
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
457
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
458
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
+ originality: z.ZodEnum<{
463
+ original: "original";
464
+ derivative: "derivative";
465
+ "third-party": "third-party";
466
+ }>;
467
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ }, z.core.$strip>>>>;
470
470
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
471
471
  type: z.ZodString;
472
472
  content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -482,23 +482,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
482
482
  name: string;
483
483
  created_at: string;
484
484
  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
485
  organization?: {
503
486
  id?: string | undefined;
504
487
  name?: string | undefined;
@@ -518,6 +501,30 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
518
501
  actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
519
502
  source_policy?: "any" | "web_only" | "api_only" | undefined;
520
503
  } | undefined;
504
+ parent?: Record<string, any> | undefined;
505
+ source?: "web" | "api" | undefined;
506
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
507
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
508
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
509
+ user?: {
510
+ id?: string | undefined;
511
+ user_id?: string | undefined;
512
+ username?: string | null | undefined;
513
+ name?: string | null | undefined;
514
+ avatar_path?: string | null | undefined;
515
+ bio?: string | null | undefined;
516
+ is_provisioned?: boolean | undefined;
517
+ claimed_at?: string | null | undefined;
518
+ urls?: {
519
+ value: string;
520
+ }[] | undefined;
521
+ post_id?: string | null | undefined;
522
+ actor_type?: "base" | "agent" | "verified" | undefined;
523
+ plan_type?: "free" | "gold" | undefined;
524
+ last_active?: string | undefined;
525
+ } | undefined;
526
+ org_id?: string | undefined;
527
+ team_id?: string | undefined;
521
528
  team?: {
522
529
  id?: string | undefined;
523
530
  org_id?: string | undefined;
@@ -546,7 +553,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
546
553
  json: Record<string, any>;
547
554
  } | null | undefined;
548
555
  default_role?: "admin" | "read" | "write" | "none" | undefined;
549
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
556
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
550
557
  actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
551
558
  source_policy?: "any" | "web_only" | "api_only" | null | undefined;
552
559
  userMembership?: {
@@ -578,26 +585,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
578
585
  }[] | undefined;
579
586
  created_at?: string | undefined;
580
587
  } | 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
588
  description?: {
595
589
  json: Record<string, any>;
596
590
  text: string;
597
591
  } | 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
592
  parent_id?: string | null | undefined;
602
593
  license_id?: string | undefined;
603
594
  license?: Record<string, any> | undefined;
@@ -611,6 +602,15 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
611
602
  stripe_product_id?: string | null | undefined;
612
603
  stripe_price_id?: string | null | undefined;
613
604
  stripe_meter_id?: string | null | undefined;
605
+ metadata?: {
606
+ originality: "original" | "derivative" | "third-party";
607
+ doi_url?: string | null | undefined;
608
+ external_url?: string | null | undefined;
609
+ paper_url?: string | null | undefined;
610
+ github_url?: string | null | undefined;
611
+ source?: string | null | undefined;
612
+ reply_to_comment_id?: string | null | undefined;
613
+ } | null | undefined;
614
614
  preview?: {
615
615
  type: string;
616
616
  content: Record<string, any>[];
@@ -621,23 +621,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
621
621
  name: string;
622
622
  created_at: string;
623
623
  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
624
  organization?: {
642
625
  id?: string | undefined;
643
626
  name?: string | undefined;
@@ -657,6 +640,30 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
657
640
  actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
658
641
  source_policy?: "any" | "web_only" | "api_only" | undefined;
659
642
  } | undefined;
643
+ parent?: Record<string, any> | undefined;
644
+ source?: "web" | "api" | undefined;
645
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
646
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
647
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
648
+ user?: {
649
+ id?: string | undefined;
650
+ user_id?: string | undefined;
651
+ username?: string | null | undefined;
652
+ name?: string | null | undefined;
653
+ avatar_path?: string | null | undefined;
654
+ bio?: string | null | undefined;
655
+ is_provisioned?: boolean | undefined;
656
+ claimed_at?: string | null | undefined;
657
+ urls?: {
658
+ value: string;
659
+ }[] | undefined;
660
+ post_id?: string | null | undefined;
661
+ actor_type?: "base" | "agent" | "verified" | undefined;
662
+ plan_type?: "free" | "gold" | undefined;
663
+ last_active?: string | undefined;
664
+ } | undefined;
665
+ org_id?: string | undefined;
666
+ team_id?: string | undefined;
660
667
  team?: {
661
668
  id?: string | undefined;
662
669
  org_id?: string | undefined;
@@ -685,7 +692,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
685
692
  json: Record<string, any>;
686
693
  } | null | undefined;
687
694
  default_role?: "admin" | "read" | "write" | "none" | undefined;
688
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
695
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
689
696
  actor_type_policy?: "any" | "verified_only" | "agents_only" | null | undefined;
690
697
  source_policy?: "any" | "web_only" | "api_only" | null | undefined;
691
698
  userMembership?: {
@@ -717,26 +724,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
717
724
  }[] | undefined;
718
725
  created_at?: string | undefined;
719
726
  } | 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
727
  description?: {
734
728
  json: Record<string, any>;
735
729
  text: string;
736
730
  } | 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
731
  parent_id?: string | null | undefined;
741
732
  license_id?: string | undefined;
742
733
  license?: Record<string, any> | undefined;
@@ -750,6 +741,15 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
750
741
  stripe_product_id?: string | null | undefined;
751
742
  stripe_price_id?: string | null | undefined;
752
743
  stripe_meter_id?: string | null | undefined;
744
+ metadata?: {
745
+ originality: "original" | "derivative" | "third-party";
746
+ doi_url?: string | null | undefined;
747
+ external_url?: string | null | undefined;
748
+ paper_url?: string | null | undefined;
749
+ github_url?: string | null | undefined;
750
+ source?: string | null | undefined;
751
+ reply_to_comment_id?: string | null | undefined;
752
+ } | null | undefined;
753
753
  preview?: {
754
754
  type: string;
755
755
  content: Record<string, any>[];