@ourofoundation/ouro-js 3.3.0 → 3.5.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 (59) hide show
  1. package/dist/chunk-7F26V24D.js +2 -0
  2. package/dist/chunk-7F26V24D.js.map +1 -0
  3. package/dist/chunk-CONKY65O.cjs +2 -0
  4. package/dist/chunk-CONKY65O.cjs.map +1 -0
  5. package/dist/chunk-JKTQY4RU.js +2 -0
  6. package/dist/chunk-JKTQY4RU.js.map +1 -0
  7. package/dist/chunk-JW7FACNZ.cjs +2 -0
  8. package/dist/chunk-JW7FACNZ.cjs.map +1 -0
  9. package/dist/chunk-XWXLCG4E.cjs +2 -0
  10. package/dist/chunk-XWXLCG4E.cjs.map +1 -0
  11. package/dist/chunk-Z3ALIFYO.js +2 -0
  12. package/dist/chunk-Z3ALIFYO.js.map +1 -0
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.d.cts +3 -1
  15. package/dist/index.d.ts +3 -1
  16. package/dist/index.js +1 -1
  17. package/dist/schema/assets.d.cts +84 -84
  18. package/dist/schema/assets.d.ts +84 -84
  19. package/dist/schema/comments.d.cts +136 -136
  20. package/dist/schema/comments.d.ts +136 -136
  21. package/dist/schema/common.d.cts +16 -16
  22. package/dist/schema/common.d.ts +16 -16
  23. package/dist/schema/conversations.d.cts +69 -69
  24. package/dist/schema/conversations.d.ts +69 -69
  25. package/dist/schema/datasets.d.cts +106 -106
  26. package/dist/schema/datasets.d.ts +106 -106
  27. package/dist/schema/files.d.cts +100 -100
  28. package/dist/schema/files.d.ts +100 -100
  29. package/dist/schema/notifications.d.cts +2 -2
  30. package/dist/schema/notifications.d.ts +2 -2
  31. package/dist/schema/organizations.d.cts +1 -1
  32. package/dist/schema/organizations.d.ts +1 -1
  33. package/dist/schema/posts.d.cts +127 -127
  34. package/dist/schema/posts.d.ts +127 -127
  35. package/dist/schema/quests.cjs +2 -0
  36. package/dist/schema/quests.cjs.map +1 -0
  37. package/dist/schema/quests.d.cts +1517 -0
  38. package/dist/schema/quests.d.ts +1517 -0
  39. package/dist/schema/quests.js +2 -0
  40. package/dist/schema/quests.js.map +1 -0
  41. package/dist/schema/services.cjs +1 -1
  42. package/dist/schema/services.d.cts +275 -124
  43. package/dist/schema/services.d.ts +275 -124
  44. package/dist/schema/services.js +1 -1
  45. package/dist/schema/tags.d.cts +7 -7
  46. package/dist/schema/tags.d.ts +7 -7
  47. package/dist/schema/teams.d.cts +18 -18
  48. package/dist/schema/teams.d.ts +18 -18
  49. package/dist/utils/quest-submission.cjs +2 -0
  50. package/dist/utils/quest-submission.cjs.map +1 -0
  51. package/dist/utils/quest-submission.d.cts +134 -0
  52. package/dist/utils/quest-submission.d.ts +134 -0
  53. package/dist/utils/quest-submission.js +2 -0
  54. package/dist/utils/quest-submission.js.map +1 -0
  55. package/package.json +1 -1
  56. package/dist/chunk-42EQ7ULD.cjs +0 -2
  57. package/dist/chunk-42EQ7ULD.cjs.map +0 -1
  58. package/dist/chunk-FDKZIS34.js +0 -2
  59. package/dist/chunk-FDKZIS34.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";
111
112
  public: "public";
112
113
  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";
185
186
  public: "public";
186
187
  private: "private";
187
- organization: "organization";
188
188
  monetized: "monetized";
189
189
  inherit: "inherit";
190
190
  }>;
@@ -210,23 +210,23 @@ 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";
214
213
  queued: "queued";
215
214
  "in-progress": "in-progress";
216
215
  "timed-out": "timed-out";
216
+ error: "error";
217
217
  }>;
218
218
  source: z.ZodEnum<{
219
- web: "web";
220
219
  api: "api";
220
+ web: "web";
221
221
  }>;
