@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
@@ -119,9 +119,9 @@ declare const PostSchema: z.ZodObject<{
119
119
  none: "none";
120
120
  }>>;
121
121
  visibility: z.ZodOptional<z.ZodEnum<{
122
- organization: "organization";
123
122
  public: "public";
124
123
  private: "private";
124
+ organization: "organization";
125
125
  monetized: "monetized";
126
126
  inherit: "inherit";
127
127
  }>>;
@@ -192,9 +192,9 @@ declare const PostSchema: z.ZodObject<{
192
192
  text: z.ZodString;
193
193
  }, z.core.$strip>>>;
194
194
  visibility: z.ZodEnum<{
195
- organization: "organization";
196
195
  public: "public";
197
196
  private: "private";
197
+ organization: "organization";
198
198
  monetized: "monetized";
199
199
  inherit: "inherit";
200
200
  }>;
@@ -219,32 +219,30 @@ declare const PostSchema: z.ZodObject<{
219
219
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
220
  state: z.ZodEnum<{
221
221
  success: "success";
222
+ error: "error";
222
223
  queued: "queued";
223
224
  "in-progress": "in-progress";
224
225
  "timed-out": "timed-out";
225
- error: "error";
226
226
  }>;
227
227
  source: z.ZodEnum<{
228
- api: "api";
229
228
  web: "web";
229
+ api: "api";
230
230
  }>;
231
231
  created_at: z.ZodString;
232
232
  last_updated: z.ZodString;
233
233
  name: z.ZodNullable<z.ZodString>;
234
234
  asset_type: z.ZodEnum<{
235
- user: "user";
236
235
  organization: "organization";
236
+ file: "file";
237
+ user: "user";
237
238
  team: "team";
238
239
  dataset: "dataset";
239
- file: "file";
240
240
  service: "service";
241
241
  route: "route";
242
242
  post: "post";
243
243
  quest: "quest";
244
244
  comment: "comment";
245
245
  conversation: "conversation";
246
- blueprint: "blueprint";
247
- replication: "replication";
248
246
  }>;
249
247
  metadata: z.ZodObject<{
250
248
  doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -273,28 +271,15 @@ declare const PostSchema: z.ZodObject<{
273
271
  }, z.core.$strip>;
274
272
  declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
275
273
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
276
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
277
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
- originality: z.ZodEnum<{
282
- original: "original";
283
- derivative: "derivative";
284
- "third-party": "third-party";
285
- }>;
286
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
- }, z.core.$strip>>>>;
289
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
290
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
291
- text: z.ZodString;
292
- }, z.core.$strip>>>>;
293
274
  monetization: z.ZodOptional<z.ZodEnum<{
294
275
  none: "none";
295
276
  "pay-to-unlock": "pay-to-unlock";
296
277
  "pay-per-use": "pay-per-use";
297
278
  }>>;
279
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
280
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
281
+ text: z.ZodString;
282
+ }, z.core.$strip>>>>;
298
283
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
299
284
  license_id: z.ZodOptional<z.ZodString>;
300
285
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -311,25 +296,38 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
311
296
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
312
297
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
313
298
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
299
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
300
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ originality: z.ZodEnum<{
305
+ original: "original";
306
+ derivative: "derivative";
307
+ "third-party": "third-party";
308
+ }>;
309
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ }, z.core.$strip>>>>;
314
312
  id: z.ZodDefault<z.ZodUUID>;
315
313
  team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
316
314
  org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
317
315
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
316
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
319
317
  success: "success";
318
+ error: "error";
320
319
  queued: "queued";
321
320
  "in-progress": "in-progress";
322
321
  "timed-out": "timed-out";
323
- error: "error";
324
322
  }>>>;
325
323
  source: z.ZodDefault<z.ZodEnum<{
326
- api: "api";
327
324
  web: "web";
325
+ api: "api";
328
326
  }>>;
329
327
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
330
- organization: "organization";
331
328
  public: "public";
332
329
  private: "private";
330
+ organization: "organization";
333
331
  monetized: "monetized";
334
332
  inherit: "inherit";
335
333
  }>>>;
@@ -345,9 +343,9 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
345
343
  id: string;
346
344
  team_id: string | null;
347
345
  org_id: string | null;
348
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
349
- source: "api" | "web";
350
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
346
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
347
+ source: "web" | "api";
348
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
351
349
  created_at: string;
