@ourofoundation/ouro-js 3.2.4 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/dist/chunk-42EQ7ULD.cjs +2 -0
  2. package/dist/chunk-42EQ7ULD.cjs.map +1 -0
  3. package/dist/chunk-43KB23BA.cjs +2 -0
  4. package/dist/chunk-43KB23BA.cjs.map +1 -0
  5. package/dist/{chunk-7RF362MN.cjs → chunk-4K6R6FZD.cjs} +2 -2
  6. package/dist/{chunk-7RF362MN.cjs.map → chunk-4K6R6FZD.cjs.map} +1 -1
  7. package/dist/{chunk-SKQ6BRPY.js → chunk-6YF2RSXS.js} +2 -2
  8. package/dist/{chunk-SKQ6BRPY.js.map → chunk-6YF2RSXS.js.map} +1 -1
  9. package/dist/{chunk-TGAK4B5M.js → chunk-B4225TEG.js} +2 -2
  10. package/dist/{chunk-TGAK4B5M.js.map → chunk-B4225TEG.js.map} +1 -1
  11. package/dist/{chunk-Q34MIANF.js → chunk-BFBGVGNF.js} +2 -2
  12. package/dist/{chunk-Q34MIANF.js.map → chunk-BFBGVGNF.js.map} +1 -1
  13. package/dist/{chunk-OFSSOFOC.cjs → chunk-BQ5WODME.cjs} +2 -2
  14. package/dist/{chunk-OFSSOFOC.cjs.map → chunk-BQ5WODME.cjs.map} +1 -1
  15. package/dist/{chunk-WYHO26N6.js → chunk-CF56NFUG.js} +2 -2
  16. package/dist/{chunk-WYHO26N6.js.map → chunk-CF56NFUG.js.map} +1 -1
  17. package/dist/chunk-CIWFH5BJ.js +2 -0
  18. package/dist/chunk-CIWFH5BJ.js.map +1 -0
  19. package/dist/chunk-EY4OFSDP.js +2 -0
  20. package/dist/chunk-EY4OFSDP.js.map +1 -0
  21. package/dist/chunk-FDKZIS34.js +2 -0
  22. package/dist/chunk-FDKZIS34.js.map +1 -0
  23. package/dist/chunk-G24BRDHO.cjs +2 -0
  24. package/dist/chunk-G24BRDHO.cjs.map +1 -0
  25. package/dist/{chunk-KZOOYWQ7.js → chunk-G2MXCB7Q.js} +2 -2
  26. package/dist/{chunk-KZOOYWQ7.js.map → chunk-G2MXCB7Q.js.map} +1 -1
  27. package/dist/{chunk-FQ4F7DQH.cjs → chunk-IP4OVRZB.cjs} +2 -2
  28. package/dist/{chunk-FQ4F7DQH.cjs.map → chunk-IP4OVRZB.cjs.map} +1 -1
  29. package/dist/{chunk-XIH622YH.js → chunk-JISPX5A6.js} +2 -2
  30. package/dist/{chunk-XIH622YH.js.map → chunk-JISPX5A6.js.map} +1 -1
  31. package/dist/{chunk-KYK27OHG.cjs → chunk-MH4A7XAY.cjs} +2 -2
  32. package/dist/{chunk-KYK27OHG.cjs.map → chunk-MH4A7XAY.cjs.map} +1 -1
  33. package/dist/chunk-MOEVC3KD.cjs +2 -0
  34. package/dist/chunk-MOEVC3KD.cjs.map +1 -0
  35. package/dist/chunk-NEINJFFK.cjs +2 -0
  36. package/dist/{chunk-CVFVOARW.cjs.map → chunk-NEINJFFK.cjs.map} +1 -1
  37. package/dist/{chunk-P5JYABNP.cjs → chunk-QT3A4ULM.cjs} +2 -2
  38. package/dist/{chunk-P5JYABNP.cjs.map → chunk-QT3A4ULM.cjs.map} +1 -1
  39. package/dist/{chunk-7SSENGQL.js → chunk-U3F23ASS.js} +2 -2
  40. package/dist/{chunk-7SSENGQL.js.map → chunk-U3F23ASS.js.map} +1 -1
  41. package/dist/chunk-UY43EQTO.cjs +2 -0
  42. package/dist/{chunk-IW4MZW5P.cjs.map → chunk-UY43EQTO.cjs.map} +1 -1
  43. package/dist/{chunk-OIPOIY6M.cjs → chunk-VOY623ZD.cjs} +2 -2
  44. package/dist/{chunk-OIPOIY6M.cjs.map → chunk-VOY623ZD.cjs.map} +1 -1
  45. package/dist/{chunk-MB4EEZKP.js → chunk-WLGOABHV.js} +2 -2
  46. package/dist/{chunk-MB4EEZKP.js.map → chunk-WLGOABHV.js.map} +1 -1
  47. package/dist/chunk-WRHPQNEL.js +2 -0
  48. package/dist/chunk-WRHPQNEL.js.map +1 -0
  49. package/dist/{chunk-V5DSXK34.cjs → chunk-WUC5AUUJ.cjs} +2 -2
  50. package/dist/{chunk-V5DSXK34.cjs.map → chunk-WUC5AUUJ.cjs.map} +1 -1
  51. package/dist/{chunk-XWUYZSVO.js → chunk-Y6AKG4FJ.js} +2 -2
  52. package/dist/{chunk-XWUYZSVO.js.map → chunk-Y6AKG4FJ.js.map} +1 -1
  53. package/dist/index.cjs +1 -1
  54. package/dist/index.d.cts +1 -2
  55. package/dist/index.d.ts +1 -2
  56. package/dist/index.js +1 -1
  57. package/dist/schema/assets.cjs +1 -1
  58. package/dist/schema/assets.d.cts +84 -90
  59. package/dist/schema/assets.d.ts +84 -90
  60. package/dist/schema/assets.js +1 -1
  61. package/dist/schema/comments.cjs +1 -1
  62. package/dist/schema/comments.d.cts +136 -136
  63. package/dist/schema/comments.d.ts +136 -136
  64. package/dist/schema/comments.js +1 -1
  65. package/dist/schema/common.cjs +1 -1
  66. package/dist/schema/common.d.cts +17 -28
  67. package/dist/schema/common.d.ts +17 -28
  68. package/dist/schema/common.js +1 -1
  69. package/dist/schema/conversations.cjs +1 -1
  70. package/dist/schema/conversations.d.cts +69 -71
  71. package/dist/schema/conversations.d.ts +69 -71
  72. package/dist/schema/conversations.js +1 -1
  73. package/dist/schema/datasets.cjs +1 -1
  74. package/dist/schema/datasets.d.cts +106 -106
  75. package/dist/schema/datasets.d.ts +106 -106
  76. package/dist/schema/datasets.js +1 -1
  77. package/dist/schema/events.cjs +2 -0
  78. package/dist/schema/events.cjs.map +1 -0
  79. package/dist/schema/events.d.cts +113 -0
  80. package/dist/schema/events.d.ts +113 -0
  81. package/dist/schema/events.js +2 -0
  82. package/dist/schema/events.js.map +1 -0
  83. package/dist/schema/files.cjs +1 -1
  84. package/dist/schema/files.d.cts +100 -100
  85. package/dist/schema/files.d.ts +100 -100
  86. package/dist/schema/files.js +1 -1
  87. package/dist/schema/notifications.cjs +1 -1
  88. package/dist/schema/notifications.d.cts +2 -4
  89. package/dist/schema/notifications.d.ts +2 -4
  90. package/dist/schema/notifications.js +1 -1
  91. package/dist/schema/organizations.cjs +1 -1
  92. package/dist/schema/organizations.d.cts +1 -1
  93. package/dist/schema/organizations.d.ts +1 -1
  94. package/dist/schema/organizations.js +1 -1
  95. package/dist/schema/posts.cjs +1 -1
  96. package/dist/schema/posts.d.cts +127 -137
  97. package/dist/schema/posts.d.ts +127 -137
  98. package/dist/schema/posts.js +1 -1
  99. package/dist/schema/services.cjs +1 -1
  100. package/dist/schema/services.d.cts +124 -131
  101. package/dist/schema/services.d.ts +124 -131
  102. package/dist/schema/services.js +1 -1
  103. package/dist/schema/teams.cjs +1 -1
  104. package/dist/schema/teams.d.cts +18 -18
  105. package/dist/schema/teams.d.ts +18 -18
  106. package/dist/schema/teams.js +1 -1
  107. package/dist/utils/navigate.cjs +1 -1
  108. package/dist/utils/navigate.d.cts +2 -2
  109. package/dist/utils/navigate.d.ts +2 -2
  110. package/dist/utils/navigate.js +1 -1
  111. package/package.json +1 -1
  112. package/scripts/dump-events.ts +10 -0
  113. package/dist/chunk-3ZHWBPGA.cjs +0 -2
  114. package/dist/chunk-3ZHWBPGA.cjs.map +0 -1
  115. package/dist/chunk-6AK3RVZR.cjs +0 -2
  116. package/dist/chunk-6AK3RVZR.cjs.map +0 -1
  117. package/dist/chunk-6RGIIOOP.js +0 -2
  118. package/dist/chunk-6RGIIOOP.js.map +0 -1
  119. package/dist/chunk-6TOGDJKP.cjs +0 -2
  120. package/dist/chunk-6TOGDJKP.cjs.map +0 -1
  121. package/dist/chunk-7ABFUHWW.js +0 -2
  122. package/dist/chunk-7ABFUHWW.js.map +0 -1
  123. package/dist/chunk-BU2S7UEL.js +0 -2
  124. package/dist/chunk-BU2S7UEL.js.map +0 -1
  125. package/dist/chunk-CVFVOARW.cjs +0 -2
  126. package/dist/chunk-DHQJ2FCF.cjs +0 -2
  127. package/dist/chunk-DHQJ2FCF.cjs.map +0 -1
  128. package/dist/chunk-FNW6DDNP.cjs +0 -2
  129. package/dist/chunk-FNW6DDNP.cjs.map +0 -1
  130. package/dist/chunk-IW4MZW5P.cjs +0 -2
  131. package/dist/chunk-JPCZIGX2.js +0 -2
  132. package/dist/chunk-JPCZIGX2.js.map +0 -1
  133. package/dist/chunk-XMYZV7TD.js +0 -2
  134. package/dist/chunk-XMYZV7TD.js.map +0 -1
  135. package/dist/schema/blueprints.cjs +0 -2
  136. package/dist/schema/blueprints.cjs.map +0 -1
  137. package/dist/schema/blueprints.d.cts +0 -823
  138. package/dist/schema/blueprints.d.ts +0 -823
  139. package/dist/schema/blueprints.js +0 -2
  140. package/dist/schema/blueprints.js.map +0 -1
  141. package/dist/schema/replications.cjs +0 -2
  142. package/dist/schema/replications.cjs.map +0 -1
  143. package/dist/schema/replications.d.cts +0 -827
  144. package/dist/schema/replications.d.ts +0 -827
  145. package/dist/schema/replications.js +0 -2
  146. package/dist/schema/replications.js.map +0 -1
