@ourofoundation/ouro-js 3.7.8 → 3.7.9

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 (95) hide show
  1. package/dist/{chunk-QWD7POET.cjs → chunk-2KQZYT5W.cjs} +2 -2
  2. package/dist/{chunk-QWD7POET.cjs.map → chunk-2KQZYT5W.cjs.map} +1 -1
  3. package/dist/{chunk-66AAHP6X.cjs → chunk-4CXHZFX4.cjs} +2 -2
  4. package/dist/{chunk-66AAHP6X.cjs.map → chunk-4CXHZFX4.cjs.map} +1 -1
  5. package/dist/{chunk-ASLHRT77.js → chunk-4TQRYYVQ.js} +2 -2
  6. package/dist/{chunk-ASLHRT77.js.map → chunk-4TQRYYVQ.js.map} +1 -1
  7. package/dist/chunk-5CSPQ2RL.cjs +2 -0
  8. package/dist/chunk-5CSPQ2RL.cjs.map +1 -0
  9. package/dist/{chunk-UVVPXYJA.cjs → chunk-6DS2XXIF.cjs} +2 -2
  10. package/dist/{chunk-UVVPXYJA.cjs.map → chunk-6DS2XXIF.cjs.map} +1 -1
  11. package/dist/{chunk-Y6TOO6ET.js → chunk-732QBVGP.js} +2 -2
  12. package/dist/{chunk-Y6TOO6ET.js.map → chunk-732QBVGP.js.map} +1 -1
  13. package/dist/{chunk-KHUEMWG2.js → chunk-BUO2Y3O3.js} +2 -2
  14. package/dist/{chunk-KHUEMWG2.js.map → chunk-BUO2Y3O3.js.map} +1 -1
  15. package/dist/{chunk-B3OK6NNR.cjs → chunk-EP5DBAZQ.cjs} +2 -2
  16. package/dist/{chunk-B3OK6NNR.cjs.map → chunk-EP5DBAZQ.cjs.map} +1 -1
  17. package/dist/{chunk-3C7PGJ33.js → chunk-F6PWGWDJ.js} +2 -2
  18. package/dist/{chunk-3C7PGJ33.js.map → chunk-F6PWGWDJ.js.map} +1 -1
  19. package/dist/{chunk-PB4XG5WM.js → chunk-FDCVNMMO.js} +2 -2
  20. package/dist/{chunk-PB4XG5WM.js.map → chunk-FDCVNMMO.js.map} +1 -1
  21. package/dist/{chunk-3OUJXTJZ.js → chunk-HZDBAPRY.js} +2 -2
  22. package/dist/{chunk-3OUJXTJZ.js.map → chunk-HZDBAPRY.js.map} +1 -1
  23. package/dist/{chunk-LD5G6GFH.cjs → chunk-ICEXKHCC.cjs} +2 -2
  24. package/dist/{chunk-LD5G6GFH.cjs.map → chunk-ICEXKHCC.cjs.map} +1 -1
  25. package/dist/{chunk-EMDUI7HF.js → chunk-JAVIKBEC.js} +2 -2
  26. package/dist/{chunk-EMDUI7HF.js.map → chunk-JAVIKBEC.js.map} +1 -1
  27. package/dist/{chunk-W6MBAIKZ.cjs → chunk-PXT4NFAJ.cjs} +2 -2
  28. package/dist/{chunk-W6MBAIKZ.cjs.map → chunk-PXT4NFAJ.cjs.map} +1 -1
  29. package/dist/{chunk-UDTRH3OQ.cjs → chunk-QJ3DLN2Y.cjs} +2 -2
  30. package/dist/{chunk-UDTRH3OQ.cjs.map → chunk-QJ3DLN2Y.cjs.map} +1 -1
  31. package/dist/{chunk-4NAPVNIX.js → chunk-SIZVKGUT.js} +2 -2
  32. package/dist/{chunk-4NAPVNIX.js.map → chunk-SIZVKGUT.js.map} +1 -1
  33. package/dist/{chunk-3RFYEL3A.cjs → chunk-SZ5PIWEE.cjs} +2 -2
  34. package/dist/{chunk-3RFYEL3A.cjs.map → chunk-SZ5PIWEE.cjs.map} +1 -1
  35. package/dist/{chunk-7YG2YDXN.cjs → chunk-TB7MTWMO.cjs} +2 -2
  36. package/dist/{chunk-7YG2YDXN.cjs.map → chunk-TB7MTWMO.cjs.map} +1 -1
  37. package/dist/chunk-V3QRQO6H.js +2 -0
  38. package/dist/chunk-V3QRQO6H.js.map +1 -0
  39. package/dist/{chunk-YTIUJ72Q.js → chunk-VC4DZZ3C.js} +2 -2
  40. package/dist/{chunk-YTIUJ72Q.js.map → chunk-VC4DZZ3C.js.map} +1 -1
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.d.cts +1 -1
  43. package/dist/index.d.ts +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/schema/asset-filters.d.cts +7 -7
  46. package/dist/schema/asset-filters.d.ts +7 -7
  47. package/dist/schema/assets.cjs +1 -1
  48. package/dist/schema/assets.d.cts +63 -63
  49. package/dist/schema/assets.d.ts +63 -63
  50. package/dist/schema/assets.js +1 -1
  51. package/dist/schema/comments.cjs +1 -1
  52. package/dist/schema/comments.d.cts +59 -59
  53. package/dist/schema/comments.d.ts +59 -59
  54. package/dist/schema/comments.js +1 -1
  55. package/dist/schema/common.d.cts +9 -9
  56. package/dist/schema/common.d.ts +9 -9
  57. package/dist/schema/conversations.cjs +1 -1
  58. package/dist/schema/conversations.d.cts +57 -57
  59. package/dist/schema/conversations.d.ts +57 -57
  60. package/dist/schema/conversations.js +1 -1
  61. package/dist/schema/datasets.cjs +1 -1
  62. package/dist/schema/datasets.d.cts +137 -137
  63. package/dist/schema/datasets.d.ts +137 -137
  64. package/dist/schema/datasets.js +1 -1
  65. package/dist/schema/files.cjs +1 -1
  66. package/dist/schema/files.d.cts +88 -88
  67. package/dist/schema/files.d.ts +88 -88
  68. package/dist/schema/files.js +1 -1
  69. package/dist/schema/notifications.d.cts +106 -106
  70. package/dist/schema/notifications.d.ts +106 -106
  71. package/dist/schema/posts.cjs +1 -1
  72. package/dist/schema/posts.d.cts +91 -91
  73. package/dist/schema/posts.d.ts +91 -91
  74. package/dist/schema/posts.js +1 -1
  75. package/dist/schema/quests.cjs +1 -1
  76. package/dist/schema/quests.d.cts +192 -131
  77. package/dist/schema/quests.d.ts +192 -131
  78. package/dist/schema/quests.js +1 -1
  79. package/dist/schema/services.cjs +1 -1
  80. package/dist/schema/services.d.cts +132 -132
  81. package/dist/schema/services.d.ts +132 -132
  82. package/dist/schema/services.js +1 -1
  83. package/dist/schema/teams.cjs +1 -1
  84. package/dist/schema/teams.d.cts +15 -15
  85. package/dist/schema/teams.d.ts +15 -15
  86. package/dist/schema/teams.js +1 -1
  87. package/dist/utils/quest-submission.cjs +1 -1
  88. package/dist/utils/quest-submission.d.cts +4 -4
  89. package/dist/utils/quest-submission.d.ts +4 -4
  90. package/dist/utils/quest-submission.js +1 -1
  91. package/package.json +1 -1
  92. package/dist/chunk-W6AKVS4L.cjs +0 -2
  93. package/dist/chunk-W6AKVS4L.cjs.map +0 -1
  94. package/dist/chunk-XVN3DFMT.js +0 -2
  95. package/dist/chunk-XVN3DFMT.js.map +0 -1
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk66AAHP6X_cjs=require('../chunk-66AAHP6X.cjs');require('../chunk-7YG2YDXN.cjs'),require('../chunk-LD5G6GFH.cjs'),require('../chunk-ZRJUBEIK.cjs'),require('../chunk-L6SVUDFH.cjs'),require('../chunk-MNECKGIP.cjs'),require('../chunk-7HF5VHUN.cjs'),require('../chunk-JRBBNFFI.cjs');Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunk66AAHP6X_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunk66AAHP6X_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunk66AAHP6X_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunk66AAHP6X_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunk66AAHP6X_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunk66AAHP6X_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunk66AAHP6X_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunk66AAHP6X_cjs.h}});//# sourceMappingURL=posts.cjs.map
1
+ 'use strict';var chunk4CXHZFX4_cjs=require('../chunk-4CXHZFX4.cjs');require('../chunk-TB7MTWMO.cjs'),require('../chunk-ICEXKHCC.cjs'),require('../chunk-ZRJUBEIK.cjs'),require('../chunk-L6SVUDFH.cjs'),require('../chunk-JRBBNFFI.cjs'),require('../chunk-7HF5VHUN.cjs'),require('../chunk-MNECKGIP.cjs');Object.defineProperty(exports,"ContentSchema",{enumerable:true,get:function(){return chunk4CXHZFX4_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunk4CXHZFX4_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunk4CXHZFX4_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunk4CXHZFX4_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunk4CXHZFX4_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunk4CXHZFX4_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunk4CXHZFX4_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunk4CXHZFX4_cjs.h}});//# sourceMappingURL=posts.cjs.map
2
2
  //# sourceMappingURL=posts.cjs.map
