@ourofoundation/ouro-js 3.3.0 → 3.4.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 (49) hide show
  1. package/dist/chunk-36UOEIZN.js +2 -0
  2. package/dist/chunk-36UOEIZN.js.map +1 -0
  3. package/dist/chunk-4KDHR4VP.js +2 -0
  4. package/dist/chunk-4KDHR4VP.js.map +1 -0
  5. package/dist/chunk-IU7AKVYI.cjs +2 -0
  6. package/dist/chunk-IU7AKVYI.cjs.map +1 -0
  7. package/dist/chunk-NRZCTFCQ.cjs +2 -0
  8. package/dist/chunk-NRZCTFCQ.cjs.map +1 -0
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.d.cts +2 -1
  11. package/dist/index.d.ts +2 -1
  12. package/dist/index.js +1 -1
  13. package/dist/schema/assets.d.cts +84 -84
  14. package/dist/schema/assets.d.ts +84 -84
  15. package/dist/schema/comments.d.cts +136 -136
  16. package/dist/schema/comments.d.ts +136 -136
  17. package/dist/schema/common.d.cts +16 -16
  18. package/dist/schema/common.d.ts +16 -16
  19. package/dist/schema/conversations.d.cts +69 -69
  20. package/dist/schema/conversations.d.ts +69 -69
  21. package/dist/schema/datasets.d.cts +106 -106
  22. package/dist/schema/datasets.d.ts +106 -106
  23. package/dist/schema/files.d.cts +100 -100
  24. package/dist/schema/files.d.ts +100 -100
  25. package/dist/schema/notifications.d.cts +2 -2
  26. package/dist/schema/notifications.d.ts +2 -2
  27. package/dist/schema/organizations.d.cts +1 -1
  28. package/dist/schema/organizations.d.ts +1 -1
  29. package/dist/schema/posts.d.cts +127 -127
  30. package/dist/schema/posts.d.ts +127 -127
  31. package/dist/schema/quests.cjs +2 -0
  32. package/dist/schema/quests.cjs.map +1 -0
  33. package/dist/schema/quests.d.cts +1140 -0
  34. package/dist/schema/quests.d.ts +1140 -0
  35. package/dist/schema/quests.js +2 -0
  36. package/dist/schema/quests.js.map +1 -0
  37. package/dist/schema/services.cjs +1 -1
  38. package/dist/schema/services.d.cts +159 -120
  39. package/dist/schema/services.d.ts +159 -120
  40. package/dist/schema/services.js +1 -1
  41. package/dist/schema/tags.d.cts +7 -7
  42. package/dist/schema/tags.d.ts +7 -7
  43. package/dist/schema/teams.d.cts +18 -18
  44. package/dist/schema/teams.d.ts +18 -18
  45. package/package.json +1 -1
  46. package/dist/chunk-42EQ7ULD.cjs +0 -2
  47. package/dist/chunk-42EQ7ULD.cjs.map +0 -1
  48. package/dist/chunk-FDKZIS34.js +0 -2
  49. 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,12 @@ 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
+ }>;
617
621
  declare const RouteDetailSchema: z.ZodObject<{
618
622
  id: z.ZodString;
619
623
  user_id: z.ZodString;
@@ -632,8 +636,8 @@ declare const RouteDetailSchema: z.ZodObject<{
632
636
  responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
633
637
  input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
634
638
  input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
635
- file: "file";
636
639
  dataset: "dataset";
640
+ file: "file";
637
641
  post: "post";
638
642
  }>>>;
639
643
  input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -647,16 +651,31 @@ declare const RouteDetailSchema: z.ZodObject<{
647
651
  input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
652
  input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
649
653
  output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
650
- file: "file";
651
654
  dataset: "dataset";
655
+ file: "file";
652
656
  post: "post";
653
657
  }>>>;
654
658
  output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
655
659
  output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
660
  security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
657
661
  rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
662
+ execution_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
663
+ sync: "sync";
664
+ async: "async";
665
+ }>>>;
666
+ observed_execution_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
667
+ sync: "sync";
668
+ async: "async";
669
+ }>>>;
658
670
  last_updated: z.ZodString;
659
671
  }, z.core.$strip>;