@@ -108,9 +108,9 @@ declare const 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
  }>;
@@ -210,31 +210,29 @@ declare const ServiceSchema: z.ZodObject<{
210
210
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
211
211
  state: z.ZodEnum<{
212
212
  success: "success";
213
+ error: "error";
213
214
  queued: "queued";
214
215
  "in-progress": "in-progress";
215
216
  "timed-out": "timed-out";
216
- error: "error";
217
217
  }>;
218
218
  source: z.ZodEnum<{
219
- api: "api";
220
219
  web: "web";
220
+ api: "api";
221
221
  }>;
222
222
  created_at: z.ZodString;
223
223
  last_updated: z.ZodString;
224
224
  asset_type: z.ZodEnum<{
225
- user: "user";
226
225
  organization: "organization";
226
+ file: "file";
227
+ user: "user";
227
228
  team: "team";
228
229
  dataset: "dataset";
229
- file: "file";
230
230
  service: "service";
231
231
  route: "route";
232
232
  post: "post";
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<{
@@ -263,15 +261,15 @@ declare const ServiceSchema: z.ZodObject<{
263
261
  }, z.core.$strip>;
264
262
  declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
265
263
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
266
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
267
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
268
- text: z.ZodString;
269
- }, z.core.$strip>>>>;
270
264
  monetization: z.ZodOptional<z.ZodEnum<{
271
265
  none: "none";
272
266
  "pay-to-unlock": "pay-to-unlock";
273
267
  "pay-per-use": "pay-per-use";
274
268
  }>>;
269
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
270
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
271
+ text: z.ZodString;
272
+ }, z.core.$strip>>>>;
275
273
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
276
274
  license_id: z.ZodOptional<z.ZodString>;
277
275
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -296,38 +294,36 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
296
294
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
295
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
298
296
  success: "success";
297
+ error: "error";
299
298
  queued: "queued";
300
299
  "in-progress": "in-progress";
301
300
  "timed-out": "timed-out";
302
- error: "error";
303
301
  }>>>;
