@remotehost/sdk 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -423,6 +423,307 @@ export interface paths {
423
423
  patch?: never;
424
424
  trace?: never;
425
425
  };
426
+ "/sandboxes/{sandboxId}/files/snapshot": {
427
+ parameters: {
428
+ query?: never;
429
+ header?: never;
430
+ path?: never;
431
+ cookie?: never;
432
+ };
433
+ /**
434
+ * Read a directory tree
435
+ * @description Returns directory entries grouped by parent path. This is a filesystem listing, not a persistent sandbox backup. Requires a running Firecracker sandbox and sandbox.files.read.
436
+ */
437
+ get: operations["snapshotSandboxFiles"];
438
+ put?: never;
439
+ post?: never;
440
+ delete?: never;
441
+ options?: never;
442
+ head?: never;
443
+ patch?: never;
444
+ trace?: never;
445
+ };
446
+ "/me": {
447
+ parameters: {
448
+ query?: never;
449
+ header?: never;
450
+ path?: never;
451
+ cookie?: never;
452
+ };
453
+ /** Read the authenticated caller's identity */
454
+ get: operations["getCurrentUser"];
455
+ put?: never;
456
+ post?: never;
457
+ delete?: never;
458
+ options?: never;
459
+ head?: never;
460
+ patch?: never;
461
+ trace?: never;
462
+ };
463
+ "/orgs/{orgId}/usage": {
464
+ parameters: {
465
+ query?: never;
466
+ header?: never;
467
+ path?: never;
468
+ cookie?: never;
469
+ };
470
+ /**
471
+ * Read machine-hour usage for the current billing period
472
+ * @description Requires billing.read. Optional filters attribute usage to a project or your own end user.
473
+ */
474
+ get: operations["getOrgUsage"];
475
+ put?: never;
476
+ post?: never;
477
+ delete?: never;
478
+ options?: never;
479
+ head?: never;
480
+ patch?: never;
481
+ trace?: never;
482
+ };
483
+ "/orgs/{orgId}/usage/end-users": {
484
+ parameters: {
485
+ query?: never;
486
+ header?: never;
487
+ path?: never;
488
+ cookie?: never;
489
+ };
490
+ /**
491
+ * Read usage grouped by your end users
492
+ * @description Requires billing.read. Unattributed usage is excluded. Results are ordered by machine hours descending.
493
+ */
494
+ get: operations["getOrgUsageByEndUser"];
495
+ put?: never;
496
+ post?: never;
497
+ delete?: never;
498
+ options?: never;
499
+ head?: never;
500
+ patch?: never;
501
+ trace?: never;
502
+ };
503
+ "/orgs/{orgId}/api-keys": {
504
+ parameters: {
505
+ query?: never;
506
+ header?: never;
507
+ path?: never;
508
+ cookie?: never;
509
+ };
510
+ /**
511
+ * List API key metadata
512
+ * @description Requires a user session with api_keys.manage. API keys cannot call this operation. Secret tokens are never returned.
513
+ */
514
+ get: operations["listApiKeys"];
515
+ put?: never;
516
+ /**
517
+ * Mint an organization-bound API key
518
+ * @description Requires a user session with api_keys.manage. API keys cannot mint keys. Scopes narrow the creator's permissions; omitted or null means unscoped, while [] grants no permissions. Store the returned token securely: it is shown only once.
519
+ */
520
+ post: operations["createApiKey"];
521
+ delete?: never;
522
+ options?: never;
523
+ head?: never;
524
+ patch?: never;
525
+ trace?: never;
526
+ };
527
+ "/orgs/{orgId}/api-keys/{keyId}": {
528
+ parameters: {
529
+ query?: never;
530
+ header?: never;
531
+ path?: never;
532
+ cookie?: never;
533
+ };
534
+ get?: never;
535
+ put?: never;
536
+ post?: never;
537
+ /**
538
+ * Revoke an API key
539
+ * @description Requires a user session with api_keys.manage. API keys cannot call this operation.
540
+ */
541
+ delete: operations["revokeApiKey"];
542
+ options?: never;
543
+ head?: never;
544
+ patch?: never;
545
+ trace?: never;
546
+ };
547
+ "/me/agent-tokens": {
548
+ parameters: {
549
+ query?: never;
550
+ header?: never;
551
+ path?: never;
552
+ cookie?: never;
553
+ };
554
+ get: operations["listAgentAccessTokens"];
555
+ put?: never;
556
+ /** @description User sign-in required. Explicit delegation across accessible organizations; does not alter organization API keys. sandbox.create permits waking existing sandboxes only. Token returned once. */
557
+ post: operations["createAgentAccessToken"];
558
+ delete?: never;
559
+ options?: never;
560
+ head?: never;
561
+ patch?: never;
562
+ trace?: never;
563
+ };
564
+ "/me/agent-tokens/{tokenId}": {
565
+ parameters: {
566
+ query?: never;
567
+ header?: never;
568
+ path?: never;
569
+ cookie?: never;
570
+ };
571
+ get?: never;
572
+ put?: never;
573
+ post?: never;
574
+ delete: operations["revokeAgentAccessToken"];
575
+ options?: never;
576
+ head?: never;
577
+ patch?: never;
578
+ trace?: never;
579
+ };
580
+ "/agent-sessions": {
581
+ parameters: {
582
+ query?: never;
583
+ header?: never;
584
+ path?: never;
585
+ cookie?: never;
586
+ };
587
+ /** @description Discover registered sessions across accessible projects. Organization API keys retain their org limit; personal agent tokens span accessible orgs. New Codex terminals are registered; existing standalone and native Claude sessions are not attached. State is last known; read a session to refresh it. Pages are ordered by stable session ID, not activity. */
588
+ get: operations["discoverAgentSessions"];
589
+ put?: never;
590
+ post?: never;
591
+ delete?: never;
592
+ options?: never;
593
+ head?: never;
594
+ patch?: never;
595
+ trace?: never;
596
+ };
597
+ "/sandboxes/{sandboxId}/agent-sessions": {
598
+ parameters: {
599
+ query?: never;
600
+ header?: never;
601
+ path?: never;
602
+ cookie?: never;
603
+ };
604
+ get?: never;
605
+ put?: never;
606
+ /** @description Start a separate managed conversation using this running sandbox's configured agent. Does not attach to its native terminal conversation. Requires agent_session.send. */
607
+ post: operations["createAgentSession"];
608
+ delete?: never;
609
+ options?: never;
610
+ head?: never;
611
+ patch?: never;
612
+ trace?: never;
613
+ };
614
+ "/projects/{projectId}/agent-sessions": {
615
+ parameters: {
616
+ query?: never;
617
+ header?: never;
618
+ path?: never;
619
+ cookie?: never;
620
+ };
621
+ get: operations["listAgentSessions"];
622
+ put?: never;
623
+ post?: never;
624
+ delete?: never;
625
+ options?: never;
626
+ head?: never;
627
+ patch?: never;
628
+ trace?: never;
629
+ };
630
+ "/agent-sessions/{sessionId}": {
631
+ parameters: {
632
+ query?: never;
633
+ header?: never;
634
+ path?: never;
635
+ cookie?: never;
636
+ };
637
+ get: operations["getAgentSession"];
638
+ put?: never;
639
+ post?: never;
640
+ delete?: never;
641
+ options?: never;
642
+ head?: never;
643
+ patch?: never;
644
+ trace?: never;
645
+ };
646
+ "/agent-sessions/{sessionId}/output": {
647
+ parameters: {
648
+ query?: never;
649
+ header?: never;
650
+ path?: never;
651
+ cookie?: never;
652
+ };
653
+ get: operations["getAgentOutput"];
654
+ put?: never;
655
+ post?: never;
656
+ delete?: never;
657
+ options?: never;
658
+ head?: never;
659
+ patch?: never;
660
+ trace?: never;
661
+ };
662
+ "/agent-sessions/{sessionId}/messages": {
663
+ parameters: {
664
+ query?: never;
665
+ header?: never;
666
+ path?: never;
667
+ cookie?: never;
668
+ };
669
+ get?: never;
670
+ put?: never;
671
+ post: operations["sendAgentMessage"];
672
+ delete?: never;
673
+ options?: never;
674
+ head?: never;
675
+ patch?: never;
676
+ trace?: never;
677
+ };
678
+ "/agent-sessions/{sessionId}/answer": {
679
+ parameters: {
680
+ query?: never;
681
+ header?: never;
682
+ path?: never;
683
+ cookie?: never;
684
+ };
685
+ get?: never;
686
+ put?: never;
687
+ post: operations["answerAgentPrompt"];
688
+ delete?: never;
689
+ options?: never;
690
+ head?: never;
691
+ patch?: never;
692
+ trace?: never;
693
+ };
694
+ "/agent-sessions/{sessionId}/interrupt": {
695
+ parameters: {
696
+ query?: never;
697
+ header?: never;
698
+ path?: never;
699
+ cookie?: never;
700
+ };
701
+ get?: never;
702
+ put?: never;
703
+ post: operations["interruptAgentTurn"];
704
+ delete?: never;
705
+ options?: never;
706
+ head?: never;
707
+ patch?: never;
708
+ trace?: never;
709
+ };
710
+ "/agent-sessions/{sessionId}/recover": {
711
+ parameters: {
712
+ query?: never;
713
+ header?: never;
714
+ path?: never;
715
+ cookie?: never;
716
+ };
717
+ get?: never;
718
+ put?: never;
719
+ /** @description Resume a saved managed Claude or Codex conversation, or a registered native Codex session. Requires agent_session.send and the original running sandbox with saved history. Already-ready sessions are unchanged; known live previous processes prevent restart. Queued work is never replayed; interrupted turns have uncertain prior effects. Native Claude attachment is not supported. */
720
+ post: operations["recoverAgentSession"];
721
+ delete?: never;
722
+ options?: never;
723
+ head?: never;
724
+ patch?: never;
725
+ trace?: never;
726
+ };
426
727
  }