672
+ declare const RouteMetricsSchema: z.ZodObject<{
673
+ avg_ack_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
674
+ p95_ack_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
675
+ avg_completion_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
676
+ p95_completion_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
677
+ latency_sample_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
678
+ }, z.core.$strip>;
660
679
  declare const RouteSchema: z.ZodObject<{
661
680
  id: z.ZodUUID;
662
681
  user_id: z.ZodUUID;
@@ -765,9 +784,9 @@ declare const RouteSchema: z.ZodObject<{
765
784
  none: "none";
766
785
  }>>;
767
786
  visibility: z.ZodOptional<z.ZodEnum<{
787
+ organization: "organization";
768
788
  public: "public";
769
789
  private: "private";
770
- organization: "organization";
771
790
  monetized: "monetized";
772
791
  inherit: "inherit";
773
792
  }>>;
@@ -839,9 +858,9 @@ declare const RouteSchema: z.ZodObject<{
839
858
  text: z.ZodString;
840
859
  }, z.core.$strip>>>;
841
860
  visibility: z.ZodEnum<{
861
+ organization: "organization";
842
862
  public: "public";
843
863
  private: "private";
844
- organization: "organization";
845
864
  monetized: "monetized";
846
865
  inherit: "inherit";
847
866
  }>;
@@ -880,23 +899,23 @@ declare const RouteSchema: z.ZodObject<{
880
899
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
881
900
  state: z.ZodEnum<{
882
901
  success: "success";
883
- error: "error";
884
902
  queued: "queued";
885
903
  "in-progress": "in-progress";
886
904
  "timed-out": "timed-out";
905
+ error: "error";
887
906
  }>;
888
907
  source: z.ZodEnum<{
889
- web: "web";
890
908
  api: "api";
909
+ web: "web";
891
910
  }>;
892
911
  created_at: z.ZodString;
893
912
  last_updated: z.ZodString;
894
913
  asset_type: z.ZodEnum<{
895
- organization: "organization";
896
- file: "file";
897
914
  user: "user";
915
+ organization: "organization";
898
916
  team: "team";
899
917
  dataset: "dataset";
918
+ file: "file";
900
919
  service: "service";
901
920
  route: "route";
902
921
  post: "post";
@@ -922,8 +941,8 @@ declare const RouteSchema: z.ZodObject<{
922
941
  responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
923
942
  input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
924
943
  input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
925
- file: "file";
926
944
  dataset: "dataset";
945
+ file: "file";
927
946
  post: "post";
928
947
  }>>>;
929
948
  input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -937,16 +956,31 @@ declare const RouteSchema: z.ZodObject<{
937
956
  input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
938
957
  input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
939
958
  output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
940
- file: "file";
941
959
  dataset: "dataset";
960
+ file: "file";
942
961
  post: "post";
943
962
  }>>>;
944
963
  output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
945
964
  output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
946
965
  security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
947
966
  rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
967
+ execution_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
968
+ sync: "sync";
969
+ async: "async";
970
+ }>>>;
971
+ observed_execution_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
972
+ sync: "sync";
973
+ async: "async";
974
+ }>>>;
948
975
  last_updated: z.ZodString;
949
976
  }, z.core.$strip>;
977
+ metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
978
+ avg_ack_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
979
+ p95_ack_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
980
+ avg_completion_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
981
+ p95_completion_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
982
+ latency_sample_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
983
+ }, z.core.$strip>>>;
950
984
  }, z.core.$strip>;