304
302
  source: z.ZodDefault<z.ZodEnum<{
305
- api: "api";
306
303
  web: "web";
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<{
318
- user: "user";
319
316
  organization: "organization";
317
+ file: "file";
318
+ user: "user";
320
319
  team: "team";
321
320
  dataset: "dataset";
322
- file: "file";
323
321
  service: "service";
324
322
  route: "route";
325
323
  post: "post";
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<{
@@ -358,12 +354,12 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
358
354
  team_id: string | null;
359
355
  org_id: string | null;
360
356
  name: string;
361
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
362
- source: "api" | "web";
363
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
357
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
358
+ source: "web" | "api";
359
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
364
360
  created_at: string;
365
361
  last_updated: string;
366
- asset_type: "user" | "organization" | "team" | "dataset" | "file" | "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;
@@ -380,11 +376,11 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
380
376
  reply_to_comment_id?: string | null | undefined;
381
377
  };
382
378
  parent?: Record<string, any> | undefined;
379
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
383
380
  description?: {
384
381
  json: Record<string, any>;
385
382
  text: string;
386
383
  } | null | undefined;
387
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
388
384
  parent_id?: string | null | undefined;
389
385
  license_id?: string | undefined;
390
386
  price?: number | null | undefined;
@@ -402,12 +398,12 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
402
398
  team_id: string | null;
403
399
  org_id: string | null;
404
400
  name: string;
405
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
406
- source: "api" | "web";
407
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
401
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
402
+ source: "web" | "api";
403
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
408
404
  created_at: string;
409
405
  last_updated: string;
410
- asset_type: "user" | "organization" | "team" | "dataset" | "file" | "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;
@@ -424,11 +420,11 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
424
420
  reply_to_comment_id?: string | null | undefined;
425
421
  };
426
422
  parent?: Record<string, any> | undefined;
423
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
427
424
  description?: {
428
425
  json: Record<string, any>;
429
426
  text: string;
430
427
  } | null | undefined;
431
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
432
428
  parent_id?: string | null | undefined;
433
429
  license_id?: string | undefined;
434
430
  price?: number | null | undefined;
@@ -443,64 +439,31 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
443
439
  name_url_slug?: string | null | undefined;
444
440
  }>>;