@@ -252,14 +252,14 @@ declare const PostSchema: z.ZodObject<{
252
252
  }, z.core.$strip>;
253
253
  state: z.ZodEnum<{
254
254
  success: "success";
255
- error: "error";
256
255
  queued: "queued";
257
256
  "in-progress": "in-progress";
258
257
  "timed-out": "timed-out";
258
+ error: "error";
259
259
  }>;
260
260
  source: z.ZodEnum<{
261
- web: "web";
262
261
  api: "api";
262
+ web: "web";
263
263
  }>;
264
264
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
265
265
  created_at: z.ZodString;
@@ -267,10 +267,10 @@ declare const PostSchema: z.ZodObject<{
267
267
  name: z.ZodNullable<z.ZodString>;
268
268
  asset_type: z.ZodEnum<{
269
269
  user: "user";
270
- file: "file";
271
270
  organization: "organization";
272
271
  team: "team";
273
272
  dataset: "dataset";
273
+ file: "file";
274
274
  service: "service";
275
275
  route: "route";
276
276
  post: "post";
@@ -295,16 +295,20 @@ declare const PostSchema: z.ZodObject<{
295
295
  }, z.core.$strip>>;
296
296
  }, z.core.$strip>;
297
297
  declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
298
- monetization: z.ZodOptional<z.ZodEnum<{
299
- none: "none";
300
- "pay-to-unlock": "pay-to-unlock";
301
- "pay-per-use": "pay-per-use";
302
- }>>;
303
298
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
299
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
300
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ }, z.core.$strip>>>>;
304
303
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
305
304
  json: z.ZodRecord<z.ZodString, z.ZodAny>;
