@ourofoundation/ouro-js 3.5.1 → 3.5.2

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 (76) hide show
  1. package/dist/{chunk-XQQVHVWP.js → chunk-35CJDNHH.js} +2 -2
  2. package/dist/{chunk-XQQVHVWP.js.map → chunk-35CJDNHH.js.map} +1 -1
  3. package/dist/{chunk-6XQFD2Z2.cjs → chunk-6GPIZJ4T.cjs} +2 -2
  4. package/dist/chunk-6GPIZJ4T.cjs.map +1 -0
  5. package/dist/{chunk-HN7Y7VMJ.cjs → chunk-6ZJQTECB.cjs} +2 -2
  6. package/dist/{chunk-HN7Y7VMJ.cjs.map → chunk-6ZJQTECB.cjs.map} +1 -1
  7. package/dist/{chunk-6FG474SV.cjs → chunk-BWAEBQKV.cjs} +2 -2
  8. package/dist/chunk-BWAEBQKV.cjs.map +1 -0
  9. package/dist/{chunk-DC6TYS3A.cjs → chunk-F5CWCYOP.cjs} +2 -2
  10. package/dist/chunk-F5CWCYOP.cjs.map +1 -0
  11. package/dist/{chunk-NJQ5YWYJ.cjs → chunk-HIXNQKVP.cjs} +2 -2
  12. package/dist/{chunk-NJQ5YWYJ.cjs.map → chunk-HIXNQKVP.cjs.map} +1 -1
  13. package/dist/{chunk-OS542EYD.js → chunk-IWOXGKK4.js} +2 -2
  14. package/dist/chunk-IWOXGKK4.js.map +1 -0
  15. package/dist/chunk-KCVE35IO.js +2 -0
  16. package/dist/chunk-KCVE35IO.js.map +1 -0
  17. package/dist/chunk-MLTO7TMM.js +2 -0
  18. package/dist/chunk-MLTO7TMM.js.map +1 -0
  19. package/dist/{chunk-EK5P7FST.js → chunk-R2W4NEEJ.js} +2 -2
  20. package/dist/chunk-R2W4NEEJ.js.map +1 -0
  21. package/dist/{chunk-M2JJPDBW.js → chunk-TYOQ32UV.js} +2 -2
  22. package/dist/{chunk-M2JJPDBW.js.map → chunk-TYOQ32UV.js.map} +1 -1
  23. package/dist/chunk-V73EW77Y.cjs +2 -0
  24. package/dist/chunk-V73EW77Y.cjs.map +1 -0
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/schema/assets.d.cts +84 -84
  28. package/dist/schema/assets.d.ts +84 -84
  29. package/dist/schema/comments.d.cts +136 -136
  30. package/dist/schema/comments.d.ts +136 -136
  31. package/dist/schema/common.d.cts +16 -16
  32. package/dist/schema/common.d.ts +16 -16
  33. package/dist/schema/conversations.cjs +1 -1
  34. package/dist/schema/conversations.d.cts +69 -69
  35. package/dist/schema/conversations.d.ts +69 -69
  36. package/dist/schema/conversations.js +1 -1
  37. package/dist/schema/datasets.d.cts +137 -137
  38. package/dist/schema/datasets.d.ts +137 -137
  39. package/dist/schema/files.cjs +1 -1
  40. package/dist/schema/files.d.cts +100 -103
  41. package/dist/schema/files.d.ts +100 -103
  42. package/dist/schema/files.js +1 -1
  43. package/dist/schema/notifications.d.cts +2 -2
  44. package/dist/schema/notifications.d.ts +2 -2
  45. package/dist/schema/organizations.d.cts +1 -1
  46. package/dist/schema/organizations.d.ts +1 -1
  47. package/dist/schema/posts.cjs +1 -1
  48. package/dist/schema/posts.d.cts +127 -130
  49. package/dist/schema/posts.d.ts +127 -130
  50. package/dist/schema/posts.js +1 -1
  51. package/dist/schema/quests.cjs +1 -1
  52. package/dist/schema/quests.d.cts +177 -180
  53. package/dist/schema/quests.d.ts +177 -180
  54. package/dist/schema/quests.js +1 -1
  55. package/dist/schema/services.cjs +1 -1
  56. package/dist/schema/services.d.cts +127 -130
  57. package/dist/schema/services.d.ts +127 -130
  58. package/dist/schema/services.js +1 -1
  59. package/dist/schema/teams.d.cts +18 -18
  60. package/dist/schema/teams.d.ts +18 -18
  61. package/dist/utils/quest-submission.cjs +1 -1
  62. package/dist/utils/quest-submission.d.cts +7 -7
  63. package/dist/utils/quest-submission.d.ts +7 -7
  64. package/dist/utils/quest-submission.js +1 -1
  65. package/package.json +1 -1
  66. package/dist/chunk-6FG474SV.cjs.map +0 -1
  67. package/dist/chunk-6XQFD2Z2.cjs.map +0 -1
  68. package/dist/chunk-DC6TYS3A.cjs.map +0 -1
  69. package/dist/chunk-EK5P7FST.js.map +0 -1
  70. package/dist/chunk-OFDJA6ZW.cjs +0 -2
  71. package/dist/chunk-OFDJA6ZW.cjs.map +0 -1
  72. package/dist/chunk-OS542EYD.js.map +0 -1
  73. package/dist/chunk-VJJLRHOX.js +0 -2
  74. package/dist/chunk-VJJLRHOX.js.map +0 -1
  75. package/dist/chunk-W5UCZ73B.js +0 -2
  76. package/dist/chunk-W5UCZ73B.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,24 +210,24 @@ 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
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
223
223
  created_at: z.ZodString;
