@ourofoundation/ouro-js 3.2.5 → 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 (130) hide show
  1. package/dist/{chunk-D7S2GB7Z.cjs → chunk-42EQ7ULD.cjs} +2 -2
  2. package/dist/{chunk-D7S2GB7Z.cjs.map → chunk-42EQ7ULD.cjs.map} +1 -1
  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-5V7HPXUK.js → chunk-FDKZIS34.js} +2 -2
  20. package/dist/{chunk-5V7HPXUK.js.map → chunk-FDKZIS34.js.map} +1 -1
  21. package/dist/chunk-G24BRDHO.cjs +2 -0
  22. package/dist/chunk-G24BRDHO.cjs.map +1 -0
  23. package/dist/{chunk-KZOOYWQ7.js → chunk-G2MXCB7Q.js} +2 -2
  24. package/dist/{chunk-KZOOYWQ7.js.map → chunk-G2MXCB7Q.js.map} +1 -1
  25. package/dist/{chunk-FQ4F7DQH.cjs → chunk-IP4OVRZB.cjs} +2 -2
  26. package/dist/{chunk-FQ4F7DQH.cjs.map → chunk-IP4OVRZB.cjs.map} +1 -1
  27. package/dist/{chunk-XIH622YH.js → chunk-JISPX5A6.js} +2 -2
  28. package/dist/{chunk-XIH622YH.js.map → chunk-JISPX5A6.js.map} +1 -1
  29. package/dist/{chunk-KYK27OHG.cjs → chunk-MH4A7XAY.cjs} +2 -2
  30. package/dist/{chunk-KYK27OHG.cjs.map → chunk-MH4A7XAY.cjs.map} +1 -1
  31. package/dist/chunk-NEINJFFK.cjs +2 -0
  32. package/dist/{chunk-CVFVOARW.cjs.map → chunk-NEINJFFK.cjs.map} +1 -1
  33. package/dist/{chunk-P5JYABNP.cjs → chunk-QT3A4ULM.cjs} +2 -2
  34. package/dist/{chunk-P5JYABNP.cjs.map → chunk-QT3A4ULM.cjs.map} +1 -1
  35. package/dist/{chunk-7SSENGQL.js → chunk-U3F23ASS.js} +2 -2
  36. package/dist/{chunk-7SSENGQL.js.map → chunk-U3F23ASS.js.map} +1 -1
  37. package/dist/chunk-UY43EQTO.cjs +2 -0
  38. package/dist/{chunk-IW4MZW5P.cjs.map → chunk-UY43EQTO.cjs.map} +1 -1
  39. package/dist/{chunk-OIPOIY6M.cjs → chunk-VOY623ZD.cjs} +2 -2
  40. package/dist/{chunk-OIPOIY6M.cjs.map → chunk-VOY623ZD.cjs.map} +1 -1
  41. package/dist/{chunk-MB4EEZKP.js → chunk-WLGOABHV.js} +2 -2
  42. package/dist/{chunk-MB4EEZKP.js.map → chunk-WLGOABHV.js.map} +1 -1
  43. package/dist/chunk-WRHPQNEL.js +2 -0
  44. package/dist/chunk-WRHPQNEL.js.map +1 -0
  45. package/dist/{chunk-V5DSXK34.cjs → chunk-WUC5AUUJ.cjs} +2 -2
  46. package/dist/{chunk-V5DSXK34.cjs.map → chunk-WUC5AUUJ.cjs.map} +1 -1
  47. package/dist/{chunk-XWUYZSVO.js → chunk-Y6AKG4FJ.js} +2 -2
  48. package/dist/{chunk-XWUYZSVO.js.map → chunk-Y6AKG4FJ.js.map} +1 -1
  49. package/dist/index.cjs +1 -1
  50. package/dist/index.d.cts +1 -2
  51. package/dist/index.d.ts +1 -2
  52. package/dist/index.js +1 -1
  53. package/dist/schema/assets.cjs +1 -1
  54. package/dist/schema/assets.d.cts +11 -17
  55. package/dist/schema/assets.d.ts +11 -17
  56. package/dist/schema/assets.js +1 -1
  57. package/dist/schema/comments.cjs +1 -1
  58. package/dist/schema/comments.d.cts +78 -78
  59. package/dist/schema/comments.d.ts +78 -78
  60. package/dist/schema/comments.js +1 -1
  61. package/dist/schema/common.cjs +1 -1
  62. package/dist/schema/common.d.cts +8 -19
  63. package/dist/schema/common.d.ts +8 -19
  64. package/dist/schema/common.js +1 -1
  65. package/dist/schema/conversations.cjs +1 -1
  66. package/dist/schema/conversations.d.cts +9 -11
  67. package/dist/schema/conversations.d.ts +9 -11
  68. package/dist/schema/conversations.js +1 -1
  69. package/dist/schema/datasets.cjs +1 -1
  70. package/dist/schema/datasets.d.cts +11 -11
  71. package/dist/schema/datasets.d.ts +11 -11
  72. package/dist/schema/datasets.js +1 -1
  73. package/dist/schema/events.cjs +2 -0
  74. package/dist/schema/events.cjs.map +1 -0
  75. package/dist/schema/events.d.cts +113 -0
  76. package/dist/schema/events.d.ts +113 -0
  77. package/dist/schema/events.js +2 -0
  78. package/dist/schema/events.js.map +1 -0
  79. package/dist/schema/files.cjs +1 -1
  80. package/dist/schema/files.d.cts +11 -11
  81. package/dist/schema/files.d.ts +11 -11
  82. package/dist/schema/files.js +1 -1
  83. package/dist/schema/notifications.cjs +1 -1
  84. package/dist/schema/notifications.d.cts +1 -3
  85. package/dist/schema/notifications.d.ts +1 -3
  86. package/dist/schema/notifications.js +1 -1
  87. package/dist/schema/organizations.cjs +1 -1
  88. package/dist/schema/organizations.d.cts +1 -1
  89. package/dist/schema/organizations.d.ts +1 -1
  90. package/dist/schema/organizations.js +1 -1
  91. package/dist/schema/posts.cjs +1 -1
  92. package/dist/schema/posts.d.cts +21 -31
  93. package/dist/schema/posts.d.ts +21 -31
  94. package/dist/schema/posts.js +1 -1
  95. package/dist/schema/services.cjs +1 -1
  96. package/dist/schema/services.d.cts +24 -36
  97. package/dist/schema/services.d.ts +24 -36
  98. package/dist/schema/services.js +1 -1
  99. package/dist/schema/teams.cjs +1 -1
  100. package/dist/schema/teams.d.cts +5 -5
  101. package/dist/schema/teams.d.ts +5 -5
  102. package/dist/schema/teams.js +1 -1
  103. package/package.json +1 -1
  104. package/scripts/dump-events.ts +10 -0
  105. package/dist/chunk-3ZHWBPGA.cjs +0 -2
  106. package/dist/chunk-3ZHWBPGA.cjs.map +0 -1
  107. package/dist/chunk-6AK3RVZR.cjs +0 -2
  108. package/dist/chunk-6AK3RVZR.cjs.map +0 -1
  109. package/dist/chunk-6TOGDJKP.cjs +0 -2
  110. package/dist/chunk-6TOGDJKP.cjs.map +0 -1
  111. package/dist/chunk-7ABFUHWW.js +0 -2
  112. package/dist/chunk-7ABFUHWW.js.map +0 -1
  113. package/dist/chunk-BU2S7UEL.js +0 -2
  114. package/dist/chunk-BU2S7UEL.js.map +0 -1
  115. package/dist/chunk-CVFVOARW.cjs +0 -2
  116. package/dist/chunk-IW4MZW5P.cjs +0 -2
  117. package/dist/chunk-JPCZIGX2.js +0 -2
  118. package/dist/chunk-JPCZIGX2.js.map +0 -1
  119. package/dist/schema/blueprints.cjs +0 -2
  120. package/dist/schema/blueprints.cjs.map +0 -1
  121. package/dist/schema/blueprints.d.cts +0 -823
  122. package/dist/schema/blueprints.d.ts +0 -823
  123. package/dist/schema/blueprints.js +0 -2
  124. package/dist/schema/blueprints.js.map +0 -1
  125. package/dist/schema/replications.cjs +0 -2
  126. package/dist/schema/replications.cjs.map +0 -1
  127. package/dist/schema/replications.d.cts +0 -827
  128. package/dist/schema/replications.d.ts +0 -827
  129. package/dist/schema/replications.js +0 -2
  130. package/dist/schema/replications.js.map +0 -1