352
350
  last_updated: string;
353
351
  asset_type: "post";
@@ -357,20 +355,11 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
357
355
  content: any[];
358
356
  };
359
357
  parent?: Record<string, any> | undefined;
360
- metadata?: {
361
- originality: "original" | "derivative" | "third-party";
362
- doi_url?: string | null | undefined;
363
- external_url?: string | null | undefined;
364
- paper_url?: string | null | undefined;
365
- github_url?: string | null | undefined;
366
- source?: string | null | undefined;
367
- reply_to_comment_id?: string | null | undefined;
368
- } | null | undefined;
358
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
369
359
  description?: {
370
360
  json: Record<string, any>;
371
361
  text: string;
372
362
  } | null | undefined;
373
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
374
363
  parent_id?: string | null | undefined;
375
364
  license_id?: string | undefined;
376
365
  price?: number | null | undefined;
@@ -381,14 +370,23 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
381
370
  stripe_product_id?: string | null | undefined;
382
371
  stripe_price_id?: string | null | undefined;
383
372
  stripe_meter_id?: string | null | undefined;
373
+ metadata?: {
374
+ originality: "original" | "derivative" | "third-party";
375
+ doi_url?: string | null | undefined;
376
+ external_url?: string | null | undefined;
377
+ paper_url?: string | null | undefined;
378
+ github_url?: string | null | undefined;
379
+ source?: string | null | undefined;
380
+ reply_to_comment_id?: string | null | undefined;
381
+ } | null | undefined;
384
382
  name_url_slug?: string | null | undefined;
385
383
  }, {
386
384
  id: string;
387
385
  team_id: string | null;
388
386
  org_id: string | null;
389
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
390
- source: "api" | "web";
391
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
387
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
388
+ source: "web" | "api";
389
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
392
390
  created_at: string;
393
391
  last_updated: string;
394
392
  asset_type: "post";
@@ -398,20 +396,11 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
398
396
  content: any[];
399
397
  };
400
398
  parent?: Record<string, any> | undefined;
401
- metadata?: {
402
- originality: "original" | "derivative" | "third-party";
403
- doi_url?: string | null | undefined;
404
- external_url?: string | null | undefined;
405
- paper_url?: string | null | undefined;
406
- github_url?: string | null | undefined;
407
- source?: string | null | undefined;
408
- reply_to_comment_id?: string | null | undefined;
409
- } | null | undefined;
399
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
410
400
  description?: {
411
401
  json: Record<string, any>;
412
402
  text: string;
413
403
  } | null | undefined;
414
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
415
404
  parent_id?: string | null | undefined;
416
405
  license_id?: string | undefined;
417
406
  price?: number | null | undefined;
@@ -422,6 +411,15 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
422
411
  stripe_product_id?: string | null | undefined;
423
412
  stripe_price_id?: string | null | undefined;
424
413
  stripe_meter_id?: string | null | undefined;
414
+ metadata?: {
415
+ originality: "original" | "derivative" | "third-party";
416
+ doi_url?: string | null | undefined;
417
+ external_url?: string | null | undefined;
418
+ paper_url?: string | null | undefined;
419
+ github_url?: string | null | undefined;
420
+ source?: string | null | undefined;
421
+ reply_to_comment_id?: string | null | undefined;
422
+ } | null | undefined;
425
423
  name_url_slug?: string | null | undefined;
426
424
  }>>;