306
305
  text: z.ZodString;
307
306
  }, z.core.$strip>>>>;
307
+ monetization: z.ZodOptional<z.ZodEnum<{
308
+ none: "none";
309
+ "pay-to-unlock": "pay-to-unlock";
310
+ "pay-per-use": "pay-per-use";
311
+ }>>;
308
312
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
309
313
  license_id: z.ZodOptional<z.ZodString>;
310
314
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -321,24 +325,20 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
321
325
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
322
326
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
323
327
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
324
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
325
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
- }, z.core.$strip>>>>;
328
328
  id: z.ZodDefault<z.ZodUUID>;
329
329
  team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
330
330
  org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
331
331
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
332
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
333
333
  success: "success";
334
- error: "error";
335
334
  queued: "queued";
336
335
  "in-progress": "in-progress";
337
336
  "timed-out": "timed-out";
337
+ error: "error";
338
338
  }>>>;
339
339
  source: z.ZodDefault<z.ZodEnum<{
340
- web: "web";
341
340
  api: "api";
341
+ web: "web";
342
342
  }>>;
343
343
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
344
344
  organization: "organization";
@@ -424,8 +424,8 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
424
424
  id: string;
425
425
  team_id: string | null;
426
426
  org_id: string | null;
427
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
428
- source: "web" | "api";
427
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
428
+ source: "api" | "web";
429
429
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
430
430
  attribution: {
431
431
  originality: "original" | "derivative" | "third-party";
@@ -454,12 +454,16 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
454
454
  type: "doc";
455
455
  content: any[];
456
456
  };