@@ -108,9 +108,9 @@ declare const ConversationSchema: 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 ConversationSchema: 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,9 +222,9 @@ declare const ConversationSchema: z.ZodObject<{
222
222
  created_at: z.ZodString;
223
223
  last_updated: z.ZodString;
224
224
  asset_type: z.ZodDefault<z.ZodEnum<{
225
+ organization: "organization";
225
226
  file: "file";
226
227
  user: "user";
227
- organization: "organization";
228
228
  team: "team";
229
229
  dataset: "dataset";
230
230
  service: "service";
@@ -233,8 +233,6 @@ declare const ConversationSchema: z.ZodObject<{
233
233
  quest: "quest";
234
234
  comment: "comment";
235
235
  conversation: "conversation";
236
- blueprint: "blueprint";
237
- replication: "replication";
238
236
  }>>;
239
237
  metadata: z.ZodObject<{
240
238
  members: z.ZodArray<z.ZodString>;
@@ -323,9 +321,9 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
323
321
  "pay-per-use": "pay-per-use";
324
322
  }>>;
325
323
  visibility: z.ZodDefault<z.ZodEnum<{
326
- organization: "organization";
327
324
  public: "public";
328
325
  private: "private";
326
+ organization: "organization";
329
327
  monetized: "monetized";
330
328
  inherit: "inherit";
331
329
  }>>;
@@ -354,7 +352,7 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
354
352
  last_updated: string;
355
353
  asset_type: "conversation";
356
354
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
357
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
355
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
358
356
  metadata: {
359
357
  members: string[];
360
358
  doi_url?: string | null | undefined;
@@ -393,7 +391,7 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
393
391
  last_updated: string;
394
392
  asset_type: "conversation";
395
393
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
396
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
394
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
397
395
  metadata: {
398
396
  members: string[];
399
397
  doi_url?: string | null | undefined;
@@ -430,9 +428,9 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
430
428
  }>>>;
431
429
  asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
432
430
  visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
433
- organization: "organization";
434
431
  public: "public";
435
432
  private: "private";
433
+ organization: "organization";
436
434
  monetized: "monetized";
437
435
  inherit: "inherit";
438
436
  }>>>;
@@ -491,7 +489,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
491
489
  parent?: Record<string, any> | undefined;
492
490
  source?: "web" | "api" | undefined;
493
491
  asset_type?: "conversation" | undefined;
494
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
492
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
495
493
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
496
494
  state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
497
495
  name?: string | undefined;
@@ -527,7 +525,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
527
525
  parent?: Record<string, any> | undefined;
528
526
  source?: "web" | "api" | undefined;
529
527
  asset_type?: "conversation" | undefined;
530
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
528
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
531
529
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
532
530
  state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
533
531
  name?: string | undefined;
@@ -1,2 +1,2 @@
1
- export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-Q34MIANF.js';import'../chunk-XWUYZSVO.js';import'../chunk-KZOOYWQ7.js';import'../chunk-WYHO26N6.js';import'../chunk-MB4EEZKP.js';import'../chunk-3N56ERWF.js';import'../chunk-7ABFUHWW.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=conversations.js.map
1
+ export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-BFBGVGNF.js';import'../chunk-Y6AKG4FJ.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=conversations.js.map
2
2
  //# sourceMappingURL=conversations.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkKYK27OHG_cjs=require('../chunk-KYK27OHG.cjs');require('../chunk-FQ4F7DQH.cjs'),require('../chunk-IW4MZW5P.cjs'),require('../chunk-OIPOIY6M.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-3ZHWBPGA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkKYK27OHG_cjs.b}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkKYK27OHG_cjs.c}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkKYK27OHG_cjs.a}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkKYK27OHG_cjs.d}});//# sourceMappingURL=datasets.cjs.map
1
+ 'use strict';var chunkMH4A7XAY_cjs=require('../chunk-MH4A7XAY.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,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkMH4A7XAY_cjs.b}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkMH4A7XAY_cjs.c}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkMH4A7XAY_cjs.a}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkMH4A7XAY_cjs.d}});//# sourceMappingURL=datasets.cjs.map
2
2
  //# sourceMappingURL=datasets.cjs.map
@@ -108,9 +108,9 @@ declare const DatasetSchema: 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 DatasetSchema: 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
  }>;
@@ -293,9 +293,9 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
293
293
  api: "api";
294
294
  }>>;
295
295
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
296
- organization: "organization";
297
296
  public: "public";
298
297
  private: "private";
298
+ organization: "organization";
299
299
  monetized: "monetized";
300
300
  inherit: "inherit";
301
301
  }>>>;