224
224
  last_updated: z.ZodString;
225
225
  asset_type: z.ZodEnum<{
226
- user: "user";
227
226
  organization: "organization";
227
+ file: "file";
228
+ user: "user";
228
229
  team: "team";
229
230
  dataset: "dataset";
230
- file: "file";
231
231
  service: "service";
232
232
  route: "route";
233
233
  post: "post";
@@ -262,15 +262,15 @@ declare const ServiceSchema: z.ZodObject<{
262
262
  }, z.core.$strip>;
263
263
  declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
264
264
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
265
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
266
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
267
- text: z.ZodString;
268
- }, z.core.$strip>>>>;
269
265
  monetization: z.ZodOptional<z.ZodEnum<{
270
266
  none: "none";
271
267
  "pay-to-unlock": "pay-to-unlock";
272
268
  "pay-per-use": "pay-per-use";
273
269
  }>>;
270
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
271
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
272
+ text: z.ZodString;
273
+ }, z.core.$strip>>>>;
274
274
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
275
275
  license_id: z.ZodOptional<z.ZodString>;
276
276
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -295,30 +295,30 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
295
295
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
296
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
297
297
  success: "success";
298
+ error: "error";
298
299
  queued: "queued";
299
300
  "in-progress": "in-progress";
300
301
  "timed-out": "timed-out";
301
- error: "error";
302
302
  }>>>;
303
303
  source: z.ZodDefault<z.ZodEnum<{
304
- api: "api";
305
304
  web: "web";
305
+ api: "api";
306
306
  }>>;
307
307
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
308
- organization: "organization";
309
308
  public: "public";
310
309
  private: "private";
310
+ organization: "organization";
311
311
  monetized: "monetized";
312
312
  inherit: "inherit";
313
313
  }>>>;
314
314
  created_at: z.ZodDefault<z.ZodString>;
315
315
  last_updated: z.ZodDefault<z.ZodString>;
