@boatdev/sdk 1.0.0 → 1.1.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 (244) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +8 -26
  3. package/dist/apis/BoatApi.d.ts +132 -79
  4. package/dist/apis/BoatApi.js +188 -29
  5. package/dist/esm/apis/BoatApi.d.ts +132 -79
  6. package/dist/esm/apis/BoatApi.js +188 -29
  7. package/dist/esm/models/ActiveOrgResponse.d.ts +52 -0
  8. package/dist/esm/models/ActiveOrgResponse.js +58 -0
  9. package/dist/esm/models/ActiveOrgResponseAllOfActive.d.ts +52 -0
  10. package/dist/esm/models/ActiveOrgResponseAllOfActive.js +58 -0
  11. package/dist/esm/models/ActiveOrgUpdateRequest.d.ts +32 -0
  12. package/dist/esm/models/ActiveOrgUpdateRequest.js +43 -0
  13. package/dist/esm/models/CommandResponse.d.ts +6 -0
  14. package/dist/esm/models/CommandResponse.js +2 -0
  15. package/dist/esm/models/CommandStatusResponse.d.ts +6 -0
  16. package/dist/esm/models/CommandStatusResponse.js +2 -0
  17. package/dist/esm/models/CreateSandboxRequest.d.ts +2 -3
  18. package/dist/esm/models/CreateSandboxRequest.js +1 -2
  19. package/dist/esm/models/CreateSandboxResponse.d.ts +8 -1
  20. package/dist/esm/models/CreateSandboxResponse.js +4 -1
  21. package/dist/esm/models/DeletionOperation.d.ts +24 -0
  22. package/dist/esm/models/DeletionOperation.js +15 -0
  23. package/dist/esm/models/DeletionOperationListResponse.d.ts +52 -0
  24. package/dist/esm/models/DeletionOperationListResponse.js +58 -0
  25. package/dist/esm/models/ForkRequest.d.ts +1 -2
  26. package/dist/esm/models/ForkRequest.js +1 -2
  27. package/dist/esm/models/LimitsFields.d.ts +80 -0
  28. package/dist/esm/models/LimitsFields.js +28 -0
  29. package/dist/esm/models/LimitsFieldsCurrentLimits.d.ts +6 -0
  30. package/dist/esm/models/LimitsFieldsCurrentLimits.js +2 -0
  31. package/dist/esm/models/LimitsFieldsGiftLimit.d.ts +50 -0
  32. package/dist/esm/models/LimitsFieldsGiftLimit.js +47 -0
  33. package/dist/esm/models/LimitsFieldsSandboxPlanTiersInner.d.ts +80 -0
  34. package/dist/esm/models/LimitsFieldsSandboxPlanTiersInner.js +57 -0
  35. package/dist/esm/models/LimitsResponse.d.ts +80 -0
  36. package/dist/esm/models/LimitsResponse.js +28 -0
  37. package/dist/esm/models/MeResponseAllOfUser.d.ts +109 -0
  38. package/dist/esm/models/MeResponseAllOfUser.js +47 -0
  39. package/dist/esm/models/Org.d.ts +84 -0
  40. package/dist/esm/models/Org.js +79 -0
  41. package/dist/esm/models/OrgListResponse.d.ts +58 -0
  42. package/dist/esm/models/OrgListResponse.js +62 -0
  43. package/dist/esm/models/PromptEventData.d.ts +20 -0
  44. package/dist/esm/models/PromptEventData.js +8 -0
  45. package/dist/esm/models/PromptEventDataAttachmentsInner.d.ts +44 -0
  46. package/dist/esm/models/PromptEventDataAttachmentsInner.js +45 -0
  47. package/dist/esm/models/PromptEventDataCitationsInner.d.ts +50 -0
  48. package/dist/esm/models/PromptEventDataCitationsInner.js +47 -0
  49. package/dist/esm/models/RepoSelectionResponse.d.ts +6 -0
  50. package/dist/esm/models/RepoSelectionResponse.js +2 -0
  51. package/dist/esm/models/ReposResponse.d.ts +6 -0
  52. package/dist/esm/models/ReposResponse.js +2 -0
  53. package/dist/esm/models/Repository.d.ts +18 -0
  54. package/dist/esm/models/Repository.js +6 -0
  55. package/dist/esm/models/ResponseEventData.d.ts +6 -0
  56. package/dist/esm/models/ResponseEventData.js +2 -0
  57. package/dist/esm/models/ResumeRequest.d.ts +1 -2
  58. package/dist/esm/models/ResumeRequest.js +1 -2
  59. package/dist/esm/models/Sandbox.d.ts +43 -4
  60. package/dist/esm/models/Sandbox.js +21 -3
  61. package/dist/esm/models/SandboxActionResponse.d.ts +12 -0
  62. package/dist/esm/models/SandboxActionResponse.js +4 -0
  63. package/dist/esm/models/SandboxEnvironment.d.ts +12 -0
  64. package/dist/esm/models/SandboxEnvironment.js +4 -0
  65. package/dist/esm/models/SandboxEnvironmentListResponse.d.ts +26 -0
  66. package/dist/esm/models/SandboxEnvironmentListResponse.js +16 -0
  67. package/dist/esm/models/SandboxInfoResponse.d.ts +6 -0
  68. package/dist/esm/models/SandboxInfoResponse.js +2 -0
  69. package/dist/esm/models/SandboxTeam.d.ts +38 -0
  70. package/dist/esm/models/SandboxTeam.js +47 -0
  71. package/dist/esm/models/SandboxUsageResponse.d.ts +1 -2
  72. package/dist/esm/models/SandboxUsageResponse.js +1 -2
  73. package/dist/esm/models/SecretsResponse.d.ts +6 -0
  74. package/dist/esm/models/SecretsResponse.js +2 -0
  75. package/dist/esm/models/SelectedRepository.d.ts +18 -0
  76. package/dist/esm/models/SelectedRepository.js +6 -0
  77. package/dist/esm/models/SnapshotChunk.d.ts +2 -2
  78. package/dist/esm/models/SnapshotSummary.d.ts +3 -3
  79. package/dist/esm/models/SshKeyResponse.d.ts +12 -0
  80. package/dist/esm/models/SshKeyResponse.js +4 -0
  81. package/dist/esm/models/UpgradeSandboxEnvironmentResponse.d.ts +18 -0
  82. package/dist/esm/models/UpgradeSandboxEnvironmentResponse.js +6 -0
  83. package/dist/esm/models/index.d.ts +11 -0
  84. package/dist/esm/models/index.js +11 -0
  85. package/dist/esm/runtime.d.ts +8 -0
  86. package/dist/esm/runtime.js +18 -0
  87. package/dist/models/ActiveOrgResponse.d.ts +52 -0
  88. package/dist/models/ActiveOrgResponse.js +66 -0
  89. package/dist/models/ActiveOrgResponseAllOfActive.d.ts +52 -0
  90. package/dist/models/ActiveOrgResponseAllOfActive.js +66 -0
  91. package/dist/models/ActiveOrgUpdateRequest.d.ts +32 -0
  92. package/dist/models/ActiveOrgUpdateRequest.js +50 -0
  93. package/dist/models/CommandResponse.d.ts +6 -0
  94. package/dist/models/CommandResponse.js +2 -0
  95. package/dist/models/CommandStatusResponse.d.ts +6 -0
  96. package/dist/models/CommandStatusResponse.js +2 -0
  97. package/dist/models/CreateSandboxRequest.d.ts +2 -3
  98. package/dist/models/CreateSandboxRequest.js +1 -2
  99. package/dist/models/CreateSandboxResponse.d.ts +8 -1
  100. package/dist/models/CreateSandboxResponse.js +4 -1
  101. package/dist/models/DeletionOperation.d.ts +24 -0
  102. package/dist/models/DeletionOperation.js +16 -1
  103. package/dist/models/DeletionOperationListResponse.d.ts +52 -0
  104. package/dist/models/DeletionOperationListResponse.js +66 -0
  105. package/dist/models/ForkRequest.d.ts +1 -2
  106. package/dist/models/ForkRequest.js +1 -2
  107. package/dist/models/LimitsFields.d.ts +80 -0
  108. package/dist/models/LimitsFields.js +28 -0
  109. package/dist/models/LimitsFieldsCurrentLimits.d.ts +6 -0
  110. package/dist/models/LimitsFieldsCurrentLimits.js +2 -0
  111. package/dist/models/LimitsFieldsGiftLimit.d.ts +50 -0
  112. package/dist/models/LimitsFieldsGiftLimit.js +54 -0
  113. package/dist/models/LimitsFieldsSandboxPlanTiersInner.d.ts +80 -0
  114. package/dist/models/LimitsFieldsSandboxPlanTiersInner.js +64 -0
  115. package/dist/models/LimitsResponse.d.ts +80 -0
  116. package/dist/models/LimitsResponse.js +28 -0
  117. package/dist/models/MeResponseAllOfUser.d.ts +109 -0
  118. package/dist/models/MeResponseAllOfUser.js +48 -0
  119. package/dist/models/Org.d.ts +84 -0
  120. package/dist/models/Org.js +87 -0
  121. package/dist/models/OrgListResponse.d.ts +58 -0
  122. package/dist/models/OrgListResponse.js +70 -0
  123. package/dist/models/PromptEventData.d.ts +20 -0
  124. package/dist/models/PromptEventData.js +8 -0
  125. package/dist/models/PromptEventDataAttachmentsInner.d.ts +44 -0
  126. package/dist/models/PromptEventDataAttachmentsInner.js +52 -0
  127. package/dist/models/PromptEventDataCitationsInner.d.ts +50 -0
  128. package/dist/models/PromptEventDataCitationsInner.js +54 -0
  129. package/dist/models/RepoSelectionResponse.d.ts +6 -0
  130. package/dist/models/RepoSelectionResponse.js +2 -0
  131. package/dist/models/ReposResponse.d.ts +6 -0
  132. package/dist/models/ReposResponse.js +2 -0
  133. package/dist/models/Repository.d.ts +18 -0
  134. package/dist/models/Repository.js +6 -0
  135. package/dist/models/ResponseEventData.d.ts +6 -0
  136. package/dist/models/ResponseEventData.js +2 -0
  137. package/dist/models/ResumeRequest.d.ts +1 -2
  138. package/dist/models/ResumeRequest.js +1 -2
  139. package/dist/models/Sandbox.d.ts +43 -4
  140. package/dist/models/Sandbox.js +22 -4
  141. package/dist/models/SandboxActionResponse.d.ts +12 -0
  142. package/dist/models/SandboxActionResponse.js +4 -0
  143. package/dist/models/SandboxEnvironment.d.ts +12 -0
  144. package/dist/models/SandboxEnvironment.js +4 -0
  145. package/dist/models/SandboxEnvironmentListResponse.d.ts +26 -0
  146. package/dist/models/SandboxEnvironmentListResponse.js +17 -0
  147. package/dist/models/SandboxInfoResponse.d.ts +6 -0
  148. package/dist/models/SandboxInfoResponse.js +2 -0
  149. package/dist/models/SandboxTeam.d.ts +38 -0
  150. package/dist/models/SandboxTeam.js +54 -0
  151. package/dist/models/SandboxUsageResponse.d.ts +1 -2
  152. package/dist/models/SandboxUsageResponse.js +1 -2
  153. package/dist/models/SecretsResponse.d.ts +6 -0
  154. package/dist/models/SecretsResponse.js +2 -0
  155. package/dist/models/SelectedRepository.d.ts +18 -0
  156. package/dist/models/SelectedRepository.js +6 -0
  157. package/dist/models/SnapshotChunk.d.ts +2 -2
  158. package/dist/models/SnapshotSummary.d.ts +3 -3
  159. package/dist/models/SshKeyResponse.d.ts +12 -0
  160. package/dist/models/SshKeyResponse.js +4 -0
  161. package/dist/models/UpgradeSandboxEnvironmentResponse.d.ts +18 -0
  162. package/dist/models/UpgradeSandboxEnvironmentResponse.js +6 -0
  163. package/dist/models/index.d.ts +11 -0
  164. package/dist/models/index.js +11 -0
  165. package/dist/runtime.d.ts +8 -0
  166. package/dist/runtime.js +19 -0
  167. package/docs/ActiveOrgResponse.md +36 -0
  168. package/docs/ActiveOrgResponseAllOfActive.md +36 -0
  169. package/docs/ActiveOrgUpdateRequest.md +32 -0
  170. package/docs/BoatApi.md +228 -8
  171. package/docs/Command200Response.md +2 -0
  172. package/docs/CommandResponse.md +2 -0
  173. package/docs/CommandStatusResponse.md +2 -0
  174. package/docs/CreateSandboxResponse.md +2 -0
  175. package/docs/DeletionOperation.md +4 -0
  176. package/docs/DeletionOperationListResponse.md +36 -0
  177. package/docs/LimitsFields.md +26 -0
  178. package/docs/LimitsFieldsCurrentLimits.md +2 -0
  179. package/docs/LimitsFieldsGiftLimit.md +39 -0
  180. package/docs/LimitsFieldsSandboxPlanTiersInner.md +48 -0
  181. package/docs/LimitsResponse.md +26 -0
  182. package/docs/MeResponseAllOfUser.md +30 -0
  183. package/docs/Org.md +44 -0
  184. package/docs/OrgListResponse.md +38 -0
  185. package/docs/PromptEventData.md +6 -0
  186. package/docs/PromptEventDataAttachmentsInner.md +36 -0
  187. package/docs/PromptEventDataCitationsInner.md +38 -0
  188. package/docs/RepoSelectionResponse.md +2 -0
  189. package/docs/ReposResponse.md +2 -0
  190. package/docs/Repository.md +6 -0
  191. package/docs/ResponseEventData.md +2 -0
  192. package/docs/Sandbox.md +10 -0
  193. package/docs/SandboxActionResponse.md +4 -0
  194. package/docs/SandboxEnvironment.md +4 -0
  195. package/docs/SandboxEnvironmentListResponse.md +4 -0
  196. package/docs/SandboxInfoResponse.md +2 -0
  197. package/docs/SandboxTeam.md +35 -0
  198. package/docs/SecretsResponse.md +2 -0
  199. package/docs/SelectedRepository.md +6 -0
  200. package/docs/SshKeyResponse.md +4 -0
  201. package/docs/UpgradeSandboxEnvironmentResponse.md +6 -0
  202. package/package.json +1 -1
  203. package/src/apis/BoatApi.ts +304 -79
  204. package/src/models/ActiveOrgResponse.ts +102 -0
  205. package/src/models/ActiveOrgResponseAllOfActive.ts +95 -0
  206. package/src/models/ActiveOrgUpdateRequest.ts +66 -0
  207. package/src/models/CommandResponse.ts +8 -0
  208. package/src/models/CommandStatusResponse.ts +8 -0
  209. package/src/models/CreateSandboxRequest.ts +3 -4
  210. package/src/models/CreateSandboxResponse.ts +11 -2
  211. package/src/models/DeletionOperation.ts +29 -0
  212. package/src/models/DeletionOperationListResponse.ts +102 -0
  213. package/src/models/ForkRequest.ts +2 -3
  214. package/src/models/LimitsFields.ts +118 -0
  215. package/src/models/LimitsFieldsCurrentLimits.ts +8 -0
  216. package/src/models/LimitsFieldsGiftLimit.ts +89 -0
  217. package/src/models/LimitsFieldsSandboxPlanTiersInner.ts +129 -0
  218. package/src/models/LimitsResponse.ts +118 -0
  219. package/src/models/MeResponseAllOfUser.ts +143 -0
  220. package/src/models/Org.ts +139 -0
  221. package/src/models/OrgListResponse.ts +111 -0
  222. package/src/models/PromptEventData.ts +39 -0
  223. package/src/models/PromptEventDataAttachmentsInner.ts +81 -0
  224. package/src/models/PromptEventDataCitationsInner.ts +89 -0
  225. package/src/models/RepoSelectionResponse.ts +8 -0
  226. package/src/models/ReposResponse.ts +8 -0
  227. package/src/models/Repository.ts +24 -0
  228. package/src/models/ResponseEventData.ts +8 -0
  229. package/src/models/ResumeRequest.ts +2 -3
  230. package/src/models/Sandbox.ts +63 -6
  231. package/src/models/SandboxActionResponse.ts +16 -0
  232. package/src/models/SandboxEnvironment.ts +16 -0
  233. package/src/models/SandboxEnvironmentListResponse.ts +34 -0
  234. package/src/models/SandboxInfoResponse.ts +8 -0
  235. package/src/models/SandboxTeam.ts +75 -0
  236. package/src/models/SandboxUsageResponse.ts +2 -3
  237. package/src/models/SecretsResponse.ts +8 -0
  238. package/src/models/SelectedRepository.ts +24 -0
  239. package/src/models/SnapshotChunk.ts +2 -2
  240. package/src/models/SnapshotSummary.ts +3 -3
  241. package/src/models/SshKeyResponse.ts +16 -0
  242. package/src/models/UpgradeSandboxEnvironmentResponse.ts +24 -0
  243. package/src/models/index.ts +11 -0
  244. package/src/runtime.ts +23 -0