222
222
  created_at: z.ZodString;
223
223
  last_updated: z.ZodString;
224
224
  asset_type: z.ZodEnum<{
225
- organization: "organization";
226
- file: "file";
227
225
  user: "user";
226
+ organization: "organization";
228
227
  team: "team";
229
228
  dataset: "dataset";
229
+ file: "file";
230
230
  service: "service";
231
231
  route: "route";
232
232
  post: "post";
@@ -261,15 +261,15 @@ declare const ServiceSchema: z.ZodObject<{
261
261
  }, z.core.$strip>;
262
262
  declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
263
263
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
264
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
265
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
266
+ text: z.ZodString;
267
+ }, z.core.$strip>>>>;
264
268
  monetization: z.ZodOptional<z.ZodEnum<{
265
269
  none: "none";
266
270
  "pay-to-unlock": "pay-to-unlock";
267
271
  "pay-per-use": "pay-per-use";
268
272
  }>>;
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>>>>;
273
273
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
274
274
  license_id: z.ZodOptional<z.ZodString>;
275
275
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -294,30 +294,30 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
294
294
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
295
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
296
296
  success: "success";
297
- error: "error";
298
297
  queued: "queued";
299
298
  "in-progress": "in-progress";
300
299
  "timed-out": "timed-out";
300
+ error: "error";
301
301
  }>>>;
302
302
  source: z.ZodDefault<z.ZodEnum<{
303
- web: "web";
304
303
  api: "api";
304
+ web: "web";
305
305
  }>>;
306
306
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
307
+ organization: "organization";
307
308
  public: "public";
308
309
  private: "private";
309
- organization: "organization";
310
310
  monetized: "monetized";
311
311
  inherit: "inherit";
312
312
  }>>>;
313
313
  created_at: z.ZodDefault<z.ZodString>;
314
314
  last_updated: z.ZodDefault<z.ZodString>;
315
315
  asset_type: z.ZodEnum<{
316
- organization: "organization";
317
- file: "file";
318
316
  user: "user";
317
+ organization: "organization";
319
318
  team: "team";
320
319
  dataset: "dataset";
320
+ file: "file";
321
321
  service: "service";
322
322
  route: "route";
323
323
  post: "post";
@@ -354,12 +354,12 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
354
354
  team_id: string | null;
355
355
  org_id: string | null;
356
356
  name: string;
357
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
358
- source: "web" | "api";
359
- visibility: "public" | "private" | "organization" | "monetized" | "inherit";
357
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
358
+ source: "api" | "web";
359
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
360
360
  created_at: string;
361
361
  last_updated: string;
362
- asset_type: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
362
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
363
363
  metadata: {
364
364
  authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
365
365
  base_url: string;
@@ -376,11 +376,11 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
376
376
  reply_to_comment_id?: string | null | undefined;
377
377
  };
378
378
  parent?: Record<string, any> | undefined;
379
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
380
379
  description?: {
381
380
  json: Record<string, any>;
382
381
  text: string;
383
382
  } | null | undefined;
383
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
384
384
  parent_id?: string | null | undefined;
385
385
  license_id?: string | undefined;
386
386
  price?: number | null | undefined;
@@ -398,12 +398,12 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
398
398
  team_id: string | null;
399
399
  org_id: string | null;
400
400
  name: string;
401
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
402
- source: "web" | "api";
403
- visibility: "public" | "private" | "organization" | "monetized" | "inherit";
401
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
402
+ source: "api" | "web";
403
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
404
404
  created_at: string;
405
405
  last_updated: string;
406
- asset_type: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
406
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
407
407
  metadata: {
408
408
  authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
409
409
  base_url: string;
@@ -420,11 +420,11 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
420
420
  reply_to_comment_id?: string | null | undefined;
421
421
  };
422
422
  parent?: Record<string, any> | undefined;
423
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
424
423
  description?: {
425
424
  json: Record<string, any>;
426
425
  text: string;
427
426
  } | null | undefined;
427
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
428
428
  parent_id?: string | null | undefined;
429
429
  license_id?: string | undefined;
430
430
  price?: number | null | undefined;
@@ -439,17 +439,12 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
439
439
  name_url_slug?: string | null | undefined;
440
440
  }>>;