427
425
  declare const ReadPostSchema: z.ZodObject<{
@@ -532,9 +530,9 @@ declare const ReadPostSchema: z.ZodObject<{
532
530
  none: "none";
533
531
  }>>;
534
532
  visibility: z.ZodOptional<z.ZodEnum<{
535
- organization: "organization";
536
533
  public: "public";
537
534
  private: "private";
535
+ organization: "organization";
538
536
  monetized: "monetized";
539
537
  inherit: "inherit";
540
538
  }>>;
@@ -605,9 +603,9 @@ declare const ReadPostSchema: z.ZodObject<{
605
603
  text: z.ZodString;
606
604
  }, z.core.$strip>>>;
607
605
  visibility: z.ZodEnum<{
608
- organization: "organization";
609
606
  public: "public";
610
607
  private: "private";
608
+ organization: "organization";
611
609
  monetized: "monetized";
612
610
  inherit: "inherit";
613
611
  }>;
@@ -632,32 +630,30 @@ declare const ReadPostSchema: z.ZodObject<{
632
630
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
633
631
  state: z.ZodEnum<{
634
632
  success: "success";
633
+ error: "error";
635
634
  queued: "queued";
636
635
  "in-progress": "in-progress";
637
636
  "timed-out": "timed-out";
638
- error: "error";
639
637
  }>;
640
638
  source: z.ZodEnum<{
641
- api: "api";
642
639
  web: "web";
640
+ api: "api";
643
641
  }>;
644
642
  created_at: z.ZodString;
645
643
  last_updated: z.ZodString;
646
644
  name: z.ZodNullable<z.ZodString>;
647
645
  asset_type: z.ZodEnum<{
648
- user: "user";
649
646
  organization: "organization";
647
+ file: "file";
648
+ user: "user";
650
649
  team: "team";
651
650
  dataset: "dataset";
652
- file: "file";
653
651
  service: "service";
654
652
  route: "route";
655
653
  post: "post";
656
654
  quest: "quest";
657
655
  comment: "comment";
658
656
  conversation: "conversation";
659
- blueprint: "blueprint";
660
- replication: "replication";
661
657
  }>;
662
658
  metadata: z.ZodObject<{
663
659
  doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -796,9 +792,9 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
796
792
  none: "none";
797
793
  }>>;
798
794
  visibility: z.ZodOptional<z.ZodEnum<{
799
- organization: "organization";
800
795
  public: "public";
801
796
  private: "private";
797
+ organization: "organization";
802
798
  monetized: "monetized";
803
799
  inherit: "inherit";
804
800
  }>>;
@@ -869,9 +865,9 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
869
865
  text: z.ZodString;
870
866
  }, z.core.$strip>>>;
871
867
  visibility: z.ZodEnum<{
872
- organization: "organization";
873
868
  public: "public";
874
869
  private: "private";
870
+ organization: "organization";
875
871
  monetized: "monetized";
876
872
  inherit: "inherit";
877
873
  }>;
@@ -896,32 +892,30 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
896
892
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
897
893
  state: z.ZodEnum<{
898
894
  success: "success";
895
+ error: "error";
899
896
  queued: "queued";
900
897
  "in-progress": "in-progress";
901
898
  "timed-out": "timed-out";
902
- error: "error";
903
899
  }>;
904
900
  source: z.ZodEnum<{
905
- api: "api";
906
901
  web: "web";
902
+ api: "api";
907
903
  }>;
908
904
  created_at: z.ZodString;
909
905
  last_updated: z.ZodString;
910
906
  name: z.ZodNullable<z.ZodString>;
911
907
  asset_type: z.ZodEnum<{
912
- user: "user";
913
908
  organization: "organization";
909
+ file: "file";
910
+ user: "user";
914
911
  team: "team";
915
912
  dataset: "dataset";
916
- file: "file";
917
913
  service: "service";
918
914
  route: "route";
919
915
  post: "post";
920
916
  quest: "quest";
921
917
  comment: "comment";
922
918
  conversation: "conversation";
923
- blueprint: "blueprint";
924
- replication: "replication";
925
919
  }>;
926
920
  metadata: z.ZodObject<{
927
921
  doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -1060,9 +1054,9 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1060
1054
  none: "none";
1061
1055
  }>>;
1062
1056
  visibility: z.ZodOptional<z.ZodEnum<{
1063
- organization: "organization";
1064
1057
  public: "public";
1065
1058
  private: "private";
1059
+ organization: "organization";
1066
1060
  monetized: "monetized";
1067
1061
  inherit: "inherit";
1068
1062
  }>>;
@@ -1133,9 +1127,9 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1133
1127
  text: z.ZodString;
1134
1128
  }, z.core.$strip>>>;
1135
1129
  visibility: z.ZodEnum<{
1136
- organization: "organization";
1137
1130
  public: "public";
1138
1131
  private: "private";
1132
+ organization: "organization";
1139
1133
  monetized: "monetized";
1140
1134
  inherit: "inherit";
1141
1135
  }>;
@@ -1160,32 +1154,30 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1160
1154
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1161
1155
  state: z.ZodEnum<{
1162
1156
  success: "success";
1157
+ error: "error";
1163
1158
  queued: "queued";
1164
1159
  "in-progress": "in-progress";
1165
1160
  "timed-out": "timed-out";
1166
- error: "error";
1167
1161
  }>;