@@ -12,6 +12,8 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
+ import { ActiveOrgResponseFromJSON, } from '../models/ActiveOrgResponse';
16
+ import { ActiveOrgUpdateRequestToJSON, } from '../models/ActiveOrgUpdateRequest';
15
17
  import { AddEnvironmentRepoRequestToJSON, } from '../models/AddEnvironmentRepoRequest';
16
18
  import { ApiKeyRevokeResponseFromJSON, } from '../models/ApiKeyRevokeResponse';
17
19
  import { ApiKeySecretResponseFromJSON, } from '../models/ApiKeySecretResponse';
@@ -27,6 +29,7 @@ import { CreateSandboxResponseFromJSON, } from '../models/CreateSandboxResponse'
27
29
  import { CreateScopedApiKeyRequestToJSON, } from '../models/CreateScopedApiKeyRequest';
28
30
  import { DataRetentionPolicyResponseFromJSON, } from '../models/DataRetentionPolicyResponse';
29
31
  import { DataRetentionUpdateRequestToJSON, } from '../models/DataRetentionUpdateRequest';
32
+ import { DeletionOperationListResponseFromJSON, } from '../models/DeletionOperationListResponse';
30
33
  import { DeletionOperationResponseFromJSON, } from '../models/DeletionOperationResponse';