441
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
- }>>;
447
442
  asset_type: z.ZodOptional<z.ZodEnum<{
448
- organization: "organization";
449
- file: "file";
450
443
  user: "user";
444
+ organization: "organization";
451
445
  team: "team";
452
446
  dataset: "dataset";
447
+ file: "file";
453
448
  service: "service";
454
449
  route: "route";
455
450
  post: "post";
@@ -457,13 +452,49 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
457
452
  comment: "comment";
458
453
  conversation: "conversation";
459
454
  }>>;
455
+ org_id: z.ZodOptional<z.ZodUUID>;
456
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
457
+ metadata: z.ZodOptional<z.ZodObject<{
458
+ authentication: z.ZodEnum<{
459
+ "Personal Access Token": "Personal Access Token";
460
+ Ouro: "Ouro";
461
+ None: "None";
462
+ "OAuth 2.0": "OAuth 2.0";
463
+ }>;
464
+ base_url: z.ZodString;
465
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
+ spec_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
467
+ spec_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ auth_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
470
+ external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
471
+ paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
472
+ github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
473
+ originality: z.ZodOptional<z.ZodEnum<{
474
+ original: "original";
475
+ derivative: "derivative";
476
+ "third-party": "third-party";
477
+ }>>;
478
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
479
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
480
+ }, z.core.$strip>>;
481
+ name: z.ZodOptional<z.ZodString>;
482
+ team_id: z.ZodOptional<z.ZodUUID>;
460
483
  visibility: z.ZodOptional<z.ZodEnum<{
484
+ organization: "organization";
461
485
  public: "public";
462
486
  private: "private";
463
- organization: "organization";
464
487
  monetized: "monetized";
465
488
  inherit: "inherit";
466
489
  }>>;
490
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
491
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
492
+ text: z.ZodString;
493
+ }, z.core.$strip>>>>;
494
+ source: z.ZodOptional<z.ZodEnum<{
495
+ api: "api";
496
+ web: "web";
497
+ }>>;
467
498
  monetization: z.ZodOptional<z.ZodEnum<{
468
499
  none: "none";
469
500
  "pay-to-unlock": "pay-to-unlock";
@@ -471,18 +502,11 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
471
502
  }>>;
472
503
  state: z.ZodOptional<z.ZodEnum<{
473
504
  success: "success";
474
- error: "error";
475
505
  queued: "queued";
476
506
  "in-progress": "in-progress";
477
507
  "timed-out": "timed-out";
508
+ error: "error";
478
509
  }>>;
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>>>>;
486
510
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
487
511
  license_id: z.ZodOptional<z.ZodString>;
488
512
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -501,47 +525,38 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
501
525
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
502
526
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
503
527
  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>>;
528
528
  preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
529
529
  last_updated: z.ZodDefault<z.ZodString>;
530
530
  }, z.core.$strip>, z.ZodTransform<{
531
531
  last_updated: string;
532
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
533
+ org_id?: string | undefined;
532
534
  parent?: Record<string, any> | 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;
535
+ metadata?: {
536
+ authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
537
+ base_url: string;
538
+ version?: string | null | undefined;
539
+ spec_path?: string | null | undefined;
540
+ spec_url?: string | null | undefined;
541
+ auth_url?: string | null | undefined;
542
+ doi_url?: string | null | undefined;
543
+ external_url?: string | null | undefined;
544
+ paper_url?: string | null | undefined;
545
+ github_url?: string | null | undefined;
546
+ originality?: "original" | "derivative" | "third-party" | undefined;
547
+ source?: string | null | undefined;
548
+ reply_to_comment_id?: string | null | undefined;
549
+ } | undefined;
538
550
  name?: string | undefined;
539
- org_id?: string | undefined;
540
551
  team_id?: string | undefined;
552
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
541
553
  description?: {
542
554
  json: Record<string, any>;
543
555
  text: string;
544
556
  } | null | undefined;
557
+ source?: "api" | "web" | undefined;
558
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
559
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
545
560
  parent_id?: string | null | undefined;
546
561
  license_id?: string | undefined;
547
562
  license?: Record<string, any> | undefined;
@@ -554,6 +569,12 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
554
569
  stripe_product_id?: string | null | undefined;
555
570
  stripe_price_id?: string | null | undefined;
556
571
  stripe_meter_id?: string | null | undefined;
572
+ preview?: Record<string, any>[] | null | undefined;
573
+ }, {
574
+ last_updated: string;
575
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
576
+ org_id?: string | undefined;
577
+ parent?: Record<string, any> | undefined;
557
578
  metadata?: {
558
579
  authentication: "Personal Access Token" | "Ouro" | "None" | "OAuth 2.0";
559
580
  base_url: string;
@@ -569,22 +590,16 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
569
590
  source?: string | null | undefined;
570
591
  reply_to_comment_id?: string | null | undefined;
571
592
  } | 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;
581
593
  name?: string | undefined;
582
- org_id?: string | undefined;
583
594
  team_id?: string | undefined;
595
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
584
596
  description?: {
585
597
  json: Record<string, any>;
586
598
  text: string;
587
599
  } | null | undefined;
600
+ source?: "api" | "web" | undefined;
601
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
602
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
588
603
  parent_id?: string | null | undefined;
589
604
  license_id?: string | undefined;
590
605
  license?: Record<string, any> | undefined;
@@ -597,23 +612,68 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
597
612
  stripe_product_id?: string | null | undefined;
598
613
  stripe_price_id?: string | null | undefined;
599
614
  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;
615
615
  preview?: Record<string, any>[] | null | undefined;
616
616
  }>>;