316
316
  asset_type: z.ZodEnum<{
317
- user: "user";
318
317
  organization: "organization";
318
+ file: "file";
319
+ user: "user";
319
320
  team: "team";
320
321
  dataset: "dataset";
321
- file: "file";
322
322
  service: "service";
323
323
  route: "route";
324
324
  post: "post";
@@ -355,12 +355,12 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
355
355
  team_id: string | null;
356
356
  org_id: string | null;
357
357
  name: string;
358
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
359
- source: "api" | "web";
360
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
358
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
359
+ source: "web" | "api";
360
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
361
361
  created_at: string;
362
362
  last_updated: string;
363
- asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
363
+ asset_type: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
364
364
  metadata: {
365
365
  authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
366
366
  base_url: string;
@@ -377,11 +377,11 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
377
377
  reply_to_comment_id?: string | null | undefined;
378
378
  };
379
379
  parent?: Record<string, any> | undefined;
380
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
380
381
  description?: {
381
382
  json: Record<string, any>;
382
383
  text: string;
383
384
  } | null | undefined;
384
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
385
385
  parent_id?: string | null | undefined;
386
386
  license_id?: string | undefined;
387
387
  price?: number | null | undefined;
@@ -399,12 +399,12 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
399
399
  team_id: string | null;
400
400
  org_id: string | null;
401
401
  name: string;
402
- state: "success" | "queued" | "in-progress" | "timed-out" | "error";
403
- source: "api" | "web";
404
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
402
+ state: "success" | "error" | "queued" | "in-progress" | "timed-out";
403
+ source: "web" | "api";
404
+ visibility: "public" | "private" | "organization" | "monetized" | "inherit";
405
405
  created_at: string;
406
406
  last_updated: string;
407
- asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
407
+ asset_type: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
408
408
  metadata: {
409
409
  authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
410
410
  base_url: string;
@@ -421,11 +421,11 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
421
421
  reply_to_comment_id?: string | null | undefined;
422
422
  };
423
423
  parent?: Record<string, any> | undefined;
424
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
424
425
  description?: {
425
426
  json: Record<string, any>;
426
427
  text: string;
427
428
  } | null | undefined;
428
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
429
429
  parent_id?: string | null | undefined;
430
430
  license_id?: string | undefined;
431
431
  price?: number | null | undefined;
@@ -440,12 +440,17 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
440
440
  name_url_slug?: string | null | undefined;
441
441
  }>>;
442
442
  declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
443
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
444
+ source: z.ZodOptional<z.ZodEnum<{
445
+ web: "web";
446
+ api: "api";
447
+ }>>;
443
448
  asset_type: z.ZodOptional<z.ZodEnum<{
444
- user: "user";
445
449
  organization: "organization";
450
+ file: "file";
451
+ user: "user";
446
452
  team: "team";
447
453
  dataset: "dataset";
448
- file: "file";
449
454
  service: "service";
450
455
  route: "route";
451
456
  post: "post";
@@ -453,49 +458,13 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
453
458
  comment: "comment";
454
459
  conversation: "conversation";
455
460
  }>>;
456
- org_id: z.ZodOptional<z.ZodUUID>;
457
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
458
- metadata: z.ZodOptional<z.ZodObject<{
459
- authentication: z.ZodEnum<{
460
- "Personal Access Token": "Personal Access Token";
461
- Ouro: "Ouro";
462
- None: "None";
463
- "OAuth 2.0": "OAuth 2.0";
464
- }>;
465
- base_url: z.ZodString;
466
- version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
467
- spec_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
- spec_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
- auth_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
- doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
471
- external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
472
- paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
473
- github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
474
- originality: z.ZodOptional<z.ZodEnum<{
475
- original: "original";
476
- derivative: "derivative";
477
- "third-party": "third-party";
478
- }>>;
479
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
480
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
481
- }, z.core.$strip>>;
482
- name: z.ZodOptional<z.ZodString>;
483
- team_id: z.ZodOptional<z.ZodUUID>;
484
461
  visibility: z.ZodOptional<z.ZodEnum<{
485
- organization: "organization";
486
462
  public: "public";
487
463
  private: "private";
464
+ organization: "organization";
488
465
  monetized: "monetized";
489
466
  inherit: "inherit";
490
467
  }>>;
491
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
492
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
493
- text: z.ZodString;
494
- }, z.core.$strip>>>>;
495
- source: z.ZodOptional<z.ZodEnum<{
496
- api: "api";
497
- web: "web";
498
- }>>;
499
468
  monetization: z.ZodOptional<z.ZodEnum<{
500
469
  none: "none";
501
470
  "pay-to-unlock": "pay-to-unlock";
@@ -503,11 +472,18 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
503
472
  }>>;
504
473
  state: z.ZodOptional<z.ZodEnum<{
505
474
  success: "success";
475
+ error: "error";
506
476
  queued: "queued";
507
477
  "in-progress": "in-progress";
508
478
  "timed-out": "timed-out";
509
- error: "error";
510
479
  }>>;
480
+ name: z.ZodOptional<z.ZodString>;
481
+ org_id: z.ZodOptional<z.ZodUUID>;
482
+ team_id: z.ZodOptional<z.ZodUUID>;
483
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
484
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
485
+ text: z.ZodString;
486
+ }, z.core.$strip>>>>;
511
487
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
512
488
  license_id: z.ZodOptional<z.ZodString>;