31
34
  import { DesktopRequestToJSON, } from '../models/DesktopRequest';
32
35
  import { DesktopResponseFromJSON, } from '../models/DesktopResponse';
@@ -45,6 +48,7 @@ import { NamedSnapshotInfoResponseFromJSON, } from '../models/NamedSnapshotInfoR
45
48
  import { NamedSnapshotListResponseFromJSON, } from '../models/NamedSnapshotListResponse';
46
49
  import { NamedSnapshotSaveRequestToJSON, } from '../models/NamedSnapshotSaveRequest';
47
50
  import { NamedSnapshotSavingResponseFromJSON, } from '../models/NamedSnapshotSavingResponse';
51
+ import { OrgListResponseFromJSON, } from '../models/OrgListResponse';
48
52
  import { PromptRequestToJSON, } from '../models/PromptRequest';
49
53
  import { PromptResponseFromJSON, } from '../models/PromptResponse';
50
54
  import { PromptRunResponseFromJSON, } from '../models/PromptRunResponse';
@@ -88,7 +92,8 @@ export class BoatApi extends runtime.BaseAPI {
88
92
  /**
89
93
  * Creates request options for addEnvironmentRepo without sending the request
90
94
  */
91
- async addEnvironmentRepoRequestOpts(requestParameters) {
95
+ async addEnvironmentRepoRequestOpts(input) {
96
+ const requestParameters = runtime.unflattenBody(input, 'addEnvironmentRepoRequest', ['environmentId'], []);
92
97
  if (requestParameters['environmentId'] == null) {
93
98
  throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling addEnvironmentRepo().');
94
99
  }
@@ -261,7 +266,8 @@ export class BoatApi extends runtime.BaseAPI {
261
266
  /**
262
267
  * Creates request options for command without sending the request
263
268
  */
264
- async commandRequestOpts(requestParameters) {
269
+ async commandRequestOpts(input) {
270
+ const requestParameters = runtime.unflattenBody(input, 'commandRequest', ['sandboxId'], []);
265
271
  if (requestParameters['sandboxId'] == null) {
266
272
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling command().');
267
273
  }
@@ -397,7 +403,8 @@ export class BoatApi extends runtime.BaseAPI {
397
403
  /**
398
404
  * Creates request options for create without sending the request
399
405
  */
400
- async createRequestOpts(requestParameters) {
406
+ async createRequestOpts(input) {
407
+ const requestParameters = runtime.unflattenBody(input, 'createSandboxRequest', ['idempotencyKey', 'org', 'xBoatOrg'], ['org']);
401
408
  const queryParameters = {};
402
409
  if (requestParameters['org'] != null) {
403
410
  queryParameters['org'] = requestParameters['org'];
@@ -446,7 +453,8 @@ export class BoatApi extends runtime.BaseAPI {
446
453
  /**
447
454
  * Creates request options for createEnvironment without sending the request
448
455
  */
449
- async createEnvironmentRequestOpts(requestParameters) {
456
+ async createEnvironmentRequestOpts(input) {
457
+ const requestParameters = runtime.unflattenBody(input, 'createSandboxEnvironmentRequest', [], []);
450
458
  if (requestParameters['createSandboxEnvironmentRequest'] == null) {
451
459
  throw new runtime.RequiredError('createSandboxEnvironmentRequest', 'Required parameter "createSandboxEnvironmentRequest" was null or undefined when calling createEnvironment().');
452
460
  }
@@ -489,7 +497,8 @@ export class BoatApi extends runtime.BaseAPI {
489
497
  /**
490
498
  * Creates request options for createScopedApiKey without sending the request
491
499
  */
492
- async createScopedApiKeyRequestOpts(requestParameters) {
500
+ async createScopedApiKeyRequestOpts(input) {
501
+ const requestParameters = runtime.unflattenBody(input, 'createScopedApiKeyRequest', [], []);
493
502
  if (requestParameters['createScopedApiKeyRequest'] == null) {
494
503
  throw new runtime.RequiredError('createScopedApiKeyRequest', 'Required parameter "createScopedApiKeyRequest" was null or undefined when calling createScopedApiKey().');
495
504
  }
@@ -532,7 +541,8 @@ export class BoatApi extends runtime.BaseAPI {
532
541
  /**
533
542
  * Creates request options for createWebhook without sending the request
534
543
  */
535
- async createWebhookRequestOpts(requestParameters) {
544
+ async createWebhookRequestOpts(input) {
545
+ const requestParameters = runtime.unflattenBody(input, 'webhookCreateRequest', [], []);
536
546
  if (requestParameters['webhookCreateRequest'] == null) {
537
547
  throw new runtime.RequiredError('webhookCreateRequest', 'Required parameter "webhookCreateRequest" was null or undefined when calling createWebhook().');
538
548
  }
@@ -844,6 +854,54 @@ export class BoatApi extends runtime.BaseAPI {
844
854
  const response = await this.deleteSandboxRaw(requestParameters, initOverrides);
845
855
  return await response.value();
846
856
  }
857
+ /**
858
+ * Creates request options for deleteSandboxSnapshots without sending the request
859
+ */
860
+ async deleteSandboxSnapshotsRequestOpts(requestParameters) {
861
+ if (requestParameters['sandboxId'] == null) {
862
+ throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling deleteSandboxSnapshots().');
863
+ }
864
+ if (requestParameters['xAsciiConfirmDelete'] == null) {
865
+ throw new runtime.RequiredError('xAsciiConfirmDelete', 'Required parameter "xAsciiConfirmDelete" was null or undefined when calling deleteSandboxSnapshots().');
866
+ }
867
+ const queryParameters = {};
868
+ const headerParameters = {};
869
+ if (requestParameters['xAsciiConfirmDelete'] != null) {
870
+ headerParameters['X-Ascii-Confirm-Delete'] = String(requestParameters['xAsciiConfirmDelete']);
871
+ }
872
+ if (this.configuration && this.configuration.accessToken) {
873
+ const token = this.configuration.accessToken;
874
+ const tokenString = await token("BoatBearerAuth", []);
875
+ if (tokenString) {
876
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
877
+ }
878
+ }
879
+ let urlPath = `/sandboxes/{sandboxId}/snapshots`;
880
+ urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
881
+ return {
882
+ path: urlPath,
883
+ method: 'DELETE',
884
+ headers: headerParameters,
885
+ query: queryParameters,
886
+ };
887
+ }
888
+ /**
889
+ * Accept irreversible deletion of every unpinned snapshot of this sandbox. The sandbox itself and its named snapshots stay. Snapshots disappear from lists, restores and forks immediately; their stored data is purged in the background. Set `X-Ascii-Confirm-Delete` to the sandbox id.
890
+ * Permanently delete all snapshots of a sandbox
891
+ */
892
+ async deleteSandboxSnapshotsRaw(requestParameters, initOverrides) {
893
+ const requestOptions = await this.deleteSandboxSnapshotsRequestOpts(requestParameters);
894
+ const response = await this.request(requestOptions, initOverrides);
895
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeletionOperationListResponseFromJSON(jsonValue));
896
+ }
897
+ /**
898
+ * Accept irreversible deletion of every unpinned snapshot of this sandbox. The sandbox itself and its named snapshots stay. Snapshots disappear from lists, restores and forks immediately; their stored data is purged in the background. Set `X-Ascii-Confirm-Delete` to the sandbox id.
899
+ * Permanently delete all snapshots of a sandbox
900
+ */
901
+ async deleteSandboxSnapshots(requestParameters, initOverrides) {
902
+ const response = await this.deleteSandboxSnapshotsRaw(requestParameters, initOverrides);
903
+ return await response.value();
904
+ }
847
905
  /**
848
906
  * Creates request options for deleteSnapshot without sending the request
849
907
  */
@@ -876,7 +934,7 @@ export class BoatApi extends runtime.BaseAPI {
876
934
  };
877
935
  }
878
936
  /**
879
- * Accept irreversible background deletion of an unpinned snapshot owned by the authenticated account. Snapshots required by another incremental snapshot or active restore return `409`. Poll the returned operation until `completed`.
937
+ * Accept irreversible deletion of an unpinned snapshot owned by the authenticated account. Any such snapshot is accepted: it disappears from lists, restores and forks immediately, and its stored data is purged in the background once nothing still reads it (see the operation\'s `stage`). `409` only means `X-Ascii-Confirm-Delete` is missing or wrong.
880
938
  * Permanently delete snapshot data
881
939
  */
882
940
  async deleteSnapshotRaw(requestParameters, initOverrides) {
@@ -885,7 +943,7 @@ export class BoatApi extends runtime.BaseAPI {
885
943
  return new runtime.JSONApiResponse(response, (jsonValue) => DeletionOperationResponseFromJSON(jsonValue));
886
944
  }
887
945
  /**
888
- * Accept irreversible background deletion of an unpinned snapshot owned by the authenticated account. Snapshots required by another incremental snapshot or active restore return `409`. Poll the returned operation until `completed`.
946
+ * Accept irreversible deletion of an unpinned snapshot owned by the authenticated account. Any such snapshot is accepted: it disappears from lists, restores and forks immediately, and its stored data is purged in the background once nothing still reads it (see the operation\'s `stage`). `409` only means `X-Ascii-Confirm-Delete` is missing or wrong.
889
947
  * Permanently delete snapshot data
890
948
  */
891
949
  async deleteSnapshot(requestParameters, initOverrides) {
@@ -937,7 +995,8 @@ export class BoatApi extends runtime.BaseAPI {
937
995
  /**
938
996
  * Creates request options for desktop without sending the request
939
997
  */
940
- async desktopRequestOpts(requestParameters) {
998
+ async desktopRequestOpts(input) {
999
+ const requestParameters = runtime.unflattenBody(input, 'desktopRequest', ['sandboxId', 'vnc', 'theme'], []);
941
1000
  if (requestParameters['sandboxId'] == null) {
942
1001
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling desktop().');
943
1002
  }
@@ -1082,7 +1141,8 @@ export class BoatApi extends runtime.BaseAPI {
1082
1141
  /**
1083
1142
  * Creates request options for fork without sending the request
1084
1143
  */
1085
- async forkRequestOpts(requestParameters) {
1144
+ async forkRequestOpts(input) {
1145
+ const requestParameters = runtime.unflattenBody(input, 'forkRequest', ['sandboxId', 'idempotencyKey'], []);
1086
1146
  if (requestParameters['sandboxId'] == null) {
1087
1147
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling fork().');
1088
1148
  }
@@ -1504,7 +1564,8 @@ export class BoatApi extends runtime.BaseAPI {
1504
1564
  /**
1505
1565
  * Creates request options for hostPort without sending the request
1506
1566
  */
1507
- async hostPortRequestOpts(requestParameters) {
1567
+ async hostPortRequestOpts(input) {
1568
+ const requestParameters = runtime.unflattenBody(input, 'hostPortRequest', ['sandboxId'], []);
1508
1569
  if (requestParameters['sandboxId'] == null) {
1509
1570
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling hostPort().');
1510
1571
  }
@@ -1624,7 +1685,7 @@ export class BoatApi extends runtime.BaseAPI {
1624
1685
  };
1625
1686
  }
1626
1687
  /**
1627
- * Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the authenticated account. Pass `org` / `X-Boat-Org` (or `teamId`) to read a team wallet you belong to.
1688
+ * Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
1628
1689
  * Get Boat limits
1629
1690
  */
1630
1691
  async limitsRaw(requestParameters, initOverrides) {
@@ -1633,7 +1694,7 @@ export class BoatApi extends runtime.BaseAPI {
1633
1694
  return new runtime.JSONApiResponse(response, (jsonValue) => LimitsResponseFromJSON(jsonValue));
1634
1695
  }
1635
1696
  /**
1636
- * Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the authenticated account. Pass `org` / `X-Boat-Org` (or `teamId`) to read a team wallet you belong to.
1697
+ * Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
1637
1698
  * Get Boat limits
1638
1699
  */
1639
1700
  async limits(requestParameters = {}, initOverrides) {
@@ -1678,6 +1739,44 @@ export class BoatApi extends runtime.BaseAPI {
1678
1739
  const response = await this.listNamedSnapshotsRaw(initOverrides);
1679
1740
  return await response.value();
1680
1741
  }
1742
+ /**
1743
+ * Creates request options for listOrganizations without sending the request
1744
+ */
1745
+ async listOrganizationsRequestOpts() {
1746
+ const queryParameters = {};
1747
+ const headerParameters = {};
1748
+ if (this.configuration && this.configuration.accessToken) {
1749
+ const token = this.configuration.accessToken;
1750
+ const tokenString = await token("BoatBearerAuth", []);
1751
+ if (tokenString) {
1752
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1753
+ }
1754
+ }
1755
+ let urlPath = `/orgs`;
1756
+ return {
1757
+ path: urlPath,
1758
+ method: 'GET',
1759
+ headers: headerParameters,
1760
+ query: queryParameters,
1761
+ };
1762
+ }
1763
+ /**
1764
+ * The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
1765
+ * List organizations
1766
+ */
1767
+ async listOrganizationsRaw(initOverrides) {
1768
+ const requestOptions = await this.listOrganizationsRequestOpts();
1769
+ const response = await this.request(requestOptions, initOverrides);
1770
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrgListResponseFromJSON(jsonValue));
1771
+ }
1772
+ /**
1773
+ * The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
1774
+ * List organizations
1775
+ */
1776
+ async listOrganizations(initOverrides) {
1777
+ const response = await this.listOrganizationsRaw(initOverrides);
1778
+ return await response.value();
1779
+ }
1681
1780
  /**
1682
1781
  * Creates request options for listSandboxSnapshots without sending the request
1683
1782
  */
@@ -1855,7 +1954,8 @@ export class BoatApi extends runtime.BaseAPI {
1855
1954
  /**
1856
1955
  * Creates request options for prompt without sending the request
1857
1956
  */
1858
- async promptRequestOpts(requestParameters) {
1957
+ async promptRequestOpts(input) {
1958
+ const requestParameters = runtime.unflattenBody(input, 'promptRequest', ['sandboxId'], []);
1859
1959
  if (requestParameters['sandboxId'] == null) {
1860
1960
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling prompt().');
1861
1961
  }
@@ -2053,7 +2153,8 @@ export class BoatApi extends runtime.BaseAPI {
2053
2153
  /**
2054
2154
  * Creates request options for resume without sending the request
2055
2155
  */
2056
- async resumeRequestOpts(requestParameters) {
2156
+ async resumeRequestOpts(input) {
2157
+ const requestParameters = runtime.unflattenBody(input, 'resumeRequest', ['sandboxId'], []);
2057
2158
  if (requestParameters['sandboxId'] == null) {
2058
2159
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling resume().');
2059
2160
  }
@@ -2269,7 +2370,8 @@ export class BoatApi extends runtime.BaseAPI {
2269
2370
  /**
2270
2371
  * Creates request options for saveNamedSnapshot without sending the request
2271
2372
  */
2272
- async saveNamedSnapshotRequestOpts(requestParameters) {
2373
+ async saveNamedSnapshotRequestOpts(input) {
2374
+ const requestParameters = runtime.unflattenBody(input, 'namedSnapshotSaveRequest', [], []);
2273
2375
  if (requestParameters['namedSnapshotSaveRequest'] == null) {
2274
2376
  throw new runtime.RequiredError('namedSnapshotSaveRequest', 'Required parameter "namedSnapshotSaveRequest" was null or undefined when calling saveNamedSnapshot().');
2275
2377
  }
@@ -2350,7 +2452,8 @@ export class BoatApi extends runtime.BaseAPI {
2350
2452
  /**
2351
2453
  * Creates request options for selectRepo without sending the request
2352
2454
  */
2353
- async selectRepoRequestOpts(requestParameters) {
2455
+ async selectRepoRequestOpts(input) {
2456
+ const requestParameters = runtime.unflattenBody(input, 'repoSelectionRequest', [], []);
2354
2457
  if (requestParameters['repoSelectionRequest'] == null) {
2355
2458
  throw new runtime.RequiredError('repoSelectionRequest', 'Required parameter "repoSelectionRequest" was null or undefined when calling selectRepo().');
2356
2459
  }
@@ -2390,10 +2493,55 @@ export class BoatApi extends runtime.BaseAPI {
2390
2493
  const response = await this.selectRepoRaw(requestParameters, initOverrides);
2391
2494
  return await response.value();
2392
2495
  }
2496
+ /**
2497
+ * Creates request options for setActiveOrganization without sending the request
2498
+ */
2499
+ async setActiveOrganizationRequestOpts(input) {
2500
+ const requestParameters = runtime.unflattenBody(input, 'activeOrgUpdateRequest', [], []);
2501
+ if (requestParameters['activeOrgUpdateRequest'] == null) {
2502
+ throw new runtime.RequiredError('activeOrgUpdateRequest', 'Required parameter "activeOrgUpdateRequest" was null or undefined when calling setActiveOrganization().');
2503
+ }
2504
+ const queryParameters = {};
2505
+ const headerParameters = {};
2506
+ headerParameters['Content-Type'] = 'application/json';
2507
+ if (this.configuration && this.configuration.accessToken) {
2508
+ const token = this.configuration.accessToken;
2509
+ const tokenString = await token("BoatBearerAuth", []);
2510
+ if (tokenString) {
2511
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2512
+ }
2513
+ }
2514
+ let urlPath = `/orgs/active`;
2515
+ return {
2516
+ path: urlPath,
2517
+ method: 'PATCH',
2518
+ headers: headerParameters,
2519
+ query: queryParameters,
2520
+ body: ActiveOrgUpdateRequestToJSON(requestParameters['activeOrgUpdateRequest']),
2521
+ };
2522
+ }
2523
+ /**
2524
+ * Set the wallet new sandboxes bill when a request names none, for this account on every client: the API, the CLI (`boat org switch` sets the same value) and the dashboard. Pass an organization id or name you belong to, or `personal` (or `null`) for your own account. `GET /limits` follows it. Sandboxes already running keep the wallet they were created with; leaving or deleting the organization resets the account to personal.
2525
+ * Set the active organization
2526
+ */
2527
+ async setActiveOrganizationRaw(requestParameters, initOverrides) {
2528
+ const requestOptions = await this.setActiveOrganizationRequestOpts(requestParameters);
2529
+ const response = await this.request(requestOptions, initOverrides);
2530
+ return new runtime.JSONApiResponse(response, (jsonValue) => ActiveOrgResponseFromJSON(jsonValue));
2531
+ }
2532
+ /**
2533
+ * Set the wallet new sandboxes bill when a request names none, for this account on every client: the API, the CLI (`boat org switch` sets the same value) and the dashboard. Pass an organization id or name you belong to, or `personal` (or `null`) for your own account. `GET /limits` follows it. Sandboxes already running keep the wallet they were created with; leaving or deleting the organization resets the account to personal.
2534
+ * Set the active organization
2535
+ */
2536
+ async setActiveOrganization(requestParameters, initOverrides) {
2537
+ const response = await this.setActiveOrganizationRaw(requestParameters, initOverrides);
2538
+ return await response.value();
2539
+ }
2393
2540
  /**
2394
2541
  * Creates request options for setEnvironmentSecretFile without sending the request
2395
2542
  */
2396
- async setEnvironmentSecretFileRequestOpts(requestParameters) {
2543
+ async setEnvironmentSecretFileRequestOpts(input) {
2544
+ const requestParameters = runtime.unflattenBody(input, 'setEnvironmentSecretFileRequest', ['environmentId'], []);
2397
2545
  if (requestParameters['environmentId'] == null) {
2398
2546
  throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling setEnvironmentSecretFile().');
2399
2547
  }
@@ -2440,7 +2588,8 @@ export class BoatApi extends runtime.BaseAPI {
2440
2588
  /**
2441
2589
  * Creates request options for setEnvironmentVar without sending the request
2442
2590
  */
2443
- async setEnvironmentVarRequestOpts(requestParameters) {
2591
+ async setEnvironmentVarRequestOpts(input) {
2592
+ const requestParameters = runtime.unflattenBody(input, 'setEnvironmentVarRequest', ['environmentId', 'key'], []);
2444
2593
  if (requestParameters['environmentId'] == null) {
2445
2594
  throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling setEnvironmentVar().');
2446
2595
  }
@@ -2491,7 +2640,8 @@ export class BoatApi extends runtime.BaseAPI {
2491
2640
  /**
2492
2641
  * Creates request options for sshKey without sending the request
2493
2642
  */
2494
- async sshKeyRequestOpts(requestParameters) {
2643
+ async sshKeyRequestOpts(input) {
2644
+ const requestParameters = runtime.unflattenBody(input, 'sshKeyRequest', ['sandboxId'], []);
2495
2645
  if (requestParameters['sandboxId'] == null) {
2496
2646
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling sshKey().');
2497
2647
  }
@@ -2538,7 +2688,8 @@ export class BoatApi extends runtime.BaseAPI {
2538
2688
  /**
2539
2689
  * Creates request options for steer without sending the request
2540
2690
  */
2541
- async steerRequestOpts(requestParameters) {
2691
+ async steerRequestOpts(input) {
2692
+ const requestParameters = runtime.unflattenBody(input, 'steerRequest', ['sandboxId', 'conversation'], ['conversation']);
2542
2693
  if (requestParameters['sandboxId'] == null) {
2543
2694
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling steer().');
2544
2695
  }
@@ -2588,7 +2739,8 @@ export class BoatApi extends runtime.BaseAPI {
2588
2739
  /**
2589
2740
  * Creates request options for stop without sending the request
2590
2741
  */
2591
- async stopRequestOpts(requestParameters) {
2742
+ async stopRequestOpts(input) {
2743
+ const requestParameters = runtime.unflattenBody(input, 'stopRequest', ['sandboxId'], []);
2592
2744
  if (requestParameters['sandboxId'] == null) {
2593
2745
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling stop().');
2594
2746
  }
@@ -2632,7 +2784,8 @@ export class BoatApi extends runtime.BaseAPI {
2632
2784
  /**
2633
2785
  * Creates request options for update without sending the request
2634
2786
  */
2635
- async updateRequestOpts(requestParameters) {
2787
+ async updateRequestOpts(input) {
2788
+ const requestParameters = runtime.unflattenBody(input, 'updateSandboxRequest', ['sandboxId'], []);
2636
2789
  if (requestParameters['sandboxId'] == null) {
2637
2790
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling update().');
2638
2791
  }
@@ -2677,7 +2830,8 @@ export class BoatApi extends runtime.BaseAPI {
2677
2830
  /**
2678
2831
  * Creates request options for updateDataRetention without sending the request
2679
2832
  */
2680
- async updateDataRetentionRequestOpts(requestParameters) {
2833
+ async updateDataRetentionRequestOpts(input) {
2834
+ const requestParameters = runtime.unflattenBody(input, 'dataRetentionUpdateRequest', [], []);
2681
2835
  if (requestParameters['dataRetentionUpdateRequest'] == null) {
2682
2836
  throw new runtime.RequiredError('dataRetentionUpdateRequest', 'Required parameter "dataRetentionUpdateRequest" was null or undefined when calling updateDataRetention().');
2683
2837
  }
@@ -2720,7 +2874,8 @@ export class BoatApi extends runtime.BaseAPI {
2720
2874
  /**
2721
2875
  * Creates request options for updateEnvironment without sending the request
2722
2876
  */
2723
- async updateEnvironmentRequestOpts(requestParameters) {
2877
+ async updateEnvironmentRequestOpts(input) {
2878
+ const requestParameters = runtime.unflattenBody(input, 'updateSandboxEnvironmentRequest', ['environmentId'], []);
2724
2879
  if (requestParameters['environmentId'] == null) {
2725
2880
  throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling updateEnvironment().');
2726
2881
  }
@@ -2767,7 +2922,8 @@ export class BoatApi extends runtime.BaseAPI {
2767
2922
  /**
2768
2923
  * Creates request options for updateSecrets without sending the request
2769
2924
  */
2770
- async updateSecretsRequestOpts(requestParameters) {
2925
+ async updateSecretsRequestOpts(input) {
2926
+ const requestParameters = runtime.unflattenBody(input, 'secretsUpdateRequest', [], []);
2771
2927
  if (requestParameters['secretsUpdateRequest'] == null) {
2772
2928
  throw new runtime.RequiredError('secretsUpdateRequest', 'Required parameter "secretsUpdateRequest" was null or undefined when calling updateSecrets().');
2773
2929
  }
@@ -2808,7 +2964,8 @@ export class BoatApi extends runtime.BaseAPI {
2808
2964
  /**
2809
2965
  * Creates request options for updateWebhook without sending the request
2810
2966
  */
2811
- async updateWebhookRequestOpts(requestParameters) {
2967
+ async updateWebhookRequestOpts(input) {
2968
+ const requestParameters = runtime.unflattenBody(input, 'webhookUpdateRequest', ['webhookId'], []);
2812
2969
  if (requestParameters['webhookId'] == null) {
2813
2970
  throw new runtime.RequiredError('webhookId', 'Required parameter "webhookId" was null or undefined when calling updateWebhook().');
2814
2971
  }
@@ -2855,7 +3012,8 @@ export class BoatApi extends runtime.BaseAPI {
2855
3012
  /**
2856
3013
  * Creates request options for upgradeEnvironment without sending the request
2857
3014
  */
2858
- async upgradeEnvironmentRequestOpts(requestParameters) {
3015
+ async upgradeEnvironmentRequestOpts(input) {
3016
+ const requestParameters = runtime.unflattenBody(input, 'upgradeSandboxEnvironmentRequest', ['environmentId'], []);
2859
3017
  if (requestParameters['environmentId'] == null) {
2860
3018
  throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling upgradeEnvironment().');
2861
3019
  }
@@ -2947,7 +3105,8 @@ export class BoatApi extends runtime.BaseAPI {
2947
3105
  /**
2948
3106
  * Creates request options for writeFile without sending the request
2949
3107
  */
2950
- async writeFileRequestOpts(requestParameters) {
3108
+ async writeFileRequestOpts(input) {
3109
+ const requestParameters = runtime.unflattenBody(input, 'fileWriteRequest', ['sandboxId'], []);
2951
3110
  if (requestParameters['sandboxId'] == null) {
2952
3111
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling writeFile().');
2953
3112
  }
@@ -0,0 +1,52 @@
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
+ import type { ActiveOrgResponseAllOfActive } from './ActiveOrgResponseAllOfActive';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ActiveOrgResponse
17
+ */
18
+ export interface ActiveOrgResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ActiveOrgResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {ActiveOrgResponseTypeEnum}
28
+ * @memberof ActiveOrgResponse
29
+ */
30
+ type: ActiveOrgResponseTypeEnum;
31
+ /**
32
+ *
33
+ * @type {ActiveOrgResponseAllOfActive}
34
+ * @memberof ActiveOrgResponse
35
+ */
36
+ active: ActiveOrgResponseAllOfActive;
37
+ }
38
+ /**
39
+ * @export
40
+ */
41
+ export declare const ActiveOrgResponseTypeEnum: {
42
+ readonly OrgActiveUpdated: 'org.active_updated';
43
+ };
44
+ export type ActiveOrgResponseTypeEnum = typeof ActiveOrgResponseTypeEnum[keyof typeof ActiveOrgResponseTypeEnum];
45
+ /**
46
+ * Check if a given object implements the ActiveOrgResponse interface.
47
+ */
48
+ export declare function instanceOfActiveOrgResponse(value: object): value is ActiveOrgResponse;
49
+ export declare function ActiveOrgResponseFromJSON(json: any): ActiveOrgResponse;
50
+ export declare function ActiveOrgResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveOrgResponse;
51
+ export declare function ActiveOrgResponseToJSON(json: any): ActiveOrgResponse;
52
+ export declare function ActiveOrgResponseToJSONTyped(value?: ActiveOrgResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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
+ import { ActiveOrgResponseAllOfActiveFromJSON, ActiveOrgResponseAllOfActiveToJSON, } from './ActiveOrgResponseAllOfActive';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ActiveOrgResponseTypeEnum = {
19
+ OrgActiveUpdated: 'org.active_updated'
20
+ };
21
+ /**
22
+ * Check if a given object implements the ActiveOrgResponse interface.
23
+ */
24
+ export function instanceOfActiveOrgResponse(value) {
25
+ if (!('ok' in value) || value['ok'] === undefined)
26
+ return false;
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ if (!('active' in value) || value['active'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function ActiveOrgResponseFromJSON(json) {
34
+ return ActiveOrgResponseFromJSONTyped(json, false);
35
+ }
36
+ export function ActiveOrgResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'ok': json['ok'],
42
+ 'type': json['type'],
43
+ 'active': ActiveOrgResponseAllOfActiveFromJSON(json['active']),
44
+ };
45
+ }
46
+ export function ActiveOrgResponseToJSON(json) {
47
+ return ActiveOrgResponseToJSONTyped(json, false);
48
+ }
49
+ export function ActiveOrgResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'ok': value['ok'],
55
+ 'type': value['type'],
56
+ 'active': ActiveOrgResponseAllOfActiveToJSON(value['active']),
57
+ };
58
+ }
@@ -0,0 +1,52 @@
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 ActiveOrgResponseAllOfActive
16
+ */
17
+ export interface ActiveOrgResponseAllOfActive {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ActiveOrgResponseAllOfActive
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ActiveOrgResponseAllOfActive
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {ActiveOrgResponseAllOfActiveTypeEnum}
33
+ * @memberof ActiveOrgResponseAllOfActive
34
+ */
35
+ type: ActiveOrgResponseAllOfActiveTypeEnum;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const ActiveOrgResponseAllOfActiveTypeEnum: {
41
+ readonly Personal: 'personal';
42
+ readonly Org: 'org';
43
+ };
44
+ export type ActiveOrgResponseAllOfActiveTypeEnum = typeof ActiveOrgResponseAllOfActiveTypeEnum[keyof typeof ActiveOrgResponseAllOfActiveTypeEnum];
45
+ /**
46
+ * Check if a given object implements the ActiveOrgResponseAllOfActive interface.
47
+ */
48
+ export declare function instanceOfActiveOrgResponseAllOfActive(value: object): value is ActiveOrgResponseAllOfActive;
49
+ export declare function ActiveOrgResponseAllOfActiveFromJSON(json: any): ActiveOrgResponseAllOfActive;
50
+ export declare function ActiveOrgResponseAllOfActiveFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveOrgResponseAllOfActive;
51
+ export declare function ActiveOrgResponseAllOfActiveToJSON(json: any): ActiveOrgResponseAllOfActive;
52
+ export declare function ActiveOrgResponseAllOfActiveToJSONTyped(value?: ActiveOrgResponseAllOfActive | null, ignoreDiscriminator?: boolean): any;