@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
@@ -48,6 +48,8 @@ var __importStar = (this && this.__importStar) || (function () {
48
48
  Object.defineProperty(exports, "__esModule", { value: true });
49
49
  exports.SandboxesSortEnum = exports.ReposSortEnum = exports.ReadFileEncodingEnum = exports.ListSnapshotsSortEnum = exports.ListSandboxSnapshotsSortEnum = exports.EventsSortEnum = exports.DesktopOperationThemeEnum = exports.DesktopOperationVncEnum = exports.BoatApi = void 0;
50
50
  const runtime = __importStar(require("../runtime"));
51
+ const ActiveOrgResponse_1 = require("../models/ActiveOrgResponse");
52
+ const ActiveOrgUpdateRequest_1 = require("../models/ActiveOrgUpdateRequest");
51
53
  const AddEnvironmentRepoRequest_1 = require("../models/AddEnvironmentRepoRequest");
52
54
  const ApiKeyRevokeResponse_1 = require("../models/ApiKeyRevokeResponse");
53
55
  const ApiKeySecretResponse_1 = require("../models/ApiKeySecretResponse");
@@ -63,6 +65,7 @@ const CreateSandboxResponse_1 = require("../models/CreateSandboxResponse");
63
65
  const CreateScopedApiKeyRequest_1 = require("../models/CreateScopedApiKeyRequest");
64
66
  const DataRetentionPolicyResponse_1 = require("../models/DataRetentionPolicyResponse");
65
67
  const DataRetentionUpdateRequest_1 = require("../models/DataRetentionUpdateRequest");
68
+ const DeletionOperationListResponse_1 = require("../models/DeletionOperationListResponse");
66
69
  const DeletionOperationResponse_1 = require("../models/DeletionOperationResponse");
67
70
  const DesktopRequest_1 = require("../models/DesktopRequest");
68
71
  const DesktopResponse_1 = require("../models/DesktopResponse");
@@ -81,6 +84,7 @@ const NamedSnapshotInfoResponse_1 = require("../models/NamedSnapshotInfoResponse
81
84
  const NamedSnapshotListResponse_1 = require("../models/NamedSnapshotListResponse");
82
85
  const NamedSnapshotSaveRequest_1 = require("../models/NamedSnapshotSaveRequest");
83
86
  const NamedSnapshotSavingResponse_1 = require("../models/NamedSnapshotSavingResponse");
87
+ const OrgListResponse_1 = require("../models/OrgListResponse");
84
88
  const PromptRequest_1 = require("../models/PromptRequest");
85
89
  const PromptResponse_1 = require("../models/PromptResponse");
86
90
  const PromptRunResponse_1 = require("../models/PromptRunResponse");
@@ -124,7 +128,8 @@ class BoatApi extends runtime.BaseAPI {
124
128
  /**
125
129
  * Creates request options for addEnvironmentRepo without sending the request
126
130
  */
127
- async addEnvironmentRepoRequestOpts(requestParameters) {
131
+ async addEnvironmentRepoRequestOpts(input) {
132
+ const requestParameters = runtime.unflattenBody(input, 'addEnvironmentRepoRequest', ['environmentId'], []);
128
133
  if (requestParameters['environmentId'] == null) {
129
134
  throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling addEnvironmentRepo().');
130
135
  }
@@ -297,7 +302,8 @@ class BoatApi extends runtime.BaseAPI {
297
302
  /**
298
303
  * Creates request options for command without sending the request
299
304
  */
300
- async commandRequestOpts(requestParameters) {
305
+ async commandRequestOpts(input) {
306
+ const requestParameters = runtime.unflattenBody(input, 'commandRequest', ['sandboxId'], []);
301
307
  if (requestParameters['sandboxId'] == null) {
302
308
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling command().');
303
309
  }
@@ -433,7 +439,8 @@ class BoatApi extends runtime.BaseAPI {
433
439
  /**
434
440
  * Creates request options for create without sending the request
435
441
  */
436
- async createRequestOpts(requestParameters) {
442
+ async createRequestOpts(input) {
443
+ const requestParameters = runtime.unflattenBody(input, 'createSandboxRequest', ['idempotencyKey', 'org', 'xBoatOrg'], ['org']);
437
444
  const queryParameters = {};
438
445
  if (requestParameters['org'] != null) {
439
446
  queryParameters['org'] = requestParameters['org'];
@@ -482,7 +489,8 @@ class BoatApi extends runtime.BaseAPI {
482
489
  /**
483
490
  * Creates request options for createEnvironment without sending the request
484
491
  */
485
- async createEnvironmentRequestOpts(requestParameters) {
492
+ async createEnvironmentRequestOpts(input) {
493
+ const requestParameters = runtime.unflattenBody(input, 'createSandboxEnvironmentRequest', [], []);
486
494
  if (requestParameters['createSandboxEnvironmentRequest'] == null) {
487
495
  throw new runtime.RequiredError('createSandboxEnvironmentRequest', 'Required parameter "createSandboxEnvironmentRequest" was null or undefined when calling createEnvironment().');
488
496
  }
@@ -525,7 +533,8 @@ class BoatApi extends runtime.BaseAPI {
525
533
  /**
526
534
  * Creates request options for createScopedApiKey without sending the request
527
535
  */
528
- async createScopedApiKeyRequestOpts(requestParameters) {
536
+ async createScopedApiKeyRequestOpts(input) {
537
+ const requestParameters = runtime.unflattenBody(input, 'createScopedApiKeyRequest', [], []);
529
538
  if (requestParameters['createScopedApiKeyRequest'] == null) {
530
539
  throw new runtime.RequiredError('createScopedApiKeyRequest', 'Required parameter "createScopedApiKeyRequest" was null or undefined when calling createScopedApiKey().');
531
540
  }
@@ -568,7 +577,8 @@ class BoatApi extends runtime.BaseAPI {
568
577
  /**
569
578
  * Creates request options for createWebhook without sending the request
570
579
  */
571
- async createWebhookRequestOpts(requestParameters) {
580
+ async createWebhookRequestOpts(input) {
581
+ const requestParameters = runtime.unflattenBody(input, 'webhookCreateRequest', [], []);
572
582
  if (requestParameters['webhookCreateRequest'] == null) {
573
583
  throw new runtime.RequiredError('webhookCreateRequest', 'Required parameter "webhookCreateRequest" was null or undefined when calling createWebhook().');
574
584
  }
@@ -880,6 +890,54 @@ class BoatApi extends runtime.BaseAPI {
880
890
  const response = await this.deleteSandboxRaw(requestParameters, initOverrides);
881
891
  return await response.value();
882
892
  }
893
+ /**
894
+ * Creates request options for deleteSandboxSnapshots without sending the request
895
+ */
896
+ async deleteSandboxSnapshotsRequestOpts(requestParameters) {
897
+ if (requestParameters['sandboxId'] == null) {
898
+ throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling deleteSandboxSnapshots().');
899
+ }
900
+ if (requestParameters['xAsciiConfirmDelete'] == null) {
901
+ throw new runtime.RequiredError('xAsciiConfirmDelete', 'Required parameter "xAsciiConfirmDelete" was null or undefined when calling deleteSandboxSnapshots().');
902
+ }
903
+ const queryParameters = {};
904
+ const headerParameters = {};
905
+ if (requestParameters['xAsciiConfirmDelete'] != null) {
906
+ headerParameters['X-Ascii-Confirm-Delete'] = String(requestParameters['xAsciiConfirmDelete']);
907
+ }
908
+ if (this.configuration && this.configuration.accessToken) {
909
+ const token = this.configuration.accessToken;
910
+ const tokenString = await token("BoatBearerAuth", []);
911
+ if (tokenString) {
912
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
913
+ }
914
+ }
915
+ let urlPath = `/sandboxes/{sandboxId}/snapshots`;
916
+ urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
917
+ return {
918
+ path: urlPath,
919
+ method: 'DELETE',
920
+ headers: headerParameters,
921
+ query: queryParameters,
922
+ };
923
+ }
924
+ /**
925
+ * 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.
926
+ * Permanently delete all snapshots of a sandbox
927
+ */
928
+ async deleteSandboxSnapshotsRaw(requestParameters, initOverrides) {
929
+ const requestOptions = await this.deleteSandboxSnapshotsRequestOpts(requestParameters);
930
+ const response = await this.request(requestOptions, initOverrides);
931
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeletionOperationListResponse_1.DeletionOperationListResponseFromJSON)(jsonValue));
932
+ }
933
+ /**
934
+ * 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.
935
+ * Permanently delete all snapshots of a sandbox
936
+ */
937
+ async deleteSandboxSnapshots(requestParameters, initOverrides) {
938
+ const response = await this.deleteSandboxSnapshotsRaw(requestParameters, initOverrides);
939
+ return await response.value();
940
+ }
883
941
  /**
884
942
  * Creates request options for deleteSnapshot without sending the request
885
943
  */
@@ -912,7 +970,7 @@ class BoatApi extends runtime.BaseAPI {
912
970
  };
913
971
  }
914
972
  /**
915
- * 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`.
973
+ * 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.
916
974
  * Permanently delete snapshot data
917
975
  */
918
976
  async deleteSnapshotRaw(requestParameters, initOverrides) {
@@ -921,7 +979,7 @@ class BoatApi extends runtime.BaseAPI {
921
979
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeletionOperationResponse_1.DeletionOperationResponseFromJSON)(jsonValue));
922
980
  }
923
981
  /**
924
- * 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`.
982
+ * 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.
925
983
  * Permanently delete snapshot data
926
984
  */
927
985
  async deleteSnapshot(requestParameters, initOverrides) {
@@ -973,7 +1031,8 @@ class BoatApi extends runtime.BaseAPI {
973
1031
  /**
974
1032
  * Creates request options for desktop without sending the request
975
1033
  */
976
- async desktopRequestOpts(requestParameters) {
1034
+ async desktopRequestOpts(input) {
1035
+ const requestParameters = runtime.unflattenBody(input, 'desktopRequest', ['sandboxId', 'vnc', 'theme'], []);
977
1036
  if (requestParameters['sandboxId'] == null) {
978
1037
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling desktop().');
979
1038
  }
@@ -1118,7 +1177,8 @@ class BoatApi extends runtime.BaseAPI {
1118
1177
  /**
1119
1178
  * Creates request options for fork without sending the request
1120
1179
  */
1121
- async forkRequestOpts(requestParameters) {
1180
+ async forkRequestOpts(input) {
1181
+ const requestParameters = runtime.unflattenBody(input, 'forkRequest', ['sandboxId', 'idempotencyKey'], []);
1122
1182
  if (requestParameters['sandboxId'] == null) {
1123
1183
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling fork().');
1124
1184
  }
@@ -1540,7 +1600,8 @@ class BoatApi extends runtime.BaseAPI {
1540
1600
  /**
1541
1601
  * Creates request options for hostPort without sending the request
1542
1602
  */
1543
- async hostPortRequestOpts(requestParameters) {
1603
+ async hostPortRequestOpts(input) {
1604
+ const requestParameters = runtime.unflattenBody(input, 'hostPortRequest', ['sandboxId'], []);
1544
1605
  if (requestParameters['sandboxId'] == null) {
1545
1606
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling hostPort().');
1546
1607
  }
@@ -1660,7 +1721,7 @@ class BoatApi extends runtime.BaseAPI {
1660
1721
  };
1661
1722
  }
1662
1723
  /**
1663
- * 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.
1724
+ * 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.
1664
1725
  * Get Boat limits
1665
1726
  */
1666
1727
  async limitsRaw(requestParameters, initOverrides) {
@@ -1669,7 +1730,7 @@ class BoatApi extends runtime.BaseAPI {
1669
1730
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, LimitsResponse_1.LimitsResponseFromJSON)(jsonValue));
1670
1731
  }
1671
1732
  /**
1672
- * 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.
1733
+ * 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.
1673
1734
  * Get Boat limits
1674
1735
  */
1675
1736
  async limits(requestParameters = {}, initOverrides) {
@@ -1714,6 +1775,44 @@ class BoatApi extends runtime.BaseAPI {
1714
1775
  const response = await this.listNamedSnapshotsRaw(initOverrides);
1715
1776
  return await response.value();
1716
1777
  }
1778
+ /**
1779
+ * Creates request options for listOrganizations without sending the request
1780
+ */
1781
+ async listOrganizationsRequestOpts() {
1782
+ const queryParameters = {};
1783
+ const headerParameters = {};
1784
+ if (this.configuration && this.configuration.accessToken) {
1785
+ const token = this.configuration.accessToken;
1786
+ const tokenString = await token("BoatBearerAuth", []);
1787
+ if (tokenString) {
1788
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1789
+ }
1790
+ }
1791
+ let urlPath = `/orgs`;
1792
+ return {
1793
+ path: urlPath,
1794
+ method: 'GET',
1795
+ headers: headerParameters,
1796
+ query: queryParameters,
1797
+ };
1798
+ }
1799
+ /**
1800
+ * 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`.
1801
+ * List organizations
1802
+ */
1803
+ async listOrganizationsRaw(initOverrides) {
1804
+ const requestOptions = await this.listOrganizationsRequestOpts();
1805
+ const response = await this.request(requestOptions, initOverrides);
1806
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, OrgListResponse_1.OrgListResponseFromJSON)(jsonValue));
1807
+ }
1808
+ /**
1809
+ * 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`.
1810
+ * List organizations
1811
+ */
1812
+ async listOrganizations(initOverrides) {
1813
+ const response = await this.listOrganizationsRaw(initOverrides);
1814
+ return await response.value();
1815
+ }
1717
1816
  /**
1718
1817
  * Creates request options for listSandboxSnapshots without sending the request
1719
1818
  */
@@ -1891,7 +1990,8 @@ class BoatApi extends runtime.BaseAPI {
1891
1990
  /**
1892
1991
  * Creates request options for prompt without sending the request
1893
1992
  */
1894
- async promptRequestOpts(requestParameters) {
1993
+ async promptRequestOpts(input) {
1994
+ const requestParameters = runtime.unflattenBody(input, 'promptRequest', ['sandboxId'], []);
1895
1995
  if (requestParameters['sandboxId'] == null) {
1896
1996
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling prompt().');
1897
1997
  }
@@ -2089,7 +2189,8 @@ class BoatApi extends runtime.BaseAPI {
2089
2189
  /**
2090
2190
  * Creates request options for resume without sending the request
2091
2191
  */
2092
- async resumeRequestOpts(requestParameters) {
2192
+ async resumeRequestOpts(input) {
2193
+ const requestParameters = runtime.unflattenBody(input, 'resumeRequest', ['sandboxId'], []);
2093
2194
  if (requestParameters['sandboxId'] == null) {
2094
2195
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling resume().');
2095
2196
  }
@@ -2305,7 +2406,8 @@ class BoatApi extends runtime.BaseAPI {
2305
2406
  /**
2306
2407
  * Creates request options for saveNamedSnapshot without sending the request
2307
2408
  */
2308
- async saveNamedSnapshotRequestOpts(requestParameters) {
2409
+ async saveNamedSnapshotRequestOpts(input) {
2410
+ const requestParameters = runtime.unflattenBody(input, 'namedSnapshotSaveRequest', [], []);
2309
2411
  if (requestParameters['namedSnapshotSaveRequest'] == null) {
2310
2412
  throw new runtime.RequiredError('namedSnapshotSaveRequest', 'Required parameter "namedSnapshotSaveRequest" was null or undefined when calling saveNamedSnapshot().');
2311
2413
  }
@@ -2386,7 +2488,8 @@ class BoatApi extends runtime.BaseAPI {
2386
2488
  /**
2387
2489
  * Creates request options for selectRepo without sending the request
2388
2490
  */
2389
- async selectRepoRequestOpts(requestParameters) {
2491
+ async selectRepoRequestOpts(input) {
2492
+ const requestParameters = runtime.unflattenBody(input, 'repoSelectionRequest', [], []);
2390
2493
  if (requestParameters['repoSelectionRequest'] == null) {
2391
2494
  throw new runtime.RequiredError('repoSelectionRequest', 'Required parameter "repoSelectionRequest" was null or undefined when calling selectRepo().');
2392
2495
  }
@@ -2426,10 +2529,55 @@ class BoatApi extends runtime.BaseAPI {
2426
2529
  const response = await this.selectRepoRaw(requestParameters, initOverrides);
2427
2530
  return await response.value();
2428
2531
  }
2532
+ /**
2533
+ * Creates request options for setActiveOrganization without sending the request
2534
+ */
2535
+ async setActiveOrganizationRequestOpts(input) {
2536
+ const requestParameters = runtime.unflattenBody(input, 'activeOrgUpdateRequest', [], []);
2537
+ if (requestParameters['activeOrgUpdateRequest'] == null) {
2538
+ throw new runtime.RequiredError('activeOrgUpdateRequest', 'Required parameter "activeOrgUpdateRequest" was null or undefined when calling setActiveOrganization().');
2539
+ }
2540
+ const queryParameters = {};
2541
+ const headerParameters = {};
2542
+ headerParameters['Content-Type'] = 'application/json';
2543
+ if (this.configuration && this.configuration.accessToken) {
2544
+ const token = this.configuration.accessToken;
2545
+ const tokenString = await token("BoatBearerAuth", []);
2546
+ if (tokenString) {
2547
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2548
+ }
2549
+ }
2550
+ let urlPath = `/orgs/active`;
2551
+ return {
2552
+ path: urlPath,
2553
+ method: 'PATCH',
2554
+ headers: headerParameters,
2555
+ query: queryParameters,
2556
+ body: (0, ActiveOrgUpdateRequest_1.ActiveOrgUpdateRequestToJSON)(requestParameters['activeOrgUpdateRequest']),
2557
+ };
2558
+ }
2559
+ /**
2560
+ * 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.
2561
+ * Set the active organization
2562
+ */
2563
+ async setActiveOrganizationRaw(requestParameters, initOverrides) {
2564
+ const requestOptions = await this.setActiveOrganizationRequestOpts(requestParameters);
2565
+ const response = await this.request(requestOptions, initOverrides);
2566
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ActiveOrgResponse_1.ActiveOrgResponseFromJSON)(jsonValue));
2567
+ }
2568
+ /**
2569
+ * 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.
2570
+ * Set the active organization
2571
+ */
2572
+ async setActiveOrganization(requestParameters, initOverrides) {
2573
+ const response = await this.setActiveOrganizationRaw(requestParameters, initOverrides);
2574
+ return await response.value();
2575
+ }
2429
2576
  /**
2430
2577
  * Creates request options for setEnvironmentSecretFile without sending the request
2431
2578
  */
2432
- async setEnvironmentSecretFileRequestOpts(requestParameters) {
2579
+ async setEnvironmentSecretFileRequestOpts(input) {
2580
+ const requestParameters = runtime.unflattenBody(input, 'setEnvironmentSecretFileRequest', ['environmentId'], []);
2433
2581
  if (requestParameters['environmentId'] == null) {
2434
2582
  throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling setEnvironmentSecretFile().');
2435
2583
  }
@@ -2476,7 +2624,8 @@ class BoatApi extends runtime.BaseAPI {
2476
2624
  /**
2477
2625
  * Creates request options for setEnvironmentVar without sending the request
2478
2626
  */
2479
- async setEnvironmentVarRequestOpts(requestParameters) {
2627
+ async setEnvironmentVarRequestOpts(input) {
2628
+ const requestParameters = runtime.unflattenBody(input, 'setEnvironmentVarRequest', ['environmentId', 'key'], []);
2480
2629
  if (requestParameters['environmentId'] == null) {
2481
2630
  throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling setEnvironmentVar().');
2482
2631
  }
@@ -2527,7 +2676,8 @@ class BoatApi extends runtime.BaseAPI {
2527
2676
  /**
2528
2677
  * Creates request options for sshKey without sending the request
2529
2678
  */
2530
- async sshKeyRequestOpts(requestParameters) {
2679
+ async sshKeyRequestOpts(input) {
2680
+ const requestParameters = runtime.unflattenBody(input, 'sshKeyRequest', ['sandboxId'], []);
2531
2681
  if (requestParameters['sandboxId'] == null) {
2532
2682
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling sshKey().');
2533
2683
  }
@@ -2574,7 +2724,8 @@ class BoatApi extends runtime.BaseAPI {
2574
2724
  /**
2575
2725
  * Creates request options for steer without sending the request
2576
2726
  */
2577
- async steerRequestOpts(requestParameters) {
2727
+ async steerRequestOpts(input) {
2728
+ const requestParameters = runtime.unflattenBody(input, 'steerRequest', ['sandboxId', 'conversation'], ['conversation']);
2578
2729
  if (requestParameters['sandboxId'] == null) {
2579
2730
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling steer().');
2580
2731
  }
@@ -2624,7 +2775,8 @@ class BoatApi extends runtime.BaseAPI {
2624
2775
  /**
2625
2776
  * Creates request options for stop without sending the request
2626
2777
  */
2627
- async stopRequestOpts(requestParameters) {
2778
+ async stopRequestOpts(input) {
2779
+ const requestParameters = runtime.unflattenBody(input, 'stopRequest', ['sandboxId'], []);
2628
2780
  if (requestParameters['sandboxId'] == null) {
2629
2781
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling stop().');
2630
2782
  }
@@ -2668,7 +2820,8 @@ class BoatApi extends runtime.BaseAPI {
2668
2820
  /**
2669
2821
  * Creates request options for update without sending the request
2670
2822
  */
2671
- async updateRequestOpts(requestParameters) {
2823
+ async updateRequestOpts(input) {
2824
+ const requestParameters = runtime.unflattenBody(input, 'updateSandboxRequest', ['sandboxId'], []);
2672
2825
  if (requestParameters['sandboxId'] == null) {
2673
2826
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling update().');
2674
2827
  }
@@ -2713,7 +2866,8 @@ class BoatApi extends runtime.BaseAPI {
2713
2866
  /**
2714
2867
  * Creates request options for updateDataRetention without sending the request
2715
2868
  */
2716
- async updateDataRetentionRequestOpts(requestParameters) {
2869
+ async updateDataRetentionRequestOpts(input) {
2870
+ const requestParameters = runtime.unflattenBody(input, 'dataRetentionUpdateRequest', [], []);
2717
2871
  if (requestParameters['dataRetentionUpdateRequest'] == null) {
2718
2872
  throw new runtime.RequiredError('dataRetentionUpdateRequest', 'Required parameter "dataRetentionUpdateRequest" was null or undefined when calling updateDataRetention().');
2719
2873
  }
@@ -2756,7 +2910,8 @@ class BoatApi extends runtime.BaseAPI {
2756
2910
  /**
2757
2911
  * Creates request options for updateEnvironment without sending the request
2758
2912
  */
2759
- async updateEnvironmentRequestOpts(requestParameters) {
2913
+ async updateEnvironmentRequestOpts(input) {
2914
+ const requestParameters = runtime.unflattenBody(input, 'updateSandboxEnvironmentRequest', ['environmentId'], []);
2760
2915
  if (requestParameters['environmentId'] == null) {
2761
2916
  throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling updateEnvironment().');
2762
2917
  }
@@ -2803,7 +2958,8 @@ class BoatApi extends runtime.BaseAPI {
2803
2958
  /**
2804
2959
  * Creates request options for updateSecrets without sending the request
2805
2960
  */
2806
- async updateSecretsRequestOpts(requestParameters) {
2961
+ async updateSecretsRequestOpts(input) {
2962
+ const requestParameters = runtime.unflattenBody(input, 'secretsUpdateRequest', [], []);
2807
2963
  if (requestParameters['secretsUpdateRequest'] == null) {
2808
2964
  throw new runtime.RequiredError('secretsUpdateRequest', 'Required parameter "secretsUpdateRequest" was null or undefined when calling updateSecrets().');
2809
2965
  }
@@ -2844,7 +3000,8 @@ class BoatApi extends runtime.BaseAPI {
2844
3000
  /**
2845
3001
  * Creates request options for updateWebhook without sending the request
2846
3002
  */
2847
- async updateWebhookRequestOpts(requestParameters) {
3003
+ async updateWebhookRequestOpts(input) {
3004
+ const requestParameters = runtime.unflattenBody(input, 'webhookUpdateRequest', ['webhookId'], []);
2848
3005
  if (requestParameters['webhookId'] == null) {
2849
3006
  throw new runtime.RequiredError('webhookId', 'Required parameter "webhookId" was null or undefined when calling updateWebhook().');
2850
3007
  }
@@ -2891,7 +3048,8 @@ class BoatApi extends runtime.BaseAPI {
2891
3048
  /**
2892
3049
  * Creates request options for upgradeEnvironment without sending the request
2893
3050
  */
2894
- async upgradeEnvironmentRequestOpts(requestParameters) {
3051
+ async upgradeEnvironmentRequestOpts(input) {
3052
+ const requestParameters = runtime.unflattenBody(input, 'upgradeSandboxEnvironmentRequest', ['environmentId'], []);
2895
3053
  if (requestParameters['environmentId'] == null) {
2896
3054
  throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling upgradeEnvironment().');
2897
3055
  }
@@ -2983,7 +3141,8 @@ class BoatApi extends runtime.BaseAPI {
2983
3141
  /**
2984
3142
  * Creates request options for writeFile without sending the request
2985
3143
  */
2986
- async writeFileRequestOpts(requestParameters) {
3144
+ async writeFileRequestOpts(input) {
3145
+ const requestParameters = runtime.unflattenBody(input, 'fileWriteRequest', ['sandboxId'], []);
2987
3146
  if (requestParameters['sandboxId'] == null) {
2988
3147
  throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling writeFile().');
2989
3148
  }