445
441
  declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
442
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
443
+ source: z.ZodOptional<z.ZodEnum<{
444
+ web: "web";
445
+ api: "api";
446
+ }>>;
446
447
  asset_type: z.ZodOptional<z.ZodEnum<{
447
- user: "user";
448
448
  organization: "organization";
449
+ file: "file";
450
+ user: "user";
449
451
  team: "team";
450
452
  dataset: "dataset";
451
- file: "file";
452
453
  service: "service";
453
454
  route: "route";
454
455
  post: "post";
455
456
  quest: "quest";
456
457
  comment: "comment";
457
458
  conversation: "conversation";
458
- blueprint: "blueprint";
459
- replication: "replication";
460
459
  }>>;
461
- org_id: z.ZodOptional<z.ZodUUID>;
462
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
463
- metadata: z.ZodOptional<z.ZodObject<{
464
- authentication: z.ZodEnum<{
465
- "Personal Access Token": "Personal Access Token";
466
- Ouro: "Ouro";
467
- None: "None";
468
- "OAuth 2.0": "OAuth 2.0";
469
- }>;
470
- base_url: z.ZodString;
471
- version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
- spec_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
473
- spec_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
474
- auth_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
475
- doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
476
- external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
477
- paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
478
- github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
479
- originality: z.ZodOptional<z.ZodEnum<{
480
- original: "original";
481
- derivative: "derivative";
482
- "third-party": "third-party";
483
- }>>;
484
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
485
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
486
- }, z.core.$strip>>;
487
- name: z.ZodOptional<z.ZodString>;
488
- team_id: z.ZodOptional<z.ZodUUID>;
489
460
  visibility: z.ZodOptional<z.ZodEnum<{
490
- organization: "organization";
491
461
  public: "public";
492
462
  private: "private";
463
+ organization: "organization";
493
464
  monetized: "monetized";
494
465
  inherit: "inherit";
495
466
  }>>;