1168
1162
  source: z.ZodEnum<{
1169
- api: "api";
1170
1163
  web: "web";
1164
+ api: "api";
1171
1165
  }>;
1172
1166
  created_at: z.ZodString;
1173
1167
  last_updated: z.ZodString;
1174
1168
  name: z.ZodNullable<z.ZodString>;
1175
1169
  asset_type: z.ZodEnum<{
1176
- user: "user";
1177
1170
  organization: "organization";
1171
+ file: "file";
1172
+ user: "user";
1178
1173
  team: "team";
1179
1174
  dataset: "dataset";
1180
- file: "file";
1181
1175
  service: "service";
1182
1176
  route: "route";
1183
1177
  post: "post";
1184
1178
  quest: "quest";
1185
1179
  comment: "comment";
1186
1180
  conversation: "conversation";
1187
- blueprint: "blueprint";
1188
- replication: "replication";
1189
1181
  }>;
1190
1182
  metadata: z.ZodObject<{
1191
1183
  doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -1213,53 +1205,31 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1213
1205
  }, z.core.$strip>>;
1214
1206
  }, z.core.$strip>>;
1215
1207
  declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1208
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1209
+ source: z.ZodOptional<z.ZodEnum<{
1210
+ web: "web";
1211
+ api: "api";
1212
+ }>>;
1216
1213
  asset_type: z.ZodOptional<z.ZodEnum<{
1217
- user: "user";
1218
1214
  organization: "organization";
1215
+ file: "file";
1216
+ user: "user";
1219
1217
  team: "team";
1220
1218
  dataset: "dataset";
1221
- file: "file";
1222
1219
  service: "service";
1223
1220
  route: "route";
1224
1221
  post: "post";
1225
1222
  quest: "quest";
1226
1223
  comment: "comment";
1227
1224
  conversation: "conversation";
1228
- blueprint: "blueprint";
1229
- replication: "replication";
1230
1225
  }>>;
1231
- org_id: z.ZodOptional<z.ZodUUID>;
1232
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1233
- metadata: z.ZodOptional<z.ZodObject<{
1234
- doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1235
- external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1236
- paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1237
- github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1238
- originality: z.ZodOptional<z.ZodEnum<{
1239
- original: "original";
1240
- derivative: "derivative";
1241
- "third-party": "third-party";
1242
- }>>;
1243
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1244
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1245
- }, z.core.$strip>>;
1246
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1247
- team_id: z.ZodOptional<z.ZodUUID>;
1248
1226
  visibility: z.ZodOptional<z.ZodEnum<{
1249
- organization: "organization";
1250
1227
  public: "public";
1251
1228
  private: "private";
1229
+ organization: "organization";
1252
1230
  monetized: "monetized";
1253
1231
  inherit: "inherit";
1254
1232
  }>>;
1255
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1256
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
1257
- text: z.ZodString;
1258
- }, z.core.$strip>>>>;
1259
- source: z.ZodOptional<z.ZodEnum<{
1260
- api: "api";
1261
- web: "web";
1262
- }>>;
1263
1233
  monetization: z.ZodOptional<z.ZodEnum<{
1264
1234
  none: "none";
1265
1235
  "pay-to-unlock": "pay-to-unlock";
@@ -1267,11 +1237,18 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1267
1237
  }>>;
1268
1238
  state: z.ZodOptional<z.ZodEnum<{
1269
1239
  success: "success";
1240
+ error: "error";
1270
1241
  queued: "queued";
1271
1242
  "in-progress": "in-progress";
1272
1243
  "timed-out": "timed-out";
1273
- error: "error";
1274
1244
  }>>;
1245
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1246
+ org_id: z.ZodOptional<z.ZodUUID>;
1247
+ team_id: z.ZodOptional<z.ZodUUID>;
1248
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1249
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
1250
+ text: z.ZodString;
1251
+ }, z.core.$strip>>>>;
1275
1252
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
1276
1253
  license_id: z.ZodOptional<z.ZodString>;