457
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
458
457
  parent?: Record<string, any> | undefined;
458
+ metadata?: {
459
+ source?: string | null | undefined;
460
+ reply_to_comment_id?: string | null | undefined;
461
+ } | null | undefined;
459
462
  description?: {
460
463
  json: Record<string, any>;
461
464
  text: string;
462
465
  } | null | undefined;
466
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
463
467
  parent_id?: string | null | undefined;
464
468
  license_id?: string | undefined;
465
469
  price?: number | null | undefined;
@@ -470,17 +474,13 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
470
474
  stripe_product_id?: string | null | undefined;
471
475
  stripe_price_id?: string | null | undefined;
472
476
  stripe_meter_id?: string | null | undefined;
473
- metadata?: {
474
- source?: string | null | undefined;
475
- reply_to_comment_id?: string | null | undefined;
476
- } | null | undefined;
477
477
  name_url_slug?: string | null | undefined;
478
478
  }, {
479
479
  id: string;
480
480
  team_id: string | null;
481
481
  org_id: string | null;
482
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
483
- source: "web" | "api";
482
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
483
+ source: "api" | "web";
484
484
  visibility: "organization" | "public" | "private" | "monetized" | "inherit";
485
485
  attribution: {
486
486
  originality: "original" | "derivative" | "third-party";
@@ -509,12 +509,16 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
509
509
  type: "doc";
510
510
  content: any[];
511
511
  };
512
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
513
512
  parent?: Record<string, any> | undefined;
513
+ metadata?: {
514
+ source?: string | null | undefined;
515
+ reply_to_comment_id?: string | null | undefined;
516
+ } | null | undefined;
514
517
  description?: {
515
518
  json: Record<string, any>;
516
519
  text: string;
517
520
  } | null | undefined;
521
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
518
522
  parent_id?: string | null | undefined;
519
523
  license_id?: string | undefined;
520
524
  price?: number | null | undefined;
@@ -525,10 +529,6 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
525
529
  stripe_product_id?: string | null | undefined;
526
530
  stripe_price_id?: string | null | undefined;
527
531
  stripe_meter_id?: string | null | undefined;
528
- metadata?: {
529
- source?: string | null | undefined;
530
- reply_to_comment_id?: string | null | undefined;
531
- } | null | undefined;
532
532
  name_url_slug?: string | null | undefined;
533
533
  }>>;