496
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
497
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
498
- text: z.ZodString;
499
- }, z.core.$strip>>>>;
500
- source: z.ZodOptional<z.ZodEnum<{
501
- api: "api";
502
- web: "web";
503
- }>>;
504
467
  monetization: z.ZodOptional<z.ZodEnum<{
505
468
  none: "none";
506
469
  "pay-to-unlock": "pay-to-unlock";
@@ -508,11 +471,18 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
508
471
  }>>;
509
472
  state: z.ZodOptional<z.ZodEnum<{
510
473
  success: "success";
474
+ error: "error";
511
475
  queued: "queued";
512
476
  "in-progress": "in-progress";
513
477
  "timed-out": "timed-out";
514
- error: "error";
515
478
  }>>;
479
+ name: z.ZodOptional<z.ZodString>;
480
+ org_id: z.ZodOptional<z.ZodUUID>;
481
+ team_id: z.ZodOptional<z.ZodUUID>;
482
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
483
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
484
+ text: z.ZodString;
485
+ }, z.core.$strip>>>>;
516
486
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
517
487
  license_id: z.ZodOptional<z.ZodString>;
518
488
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -531,38 +501,47 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
531
501
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
532
502
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
533
503
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
504
+ metadata: z.ZodOptional<z.ZodObject<{
505
+ authentication: z.ZodEnum<{
506
+ "Personal Access Token": "Personal Access Token";
507
+ Ouro: "Ouro";
508
+ None: "None";
509
+ "OAuth 2.0": "OAuth 2.0";
510
+ }>;
511
+ base_url: z.ZodString;
512
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
513
+ spec_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
514
+ spec_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
515
+ auth_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
516
+ doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
517
+ external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
518
+ paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
519
+ github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
520
+ originality: z.ZodOptional<z.ZodEnum<{
521
+ original: "original";
522
+ derivative: "derivative";
523
+ "third-party": "third-party";
524
+ }>>;
525
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
526
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
527
+ }, z.core.$strip>>;
534
528
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
535
529
  last_updated: z.ZodDefault<z.ZodString>;