951
985
  declare const ActionSchema: z.ZodObject<{
952
986
  id: z.ZodUUID;
@@ -1065,9 +1099,9 @@ declare const ActionSchema: z.ZodObject<{
1065
1099
  none: "none";
1066
1100
  }>>;
1067
1101
  visibility: z.ZodOptional<z.ZodEnum<{
1102
+ organization: "organization";
1068
1103
  public: "public";
1069
1104
  private: "private";
1070
- organization: "organization";
1071
1105
  monetized: "monetized";
1072
1106
  inherit: "inherit";
1073
1107
  }>>;
@@ -1132,11 +1166,11 @@ declare const ActionSchema: z.ZodObject<{
1132
1166
  license_id: z.ZodString;
1133
1167
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1134
1168
  asset_type: z.ZodEnum<{
1135
- organization: "organization";
1136
- file: "file";
1137
1169
  user: "user";
1170
+ organization: "organization";
1138
1171
  team: "team";
1139
1172
  dataset: "dataset";
1173
+ file: "file";
1140
1174
  service: "service";
1141
1175
  route: "route";
1142
1176
  post: "post";
@@ -1152,9 +1186,9 @@ declare const ActionSchema: z.ZodObject<{
1152
1186
  text: z.ZodString;
1153
1187
  }, z.core.$strip>>>;
1154
1188
  visibility: z.ZodEnum<{
1189
+ organization: "organization";
1155
1190
  public: "public";
1156
1191
  private: "private";
1157
- organization: "organization";
1158
1192
  monetized: "monetized";
1159
1193
  inherit: "inherit";
1160
1194
  }>;
@@ -1193,14 +1227,14 @@ declare const ActionSchema: z.ZodObject<{
1193
1227
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1194
1228
  state: z.ZodEnum<{
1195
1229
  success: "success";
1196
- error: "error";
1197
1230
  queued: "queued";
1198
1231
  "in-progress": "in-progress";
1199
1232
  "timed-out": "timed-out";
1233
+ error: "error";
1200
1234
  }>;
1201
1235
  source: z.ZodEnum<{
1202
- web: "web";
1203
1236
  api: "api";
1237
+ web: "web";
1204
1238
  }>;
1205
1239
  created_at: z.ZodString;
1206
1240
  last_updated: z.ZodString;
@@ -1314,9 +1348,9 @@ declare const ActionSchema: z.ZodObject<{
1314
1348
  none: "none";
1315
1349
  }>>;
1316
1350
  visibility: z.ZodOptional<z.ZodEnum<{
1351
+ organization: "organization";
1317
1352
  public: "public";
1318
1353
  private: "private";
1319
- organization: "organization";
1320
1354
  monetized: "monetized";
1321
1355
  inherit: "inherit";
1322
1356
  }>>;
@@ -1381,11 +1415,11 @@ declare const ActionSchema: z.ZodObject<{
1381
1415
  license_id: z.ZodString;
1382
1416
  license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1383
1417
  asset_type: z.ZodEnum<{
1384
- organization: "organization";
1385
- file: "file";
1386
1418
  user: "user";
1419
+ organization: "organization";
1387
1420
  team: "team";
1388
1421
  dataset: "dataset";
1422
+ file: "file";
1389
1423
  service: "service";
1390
1424
  route: "route";
1391
1425
  post: "post";
@@ -1401,9 +1435,9 @@ declare const ActionSchema: z.ZodObject<{
1401
1435
  text: z.ZodString;
1402
1436
  }, z.core.$strip>>>;
1403
1437
  visibility: z.ZodEnum<{
1438
+ organization: "organization";
1404
1439
  public: "public";
1405
1440
  private: "private";
1406
- organization: "organization";
1407
1441
  monetized: "monetized";
1408
1442
  inherit: "inherit";
1409
1443
  }>;
@@ -1442,36 +1476,41 @@ declare const ActionSchema: z.ZodObject<{
1442
1476
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1443
1477
  state: z.ZodEnum<{
1444
1478
  success: "success";
1445
- error: "error";
1446
1479
  queued: "queued";
1447
1480
  "in-progress": "in-progress";
1448
1481
  "timed-out": "timed-out";
1482
+ error: "error";
1449
1483
  }>;
1450
1484
  source: z.ZodEnum<{
1451
- web: "web";
1452
1485
  api: "api";
1486
+ web: "web";
1453
1487
  }>;
1454
1488
  created_at: z.ZodString;
1455
1489
  last_updated: z.ZodString;
1456
1490
  }, z.core.$strip>>>;
1491
+ output_assets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1457
1492
  webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1458
1493
  webhook_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1459
1494
  status: z.ZodEnum<{
1460
1495
  success: "success";
1461
- error: "error";
1462
1496
  queued: "queued";
1463
1497
  "in-progress": "in-progress";
1464
1498
  "timed-out": "timed-out";
1499
+ error: "error";
1465
1500
  }>;
1466
1501
  created_at: z.ZodString;
1467
1502
  last_updated: z.ZodString;
1468
1503
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1504
+ ack_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1505
+ upstream_status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1469
1506
  finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1470
1507
  }, z.core.$strip>;
1471
1508
 
1472
1509
  type Service = z.infer<typeof ServiceSchema>;
1473
1510
  type Route = z.infer<typeof RouteSchema>;
1474
1511
  type RouteDetail = z.infer<typeof RouteDetailSchema>;
1512
+ type RouteMetrics = z.infer<typeof RouteMetricsSchema>;
1513
+ type ExecutionMode = z.infer<typeof ExecutionModeSchema>;
1475
1514
  declare const AuthType: z.ZodEnum<{
1476
1515
  "Personal Access Token": "Personal Access Token";
1477
1516
  Ouro: "Ouro";
@@ -1481,4 +1520,4 @@ declare const AuthType: z.ZodEnum<{
1481
1520
  type AuthType = z.infer<typeof AuthType>;
1482
1521
  type Action = z.infer<typeof ActionSchema>;
1483
1522
 
1484
- export { type Action, ActionSchema, AuthType, CreateServiceSchema, type Route, type RouteDetail, RouteSchema, type Service, ServiceSchema, UpdateServiceSchema };
1523
+ export { type Action, ActionSchema, AuthType, CreateServiceSchema, type ExecutionMode, ExecutionModeSchema, type Route, type RouteDetail, type RouteMetrics, RouteMetricsSchema, RouteSchema, type Service, ServiceSchema, UpdateServiceSchema };
@@ -1,2 +1,2 @@
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
1
+ export{g as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,e as RouteMetricsSchema,f as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'../chunk-36UOEIZN.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