617
+ declare const ExecutionModeSchema: z.ZodEnum<{
618
+ sync: "sync";
619
+ async: "async";
620
+ }>;
621
+ declare const RouteInputAssetDeclarationSchema: z.ZodObject<{
622
+ asset_type: z.ZodEnum<{
623
+ dataset: "dataset";
624
+ file: "file";
625
+ post: "post";
626
+ }>;
627
+ primary: z.ZodOptional<z.ZodBoolean>;
628
+ input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
629
+ audio: "audio";
630
+ video: "video";
631
+ image: "image";
632
+ pdf: "pdf";
633
+ "3d model": "3d model";
634
+ "atomic structure": "atomic structure";
635
+ }>>>;
636
+ file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
637
+ contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
638
+ }, z.core.$catchall<z.ZodAny>>;
639
+ declare const RouteOutputAssetDeclarationSchema: z.ZodObject<{
640
+ asset_type: z.ZodEnum<{
641
+ dataset: "dataset";
642
+ file: "file";
643
+ post: "post";
644
+ }>;
645
+ primary: z.ZodOptional<z.ZodBoolean>;
646
+ file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
647
+ contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
648
+ }, z.core.$catchall<z.ZodAny>>;
649
+ declare const RouteInputAssetsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
650
+ asset_type: z.ZodEnum<{
651
+ dataset: "dataset";
652
+ file: "file";
653
+ post: "post";
654
+ }>;
655
+ primary: z.ZodOptional<z.ZodBoolean>;
656
+ input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
657
+ audio: "audio";
658
+ video: "video";
659
+ image: "image";
660
+ pdf: "pdf";
661
+ "3d model": "3d model";
662
+ "atomic structure": "atomic structure";
663
+ }>>>;
664
+ file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
665
+ contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
666
+ }, z.core.$catchall<z.ZodAny>>>;
667
+ declare const RouteOutputAssetsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
668
+ asset_type: z.ZodEnum<{
669
+ dataset: "dataset";
670
+ file: "file";
671
+ post: "post";
672
+ }>;
673
+ primary: z.ZodOptional<z.ZodBoolean>;
674
+ file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
675
+ contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
676
+ }, z.core.$catchall<z.ZodAny>>>;
617
677
  declare const RouteDetailSchema: z.ZodObject<{
618
678
  id: z.ZodString;
619
679
  user_id: z.ZodString;
@@ -630,10 +690,27 @@ declare const RouteDetailSchema: z.ZodObject<{
630
690
  parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
631
691
  request_body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
632
692
  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>>>;
693
+ input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
694
+ asset_type: z.ZodEnum<{
695
+ dataset: "dataset";
696
+ file: "file";
697
+ post: "post";
698
+ }>;
699
+ primary: z.ZodOptional<z.ZodBoolean>;
700
+ input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
701
+ audio: "audio";
702
+ video: "video";
703
+ image: "image";
704
+ pdf: "pdf";
705
+ "3d model": "3d model";
706
+ "atomic structure": "atomic structure";
707
+ }>>>;
708
+ file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
709
+ contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
710
+ }, z.core.$catchall<z.ZodAny>>>>>;
634
711
  input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
