@boatdev/sdk 1.9.9 → 1.11.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 (179) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/dist/apis/BoatApi.d.ts +144 -18
  3. package/dist/apis/BoatApi.js +305 -22
  4. package/dist/esm/apis/BoatApi.d.ts +144 -18
  5. package/dist/esm/apis/BoatApi.js +304 -21
  6. package/dist/esm/models/CreateSandboxRequest.d.ts +9 -3
  7. package/dist/esm/models/CreateSandboxRequest.js +2 -0
  8. package/dist/esm/models/CreateSandboxResponse.d.ts +6 -0
  9. package/dist/esm/models/CreateSandboxResponse.js +2 -0
  10. package/dist/esm/models/CreateScopedApiKeyRequest.d.ts +1 -1
  11. package/dist/esm/models/CredentialId.d.ts +3 -0
  12. package/dist/esm/models/CredentialId.js +3 -0
  13. package/dist/esm/models/CredentialProfile.d.ts +7 -0
  14. package/dist/esm/models/CredentialProfile.js +3 -0
  15. package/dist/esm/models/DeletionOperation.d.ts +1 -1
  16. package/dist/esm/models/LimitsFields.d.ts +1 -1
  17. package/dist/esm/models/LimitsResponse.d.ts +1 -1
  18. package/dist/esm/models/MeResponseAllOfUser.d.ts +1 -0
  19. package/dist/esm/models/MeResponseAllOfUser.js +1 -0
  20. package/dist/esm/models/ResourceAccess.d.ts +38 -0
  21. package/dist/esm/models/ResourceAccess.js +47 -0
  22. package/dist/esm/models/ResourceAccessUpdate.d.ts +38 -0
  23. package/dist/esm/models/ResourceAccessUpdate.js +45 -0
  24. package/dist/esm/models/ResumeRequest.d.ts +1 -1
  25. package/dist/esm/models/Sandbox.d.ts +35 -1
  26. package/dist/esm/models/Sandbox.js +17 -0
  27. package/dist/esm/models/SandboxCost.d.ts +44 -0
  28. package/dist/esm/models/SandboxCost.js +51 -0
  29. package/dist/esm/models/SandboxEnvironment.d.ts +7 -0
  30. package/dist/esm/models/SandboxEnvironment.js +3 -0
  31. package/dist/esm/models/SandboxLastReboot.d.ts +47 -0
  32. package/dist/esm/models/SandboxLastReboot.js +51 -0
  33. package/dist/esm/models/SandboxListResponse.d.ts +7 -0
  34. package/dist/esm/models/SandboxListResponse.js +3 -0
  35. package/dist/esm/models/SandboxListResponseAllOfDeletedCost.d.ts +44 -0
  36. package/dist/esm/models/SandboxListResponseAllOfDeletedCost.js +51 -0
  37. package/dist/esm/models/SavedSnapshot.d.ts +83 -0
  38. package/dist/esm/models/SavedSnapshot.js +71 -0
  39. package/dist/esm/models/SavedSnapshotAllowance.d.ts +81 -0
  40. package/dist/esm/models/SavedSnapshotAllowance.js +57 -0
  41. package/dist/esm/models/SavedSnapshotDeletedResponse.d.ts +64 -0
  42. package/dist/esm/models/SavedSnapshotDeletedResponse.js +67 -0
  43. package/dist/esm/models/SavedSnapshotInfoResponse.d.ts +52 -0
  44. package/dist/esm/models/SavedSnapshotInfoResponse.js +58 -0
  45. package/dist/esm/models/SavedSnapshotListResponse.d.ts +59 -0
  46. package/dist/esm/models/SavedSnapshotListResponse.js +61 -0
  47. package/dist/esm/models/SavedSnapshotSaveRequest.d.ts +38 -0
  48. package/dist/esm/models/SavedSnapshotSaveRequest.js +47 -0
  49. package/dist/esm/models/SavedSnapshotSavingResponse.d.ts +65 -0
  50. package/dist/esm/models/SavedSnapshotSavingResponse.js +68 -0
  51. package/dist/esm/models/SnapshotSummary.d.ts +1 -1
  52. package/dist/esm/models/Unshare200Response.d.ts +39 -0
  53. package/dist/esm/models/Unshare200Response.js +44 -0
  54. package/dist/esm/models/UpdateCredentialProfileRequest.d.ts +7 -0
  55. package/dist/esm/models/UpdateCredentialProfileRequest.js +3 -0
  56. package/dist/esm/models/UpdateOrganization200Response.d.ts +50 -0
  57. package/dist/esm/models/UpdateOrganization200Response.js +47 -0
  58. package/dist/esm/models/UpdateOrganizationRequest.d.ts +32 -0
  59. package/dist/esm/models/UpdateOrganizationRequest.js +43 -0
  60. package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +7 -0
  61. package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +3 -0
  62. package/dist/esm/models/index.d.ts +15 -0
  63. package/dist/esm/models/index.js +15 -0
  64. package/dist/models/CreateSandboxRequest.d.ts +9 -3
  65. package/dist/models/CreateSandboxRequest.js +2 -0
  66. package/dist/models/CreateSandboxResponse.d.ts +6 -0
  67. package/dist/models/CreateSandboxResponse.js +2 -0
  68. package/dist/models/CreateScopedApiKeyRequest.d.ts +1 -1
  69. package/dist/models/CredentialId.d.ts +3 -0
  70. package/dist/models/CredentialId.js +3 -0
  71. package/dist/models/CredentialProfile.d.ts +7 -0
  72. package/dist/models/CredentialProfile.js +3 -0
  73. package/dist/models/DeletionOperation.d.ts +1 -1
  74. package/dist/models/LimitsFields.d.ts +1 -1
  75. package/dist/models/LimitsResponse.d.ts +1 -1
  76. package/dist/models/MeResponseAllOfUser.d.ts +1 -0
  77. package/dist/models/MeResponseAllOfUser.js +1 -0
  78. package/dist/models/ResourceAccess.d.ts +38 -0
  79. package/dist/models/ResourceAccess.js +54 -0
  80. package/dist/models/ResourceAccessUpdate.d.ts +38 -0
  81. package/dist/models/ResourceAccessUpdate.js +52 -0
  82. package/dist/models/ResumeRequest.d.ts +1 -1
  83. package/dist/models/Sandbox.d.ts +35 -1
  84. package/dist/models/Sandbox.js +18 -1
  85. package/dist/models/SandboxCost.d.ts +44 -0
  86. package/dist/models/SandboxCost.js +58 -0
  87. package/dist/models/SandboxEnvironment.d.ts +7 -0
  88. package/dist/models/SandboxEnvironment.js +3 -0
  89. package/dist/models/SandboxLastReboot.d.ts +47 -0
  90. package/dist/models/SandboxLastReboot.js +59 -0
  91. package/dist/models/SandboxListResponse.d.ts +7 -0
  92. package/dist/models/SandboxListResponse.js +3 -0
  93. package/dist/models/SandboxListResponseAllOfDeletedCost.d.ts +44 -0
  94. package/dist/models/SandboxListResponseAllOfDeletedCost.js +58 -0
  95. package/dist/models/SavedSnapshot.d.ts +83 -0
  96. package/dist/models/SavedSnapshot.js +79 -0
  97. package/dist/models/SavedSnapshotAllowance.d.ts +81 -0
  98. package/dist/models/SavedSnapshotAllowance.js +64 -0
  99. package/dist/models/SavedSnapshotDeletedResponse.d.ts +64 -0
  100. package/dist/models/SavedSnapshotDeletedResponse.js +75 -0
  101. package/dist/models/SavedSnapshotInfoResponse.d.ts +52 -0
  102. package/dist/models/SavedSnapshotInfoResponse.js +66 -0
  103. package/dist/models/SavedSnapshotListResponse.d.ts +59 -0
  104. package/dist/models/SavedSnapshotListResponse.js +69 -0
  105. package/dist/models/SavedSnapshotSaveRequest.d.ts +38 -0
  106. package/dist/models/SavedSnapshotSaveRequest.js +54 -0
  107. package/dist/models/SavedSnapshotSavingResponse.d.ts +65 -0
  108. package/dist/models/SavedSnapshotSavingResponse.js +76 -0
  109. package/dist/models/SnapshotSummary.d.ts +1 -1
  110. package/dist/models/Unshare200Response.d.ts +39 -0
  111. package/dist/models/Unshare200Response.js +51 -0
  112. package/dist/models/UpdateCredentialProfileRequest.d.ts +7 -0
  113. package/dist/models/UpdateCredentialProfileRequest.js +3 -0
  114. package/dist/models/UpdateOrganization200Response.d.ts +50 -0
  115. package/dist/models/UpdateOrganization200Response.js +54 -0
  116. package/dist/models/UpdateOrganizationRequest.d.ts +32 -0
  117. package/dist/models/UpdateOrganizationRequest.js +50 -0
  118. package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +7 -0
  119. package/dist/models/UpdateSandboxEnvironmentRequest.js +3 -0
  120. package/dist/models/index.d.ts +15 -0
  121. package/dist/models/index.js +15 -0
  122. package/docs/BoatApi.md +468 -19
  123. package/docs/CreateSandboxRequest.md +2 -0
  124. package/docs/CreateSandboxResponse.md +2 -0
  125. package/docs/CredentialProfile.md +2 -0
  126. package/docs/ResourceAccess.md +35 -0
  127. package/docs/ResourceAccessUpdate.md +35 -0
  128. package/docs/Sandbox.md +8 -0
  129. package/docs/SandboxCost.md +37 -0
  130. package/docs/SandboxEnvironment.md +2 -0
  131. package/docs/SandboxLastReboot.md +35 -0
  132. package/docs/SandboxListResponse.md +2 -0
  133. package/docs/SandboxListResponseAllOfDeletedCost.md +37 -0
  134. package/docs/SavedSnapshot.md +47 -0
  135. package/docs/SavedSnapshotAllowance.md +49 -0
  136. package/docs/SavedSnapshotDeletedResponse.md +38 -0
  137. package/docs/SavedSnapshotInfoResponse.md +36 -0
  138. package/docs/SavedSnapshotListResponse.md +38 -0
  139. package/docs/SavedSnapshotSaveRequest.md +34 -0
  140. package/docs/SavedSnapshotSavingResponse.md +38 -0
  141. package/docs/Unshare200Response.md +34 -0
  142. package/docs/UpdateCredentialProfileRequest.md +2 -0
  143. package/docs/UpdateOrganization200Response.md +38 -0
  144. package/docs/UpdateOrganizationRequest.md +32 -0
  145. package/docs/UpdateSandboxEnvironmentRequest.md +2 -0
  146. package/package.json +1 -1
  147. package/src/apis/BoatApi.ts +440 -21
  148. package/src/models/CreateSandboxRequest.ts +11 -3
  149. package/src/models/CreateSandboxResponse.ts +8 -0
  150. package/src/models/CreateScopedApiKeyRequest.ts +1 -1
  151. package/src/models/CredentialId.ts +3 -0
  152. package/src/models/CredentialProfile.ts +15 -0
  153. package/src/models/DeletionOperation.ts +1 -1
  154. package/src/models/LimitsFields.ts +1 -1
  155. package/src/models/LimitsResponse.ts +1 -1
  156. package/src/models/MeResponseAllOfUser.ts +1 -0
  157. package/src/models/ResourceAccess.ts +75 -0
  158. package/src/models/ResourceAccessUpdate.ts +74 -0
  159. package/src/models/ResumeRequest.ts +1 -1
  160. package/src/models/Sandbox.ts +56 -1
  161. package/src/models/SandboxCost.ts +84 -0
  162. package/src/models/SandboxEnvironment.ts +15 -0
  163. package/src/models/SandboxLastReboot.ts +85 -0
  164. package/src/models/SandboxListResponse.ts +15 -0
  165. package/src/models/SandboxListResponseAllOfDeletedCost.ts +84 -0
  166. package/src/models/SavedSnapshot.ts +137 -0
  167. package/src/models/SavedSnapshotAllowance.ts +130 -0
  168. package/src/models/SavedSnapshotDeletedResponse.ts +111 -0
  169. package/src/models/SavedSnapshotInfoResponse.ts +102 -0
  170. package/src/models/SavedSnapshotListResponse.ts +117 -0
  171. package/src/models/SavedSnapshotSaveRequest.ts +75 -0
  172. package/src/models/SavedSnapshotSavingResponse.ts +119 -0
  173. package/src/models/SnapshotSummary.ts +1 -1
  174. package/src/models/Unshare200Response.ts +81 -0
  175. package/src/models/UpdateCredentialProfileRequest.ts +16 -0
  176. package/src/models/UpdateOrganization200Response.ts +89 -0
  177. package/src/models/UpdateOrganizationRequest.ts +66 -0
  178. package/src/models/UpdateSandboxEnvironmentRequest.ts +15 -0
  179. package/src/models/index.ts +15 -0
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the UpdateOrganization200Response interface.
16
+ */
17
+ export function instanceOfUpdateOrganization200Response(value) {
18
+ return true;
19
+ }
20
+ export function UpdateOrganization200ResponseFromJSON(json) {
21
+ return UpdateOrganization200ResponseFromJSONTyped(json, false);
22
+ }
23
+ export function UpdateOrganization200ResponseFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'ok': json['ok'] == null ? undefined : json['ok'],
29
+ 'type': json['type'] == null ? undefined : json['type'],
30
+ 'success': json['success'] == null ? undefined : json['success'],
31
+ 'newSandboxesPrivate': json['newSandboxesPrivate'] == null ? undefined : json['newSandboxesPrivate'],
32
+ };
33
+ }
34
+ export function UpdateOrganization200ResponseToJSON(json) {
35
+ return UpdateOrganization200ResponseToJSONTyped(json, false);
36
+ }
37
+ export function UpdateOrganization200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'ok': value['ok'],
43
+ 'type': value['type'],
44
+ 'success': value['success'],
45
+ 'newSandboxesPrivate': value['newSandboxesPrivate'],
46
+ };
47
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateOrganizationRequest
16
+ */
17
+ export interface UpdateOrganizationRequest {
18
+ /**
19
+ * True = new sandboxes start private. False = they start shared.
20
+ * @type {boolean}
21
+ * @memberof UpdateOrganizationRequest
22
+ */
23
+ newSandboxesPrivate: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateOrganizationRequest interface.
27
+ */
28
+ export declare function instanceOfUpdateOrganizationRequest(value: object): value is UpdateOrganizationRequest;
29
+ export declare function UpdateOrganizationRequestFromJSON(json: any): UpdateOrganizationRequest;
30
+ export declare function UpdateOrganizationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrganizationRequest;
31
+ export declare function UpdateOrganizationRequestToJSON(json: any): UpdateOrganizationRequest;
32
+ export declare function UpdateOrganizationRequestToJSONTyped(value?: UpdateOrganizationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the UpdateOrganizationRequest interface.
16
+ */
17
+ export function instanceOfUpdateOrganizationRequest(value) {
18
+ if (!('newSandboxesPrivate' in value) || value['newSandboxesPrivate'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function UpdateOrganizationRequestFromJSON(json) {
23
+ return UpdateOrganizationRequestFromJSONTyped(json, false);
24
+ }
25
+ export function UpdateOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'newSandboxesPrivate': json['newSandboxesPrivate'],
31
+ };
32
+ }
33
+ export function UpdateOrganizationRequestToJSON(json) {
34
+ return UpdateOrganizationRequestToJSONTyped(json, false);
35
+ }
36
+ export function UpdateOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'newSandboxesPrivate': value['newSandboxesPrivate'],
42
+ };
43
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { UpdateSandboxEnvironmentRequestRepositoriesInner } from './UpdateSandboxEnvironmentRequestRepositoriesInner';
13
+ import type { ResourceAccessUpdate } from './ResourceAccessUpdate';
13
14
  import type { SecretFile } from './SecretFile';
14
15
  /**
15
16
  * Rename, set-default, and/or edit flags and contents. Any flag or content change mints a new immutable version; existing sandboxes are not touched until you call upgrade.
@@ -71,6 +72,12 @@ export interface UpdateSandboxEnvironmentRequest {
71
72
  * @memberof UpdateSandboxEnvironmentRequest
72
73
  */
73
74
  proxyAiCredentials?: boolean;
75
+ /**
76
+ *
77
+ * @type {ResourceAccessUpdate}
78
+ * @memberof UpdateSandboxEnvironmentRequest
79
+ */
80
+ access?: ResourceAccessUpdate;
74
81
  /**
75
82
  * Full .env-style content for the new version.
76
83
  * @type {string}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { UpdateSandboxEnvironmentRequestRepositoriesInnerFromJSON, UpdateSandboxEnvironmentRequestRepositoriesInnerToJSON, } from './UpdateSandboxEnvironmentRequestRepositoriesInner';
15
+ import { ResourceAccessUpdateFromJSON, ResourceAccessUpdateToJSON, } from './ResourceAccessUpdate';
15
16
  import { SecretFileFromJSON, SecretFileToJSON, } from './SecretFile';
16
17
  /**
17
18
  * Check if a given object implements the UpdateSandboxEnvironmentRequest interface.
@@ -36,6 +37,7 @@ export function UpdateSandboxEnvironmentRequestFromJSONTyped(json, ignoreDiscrim
36
37
  'passAgentsCredentials': json['passAgentsCredentials'] == null ? undefined : json['passAgentsCredentials'],
37
38
  'credentialProfileId': json['credentialProfileId'] == null ? undefined : json['credentialProfileId'],
38
39
  'proxyAiCredentials': json['proxyAiCredentials'] == null ? undefined : json['proxyAiCredentials'],
40
+ 'access': json['access'] == null ? undefined : ResourceAccessUpdateFromJSON(json['access']),
39
41
  'envContents': json['envContents'] == null ? undefined : json['envContents'],
40
42
  'secretFiles': json['secretFiles'] == null ? undefined : (json['secretFiles'].map(SecretFileFromJSON)),
41
43
  'repositories': json['repositories'] == null ? undefined : (json['repositories'].map(UpdateSandboxEnvironmentRequestRepositoriesInnerFromJSON)),
@@ -58,6 +60,7 @@ export function UpdateSandboxEnvironmentRequestToJSONTyped(value, ignoreDiscrimi
58
60
  'passAgentsCredentials': value['passAgentsCredentials'],
59
61
  'credentialProfileId': value['credentialProfileId'],
60
62
  'proxyAiCredentials': value['proxyAiCredentials'],
63
+ 'access': ResourceAccessUpdateToJSON(value['access']),
61
64
  'envContents': value['envContents'],
62
65
  'secretFiles': value['secretFiles'] == null ? undefined : (value['secretFiles'].map(SecretFileToJSON)),
63
66
  'repositories': value['repositories'] == null ? undefined : (value['repositories'].map(UpdateSandboxEnvironmentRequestRepositoriesInnerToJSON)),
@@ -108,6 +108,8 @@ export * from './RepoSelectionResponse';
108
108
  export * from './ReposResponse';
109
109
  export * from './Repository';
110
110
  export * from './RepositoryInstallation';
111
+ export * from './ResourceAccess';
112
+ export * from './ResourceAccessUpdate';
111
113
  export * from './ResponseEvent';
112
114
  export * from './ResponseEventData';
113
115
  export * from './ResumeRequest';
@@ -117,6 +119,7 @@ export * from './SandboxActionResponse';
117
119
  export * from './SandboxAiAccessResponse';
118
120
  export * from './SandboxAiUsage';
119
121
  export * from './SandboxAiUsageResponse';
122
+ export * from './SandboxCost';
120
123
  export * from './SandboxEnvironment';
121
124
  export * from './SandboxEnvironmentListResponse';
122
125
  export * from './SandboxEnvironmentResponse';
@@ -124,10 +127,19 @@ export * from './SandboxEnvironmentVersionSummary';
124
127
  export * from './SandboxEvent';
125
128
  export * from './SandboxHydration';
126
129
  export * from './SandboxInfoResponse';
130
+ export * from './SandboxLastReboot';
127
131
  export * from './SandboxListResponse';
132
+ export * from './SandboxListResponseAllOfDeletedCost';
128
133
  export * from './SandboxProcess';
129
134
  export * from './SandboxTeam';
130
135
  export * from './SandboxUsageResponse';
136
+ export * from './SavedSnapshot';
137
+ export * from './SavedSnapshotAllowance';
138
+ export * from './SavedSnapshotDeletedResponse';
139
+ export * from './SavedSnapshotInfoResponse';
140
+ export * from './SavedSnapshotListResponse';
141
+ export * from './SavedSnapshotSaveRequest';
142
+ export * from './SavedSnapshotSavingResponse';
131
143
  export * from './SecretFile';
132
144
  export * from './SecretsResponse';
133
145
  export * from './SecretsUpdateRequest';
@@ -164,8 +176,11 @@ export * from './TelemetrySetRequest';
164
176
  export * from './TelemetrySetResponse';
165
177
  export * from './TelemetryTestResult';
166
178
  export * from './UnknownEvent';
179
+ export * from './Unshare200Response';
167
180
  export * from './UpdateAiProxyRequest';
168
181
  export * from './UpdateCredentialProfileRequest';
182
+ export * from './UpdateOrganization200Response';
183
+ export * from './UpdateOrganizationRequest';
169
184
  export * from './UpdateSandboxEnvironmentRequest';
170
185
  export * from './UpdateSandboxEnvironmentRequestRepositoriesInner';
171
186
  export * from './UpdateSandboxRequest';
@@ -110,6 +110,8 @@ export * from './RepoSelectionResponse';
110
110
  export * from './ReposResponse';
111
111
  export * from './Repository';
112
112
  export * from './RepositoryInstallation';
113
+ export * from './ResourceAccess';
114
+ export * from './ResourceAccessUpdate';
113
115
  export * from './ResponseEvent';
114
116
  export * from './ResponseEventData';
115
117
  export * from './ResumeRequest';
@@ -119,6 +121,7 @@ export * from './SandboxActionResponse';
119
121
  export * from './SandboxAiAccessResponse';
120
122
  export * from './SandboxAiUsage';
121
123
  export * from './SandboxAiUsageResponse';
124
+ export * from './SandboxCost';
122
125
  export * from './SandboxEnvironment';
123
126
  export * from './SandboxEnvironmentListResponse';
124
127
  export * from './SandboxEnvironmentResponse';
@@ -126,10 +129,19 @@ export * from './SandboxEnvironmentVersionSummary';
126
129
  export * from './SandboxEvent';
127
130
  export * from './SandboxHydration';
128
131
  export * from './SandboxInfoResponse';
132
+ export * from './SandboxLastReboot';
129
133
  export * from './SandboxListResponse';
134
+ export * from './SandboxListResponseAllOfDeletedCost';
130
135
  export * from './SandboxProcess';
131
136
  export * from './SandboxTeam';
132
137
  export * from './SandboxUsageResponse';
138
+ export * from './SavedSnapshot';
139
+ export * from './SavedSnapshotAllowance';
140
+ export * from './SavedSnapshotDeletedResponse';
141
+ export * from './SavedSnapshotInfoResponse';
142
+ export * from './SavedSnapshotListResponse';
143
+ export * from './SavedSnapshotSaveRequest';
144
+ export * from './SavedSnapshotSavingResponse';
133
145
  export * from './SecretFile';
134
146
  export * from './SecretsResponse';
135
147
  export * from './SecretsUpdateRequest';
@@ -166,8 +178,11 @@ export * from './TelemetrySetRequest';
166
178
  export * from './TelemetrySetResponse';
167
179
  export * from './TelemetryTestResult';
168
180
  export * from './UnknownEvent';
181
+ export * from './Unshare200Response';
169
182
  export * from './UpdateAiProxyRequest';
170
183
  export * from './UpdateCredentialProfileRequest';
184
+ export * from './UpdateOrganization200Response';
185
+ export * from './UpdateOrganizationRequest';
171
186
  export * from './UpdateSandboxEnvironmentRequest';
172
187
  export * from './UpdateSandboxEnvironmentRequestRepositoriesInner';
173
188
  export * from './UpdateSandboxRequest';
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface CreateSandboxRequest {
18
18
  /**
19
- * Machine size. `small` consumes machine time at half rate and `large` at twice the default rate (see the Billing guide). `xlarge` needs the $100/month plan or higher; lower plans get a 403 `machine_class_plan_required` on create, resume and fork. A fork inherits the source sandbox's type unless the fork request passes its own, and resume and fork can move a sandbox between sizes.
19
+ * Machine size. `small` consumes machine time at half rate and `large` at twice the default rate (see the Billing guide). `xlarge` needs the $100/month plan or higher, or an account access grant from an administrator. Otherwise, create, resume and fork return 403 `machine_class_plan_required`. A fork inherits the source sandbox's type unless the fork request passes its own, and resume and fork can move a sandbox between sizes.
20
20
  * @type {CreateSandboxRequestTypeEnum}
21
21
  * @memberof CreateSandboxRequest
22
22
  */
@@ -48,7 +48,7 @@ export interface CreateSandboxRequest {
48
48
  */
49
49
  noEnv?: boolean;
50
50
  /**
51
- * Pass `false` to never snapshot this sandbox. Nothing is captured in the background, so it pays no CPU or memory for it, and stopping it erases its disk the way zero data retention does. It cannot be resumed, forked, or saved as a named snapshot, and if its machine fails there is no backup to rebuild it from.
51
+ * Pass `false` to never snapshot this sandbox. Nothing is captured in the background, so it pays no CPU or memory for it, and stopping it erases its disk the way zero data retention does. It cannot be resumed, forked, or saved as a saved snapshot, and if its machine fails there is no backup to rebuild it from.
52
52
  * @type {boolean}
53
53
  * @memberof CreateSandboxRequest
54
54
  */
@@ -65,6 +65,12 @@ export interface CreateSandboxRequest {
65
65
  * @memberof CreateSandboxRequest
66
66
  */
67
67
  failFast?: boolean;
68
+ /**
69
+ * With `from`: create this many sandboxes from the saved snapshot in one request. Boat creates them together, which is faster than separate creates when you need many sandboxes at once. Start limits and the active-sandbox limit count every sandbox of the batch; if the batch does not fit, nothing is created. The answer lists all of them in `sandboxes` (and the first one in `sandbox`). Refused with 400 `count_requires_from` without `from`, and with 400 `count_with_fail_fast` together with `failFast`.
70
+ * @type {number}
71
+ * @memberof CreateSandboxRequest
72
+ */
73
+ count?: number;
68
74
  /**
69
75
  * Shell script that runs on the sandbox after it is ready. Ready means "ready to accept the user", not "setup done": the script starts in the background once provisioning completes and never blocks the sandbox becoming usable. It runs as the sandbox user (`user`, not root; `sudo` needs no password) via `bash`, with the sandbox's environment applied, and its output goes to a log file on the sandbox. Observe the outcome as `setupStatus` (pending/running/done/failed) and `setupError` on the sandbox. Rejected with a 400 `invalid_setup_script` error when it is not a string or exceeds 64KB.
70
76
  * @type {string}
@@ -84,7 +90,7 @@ export interface CreateSandboxRequest {
84
90
  */
85
91
  teamId?: string;
86
92
  /**
87
- * Create the sandbox from a named snapshot (saved with `POST /named-snapshots`, or `boat snapshot <id> <name>` in the CLI). The sandbox starts from that exact frozen state. Omitting `type` inherits the type the snapshot was saved from; env and no-env inherit from the snapshot's source sandbox unless the request passes its own, with the same rules as forking. Also accepts a share code (`bsh_...`) that another account made with `POST /named-snapshots/{name}/shares`. The new sandbox lives in and is billed to your account. It does not get the owner's per-sandbox env; your own environment applies normally. A wrong or revoked code returns `404 snapshot_not_found`.
93
+ * Create the sandbox from a saved snapshot (saved with `POST /saved-snapshots`, or `boat snapshot <id> <name>` in the CLI). The sandbox starts from that exact frozen state. Omitting `type` inherits the type the snapshot was saved from; env and no-env inherit from the snapshot's source sandbox unless the request passes its own, with the same rules as forking. Also accepts a share code (`bsh_...`) that another account made with `POST /saved-snapshots/{name}/shares`. The new sandbox lives in and is billed to your account. It does not get the owner's per-sandbox env; your own environment applies normally. A wrong or revoked code returns `404 snapshot_not_found`.
88
94
  * @type {string}
89
95
  * @memberof CreateSandboxRequest
90
96
  */
@@ -50,6 +50,7 @@ function CreateSandboxRequestFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'snapshots': json['snapshots'] == null ? undefined : json['snapshots'],
51
51
  'monitoring': json['monitoring'] == null ? undefined : json['monitoring'],
52
52
  'failFast': json['failFast'] == null ? undefined : json['failFast'],
53
+ 'count': json['count'] == null ? undefined : json['count'],
53
54
  'setupScript': json['setupScript'] == null ? undefined : json['setupScript'],
54
55
  'org': json['org'] == null ? undefined : json['org'],
55
56
  'teamId': json['teamId'] == null ? undefined : json['teamId'],
@@ -72,6 +73,7 @@ function CreateSandboxRequestToJSONTyped(value, ignoreDiscriminator = false) {
72
73
  'snapshots': value['snapshots'],
73
74
  'monitoring': value['monitoring'],
74
75
  'failFast': value['failFast'],
76
+ 'count': value['count'],
75
77
  'setupScript': value['setupScript'],
76
78
  'org': value['org'],
77
79
  'teamId': value['teamId'],
@@ -46,6 +46,12 @@ export interface CreateSandboxResponse {
46
46
  * @memberof CreateSandboxResponse
47
47
  */
48
48
  sandbox: Sandbox;
49
+ /**
50
+ * Present when the request set `count` above 1. Every sandbox of the batch, in creation order.
51
+ * @type {Array<Sandbox>}
52
+ * @memberof CreateSandboxResponse
53
+ */
54
+ sandboxes?: Array<Sandbox>;
49
55
  /**
50
56
  * Present when a fair-use cap on a gifted account shortened the requested auto-stop time.
51
57
  * @type {string}
@@ -62,6 +62,7 @@ function CreateSandboxResponseFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'status': json['status'],
63
63
  'ttlSeconds': json['ttlSeconds'],
64
64
  'sandbox': (0, Sandbox_1.SandboxFromJSON)(json['sandbox']),
65
+ 'sandboxes': json['sandboxes'] == null ? undefined : (json['sandboxes'].map(Sandbox_1.SandboxFromJSON)),
65
66
  'giftLimitNotice': json['giftLimitNotice'] == null ? undefined : json['giftLimitNotice'],
66
67
  };
67
68
  }
@@ -78,6 +79,7 @@ function CreateSandboxResponseToJSONTyped(value, ignoreDiscriminator = false) {
78
79
  'status': value['status'],
79
80
  'ttlSeconds': value['ttlSeconds'],
80
81
  'sandbox': (0, Sandbox_1.SandboxToJSON)(value['sandbox']),
82
+ 'sandboxes': value['sandboxes'] == null ? undefined : (value['sandboxes'].map(Sandbox_1.SandboxToJSON)),
81
83
  'giftLimitNotice': value['giftLimitNotice'],
82
84
  };
83
85
  }
@@ -22,7 +22,7 @@ export interface CreateScopedApiKeyRequest {
22
22
  */
23
23
  name?: string;
24
24
  /**
25
- * Duration such as 90d, 24h, or seconds. Max 365d.
25
+ * Duration such as 90d, 24h, or seconds, up to 365d; or `never` for a key that works until revoked. Default 90d.
26
26
  * @type {string}
27
27
  * @memberof CreateScopedApiKeyRequest
28
28
  */
@@ -21,10 +21,13 @@ export declare const CredentialId: {
21
21
  readonly DeepseekApiKey: 'deepseek-api-key';
22
22
  readonly MoonshotApiKey: 'moonshot-api-key';
23
23
  readonly MistralApiKey: 'mistral-api-key';
24
+ readonly XaiApiKey: 'xai-api-key';
25
+ readonly OpencodeApiKey: 'opencode-api-key';
24
26
  readonly ClaudeSubscription: 'claude-subscription';
25
27
  readonly ChatgptSubscription: 'chatgpt-subscription';
26
28
  readonly KimiSubscription: 'kimi-subscription';
27
29
  readonly MistralVibeSubscription: 'mistral-vibe-subscription';
30
+ readonly GrokSubscription: 'grok-subscription';
28
31
  readonly ClaudeBedrock: 'claude-bedrock';
29
32
  readonly CodexBedrock: 'codex-bedrock';
30
33
  };
@@ -31,10 +31,13 @@ exports.CredentialId = {
31
31
  DeepseekApiKey: 'deepseek-api-key',
32
32
  MoonshotApiKey: 'moonshot-api-key',
33
33
  MistralApiKey: 'mistral-api-key',
34
+ XaiApiKey: 'xai-api-key',
35
+ OpencodeApiKey: 'opencode-api-key',
34
36
  ClaudeSubscription: 'claude-subscription',
35
37
  ChatgptSubscription: 'chatgpt-subscription',
36
38
  KimiSubscription: 'kimi-subscription',
37
39
  MistralVibeSubscription: 'mistral-vibe-subscription',
40
+ GrokSubscription: 'grok-subscription',
38
41
  ClaudeBedrock: 'claude-bedrock',
39
42
  CodexBedrock: 'codex-bedrock'
40
43
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ResourceAccess } from './ResourceAccess';
12
13
  import type { CredentialId } from './CredentialId';
13
14
  import type { CredentialProfileOwner } from './CredentialProfileOwner';
14
15
  import type { CredentialAccount } from './CredentialAccount';
@@ -80,6 +81,12 @@ export interface CredentialProfile {
80
81
  * @memberof CredentialProfile
81
82
  */
82
83
  updatedAt: Date;
84
+ /**
85
+ *
86
+ * @type {ResourceAccess}
87
+ * @memberof CredentialProfile
88
+ */
89
+ access?: ResourceAccess;
83
90
  }
84
91
  /**
85
92
  * Check if a given object implements the CredentialProfile interface.
@@ -18,6 +18,7 @@ exports.CredentialProfileFromJSON = CredentialProfileFromJSON;
18
18
  exports.CredentialProfileFromJSONTyped = CredentialProfileFromJSONTyped;
19
19
  exports.CredentialProfileToJSON = CredentialProfileToJSON;
20
20
  exports.CredentialProfileToJSONTyped = CredentialProfileToJSONTyped;
21
+ const ResourceAccess_1 = require("./ResourceAccess");
21
22
  const CredentialId_1 = require("./CredentialId");
22
23
  const CredentialProfileOwner_1 = require("./CredentialProfileOwner");
23
24
  /**
@@ -62,6 +63,7 @@ function CredentialProfileFromJSONTyped(json, ignoreDiscriminator) {
62
63
  'customApis': json['customApis'],
63
64
  'createdAt': (new Date(json['createdAt'])),
64
65
  'updatedAt': (new Date(json['updatedAt'])),
66
+ 'access': json['access'] == null ? undefined : (0, ResourceAccess_1.ResourceAccessFromJSON)(json['access']),
65
67
  };
66
68
  }
67
69
  function CredentialProfileToJSON(json) {
@@ -82,5 +84,6 @@ function CredentialProfileToJSONTyped(value, ignoreDiscriminator = false) {
82
84
  'customApis': value['customApis'],
83
85
  'createdAt': value['createdAt'].toISOString(),
84
86
  'updatedAt': value['updatedAt'].toISOString(),
87
+ 'access': (0, ResourceAccess_1.ResourceAccessToJSON)(value['access']),
85
88
  };
86
89
  }
@@ -46,7 +46,7 @@ export interface DeletionOperation {
46
46
  */
47
47
  status: DeletionOperationStatusEnum;
48
48
  /**
49
- * What the background purge is doing. The target is already gone from every list, restore and fork once the operation exists. `waiting_for_uploads`: stored data is erased once the last upload URL issued for it expires (`expectedBy`). `retrying`: a transient fault, retried automatically. `completed`: a newer snapshot, a fork or a named snapshot made from it keeps the data it reads, until that is deleted too.
49
+ * What the background purge is doing. The target is already gone from every list, restore and fork once the operation exists. `waiting_for_uploads`: stored data is erased once the last upload URL issued for it expires (`expectedBy`). `retrying`: a transient fault, retried automatically. `completed`: a newer snapshot, a fork or a saved snapshot made from it keeps the data it reads, until that is deleted too.
50
50
  * @type {DeletionOperationStageEnum}
51
51
  * @memberof DeletionOperation
52
52
  */
@@ -261,7 +261,7 @@ export interface LimitsFields {
261
261
  */
262
262
  last24hUsageSeconds?: number;
263
263
  /**
264
- * Lifetime machine-time allowance for a trial that never paid. Null once the account has paid or has a plan.
264
+ * Lifetime Boat-time allowance for new sandboxes while the account has not paid, a plan trial included. Every charge on the wallet counts. Null once the account has paid.
265
265
  * @type {number}
266
266
  * @memberof LimitsFields
267
267
  */
@@ -272,7 +272,7 @@ export interface LimitsResponse {
272
272
  */
273
273
  last24hUsageSeconds?: number;
274
274
  /**
275
- * Lifetime machine-time allowance for a trial that never paid. Null once the account has paid or has a plan.
275
+ * Lifetime Boat-time allowance for new sandboxes while the account has not paid, a plan trial included. Every charge on the wallet counts. Null once the account has paid.
276
276
  * @type {number}
277
277
  * @memberof LimitsResponse
278
278
  */
@@ -137,6 +137,7 @@ export declare const MeResponseAllOfUserConnectionMethodEnum: {
137
137
  readonly Github: 'github';
138
138
  readonly Google: 'google';
139
139
  readonly Email: 'email';
140
+ readonly Agentid: 'agentid';
140
141
  readonly Service: 'service';
141
142
  };
142
143
  export type MeResponseAllOfUserConnectionMethodEnum = typeof MeResponseAllOfUserConnectionMethodEnum[keyof typeof MeResponseAllOfUserConnectionMethodEnum];
@@ -26,6 +26,7 @@ exports.MeResponseAllOfUserConnectionMethodEnum = {
26
26
  Github: 'github',
27
27
  Google: 'google',
28
28
  Email: 'email',
29
+ Agentid: 'agentid',
29
30
  Service: 'service'
30
31
  };
31
32
  /**
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Which organization members can use this organization environment or profile. `restricted` false means every member. `restricted` true means owners, admins and `members` only. Others do not see it in lists. Personal environments and profiles always return `restricted` false.
14
+ * @export
15
+ * @interface ResourceAccess
16
+ */
17
+ export interface ResourceAccess {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof ResourceAccess
22
+ */
23
+ restricted: boolean;
24
+ /**
25
+ * Member ids. Empty when `restricted` is false.
26
+ * @type {Array<string>}
27
+ * @memberof ResourceAccess
28
+ */
29
+ members: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ResourceAccess interface.
33
+ */
34
+ export declare function instanceOfResourceAccess(value: object): value is ResourceAccess;
35
+ export declare function ResourceAccessFromJSON(json: any): ResourceAccess;
36
+ export declare function ResourceAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceAccess;
37
+ export declare function ResourceAccessToJSON(json: any): ResourceAccess;
38
+ export declare function ResourceAccessToJSONTyped(value?: ResourceAccess | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Boat Public API v1
6
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfResourceAccess = instanceOfResourceAccess;
17
+ exports.ResourceAccessFromJSON = ResourceAccessFromJSON;
18
+ exports.ResourceAccessFromJSONTyped = ResourceAccessFromJSONTyped;
19
+ exports.ResourceAccessToJSON = ResourceAccessToJSON;
20
+ exports.ResourceAccessToJSONTyped = ResourceAccessToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ResourceAccess interface.
23
+ */
24
+ function instanceOfResourceAccess(value) {
25
+ if (!('restricted' in value) || value['restricted'] === undefined)
26
+ return false;
27
+ if (!('members' in value) || value['members'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ResourceAccessFromJSON(json) {
32
+ return ResourceAccessFromJSONTyped(json, false);
33
+ }
34
+ function ResourceAccessFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'restricted': json['restricted'],
40
+ 'members': json['members'],
41
+ };
42
+ }
43
+ function ResourceAccessToJSON(json) {
44
+ return ResourceAccessToJSONTyped(json, false);
45
+ }
46
+ function ResourceAccessToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'restricted': value['restricted'],
52
+ 'members': value['members'],
53
+ };
54
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Set who can use an organization environment (owner or admin) or profile (owner). A change does not touch running sandboxes. A bad list returns `400 invalid_access`.
14
+ * @export
15
+ * @interface ResourceAccessUpdate
16
+ */
17
+ export interface ResourceAccessUpdate {
18
+ /**
19
+ * False opens it to every member. True limits it to owners, admins and `members`.
20
+ * @type {boolean}
21
+ * @memberof ResourceAccessUpdate
22
+ */
23
+ restricted: boolean;
24
+ /**
25
+ * Member ids or emails of active members. Replaces the full list.
26
+ * @type {Array<string>}
27
+ * @memberof ResourceAccessUpdate
28
+ */
29
+ members?: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ResourceAccessUpdate interface.
33
+ */
34
+ export declare function instanceOfResourceAccessUpdate(value: object): value is ResourceAccessUpdate;
35
+ export declare function ResourceAccessUpdateFromJSON(json: any): ResourceAccessUpdate;
36
+ export declare function ResourceAccessUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceAccessUpdate;
37
+ export declare function ResourceAccessUpdateToJSON(json: any): ResourceAccessUpdate;
38
+ export declare function ResourceAccessUpdateToJSONTyped(value?: ResourceAccessUpdate | null, ignoreDiscriminator?: boolean): any;