513
489
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -526,39 +502,47 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
526
502
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
527
503
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
528
504
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
505
+ metadata: z.ZodOptional<z.ZodObject<{
506
+ authentication: z.ZodEnum<{
507
+ "Personal Access Token": "Personal Access Token";
508
+ Ouro: "Ouro";
509
+ None: "None";
510
+ "OAuth 2.0": "OAuth 2.0";
511
+ }>;
512
+ base_url: z.ZodString;
513
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
514
+ spec_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
515
+ spec_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
516
+ auth_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
517
+ doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
518
+ external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
519
+ paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
520
+ github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
521
+ originality: z.ZodOptional<z.ZodEnum<{
522
+ original: "original";
523
+ derivative: "derivative";
524
+ "third-party": "third-party";
525
+ }>>;
526
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
527
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
528
+ }, z.core.$strip>>;
529
529
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
530
- is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
531
530
  last_updated: z.ZodDefault<z.ZodString>;
532
531
  }, z.core.$strip>, z.ZodTransform<{
533
532
  last_updated: string;
534
- asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
535
- org_id?: string | undefined;
536
533
  parent?: Record<string, any> | undefined;
537
- metadata?: {
538
- authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
539
- base_url: string;
540
- version?: string | null | undefined;
541
- spec_path?: string | null | undefined;
542
- spec_url?: string | null | undefined;
543
- auth_url?: string | null | undefined;
544
- doi_url?: string | null | undefined;
545
- external_url?: string | null | undefined;
546
- paper_url?: string | null | undefined;
547
- github_url?: string | null | undefined;
548
- originality?: "original" | "derivative" | "third-party" | undefined;
549
- source?: string | null | undefined;
550
- reply_to_comment_id?: string | null | undefined;
551
- } | undefined;
534
+ source?: "web" | "api" | undefined;
535
+ asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
536
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
537
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
538
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
552
539
  name?: string | undefined;
540
+ org_id?: string | undefined;
553
541
  team_id?: string | undefined;
554
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
555
542
  description?: {
556
543
  json: Record<string, any>;
557
544
  text: string;
558
545
  } | null | undefined;
559
- source?: "api" | "web" | undefined;
560
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
561
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
562
546
  parent_id?: string | null | undefined;
563
547
  license_id?: string | undefined;
564
548
  license?: Record<string, any> | undefined;
@@ -571,13 +555,6 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
571
555
  stripe_product_id?: string | null | undefined;
572
556
  stripe_price_id?: string | null | undefined;
573
557
  stripe_meter_id?: string | null | undefined;
574
- preview?: Record<string, any>[] | null | undefined;
575
- is_pinned_in_team?: boolean | undefined;
576
- }, {
577
- last_updated: string;
578
- asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
579
- org_id?: string | undefined;
580
- parent?: Record<string, any> | undefined;
581
558
  metadata?: {
582
559
  authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
583
560
  base_url: string;
@@ -593,16 +570,22 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
593
570
  source?: string | null | undefined;
594
571
  reply_to_comment_id?: string | null | undefined;
595
572
  } | undefined;
573
+ preview?: Record<string, any>[] | null | undefined;
574
+ }, {
575
+ last_updated: string;
576
+ parent?: Record<string, any> | undefined;
577
+ source?: "web" | "api" | undefined;
578
+ asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
579
+ visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
580
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
581
+ state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
596
582
  name?: string | undefined;
583
+ org_id?: string | undefined;
597
584
  team_id?: string | undefined;
598
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
599
585
  description?: {
600
586
  json: Record<string, any>;
601
587
  text: string;
602
588
  } | null | undefined;
603
- source?: "api" | "web" | undefined;
604
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
605
- state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
606
589
  parent_id?: string | null | undefined;
607
590
  license_id?: string | undefined;
608
591
  license?: Record<string, any> | undefined;
@@ -615,8 +598,22 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
615
598
  stripe_product_id?: string | null | undefined;
616
599
  stripe_price_id?: string | null | undefined;
617
600
  stripe_meter_id?: string | null | undefined;
601
+ metadata?: {
602
+ authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
603
+ base_url: string;
604
+ version?: string | null | undefined;
605
+ spec_path?: string | null | undefined;
606
+ spec_url?: string | null | undefined;
607
+ auth_url?: string | null | undefined;
608
+ doi_url?: string | null | undefined;
609
+ external_url?: string | null | undefined;
610
+ paper_url?: string | null | undefined;
611
+ github_url?: string | null | undefined;
612
+ originality?: "original" | "derivative" | "third-party" | undefined;
613
+ source?: string | null | undefined;
614
+ reply_to_comment_id?: string | null | undefined;
615
+ } | undefined;
618
616
  preview?: Record<string, any>[] | null | undefined;
619
- is_pinned_in_team?: boolean | undefined;
620
617
  }>>;