427
728
  export type webhooks = Record<string, never>;
428
729
  export interface components {
@@ -721,14 +1022,99 @@ export interface components {
721
1022
  } | null;
722
1023
  memoryWarning: components["schemas"]["MemoryPressureWarning"];
723
1024
  };
724
- };
725
- responses: never;
726
- parameters: never;
727
- requestBodies: never;
728
- headers: never;
729
- pathItems: never;
730
- }
731
- export type $defs = Record<string, never>;
1025
+ Usage: {
1026
+ /** @enum {string} */
1027
+ plan: "individual" | "pro" | "max" | "team" | "enterprise";
1028
+ projectId: string | null;
1029
+ endUserId: string | null;
1030
+ periodStartsAt: string;
1031
+ periodEndsAt: string | null;
1032
+ includedMachineHours: number | null;
1033
+ sandboxMachineHourLimit: number | null;
1034
+ sandboxMachineHourLimitOverride: number | null;
1035
+ projectSandboxMachineHourLimit: number | null;
1036
+ sandboxOverageEnabled: boolean;
1037
+ usedMachineHours: number;
1038
+ remainingMachineHours: number | null;
1039
+ overageMachineHours: number;
1040
+ overageCostUsd: number | null;
1041
+ usageAlert: {
1042
+ percentUsed: number | null;
1043
+ /** @enum {string} */
1044
+ status: "uncapped" | "normal" | "approaching" | "critical" | "exhausted";
1045
+ message: string;
1046
+ };
1047
+ };
1048
+ ApiKey: {
1049
+ id: string;
1050
+ org_id: string;
1051
+ name: string;
1052
+ key_prefix: string;
1053
+ last_used_at: string | null;
1054
+ created_at: string;
1055
+ revoked_at: string | null;
1056
+ expires_at: string | null;
1057
+ scopes: string[] | null;
1058
+ };
1059
+ AgentSessionCommunication: {
1060
+ /** @enum {string} */
1061
+ status: "ready" | "starting" | "restart_required" | "setup_required" | "unavailable" | "unsupported";
1062
+ capabilities: ("messages" | "output" | "approvals" | "interrupt" | "recover")[];
1063
+ message: string | null;
1064
+ requirements: {
1065
+ code: string;
1066
+ /** @enum {string} */
1067
+ action: "restart" | "setup";
1068
+ message: string;
1069
+ }[];
1070
+ };
1071
+ AgentSessionState: {
1072
+ id: string;
1073
+ sessionId: string;
1074
+ projectId: string;
1075
+ sandboxId: string | null;
1076
+ agent: string;
1077
+ agentLabel: string;
1078
+ communication: components["schemas"]["AgentSessionCommunication"];
1079
+ requirements: {
1080
+ code: string;
1081
+ /** @enum {string} */
1082
+ action: "restart" | "setup";
1083
+ message: string;
1084
+ }[];
1085
+ /** @enum {string} */
1086
+ surface: "terminal" | "managed";
1087
+ /** @enum {string} */
1088
+ status: "active" | "closed";
1089
+ turnId: string | null;
1090
+ /** @enum {string|null} */
1091
+ turnState: "submitted" | "working" | "input-required" | "completed" | "failed" | "canceled" | null;
1092
+ needsYou: boolean;
1093
+ waitingOn: string | null;
1094
+ pendingInput: {
1095
+ requestId: string | number;
1096
+ kind: string;
1097
+ summary: string;
1098
+ } | null;
1099
+ error: string | null;
1100
+ /** @enum {string|null} */
1101
+ bridgeState: "starting" | "ready" | "closed" | null;
1102
+ bridgeEventSeq: number | null;
1103
+ drifted: boolean;
1104
+ problems: {
1105
+ seq: number;
1106
+ event: string;
1107
+ reason: string;
1108
+ }[];
1109
+ };
1110
+ };
1111
+ responses: never;
1112
+ parameters: never;
1113
+ requestBodies: never;
1114
+ headers: never;
1115
+ pathItems: never;
1116
+ }
1117
+ export type $defs = Record<string, never>;
732
1118
  export interface operations {
733
1119
  listMyOrgs: {
734
1120
  parameters: {
@@ -4213,5 +4599,2018 @@ export interface operations {
4213
4599
  };
4214
4600
  };
4215
4601
  };
4602
+ snapshotSandboxFiles: {
4603
+ parameters: {
4604
+ query?: {
4605
+ path?: string;
4606
+ depth?: number;
4607
+ };
4608
+ header?: never;
4609
+ path: {
4610
+ sandboxId: string;
4611
+ };
4612
+ cookie?: never;
4613
+ };
4614
+ requestBody?: never;
4615
+ responses: {
4616
+ /** @description Directory tree. Large trees may be truncated. */
4617
+ 200: {
4618
+ headers: {
4619
+ [name: string]: unknown;
4620
+ };
4621
+ content: {
4622
+ "application/json": {
4623
+ path: string;
4624
+ truncated: boolean;
4625
+ directories: {
4626
+ [key: string]: components["schemas"]["FilesystemEntry"][];
4627
+ };
4628
+ };
4629
+ };
4630
+ };
4631
+ /** @description Invalid path, provider, or sandbox state. */
4632
+ 400: {
4633
+ headers: {
4634
+ [name: string]: unknown;
4635
+ };
4636
+ content: {
4637
+ "application/json": {
4638
+ error: {
4639
+ message: string;
4640
+ /** @enum {string} */
4641
+ code?: "rate_limited" | "limit_reached" | "plan_required" | "snapshot_in_progress";
4642
+ limit?: number;
4643
+ /** @enum {string} */
4644
+ window?: "minute" | "hour" | "day";
4645
+ retryAfterSeconds?: number;
4646
+ resetsAt?: string;
4647
+ active?: number;
4648
+ includedLimit?: number | null;
4649
+ planMaximum?: number | null;
4650
+ profile?: string;
4651
+ minimumPlan?: string | null;
4652
+ };
4653
+ };
4654
+ };
4655
+ };
4656
+ /** @description Permission sandbox.files.read is required. */
4657
+ 403: {
4658
+ headers: {
4659
+ [name: string]: unknown;
4660
+ };
4661
+ content: {
4662
+ "application/json": {
4663
+ error: {
4664
+ message: string;
4665
+ /** @enum {string} */
4666
+ code?: "rate_limited" | "limit_reached" | "plan_required" | "snapshot_in_progress";
4667
+ limit?: number;
4668
+ /** @enum {string} */
4669
+ window?: "minute" | "hour" | "day";
4670
+ retryAfterSeconds?: number;
4671
+ resetsAt?: string;
4672
+ active?: number;
4673
+ includedLimit?: number | null;
4674
+ planMaximum?: number | null;
4675
+ profile?: string;
4676
+ minimumPlan?: string | null;
4677
+ };
4678
+ };
4679
+ };
4680
+ };
4681
+ /** @description Sandbox not found. */
4682
+ 404: {
4683
+ headers: {
4684
+ [name: string]: unknown;
4685
+ };
4686
+ content: {
4687
+ "application/json": {
4688
+ error: {
4689
+ message: string;
4690
+ /** @enum {string} */
4691
+ code?: "rate_limited" | "limit_reached" | "plan_required" | "snapshot_in_progress";
4692
+ limit?: number;
4693
+ /** @enum {string} */
4694
+ window?: "minute" | "hour" | "day";
4695
+ retryAfterSeconds?: number;
4696
+ resetsAt?: string;
4697
+ active?: number;
4698
+ includedLimit?: number | null;
4699
+ planMaximum?: number | null;
4700
+ profile?: string;
4701
+ minimumPlan?: string | null;
4702
+ };
4703
+ };
4704
+ };
4705
+ };
4706
+ /** @description Filesystem operation failed. */
4707
+ 500: {
4708
+ headers: {
4709
+ [name: string]: unknown;
4710
+ };
4711
+ content: {
4712
+ "application/json": {
4713
+ error: {
4714
+ message: string;
4715
+ /** @enum {string} */
4716
+ code?: "rate_limited" | "limit_reached" | "plan_required" | "snapshot_in_progress";
4717
+ limit?: number;
4718
+ /** @enum {string} */
4719
+ window?: "minute" | "hour" | "day";
4720
+ retryAfterSeconds?: number;
4721
+ resetsAt?: string;
4722
+ active?: number;
4723
+ includedLimit?: number | null;
4724
+ planMaximum?: number | null;
4725
+ profile?: string;
4726
+ minimumPlan?: string | null;
4727
+ };
4728
+ };
4729
+ };
4730
+ };
4731
+ };
4732
+ };
4733
+ getCurrentUser: {
4734
+ parameters: {
4735
+ query?: never;
4736
+ header?: never;
4737
+ path?: never;
4738
+ cookie?: never;
4739
+ };
4740
+ requestBody?: never;
4741
+ responses: {
4742
+ /** @description For an API key, the identity of its creator. */
4743
+ 200: {
4744
+ headers: {
4745
+ [name: string]: unknown;
4746
+ };
4747
+ content: {
4748
+ "application/json": {
4749
+ id: string;
4750
+ email: string | null;
4751
+ displayName: string | null;
4752
+ };
4753
+ };
4754
+ };
4755
+ };
4756
+ };
4757
+ getOrgUsage: {
4758
+ parameters: {
4759
+ query?: {
4760
+ projectId?: string;
4761
+ endUserId?: string;
4762
+ };
4763
+ header?: never;
4764
+ path: {
4765
+ orgId: string;
4766
+ };
4767
+ cookie?: never;
4768
+ };
4769
+ requestBody?: never;
4770
+ responses: {
4771
+ /** @description Usage, caps, overage and alert state. */
4772
+ 200: {
4773
+ headers: {
4774
+ [name: string]: unknown;
4775
+ };
4776
+ content: {
4777
+ "application/json": components["schemas"]["Usage"];
4778
+ };
4779
+ };
4780
+ /** @description The request failed. Inspect error.message. */
4781
+ 402: {
4782
+ headers: {
4783
+ [name: string]: unknown;
4784
+ };
4785
+ content: {
4786
+ "application/json": {
4787
+ error: {
4788
+ message: string;
4789
+ };
4790
+ };
4791
+ };
4792
+ };
4793
+ /** @description The request failed. Inspect error.message. */
4794
+ 403: {
4795
+ headers: {
4796
+ [name: string]: unknown;
4797
+ };
4798
+ content: {
4799
+ "application/json": {
4800
+ error: {
4801
+ message: string;
4802
+ };
4803
+ };
4804
+ };
4805
+ };
4806
+ /** @description The request failed. Inspect error.message. */
4807
+ 404: {
4808
+ headers: {
4809
+ [name: string]: unknown;
4810
+ };
4811
+ content: {
4812
+ "application/json": {
4813
+ error: {
4814
+ message: string;
4815
+ };
4816
+ };
4817
+ };
4818
+ };
4819
+ /** @description The request failed. Inspect error.message. */
4820
+ 500: {
4821
+ headers: {
4822
+ [name: string]: unknown;
4823
+ };
4824
+ content: {
4825
+ "application/json": {
4826
+ error: {
4827
+ message: string;
4828
+ };
4829
+ };
4830
+ };
4831
+ };
4832
+ };
4833
+ };
4834
+ getOrgUsageByEndUser: {
4835
+ parameters: {
4836
+ query?: never;
4837
+ header?: never;
4838
+ path: {
4839
+ orgId: string;
4840
+ };
4841
+ cookie?: never;
4842
+ };
4843
+ requestBody?: never;
4844
+ responses: {
4845
+ /** @description Current billing period and attributed usage. */
4846
+ 200: {
4847
+ headers: {
4848
+ [name: string]: unknown;
4849
+ };
4850
+ content: {
4851
+ "application/json": {
4852
+ periodStartsAt: string;
4853
+ periodEndsAt: string | null;
4854
+ endUsers: {
4855
+ endUserId: string;
4856
+ machineHours: number;
4857
+ estimatedCogsUsd: number;
4858
+ }[];
4859
+ };
4860
+ };
4861
+ };
4862
+ /** @description The request failed. Inspect error.message. */
4863
+ 402: {
4864
+ headers: {
4865
+ [name: string]: unknown;
4866
+ };
4867
+ content: {
4868
+ "application/json": {
4869
+ error: {
4870
+ message: string;
4871
+ };
4872
+ };
4873
+ };
4874
+ };
4875
+ /** @description The request failed. Inspect error.message. */
4876
+ 403: {
4877
+ headers: {
4878
+ [name: string]: unknown;
4879
+ };
4880
+ content: {
4881
+ "application/json": {
4882
+ error: {
4883
+ message: string;
4884
+ };
4885
+ };
4886
+ };
4887
+ };
4888
+ /** @description The request failed. Inspect error.message. */
4889
+ 500: {
4890
+ headers: {
4891
+ [name: string]: unknown;
4892
+ };
4893
+ content: {
4894
+ "application/json": {
4895
+ error: {
4896
+ message: string;
4897
+ };
4898
+ };
4899
+ };
4900
+ };
4901
+ };
4902
+ };
4903
+ listApiKeys: {
4904
+ parameters: {
4905
+ query?: never;
4906
+ header?: never;
4907
+ path: {
4908
+ orgId: string;
4909
+ };
4910
+ cookie?: never;
4911
+ };
4912
+ requestBody?: never;
4913
+ responses: {
4914
+ /** @description Keys, including expired and revoked keys, newest first. */
4915
+ 200: {
4916
+ headers: {
4917
+ [name: string]: unknown;
4918
+ };
4919
+ content: {
4920
+ "application/json": {
4921
+ apiKeys: components["schemas"]["ApiKey"][];
4922
+ };
4923
+ };
4924
+ };
4925
+ /** @description The request failed. Inspect error.message. */
4926
+ 403: {
4927
+ headers: {
4928
+ [name: string]: unknown;
4929
+ };
4930
+ content: {
4931
+ "application/json": {
4932
+ error: {
4933
+ message: string;
4934
+ };
4935
+ };
4936
+ };
4937
+ };
4938
+ /** @description The request failed. Inspect error.message. */
4939
+ 500: {
4940
+ headers: {
4941
+ [name: string]: unknown;
4942
+ };
4943
+ content: {
4944
+ "application/json": {
4945
+ error: {
4946
+ message: string;
4947
+ };
4948
+ };
4949
+ };
4950
+ };
4951
+ };
4952
+ };
4953
+ createApiKey: {
4954
+ parameters: {
4955
+ query?: never;
4956
+ header?: never;
4957
+ path: {
4958
+ orgId: string;
4959
+ };
4960
+ cookie?: never;
4961
+ };
4962
+ requestBody: {
4963
+ content: {
4964
+ "application/json": {
4965
+ name: string;
4966
+ expiresInDays?: number | null;
4967
+ scopes?: string[] | null;
4968
+ };
4969
+ };
4970
+ };
4971
+ responses: {
4972
+ /** @description Created key and its one-time secret token. */
4973
+ 201: {
4974
+ headers: {
4975
+ [name: string]: unknown;
4976
+ };
4977
+ content: {
4978
+ "application/json": {
4979
+ apiKey: components["schemas"]["ApiKey"];
4980
+ token: string;
4981
+ };
4982
+ };
4983
+ };
4984
+ /** @description The request failed. Inspect error.message. */
4985
+ 400: {
4986
+ headers: {
4987
+ [name: string]: unknown;
4988
+ };
4989
+ content: {
4990
+ "application/json": {
4991
+ error: {
4992
+ message: string;
4993
+ };
4994
+ };
4995
+ };
4996
+ };
4997
+ /** @description The request failed. Inspect error.message. */
4998
+ 403: {
4999
+ headers: {
5000
+ [name: string]: unknown;
5001
+ };
5002
+ content: {
5003
+ "application/json": {
5004
+ error: {
5005
+ message: string;
5006
+ };
5007
+ };
5008
+ };
5009
+ };
5010
+ /** @description The request failed. Inspect error.message. */
5011
+ 500: {
5012
+ headers: {
5013
+ [name: string]: unknown;
5014
+ };
5015
+ content: {
5016
+ "application/json": {
5017
+ error: {
5018
+ message: string;
5019
+ };
5020
+ };
5021
+ };
5022
+ };
5023
+ };
5024
+ };
5025
+ revokeApiKey: {
5026
+ parameters: {
5027
+ query?: never;
5028
+ header?: never;
5029
+ path: {
5030
+ orgId: string;
5031
+ keyId: string;
5032
+ };
5033
+ cookie?: never;
5034
+ };
5035
+ requestBody?: never;
5036
+ responses: {
5037
+ /** @description Key revoked. */
5038
+ 200: {
5039
+ headers: {
5040
+ [name: string]: unknown;
5041
+ };
5042
+ content: {
5043
+ "application/json": {
5044
+ ok: boolean;
5045
+ };
5046
+ };
5047
+ };
5048
+ /** @description The request failed. Inspect error.message. */
5049
+ 403: {
5050
+ headers: {
5051
+ [name: string]: unknown;
5052
+ };
5053
+ content: {
5054
+ "application/json": {
5055
+ error: {
5056
+ message: string;
5057
+ };
5058
+ };
5059
+ };
5060
+ };
5061
+ /** @description The request failed. Inspect error.message. */
5062
+ 404: {
5063
+ headers: {
5064
+ [name: string]: unknown;
5065
+ };
5066
+ content: {
5067
+ "application/json": {
5068
+ error: {
5069
+ message: string;
5070
+ };
5071
+ };
5072
+ };
5073
+ };
5074
+ /** @description The request failed. Inspect error.message. */
5075
+ 500: {
5076
+ headers: {
5077
+ [name: string]: unknown;
5078
+ };
5079
+ content: {
5080
+ "application/json": {
5081
+ error: {
5082
+ message: string;
5083
+ };
5084
+ };
5085
+ };
5086
+ };
5087
+ };
5088
+ };
5089
+ listAgentAccessTokens: {
5090
+ parameters: {
5091
+ query?: never;
5092
+ header?: never;
5093
+ path?: never;
5094
+ cookie?: never;
5095
+ };
5096
+ requestBody?: never;
5097
+ responses: {
5098
+ /** @description The signed-in user's tokens. No token hashes or secrets. */
5099
+ 200: {
5100
+ headers: {
5101
+ [name: string]: unknown;
5102
+ };
5103
+ content: {
5104
+ "application/json": {
5105
+ tokens: {
5106
+ /** Format: uuid */
5107
+ id: string;
5108
+ name: string;
5109
+ token_prefix: string;
5110
+ scopes: ("agent_session.read" | "agent_session.send" | "agent_session.approve" | "sandbox.create")[];
5111
+ created_at: string;
5112
+ expires_at: string;
5113
+ revoked_at: string | null;
5114
+ }[];
5115
+ };
5116
+ };
5117
+ };
5118
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5119
+ 400: {
5120
+ headers: {
5121
+ [name: string]: unknown;
5122
+ };
5123
+ content: {
5124
+ "application/json": {
5125
+ error: {
5126
+ message: string;
5127
+ code?: string;
5128
+ turnId?: string;
5129
+ communication?: components["schemas"]["AgentSessionCommunication"];
5130
+ };
5131
+ };
5132
+ };
5133
+ };
5134
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5135
+ 403: {
5136
+ headers: {
5137
+ [name: string]: unknown;
5138
+ };
5139
+ content: {
5140
+ "application/json": {
5141
+ error: {
5142
+ message: string;
5143
+ code?: string;
5144
+ turnId?: string;
5145
+ communication?: components["schemas"]["AgentSessionCommunication"];
5146
+ };
5147
+ };
5148
+ };
5149
+ };
5150
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5151
+ 404: {
5152
+ headers: {
5153
+ [name: string]: unknown;
5154
+ };
5155
+ content: {
5156
+ "application/json": {
5157
+ error: {
5158
+ message: string;
5159
+ code?: string;
5160
+ turnId?: string;
5161
+ communication?: components["schemas"]["AgentSessionCommunication"];
5162
+ };
5163
+ };
5164
+ };
5165
+ };
5166
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5167
+ 409: {
5168
+ headers: {
5169
+ [name: string]: unknown;
5170
+ };
5171
+ content: {
5172
+ "application/json": {
5173
+ error: {
5174
+ message: string;
5175
+ code?: string;
5176
+ turnId?: string;
5177
+ communication?: components["schemas"]["AgentSessionCommunication"];
5178
+ };
5179
+ };
5180
+ };
5181
+ };
5182
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5183
+ 500: {
5184
+ headers: {
5185
+ [name: string]: unknown;
5186
+ };
5187
+ content: {
5188
+ "application/json": {
5189
+ error: {
5190
+ message: string;
5191
+ code?: string;
5192
+ turnId?: string;
5193
+ communication?: components["schemas"]["AgentSessionCommunication"];
5194
+ };
5195
+ };
5196
+ };
5197
+ };
5198
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5199
+ 503: {
5200
+ headers: {
5201
+ [name: string]: unknown;
5202
+ };
5203
+ content: {
5204
+ "application/json": {
5205
+ error: {
5206
+ message: string;
5207
+ code?: string;
5208
+ turnId?: string;
5209
+ communication?: components["schemas"]["AgentSessionCommunication"];
5210
+ };
5211
+ };
5212
+ };
5213
+ };
5214
+ };
5215
+ };
5216
+ createAgentAccessToken: {
5217
+ parameters: {
5218
+ query?: never;
5219
+ header?: never;
5220
+ path?: never;
5221
+ cookie?: never;
5222
+ };
5223
+ requestBody: {
5224
+ content: {
5225
+ "application/json": {
5226
+ name: string;
5227
+ scopes: ("agent_session.read" | "agent_session.send" | "agent_session.approve" | "sandbox.create")[];
5228
+ expiresInDays?: number;
5229
+ };
5230
+ };
5231
+ };
5232
+ responses: {
5233
+ /** @description Personal token created. */
5234
+ 201: {
5235
+ headers: {
5236
+ [name: string]: unknown;
5237
+ };
5238
+ content: {
5239
+ "application/json": {
5240
+ agentToken: {
5241
+ /** Format: uuid */
5242
+ id: string;
5243
+ name: string;
5244
+ token_prefix: string;
5245
+ scopes: ("agent_session.read" | "agent_session.send" | "agent_session.approve" | "sandbox.create")[];
5246
+ created_at: string;
5247
+ expires_at: string;
5248
+ revoked_at: string | null;
5249
+ };
5250
+ token: string;
5251
+ };
5252
+ };
5253
+ };
5254
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5255
+ 400: {
5256
+ headers: {
5257
+ [name: string]: unknown;
5258
+ };
5259
+ content: {
5260
+ "application/json": {
5261
+ error: {
5262
+ message: string;
5263
+ code?: string;
5264
+ turnId?: string;
5265
+ communication?: components["schemas"]["AgentSessionCommunication"];
5266
+ };
5267
+ };
5268
+ };
5269
+ };
5270
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5271
+ 403: {
5272
+ headers: {
5273
+ [name: string]: unknown;
5274
+ };
5275
+ content: {
5276
+ "application/json": {
5277
+ error: {
5278
+ message: string;
5279
+ code?: string;
5280
+ turnId?: string;
5281
+ communication?: components["schemas"]["AgentSessionCommunication"];
5282
+ };
5283
+ };
5284
+ };
5285
+ };
5286
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5287
+ 404: {
5288
+ headers: {
5289
+ [name: string]: unknown;
5290
+ };
5291
+ content: {
5292
+ "application/json": {
5293
+ error: {
5294
+ message: string;
5295
+ code?: string;
5296
+ turnId?: string;
5297
+ communication?: components["schemas"]["AgentSessionCommunication"];
5298
+ };
5299
+ };
5300
+ };
5301
+ };
5302
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5303
+ 409: {
5304
+ headers: {
5305
+ [name: string]: unknown;
5306
+ };
5307
+ content: {
5308
+ "application/json": {
5309
+ error: {
5310
+ message: string;
5311
+ code?: string;
5312
+ turnId?: string;
5313
+ communication?: components["schemas"]["AgentSessionCommunication"];
5314
+ };
5315
+ };
5316
+ };
5317
+ };
5318
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5319
+ 500: {
5320
+ headers: {
5321
+ [name: string]: unknown;
5322
+ };
5323
+ content: {
5324
+ "application/json": {
5325
+ error: {
5326
+ message: string;
5327
+ code?: string;
5328
+ turnId?: string;
5329
+ communication?: components["schemas"]["AgentSessionCommunication"];
5330
+ };
5331
+ };
5332
+ };
5333
+ };
5334
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5335
+ 503: {
5336
+ headers: {
5337
+ [name: string]: unknown;
5338
+ };
5339
+ content: {
5340
+ "application/json": {
5341
+ error: {
5342
+ message: string;
5343
+ code?: string;
5344
+ turnId?: string;
5345
+ communication?: components["schemas"]["AgentSessionCommunication"];
5346
+ };
5347
+ };
5348
+ };
5349
+ };
5350
+ };
5351
+ };
5352
+ revokeAgentAccessToken: {
5353
+ parameters: {
5354
+ query?: never;
5355
+ header?: never;
5356
+ path: {
5357
+ tokenId: string;
5358
+ };
5359
+ cookie?: never;
5360
+ };
5361
+ requestBody?: never;
5362
+ responses: {
5363
+ /** @description Revoked. User sign-in required. */
5364
+ 200: {
5365
+ headers: {
5366
+ [name: string]: unknown;
5367
+ };
5368
+ content: {
5369
+ "application/json": {
5370
+ revoked: boolean;
5371
+ };
5372
+ };
5373
+ };
5374
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5375
+ 400: {
5376
+ headers: {
5377
+ [name: string]: unknown;
5378
+ };
5379
+ content: {
5380
+ "application/json": {
5381
+ error: {
5382
+ message: string;
5383
+ code?: string;
5384
+ turnId?: string;
5385
+ communication?: components["schemas"]["AgentSessionCommunication"];
5386
+ };
5387
+ };
5388
+ };
5389
+ };
5390
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5391
+ 403: {
5392
+ headers: {
5393
+ [name: string]: unknown;
5394
+ };
5395
+ content: {
5396
+ "application/json": {
5397
+ error: {
5398
+ message: string;
5399
+ code?: string;
5400
+ turnId?: string;
5401
+ communication?: components["schemas"]["AgentSessionCommunication"];
5402
+ };
5403
+ };
5404
+ };
5405
+ };
5406
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5407
+ 404: {
5408
+ headers: {
5409
+ [name: string]: unknown;
5410
+ };
5411
+ content: {
5412
+ "application/json": {
5413
+ error: {
5414
+ message: string;
5415
+ code?: string;
5416
+ turnId?: string;
5417
+ communication?: components["schemas"]["AgentSessionCommunication"];
5418
+ };
5419
+ };
5420
+ };
5421
+ };
5422
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5423
+ 409: {
5424
+ headers: {
5425
+ [name: string]: unknown;
5426
+ };
5427
+ content: {
5428
+ "application/json": {
5429
+ error: {
5430
+ message: string;
5431
+ code?: string;
5432
+ turnId?: string;
5433
+ communication?: components["schemas"]["AgentSessionCommunication"];
5434
+ };
5435
+ };
5436
+ };
5437
+ };
5438
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5439
+ 500: {
5440
+ headers: {
5441
+ [name: string]: unknown;
5442
+ };
5443
+ content: {
5444
+ "application/json": {
5445
+ error: {
5446
+ message: string;
5447
+ code?: string;
5448
+ turnId?: string;
5449
+ communication?: components["schemas"]["AgentSessionCommunication"];
5450
+ };
5451
+ };
5452
+ };
5453
+ };
5454
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5455
+ 503: {
5456
+ headers: {
5457
+ [name: string]: unknown;
5458
+ };
5459
+ content: {
5460
+ "application/json": {
5461
+ error: {
5462
+ message: string;
5463
+ code?: string;
5464
+ turnId?: string;
5465
+ communication?: components["schemas"]["AgentSessionCommunication"];
5466
+ };
5467
+ };
5468
+ };
5469
+ };
5470
+ };
5471
+ };
5472
+ discoverAgentSessions: {
5473
+ parameters: {
5474
+ query?: {
5475
+ orgId?: string;
5476
+ projectId?: string;
5477
+ sandboxId?: string;
5478
+ after?: string;
5479
+ limit?: number;
5480
+ };
5481
+ header?: never;
5482
+ path?: never;
5483
+ cookie?: never;
5484
+ };
5485
+ requestBody?: never;
5486
+ responses: {
5487
+ /** @description Permission-filtered page. Follow nextCursor with after while hasMore is true. */
5488
+ 200: {
5489
+ headers: {
5490
+ [name: string]: unknown;
5491
+ };
5492
+ content: {
5493
+ "application/json": {
5494
+ sessions: {
5495
+ id: string;
5496
+ org_id: string;
5497
+ project_id: string;
5498
+ sandbox_id: string | null;
5499
+ agent: string;
5500
+ agent_label: string;
5501
+ /** @enum {string} */
5502
+ status: "active" | "closed";
5503
+ last_activity_at: string;
5504
+ /** @enum {string} */
5505
+ surface: "terminal" | "managed";
5506
+ sandbox_status: string | null;
5507
+ turn_id: string | null;
5508
+ /** @enum {string|null} */
5509
+ turn_state: "submitted" | "working" | "input-required" | "completed" | "failed" | "canceled" | null;
5510
+ needs_you: boolean;
5511
+ permissions: ("agent_session.read" | "agent_session.send" | "agent_session.approve")[];
5512
+ }[];
5513
+ nextCursor: string | null;
5514
+ hasMore: boolean;
5515
+ };
5516
+ };
5517
+ };
5518
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5519
+ 400: {
5520
+ headers: {
5521
+ [name: string]: unknown;
5522
+ };
5523
+ content: {
5524
+ "application/json": {
5525
+ error: {
5526
+ message: string;
5527
+ code?: string;
5528
+ turnId?: string;
5529
+ communication?: components["schemas"]["AgentSessionCommunication"];
5530
+ };
5531
+ };
5532
+ };
5533
+ };
5534
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5535
+ 403: {
5536
+ headers: {
5537
+ [name: string]: unknown;
5538
+ };
5539
+ content: {
5540
+ "application/json": {
5541
+ error: {
5542
+ message: string;
5543
+ code?: string;
5544
+ turnId?: string;
5545
+ communication?: components["schemas"]["AgentSessionCommunication"];
5546
+ };
5547
+ };
5548
+ };
5549
+ };
5550
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5551
+ 404: {
5552
+ headers: {
5553
+ [name: string]: unknown;
5554
+ };
5555
+ content: {
5556
+ "application/json": {
5557
+ error: {
5558
+ message: string;
5559
+ code?: string;
5560
+ turnId?: string;
5561
+ communication?: components["schemas"]["AgentSessionCommunication"];
5562
+ };
5563
+ };
5564
+ };
5565
+ };
5566
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5567
+ 409: {
5568
+ headers: {
5569
+ [name: string]: unknown;
5570
+ };
5571
+ content: {
5572
+ "application/json": {
5573
+ error: {
5574
+ message: string;
5575
+ code?: string;
5576
+ turnId?: string;
5577
+ communication?: components["schemas"]["AgentSessionCommunication"];
5578
+ };
5579
+ };
5580
+ };
5581
+ };
5582
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5583
+ 500: {
5584
+ headers: {
5585
+ [name: string]: unknown;
5586
+ };
5587
+ content: {
5588
+ "application/json": {
5589
+ error: {
5590
+ message: string;
5591
+ code?: string;
5592
+ turnId?: string;
5593
+ communication?: components["schemas"]["AgentSessionCommunication"];
5594
+ };
5595
+ };
5596
+ };
5597
+ };
5598
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5599
+ 503: {
5600
+ headers: {
5601
+ [name: string]: unknown;
5602
+ };
5603
+ content: {
5604
+ "application/json": {
5605
+ error: {
5606
+ message: string;
5607
+ code?: string;
5608
+ turnId?: string;
5609
+ communication?: components["schemas"]["AgentSessionCommunication"];
5610
+ };
5611
+ };
5612
+ };
5613
+ };
5614
+ };
5615
+ };
5616
+ createAgentSession: {
5617
+ parameters: {
5618
+ query?: never;
5619
+ header?: never;
5620
+ path: {
5621
+ sandboxId: string;
5622
+ };
5623
+ cookie?: never;
5624
+ };
5625
+ requestBody?: never;
5626
+ responses: {
5627
+ /** @description Bridge ready. */
5628
+ 201: {
5629
+ headers: {
5630
+ [name: string]: unknown;
5631
+ };
5632
+ content: {
5633
+ "application/json": components["schemas"]["AgentSessionState"];
5634
+ };
5635
+ };
5636
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5637
+ 400: {
5638
+ headers: {
5639
+ [name: string]: unknown;
5640
+ };
5641
+ content: {
5642
+ "application/json": {
5643
+ error: {
5644
+ message: string;
5645
+ code?: string;
5646
+ turnId?: string;
5647
+ communication?: components["schemas"]["AgentSessionCommunication"];
5648
+ };
5649
+ };
5650
+ };
5651
+ };
5652
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5653
+ 403: {
5654
+ headers: {
5655
+ [name: string]: unknown;
5656
+ };
5657
+ content: {
5658
+ "application/json": {
5659
+ error: {
5660
+ message: string;
5661
+ code?: string;
5662
+ turnId?: string;
5663
+ communication?: components["schemas"]["AgentSessionCommunication"];
5664
+ };
5665
+ };
5666
+ };
5667
+ };
5668
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5669
+ 404: {
5670
+ headers: {
5671
+ [name: string]: unknown;
5672
+ };
5673
+ content: {
5674
+ "application/json": {
5675
+ error: {
5676
+ message: string;
5677
+ code?: string;
5678
+ turnId?: string;
5679
+ communication?: components["schemas"]["AgentSessionCommunication"];
5680
+ };
5681
+ };
5682
+ };
5683
+ };
5684
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5685
+ 409: {
5686
+ headers: {
5687
+ [name: string]: unknown;
5688
+ };
5689
+ content: {
5690
+ "application/json": {
5691
+ error: {
5692
+ message: string;
5693
+ code?: string;
5694
+ turnId?: string;
5695
+ communication?: components["schemas"]["AgentSessionCommunication"];
5696
+ };
5697
+ };
5698
+ };
5699
+ };
5700
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5701
+ 500: {
5702
+ headers: {
5703
+ [name: string]: unknown;
5704
+ };
5705
+ content: {
5706
+ "application/json": {
5707
+ error: {
5708
+ message: string;
5709
+ code?: string;
5710
+ turnId?: string;
5711
+ communication?: components["schemas"]["AgentSessionCommunication"];
5712
+ };
5713
+ };
5714
+ };
5715
+ };
5716
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5717
+ 503: {
5718
+ headers: {
5719
+ [name: string]: unknown;
5720
+ };
5721
+ content: {
5722
+ "application/json": {
5723
+ error: {
5724
+ message: string;
5725
+ code?: string;
5726
+ turnId?: string;
5727
+ communication?: components["schemas"]["AgentSessionCommunication"];
5728
+ };
5729
+ };
5730
+ };
5731
+ };
5732
+ };
5733
+ };
5734
+ listAgentSessions: {
5735
+ parameters: {
5736
+ query: {
5737
+ orgId: string;
5738
+ };
5739
+ header?: never;
5740
+ path: {
5741
+ projectId: string;
5742
+ };
5743
+ cookie?: never;
5744
+ };
5745
+ requestBody?: never;
5746
+ responses: {
5747
+ /** @description Most recent session index records. Read a session for reconciled turn state. */
5748
+ 200: {
5749
+ headers: {
5750
+ [name: string]: unknown;
5751
+ };
5752
+ content: {
5753
+ "application/json": {
5754
+ sessions: ({
5755
+ id: string;
5756
+ org_id: string;
5757
+ project_id: string;
5758
+ sandbox_id: string | null;
5759
+ agent: string;
5760
+ agent_label: string;
5761
+ /** @enum {string} */
5762
+ status: "active" | "closed";
5763
+ vendor_session_id: string | null;
5764
+ last_activity_at: string;
5765
+ } & {
5766
+ [key: string]: unknown;
5767
+ })[];
5768
+ };
5769
+ };
5770
+ };
5771
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5772
+ 400: {
5773
+ headers: {
5774
+ [name: string]: unknown;
5775
+ };
5776
+ content: {
5777
+ "application/json": {
5778
+ error: {
5779
+ message: string;
5780
+ code?: string;
5781
+ turnId?: string;
5782
+ communication?: components["schemas"]["AgentSessionCommunication"];
5783
+ };
5784
+ };
5785
+ };
5786
+ };
5787
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5788
+ 403: {
5789
+ headers: {
5790
+ [name: string]: unknown;
5791
+ };
5792
+ content: {
5793
+ "application/json": {
5794
+ error: {
5795
+ message: string;
5796
+ code?: string;
5797
+ turnId?: string;
5798
+ communication?: components["schemas"]["AgentSessionCommunication"];
5799
+ };
5800
+ };
5801
+ };
5802
+ };
5803
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5804
+ 404: {
5805
+ headers: {
5806
+ [name: string]: unknown;
5807
+ };
5808
+ content: {
5809
+ "application/json": {
5810
+ error: {
5811
+ message: string;
5812
+ code?: string;
5813
+ turnId?: string;
5814
+ communication?: components["schemas"]["AgentSessionCommunication"];
5815
+ };
5816
+ };
5817
+ };
5818
+ };
5819
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5820
+ 409: {
5821
+ headers: {
5822
+ [name: string]: unknown;
5823
+ };
5824
+ content: {
5825
+ "application/json": {
5826
+ error: {
5827
+ message: string;
5828
+ code?: string;
5829
+ turnId?: string;
5830
+ communication?: components["schemas"]["AgentSessionCommunication"];
5831
+ };
5832
+ };
5833
+ };
5834
+ };
5835
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5836
+ 500: {
5837
+ headers: {
5838
+ [name: string]: unknown;
5839
+ };
5840
+ content: {
5841
+ "application/json": {
5842
+ error: {
5843
+ message: string;
5844
+ code?: string;
5845
+ turnId?: string;
5846
+ communication?: components["schemas"]["AgentSessionCommunication"];
5847
+ };
5848
+ };
5849
+ };
5850
+ };
5851
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5852
+ 503: {
5853
+ headers: {
5854
+ [name: string]: unknown;
5855
+ };
5856
+ content: {
5857
+ "application/json": {
5858
+ error: {
5859
+ message: string;
5860
+ code?: string;
5861
+ turnId?: string;
5862
+ communication?: components["schemas"]["AgentSessionCommunication"];
5863
+ };
5864
+ };
5865
+ };
5866
+ };
5867
+ };
5868
+ };
5869
+ getAgentSession: {
5870
+ parameters: {
5871
+ query?: never;
5872
+ header?: never;
5873
+ path: {
5874
+ sessionId: string;
5875
+ };
5876
+ cookie?: never;
5877
+ };
5878
+ requestBody?: never;
5879
+ responses: {
5880
+ /** @description Reconciled state, including the most recent completed turn or pending approval. */
5881
+ 200: {
5882
+ headers: {
5883
+ [name: string]: unknown;
5884
+ };
5885
+ content: {
5886
+ "application/json": components["schemas"]["AgentSessionState"];
5887
+ };
5888
+ };
5889
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5890
+ 400: {
5891
+ headers: {
5892
+ [name: string]: unknown;
5893
+ };
5894
+ content: {
5895
+ "application/json": {
5896
+ error: {
5897
+ message: string;
5898
+ code?: string;
5899
+ turnId?: string;
5900
+ communication?: components["schemas"]["AgentSessionCommunication"];
5901
+ };
5902
+ };
5903
+ };
5904
+ };
5905
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5906
+ 403: {
5907
+ headers: {
5908
+ [name: string]: unknown;
5909
+ };
5910
+ content: {
5911
+ "application/json": {
5912
+ error: {
5913
+ message: string;
5914
+ code?: string;
5915
+ turnId?: string;
5916
+ communication?: components["schemas"]["AgentSessionCommunication"];
5917
+ };
5918
+ };
5919
+ };
5920
+ };
5921
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5922
+ 404: {
5923
+ headers: {
5924
+ [name: string]: unknown;
5925
+ };
5926
+ content: {
5927
+ "application/json": {
5928
+ error: {
5929
+ message: string;
5930
+ code?: string;
5931
+ turnId?: string;
5932
+ communication?: components["schemas"]["AgentSessionCommunication"];
5933
+ };
5934
+ };
5935
+ };
5936
+ };
5937
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5938
+ 409: {
5939
+ headers: {
5940
+ [name: string]: unknown;
5941
+ };
5942
+ content: {
5943
+ "application/json": {
5944
+ error: {
5945
+ message: string;
5946
+ code?: string;
5947
+ turnId?: string;
5948
+ communication?: components["schemas"]["AgentSessionCommunication"];
5949
+ };
5950
+ };
5951
+ };
5952
+ };
5953
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5954
+ 500: {
5955
+ headers: {
5956
+ [name: string]: unknown;
5957
+ };
5958
+ content: {
5959
+ "application/json": {
5960
+ error: {
5961
+ message: string;
5962
+ code?: string;
5963
+ turnId?: string;
5964
+ communication?: components["schemas"]["AgentSessionCommunication"];
5965
+ };
5966
+ };
5967
+ };
5968
+ };
5969
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5970
+ 503: {
5971
+ headers: {
5972
+ [name: string]: unknown;
5973
+ };
5974
+ content: {
5975
+ "application/json": {
5976
+ error: {
5977
+ message: string;
5978
+ code?: string;
5979
+ turnId?: string;
5980
+ communication?: components["schemas"]["AgentSessionCommunication"];
5981
+ };
5982
+ };
5983
+ };
5984
+ };
5985
+ };
5986
+ };
5987
+ getAgentOutput: {
5988
+ parameters: {
5989
+ query?: {
5990
+ after?: number | null;
5991
+ limit?: number;
5992
+ };
5993
+ header?: never;
5994
+ path: {
5995
+ sessionId: string;
5996
+ };
5997
+ cookie?: never;
5998
+ };
5999
+ requestBody?: never;
6000
+ responses: {
6001
+ /** @description Replies read in the guest; each reader keeps its own nextCursor. Unavailable while asleep. Pages contain at most 128 Ki UTF-16 code units of text; a larger individual reply is explicitly marked truncated. */
6002
+ 200: {
6003
+ headers: {
6004
+ [name: string]: unknown;
6005
+ };
6006
+ content: {
6007
+ "application/json": {
6008
+ messages: {
6009
+ seq: number;
6010
+ turnId: string | null;
6011
+ at: string;
6012
+ text: string;
6013
+ truncated: boolean;
6014
+ }[];
6015
+ nextCursor: number;
6016
+ hasMore: boolean;
6017
+ };
6018
+ };
6019
+ };
6020
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6021
+ 400: {
6022
+ headers: {
6023
+ [name: string]: unknown;
6024
+ };
6025
+ content: {
6026
+ "application/json": {
6027
+ error: {
6028
+ message: string;
6029
+ code?: string;
6030
+ turnId?: string;
6031
+ communication?: components["schemas"]["AgentSessionCommunication"];
6032
+ };
6033
+ };
6034
+ };
6035
+ };
6036
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6037
+ 403: {
6038
+ headers: {
6039
+ [name: string]: unknown;
6040
+ };
6041
+ content: {
6042
+ "application/json": {
6043
+ error: {
6044
+ message: string;
6045
+ code?: string;
6046
+ turnId?: string;
6047
+ communication?: components["schemas"]["AgentSessionCommunication"];
6048
+ };
6049
+ };
6050
+ };
6051
+ };
6052
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6053
+ 404: {
6054
+ headers: {
6055
+ [name: string]: unknown;
6056
+ };
6057
+ content: {
6058
+ "application/json": {
6059
+ error: {
6060
+ message: string;
6061
+ code?: string;
6062
+ turnId?: string;
6063
+ communication?: components["schemas"]["AgentSessionCommunication"];
6064
+ };
6065
+ };
6066
+ };
6067
+ };
6068
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6069
+ 409: {
6070
+ headers: {
6071
+ [name: string]: unknown;
6072
+ };
6073
+ content: {
6074
+ "application/json": {
6075
+ error: {
6076
+ message: string;
6077
+ code?: string;
6078
+ turnId?: string;
6079
+ communication?: components["schemas"]["AgentSessionCommunication"];
6080
+ };
6081
+ };
6082
+ };
6083
+ };
6084
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6085
+ 500: {
6086
+ headers: {
6087
+ [name: string]: unknown;
6088
+ };
6089
+ content: {
6090
+ "application/json": {
6091
+ error: {
6092
+ message: string;
6093
+ code?: string;
6094
+ turnId?: string;
6095
+ communication?: components["schemas"]["AgentSessionCommunication"];
6096
+ };
6097
+ };
6098
+ };
6099
+ };
6100
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6101
+ 503: {
6102
+ headers: {
6103
+ [name: string]: unknown;
6104
+ };
6105
+ content: {
6106
+ "application/json": {
6107
+ error: {
6108
+ message: string;
6109
+ code?: string;
6110
+ turnId?: string;
6111
+ communication?: components["schemas"]["AgentSessionCommunication"];
6112
+ };
6113
+ };
6114
+ };
6115
+ };
6116
+ };
6117
+ };
6118
+ sendAgentMessage: {
6119
+ parameters: {
6120
+ query?: never;
6121
+ header?: never;
6122
+ path: {
6123
+ sessionId: string;
6124
+ };
6125
+ cookie?: never;
6126
+ };
6127
+ requestBody: {
6128
+ content: {
6129
+ "application/json": {
6130
+ text: string;
6131
+ /** @description Reuse the same key and text to retry without creating another turn. */
6132
+ requestKey?: string;
6133
+ };
6134
+ };
6135
+ };
6136
+ responses: {
6137
+ /** @description Turn reserved and command enqueued. Poll getAgentSession and read replies with getAgentOutput. */
6138
+ 202: {
6139
+ headers: {
6140
+ [name: string]: unknown;
6141
+ };
6142
+ content: {
6143
+ "application/json": {
6144
+ turnId: string;
6145
+ /** @enum {string} */
6146
+ state: "submitted" | "working" | "input-required" | "completed" | "failed" | "canceled";
6147
+ replayed?: boolean;
6148
+ };
6149
+ };
6150
+ };
6151
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6152
+ 400: {
6153
+ headers: {
6154
+ [name: string]: unknown;
6155
+ };
6156
+ content: {
6157
+ "application/json": {
6158
+ error: {
6159
+ message: string;
6160
+ code?: string;
6161
+ turnId?: string;
6162
+ communication?: components["schemas"]["AgentSessionCommunication"];
6163
+ };
6164
+ };
6165
+ };
6166
+ };
6167
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6168
+ 403: {
6169
+ headers: {
6170
+ [name: string]: unknown;
6171
+ };
6172
+ content: {
6173
+ "application/json": {
6174
+ error: {
6175
+ message: string;
6176
+ code?: string;
6177
+ turnId?: string;
6178
+ communication?: components["schemas"]["AgentSessionCommunication"];
6179
+ };
6180
+ };
6181
+ };
6182
+ };
6183
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6184
+ 404: {
6185
+ headers: {
6186
+ [name: string]: unknown;
6187
+ };
6188
+ content: {
6189
+ "application/json": {
6190
+ error: {
6191
+ message: string;
6192
+ code?: string;
6193
+ turnId?: string;
6194
+ communication?: components["schemas"]["AgentSessionCommunication"];
6195
+ };
6196
+ };
6197
+ };
6198
+ };
6199
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6200
+ 409: {
6201
+ headers: {
6202
+ [name: string]: unknown;
6203
+ };
6204
+ content: {
6205
+ "application/json": {
6206
+ error: {
6207
+ message: string;
6208
+ code?: string;
6209
+ turnId?: string;
6210
+ communication?: components["schemas"]["AgentSessionCommunication"];
6211
+ };
6212
+ };
6213
+ };
6214
+ };
6215
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6216
+ 500: {
6217
+ headers: {
6218
+ [name: string]: unknown;
6219
+ };
6220
+ content: {
6221
+ "application/json": {
6222
+ error: {
6223
+ message: string;
6224
+ code?: string;
6225
+ turnId?: string;
6226
+ communication?: components["schemas"]["AgentSessionCommunication"];
6227
+ };
6228
+ };
6229
+ };
6230
+ };
6231
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6232
+ 503: {
6233
+ headers: {
6234
+ [name: string]: unknown;
6235
+ };
6236
+ content: {
6237
+ "application/json": {
6238
+ error: {
6239
+ message: string;
6240
+ code?: string;
6241
+ turnId?: string;
6242
+ communication?: components["schemas"]["AgentSessionCommunication"];
6243
+ };
6244
+ };
6245
+ };
6246
+ };
6247
+ };
6248
+ };
6249
+ answerAgentPrompt: {
6250
+ parameters: {
6251
+ query?: never;
6252
+ header?: never;
6253
+ path: {
6254
+ sessionId: string;
6255
+ };
6256
+ cookie?: never;
6257
+ };
6258
+ requestBody: {
6259
+ content: {
6260
+ "application/json": {
6261
+ requestId: string | number;
6262
+ /** @enum {string} */
6263
+ decision: "accept" | "decline" | "cancel";
6264
+ };
6265
+ };
6266
+ };
6267
+ responses: {
6268
+ /** @description Decision enqueued for this exact prompt. Requires agent_session.approve. */
6269
+ 200: {
6270
+ headers: {
6271
+ [name: string]: unknown;
6272
+ };
6273
+ content: {
6274
+ "application/json": {
6275
+ accepted: boolean;
6276
+ };
6277
+ };
6278
+ };
6279
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6280
+ 400: {
6281
+ headers: {
6282
+ [name: string]: unknown;
6283
+ };
6284
+ content: {
6285
+ "application/json": {
6286
+ error: {
6287
+ message: string;
6288
+ code?: string;
6289
+ turnId?: string;
6290
+ communication?: components["schemas"]["AgentSessionCommunication"];
6291
+ };
6292
+ };
6293
+ };
6294
+ };
6295
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6296
+ 403: {
6297
+ headers: {
6298
+ [name: string]: unknown;
6299
+ };
6300
+ content: {
6301
+ "application/json": {
6302
+ error: {
6303
+ message: string;
6304
+ code?: string;
6305
+ turnId?: string;
6306
+ communication?: components["schemas"]["AgentSessionCommunication"];
6307
+ };
6308
+ };
6309
+ };
6310
+ };
6311
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6312
+ 404: {
6313
+ headers: {
6314
+ [name: string]: unknown;
6315
+ };
6316
+ content: {
6317
+ "application/json": {
6318
+ error: {
6319
+ message: string;
6320
+ code?: string;
6321
+ turnId?: string;
6322
+ communication?: components["schemas"]["AgentSessionCommunication"];
6323
+ };
6324
+ };
6325
+ };
6326
+ };
6327
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6328
+ 409: {
6329
+ headers: {
6330
+ [name: string]: unknown;
6331
+ };
6332
+ content: {
6333
+ "application/json": {
6334
+ error: {
6335
+ message: string;
6336
+ code?: string;
6337
+ turnId?: string;
6338
+ communication?: components["schemas"]["AgentSessionCommunication"];
6339
+ };
6340
+ };
6341
+ };
6342
+ };
6343
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6344
+ 500: {
6345
+ headers: {
6346
+ [name: string]: unknown;
6347
+ };
6348
+ content: {
6349
+ "application/json": {
6350
+ error: {
6351
+ message: string;
6352
+ code?: string;
6353
+ turnId?: string;
6354
+ communication?: components["schemas"]["AgentSessionCommunication"];
6355
+ };
6356
+ };
6357
+ };
6358
+ };
6359
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6360
+ 503: {
6361
+ headers: {
6362
+ [name: string]: unknown;
6363
+ };
6364
+ content: {
6365
+ "application/json": {
6366
+ error: {
6367
+ message: string;
6368
+ code?: string;
6369
+ turnId?: string;
6370
+ communication?: components["schemas"]["AgentSessionCommunication"];
6371
+ };
6372
+ };
6373
+ };
6374
+ };
6375
+ };
6376
+ };
6377
+ interruptAgentTurn: {
6378
+ parameters: {
6379
+ query?: never;
6380
+ header?: never;
6381
+ path: {
6382
+ sessionId: string;
6383
+ };
6384
+ cookie?: never;
6385
+ };
6386
+ requestBody?: never;
6387
+ responses: {
6388
+ /** @description Interrupt requested. Requires agent_session.send. */
6389
+ 200: {
6390
+ headers: {
6391
+ [name: string]: unknown;
6392
+ };
6393
+ content: {
6394
+ "application/json": {
6395
+ accepted: boolean;
6396
+ };
6397
+ };
6398
+ };
6399
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6400
+ 400: {
6401
+ headers: {
6402
+ [name: string]: unknown;
6403
+ };
6404
+ content: {
6405
+ "application/json": {
6406
+ error: {
6407
+ message: string;
6408
+ code?: string;
6409
+ turnId?: string;
6410
+ communication?: components["schemas"]["AgentSessionCommunication"];
6411
+ };
6412
+ };
6413
+ };
6414
+ };
6415
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6416
+ 403: {
6417
+ headers: {
6418
+ [name: string]: unknown;
6419
+ };
6420
+ content: {
6421
+ "application/json": {
6422
+ error: {
6423
+ message: string;
6424
+ code?: string;
6425
+ turnId?: string;
6426
+ communication?: components["schemas"]["AgentSessionCommunication"];
6427
+ };
6428
+ };
6429
+ };
6430
+ };
6431
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6432
+ 404: {
6433
+ headers: {
6434
+ [name: string]: unknown;
6435
+ };
6436
+ content: {
6437
+ "application/json": {
6438
+ error: {
6439
+ message: string;
6440
+ code?: string;
6441
+ turnId?: string;
6442
+ communication?: components["schemas"]["AgentSessionCommunication"];
6443
+ };
6444
+ };
6445
+ };
6446
+ };
6447
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6448
+ 409: {
6449
+ headers: {
6450
+ [name: string]: unknown;
6451
+ };
6452
+ content: {
6453
+ "application/json": {
6454
+ error: {
6455
+ message: string;
6456
+ code?: string;
6457
+ turnId?: string;
6458
+ communication?: components["schemas"]["AgentSessionCommunication"];
6459
+ };
6460
+ };
6461
+ };
6462
+ };
6463
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6464
+ 500: {
6465
+ headers: {
6466
+ [name: string]: unknown;
6467
+ };
6468
+ content: {
6469
+ "application/json": {
6470
+ error: {
6471
+ message: string;
6472
+ code?: string;
6473
+ turnId?: string;
6474
+ communication?: components["schemas"]["AgentSessionCommunication"];
6475
+ };
6476
+ };
6477
+ };
6478
+ };
6479
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6480
+ 503: {
6481
+ headers: {
6482
+ [name: string]: unknown;
6483
+ };
6484
+ content: {
6485
+ "application/json": {
6486
+ error: {
6487
+ message: string;
6488
+ code?: string;
6489
+ turnId?: string;
6490
+ communication?: components["schemas"]["AgentSessionCommunication"];
6491
+ };
6492
+ };
6493
+ };
6494
+ };
6495
+ };
6496
+ };
6497
+ recoverAgentSession: {
6498
+ parameters: {
6499
+ query?: never;
6500
+ header?: never;
6501
+ path: {
6502
+ sessionId: string;
6503
+ };
6504
+ cookie?: never;
6505
+ };
6506
+ requestBody?: never;
6507
+ responses: {
6508
+ /** @description Saved conversation resumed. */
6509
+ 200: {
6510
+ headers: {
6511
+ [name: string]: unknown;
6512
+ };
6513
+ content: {
6514
+ "application/json": components["schemas"]["AgentSessionState"];
6515
+ };
6516
+ };
6517
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6518
+ 400: {
6519
+ headers: {
6520
+ [name: string]: unknown;
6521
+ };
6522
+ content: {
6523
+ "application/json": {
6524
+ error: {
6525
+ message: string;
6526
+ code?: string;
6527
+ turnId?: string;
6528
+ communication?: components["schemas"]["AgentSessionCommunication"];
6529
+ };
6530
+ };
6531
+ };
6532
+ };
6533
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6534
+ 403: {
6535
+ headers: {
6536
+ [name: string]: unknown;
6537
+ };
6538
+ content: {
6539
+ "application/json": {
6540
+ error: {
6541
+ message: string;
6542
+ code?: string;
6543
+ turnId?: string;
6544
+ communication?: components["schemas"]["AgentSessionCommunication"];
6545
+ };
6546
+ };
6547
+ };
6548
+ };
6549
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6550
+ 404: {
6551
+ headers: {
6552
+ [name: string]: unknown;
6553
+ };
6554
+ content: {
6555
+ "application/json": {
6556
+ error: {
6557
+ message: string;
6558
+ code?: string;
6559
+ turnId?: string;
6560
+ communication?: components["schemas"]["AgentSessionCommunication"];
6561
+ };
6562
+ };
6563
+ };
6564
+ };
6565
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6566
+ 409: {
6567
+ headers: {
6568
+ [name: string]: unknown;
6569
+ };
6570
+ content: {
6571
+ "application/json": {
6572
+ error: {
6573
+ message: string;
6574
+ code?: string;
6575
+ turnId?: string;
6576
+ communication?: components["schemas"]["AgentSessionCommunication"];
6577
+ };
6578
+ };
6579
+ };
6580
+ };
6581
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6582
+ 500: {
6583
+ headers: {
6584
+ [name: string]: unknown;
6585
+ };
6586
+ content: {
6587
+ "application/json": {
6588
+ error: {
6589
+ message: string;
6590
+ code?: string;
6591
+ turnId?: string;
6592
+ communication?: components["schemas"]["AgentSessionCommunication"];
6593
+ };
6594
+ };
6595
+ };
6596
+ };
6597
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6598
+ 503: {
6599
+ headers: {
6600
+ [name: string]: unknown;
6601
+ };
6602
+ content: {
6603
+ "application/json": {
6604
+ error: {
6605
+ message: string;
6606
+ code?: string;
6607
+ turnId?: string;
6608
+ communication?: components["schemas"]["AgentSessionCommunication"];
6609
+ };
6610
+ };
6611
+ };
6612
+ };
6613
+ };
6614
+ };
4216
6615
  }
4217
6616
  //# sourceMappingURL=schema.d.ts.map