@boatdev/sdk 1.7.0 → 1.9.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 (91) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/dist/apis/BoatApi.d.ts +102 -4
  3. package/dist/apis/BoatApi.js +233 -4
  4. package/dist/esm/apis/BoatApi.d.ts +102 -4
  5. package/dist/esm/apis/BoatApi.js +233 -4
  6. package/dist/esm/http2-fetch.d.ts +1 -0
  7. package/dist/esm/http2-fetch.js +203 -0
  8. package/dist/esm/models/CreateSandboxRequest.d.ts +4 -3
  9. package/dist/esm/models/CreateSandboxRequest.js +2 -1
  10. package/dist/esm/models/ForkRequest.d.ts +2 -1
  11. package/dist/esm/models/ForkRequest.js +2 -1
  12. package/dist/esm/models/NamedSnapshotShare.d.ts +76 -0
  13. package/dist/esm/models/NamedSnapshotShare.js +74 -0
  14. package/dist/esm/models/NamedSnapshotShareCreatedResponse.d.ts +64 -0
  15. package/dist/esm/models/NamedSnapshotShareCreatedResponse.js +66 -0
  16. package/dist/esm/models/NamedSnapshotShareListResponse.d.ts +58 -0
  17. package/dist/esm/models/NamedSnapshotShareListResponse.js +62 -0
  18. package/dist/esm/models/NamedSnapshotShareRevokedResponse.d.ts +58 -0
  19. package/dist/esm/models/NamedSnapshotShareRevokedResponse.js +62 -0
  20. package/dist/esm/models/Recover200Response.d.ts +57 -0
  21. package/dist/esm/models/Recover200Response.js +53 -0
  22. package/dist/esm/models/ResumeRequest.d.ts +2 -1
  23. package/dist/esm/models/ResumeRequest.js +2 -1
  24. package/dist/esm/models/Sandbox.d.ts +2 -1
  25. package/dist/esm/models/Sandbox.js +2 -1
  26. package/dist/esm/models/SandboxUsageResponse.d.ts +2 -1
  27. package/dist/esm/models/SandboxUsageResponse.js +2 -1
  28. package/dist/esm/models/StopOperation.d.ts +1 -1
  29. package/dist/esm/models/StopOperationResponse.d.ts +58 -0
  30. package/dist/esm/models/StopOperationResponse.js +62 -0
  31. package/dist/esm/models/StopRequest.d.ts +1 -1
  32. package/dist/esm/models/UpdateSandboxRequest.d.ts +1 -1
  33. package/dist/esm/models/index.d.ts +6 -0
  34. package/dist/esm/models/index.js +6 -0
  35. package/dist/esm/runtime.js +2 -1
  36. package/dist/http2-fetch.d.ts +1 -0
  37. package/dist/http2-fetch.js +239 -0
  38. package/dist/models/CreateSandboxRequest.d.ts +4 -3
  39. package/dist/models/CreateSandboxRequest.js +2 -1
  40. package/dist/models/ForkRequest.d.ts +2 -1
  41. package/dist/models/ForkRequest.js +2 -1
  42. package/dist/models/NamedSnapshotShare.d.ts +76 -0
  43. package/dist/models/NamedSnapshotShare.js +82 -0
  44. package/dist/models/NamedSnapshotShareCreatedResponse.d.ts +64 -0
  45. package/dist/models/NamedSnapshotShareCreatedResponse.js +74 -0
  46. package/dist/models/NamedSnapshotShareListResponse.d.ts +58 -0
  47. package/dist/models/NamedSnapshotShareListResponse.js +70 -0
  48. package/dist/models/NamedSnapshotShareRevokedResponse.d.ts +58 -0
  49. package/dist/models/NamedSnapshotShareRevokedResponse.js +70 -0
  50. package/dist/models/Recover200Response.d.ts +57 -0
  51. package/dist/models/Recover200Response.js +61 -0
  52. package/dist/models/ResumeRequest.d.ts +2 -1
  53. package/dist/models/ResumeRequest.js +2 -1
  54. package/dist/models/Sandbox.d.ts +2 -1
  55. package/dist/models/Sandbox.js +2 -1
  56. package/dist/models/SandboxUsageResponse.d.ts +2 -1
  57. package/dist/models/SandboxUsageResponse.js +2 -1
  58. package/dist/models/StopOperation.d.ts +1 -1
  59. package/dist/models/StopOperationResponse.d.ts +58 -0
  60. package/dist/models/StopOperationResponse.js +70 -0
  61. package/dist/models/StopRequest.d.ts +1 -1
  62. package/dist/models/UpdateSandboxRequest.d.ts +1 -1
  63. package/dist/models/index.d.ts +6 -0
  64. package/dist/models/index.js +6 -0
  65. package/dist/runtime.js +9 -8
  66. package/docs/BoatApi.md +385 -2
  67. package/docs/NamedSnapshotShare.md +45 -0
  68. package/docs/NamedSnapshotShareCreatedResponse.md +40 -0
  69. package/docs/NamedSnapshotShareListResponse.md +38 -0
  70. package/docs/NamedSnapshotShareRevokedResponse.md +38 -0
  71. package/docs/Recover200Response.md +38 -0
  72. package/docs/StopOperationResponse.md +38 -0
  73. package/package.json +1 -1
  74. package/src/apis/BoatApi.ts +348 -4
  75. package/src/http2-fetch.ts +179 -0
  76. package/src/models/CreateSandboxRequest.ts +5 -4
  77. package/src/models/ForkRequest.ts +3 -2
  78. package/src/models/NamedSnapshotShare.ts +131 -0
  79. package/src/models/NamedSnapshotShareCreatedResponse.ts +120 -0
  80. package/src/models/NamedSnapshotShareListResponse.ts +111 -0
  81. package/src/models/NamedSnapshotShareRevokedResponse.ts +111 -0
  82. package/src/models/Recover200Response.ts +99 -0
  83. package/src/models/ResumeRequest.ts +3 -2
  84. package/src/models/Sandbox.ts +3 -2
  85. package/src/models/SandboxUsageResponse.ts +3 -2
  86. package/src/models/StopOperation.ts +1 -1
  87. package/src/models/StopOperationResponse.ts +111 -0
  88. package/src/models/StopRequest.ts +1 -1
  89. package/src/models/UpdateSandboxRequest.ts +1 -1
  90. package/src/models/index.ts +6 -0
  91. package/src/runtime.ts +2 -1