534
534
  declare const ReadPostSchema: z.ZodObject<{
@@ -772,14 +772,14 @@ declare const ReadPostSchema: z.ZodObject<{
772
772
  }, z.core.$strip>;
773
773
  state: z.ZodEnum<{
774
774
  success: "success";
775
- error: "error";
776
775
  queued: "queued";
777
776
  "in-progress": "in-progress";
778
777
  "timed-out": "timed-out";
778
+ error: "error";
779
779
  }>;
780
780
  source: z.ZodEnum<{
781
- web: "web";
782
781
  api: "api";
782
+ web: "web";
783
783
  }>;
784
784
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
785
785
  created_at: z.ZodString;
@@ -787,10 +787,10 @@ declare const ReadPostSchema: z.ZodObject<{
787
787
  name: z.ZodNullable<z.ZodString>;
788
788
  asset_type: z.ZodEnum<{
789
789
  user: "user";
790
- file: "file";
791
790
  organization: "organization";
792
791
  team: "team";
793
792
  dataset: "dataset";
793
+ file: "file";
794
794
  service: "service";
795
795
  route: "route";
796
796
  post: "post";
@@ -996,10 +996,10 @@ declare const ReadPostSchema: z.ZodObject<{
996
996
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
997
997
  asset_type: z.ZodOptional<z.ZodEnum<{
998
998
  user: "user";
999
- file: "file";
1000
999
  organization: "organization";
1001
1000
  team: "team";
1002
1001
  dataset: "dataset";
1002
+ file: "file";
1003
1003
  service: "service";
1004
1004
  route: "route";
1005
1005
  post: "post";
@@ -1076,14 +1076,14 @@ declare const ReadPostSchema: z.ZodObject<{
1076
1076
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
1077
1077
  state: z.ZodOptional<z.ZodEnum<{
1078
1078
  success: "success";
1079
- error: "error";
1080
1079
  queued: "queued";
1081
1080
  "in-progress": "in-progress";
1082
1081
  "timed-out": "timed-out";
1082
+ error: "error";
1083
1083
  }>>;
1084
1084
  source: z.ZodOptional<z.ZodEnum<{
1085
- web: "web";
1086
1085
  api: "api";
1086
+ web: "web";
1087
1087
  }>>;
1088
1088
  is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
1089
1089
  created_at: z.ZodOptional<z.ZodString>;
@@ -1364,14 +1364,14 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
1364
1364
  }, z.core.$strip>;
1365
1365
  state: z.ZodEnum<{
1366
1366
  success: "success";
1367
- error: "error";
1368
1367
  queued: "queued";
1369
1368
  "in-progress": "in-progress";
1370
1369
  "timed-out": "timed-out";
1370
+ error: "error";
1371
1371
  }>;
1372
1372
  source: z.ZodEnum<{
1373
- web: "web";
1374
1373
  api: "api";
1374
+ web: "web";
1375
1375
  }>;
1376
1376
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1377
1377
  created_at: z.ZodString;
@@ -1379,10 +1379,10 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
1379
1379
  name: z.ZodNullable<z.ZodString>;
1380
1380
  asset_type: z.ZodEnum<{
1381
1381
  user: "user";
1382
- file: "file";
1383
1382
  organization: "organization";
1384
1383
  team: "team";
1385
1384
  dataset: "dataset";
1385
+ file: "file";
1386
1386
  service: "service";
1387
1387
  route: "route";
1388
1388
  post: "post";
@@ -1588,10 +1588,10 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
1588
1588
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1589
1589
  asset_type: z.ZodOptional<z.ZodEnum<{
1590
1590
  user: "user";
1591
- file: "file";
1592
1591
  organization: "organization";
1593
1592
  team: "team";
1594
1593
  dataset: "dataset";
1594
+ file: "file";
1595
1595
  service: "service";
1596
1596
  route: "route";
1597
1597
  post: "post";
@@ -1668,14 +1668,14 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
1668
1668
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
1669
1669
  state: z.ZodOptional<z.ZodEnum<{
1670
1670
  success: "success";
1671
- error: "error";
1672
1671
  queued: "queued";
1673
1672
  "in-progress": "in-progress";
1674
1673
  "timed-out": "timed-out";
1674
+ error: "error";
1675
1675
  }>>;
1676
1676
  source: z.ZodOptional<z.ZodEnum<{
1677
- web: "web";
1678
1677
  api: "api";
1678
+ web: "web";
1679
1679
  }>>;
1680
1680
  is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
1681
1681
  created_at: z.ZodOptional<z.ZodString>;
@@ -1956,14 +1956,14 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1956
1956
  }, z.core.$strip>;
1957
1957
  state: z.ZodEnum<{
1958
1958
  success: "success";
1959
- error: "error";
1960
1959
  queued: "queued";
1961
1960
  "in-progress": "in-progress";
1962
1961
  "timed-out": "timed-out";
1962
+ error: "error";
1963
1963
  }>;
1964
1964
  source: z.ZodEnum<{
1965
- web: "web";
1966
1965
  api: "api";
1966
+ web: "web";
1967
1967
  }>;
1968
1968
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1969
1969
  created_at: z.ZodString;
@@ -1971,10 +1971,10 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1971
1971
  name: z.ZodNullable<z.ZodString>;
1972
1972
  asset_type: z.ZodEnum<{
1973
1973
  user: "user";
1974
- file: "file";
1975
1974
  organization: "organization";
1976
1975
  team: "team";
1977
1976
  dataset: "dataset";
1977
+ file: "file";
1978
1978
  service: "service";
1979
1979
  route: "route";
1980
1980
  post: "post";
@@ -2001,10 +2001,10 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
2001
2001
  declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
2002
2002
  asset_type: z.ZodOptional<z.ZodEnum<{
2003
2003
  user: "user";
2004
- file: "file";
2005
2004
  organization: "organization";
2006
2005
  team: "team";
2007
2006
  dataset: "dataset";
2007
+ file: "file";
2008
2008
  service: "service";
2009
2009
  route: "route";
2010
2010
  post: "post";
@@ -2012,6 +2012,14 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
2012
2012
  comment: "comment";
2013
2013
  conversation: "conversation";
2014
2014
  }>>;
2015
+ org_id: z.ZodOptional<z.ZodUUID>;
2016
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2017
+ metadata: z.ZodOptional<z.ZodObject<{
2018
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2019
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2020
+ }, z.core.$strip>>;
2021
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2022
+ team_id: z.ZodOptional<z.ZodUUID>;
2015
2023
  visibility: z.ZodOptional<z.ZodEnum<{
2016
2024
  organization: "organization";
2017
2025
  public: "public";
@@ -2019,6 +2027,14 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
2019
2027
  monetized: "monetized";
2020
2028
  inherit: "inherit";
2021
2029
  }>>;
2030
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2031
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
2032
+ text: z.ZodString;
2033
+ }, z.core.$strip>>>>;
2034
+ source: z.ZodOptional<z.ZodEnum<{
2035
+ api: "api";
2036
+ web: "web";
2037
+ }>>;
2022
2038
  monetization: z.ZodOptional<z.ZodEnum<{
2023
2039
  none: "none";
2024
2040
  "pay-to-unlock": "pay-to-unlock";
@@ -2055,23 +2071,11 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
2055
2071
  }, z.core.$strip>>;
2056
2072
  state: z.ZodOptional<z.ZodEnum<{
2057
2073
  success: "success";
2058
- error: "error";
2059
2074
  queued: "queued";
2060
2075
  "in-progress": "in-progress";
2061
2076
  "timed-out": "timed-out";
2077
+ error: "error";
2062
2078
  }>>;
2063
- source: z.ZodOptional<z.ZodEnum<{
2064
- web: "web";
2065
- api: "api";
2066
- }>>;
2067
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2068
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2069
- org_id: z.ZodOptional<z.ZodUUID>;
2070
- team_id: z.ZodOptional<z.ZodUUID>;
2071
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2072
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
2073
- text: z.ZodString;
2074
- }, z.core.$strip>>>>;
2075
2079
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
2076
2080
  license_id: z.ZodOptional<z.ZodString>;
2077
2081
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -2090,10 +2094,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
2090
2094
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2091
2095
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2092
2096
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2093
- metadata: z.ZodOptional<z.ZodObject<{
2094
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2095
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2096
- }, z.core.$strip>>;
2097
2097
  preview: z.ZodOptional<z.ZodDefault<z.ZodObject<{
2098
2098
  type: z.ZodLiteral<"doc">;
2099
2099
  content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
@@ -2101,8 +2101,21 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
2101
2101
  last_updated: z.ZodDefault<z.ZodString>;
2102
2102
  }, z.core.$strip>, z.ZodTransform<{
2103
2103
  last_updated: string;
2104
- asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
2104
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
2105
+ org_id?: string | undefined;
2106
+ parent?: Record<string, any> | undefined;
2107
+ metadata?: {
2108
+ source?: string | null | undefined;
2109
+ reply_to_comment_id?: string | null | undefined;
2110
+ } | undefined;
2111
+ name?: string | null | undefined;
2112
+ team_id?: string | undefined;
2105
2113
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
2114
+ description?: {
2115
+ json: Record<string, any>;
2116
+ text: string;
2117
+ } | null | undefined;
2118
+ source?: "api" | "web" | undefined;
2106
2119
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
2107
2120
  attribution?: {
2108
2121
  originality: "original" | "derivative" | "third-party";
@@ -2123,16 +2136,7 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
2123
2136
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
2124
2137
  doi?: string | null | undefined;
2125
2138
  } | undefined;
2126
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
2127
- source?: "web" | "api" | undefined;
2128
- parent?: Record<string, any> | undefined;
2129
- name?: string | null | undefined;
2130
- org_id?: string | undefined;
2131
- team_id?: string | undefined;
2132
- description?: {
2133
- json: Record<string, any>;
2134
- text: string;
2135
- } | null | undefined;
2139
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
2136
2140
  parent_id?: string | null | undefined;
2137
2141
  license_id?: string | undefined;
2138
2142
  license?: Record<string, any> | undefined;
@@ -2145,18 +2149,27 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
2145
2149
  stripe_product_id?: string | null | undefined;
2146
2150
  stripe_price_id?: string | null | undefined;
2147
2151
  stripe_meter_id?: string | null | undefined;
2148
- metadata?: {
2149
- source?: string | null | undefined;
2150
- reply_to_comment_id?: string | null | undefined;
2151
- } | undefined;
2152
2152
  preview?: {
2153
2153
  type: "doc";
2154
2154
  content: any[];
2155
2155
  } | undefined;
2156
2156
  }, {
2157
2157
  last_updated: string;
2158
- asset_type?: "user" | "file" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
2158
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
2159
+ org_id?: string | undefined;
2160
+ parent?: Record<string, any> | undefined;
2161
+ metadata?: {
2162
+ source?: string | null | undefined;
2163
+ reply_to_comment_id?: string | null | undefined;
2164
+ } | undefined;
2165
+ name?: string | null | undefined;
2166
+ team_id?: string | undefined;
2159
2167
  visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
2168
+ description?: {
2169
+ json: Record<string, any>;
2170
+ text: string;
2171
+ } | null | undefined;
2172
+ source?: "api" | "web" | undefined;
2160
2173
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
2161
2174
  attribution?: {
2162
2175
  originality: "original" | "derivative" | "third-party";
@@ -2177,16 +2190,7 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
2177
2190
  relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
2178
2191
  doi?: string | null | undefined;
2179
2192
  } | undefined;
2180
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
2181
- source?: "web" | "api" | undefined;
2182
- parent?: Record<string, any> | undefined;
2183
- name?: string | null | undefined;
2184
- org_id?: string | undefined;
2185
- team_id?: string | undefined;
2186
- description?: {
2187
- json: Record<string, any>;
2188
- text: string;
2189
- } | null | undefined;
2193
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
2190
2194
  parent_id?: string | null | undefined;
2191
2195
  license_id?: string | undefined;
2192
2196
  license?: Record<string, any> | undefined;
@@ -2199,10 +2203,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
2199
2203
  stripe_product_id?: string | null | undefined;
2200
2204
  stripe_price_id?: string | null | undefined;
2201
2205
  stripe_meter_id?: string | null | undefined;
2202
- metadata?: {
2203
- source?: string | null | undefined;
2204
- reply_to_comment_id?: string | null | undefined;
2205
- } | undefined;
2206
2206
  preview?: {
2207
2207
  type: "doc";
2208
2208
  content: any[];