635
- file: "file";
636
712
  dataset: "dataset";
713
+ file: "file";
637
714
  post: "post";
638
715
  }>>>;
639
716
  input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -646,17 +723,41 @@ declare const RouteDetailSchema: z.ZodObject<{
646
723
  }>>>;
647
724
  input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
725
  input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
726
+ output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
727
+ asset_type: z.ZodEnum<{
728
+ dataset: "dataset";
729
+ file: "file";
730
+ post: "post";
731
+ }>;
732
+ primary: z.ZodOptional<z.ZodBoolean>;
733
+ file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
734
+ contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
735
+ }, z.core.$catchall<z.ZodAny>>>>>;
649
736
  output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
650
- file: "file";
651
737
  dataset: "dataset";
738
+ file: "file";
652
739
  post: "post";
653
740
  }>>>;
654
- output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
655
741
  output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
742
  security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
657
743
  rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
744
+ execution_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
745
+ sync: "sync";
746
+ async: "async";
747
+ }>>>;
748
+ observed_execution_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
749
+ sync: "sync";
750
+ async: "async";
751
+ }>>>;
658
752
  last_updated: z.ZodString;
659
753
  }, z.core.$strip>;
754
+ declare const RouteMetricsSchema: z.ZodObject<{
755
+ avg_ack_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
756
+ p95_ack_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
757
+ avg_completion_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
758
+ p95_completion_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
759
+ latency_sample_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
760
+ }, z.core.$strip>;
660
761
  declare const RouteSchema: z.ZodObject<{
661
762
  id: z.ZodUUID;
662
763
  user_id: z.ZodUUID;
@@ -765,9 +866,9 @@ declare const RouteSchema: z.ZodObject<{
765
866
  none: "none";
766
867
  }>>;
767
868
  visibility: z.ZodOptional<z.ZodEnum<{
869
+ organization: "organization";
768
870
  public: "public";
769
871
  private: "private";
770
- organization: "organization";
771
872
  monetized: "monetized";
772
873
  inherit: "inherit";
773
874
  }>>;
@@ -839,9 +940,9 @@ declare const RouteSchema: z.ZodObject<{
839
940
  text: z.ZodString;
840
941
  }, z.core.$strip>>>;
841
942
  visibility: z.ZodEnum<{
943
+ organization: "organization";
842
944
  public: "public";
843
945
  private: "private";
844
- organization: "organization";
845
946
  monetized: "monetized";
846
947
  inherit: "inherit";
847
948
  }>;
@@ -880,23 +981,23 @@ declare const RouteSchema: z.ZodObject<{
880
981
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
881
982
  state: z.ZodEnum<{
882
983
  success: "success";
883
- error: "error";
884
984
  queued: "queued";
885
985
  "in-progress": "in-progress";
886
986
  "timed-out": "timed-out";
987
+ error: "error";
887
988
  }>;
888
989
  source: z.ZodEnum<{
889
- web: "web";
890
990
  api: "api";
991
+ web: "web";
891
992
  }>;
892
993
  created_at: z.ZodString;
893
994
  last_updated: z.ZodString;
894
995
  asset_type: z.ZodEnum<{
895
- organization: "organization";
896
- file: "file";
897
996
  user: "user";
997
+ organization: "organization";
898
998
  team: "team";
899
999
  dataset: "dataset";
1000
+ file: "file";
900
1001
  service: "service";
901
1002
  route: "route";
902
1003
  post: "post";
@@ -920,10 +1021,27 @@ declare const RouteSchema: z.ZodObject<{
920
1021
  parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
921
1022
  request_body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
922
1023
  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>>>;
1024
+ input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1025
+ asset_type: z.ZodEnum<{
1026
+ dataset: "dataset";
1027
+ file: "file";
1028
+ post: "post";
1029
+ }>;
1030
+ primary: z.ZodOptional<z.ZodBoolean>;
1031
+ input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1032
+ audio: "audio";
1033
+ video: "video";
1034
+ image: "image";
1035
+ pdf: "pdf";
1036
+ "3d model": "3d model";
1037
+ "atomic structure": "atomic structure";
1038
+ }>>>;
1039
+ file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1040
+ contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1041
+ }, z.core.$catchall<z.ZodAny>>>>>;
924
1042
  input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
925
- file: "file";
926
1043
  dataset: "dataset";
1044
+ file: "file";
927
1045
  post: "post";
928
1046
  }>>>;
929
1047
  input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -936,17 +1054,41 @@ declare const RouteSchema: z.ZodObject<{
936
1054
  }>>>;
937
1055
  input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
938
1056
  input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1057
+ output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
1058
+ asset_type: z.ZodEnum<{
1059
+ dataset: "dataset";
1060
+ file: "file";
1061
+ post: "post";
1062
+ }>;
1063
+ primary: z.ZodOptional<z.ZodBoolean>;
1064
+ file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1065
+ contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1066
+ }, z.core.$catchall<z.ZodAny>>>>>;
939
1067
  output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