@@ -336,7 +336,7 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
336
336
  name: string;
337
337
  state: "success" | "error" | "queued" | "in-progress" | "timed-out";
338
338
  source: "web" | "api";
339
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
339
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
340
340
  created_at: string;
341
341
  last_updated: string;
342
342
  asset_type: "dataset";
@@ -384,7 +384,7 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
384
384
  name: string;
385
385
  state: "success" | "error" | "queued" | "in-progress" | "timed-out";
386
386
  source: "web" | "api";
387
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
387
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
388
388
  created_at: string;
389
389
  last_updated: string;
390
390
  asset_type: "dataset";
@@ -470,9 +470,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
470
470
  api: "api";
471
471
  }>>;
472
472
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
473
- organization: "organization";
474
473
  public: "public";
475
474
  private: "private";
475
+ organization: "organization";
476
476
  monetized: "monetized";
477
477
  inherit: "inherit";
478
478
  }>>>;
@@ -503,7 +503,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
503
503
  name: string;
504
504
  state: "success" | "error" | "queued" | "in-progress" | "timed-out";
505
505
  source: "web" | "api";
506
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
506
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
507
507
  created_at: string;
508
508
  last_updated: string;
509
509
  asset_type: "dataset";
@@ -544,7 +544,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
544
544
  name: string;