@@ -0,0 +1,76 @@
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
+ * A share code for a named snapshot. Any Boat account that holds the code can create a sandbox from the snapshot. Boat stores only a hash of the code. The full code is in the create response only.
14
+ * @export
15
+ * @interface NamedSnapshotShare
16
+ */
17
+ export interface NamedSnapshotShare {
18
+ /**
19
+ * Share id, for example `shr_...`. Pass it to revoke the code.
20
+ * @type {string}
21
+ * @memberof NamedSnapshotShare
22
+ */
23
+ id: string;
24
+ /**
25
+ * The first characters of the code, for example `bsh_xxxxxxxx`. Use it to tell codes apart.
26
+ * @type {string}
27
+ * @memberof NamedSnapshotShare
28
+ */
29
+ codePrefix: string;
30
+ /**
31
+ *
32
+ * @type {NamedSnapshotShareStatusEnum}
33
+ * @memberof NamedSnapshotShare
34
+ */
35
+ status: NamedSnapshotShareStatusEnum;
36
+ /**
37
+ * Number of sandboxes created with this code.
38
+ * @type {number}
39
+ * @memberof NamedSnapshotShare
40
+ */
41
+ useCount: number;
42
+ /**
43
+ * When a sandbox was last created with this code. null if never.
44
+ * @type {Date}
45
+ * @memberof NamedSnapshotShare
46
+ */
47
+ lastUsedAt: Date | null;
48
+ /**
49
+ * When the code was revoked. null while active.
50
+ * @type {Date}
51
+ * @memberof NamedSnapshotShare
52
+ */
53
+ revokedAt: Date | null;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof NamedSnapshotShare
58
+ */
59
+ createdAt: Date;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const NamedSnapshotShareStatusEnum: {
65
+ readonly Active: 'active';
66
+ readonly Revoked: 'revoked';
67
+ };
68
+ export type NamedSnapshotShareStatusEnum = typeof NamedSnapshotShareStatusEnum[keyof typeof NamedSnapshotShareStatusEnum];
69
+ /**
70
+ * Check if a given object implements the NamedSnapshotShare interface.
71
+ */
72
+ export declare function instanceOfNamedSnapshotShare(value: object): value is NamedSnapshotShare;
73
+ export declare function NamedSnapshotShareFromJSON(json: any): NamedSnapshotShare;
74
+ export declare function NamedSnapshotShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShare;
75
+ export declare function NamedSnapshotShareToJSON(json: any): NamedSnapshotShare;
76
+ export declare function NamedSnapshotShareToJSONTyped(value?: NamedSnapshotShare | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const NamedSnapshotShareStatusEnum = {
18
+ Active: 'active',
19
+ Revoked: 'revoked'
20
+ };
21
+ /**
22
+ * Check if a given object implements the NamedSnapshotShare interface.
23
+ */
24
+ export function instanceOfNamedSnapshotShare(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('codePrefix' in value) || value['codePrefix'] === undefined)
28
+ return false;
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ if (!('useCount' in value) || value['useCount'] === undefined)
32
+ return false;
33
+ if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined)
34
+ return false;
35
+ if (!('revokedAt' in value) || value['revokedAt'] === undefined)
36
+ return false;
37
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function NamedSnapshotShareFromJSON(json) {
42
+ return NamedSnapshotShareFromJSONTyped(json, false);
43
+ }
44
+ export function NamedSnapshotShareFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'codePrefix': json['codePrefix'],
51
+ 'status': json['status'],
52
+ 'useCount': json['useCount'],
53
+ 'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
54
+ 'revokedAt': (json['revokedAt'] == null ? null : new Date(json['revokedAt'])),
55
+ 'createdAt': (new Date(json['createdAt'])),
56
+ };
57
+ }
58
+ export function NamedSnapshotShareToJSON(json) {
59
+ return NamedSnapshotShareToJSONTyped(json, false);
60
+ }
61
+ export function NamedSnapshotShareToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'codePrefix': value['codePrefix'],
68
+ 'status': value['status'],
69
+ 'useCount': value['useCount'],
70
+ 'lastUsedAt': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
71
+ 'revokedAt': value['revokedAt'] == null ? value['revokedAt'] : value['revokedAt'].toISOString(),
72
+ 'createdAt': value['createdAt'].toISOString(),
73
+ };
74
+ }
@@ -0,0 +1,64 @@
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 { NamedSnapshotShare } from './NamedSnapshotShare';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NamedSnapshotShareCreatedResponse
17
+ */
18
+ export interface NamedSnapshotShareCreatedResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof NamedSnapshotShareCreatedResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {NamedSnapshotShareCreatedResponseTypeEnum}
28
+ * @memberof NamedSnapshotShareCreatedResponse
29
+ */
30
+ type: NamedSnapshotShareCreatedResponseTypeEnum;
31
+ /**
32
+ * The named snapshot the code deploys.
33
+ * @type {string}
34
+ * @memberof NamedSnapshotShareCreatedResponse
35
+ */
36
+ name: string;
37
+ /**
38
+ * The share code, for example `bsh_...`. Boat shows it only in this response. Store it now; you cannot get it again.
39
+ * @type {string}
40
+ * @memberof NamedSnapshotShareCreatedResponse
41
+ */
42
+ shareCode: string;
43
+ /**
44
+ *
45
+ * @type {NamedSnapshotShare}
46
+ * @memberof NamedSnapshotShareCreatedResponse
47
+ */
48
+ share: NamedSnapshotShare;
49
+ }
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const NamedSnapshotShareCreatedResponseTypeEnum: {
54
+ readonly SnapshotShareCreated: 'snapshot.share.created';
55
+ };
56
+ export type NamedSnapshotShareCreatedResponseTypeEnum = typeof NamedSnapshotShareCreatedResponseTypeEnum[keyof typeof NamedSnapshotShareCreatedResponseTypeEnum];
57
+ /**
58
+ * Check if a given object implements the NamedSnapshotShareCreatedResponse interface.
59
+ */
60
+ export declare function instanceOfNamedSnapshotShareCreatedResponse(value: object): value is NamedSnapshotShareCreatedResponse;
61
+ export declare function NamedSnapshotShareCreatedResponseFromJSON(json: any): NamedSnapshotShareCreatedResponse;
62
+ export declare function NamedSnapshotShareCreatedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareCreatedResponse;
63
+ export declare function NamedSnapshotShareCreatedResponseToJSON(json: any): NamedSnapshotShareCreatedResponse;
64
+ export declare function NamedSnapshotShareCreatedResponseToJSONTyped(value?: NamedSnapshotShareCreatedResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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 { NamedSnapshotShareFromJSON, NamedSnapshotShareToJSON, } from './NamedSnapshotShare';
15
+ /**
16
+ * @export
17
+ */
18
+ export const NamedSnapshotShareCreatedResponseTypeEnum = {
19
+ SnapshotShareCreated: 'snapshot.share.created'
20
+ };
21
+ /**
22
+ * Check if a given object implements the NamedSnapshotShareCreatedResponse interface.
23
+ */
24
+ export function instanceOfNamedSnapshotShareCreatedResponse(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 (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('shareCode' in value) || value['shareCode'] === undefined)
32
+ return false;
33
+ if (!('share' in value) || value['share'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ export function NamedSnapshotShareCreatedResponseFromJSON(json) {
38
+ return NamedSnapshotShareCreatedResponseFromJSONTyped(json, false);
39
+ }
40
+ export function NamedSnapshotShareCreatedResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'ok': json['ok'],
46
+ 'type': json['type'],
47
+ 'name': json['name'],
48
+ 'shareCode': json['shareCode'],
49
+ 'share': NamedSnapshotShareFromJSON(json['share']),
50
+ };
51
+ }
52
+ export function NamedSnapshotShareCreatedResponseToJSON(json) {
53
+ return NamedSnapshotShareCreatedResponseToJSONTyped(json, false);
54
+ }
55
+ export function NamedSnapshotShareCreatedResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'ok': value['ok'],
61
+ 'type': value['type'],
62
+ 'name': value['name'],
63
+ 'shareCode': value['shareCode'],
64
+ 'share': NamedSnapshotShareToJSON(value['share']),
65
+ };
66
+ }
@@ -0,0 +1,58 @@
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 { NamedSnapshotShare } from './NamedSnapshotShare';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NamedSnapshotShareListResponse
17
+ */
18
+ export interface NamedSnapshotShareListResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof NamedSnapshotShareListResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {NamedSnapshotShareListResponseTypeEnum}
28
+ * @memberof NamedSnapshotShareListResponse
29
+ */
30
+ type: NamedSnapshotShareListResponseTypeEnum;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof NamedSnapshotShareListResponse
35
+ */
36
+ name: string;
37
+ /**
38
+ *
39
+ * @type {Array<NamedSnapshotShare>}
40
+ * @memberof NamedSnapshotShareListResponse
41
+ */
42
+ shares: Array<NamedSnapshotShare>;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const NamedSnapshotShareListResponseTypeEnum: {
48
+ readonly SnapshotShareList: 'snapshot.share.list';
49
+ };
50
+ export type NamedSnapshotShareListResponseTypeEnum = typeof NamedSnapshotShareListResponseTypeEnum[keyof typeof NamedSnapshotShareListResponseTypeEnum];
51
+ /**
52
+ * Check if a given object implements the NamedSnapshotShareListResponse interface.
53
+ */
54
+ export declare function instanceOfNamedSnapshotShareListResponse(value: object): value is NamedSnapshotShareListResponse;
55
+ export declare function NamedSnapshotShareListResponseFromJSON(json: any): NamedSnapshotShareListResponse;
56
+ export declare function NamedSnapshotShareListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareListResponse;
57
+ export declare function NamedSnapshotShareListResponseToJSON(json: any): NamedSnapshotShareListResponse;
58
+ export declare function NamedSnapshotShareListResponseToJSONTyped(value?: NamedSnapshotShareListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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 { NamedSnapshotShareFromJSON, NamedSnapshotShareToJSON, } from './NamedSnapshotShare';
15
+ /**
16
+ * @export
17
+ */
18
+ export const NamedSnapshotShareListResponseTypeEnum = {
19
+ SnapshotShareList: 'snapshot.share.list'
20
+ };
21
+ /**
22
+ * Check if a given object implements the NamedSnapshotShareListResponse interface.
23
+ */
24
+ export function instanceOfNamedSnapshotShareListResponse(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 (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('shares' in value) || value['shares'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function NamedSnapshotShareListResponseFromJSON(json) {
36
+ return NamedSnapshotShareListResponseFromJSONTyped(json, false);
37
+ }
38
+ export function NamedSnapshotShareListResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'ok': json['ok'],
44
+ 'type': json['type'],
45
+ 'name': json['name'],
46
+ 'shares': (json['shares'].map(NamedSnapshotShareFromJSON)),
47
+ };
48
+ }
49
+ export function NamedSnapshotShareListResponseToJSON(json) {
50
+ return NamedSnapshotShareListResponseToJSONTyped(json, false);
51
+ }
52
+ export function NamedSnapshotShareListResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'ok': value['ok'],
58
+ 'type': value['type'],
59
+ 'name': value['name'],
60
+ 'shares': (value['shares'].map(NamedSnapshotShareToJSON)),
61
+ };
62
+ }
@@ -0,0 +1,58 @@
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 { NamedSnapshotShare } from './NamedSnapshotShare';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NamedSnapshotShareRevokedResponse
17
+ */
18
+ export interface NamedSnapshotShareRevokedResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof NamedSnapshotShareRevokedResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {NamedSnapshotShareRevokedResponseTypeEnum}
28
+ * @memberof NamedSnapshotShareRevokedResponse
29
+ */
30
+ type: NamedSnapshotShareRevokedResponseTypeEnum;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof NamedSnapshotShareRevokedResponse
35
+ */
36
+ name: string;
37
+ /**
38
+ *
39
+ * @type {NamedSnapshotShare}
40
+ * @memberof NamedSnapshotShareRevokedResponse
41
+ */
42
+ share: NamedSnapshotShare;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const NamedSnapshotShareRevokedResponseTypeEnum: {
48
+ readonly SnapshotShareRevoked: 'snapshot.share.revoked';
49
+ };
50
+ export type NamedSnapshotShareRevokedResponseTypeEnum = typeof NamedSnapshotShareRevokedResponseTypeEnum[keyof typeof NamedSnapshotShareRevokedResponseTypeEnum];
51
+ /**
52
+ * Check if a given object implements the NamedSnapshotShareRevokedResponse interface.
53
+ */
54
+ export declare function instanceOfNamedSnapshotShareRevokedResponse(value: object): value is NamedSnapshotShareRevokedResponse;
55
+ export declare function NamedSnapshotShareRevokedResponseFromJSON(json: any): NamedSnapshotShareRevokedResponse;
56
+ export declare function NamedSnapshotShareRevokedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareRevokedResponse;
57
+ export declare function NamedSnapshotShareRevokedResponseToJSON(json: any): NamedSnapshotShareRevokedResponse;
58
+ export declare function NamedSnapshotShareRevokedResponseToJSONTyped(value?: NamedSnapshotShareRevokedResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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 { NamedSnapshotShareFromJSON, NamedSnapshotShareToJSON, } from './NamedSnapshotShare';
15
+ /**
16
+ * @export
17
+ */
18
+ export const NamedSnapshotShareRevokedResponseTypeEnum = {
19
+ SnapshotShareRevoked: 'snapshot.share.revoked'
20
+ };
21
+ /**
22
+ * Check if a given object implements the NamedSnapshotShareRevokedResponse interface.
23
+ */
24
+ export function instanceOfNamedSnapshotShareRevokedResponse(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 (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('share' in value) || value['share'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function NamedSnapshotShareRevokedResponseFromJSON(json) {
36
+ return NamedSnapshotShareRevokedResponseFromJSONTyped(json, false);
37
+ }
38
+ export function NamedSnapshotShareRevokedResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'ok': json['ok'],
44
+ 'type': json['type'],
45
+ 'name': json['name'],
46
+ 'share': NamedSnapshotShareFromJSON(json['share']),
47
+ };
48
+ }
49
+ export function NamedSnapshotShareRevokedResponseToJSON(json) {
50
+ return NamedSnapshotShareRevokedResponseToJSONTyped(json, false);
51
+ }
52
+ export function NamedSnapshotShareRevokedResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'ok': value['ok'],
58
+ 'type': value['type'],
59
+ 'name': value['name'],
60
+ 'share': NamedSnapshotShareToJSON(value['share']),
61
+ };
62
+ }
@@ -0,0 +1,57 @@
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 Recover200Response
16
+ */
17
+ export interface Recover200Response {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof Recover200Response
22
+ */
23
+ ok?: boolean;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Recover200Response
28
+ */
29
+ type?: string;
30
+ /**
31
+ *
32
+ * @type {Recover200ResponseStatusEnum}
33
+ * @memberof Recover200Response
34
+ */
35
+ status?: Recover200ResponseStatusEnum;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Recover200Response
40
+ */
41
+ message?: string;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const Recover200ResponseStatusEnum: {
47
+ readonly Recovering: 'recovering';
48
+ };
49
+ export type Recover200ResponseStatusEnum = typeof Recover200ResponseStatusEnum[keyof typeof Recover200ResponseStatusEnum];
50
+ /**
51
+ * Check if a given object implements the Recover200Response interface.
52
+ */
53
+ export declare function instanceOfRecover200Response(value: object): value is Recover200Response;
54
+ export declare function Recover200ResponseFromJSON(json: any): Recover200Response;
55
+ export declare function Recover200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Recover200Response;
56
+ export declare function Recover200ResponseToJSON(json: any): Recover200Response;
57
+ export declare function Recover200ResponseToJSONTyped(value?: Recover200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const Recover200ResponseStatusEnum = {
18
+ Recovering: 'recovering'
19
+ };
20
+ /**
21
+ * Check if a given object implements the Recover200Response interface.
22
+ */
23
+ export function instanceOfRecover200Response(value) {
24
+ return true;
25
+ }
26
+ export function Recover200ResponseFromJSON(json) {
27
+ return Recover200ResponseFromJSONTyped(json, false);
28
+ }
29
+ export function Recover200ResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'ok': json['ok'] == null ? undefined : json['ok'],
35
+ 'type': json['type'] == null ? undefined : json['type'],
36
+ 'status': json['status'] == null ? undefined : json['status'],
37
+ 'message': json['message'] == null ? undefined : json['message'],
38
+ };
39
+ }
40
+ export function Recover200ResponseToJSON(json) {
41
+ return Recover200ResponseToJSONTyped(json, false);
42
+ }
43
+ export function Recover200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'ok': value['ok'],
49
+ 'type': value['type'],
50
+ 'status': value['status'],
51
+ 'message': value['message'],
52
+ };
53
+ }
@@ -22,7 +22,7 @@ export interface ResumeRequest {
22
22
  */
23
23
  failFast?: boolean;
24
24
  /**
25
- * Resume onto a different machine size. Omit to keep the sandbox's current type. A resume already restores onto a fresh machine, so changing size costs nothing extra. Shrinking is rejected with `type_too_small` when the sandbox's data would not fit the smaller disk.
25
+ * Resume onto a different machine size. Omit to keep the sandbox's current type. `xlarge` needs the $100/month plan or higher (403 `machine_class_plan_required`). A resume already restores onto a fresh machine, so changing size costs nothing extra. Shrinking is rejected with `type_too_small` when the sandbox's data would not fit the smaller disk.
26
26
  * @type {ResumeRequestTypeEnum}
27
27
  * @memberof ResumeRequest
28
28
  */
@@ -61,6 +61,7 @@ export declare const ResumeRequestTypeEnum: {
61
61
  readonly Small: 'small';
62
62
  readonly Default: 'default';
63
63
  readonly Large: 'large';
64
+ readonly Xlarge: 'xlarge';
64
65
  };
65
66
  export type ResumeRequestTypeEnum = typeof ResumeRequestTypeEnum[keyof typeof ResumeRequestTypeEnum];
66
67
  /**
@@ -17,7 +17,8 @@
17
17
  export const ResumeRequestTypeEnum = {
18
18
  Small: 'small',
19
19
  Default: 'default',
20
- Large: 'large'
20
+ Large: 'large',
21
+ Xlarge: 'xlarge'
21
22
  };
22
23
  /**
23
24
  * Check if a given object implements the ResumeRequest interface.
@@ -90,7 +90,7 @@ export interface Sandbox {
90
90
  */
91
91
  memoryGB?: number;
92
92
  /**
93
- * Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, and 2 for `large`.
93
+ * Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, 2 for `large`, and 50/9 (about 5.56) for `xlarge`.
94
94
  * @type {number}
95
95
  * @memberof Sandbox
96
96
  */
@@ -290,6 +290,7 @@ export declare const SandboxTypeEnum: {
290
290
  readonly Small: 'small';
291
291
  readonly Default: 'default';
292
292
  readonly Large: 'large';
293
+ readonly Xlarge: 'xlarge';
293
294
  };
294
295
  export type SandboxTypeEnum = typeof SandboxTypeEnum[keyof typeof SandboxTypeEnum];
295
296
  /**