1277
1254
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -1290,6 +1267,19 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1290
1267
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1291
1268
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1292
1269
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1270
+ metadata: z.ZodOptional<z.ZodObject<{
1271
+ doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1272
+ external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1273
+ paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1274
+ github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1275
+ originality: z.ZodOptional<z.ZodEnum<{
1276
+ original: "original";
1277
+ derivative: "derivative";
1278
+ "third-party": "third-party";
1279
+ }>>;
1280
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1281
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1282
+ }, z.core.$strip>>;
1293
1283
  preview: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1294
1284
  type: z.ZodLiteral<"doc">;
1295
1285
  content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
@@ -1297,28 +1287,19 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1297
1287
  last_updated: z.ZodDefault<z.ZodString>;
1298
1288
  }, z.core.$strip>, z.ZodTransform<{
1299
1289
  last_updated: string;
1300
- asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
1301
- org_id?: string | undefined;
1302
1290
  parent?: Record<string, any> | undefined;
1303
- metadata?: {
1304
- doi_url?: string | null | undefined;
1305
- external_url?: string | null | undefined;
1306
- paper_url?: string | null | undefined;
1307
- github_url?: string | null | undefined;
1308
- originality?: "original" | "derivative" | "third-party" | undefined;
1309
- source?: string | null | undefined;
1310
- reply_to_comment_id?: string | null | undefined;
1311
- } | undefined;
1291
+ source?: "web" | "api" | undefined;
1292
+ asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1293
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
1294
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1295
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1312
1296
  name?: string | null | undefined;
1297
+ org_id?: string | undefined;
1313
1298
  team_id?: string | undefined;
1314
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1315
1299
  description?: {
1316
1300
  json: Record<string, any>;
1317
1301
  text: string;
1318
1302
  } | null | undefined;
1319
- source?: "api" | "web" | undefined;
1320
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1321
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1322
1303
  parent_id?: string | null | undefined;
1323
1304
  license_id?: string | undefined;
1324
1305
  license?: Record<string, any> | undefined;
@@ -1331,15 +1312,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1331
1312
  stripe_product_id?: string | null | undefined;
1332
1313
  stripe_price_id?: string | null | undefined;
1333
1314
  stripe_meter_id?: string | null | undefined;
1334
- preview?: {
1335
- type: "doc";
1336
- content: any[];
1337
- } | undefined;
1338
- }, {
1339
- last_updated: string;
1340
- asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
1341
- org_id?: string | undefined;
1342
- parent?: Record<string, any> | undefined;
1343
1315
  metadata?: {
1344
1316
  doi_url?: string | null | undefined;
1345
1317
  external_url?: string | null | undefined;
@@ -1349,16 +1321,25 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1349
1321
  source?: string | null | undefined;
1350
1322
  reply_to_comment_id?: string | null | undefined;
1351
1323
  } | undefined;
1324
+ preview?: {
1325
+ type: "doc";
1326
+ content: any[];
1327
+ } | undefined;
1328
+ }, {
1329
+ last_updated: string;
1330
+ parent?: Record<string, any> | undefined;
1331
+ source?: "web" | "api" | undefined;
1332
+ asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1333
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
1334
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1335
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1352
1336
  name?: string | null | undefined;
1337
+ org_id?: string | undefined;
1353
1338
  team_id?: string | undefined;
1354
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1355
1339
  description?: {
1356
1340
  json: Record<string, any>;
1357
1341
  text: string;
1358
1342
  } | null | undefined;
1359
- source?: "api" | "web" | undefined;
1360
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1361
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1362
1343
  parent_id?: string | null | undefined;
1363
1344
  license_id?: string | undefined;
1364
1345
  license?: Record<string, any> | undefined;
@@ -1371,6 +1352,15 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1371
1352
  stripe_product_id?: string | null | undefined;
1372
1353
  stripe_price_id?: string | null | undefined;
1373
1354
  stripe_meter_id?: string | null | undefined;
1355
+ metadata?: {
1356
+ doi_url?: string | null | undefined;
1357
+ external_url?: string | null | undefined;
1358
+ paper_url?: string | null | undefined;
1359
+ github_url?: string | null | undefined;
1360
+ originality?: "original" | "derivative" | "third-party" | undefined;
1361
+ source?: string | null | undefined;
1362
+ reply_to_comment_id?: string | null | undefined;
1363
+ } | undefined;
1374
1364
  preview?: {
1375
1365
  type: "doc";
1376
1366
  content: any[];