536
530
  }, z.core.$strip>, z.ZodTransform<{
537
531
  last_updated: string;
538
- asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
539
- org_id?: string | undefined;
540
532
  parent?: Record<string, any> | undefined;
541
- metadata?: {
542
- authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
543
- base_url: string;
544
- version?: string | null | undefined;
545
- spec_path?: string | null | undefined;
546
- spec_url?: string | null | undefined;
547
- auth_url?: string | null | undefined;
548
- doi_url?: string | null | undefined;
549
- external_url?: string | null | undefined;
550
- paper_url?: string | null | undefined;
551
- github_url?: string | null | undefined;
552
- originality?: "original" | "derivative" | "third-party" | undefined;
553
- source?: string | null | undefined;
554
- reply_to_comment_id?: string | null | undefined;
555
- } | undefined;
533
+ source?: "web" | "api" | undefined;
534
+ asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
535
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
536
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
537
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
556
538
  name?: string | undefined;
539
+ org_id?: string | undefined;
557
540
  team_id?: string | undefined;
558
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
559
541
  description?: {
560
542
  json: Record<string, any>;
561
543
  text: string;
562
544
  } | null | undefined;
563
- source?: "api" | "web" | undefined;
564
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
565
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
566
545
  parent_id?: string | null | undefined;
567
546
  license_id?: string | undefined;
568
547
  license?: Record<string, any> | undefined;
@@ -575,12 +554,6 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
575
554
  stripe_product_id?: string | null | undefined;
576
555
  stripe_price_id?: string | null | undefined;
577
556
  stripe_meter_id?: string | null | undefined;
578
- preview?: Record<string, any>[] | null | undefined;
579
- }, {
580
- last_updated: string;
581
- asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
582
- org_id?: string | undefined;
583
- parent?: Record<string, any> | undefined;
584
557
  metadata?: {
585
558
  authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
586
559
  base_url: string;
@@ -596,16 +569,22 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
596
569
  source?: string | null | undefined;
597
570
  reply_to_comment_id?: string | null | undefined;
598
571
  } | undefined;
572
+ preview?: Record<string, any>[] | null | undefined;
573
+ }, {
574
+ last_updated: string;
575
+ parent?: Record<string, any> | undefined;
576
+ source?: "web" | "api" | undefined;
577
+ asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
578
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
579
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
580
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
599
581
  name?: string | undefined;
582
+ org_id?: string | undefined;
600
583
  team_id?: string | undefined;
601
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
602
584
  description?: {
603
585
  json: Record<string, any>;
604
586
  text: string;
605
587
  } | null | undefined;
606
- source?: "api" | "web" | undefined;
607
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
608
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
609
588
  parent_id?: string | null | undefined;
610
589
  license_id?: string | undefined;
611
590
  license?: Record<string, any> | undefined;
@@ -618,6 +597,21 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
618
597
  stripe_product_id?: string | null | undefined;
619
598
  stripe_price_id?: string | null | undefined;
620
599
  stripe_meter_id?: string | null | undefined;
600
+ metadata?: {
601
+ authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
602
+ base_url: string;
603
+ version?: string | null | undefined;
604
+ spec_path?: string | null | undefined;
605
+ spec_url?: string | null | undefined;
606
+ auth_url?: string | null | undefined;
607
+ doi_url?: string | null | undefined;
608
+ external_url?: string | null | undefined;
609
+ paper_url?: string | null | undefined;
610
+ github_url?: string | null | undefined;
611
+ originality?: "original" | "derivative" | "third-party" | undefined;
612
+ source?: string | null | undefined;
613
+ reply_to_comment_id?: string | null | undefined;
614
+ } | undefined;
621
615
  preview?: Record<string, any>[] | null | undefined;
622
616
  }>>;