545
545
  state: "success" | "error" | "queued" | "in-progress" | "timed-out";
546
546
  source: "web" | "api";
547
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
547
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
548
548
  created_at: string;
549
549
  last_updated: string;
550
550
  asset_type: "dataset";
@@ -586,9 +586,9 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
586
586
  api: "api";
587
587
  }>>;
588
588
  visibility: z.ZodOptional<z.ZodEnum<{
589
- organization: "organization";
590
589
  public: "public";
591
590
  private: "private";
591
+ organization: "organization";
592
592
  monetized: "monetized";
593
593
  inherit: "inherit";
594
594
  }>>;
@@ -663,7 +663,7 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
663
663
  last_updated: string;
664
664
  parent?: Record<string, any> | undefined;
665
665
  source?: "web" | "api" | undefined;
666
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
666
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
667
667
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
668
668
  state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
669
669
  name?: string | undefined;
@@ -710,7 +710,7 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
710
710
  last_updated: string;
711
711
  parent?: Record<string, any> | undefined;
712
712
  source?: "web" | "api" | undefined;
713
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
713
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
714
714
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
715
715
  state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
716
716
  name?: string | undefined;
@@ -108,9 +108,9 @@ declare const DatasetSchema: 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 DatasetSchema: 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
  }>;
@@ -293,9 +293,9 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
293
293
  api: "api";
294
294
  }>>;
295
295
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
296
- organization: "organization";
297
296
  public: "public";
298
297
  private: "private";
298
+ organization: "organization";
299
299
  monetized: "monetized";
300
300
  inherit: "inherit";
301
301
  }>>>;
@@ -336,7 +336,7 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
336
336
  name: string;
337
337
  state: "success" | "error" | "queued" | "in-progress" | "timed-out";
338
338
  source: "web" | "api";
339
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
339
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
340
340
  created_at: string;
341
341
  last_updated: string;
342
342
  asset_type: "dataset";
@@ -384,7 +384,7 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
384
384
  name: string;
385
385
  state: "success" | "error" | "queued" | "in-progress" | "timed-out";
386
386
  source: "web" | "api";
387
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
387
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
388
388
  created_at: string;
389
389
  last_updated: string;
390
390
  asset_type: "dataset";
@@ -470,9 +470,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
470
470
  api: "api";
471
471
  }>>;
472
472
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
473
- organization: "organization";
474
473
  public: "public";
475
474
  private: "private";
475
+ organization: "organization";
476
476
  monetized: "monetized";
477
477
  inherit: "inherit";
478
478
  }>>>;
@@ -503,7 +503,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
503
503
  name: string;
504
504
  state: "success" | "error" | "queued" | "in-progress" | "timed-out";
505
505
  source: "web" | "api";
506
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
506
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
507
507
  created_at: string;
508
508
  last_updated: string;
509
509
  asset_type: "dataset";
@@ -544,7 +544,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
544
544
  name: string;
