@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 ServiceSchema: 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 ServiceSchema: 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 ServiceSchema: z.ZodObject<{
222
222
  created_at: z.ZodString;
223
223
  last_updated: z.ZodString;
224
224
  asset_type: 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 ServiceSchema: 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
  authentication: z.ZodEnum<{
@@ -306,18 +304,18 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
306
304
  api: "api";
307
305
  }>>;
308
306
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
309
- organization: "organization";
310
307
  public: "public";
311
308
  private: "private";
309
+ organization: "organization";
312
310
  monetized: "monetized";
313
311
  inherit: "inherit";
314
312
  }>>>;
315
313
  created_at: z.ZodDefault<z.ZodString>;
316
314
  last_updated: z.ZodDefault<z.ZodString>;
317
315
  asset_type: z.ZodEnum<{
316
+ organization: "organization";
318
317
  file: "file";
319
318
  user: "user";
320
- organization: "organization";
321
319
  team: "team";
322
320
  dataset: "dataset";
323
321
  service: "service";
@@ -326,8 +324,6 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
326
324
  quest: "quest";
327
325
  comment: "comment";
328
326
  conversation: "conversation";
329
- blueprint: "blueprint";
330
- replication: "replication";
331
327
  }>;
332
328
  metadata: z.ZodObject<{
333
329
  authentication: z.ZodEnum<{
@@ -360,10 +356,10 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
360
356
  name: string;
361
357
  state: "success" | "error" | "queued" | "in-progress" | "timed-out";
362
358
  source: "web" | "api";
363
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
359
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
364
360
  created_at: string;
365
361
  last_updated: string;
366
- asset_type: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication";
362
+ asset_type: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
367
363
  metadata: {
368
364
  authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
369
365
  base_url: string;
@@ -404,10 +400,10 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
404
400
  name: string;
405
401
  state: "success" | "error" | "queued" | "in-progress" | "timed-out";
406
402
  source: "web" | "api";
407
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
403
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
408
404
  created_at: string;
409
405
  last_updated: string;
410
- asset_type: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication";
406
+ asset_type: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
411
407
  metadata: {
412
408
  authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
413
409
  base_url: string;
@@ -449,9 +445,9 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
449
445
  api: "api";
450
446
  }>>;
451
447
  asset_type: z.ZodOptional<z.ZodEnum<{
448
+ organization: "organization";
452
449
  file: "file";
453
450
  user: "user";
454
- organization: "organization";
455
451
  team: "team";
456
452
  dataset: "dataset";
457
453
  service: "service";
@@ -460,13 +456,11 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
460
456
  quest: "quest";
461
457
  comment: "comment";
462
458
  conversation: "conversation";
463
- blueprint: "blueprint";
464
- replication: "replication";
465
459
  }>>;
466
460
  visibility: z.ZodOptional<z.ZodEnum<{
467
- organization: "organization";
468
461
  public: "public";
469
462
  private: "private";
463
+ organization: "organization";
470
464
  monetized: "monetized";
471
465
  inherit: "inherit";
472
466
  }>>;
@@ -537,8 +531,8 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
537
531
  last_updated: string;
538
532
  parent?: Record<string, any> | undefined;
539
533
  source?: "web" | "api" | undefined;
540
- asset_type?: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
541
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
534
+ asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
535
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
542
536
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
543
537
  state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
544
538
  name?: string | undefined;
@@ -580,8 +574,8 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
580
574
  last_updated: string;
581
575
  parent?: Record<string, any> | undefined;
582
576
  source?: "web" | "api" | undefined;
583
- asset_type?: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
584
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
577
+ asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
578
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
585
579
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
586
580
  state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
587
581
  name?: string | undefined;
@@ -771,9 +765,9 @@ declare const RouteSchema: z.ZodObject<{
771
765
  none: "none";
772
766
  }>>;
773
767
  visibility: z.ZodOptional<z.ZodEnum<{
774
- organization: "organization";
775
768
  public: "public";
776
769
  private: "private";
770
+ organization: "organization";
777
771
  monetized: "monetized";
778
772
  inherit: "inherit";
779
773
  }>>;
@@ -845,9 +839,9 @@ declare const RouteSchema: z.ZodObject<{
845
839
  text: z.ZodString;
846
840
  }, z.core.$strip>>>;
847
841
  visibility: z.ZodEnum<{
848
- organization: "organization";
849
842
  public: "public";
850
843
  private: "private";
844
+ organization: "organization";
851
845
  monetized: "monetized";
852
846
  inherit: "inherit";
853
847
  }>;
@@ -898,9 +892,9 @@ declare const RouteSchema: z.ZodObject<{
898
892
  created_at: z.ZodString;
899
893
  last_updated: z.ZodString;
900
894
  asset_type: z.ZodEnum<{
895
+ organization: "organization";
901
896
  file: "file";
902
897
  user: "user";
903
- organization: "organization";
904
898
  team: "team";
905
899
  dataset: "dataset";
906
900
  service: "service";
@@ -909,8 +903,6 @@ declare const RouteSchema: z.ZodObject<{
909
903
  quest: "quest";
910
904
  comment: "comment";
911
905
  conversation: "conversation";
912
- blueprint: "blueprint";
913
- replication: "replication";
914
906
  }>;
915
907
  route: z.ZodObject<{
916
908
  id: z.ZodString;
@@ -1073,9 +1065,9 @@ declare const ActionSchema: z.ZodObject<{
1073
1065
  none: "none";
1074
1066
  }>>;
1075
1067
  visibility: z.ZodOptional<z.ZodEnum<{
1076
- organization: "organization";
1077
1068
  public: "public";
1078
1069
  private: "private";
1070
+ organization: "organization";
1079
1071
  monetized: "monetized";
1080
1072
  inherit: "inherit";
1081
1073
  }>>;
@@ -1140,9 +1132,9 @@ declare const ActionSchema: z.ZodObject<{
1140
1132
  license_id: z.ZodString;
1141
1133
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1142
1134
  asset_type: z.ZodEnum<{
1135
+ organization: "organization";
1143
1136
  file: "file";
1144
1137
  user: "user";
1145
- organization: "organization";
1146
1138
  team: "team";
1147
1139
  dataset: "dataset";
1148
1140
  service: "service";
@@ -1151,8 +1143,6 @@ declare const ActionSchema: z.ZodObject<{
1151
1143
  quest: "quest";
1152
1144
  comment: "comment";
1153
1145
  conversation: "conversation";
1154
- blueprint: "blueprint";
1155
- replication: "replication";
1156
1146
  }>;
1157
1147
  name: z.ZodString;
1158
1148
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1162,9 +1152,9 @@ declare const ActionSchema: z.ZodObject<{
1162
1152
  text: z.ZodString;
1163
1153
  }, z.core.$strip>>>;
1164
1154
  visibility: z.ZodEnum<{
1165
- organization: "organization";
1166
1155
  public: "public";
1167
1156
  private: "private";
1157
+ organization: "organization";
1168
1158
  monetized: "monetized";
1169
1159
  inherit: "inherit";
1170
1160
  }>;
@@ -1324,9 +1314,9 @@ declare const ActionSchema: z.ZodObject<{
1324
1314
  none: "none";
1325
1315
  }>>;
1326
1316
  visibility: z.ZodOptional<z.ZodEnum<{
1327
- organization: "organization";
1328
1317
  public: "public";
1329
1318
  private: "private";
1319
+ organization: "organization";
1330
1320
  monetized: "monetized";
1331
1321
  inherit: "inherit";
1332
1322
  }>>;
@@ -1391,9 +1381,9 @@ declare const ActionSchema: z.ZodObject<{
1391
1381
  license_id: z.ZodString;
1392
1382
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1393
1383
  asset_type: z.ZodEnum<{
1384
+ organization: "organization";
1394
1385
  file: "file";
1395
1386
  user: "user";
1396
- organization: "organization";
1397
1387
  team: "team";
1398
1388
  dataset: "dataset";
1399
1389
  service: "service";
@@ -1402,8 +1392,6 @@ declare const ActionSchema: z.ZodObject<{
1402
1392
  quest: "quest";
1403
1393
  comment: "comment";
1404
1394
  conversation: "conversation";
1405
- blueprint: "blueprint";
1406
- replication: "replication";
1407
1395
  }>;
1408
1396
  name: z.ZodString;
1409
1397
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1413,9 +1401,9 @@ declare const ActionSchema: z.ZodObject<{
1413
1401
  text: z.ZodString;
1414
1402
  }, z.core.$strip>>>;
1415
1403
  visibility: z.ZodEnum<{
1416
- organization: "organization";
1417
1404
  public: "public";
1418
1405
  private: "private";
1406
+ organization: "organization";
1419
1407
  monetized: "monetized";
1420
1408
  inherit: "inherit";
1421
1409
  }>;
@@ -1,2 +1,2 @@
1
- export{e as ActionSchema,b as CreateServiceSchema,d as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'../chunk-5V7HPXUK.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=services.js.map
1
+ export{e as ActionSchema,b as CreateServiceSchema,d as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'../chunk-FDKZIS34.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=services.js.map
2
2
  //# sourceMappingURL=services.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkIW4MZW5P_cjs=require('../chunk-IW4MZW5P.cjs');require('../chunk-OIPOIY6M.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-3ZHWBPGA.cjs');Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunkIW4MZW5P_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunkIW4MZW5P_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunkIW4MZW5P_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunkIW4MZW5P_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunkIW4MZW5P_cjs.e}});//# sourceMappingURL=teams.cjs.map
1
+ 'use strict';var chunkUY43EQTO_cjs=require('../chunk-UY43EQTO.cjs');require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs');Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunkUY43EQTO_cjs.e}});//# sourceMappingURL=teams.cjs.map
2
2
  //# sourceMappingURL=teams.cjs.map
@@ -47,9 +47,9 @@ declare const TeamSchema: z.ZodObject<{
47
47
  none: "none";
48
48
  }>;
49
49
  visibility: z.ZodEnum<{
50
- organization: "organization";
51
50
  public: "public";
52
51
  private: "private";
52
+ organization: "organization";
53
53
  monetized: "monetized";
54
54
  inherit: "inherit";
55
55
  }>;
@@ -111,9 +111,9 @@ declare const TeamSchema: z.ZodObject<{
111
111
  }, z.core.$strip>;
112
112
  declare const CreateTeamSchema: z.ZodObject<{
113
113
  visibility: z.ZodDefault<z.ZodEnum<{
114
- organization: "organization";
115
114
  public: "public";
116
115
  private: "private";
116
+ organization: "organization";
117
117
  monetized: "monetized";
118
118
  inherit: "inherit";
119
119
  }>>;
@@ -156,9 +156,9 @@ declare const ReadTeamSchema: z.ZodObject<{
156
156
  none: "none";
157
157
  }>;
158
158
  visibility: z.ZodEnum<{
159
- organization: "organization";
160
159
  public: "public";
161
160
  private: "private";
161
+ organization: "organization";
162
162
  monetized: "monetized";
163
163
  inherit: "inherit";
164
164
  }>;
@@ -290,9 +290,9 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<{
290
290
  none: "none";
291
291
  }>;
292
292
  visibility: z.ZodEnum<{
293
- organization: "organization";
294
293
  public: "public";
295
294
  private: "private";
295
+ organization: "organization";
296
296
  monetized: "monetized";
297
297
  inherit: "inherit";
298
298
  }>;
@@ -413,9 +413,9 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<{
413
413
  }, z.core.$strip>>;
414
414
  declare const UpdateTeamSchema: z.ZodObject<{
415
415
  visibility: z.ZodOptional<z.ZodEnum<{
416
- organization: "organization";
417
416
  public: "public";
418
417
  private: "private";
418
+ organization: "organization";
419
419
  monetized: "monetized";
420
420
  inherit: "inherit";
421
421
  }>>;
@@ -47,9 +47,9 @@ declare const TeamSchema: z.ZodObject<{
47
47
  none: "none";
48
48
  }>;
49
49
  visibility: z.ZodEnum<{
50
- organization: "organization";
51
50
  public: "public";
52
51
  private: "private";
52
+ organization: "organization";
53
53
  monetized: "monetized";
54
54
  inherit: "inherit";
55
55
  }>;
@@ -111,9 +111,9 @@ declare const TeamSchema: z.ZodObject<{
111
111
  }, z.core.$strip>;
112
112
  declare const CreateTeamSchema: z.ZodObject<{
113
113
  visibility: z.ZodDefault<z.ZodEnum<{
114
- organization: "organization";
115
114
  public: "public";
116
115
  private: "private";
116
+ organization: "organization";
117
117
  monetized: "monetized";
118
118
  inherit: "inherit";
119
119
  }>>;
@@ -156,9 +156,9 @@ declare const ReadTeamSchema: z.ZodObject<{
156
156
  none: "none";
157
157
  }>;
158
158
  visibility: z.ZodEnum<{
159
- organization: "organization";
160
159
  public: "public";
161
160
  private: "private";
161
+ organization: "organization";
162
162
  monetized: "monetized";
163
163
  inherit: "inherit";
164
164
  }>;
@@ -290,9 +290,9 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<{
290
290
  none: "none";
291
291
  }>;
292
292
  visibility: z.ZodEnum<{
293
- organization: "organization";
294
293
  public: "public";
295
294
  private: "private";
295
+ organization: "organization";
296
296
  monetized: "monetized";
297
297
  inherit: "inherit";
298
298
  }>;
@@ -413,9 +413,9 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<{
413
413
  }, z.core.$strip>>;
414
414
  declare const UpdateTeamSchema: z.ZodObject<{
415
415
  visibility: z.ZodOptional<z.ZodEnum<{
416
- organization: "organization";
417
416
  public: "public";
418
417
  private: "private";
418
+ organization: "organization";
419
419
  monetized: "monetized";
420
420
  inherit: "inherit";
421
421
  }>>;
@@ -1,2 +1,2 @@
1
- export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'../chunk-WYHO26N6.js';import'../chunk-MB4EEZKP.js';import'../chunk-3N56ERWF.js';import'../chunk-7ABFUHWW.js';//# sourceMappingURL=teams.js.map
1
+ export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';//# sourceMappingURL=teams.js.map
2
2
  //# sourceMappingURL=teams.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ourofoundation/ouro-js",
3
- "version": "3.2.5",
3
+ "version": "3.3.0",
4
4
  "description": "Interact with the Ouro platform in browser and node.js environments",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.cjs",
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Print the canonical webhook event registry as JSON. Used to keep the
3
+ * Python SDK mirror in sync with the TypeScript source of truth.
4
+ *
5
+ * Usage:
6
+ * npx tsx ouro-js/scripts/dump-events.ts > ouro-py/tests/fixtures/webhook_events.json
7
+ */
8
+ import { WEBHOOK_EVENT_TYPES } from "../src/schema/events"
9
+
10
+ console.log(JSON.stringify(WEBHOOK_EVENT_TYPES, null, 2))
@@ -1,2 +0,0 @@
1
- 'use strict';var zod=require('zod');var r=zod.enum(["user","organization","team","dataset","file","service","route","post","quest","comment","conversation","blueprint","replication"]),h=zod.enum(["public","private","organization","monetized","inherit"]),d=zod.enum(["admin","read","write","none"]),S=zod.enum(["none","pay-to-unlock","pay-per-use"]),f=zod.enum(["usd","btc"]),_=zod.object({id:zod.string(),user_id:zod.string(),org_id:zod.optional(zod.nullable(zod.string())),embedding:zod.array(zod.number()),content:zod.string(),asset_type:r,asset_id:zod.string(),metadata:zod.optional(zod.nullable(zod.record(zod.string(),zod.any()))),created_at:zod.string(),last_updated:zod.string()}),y=zod.enum(["comment","reference","mention","action","component","link"]),l=zod.object({id:zod.uuid(),user_id:zod.uuid(),type:y,action_id:zod.optional(zod.nullable(zod.uuid())),source_id:zod.uuid(),target_id:zod.uuid(),source_asset_type:r,target_asset_type:r,created_at:zod.string(),last_updated:zod.string()}),z=zod.object({assetId:zod.uuid(),method:zod.enum(["checkout","api"]),assetType:r}),b=zod.object({id:zod.uuid(),role:d,user:zod.object({user_id:zod.uuid()}),user_id:zod.nullable(zod.uuid()),org_id:zod.nullable(zod.uuid()),asset_type:r,asset_id:zod.uuid(),created_at:zod.string(),last_updated:zod.string()}),g=zod.enum(["queued","in-progress","timed-out","success","error"]),x=zod.enum(["web","api"]);exports.a=r;exports.b=h;exports.c=d;exports.d=S;exports.e=f;exports.f=_;exports.g=l;exports.h=z;exports.i=b;exports.j=g;exports.k=x;//# sourceMappingURL=chunk-3ZHWBPGA.cjs.map
2
- //# sourceMappingURL=chunk-3ZHWBPGA.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/schema/common.ts"],"names":["AssetTypeSchema","zodEnum","VisibilitySchema","RoleSchema","MonetizationSchema","PriceCurrencySchema","EmbeddingSchema","object","string","optional","nullable","array","number","record","any","ConnectionTypeSchema","ConnectionSchema","uuid","PurchaseAssetSchema","PermissionSchema","StatusSchema","SourceSchema"],"mappings":"oCAcA,IAAMA,CAAkBC,CAAAA,QAAAA,CAAQ,CAC9B,MAAA,CACA,cACA,CAAA,MAAA,CACA,UACA,MACA,CAAA,SAAA,CACA,OACA,CAAA,MAAA,CACA,OACA,CAAA,SAAA,CACA,cACA,CAAA,WAAA,CACA,aACF,CAAC,CAEKC,CAAAA,CAAAA,CAAmBD,QAAQ,CAAA,CAC/B,QACA,CAAA,SAAA,CACA,cACA,CAAA,WAAA,CACA,SACF,CAAC,CAEKE,CAAAA,CAAAA,CAAaF,QAAQ,CAAA,CAAC,OAAS,CAAA,MAAA,CAAQ,OAAS,CAAA,MAAM,CAAC,CAAA,CAEvDG,EAAqBH,QAAQ,CAAA,CAAC,MAAQ,CAAA,eAAA,CAAiB,aAAa,CAAC,CAErEI,CAAAA,CAAAA,CAAsBJ,QAAQ,CAAA,CAAC,KAAO,CAAA,KAAK,CAAC,CAAA,CAE5CK,EAAkBC,UAAO,CAAA,CAC7B,EAAIC,CAAAA,UAAAA,EACJ,CAAA,OAAA,CAASA,UAAO,EAAA,CAChB,MAAQC,CAAAA,YAAAA,CAASC,YAASF,CAAAA,UAAAA,EAAQ,CAAC,EACnC,SAAWG,CAAAA,SAAAA,CAAMC,UAAO,EAAC,CACzB,CAAA,OAAA,CAASJ,UAAO,EAAA,CAChB,UAAYR,CAAAA,CAAAA,CACZ,QAAUQ,CAAAA,UAAAA,EACV,CAAA,QAAA,CAAUC,YAASC,CAAAA,YAAAA,CAASG,UAAOL,CAAAA,UAAAA,EAAUM,CAAAA,OAAAA,EAAK,CAAC,CAAC,CAAA,CACpD,UAAYN,CAAAA,UAAAA,EACZ,CAAA,YAAA,CAAcA,UAAO,EACvB,CAAC,CAEKO,CAAAA,CAAAA,CAAuBd,QAAQ,CAAA,CACnC,SACA,CAAA,WAAA,CACA,SACA,CAAA,QAAA,CACA,WACA,CAAA,MACF,CAAC,CAAA,CAEKe,CAAmBT,CAAAA,UAAAA,CAAO,CAC9B,EAAIU,CAAAA,QAAAA,EACJ,CAAA,OAAA,CAASA,QAAK,EAAA,CACd,IAAMF,CAAAA,CAAAA,CACN,SAAWN,CAAAA,YAAAA,CAASC,YAASO,CAAAA,QAAAA,EAAM,CAAC,EACpC,SAAWA,CAAAA,QAAAA,EACX,CAAA,SAAA,CAAWA,QAAK,EAAA,CAChB,iBAAmBjB,CAAAA,CAAAA,CACnB,iBAAmBA,CAAAA,CAAAA,CACnB,UAAYQ,CAAAA,UAAAA,EACZ,CAAA,YAAA,CAAcA,UAAO,EACvB,CAAC,CAAA,CAEKU,CAAsBX,CAAAA,UAAAA,CAAO,CACjC,OAAA,CAASU,QAAK,EAAA,CACd,MAAQhB,CAAAA,QAAAA,CAAQ,CAAC,UAAA,CAAY,KAAK,CAAC,EACnC,SAAWD,CAAAA,CACb,CAAC,CAAA,CAEKmB,CAAmBZ,CAAAA,UAAAA,CAAO,CAC9B,EAAA,CAAIU,QAAK,EAAA,CACT,IAAMd,CAAAA,CAAAA,CACN,IAAMI,CAAAA,UAAAA,CAAO,CACX,OAASU,CAAAA,QAAAA,EACX,CAAC,CACD,CAAA,OAAA,CAASP,YAASO,CAAAA,QAAAA,EAAM,CAAA,CACxB,MAAQP,CAAAA,YAAAA,CAASO,QAAK,EAAC,EACvB,UAAYjB,CAAAA,CAAAA,CACZ,QAAUiB,CAAAA,QAAAA,EACV,CAAA,UAAA,CAAYT,UAAO,EAAA,CACnB,YAAcA,CAAAA,UAAAA,EAChB,CAAC,CAEKY,CAAAA,CAAAA,CAAenB,QAAQ,CAAA,CAC3B,QACA,CAAA,aAAA,CACA,WACA,CAAA,SAAA,CACA,OACF,CAAC,CAEKoB,CAAAA,CAAAA,CAAepB,QAAQ,CAAA,CAAC,KAAO,CAAA,KAAK,CAAC","file":"chunk-3ZHWBPGA.cjs","sourcesContent":["import {\n object,\n string,\n uuid,\n number,\n array,\n enum as zodEnum,\n type z,\n any,\n nullable,\n optional,\n record\n} from \"zod\";\n\nconst AssetTypeSchema = zodEnum([\n \"user\",\n \"organization\",\n \"team\",\n \"dataset\",\n \"file\",\n \"service\",\n \"route\",\n \"post\",\n \"quest\",\n \"comment\",\n \"conversation\",\n \"blueprint\",\n \"replication\",\n]);\n\nconst VisibilitySchema = zodEnum([\n \"public\",\n \"private\",\n \"organization\",\n \"monetized\",\n \"inherit\",\n]);\n\nconst RoleSchema = zodEnum([\"admin\", \"read\", \"write\", \"none\"]);\n\nconst MonetizationSchema = zodEnum([\"none\", \"pay-to-unlock\", \"pay-per-use\"]);\n\nconst PriceCurrencySchema = zodEnum([\"usd\", \"btc\"]);\n\nconst EmbeddingSchema = object({\n id: string(),\n user_id: string(),\n org_id: optional(nullable(string())),\n embedding: array(number()),\n content: string(),\n asset_type: AssetTypeSchema,\n asset_id: string(),\n metadata: optional(nullable(record(string(), any()))),\n created_at: string(),\n last_updated: string(),\n});\n\nconst ConnectionTypeSchema = zodEnum([\n \"comment\",\n \"reference\",\n \"mention\",\n \"action\",\n \"component\",\n \"link\",\n]);\n\nconst ConnectionSchema = object({\n id: uuid(),\n user_id: uuid(),\n type: ConnectionTypeSchema,\n action_id: optional(nullable(uuid())),\n source_id: uuid(),\n target_id: uuid(),\n source_asset_type: AssetTypeSchema,\n target_asset_type: AssetTypeSchema,\n created_at: string(),\n last_updated: string(),\n});\n\nconst PurchaseAssetSchema = object({\n assetId: uuid(),\n method: zodEnum([\"checkout\", \"api\"]),\n assetType: AssetTypeSchema,\n});\n\nconst PermissionSchema = object({\n id: uuid(),\n role: RoleSchema,\n user: object({\n user_id: uuid(),\n }),\n user_id: nullable(uuid()),\n org_id: nullable(uuid()),\n asset_type: AssetTypeSchema,\n asset_id: uuid(),\n created_at: string(),\n last_updated: string(),\n});\n\nconst StatusSchema = zodEnum([\n \"queued\",\n \"in-progress\",\n \"timed-out\",\n \"success\",\n \"error\",\n]);\n\nconst SourceSchema = zodEnum([\"web\", \"api\"]);\n\nexport {\n RoleSchema,\n VisibilitySchema,\n MonetizationSchema,\n PriceCurrencySchema,\n ConnectionSchema,\n EmbeddingSchema,\n AssetTypeSchema,\n PurchaseAssetSchema,\n PermissionSchema,\n StatusSchema,\n SourceSchema,\n};\n\nexport type Role = z.infer<typeof RoleSchema>;\nexport type Connection = z.infer<typeof ConnectionSchema>;\nexport type Embedding = z.infer<typeof EmbeddingSchema>;\nexport type Visibility = z.infer<typeof VisibilitySchema>;\nexport type Monetization = z.infer<typeof MonetizationSchema>;\nexport type PriceCurrency = z.infer<typeof PriceCurrencySchema>;\nexport type AssetTypes = z.infer<typeof AssetTypeSchema>;\nexport type PurchaseAsset = z.infer<typeof PurchaseAssetSchema>;\nexport type Permission = z.infer<typeof PermissionSchema>;\nexport type Status = z.infer<typeof StatusSchema>;\nexport type Source = z.infer<typeof SourceSchema>;\n"]}
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkFQ4F7DQH_cjs=require('./chunk-FQ4F7DQH.cjs'),chunk3ZHWBPGA_cjs=require('./chunk-3ZHWBPGA.cjs'),chunk7HF5VHUN_cjs=require('./chunk-7HF5VHUN.cjs'),uuidv7=require('uuidv7'),zod=require('zod');var B=zod.object({edges:zod.array(zod.record(zod.string(),zod.any())),nodes:zod.array(zod.record(zod.string(),zod.any()))}),h=B.extend(chunkFQ4F7DQH_cjs.b.partial().shape),b=chunkFQ4F7DQH_cjs.c.extend({asset_type:chunk3ZHWBPGA_cjs.a.refine(a=>a==="blueprint"),metadata:h}),M=chunkFQ4F7DQH_cjs.c.partial().extend({id:zod.uuid().default(()=>uuidv7.uuidv7()),team_id:zod.uuid().default(chunk7HF5VHUN_cjs.c),org_id:zod.uuid().default(chunk7HF5VHUN_cjs.b),name_url_slug:zod.string(),metadata:h.passthrough()}).transform(a=>chunkFQ4F7DQH_cjs.a(a)),C=zod.object({team_id:zod.nullable(zod.uuid()),name_url_slug:zod.nullable(zod.string()),name:zod.nullable(zod.string()),description:zod.nullable(zod.string()),visibility:zod.nullable(chunk3ZHWBPGA_cjs.b),metadata:zod.nullable(zod.record(zod.string(),zod.any())),last_updated:zod.string().default(()=>new Date().toISOString())}).transform(a=>chunkFQ4F7DQH_cjs.a(a));exports.a=b;exports.b=M;exports.c=C;//# sourceMappingURL=chunk-6AK3RVZR.cjs.map
2
- //# sourceMappingURL=chunk-6AK3RVZR.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/schema/blueprints.ts"],"names":["BaseBlueprintMetadataSchema","object","array","record","string","any","BlueprintMetadataSchema","AssetMetadataSchema","BlueprintSchema","AssetSchema","AssetTypeSchema","val","CreateBlueprintSchema","uuid","uuidv7","GLOBAL_TEAM_ID","GLOBAL_ORG_ID","value","normalizeAssetConfigForParsing","UpdateBlueprintSchema","nullable","VisibilitySchema"],"mappings":"mNAwBA,IAAMA,EAA8BC,UAAO,CAAA,CACzC,KAAOC,CAAAA,SAAAA,CAAMC,WAAOC,UAAO,EAAA,CAAGC,OAAI,EAAC,CAAC,CACpC,CAAA,KAAA,CAAOH,UAAMC,UAAOC,CAAAA,UAAAA,GAAUC,OAAI,EAAC,CAAC,CACtC,CAAC,CAEKC,CAAAA,CAAAA,CAA0BN,CAA4B,CAAA,MAAA,CAC1DO,oBAAoB,OAAQ,EAAA,CAAE,KAChC,CAAA,CAEMC,EAAkBC,mBAAY,CAAA,MAAA,CAAO,CACzC,UAAA,CAAYC,oBAAgB,MAAQC,CAAAA,CAAAA,EAAQA,CAAQ,GAAA,WAAW,EAC/D,QAAUL,CAAAA,CACZ,CAAC,CAAA,CAEKM,EAAwBH,mBAAY,CAAA,OAAA,EAAU,CAAA,MAAA,CAAO,CACzD,EAAII,CAAAA,QAAAA,GAAO,OAAQ,CAAA,IAAMC,eAAQ,CAAA,CACjC,OAASD,CAAAA,QAAAA,GAAO,OAAQE,CAAAA,mBAAc,CACtC,CAAA,MAAA,CAAQF,UAAO,CAAA,OAAA,CAAQG,mBAAa,CAAA,CACpC,cAAeZ,UAAO,EAAA,CACtB,QAAUE,CAAAA,CAAAA,CAAwB,aACpC,CAAC,CAAE,CAAA,SAAA,CAAWW,GAAUC,mBAA+BD,CAAAA,CAAK,CAAC,CAAA,CAEvDE,EAAwBlB,UAAO,CAAA,CACnC,OAASmB,CAAAA,YAAAA,CAASP,UAAM,CAAA,CACxB,cAAeO,YAAShB,CAAAA,UAAAA,EAAQ,CAChC,CAAA,IAAA,CAAMgB,YAAShB,CAAAA,UAAAA,EAAQ,CACvB,CAAA,WAAA,CAAagB,YAAShB,CAAAA,UAAAA,EAAQ,CAC9B,CAAA,UAAA,CAAYgB,YAASC,CAAAA,mBAAgB,EACrC,QAAUD,CAAAA,YAAAA,CAASjB,UAAOC,CAAAA,UAAAA,GAAUC,OAAI,EAAC,CAAC,CAAA,CAC1C,aAAcD,UAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC,CAAA,CAAE,UAAWa,CAAUC,EAAAA,mBAAAA,CAA+BD,CAAK,CAAC","file":"chunk-6AK3RVZR.cjs","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n uuid,\n array,\n type z,\n record,\n any,\n nullable\n} from \"zod\";\n\nimport {\n AssetMetadataSchema,\n AssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\nimport { GLOBAL_ORG_ID, GLOBAL_TEAM_ID } from \"./constants\";\n\nconst BaseBlueprintMetadataSchema = object({\n edges: array(record(string(), any())),\n nodes: array(record(string(), any())),\n});\n\nconst BlueprintMetadataSchema = BaseBlueprintMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst BlueprintSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"blueprint\"),\n metadata: BlueprintMetadataSchema,\n});\n\nconst CreateBlueprintSchema = AssetSchema.partial().extend({\n id: uuid().default(() => uuidv7()),\n team_id: uuid().default(GLOBAL_TEAM_ID),\n org_id: uuid().default(GLOBAL_ORG_ID),\n name_url_slug: string(),\n metadata: BlueprintMetadataSchema.passthrough(),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst UpdateBlueprintSchema = object({\n team_id: nullable(uuid()),\n name_url_slug: nullable(string()),\n name: nullable(string()),\n description: nullable(string()),\n visibility: nullable(VisibilitySchema),\n metadata: nullable(record(string(), any())),\n last_updated: string().default(() => new Date().toISOString()),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nexport { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema };\nexport type Blueprint = z.infer<typeof BlueprintSchema>;\nexport type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;\nexport type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;\n"]}
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkFQ4F7DQH_cjs=require('./chunk-FQ4F7DQH.cjs'),chunk3ZHWBPGA_cjs=require('./chunk-3ZHWBPGA.cjs'),chunk7HF5VHUN_cjs=require('./chunk-7HF5VHUN.cjs'),uuidv7=require('uuidv7'),zod=require('zod');var S=zod.object({schedule:zod.optional(zod.object({cron:zod.string()}).passthrough())}),_=S.extend(chunkFQ4F7DQH_cjs.b.partial().shape),y=chunkFQ4F7DQH_cjs.c.extend({asset_type:chunk3ZHWBPGA_cjs.a.refine(i=>i==="replication"),metadata:_}),b=y.partial().extend({id:zod.uuid().default(()=>uuidv7.uuidv7()),team_id:zod.uuid().default(chunk7HF5VHUN_cjs.c),org_id:zod.uuid().default(chunk7HF5VHUN_cjs.b),name_url_slug:zod.string()}).transform(i=>chunkFQ4F7DQH_cjs.a(i)),C=zod.object({team_id:zod.optional(zod.nullable(zod.uuid())),name_url_slug:zod.optional(zod.nullable(zod.string())),name:zod.optional(zod.nullable(zod.string())),description:zod.optional(zod.nullable(zod.string())),visibility:zod.optional(zod.nullable(chunk3ZHWBPGA_cjs.b)),metadata:zod.optional(zod.nullable(zod.record(zod.string(),zod.any()))),last_updated:zod.string().default(()=>new Date().toISOString())}).transform(i=>chunkFQ4F7DQH_cjs.a(i));exports.a=y;exports.b=b;exports.c=C;//# sourceMappingURL=chunk-6TOGDJKP.cjs.map
2
- //# sourceMappingURL=chunk-6TOGDJKP.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/schema/replications.ts"],"names":["BaseReplicationMetadataSchema","object","optional","string","ReplicationMetadataSchema","AssetMetadataSchema","ReplicationSchema","AssetSchema","AssetTypeSchema","val","CreateReplicationSchema","uuid","uuidv7","GLOBAL_TEAM_ID","GLOBAL_ORG_ID","value","normalizeAssetConfigForParsing","UpdateReplicationSchema","nullable","VisibilitySchema","record","any"],"mappings":"mNAoBA,IAAMA,EAAgCC,UAAO,CAAA,CAC3C,QAAUC,CAAAA,YAAAA,CACRD,WAAO,CACL,IAAA,CAAME,UAAO,EACf,CAAC,CAAE,CAAA,WAAA,EACL,CACF,CAAC,EAEKC,CAA4BJ,CAAAA,CAAAA,CAA8B,MAC9DK,CAAAA,mBAAAA,CAAoB,SAAU,CAAA,KAChC,CAEMC,CAAAA,CAAAA,CAAoBC,oBAAY,MAAO,CAAA,CAC3C,UAAYC,CAAAA,mBAAAA,CAAgB,OAAQC,CAAQA,EAAAA,CAAAA,GAAQ,aAAa,CACjE,CAAA,QAAA,CAAUL,CACZ,CAAC,CAAA,CAEKM,CAA0BJ,CAAAA,CAAAA,CAAkB,SAAU,CAAA,MAAA,CAAO,CACjE,EAAA,CAAIK,UAAO,CAAA,OAAA,CAAQ,IAAMC,aAAAA,EAAQ,CACjC,CAAA,OAAA,CAASD,UAAO,CAAA,OAAA,CAAQE,mBAAc,CACtC,CAAA,MAAA,CAAQF,QAAK,EAAA,CAAE,QAAQG,mBAAa,CAAA,CACpC,aAAeX,CAAAA,UAAAA,EACjB,CAAC,CAAA,CAAE,SAAWY,CAAAA,CAAAA,EAAUC,oBAA+BD,CAAK,CAAC,CAEvDE,CAAAA,CAAAA,CAA0BhB,WAAO,CACrC,OAAA,CAASC,YAASgB,CAAAA,YAAAA,CAASP,UAAM,CAAC,CAClC,CAAA,aAAA,CAAeT,aAASgB,YAASf,CAAAA,UAAAA,EAAQ,CAAC,EAC1C,IAAMD,CAAAA,YAAAA,CAASgB,aAASf,UAAO,EAAC,CAAC,CACjC,CAAA,WAAA,CAAaD,YAASgB,CAAAA,YAAAA,CAASf,YAAQ,CAAC,CACxC,CAAA,UAAA,CAAYD,aAASgB,YAASC,CAAAA,mBAAgB,CAAC,CAAA,CAC/C,SAAUjB,YAASgB,CAAAA,YAAAA,CAASE,WAAOjB,UAAO,EAAA,CAAGkB,SAAK,CAAC,CAAC,CAAA,CACpD,aAAclB,UAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC,CAAA,CAAE,UAAWY,CAAUC,EAAAA,mBAAAA,CAA+BD,CAAK,CAAC","file":"chunk-6TOGDJKP.cjs","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n uuid,\n type z,\n record,\n any,\n optional,\n nullable\n} from \"zod\";\n\nimport {\n AssetMetadataSchema,\n AssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { AssetTypeSchema, VisibilitySchema } from \"./common\";\nimport { GLOBAL_ORG_ID, GLOBAL_TEAM_ID } from \"./constants\";\n\nconst BaseReplicationMetadataSchema = object({\n schedule: optional(\n object({\n cron: string(),\n }).passthrough()\n ),\n});\n\nconst ReplicationMetadataSchema = BaseReplicationMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ReplicationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"replication\"),\n metadata: ReplicationMetadataSchema,\n});\n\nconst CreateReplicationSchema = ReplicationSchema.partial().extend({\n id: uuid().default(() => uuidv7()),\n team_id: uuid().default(GLOBAL_TEAM_ID),\n org_id: uuid().default(GLOBAL_ORG_ID),\n name_url_slug: string(),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst UpdateReplicationSchema = object({\n team_id: optional(nullable(uuid())),\n name_url_slug: optional(nullable(string())),\n name: optional(nullable(string())),\n description: optional(nullable(string())),\n visibility: optional(nullable(VisibilitySchema)),\n metadata: optional(nullable(record(string(), any()))),\n last_updated: string().default(() => new Date().toISOString()),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nexport { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema };\nexport type Replication = z.infer<typeof ReplicationSchema>;\nexport type CreateReplication = z.infer<typeof CreateReplicationSchema>;\nexport type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;\n\n"]}
@@ -1,2 +0,0 @@
1
- import {enum as _enum,object,string,optional,array,nullable,record,any,number,uuid}from'zod';var r=_enum(["user","organization","team","dataset","file","service","route","post","quest","comment","conversation","blueprint","replication"]),h=_enum(["public","private","organization","monetized","inherit"]),d=_enum(["admin","read","write","none"]),S=_enum(["none","pay-to-unlock","pay-per-use"]),f=_enum(["usd","btc"]),_=object({id:string(),user_id:string(),org_id:optional(nullable(string())),embedding:array(number()),content:string(),asset_type:r,asset_id:string(),metadata:optional(nullable(record(string(),any()))),created_at:string(),last_updated:string()}),y=_enum(["comment","reference","mention","action","component","link"]),l=object({id:uuid(),user_id:uuid(),type:y,action_id:optional(nullable(uuid())),source_id:uuid(),target_id:uuid(),source_asset_type:r,target_asset_type:r,created_at:string(),last_updated:string()}),z=object({assetId:uuid(),method:_enum(["checkout","api"]),assetType:r}),b=object({id:uuid(),role:d,user:object({user_id:uuid()}),user_id:nullable(uuid()),org_id:nullable(uuid()),asset_type:r,asset_id:uuid(),created_at:string(),last_updated:string()}),g=_enum(["queued","in-progress","timed-out","success","error"]),x=_enum(["web","api"]);export{r as a,h as b,d as c,S as d,f as e,_ as f,l as g,z as h,b as i,g as j,x as k};//# sourceMappingURL=chunk-7ABFUHWW.js.map
2
- //# sourceMappingURL=chunk-7ABFUHWW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/schema/common.ts"],"names":["AssetTypeSchema","zodEnum","VisibilitySchema","RoleSchema","MonetizationSchema","PriceCurrencySchema","EmbeddingSchema","object","string","optional","nullable","array","number","record","any","ConnectionTypeSchema","ConnectionSchema","uuid","PurchaseAssetSchema","PermissionSchema","StatusSchema","SourceSchema"],"mappings":"6FAcA,IAAMA,CAAkBC,CAAAA,KAAAA,CAAQ,CAC9B,MAAA,CACA,cACA,CAAA,MAAA,CACA,UACA,MACA,CAAA,SAAA,CACA,OACA,CAAA,MAAA,CACA,OACA,CAAA,SAAA,CACA,cACA,CAAA,WAAA,CACA,aACF,CAAC,CAEKC,CAAAA,CAAAA,CAAmBD,KAAQ,CAAA,CAC/B,QACA,CAAA,SAAA,CACA,cACA,CAAA,WAAA,CACA,SACF,CAAC,CAEKE,CAAAA,CAAAA,CAAaF,KAAQ,CAAA,CAAC,OAAS,CAAA,MAAA,CAAQ,OAAS,CAAA,MAAM,CAAC,CAAA,CAEvDG,EAAqBH,KAAQ,CAAA,CAAC,MAAQ,CAAA,eAAA,CAAiB,aAAa,CAAC,CAErEI,CAAAA,CAAAA,CAAsBJ,KAAQ,CAAA,CAAC,KAAO,CAAA,KAAK,CAAC,CAAA,CAE5CK,EAAkBC,MAAO,CAAA,CAC7B,EAAIC,CAAAA,MAAAA,EACJ,CAAA,OAAA,CAASA,MAAO,EAAA,CAChB,MAAQC,CAAAA,QAAAA,CAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,EACnC,SAAWG,CAAAA,KAAAA,CAAMC,MAAO,EAAC,CACzB,CAAA,OAAA,CAASJ,MAAO,EAAA,CAChB,UAAYR,CAAAA,CAAAA,CACZ,QAAUQ,CAAAA,MAAAA,EACV,CAAA,QAAA,CAAUC,QAASC,CAAAA,QAAAA,CAASG,MAAOL,CAAAA,MAAAA,EAAUM,CAAAA,GAAAA,EAAK,CAAC,CAAC,CAAA,CACpD,UAAYN,CAAAA,MAAAA,EACZ,CAAA,YAAA,CAAcA,MAAO,EACvB,CAAC,CAEKO,CAAAA,CAAAA,CAAuBd,KAAQ,CAAA,CACnC,SACA,CAAA,WAAA,CACA,SACA,CAAA,QAAA,CACA,WACA,CAAA,MACF,CAAC,CAAA,CAEKe,CAAmBT,CAAAA,MAAAA,CAAO,CAC9B,EAAIU,CAAAA,IAAAA,EACJ,CAAA,OAAA,CAASA,IAAK,EAAA,CACd,IAAMF,CAAAA,CAAAA,CACN,SAAWN,CAAAA,QAAAA,CAASC,QAASO,CAAAA,IAAAA,EAAM,CAAC,EACpC,SAAWA,CAAAA,IAAAA,EACX,CAAA,SAAA,CAAWA,IAAK,EAAA,CAChB,iBAAmBjB,CAAAA,CAAAA,CACnB,iBAAmBA,CAAAA,CAAAA,CACnB,UAAYQ,CAAAA,MAAAA,EACZ,CAAA,YAAA,CAAcA,MAAO,EACvB,CAAC,CAAA,CAEKU,CAAsBX,CAAAA,MAAAA,CAAO,CACjC,OAAA,CAASU,IAAK,EAAA,CACd,MAAQhB,CAAAA,KAAAA,CAAQ,CAAC,UAAA,CAAY,KAAK,CAAC,EACnC,SAAWD,CAAAA,CACb,CAAC,CAAA,CAEKmB,CAAmBZ,CAAAA,MAAAA,CAAO,CAC9B,EAAA,CAAIU,IAAK,EAAA,CACT,IAAMd,CAAAA,CAAAA,CACN,IAAMI,CAAAA,MAAAA,CAAO,CACX,OAASU,CAAAA,IAAAA,EACX,CAAC,CACD,CAAA,OAAA,CAASP,QAASO,CAAAA,IAAAA,EAAM,CAAA,CACxB,MAAQP,CAAAA,QAAAA,CAASO,IAAK,EAAC,EACvB,UAAYjB,CAAAA,CAAAA,CACZ,QAAUiB,CAAAA,IAAAA,EACV,CAAA,UAAA,CAAYT,MAAO,EAAA,CACnB,YAAcA,CAAAA,MAAAA,EAChB,CAAC,CAEKY,CAAAA,CAAAA,CAAenB,KAAQ,CAAA,CAC3B,QACA,CAAA,aAAA,CACA,WACA,CAAA,SAAA,CACA,OACF,CAAC,CAEKoB,CAAAA,CAAAA,CAAepB,KAAQ,CAAA,CAAC,KAAO,CAAA,KAAK,CAAC","file":"chunk-7ABFUHWW.js","sourcesContent":["import {\n object,\n string,\n uuid,\n number,\n array,\n enum as zodEnum,\n type z,\n any,\n nullable,\n optional,\n record\n} from \"zod\";\n\nconst AssetTypeSchema = zodEnum([\n \"user\",\n \"organization\",\n \"team\",\n \"dataset\",\n \"file\",\n \"service\",\n \"route\",\n \"post\",\n \"quest\",\n \"comment\",\n \"conversation\",\n \"blueprint\",\n \"replication\",\n]);\n\nconst VisibilitySchema = zodEnum([\n \"public\",\n \"private\",\n \"organization\",\n \"monetized\",\n \"inherit\",\n]);\n\nconst RoleSchema = zodEnum([\"admin\", \"read\", \"write\", \"none\"]);\n\nconst MonetizationSchema = zodEnum([\"none\", \"pay-to-unlock\", \"pay-per-use\"]);\n\nconst PriceCurrencySchema = zodEnum([\"usd\", \"btc\"]);\n\nconst EmbeddingSchema = object({\n id: string(),\n user_id: string(),\n org_id: optional(nullable(string())),\n embedding: array(number()),\n content: string(),\n asset_type: AssetTypeSchema,\n asset_id: string(),\n metadata: optional(nullable(record(string(), any()))),\n created_at: string(),\n last_updated: string(),\n});\n\nconst ConnectionTypeSchema = zodEnum([\n \"comment\",\n \"reference\",\n \"mention\",\n \"action\",\n \"component\",\n \"link\",\n]);\n\nconst ConnectionSchema = object({\n id: uuid(),\n user_id: uuid(),\n type: ConnectionTypeSchema,\n action_id: optional(nullable(uuid())),\n source_id: uuid(),\n target_id: uuid(),\n source_asset_type: AssetTypeSchema,\n target_asset_type: AssetTypeSchema,\n created_at: string(),\n last_updated: string(),\n});\n\nconst PurchaseAssetSchema = object({\n assetId: uuid(),\n method: zodEnum([\"checkout\", \"api\"]),\n assetType: AssetTypeSchema,\n});\n\nconst PermissionSchema = object({\n id: uuid(),\n role: RoleSchema,\n user: object({\n user_id: uuid(),\n }),\n user_id: nullable(uuid()),\n org_id: nullable(uuid()),\n asset_type: AssetTypeSchema,\n asset_id: uuid(),\n created_at: string(),\n last_updated: string(),\n});\n\nconst StatusSchema = zodEnum([\n \"queued\",\n \"in-progress\",\n \"timed-out\",\n \"success\",\n \"error\",\n]);\n\nconst SourceSchema = zodEnum([\"web\", \"api\"]);\n\nexport {\n RoleSchema,\n VisibilitySchema,\n MonetizationSchema,\n PriceCurrencySchema,\n ConnectionSchema,\n EmbeddingSchema,\n AssetTypeSchema,\n PurchaseAssetSchema,\n PermissionSchema,\n StatusSchema,\n SourceSchema,\n};\n\nexport type Role = z.infer<typeof RoleSchema>;\nexport type Connection = z.infer<typeof ConnectionSchema>;\nexport type Embedding = z.infer<typeof EmbeddingSchema>;\nexport type Visibility = z.infer<typeof VisibilitySchema>;\nexport type Monetization = z.infer<typeof MonetizationSchema>;\nexport type PriceCurrency = z.infer<typeof PriceCurrencySchema>;\nexport type AssetTypes = z.infer<typeof AssetTypeSchema>;\nexport type PurchaseAsset = z.infer<typeof PurchaseAssetSchema>;\nexport type Permission = z.infer<typeof PermissionSchema>;\nexport type Status = z.infer<typeof StatusSchema>;\nexport type Source = z.infer<typeof SourceSchema>;\n"]}
@@ -1,2 +0,0 @@
1
- import {b as b$1,c,a as a$1}from'./chunk-KZOOYWQ7.js';import {a,b as b$3}from'./chunk-7ABFUHWW.js';import {b as b$2,c as c$1}from'./chunk-DUBPWSCA.js';import {uuidv7}from'uuidv7';import {object,optional,string,uuid,nullable,record,any}from'zod';var S=object({schedule:optional(object({cron:string()}).passthrough())}),_=S.extend(b$1.partial().shape),y=c.extend({asset_type:a.refine(i=>i==="replication"),metadata:_}),b=y.partial().extend({id:uuid().default(()=>uuidv7()),team_id:uuid().default(c$1),org_id:uuid().default(b$2),name_url_slug:string()}).transform(i=>a$1(i)),C=object({team_id:optional(nullable(uuid())),name_url_slug:optional(nullable(string())),name:optional(nullable(string())),description:optional(nullable(string())),visibility:optional(nullable(b$3)),metadata:optional(nullable(record(string(),any()))),last_updated:string().default(()=>new Date().toISOString())}).transform(i=>a$1(i));export{y as a,b,C as c};//# sourceMappingURL=chunk-BU2S7UEL.js.map
2
- //# sourceMappingURL=chunk-BU2S7UEL.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/schema/replications.ts"],"names":["BaseReplicationMetadataSchema","object","optional","string","ReplicationMetadataSchema","AssetMetadataSchema","ReplicationSchema","AssetSchema","AssetTypeSchema","val","CreateReplicationSchema","uuid","uuidv7","GLOBAL_TEAM_ID","GLOBAL_ORG_ID","value","normalizeAssetConfigForParsing","UpdateReplicationSchema","nullable","VisibilitySchema","record","any"],"mappings":"qPAoBA,IAAMA,EAAgCC,MAAO,CAAA,CAC3C,QAAUC,CAAAA,QAAAA,CACRD,OAAO,CACL,IAAA,CAAME,MAAO,EACf,CAAC,CAAE,CAAA,WAAA,EACL,CACF,CAAC,EAEKC,CAA4BJ,CAAAA,CAAAA,CAA8B,MAC9DK,CAAAA,GAAAA,CAAoB,SAAU,CAAA,KAChC,CAEMC,CAAAA,CAAAA,CAAoBC,EAAY,MAAO,CAAA,CAC3C,UAAYC,CAAAA,CAAAA,CAAgB,OAAQC,CAAQA,EAAAA,CAAAA,GAAQ,aAAa,CACjE,CAAA,QAAA,CAAUL,CACZ,CAAC,CAAA,CAEKM,CAA0BJ,CAAAA,CAAAA,CAAkB,SAAU,CAAA,MAAA,CAAO,CACjE,EAAA,CAAIK,MAAO,CAAA,OAAA,CAAQ,IAAMC,MAAAA,EAAQ,CACjC,CAAA,OAAA,CAASD,MAAO,CAAA,OAAA,CAAQE,GAAc,CACtC,CAAA,MAAA,CAAQF,IAAK,EAAA,CAAE,QAAQG,GAAa,CAAA,CACpC,aAAeX,CAAAA,MAAAA,EACjB,CAAC,CAAA,CAAE,SAAWY,CAAAA,CAAAA,EAAUC,IAA+BD,CAAK,CAAC,CAEvDE,CAAAA,CAAAA,CAA0BhB,OAAO,CACrC,OAAA,CAASC,QAASgB,CAAAA,QAAAA,CAASP,MAAM,CAAC,CAClC,CAAA,aAAA,CAAeT,SAASgB,QAASf,CAAAA,MAAAA,EAAQ,CAAC,EAC1C,IAAMD,CAAAA,QAAAA,CAASgB,SAASf,MAAO,EAAC,CAAC,CACjC,CAAA,WAAA,CAAaD,QAASgB,CAAAA,QAAAA,CAASf,QAAQ,CAAC,CACxC,CAAA,UAAA,CAAYD,SAASgB,QAASC,CAAAA,GAAgB,CAAC,CAAA,CAC/C,SAAUjB,QAASgB,CAAAA,QAAAA,CAASE,OAAOjB,MAAO,EAAA,CAAGkB,KAAK,CAAC,CAAC,CAAA,CACpD,aAAclB,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC,CAAA,CAAE,UAAWY,CAAUC,EAAAA,GAAAA,CAA+BD,CAAK,CAAC","file":"chunk-BU2S7UEL.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n uuid,\n type z,\n record,\n any,\n optional,\n nullable\n} from \"zod\";\n\nimport {\n AssetMetadataSchema,\n AssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport { AssetTypeSchema, VisibilitySchema } from \"./common\";\nimport { GLOBAL_ORG_ID, GLOBAL_TEAM_ID } from \"./constants\";\n\nconst BaseReplicationMetadataSchema = object({\n schedule: optional(\n object({\n cron: string(),\n }).passthrough()\n ),\n});\n\nconst ReplicationMetadataSchema = BaseReplicationMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ReplicationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"replication\"),\n metadata: ReplicationMetadataSchema,\n});\n\nconst CreateReplicationSchema = ReplicationSchema.partial().extend({\n id: uuid().default(() => uuidv7()),\n team_id: uuid().default(GLOBAL_TEAM_ID),\n org_id: uuid().default(GLOBAL_ORG_ID),\n name_url_slug: string(),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst UpdateReplicationSchema = object({\n team_id: optional(nullable(uuid())),\n name_url_slug: optional(nullable(string())),\n name: optional(nullable(string())),\n description: optional(nullable(string())),\n visibility: optional(nullable(VisibilitySchema)),\n metadata: optional(nullable(record(string(), any()))),\n last_updated: string().default(() => new Date().toISOString()),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nexport { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema };\nexport type Replication = z.infer<typeof ReplicationSchema>;\nexport type CreateReplication = z.infer<typeof CreateReplicationSchema>;\nexport type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;\n\n"]}
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkV5DSXK34_cjs=require('./chunk-V5DSXK34.cjs'),chunkFQ4F7DQH_cjs=require('./chunk-FQ4F7DQH.cjs'),chunkGY6SLMMJ_cjs=require('./chunk-GY6SLMMJ.cjs'),chunk3ZHWBPGA_cjs=require('./chunk-3ZHWBPGA.cjs'),zod=require('zod');var g=zod.object({members:zod.array(zod.string())}),l=g.extend(chunkFQ4F7DQH_cjs.b.partial().shape),T=chunkFQ4F7DQH_cjs.c.extend({asset_type:chunk3ZHWBPGA_cjs.a.default("conversation"),metadata:l,users:zod.optional(zod.nullable(zod.array(chunkGY6SLMMJ_cjs.b)))}),C=chunkFQ4F7DQH_cjs.d.extend({asset_type:zod.literal("conversation").default("conversation"),monetization:chunk3ZHWBPGA_cjs.d.default("none"),visibility:chunk3ZHWBPGA_cjs.b.default("private"),metadata:l}),U=C.transform(a=>chunkFQ4F7DQH_cjs.a(a)),j=C.omit({id:true,org_id:true,team_id:true}).partial().transform(a=>chunkFQ4F7DQH_cjs.a(a)),B=zod.object({id:zod.uuid(),conversation_id:zod.uuid(),user_id:zod.uuid(),user:zod.optional(zod.nullable(chunkGY6SLMMJ_cjs.b)),type:zod.string().default("message"),created_at:zod.string(),last_updated:zod.string(),viewers:zod.array(zod.uuid()),json:chunkV5DSXK34_cjs.a,text:zod.string(),metadata:zod.optional(zod.nullable(zod.record(zod.string(),zod.any())))});exports.a=T;exports.b=U;exports.c=j;exports.d=B;//# sourceMappingURL=chunk-CVFVOARW.cjs.map
2
- //# sourceMappingURL=chunk-CVFVOARW.cjs.map
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkOIPOIY6M_cjs=require('./chunk-OIPOIY6M.cjs'),chunkGY6SLMMJ_cjs=require('./chunk-GY6SLMMJ.cjs'),chunk3ZHWBPGA_cjs=require('./chunk-3ZHWBPGA.cjs'),uuidv7=require('uuidv7'),zod=require('zod');var u=zod.object({id:zod.uuid(),org_id:zod.uuid(),organization:chunkOIPOIY6M_cjs.c,name:zod.string(),description:zod.optional(zod.nullable(zod.object({text:zod.string(),json:zod.record(zod.string(),zod.any())}))),default_role:chunk3ZHWBPGA_cjs.c,visibility:chunk3ZHWBPGA_cjs.b,actor_type_policy:zod.optional(zod.nullable(chunkOIPOIY6M_cjs.a)),source_policy:zod.optional(zod.nullable(chunkOIPOIY6M_cjs.b)),userMembership:zod.optional(zod.nullable(zod.object({user_id:zod.uuid(),role:chunk3ZHWBPGA_cjs.c}))),memberCount:zod.optional(zod.nullable(zod.number())),members:zod.array(zod.object({user_id:zod.uuid(),role:chunk3ZHWBPGA_cjs.c,added_at:zod.string(),user:zod.optional(zod.nullable(chunkGY6SLMMJ_cjs.b.partial()))})),created_at:zod.string()}),w=u.extend({id:zod.string().default(()=>uuidv7.uuidv7()),default_role:chunk3ZHWBPGA_cjs.c.default("write").refine(m=>m==="read"||m==="write"),visibility:chunk3ZHWBPGA_cjs.b.default("public").refine(m=>m==="public"||m==="organization"),created_at:zod.string().default(()=>new Date().toISOString())}).omit({organization:true,userMembership:true,memberCount:true,members:true,created_at:true}),_=u.extend({userMembership:zod.optional(zod.nullable(zod.object({user_id:zod.uuid(),role:chunk3ZHWBPGA_cjs.c}))),memberCount:zod.number(),members:zod.array(zod.object({user_id:zod.uuid(),role:chunk3ZHWBPGA_cjs.c,added_at:zod.string(),user:zod.optional(zod.nullable(chunkGY6SLMMJ_cjs.b.partial()))})),organization:zod.optional(zod.nullable(chunkOIPOIY6M_cjs.c.partial())),assets:zod.optional(zod.nullable(zod.array(zod.record(zod.string(),zod.any())))),users:zod.optional(zod.nullable(zod.array(chunkGY6SLMMJ_cjs.b.partial())))}),M=zod.array(_.extend({label:zod.string(),value:zod.string()})),P=u.partial().omit({org_id:true,organization:true,created_at:true}).extend({id:zod.uuid()});exports.a=u;exports.b=w;exports.c=_;exports.d=M;exports.e=P;//# sourceMappingURL=chunk-IW4MZW5P.cjs.map
2
- //# sourceMappingURL=chunk-IW4MZW5P.cjs.map
@@ -1,2 +0,0 @@
1
- import {b as b$1,c,a as a$1}from'./chunk-KZOOYWQ7.js';import {a,b as b$3}from'./chunk-7ABFUHWW.js';import {b as b$2,c as c$1}from'./chunk-DUBPWSCA.js';import {uuidv7}from'uuidv7';import {object,array,record,string,any,uuid,nullable}from'zod';var B=object({edges:array(record(string(),any())),nodes:array(record(string(),any()))}),h=B.extend(b$1.partial().shape),b=c.extend({asset_type:a.refine(a=>a==="blueprint"),metadata:h}),M=c.partial().extend({id:uuid().default(()=>uuidv7()),team_id:uuid().default(c$1),org_id:uuid().default(b$2),name_url_slug:string(),metadata:h.passthrough()}).transform(a=>a$1(a)),C=object({team_id:nullable(uuid()),name_url_slug:nullable(string()),name:nullable(string()),description:nullable(string()),visibility:nullable(b$3),metadata:nullable(record(string(),any())),last_updated:string().default(()=>new Date().toISOString())}).transform(a=>a$1(a));export{b as a,M as b,C as c};//# sourceMappingURL=chunk-JPCZIGX2.js.map
2
- //# sourceMappingURL=chunk-JPCZIGX2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/schema/blueprints.ts"],"names":["BaseBlueprintMetadataSchema","object","array","record","string","any","BlueprintMetadataSchema","AssetMetadataSchema","BlueprintSchema","AssetSchema","AssetTypeSchema","val","CreateBlueprintSchema","uuid","uuidv7","GLOBAL_TEAM_ID","GLOBAL_ORG_ID","value","normalizeAssetConfigForParsing","UpdateBlueprintSchema","nullable","VisibilitySchema"],"mappings":"kPAwBA,IAAMA,EAA8BC,MAAO,CAAA,CACzC,KAAOC,CAAAA,KAAAA,CAAMC,OAAOC,MAAO,EAAA,CAAGC,GAAI,EAAC,CAAC,CACpC,CAAA,KAAA,CAAOH,MAAMC,MAAOC,CAAAA,MAAAA,GAAUC,GAAI,EAAC,CAAC,CACtC,CAAC,CAEKC,CAAAA,CAAAA,CAA0BN,CAA4B,CAAA,MAAA,CAC1DO,IAAoB,OAAQ,EAAA,CAAE,KAChC,CAAA,CAEMC,EAAkBC,CAAY,CAAA,MAAA,CAAO,CACzC,UAAA,CAAYC,EAAgB,MAAQC,CAAAA,CAAAA,EAAQA,CAAQ,GAAA,WAAW,EAC/D,QAAUL,CAAAA,CACZ,CAAC,CAAA,CAEKM,EAAwBH,CAAY,CAAA,OAAA,EAAU,CAAA,MAAA,CAAO,CACzD,EAAII,CAAAA,IAAAA,GAAO,OAAQ,CAAA,IAAMC,QAAQ,CAAA,CACjC,OAASD,CAAAA,IAAAA,GAAO,OAAQE,CAAAA,GAAc,CACtC,CAAA,MAAA,CAAQF,MAAO,CAAA,OAAA,CAAQG,GAAa,CAAA,CACpC,cAAeZ,MAAO,EAAA,CACtB,QAAUE,CAAAA,CAAAA,CAAwB,aACpC,CAAC,CAAE,CAAA,SAAA,CAAWW,GAAUC,GAA+BD,CAAAA,CAAK,CAAC,CAAA,CAEvDE,EAAwBlB,MAAO,CAAA,CACnC,OAASmB,CAAAA,QAAAA,CAASP,MAAM,CAAA,CACxB,cAAeO,QAAShB,CAAAA,MAAAA,EAAQ,CAChC,CAAA,IAAA,CAAMgB,QAAShB,CAAAA,MAAAA,EAAQ,CACvB,CAAA,WAAA,CAAagB,QAAShB,CAAAA,MAAAA,EAAQ,CAC9B,CAAA,UAAA,CAAYgB,QAASC,CAAAA,GAAgB,EACrC,QAAUD,CAAAA,QAAAA,CAASjB,MAAOC,CAAAA,MAAAA,GAAUC,GAAI,EAAC,CAAC,CAAA,CAC1C,aAAcD,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAK,EAAA,CAAE,WAAY,EAAC,CAC/D,CAAC,CAAA,CAAE,UAAWa,CAAUC,EAAAA,GAAAA,CAA+BD,CAAK,CAAC","file":"chunk-JPCZIGX2.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n uuid,\n array,\n type z,\n record,\n any,\n nullable\n} from \"zod\";\n\nimport {\n AssetMetadataSchema,\n AssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\nimport {\n AssetTypeSchema,\n MonetizationSchema,\n VisibilitySchema,\n} from \"./common\";\nimport { GLOBAL_ORG_ID, GLOBAL_TEAM_ID } from \"./constants\";\n\nconst BaseBlueprintMetadataSchema = object({\n edges: array(record(string(), any())),\n nodes: array(record(string(), any())),\n});\n\nconst BlueprintMetadataSchema = BaseBlueprintMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst BlueprintSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"blueprint\"),\n metadata: BlueprintMetadataSchema,\n});\n\nconst CreateBlueprintSchema = AssetSchema.partial().extend({\n id: uuid().default(() => uuidv7()),\n team_id: uuid().default(GLOBAL_TEAM_ID),\n org_id: uuid().default(GLOBAL_ORG_ID),\n name_url_slug: string(),\n metadata: BlueprintMetadataSchema.passthrough(),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst UpdateBlueprintSchema = object({\n team_id: nullable(uuid()),\n name_url_slug: nullable(string()),\n name: nullable(string()),\n description: nullable(string()),\n visibility: nullable(VisibilitySchema),\n metadata: nullable(record(string(), any())),\n last_updated: string().default(() => new Date().toISOString()),\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nexport { BlueprintSchema, CreateBlueprintSchema, UpdateBlueprintSchema };\nexport type Blueprint = z.infer<typeof BlueprintSchema>;\nexport type CreateBlueprint = z.infer<typeof CreateBlueprintSchema>;\nexport type UpdateBlueprint = z.infer<typeof UpdateBlueprintSchema>;\n"]}
@@ -1,2 +0,0 @@
1
- 'use strict';var chunk6AK3RVZR_cjs=require('../chunk-6AK3RVZR.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,"BlueprintSchema",{enumerable:true,get:function(){return chunk6AK3RVZR_cjs.a}});Object.defineProperty(exports,"CreateBlueprintSchema",{enumerable:true,get:function(){return chunk6AK3RVZR_cjs.b}});Object.defineProperty(exports,"UpdateBlueprintSchema",{enumerable:true,get:function(){return chunk6AK3RVZR_cjs.c}});//# sourceMappingURL=blueprints.cjs.map
2
- //# sourceMappingURL=blueprints.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"blueprints.cjs"}