940
- file: "file";
941
1068
  dataset: "dataset";
1069
+ file: "file";
942
1070
  post: "post";
943
1071
  }>>>;
944
- output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
945
1072
  output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
946
1073
  security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
947
1074
  rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1075
+ execution_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1076
+ sync: "sync";
1077
+ async: "async";
1078
+ }>>>;
1079
+ observed_execution_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1080
+ sync: "sync";
1081
+ async: "async";
1082
+ }>>>;
948
1083
  last_updated: z.ZodString;
949
1084
  }, z.core.$strip>;
1085
+ metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1086
+ avg_ack_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1087
+ p95_ack_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1088
+ avg_completion_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1089
+ p95_completion_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1090
+ latency_sample_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1091
+ }, z.core.$strip>>>;
950
1092
  }, z.core.$strip>;
951
1093
  declare const ActionSchema: z.ZodObject<{
952
1094
  id: z.ZodUUID;
@@ -1065,9 +1207,9 @@ declare const ActionSchema: z.ZodObject<{
1065
1207
  none: "none";
1066
1208
  }>>;
1067
1209
  visibility: z.ZodOptional<z.ZodEnum<{
1210
+ organization: "organization";
1068
1211
  public: "public";
1069
1212
  private: "private";
1070
- organization: "organization";
1071
1213
  monetized: "monetized";
1072
1214
  inherit: "inherit";
1073
1215
  }>>;
@@ -1132,11 +1274,11 @@ declare const ActionSchema: z.ZodObject<{
1132
1274
  license_id: z.ZodString;
1133
1275
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1134
1276
  asset_type: z.ZodEnum<{
1135
- organization: "organization";
1136
- file: "file";
1137
1277
  user: "user";
1278
+ organization: "organization";
1138
1279
  team: "team";
1139
1280
  dataset: "dataset";
1281
+ file: "file";
1140
1282
  service: "service";
1141
1283
  route: "route";
1142
1284
  post: "post";
@@ -1152,9 +1294,9 @@ declare const ActionSchema: z.ZodObject<{
1152
1294
  text: z.ZodString;
1153
1295
  }, z.core.$strip>>>;
1154
1296
  visibility: z.ZodEnum<{
1297
+ organization: "organization";
1155
1298
  public: "public";
1156
1299
  private: "private";
1157
- organization: "organization";
1158
1300
  monetized: "monetized";
1159
1301
  inherit: "inherit";
1160
1302
  }>;
@@ -1193,14 +1335,14 @@ declare const ActionSchema: z.ZodObject<{
1193
1335
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1194
1336
  state: z.ZodEnum<{
1195
1337
  success: "success";
1196
- error: "error";
1197
1338
  queued: "queued";
1198
1339
  "in-progress": "in-progress";
1199
1340
  "timed-out": "timed-out";
1341
+ error: "error";
1200
1342
  }>;
1201
1343
  source: z.ZodEnum<{
1202
- web: "web";
1203
1344
  api: "api";
1345
+ web: "web";
1204
1346
  }>;
1205
1347
  created_at: z.ZodString;
1206
1348
  last_updated: z.ZodString;
@@ -1314,9 +1456,9 @@ declare const ActionSchema: z.ZodObject<{
1314
1456
  none: "none";
1315
1457
  }>>;
1316
1458
  visibility: z.ZodOptional<z.ZodEnum<{
1459
+ organization: "organization";
1317
1460
  public: "public";
1318
1461
  private: "private";
1319
- organization: "organization";
1320
1462
  monetized: "monetized";
1321
1463
  inherit: "inherit";
1322
1464
  }>>;
@@ -1381,11 +1523,11 @@ declare const ActionSchema: z.ZodObject<{
1381
1523
  license_id: z.ZodString;
1382
1524
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1383
1525
  asset_type: z.ZodEnum<{
1384
- organization: "organization";
1385
- file: "file";
1386
1526
  user: "user";
1527
+ organization: "organization";
1387
1528
  team: "team";
1388
1529
  dataset: "dataset";
1530
+ file: "file";
1389
1531
  service: "service";
1390
1532
  route: "route";
1391
1533
  post: "post";
@@ -1401,9 +1543,9 @@ declare const ActionSchema: z.ZodObject<{
1401
1543
  text: z.ZodString;
1402
1544
  }, z.core.$strip>>>;
1403
1545
  visibility: z.ZodEnum<{
1546
+ organization: "organization";
1404
1547
  public: "public";
1405
1548
  private: "private";
1406
- organization: "organization";
1407
1549
  monetized: "monetized";
1408
1550
  inherit: "inherit";
1409
1551
  }>;
@@ -1442,36 +1584,45 @@ declare const ActionSchema: z.ZodObject<{
1442
1584
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1443
1585
  state: z.ZodEnum<{
1444
1586
  success: "success";
1445
- error: "error";
1446
1587
  queued: "queued";
1447
1588
  "in-progress": "in-progress";
1448
1589
  "timed-out": "timed-out";
1590
+ error: "error";
1449
1591
  }>;
1450
1592
  source: z.ZodEnum<{
1451
- web: "web";
1452
1593
  api: "api";
1594
+ web: "web";
1453
1595
  }>;
1454
1596
  created_at: z.ZodString;
1455
1597
  last_updated: z.ZodString;
1456
1598
  }, z.core.$strip>>>;
1599
+ output_assets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1457
1600
  webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1458
1601
  webhook_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1459
1602
  status: z.ZodEnum<{
1460
1603
  success: "success";
1461
- error: "error";
1462
1604
  queued: "queued";
1463
1605
  "in-progress": "in-progress";
1464
1606
  "timed-out": "timed-out";
1607
+ error: "error";
1465
1608
  }>;
1466
1609
  created_at: z.ZodString;
1467
1610
  last_updated: z.ZodString;
1468
1611
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1612
+ ack_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1613
+ upstream_status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1469
1614
  finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1470
1615
  }, z.core.$strip>;
1471
1616
 
1472
1617
  type Service = z.infer<typeof ServiceSchema>;
1473
1618
  type Route = z.infer<typeof RouteSchema>;
1474
1619
  type RouteDetail = z.infer<typeof RouteDetailSchema>;
1620
+ type RouteMetrics = z.infer<typeof RouteMetricsSchema>;
1621
+ type RouteInputAssetDeclaration = z.infer<typeof RouteInputAssetDeclarationSchema>;
1622
+ type RouteOutputAssetDeclaration = z.infer<typeof RouteOutputAssetDeclarationSchema>;
1623
+ type RouteInputAssets = z.infer<typeof RouteInputAssetsSchema>;
1624
+ type RouteOutputAssets = z.infer<typeof RouteOutputAssetsSchema>;
1625
+ type ExecutionMode = z.infer<typeof ExecutionModeSchema>;
1475
1626
  declare const AuthType: z.ZodEnum<{
1476
1627
  "Personal Access Token": "Personal Access Token";
1477
1628
  Ouro: "Ouro";
@@ -1481,4 +1632,4 @@ declare const AuthType: z.ZodEnum<{
1481
1632
  type AuthType = z.infer<typeof AuthType>;
1482
1633
  type Action = z.infer<typeof ActionSchema>;
1483
1634
 
1484
- export { type Action, ActionSchema, AuthType, CreateServiceSchema, type Route, type RouteDetail, RouteSchema, type Service, ServiceSchema, UpdateServiceSchema };
1635
+ export { type Action, ActionSchema, AuthType, CreateServiceSchema, type ExecutionMode, ExecutionModeSchema, type Route, type RouteDetail, type RouteInputAssetDeclaration, RouteInputAssetDeclarationSchema, type RouteInputAssets, RouteInputAssetsSchema, type RouteMetrics, RouteMetricsSchema, type RouteOutputAssetDeclaration, RouteOutputAssetDeclarationSchema, type RouteOutputAssets, RouteOutputAssetsSchema, RouteSchema, type Service, ServiceSchema, UpdateServiceSchema };