545
545
  state: "success" | "error" | "queued" | "in-progress" | "timed-out";
546
546
  source: "web" | "api";
547
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
547
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
548
548
  created_at: string;
549
549
  last_updated: string;
550
550
  asset_type: "dataset";
@@ -586,9 +586,9 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
586
586
  api: "api";
587
587
  }>>;
588
588
  visibility: z.ZodOptional<z.ZodEnum<{
589
- organization: "organization";
590
589
  public: "public";
591
590
  private: "private";
591
+ organization: "organization";
592
592
  monetized: "monetized";
593
593
  inherit: "inherit";
594
594
  }>>;
@@ -663,7 +663,7 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
663
663
  last_updated: string;
664
664
  parent?: Record<string, any> | undefined;
665
665
  source?: "web" | "api" | undefined;
666
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
666
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
667
667
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
668
668
  state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
669
669
  name?: string | undefined;
@@ -710,7 +710,7 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
710
710
  last_updated: string;
711
711
  parent?: Record<string, any> | undefined;
712
712
  source?: "web" | "api" | undefined;
713
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
713
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
714
714
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
715
715
  state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
716
716
  name?: string | undefined;
@@ -1,2 +1,2 @@
1
- export{b as CreateDatasetFromFileSchema,c as CreateDatasetFromSchemaSchema,a as DatasetSchema,d as updateDatasetSchema}from'../chunk-7SSENGQL.js';import'../chunk-KZOOYWQ7.js';import'../chunk-WYHO26N6.js';import'../chunk-MB4EEZKP.js';import'../chunk-3N56ERWF.js';import'../chunk-7ABFUHWW.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=datasets.js.map
1
+ export{b as CreateDatasetFromFileSchema,c as CreateDatasetFromSchemaSchema,a as DatasetSchema,d as updateDatasetSchema}from'../chunk-U3F23ASS.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=datasets.js.map
2
2
  //# sourceMappingURL=datasets.js.map
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkG24BRDHO_cjs=require('../chunk-G24BRDHO.cjs');Object.defineProperty(exports,"USER_SUBSCRIBABLE_WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkG24BRDHO_cjs.c}});Object.defineProperty(exports,"WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkG24BRDHO_cjs.a}});Object.defineProperty(exports,"WEBHOOK_EVENT_TYPES",{enumerable:true,get:function(){return chunkG24BRDHO_cjs.b}});//# sourceMappingURL=events.cjs.map
2
+ //# sourceMappingURL=events.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"events.cjs"}
@@ -0,0 +1,113 @@
1
+ /**
2
+ * Shared registry of webhook event types emitted by the Ouro platform.
3
+ *
4
+ * This is the single source of truth used by the backend (event dispatch),
5
+ * the frontend (settings UI), the Python SDK (`ouro-py`), and the agent
6
+ * runtime (`ouro-agents`). Adding a new event type means adding a single
7
+ * entry here.
8
+ */
9
+ interface WebhookEventDefinition {
10
+ /** Human-readable label rendered in the user-facing settings UI. */
11
+ label: string;
12
+ /** Whether users can subscribe to this event via a webhook URL. */
13
+ userSubscribable: boolean;
14
+ /** What kind of resource the event is bound to. Drives recipient resolution. */
15
+ scope: "asset" | "user" | "conversation";
16
+ }
17
+ declare const WEBHOOK_EVENTS: {
18
+ readonly comment: {
19
+ readonly label: "Comments";
20
+ readonly userSubscribable: true;
21
+ readonly scope: "asset";
22
+ };
23
+ readonly mention: {
24
+ readonly label: "Mentions";
25
+ readonly userSubscribable: true;
26
+ readonly scope: "asset";
27
+ };
28
+ readonly reference: {
29
+ readonly label: "References";
30
+ readonly userSubscribable: true;
31
+ readonly scope: "asset";
32
+ };
33
+ readonly reaction: {
34
+ readonly label: "Reactions";
35
+ readonly userSubscribable: true;
36
+ readonly scope: "asset";
37
+ };
38
+ readonly share: {
39
+ readonly label: "Shares";
40
+ readonly userSubscribable: true;
41
+ readonly scope: "asset";
42
+ };
43
+ readonly follow: {
44
+ readonly label: "Follows";
45
+ readonly userSubscribable: true;
46
+ readonly scope: "user";
47
+ };
48
+ readonly action: {
49
+ readonly label: "Actions";
50
+ readonly userSubscribable: true;
51
+ readonly scope: "asset";
52
+ };
53
+ readonly "asset.deleted": {
54
+ readonly label: "Asset deletions";
55
+ readonly userSubscribable: true;
56
+ readonly scope: "asset";
57
+ };
58
+ readonly "new-conversation": {
59
+ readonly label: "Conversations";
60
+ readonly userSubscribable: true;
61
+ readonly scope: "conversation";
62
+ };
63
+ readonly "new-message": {
64
+ readonly label: "Messages";
65
+ readonly userSubscribable: true;
66
+ readonly scope: "conversation";
67
+ };
68
+ };
69
+ type WebhookEventType = keyof typeof WEBHOOK_EVENTS;
70
+ declare const WEBHOOK_EVENT_TYPES: WebhookEventType[];
71
+ declare const USER_SUBSCRIBABLE_WEBHOOK_EVENTS: {
72
+ value: "comment" | "reference" | "mention" | "action" | "follow" | "share" | "reaction" | "asset.deleted" | "new-conversation" | "new-message";
73
+ label: string;
74
+ }[];
75
+ interface WebhookActor {
76
+ id: string;
77
+ username: string;
78
+ is_agent: boolean;
79
+ }
80
+ interface WebhookAssetRef {
81
+ id: string;
82
+ type: string;
83
+ }
84
+ interface WebhookOrgRef {
85
+ id: string;
86
+ name: string;
87
+ }
88
+ interface WebhookTeamRef {
89
+ id: string;
90
+ name: string;
91
+ }
92
+ /**
93
+ * Canonical envelope for every webhook event delivery.
94
+ *
95
+ * `data` is event-specific; consumers should branch on `event` and treat
96
+ * `data` as a typed payload accordingly.
97
+ */
98
+ interface WebhookPayload<T extends WebhookEventType = WebhookEventType, D = unknown> {
99
+ /** Stable per-delivery UUID. Receivers should dedupe on this. */
100
+ delivery_id: string;
101
+ event: T;
102
+ /** ISO timestamp of when the event was produced (not when it was sent). */
103
+ timestamp: string;
104
+ /** The recipient user_id this delivery is targeted at. */
105
+ user_id: string;
106
+ /** Correlated in-app notification id when there is exactly one. */
107
+ notification_id?: string;
108
+ /** Correlated in-app notification ids when an event covers multiple. */
109
+ notification_ids?: string[];
110
+ data: D;
111
+ }
112
+
113
+ export { USER_SUBSCRIBABLE_WEBHOOK_EVENTS, WEBHOOK_EVENTS, WEBHOOK_EVENT_TYPES, type WebhookActor, type WebhookAssetRef, type WebhookEventDefinition, type WebhookEventType, type WebhookOrgRef, type WebhookPayload, type WebhookTeamRef };
@@ -0,0 +1,113 @@
1
+ /**
2
+ * Shared registry of webhook event types emitted by the Ouro platform.
3
+ *
4
+ * This is the single source of truth used by the backend (event dispatch),
5
+ * the frontend (settings UI), the Python SDK (`ouro-py`), and the agent
6
+ * runtime (`ouro-agents`). Adding a new event type means adding a single
7
+ * entry here.
8
+ */
9
+ interface WebhookEventDefinition {
10
+ /** Human-readable label rendered in the user-facing settings UI. */
11
+ label: string;
12
+ /** Whether users can subscribe to this event via a webhook URL. */
13
+ userSubscribable: boolean;
14
+ /** What kind of resource the event is bound to. Drives recipient resolution. */
15
+ scope: "asset" | "user" | "conversation";
16
+ }
17
+ declare const WEBHOOK_EVENTS: {
18
+ readonly comment: {
19
+ readonly label: "Comments";
20
+ readonly userSubscribable: true;
21
+ readonly scope: "asset";
22
+ };
23
+ readonly mention: {
24
+ readonly label: "Mentions";
25
+ readonly userSubscribable: true;
26
+ readonly scope: "asset";
27
+ };
28
+ readonly reference: {
29
+ readonly label: "References";
30
+ readonly userSubscribable: true;
31
+ readonly scope: "asset";
32
+ };
33
+ readonly reaction: {
34
+ readonly label: "Reactions";
35
+ readonly userSubscribable: true;
36
+ readonly scope: "asset";
37
+ };
38
+ readonly share: {
39
+ readonly label: "Shares";
40
+ readonly userSubscribable: true;
41
+ readonly scope: "asset";
42
+ };
43
+ readonly follow: {
44
+ readonly label: "Follows";
45
+ readonly userSubscribable: true;
46
+ readonly scope: "user";
47
+ };
48
+ readonly action: {
49
+ readonly label: "Actions";
50
+ readonly userSubscribable: true;
51
+ readonly scope: "asset";
52
+ };
53
+ readonly "asset.deleted": {
54
+ readonly label: "Asset deletions";
55
+ readonly userSubscribable: true;
56
+ readonly scope: "asset";
57
+ };
58
+ readonly "new-conversation": {
59
+ readonly label: "Conversations";
60
+ readonly userSubscribable: true;
61
+ readonly scope: "conversation";
62
+ };
63
+ readonly "new-message": {
64
+ readonly label: "Messages";
65
+ readonly userSubscribable: true;
66
+ readonly scope: "conversation";
67
+ };
68
+ };
69
+ type WebhookEventType = keyof typeof WEBHOOK_EVENTS;
70
+ declare const WEBHOOK_EVENT_TYPES: WebhookEventType[];
71
+ declare const USER_SUBSCRIBABLE_WEBHOOK_EVENTS: {
72
+ value: "comment" | "reference" | "mention" | "action" | "follow" | "share" | "reaction" | "asset.deleted" | "new-conversation" | "new-message";
73
+ label: string;
74
+ }[];
75
+ interface WebhookActor {
76
+ id: string;
77
+ username: string;
78
+ is_agent: boolean;
79
+ }
80
+ interface WebhookAssetRef {
81
+ id: string;
82
+ type: string;
83
+ }
84
+ interface WebhookOrgRef {
85
+ id: string;
86
+ name: string;
87
+ }
88
+ interface WebhookTeamRef {
89
+ id: string;
90
+ name: string;
91
+ }
92
+ /**
93
+ * Canonical envelope for every webhook event delivery.
94
+ *
95
+ * `data` is event-specific; consumers should branch on `event` and treat
96
+ * `data` as a typed payload accordingly.
97
+ */
98
+ interface WebhookPayload<T extends WebhookEventType = WebhookEventType, D = unknown> {
99
+ /** Stable per-delivery UUID. Receivers should dedupe on this. */
100
+ delivery_id: string;
101
+ event: T;
102
+ /** ISO timestamp of when the event was produced (not when it was sent). */
103
+ timestamp: string;
104
+ /** The recipient user_id this delivery is targeted at. */
105
+ user_id: string;
106
+ /** Correlated in-app notification id when there is exactly one. */
107
+ notification_id?: string;
108
+ /** Correlated in-app notification ids when an event covers multiple. */
109
+ notification_ids?: string[];
110
+ data: D;
111
+ }
112
+
113
+ export { USER_SUBSCRIBABLE_WEBHOOK_EVENTS, WEBHOOK_EVENTS, WEBHOOK_EVENT_TYPES, type WebhookActor, type WebhookAssetRef, type WebhookEventDefinition, type WebhookEventType, type WebhookOrgRef, type WebhookPayload, type WebhookTeamRef };
@@ -0,0 +1,2 @@
1
+ export{c as USER_SUBSCRIBABLE_WEBHOOK_EVENTS,a as WEBHOOK_EVENTS,b as WEBHOOK_EVENT_TYPES}from'../chunk-CIWFH5BJ.js';//# sourceMappingURL=events.js.map
2
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"events.js"}
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkOFSSOFOC_cjs=require('../chunk-OFSSOFOC.cjs');require('../chunk-FQ4F7DQH.cjs'),require('../chunk-IW4MZW5P.cjs'),require('../chunk-OIPOIY6M.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-3ZHWBPGA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunkOFSSOFOC_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunkOFSSOFOC_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunkOFSSOFOC_cjs.c}});//# sourceMappingURL=files.cjs.map
1
+ 'use strict';var chunkBQ5WODME_cjs=require('../chunk-BQ5WODME.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,"CreateFileSchema",{enumerable:true,get:function(){return chunkBQ5WODME_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunkBQ5WODME_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunkBQ5WODME_cjs.c}});//# sourceMappingURL=files.cjs.map
2
2
  //# sourceMappingURL=files.cjs.map