621
618
  declare const ExecutionModeSchema: z.ZodEnum<{
622
619
  sync: "sync";
@@ -624,8 +621,8 @@ declare const ExecutionModeSchema: z.ZodEnum<{
624
621
  }>;
625
622
  declare const RouteInputAssetDeclarationSchema: z.ZodObject<{
626
623
  asset_type: z.ZodEnum<{
627
- dataset: "dataset";
628
624
  file: "file";
625
+ dataset: "dataset";
629
626
  post: "post";
630
627
  }>;
631
628
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -642,8 +639,8 @@ declare const RouteInputAssetDeclarationSchema: z.ZodObject<{
642
639
  }, z.core.$catchall<z.ZodAny>>;
643
640
  declare const RouteOutputAssetDeclarationSchema: z.ZodObject<{
644
641
  asset_type: z.ZodEnum<{
645
- dataset: "dataset";
646
642
  file: "file";
643
+ dataset: "dataset";
647
644
  post: "post";
648
645
  }>;
649
646
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -652,8 +649,8 @@ declare const RouteOutputAssetDeclarationSchema: z.ZodObject<{
652
649
  }, z.core.$catchall<z.ZodAny>>;
653
650
  declare const RouteInputAssetsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
654
651
  asset_type: z.ZodEnum<{
655
- dataset: "dataset";
656
652
  file: "file";
653
+ dataset: "dataset";
657
654
  post: "post";
658
655
  }>;
659
656
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -670,8 +667,8 @@ declare const RouteInputAssetsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
670
667
  }, z.core.$catchall<z.ZodAny>>>;
671
668
  declare const RouteOutputAssetsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
672
669
  asset_type: z.ZodEnum<{
673
- dataset: "dataset";
674
670
  file: "file";
671
+ dataset: "dataset";
675
672
  post: "post";
676
673
  }>;
677
674
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -696,8 +693,8 @@ declare const RouteDetailSchema: z.ZodObject<{
696
693
  responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
697
694
  input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
698
695
  asset_type: z.ZodEnum<{
699
- dataset: "dataset";
700
696
  file: "file";
697
+ dataset: "dataset";
701
698
  post: "post";
702
699
  }>;
703
700
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -713,8 +710,8 @@ declare const RouteDetailSchema: z.ZodObject<{
713
710
  contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
714
711
  }, z.core.$catchall<z.ZodAny>>>>>;
715
712
  input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
716
- dataset: "dataset";
717
713
  file: "file";
714
+ dataset: "dataset";
718
715
  post: "post";
719
716
  }>>>;
720
717
  input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -729,8 +726,8 @@ declare const RouteDetailSchema: z.ZodObject<{
729
726
  input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
730
727
  output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
731
728
  asset_type: z.ZodEnum<{
732
- dataset: "dataset";
733
729
  file: "file";
730
+ dataset: "dataset";
734
731
  post: "post";
735
732
  }>;
736
733
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -738,8 +735,8 @@ declare const RouteDetailSchema: z.ZodObject<{
738
735
  contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
739
736
  }, z.core.$catchall<z.ZodAny>>>>>;
740
737
  output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
741
- dataset: "dataset";
742
738
  file: "file";
739
+ dataset: "dataset";
743
740
  post: "post";
744
741
  }>>>;
745
742
  output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -870,9 +867,9 @@ declare const RouteSchema: z.ZodObject<{
870
867
  none: "none";
871
868
  }>>;
872
869
  visibility: z.ZodOptional<z.ZodEnum<{
873
- organization: "organization";
874
870
  public: "public";
875
871
  private: "private";
872
+ organization: "organization";
876
873
  monetized: "monetized";
877
874
  inherit: "inherit";
878
875
  }>>;
@@ -944,9 +941,9 @@ declare const RouteSchema: z.ZodObject<{
944
941
  text: z.ZodString;
945
942
  }, z.core.$strip>>>;
946
943
  visibility: z.ZodEnum<{
947
- organization: "organization";
948
944
  public: "public";
949
945
  private: "private";
946
+ organization: "organization";
950
947
  monetized: "monetized";
951
948
  inherit: "inherit";
952
949
  }>;
@@ -985,24 +982,24 @@ declare const RouteSchema: z.ZodObject<{
985
982
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
986
983
  state: z.ZodEnum<{
987
984
  success: "success";
985
+ error: "error";
988
986
  queued: "queued";
989
987
  "in-progress": "in-progress";
990
988
  "timed-out": "timed-out";
991
- error: "error";
992
989
  }>;
993
990
  source: z.ZodEnum<{
994
- api: "api";
995
991
  web: "web";
992
+ api: "api";
996
993
  }>;
997
994
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
998
995
  created_at: z.ZodString;
999
996
  last_updated: z.ZodString;
1000
997
  asset_type: z.ZodEnum<{
1001
- user: "user";
1002
998
  organization: "organization";
999
+ file: "file";
1000
+ user: "user";
1003
1001
  team: "team";
1004
1002
  dataset: "dataset";
1005
- file: "file";
1006
1003
  service: "service";
1007
1004
  route: "route";
1008
1005
  post: "post";
@@ -1028,8 +1025,8 @@ declare const RouteSchema: z.ZodObject<{
1028
1025
  responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1029
1026
  input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1030
1027
  asset_type: z.ZodEnum<{
1031
- dataset: "dataset";
1032
1028
  file: "file";
1029
+ dataset: "dataset";
1033
1030
  post: "post";
1034
1031
  }>;
1035
1032
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -1045,8 +1042,8 @@ declare const RouteSchema: z.ZodObject<{
1045
1042
  contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1046
1043
  }, z.core.$catchall<z.ZodAny>>>>>;
1047
1044
  input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1048
- dataset: "dataset";
1049
1045
  file: "file";
1046
+ dataset: "dataset";
1050
1047
  post: "post";
1051
1048
  }>>>;
1052
1049
  input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -1061,8 +1058,8 @@ declare const RouteSchema: z.ZodObject<{
1061
1058
  input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1062
1059
  output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1063
1060
  asset_type: z.ZodEnum<{
1064
- dataset: "dataset";
1065
1061
  file: "file";
1062
+ dataset: "dataset";
1066
1063
  post: "post";
1067
1064
  }>;
1068
1065
  primary: z.ZodOptional<z.ZodBoolean>;
@@ -1070,8 +1067,8 @@ declare const RouteSchema: z.ZodObject<{
1070
1067
  contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1071
1068
  }, z.core.$catchall<z.ZodAny>>>>>;
1072
1069
  output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1073
- dataset: "dataset";
1074
1070
  file: "file";
1071
+ dataset: "dataset";
1075
1072
  post: "post";
1076
1073
  }>>>;
1077
1074
  output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1212,9 +1209,9 @@ declare const ActionSchema: z.ZodObject<{
1212
1209
  none: "none";
1213
1210
  }>>;
1214
1211
  visibility: z.ZodOptional<z.ZodEnum<{
1215
- organization: "organization";
1216
1212
  public: "public";
1217
1213
  private: "private";
1214
+ organization: "organization";
1218
1215
  monetized: "monetized";
1219
1216
  inherit: "inherit";
1220
1217
  }>>;
@@ -1279,11 +1276,11 @@ declare const ActionSchema: z.ZodObject<{
1279
1276
  license_id: z.ZodString;
1280
1277
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1281
1278
  asset_type: z.ZodEnum<{
1282
- user: "user";
1283
1279
  organization: "organization";
1280
+ file: "file";
1281
+ user: "user";
1284
1282
  team: "team";
1285
1283
  dataset: "dataset";
1286
- file: "file";
1287
1284
  service: "service";
1288
1285
  route: "route";
1289
1286
  post: "post";
@@ -1299,9 +1296,9 @@ declare const ActionSchema: z.ZodObject<{
1299
1296
  text: z.ZodString;
1300
1297
  }, z.core.$strip>>>;
1301
1298
  visibility: z.ZodEnum<{
1302
- organization: "organization";
1303
1299
  public: "public";
1304
1300
  private: "private";
1301
+ organization: "organization";
1305
1302
  monetized: "monetized";
1306
1303
  inherit: "inherit";
1307
1304
  }>;
@@ -1340,14 +1337,14 @@ declare const ActionSchema: z.ZodObject<{
1340
1337
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1341
1338
  state: z.ZodEnum<{
1342
1339
  success: "success";
1340
+ error: "error";
1343
1341
  queued: "queued";
1344
1342
  "in-progress": "in-progress";
1345
1343
  "timed-out": "timed-out";
1346
- error: "error";
1347
1344
  }>;
1348
1345
  source: z.ZodEnum<{
1349
- api: "api";
1350
1346
  web: "web";
1347
+ api: "api";
1351
1348
  }>;
1352
1349
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1353
1350
  created_at: z.ZodString;
@@ -1462,9 +1459,9 @@ declare const ActionSchema: z.ZodObject<{
1462
1459
  none: "none";
1463
1460
  }>>;
1464
1461
  visibility: z.ZodOptional<z.ZodEnum<{
1465
- organization: "organization";
1466
1462
  public: "public";
1467
1463
  private: "private";
1464
+ organization: "organization";
1468
1465
  monetized: "monetized";
1469
1466
  inherit: "inherit";
1470
1467
  }>>;
@@ -1529,11 +1526,11 @@ declare const ActionSchema: z.ZodObject<{
1529
1526
  license_id: z.ZodString;
1530
1527
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1531
1528
  asset_type: z.ZodEnum<{
1532
- user: "user";
1533
1529
  organization: "organization";
1530
+ file: "file";
1531
+ user: "user";
1534
1532
  team: "team";
1535
1533
  dataset: "dataset";
1536
- file: "file";
1537
1534
  service: "service";
1538
1535
  route: "route";
1539
1536
  post: "post";
@@ -1549,9 +1546,9 @@ declare const ActionSchema: z.ZodObject<{
1549
1546
  text: z.ZodString;
1550
1547
  }, z.core.$strip>>>;
1551
1548
  visibility: z.ZodEnum<{
1552
- organization: "organization";
1553
1549
  public: "public";
1554
1550
  private: "private";
1551
+ organization: "organization";
1555
1552
  monetized: "monetized";
1556
1553
  inherit: "inherit";
1557
1554
  }>;
@@ -1590,14 +1587,14 @@ declare const ActionSchema: z.ZodObject<{
1590
1587
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1591
1588
  state: z.ZodEnum<{
1592
1589
  success: "success";
1590
+ error: "error";
1593
1591
  queued: "queued";
1594
1592
  "in-progress": "in-progress";
1595
1593
  "timed-out": "timed-out";
1596
- error: "error";
1597
1594
  }>;
1598
1595
  source: z.ZodEnum<{
1599
- api: "api";
1600
1596
  web: "web";
1597
+ api: "api";
1601
1598
  }>;
1602
1599
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1603
1600
  created_at: z.ZodString;
@@ -1608,10 +1605,10 @@ declare const ActionSchema: z.ZodObject<{
1608
1605
  webhook_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1609
1606
  status: z.ZodEnum<{
1610
1607
  success: "success";
1608
+ error: "error";
1611
1609
  queued: "queued";
1612
1610
  "in-progress": "in-progress";
1613
1611
  "timed-out": "timed-out";
1614
- error: "error";
1615
1612
  }>;
1616
1613
  created_at: z.ZodString;
1617
1614
  last_updated: z.ZodString;
@@ -1,2 +1,2 @@
1
- export{k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,e as RouteInputAssetDeclarationSchema,g as RouteInputAssetsSchema,i as RouteMetricsSchema,f as RouteOutputAssetDeclarationSchema,h as RouteOutputAssetsSchema,j as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'../chunk-W5UCZ73B.js';import'../chunk-SR5UZ4NP.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
1
+ export{k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,e as RouteInputAssetDeclarationSchema,g as RouteInputAssetsSchema,i as RouteMetricsSchema,f as RouteOutputAssetDeclarationSchema,h as RouteOutputAssetsSchema,j as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'../chunk-MLTO7TMM.js';import'../chunk-SR5UZ4NP.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