623
617
  declare const RouteDetailSchema: z.ZodObject<{
@@ -636,9 +630,10 @@ declare const RouteDetailSchema: z.ZodObject<{
636
630
  parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
637
631
  request_body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
638
632
  responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
633
+ input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
639
634
  input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
640
- dataset: "dataset";
641
635
  file: "file";
636
+ dataset: "dataset";
642
637
  post: "post";
643
638
  }>>>;
644
639
  input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -652,10 +647,11 @@ declare const RouteDetailSchema: z.ZodObject<{
652
647
  input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
653
648
  input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
654
649
  output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
655
- dataset: "dataset";
656
650
  file: "file";
651
+ dataset: "dataset";
657
652
  post: "post";
658
653
  }>>>;
654
+ output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
659
655
  output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
656
  security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
661
657
  rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -769,9 +765,9 @@ declare const RouteSchema: z.ZodObject<{
769
765
  none: "none";
770
766
  }>>;
771
767
  visibility: z.ZodOptional<z.ZodEnum<{
772
- organization: "organization";
773
768
  public: "public";
774
769
  private: "private";
770
+ organization: "organization";
775
771
  monetized: "monetized";
776
772
  inherit: "inherit";
777
773
  }>>;
@@ -843,9 +839,9 @@ declare const RouteSchema: z.ZodObject<{
843
839
  text: z.ZodString;
844
840
  }, z.core.$strip>>>;
845
841
  visibility: z.ZodEnum<{
846
- organization: "organization";
847
842
  public: "public";
848
843
  private: "private";
844
+ organization: "organization";
849
845
  monetized: "monetized";
850
846
  inherit: "inherit";
851
847
  }>;
@@ -884,31 +880,29 @@ declare const RouteSchema: z.ZodObject<{
884
880
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
885
881
  state: z.ZodEnum<{
886
882
  success: "success";
883
+ error: "error";
887
884
  queued: "queued";
888
885
  "in-progress": "in-progress";
889
886
  "timed-out": "timed-out";
890
- error: "error";
891
887
  }>;
892
888
  source: z.ZodEnum<{
893
- api: "api";
894
889
  web: "web";
890
+ api: "api";
895
891
  }>;
896
892
  created_at: z.ZodString;
897
893
  last_updated: z.ZodString;
898
894
  asset_type: z.ZodEnum<{
899
- user: "user";
900
895
  organization: "organization";
896
+ file: "file";
897
+ user: "user";
901
898
  team: "team";
902
899
  dataset: "dataset";
903
- file: "file";
904
900
  service: "service";
905
901
  route: "route";
906
902
  post: "post";
907
903
  quest: "quest";
908
904
  comment: "comment";
909
905
  conversation: "conversation";
910
- blueprint: "blueprint";
911
- replication: "replication";
912
906
  }>;
913
907
  route: z.ZodObject<{
914
908
  id: z.ZodString;
@@ -926,9 +920,10 @@ declare const RouteSchema: z.ZodObject<{
926
920
  parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
927
921
  request_body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
928
922
  responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
923
+ input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
929
924
  input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
930
- dataset: "dataset";
931
925
  file: "file";
926
+ dataset: "dataset";
932
927
  post: "post";
933
928
  }>>>;
934
929
  input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -942,10 +937,11 @@ declare const RouteSchema: z.ZodObject<{
942
937
  input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
943
938
  input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
944
939
  output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
945
- dataset: "dataset";
946
940
  file: "file";
941
+ dataset: "dataset";
947
942
  post: "post";
948
943
  }>>>;
944
+ output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
949
945
  output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
950
946
  security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
951
947
  rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1069,9 +1065,9 @@ declare const ActionSchema: z.ZodObject<{
1069
1065
  none: "none";
1070
1066
  }>>;
1071
1067
  visibility: z.ZodOptional<z.ZodEnum<{
1072
- organization: "organization";
1073
1068
  public: "public";
1074
1069
  private: "private";
1070
+ organization: "organization";
1075
1071
  monetized: "monetized";
1076
1072
  inherit: "inherit";
1077
1073
  }>>;
@@ -1136,19 +1132,17 @@ declare const ActionSchema: z.ZodObject<{
1136
1132
  license_id: z.ZodString;
1137
1133
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1138
1134
  asset_type: z.ZodEnum<{
1139
- user: "user";
1140
1135
  organization: "organization";
1136
+ file: "file";
1137
+ user: "user";
1141
1138
  team: "team";
1142
1139
  dataset: "dataset";
1143
- file: "file";
1144
1140
  service: "service";
1145
1141
  route: "route";
1146
1142
  post: "post";
1147
1143
  quest: "quest";
1148
1144
  comment: "comment";
1149
1145
  conversation: "conversation";
1150
- blueprint: "blueprint";
1151
- replication: "replication";
1152
1146
  }>;
1153
1147
  name: z.ZodString;
1154
1148
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1158,9 +1152,9 @@ declare const ActionSchema: z.ZodObject<{
1158
1152
  text: z.ZodString;
1159
1153
  }, z.core.$strip>>>;
1160
1154
  visibility: z.ZodEnum<{
1161
- organization: "organization";
1162
1155
  public: "public";
1163
1156
  private: "private";
1157
+ organization: "organization";
1164
1158
  monetized: "monetized";
1165
1159
  inherit: "inherit";
1166
1160
  }>;
@@ -1199,18 +1193,19 @@ declare const ActionSchema: z.ZodObject<{
1199
1193
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1200
1194
  state: z.ZodEnum<{
1201
1195
  success: "success";
1196
+ error: "error";
1202
1197
  queued: "queued";
1203
1198
  "in-progress": "in-progress";
1204
1199
  "timed-out": "timed-out";
1205
- error: "error";
1206
1200
  }>;
1207
1201
  source: z.ZodEnum<{
1208
- api: "api";
1209
1202
  web: "web";
1203
+ api: "api";
1210
1204
  }>;
1211
1205
  created_at: z.ZodString;
1212
1206
  last_updated: z.ZodString;
1213
1207
  }, z.core.$strip>>>;
1208
+ input_assets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1214
1209
  output_asset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1215
1210
  id: z.ZodUUID;
1216
1211
  user_id: z.ZodUUID;
@@ -1319,9 +1314,9 @@ declare const ActionSchema: z.ZodObject<{
1319
1314
  none: "none";
1320
1315
  }>>;
1321
1316
  visibility: z.ZodOptional<z.ZodEnum<{
1322
- organization: "organization";
1323
1317
  public: "public";
1324
1318
  private: "private";
1319
+ organization: "organization";
1325
1320
  monetized: "monetized";
1326
1321
  inherit: "inherit";
1327
1322
  }>>;
@@ -1386,19 +1381,17 @@ declare const ActionSchema: z.ZodObject<{
1386
1381
  license_id: z.ZodString;
1387
1382
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1388
1383
  asset_type: z.ZodEnum<{
1389
- user: "user";
1390
1384
  organization: "organization";
1385
+ file: "file";
1386
+ user: "user";
1391
1387
  team: "team";
1392
1388
  dataset: "dataset";
1393
- file: "file";
1394
1389
  service: "service";
1395
1390
  route: "route";
1396
1391
  post: "post";
1397
1392
  quest: "quest";
1398
1393
  comment: "comment";
1399
1394
  conversation: "conversation";
1400
- blueprint: "blueprint";
1401
- replication: "replication";
1402
1395
  }>;
1403
1396
  name: z.ZodString;
1404
1397
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1408,9 +1401,9 @@ declare const ActionSchema: z.ZodObject<{
1408
1401
  text: z.ZodString;
1409
1402
  }, z.core.$strip>>>;
1410
1403
  visibility: z.ZodEnum<{
1411
- organization: "organization";
1412
1404
  public: "public";
1413
1405
  private: "private";
1406
+ organization: "organization";
1414
1407
  monetized: "monetized";
1415
1408
  inherit: "inherit";
1416
1409
  }>;
@@ -1449,14 +1442,14 @@ declare const ActionSchema: z.ZodObject<{
1449
1442
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1450
1443
  state: z.ZodEnum<{
1451
1444
  success: "success";
1445
+ error: "error";
1452
1446
  queued: "queued";
1453
1447
  "in-progress": "in-progress";
1454
1448
  "timed-out": "timed-out";
1455
- error: "error";
1456
1449
  }>;
1457
1450
  source: z.ZodEnum<{
1458
- api: "api";
1459
1451
  web: "web";
1452
+ api: "api";
1460
1453
  }>;
1461
1454
  created_at: z.ZodString;
1462
1455
  last_updated: z.ZodString;
@@ -1465,10 +1458,10 @@ declare const ActionSchema: z.ZodObject<{
1465
1458
  webhook_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1466
1459
  status: z.ZodEnum<{
1467
1460
  success: "success";
1461
+ error: "error";
1468
1462
  queued: "queued";
1469
1463
  "in-progress": "in-progress";
1470
1464
  "timed-out": "timed-out";
1471
- error: "error";
1472
1465
  }>;
1473
1466
  created_at: z.ZodString;
1474
1467
  last_updated: z.ZodString;
@@ -1,2 +1,2 @@
1
- export{e as ActionSchema,b as CreateServiceSchema,d as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'../chunk-XMYZV7TD.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