@boatdev/sdk 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/dist/apis/BoatApi.d.ts +92 -12
  3. package/dist/apis/BoatApi.js +196 -15
  4. package/dist/esm/apis/BoatApi.d.ts +92 -12
  5. package/dist/esm/apis/BoatApi.js +196 -15
  6. package/dist/esm/models/CreateSandboxRequest.d.ts +3 -3
  7. package/dist/esm/models/CredentialId.d.ts +3 -0
  8. package/dist/esm/models/CredentialId.js +3 -0
  9. package/dist/esm/models/CredentialProfile.d.ts +7 -0
  10. package/dist/esm/models/CredentialProfile.js +3 -0
  11. package/dist/esm/models/DeletionOperation.d.ts +1 -1
  12. package/dist/esm/models/ResourceAccess.d.ts +38 -0
  13. package/dist/esm/models/ResourceAccess.js +47 -0
  14. package/dist/esm/models/ResourceAccessUpdate.d.ts +38 -0
  15. package/dist/esm/models/ResourceAccessUpdate.js +45 -0
  16. package/dist/esm/models/Sandbox.d.ts +7 -0
  17. package/dist/esm/models/Sandbox.js +3 -0
  18. package/dist/esm/models/SandboxEnvironment.d.ts +7 -0
  19. package/dist/esm/models/SandboxEnvironment.js +3 -0
  20. package/dist/esm/models/SandboxLastReboot.d.ts +47 -0
  21. package/dist/esm/models/SandboxLastReboot.js +51 -0
  22. package/dist/esm/models/SandboxListResponse.d.ts +7 -0
  23. package/dist/esm/models/SandboxListResponse.js +3 -0
  24. package/dist/esm/models/SandboxListResponseAllOfDeletedCost.d.ts +44 -0
  25. package/dist/esm/models/SandboxListResponseAllOfDeletedCost.js +51 -0
  26. package/dist/esm/models/SavedSnapshot.d.ts +83 -0
  27. package/dist/esm/models/SavedSnapshot.js +71 -0
  28. package/dist/esm/models/SavedSnapshotAllowance.d.ts +81 -0
  29. package/dist/esm/models/SavedSnapshotAllowance.js +57 -0
  30. package/dist/esm/models/SavedSnapshotDeletedResponse.d.ts +64 -0
  31. package/dist/esm/models/SavedSnapshotDeletedResponse.js +67 -0
  32. package/dist/esm/models/SavedSnapshotInfoResponse.d.ts +52 -0
  33. package/dist/esm/models/SavedSnapshotInfoResponse.js +58 -0
  34. package/dist/esm/models/SavedSnapshotListResponse.d.ts +59 -0
  35. package/dist/esm/models/SavedSnapshotListResponse.js +61 -0
  36. package/dist/esm/models/SavedSnapshotSaveRequest.d.ts +38 -0
  37. package/dist/esm/models/SavedSnapshotSaveRequest.js +47 -0
  38. package/dist/esm/models/SavedSnapshotSavingResponse.d.ts +65 -0
  39. package/dist/esm/models/SavedSnapshotSavingResponse.js +68 -0
  40. package/dist/esm/models/SnapshotSummary.d.ts +1 -1
  41. package/dist/esm/models/UpdateCredentialProfileRequest.d.ts +7 -0
  42. package/dist/esm/models/UpdateCredentialProfileRequest.js +3 -0
  43. package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +7 -0
  44. package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +3 -0
  45. package/dist/esm/models/index.d.ts +11 -0
  46. package/dist/esm/models/index.js +11 -0
  47. package/dist/models/CreateSandboxRequest.d.ts +3 -3
  48. package/dist/models/CredentialId.d.ts +3 -0
  49. package/dist/models/CredentialId.js +3 -0
  50. package/dist/models/CredentialProfile.d.ts +7 -0
  51. package/dist/models/CredentialProfile.js +3 -0
  52. package/dist/models/DeletionOperation.d.ts +1 -1
  53. package/dist/models/ResourceAccess.d.ts +38 -0
  54. package/dist/models/ResourceAccess.js +54 -0
  55. package/dist/models/ResourceAccessUpdate.d.ts +38 -0
  56. package/dist/models/ResourceAccessUpdate.js +52 -0
  57. package/dist/models/Sandbox.d.ts +7 -0
  58. package/dist/models/Sandbox.js +3 -0
  59. package/dist/models/SandboxEnvironment.d.ts +7 -0
  60. package/dist/models/SandboxEnvironment.js +3 -0
  61. package/dist/models/SandboxLastReboot.d.ts +47 -0
  62. package/dist/models/SandboxLastReboot.js +59 -0
  63. package/dist/models/SandboxListResponse.d.ts +7 -0
  64. package/dist/models/SandboxListResponse.js +3 -0
  65. package/dist/models/SandboxListResponseAllOfDeletedCost.d.ts +44 -0
  66. package/dist/models/SandboxListResponseAllOfDeletedCost.js +58 -0
  67. package/dist/models/SavedSnapshot.d.ts +83 -0
  68. package/dist/models/SavedSnapshot.js +79 -0
  69. package/dist/models/SavedSnapshotAllowance.d.ts +81 -0
  70. package/dist/models/SavedSnapshotAllowance.js +64 -0
  71. package/dist/models/SavedSnapshotDeletedResponse.d.ts +64 -0
  72. package/dist/models/SavedSnapshotDeletedResponse.js +75 -0
  73. package/dist/models/SavedSnapshotInfoResponse.d.ts +52 -0
  74. package/dist/models/SavedSnapshotInfoResponse.js +66 -0
  75. package/dist/models/SavedSnapshotListResponse.d.ts +59 -0
  76. package/dist/models/SavedSnapshotListResponse.js +69 -0
  77. package/dist/models/SavedSnapshotSaveRequest.d.ts +38 -0
  78. package/dist/models/SavedSnapshotSaveRequest.js +54 -0
  79. package/dist/models/SavedSnapshotSavingResponse.d.ts +65 -0
  80. package/dist/models/SavedSnapshotSavingResponse.js +76 -0
  81. package/dist/models/SnapshotSummary.d.ts +1 -1
  82. package/dist/models/UpdateCredentialProfileRequest.d.ts +7 -0
  83. package/dist/models/UpdateCredentialProfileRequest.js +3 -0
  84. package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +7 -0
  85. package/dist/models/UpdateSandboxEnvironmentRequest.js +3 -0
  86. package/dist/models/index.d.ts +11 -0
  87. package/dist/models/index.js +11 -0
  88. package/docs/BoatApi.md +307 -15
  89. package/docs/CredentialProfile.md +2 -0
  90. package/docs/ResourceAccess.md +35 -0
  91. package/docs/ResourceAccessUpdate.md +35 -0
  92. package/docs/Sandbox.md +2 -0
  93. package/docs/SandboxEnvironment.md +2 -0
  94. package/docs/SandboxLastReboot.md +35 -0
  95. package/docs/SandboxListResponse.md +2 -0
  96. package/docs/SandboxListResponseAllOfDeletedCost.md +37 -0
  97. package/docs/SavedSnapshot.md +47 -0
  98. package/docs/SavedSnapshotAllowance.md +49 -0
  99. package/docs/SavedSnapshotDeletedResponse.md +38 -0
  100. package/docs/SavedSnapshotInfoResponse.md +36 -0
  101. package/docs/SavedSnapshotListResponse.md +38 -0
  102. package/docs/SavedSnapshotSaveRequest.md +34 -0
  103. package/docs/SavedSnapshotSavingResponse.md +38 -0
  104. package/docs/UpdateCredentialProfileRequest.md +2 -0
  105. package/docs/UpdateSandboxEnvironmentRequest.md +2 -0
  106. package/package.json +1 -1
  107. package/src/apis/BoatApi.ts +277 -15
  108. package/src/models/CreateSandboxRequest.ts +3 -3
  109. package/src/models/CredentialId.ts +3 -0
  110. package/src/models/CredentialProfile.ts +15 -0
  111. package/src/models/DeletionOperation.ts +1 -1
  112. package/src/models/ResourceAccess.ts +75 -0
  113. package/src/models/ResourceAccessUpdate.ts +74 -0
  114. package/src/models/Sandbox.ts +15 -0
  115. package/src/models/SandboxEnvironment.ts +15 -0
  116. package/src/models/SandboxLastReboot.ts +85 -0
  117. package/src/models/SandboxListResponse.ts +15 -0
  118. package/src/models/SandboxListResponseAllOfDeletedCost.ts +84 -0
  119. package/src/models/SavedSnapshot.ts +137 -0
  120. package/src/models/SavedSnapshotAllowance.ts +130 -0
  121. package/src/models/SavedSnapshotDeletedResponse.ts +111 -0
  122. package/src/models/SavedSnapshotInfoResponse.ts +102 -0
  123. package/src/models/SavedSnapshotListResponse.ts +117 -0
  124. package/src/models/SavedSnapshotSaveRequest.ts +75 -0
  125. package/src/models/SavedSnapshotSavingResponse.ts +119 -0
  126. package/src/models/SnapshotSummary.ts +1 -1
  127. package/src/models/UpdateCredentialProfileRequest.ts +16 -0
  128. package/src/models/UpdateSandboxEnvironmentRequest.ts +15 -0
  129. package/src/models/index.ts +11 -0
@@ -0,0 +1,130 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * What the request's wallet (your active organization, `?org=`, or personal) pays for saved snapshots. 10 are free per wallet; each one above costs $1.70 a month, charged daily from usage. An organization's count includes every member's names billed to it.
18
+ * @export
19
+ * @interface SavedSnapshotAllowance
20
+ */
21
+ export interface SavedSnapshotAllowance {
22
+ /**
23
+ * Organization the numbers are for. null = personal.
24
+ * @type {string}
25
+ * @memberof SavedSnapshotAllowance
26
+ */
27
+ org?: string | null;
28
+ /**
29
+ * That organization's name.
30
+ * @type {string}
31
+ * @memberof SavedSnapshotAllowance
32
+ */
33
+ orgName?: string | null;
34
+ /**
35
+ * Saved snapshots the plan includes: 10 per $20 of plan per seat, never fewer than 10.
36
+ * @type {number}
37
+ * @memberof SavedSnapshotAllowance
38
+ */
39
+ included?: number;
40
+ /**
41
+ * Same value as included. Kept for older clients.
42
+ * @type {number}
43
+ * @memberof SavedSnapshotAllowance
44
+ * @deprecated
45
+ */
46
+ free?: number;
47
+ /**
48
+ * Saved snapshots this wallet keeps.
49
+ * @type {number}
50
+ * @memberof SavedSnapshotAllowance
51
+ */
52
+ used?: number;
53
+ /**
54
+ * Saved snapshots above the included ones.
55
+ * @type {number}
56
+ * @memberof SavedSnapshotAllowance
57
+ */
58
+ extra?: number;
59
+ /**
60
+ * What the extra ones cost per month.
61
+ * @type {number}
62
+ * @memberof SavedSnapshotAllowance
63
+ */
64
+ extraMonthlyDollars?: number;
65
+ /**
66
+ * Boat time the extra ones take per day, in dollars (the daily charge).
67
+ * @type {number}
68
+ * @memberof SavedSnapshotAllowance
69
+ */
70
+ extraDailyDollars?: number;
71
+ /**
72
+ * Monthly price of one extra saved snapshot.
73
+ * @type {number}
74
+ * @memberof SavedSnapshotAllowance
75
+ */
76
+ pricePerExtraMonthlyDollars?: number;
77
+ }
78
+
79
+ /**
80
+ * Check if a given object implements the SavedSnapshotAllowance interface.
81
+ */
82
+ export function instanceOfSavedSnapshotAllowance(value: object): value is SavedSnapshotAllowance {
83
+ return true;
84
+ }
85
+
86
+ export function SavedSnapshotAllowanceFromJSON(json: any): SavedSnapshotAllowance {
87
+ return SavedSnapshotAllowanceFromJSONTyped(json, false);
88
+ }
89
+
90
+ export function SavedSnapshotAllowanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavedSnapshotAllowance {
91
+ if (json == null) {
92
+ return json;
93
+ }
94
+ return {
95
+
96
+ 'org': json['org'] == null ? undefined : json['org'],
97
+ 'orgName': json['orgName'] == null ? undefined : json['orgName'],
98
+ 'included': json['included'] == null ? undefined : json['included'],
99
+ 'free': json['free'] == null ? undefined : json['free'],
100
+ 'used': json['used'] == null ? undefined : json['used'],
101
+ 'extra': json['extra'] == null ? undefined : json['extra'],
102
+ 'extraMonthlyDollars': json['extraMonthlyDollars'] == null ? undefined : json['extraMonthlyDollars'],
103
+ 'extraDailyDollars': json['extraDailyDollars'] == null ? undefined : json['extraDailyDollars'],
104
+ 'pricePerExtraMonthlyDollars': json['pricePerExtraMonthlyDollars'] == null ? undefined : json['pricePerExtraMonthlyDollars'],
105
+ };
106
+ }
107
+
108
+ export function SavedSnapshotAllowanceToJSON(json: any): SavedSnapshotAllowance {
109
+ return SavedSnapshotAllowanceToJSONTyped(json, false);
110
+ }
111
+
112
+ export function SavedSnapshotAllowanceToJSONTyped(value?: SavedSnapshotAllowance | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'org': value['org'],
120
+ 'orgName': value['orgName'],
121
+ 'included': value['included'],
122
+ 'free': value['free'],
123
+ 'used': value['used'],
124
+ 'extra': value['extra'],
125
+ 'extraMonthlyDollars': value['extraMonthlyDollars'],
126
+ 'extraDailyDollars': value['extraDailyDollars'],
127
+ 'pricePerExtraMonthlyDollars': value['pricePerExtraMonthlyDollars'],
128
+ };
129
+ }
130
+
@@ -0,0 +1,111 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SavedSnapshotDeletedResponse
20
+ */
21
+ export interface SavedSnapshotDeletedResponse {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof SavedSnapshotDeletedResponse
26
+ */
27
+ ok: boolean;
28
+ /**
29
+ *
30
+ * @type {SavedSnapshotDeletedResponseTypeEnum}
31
+ * @memberof SavedSnapshotDeletedResponse
32
+ */
33
+ type: SavedSnapshotDeletedResponseTypeEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SavedSnapshotDeletedResponse
38
+ */
39
+ name: string;
40
+ /**
41
+ *
42
+ * @type {SavedSnapshotDeletedResponseStatusEnum}
43
+ * @memberof SavedSnapshotDeletedResponse
44
+ */
45
+ status: SavedSnapshotDeletedResponseStatusEnum;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const SavedSnapshotDeletedResponseTypeEnum = {
53
+ SnapshotSavedDeleted: 'snapshot.saved.deleted'
54
+ } as const;
55
+ export type SavedSnapshotDeletedResponseTypeEnum = typeof SavedSnapshotDeletedResponseTypeEnum[keyof typeof SavedSnapshotDeletedResponseTypeEnum];
56
+
57
+ /**
58
+ * @export
59
+ */
60
+ export const SavedSnapshotDeletedResponseStatusEnum = {
61
+ Deleted: 'deleted'
62
+ } as const;
63
+ export type SavedSnapshotDeletedResponseStatusEnum = typeof SavedSnapshotDeletedResponseStatusEnum[keyof typeof SavedSnapshotDeletedResponseStatusEnum];
64
+
65
+
66
+ /**
67
+ * Check if a given object implements the SavedSnapshotDeletedResponse interface.
68
+ */
69
+ export function instanceOfSavedSnapshotDeletedResponse(value: object): value is SavedSnapshotDeletedResponse {
70
+ if (!('ok' in value) || value['ok'] === undefined) return false;
71
+ if (!('type' in value) || value['type'] === undefined) return false;
72
+ if (!('name' in value) || value['name'] === undefined) return false;
73
+ if (!('status' in value) || value['status'] === undefined) return false;
74
+ return true;
75
+ }
76
+
77
+ export function SavedSnapshotDeletedResponseFromJSON(json: any): SavedSnapshotDeletedResponse {
78
+ return SavedSnapshotDeletedResponseFromJSONTyped(json, false);
79
+ }
80
+
81
+ export function SavedSnapshotDeletedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavedSnapshotDeletedResponse {
82
+ if (json == null) {
83
+ return json;
84
+ }
85
+ return {
86
+
87
+ 'ok': json['ok'],
88
+ 'type': json['type'],
89
+ 'name': json['name'],
90
+ 'status': json['status'],
91
+ };
92
+ }
93
+
94
+ export function SavedSnapshotDeletedResponseToJSON(json: any): SavedSnapshotDeletedResponse {
95
+ return SavedSnapshotDeletedResponseToJSONTyped(json, false);
96
+ }
97
+
98
+ export function SavedSnapshotDeletedResponseToJSONTyped(value?: SavedSnapshotDeletedResponse | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'ok': value['ok'],
106
+ 'type': value['type'],
107
+ 'name': value['name'],
108
+ 'status': value['status'],
109
+ };
110
+ }
111
+
@@ -0,0 +1,102 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { SavedSnapshot } from './SavedSnapshot';
17
+ import {
18
+ SavedSnapshotFromJSON,
19
+ SavedSnapshotFromJSONTyped,
20
+ SavedSnapshotToJSON,
21
+ SavedSnapshotToJSONTyped,
22
+ } from './SavedSnapshot';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SavedSnapshotInfoResponse
28
+ */
29
+ export interface SavedSnapshotInfoResponse {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof SavedSnapshotInfoResponse
34
+ */
35
+ ok: boolean;
36
+ /**
37
+ *
38
+ * @type {SavedSnapshotInfoResponseTypeEnum}
39
+ * @memberof SavedSnapshotInfoResponse
40
+ */
41
+ type: SavedSnapshotInfoResponseTypeEnum;
42
+ /**
43
+ *
44
+ * @type {SavedSnapshot}
45
+ * @memberof SavedSnapshotInfoResponse
46
+ */
47
+ snapshot: SavedSnapshot;
48
+ }
49
+
50
+
51
+ /**
52
+ * @export
53
+ */
54
+ export const SavedSnapshotInfoResponseTypeEnum = {
55
+ SnapshotSavedInfo: 'snapshot.saved.info'
56
+ } as const;
57
+ export type SavedSnapshotInfoResponseTypeEnum = typeof SavedSnapshotInfoResponseTypeEnum[keyof typeof SavedSnapshotInfoResponseTypeEnum];
58
+
59
+
60
+ /**
61
+ * Check if a given object implements the SavedSnapshotInfoResponse interface.
62
+ */
63
+ export function instanceOfSavedSnapshotInfoResponse(value: object): value is SavedSnapshotInfoResponse {
64
+ if (!('ok' in value) || value['ok'] === undefined) return false;
65
+ if (!('type' in value) || value['type'] === undefined) return false;
66
+ if (!('snapshot' in value) || value['snapshot'] === undefined) return false;
67
+ return true;
68
+ }
69
+
70
+ export function SavedSnapshotInfoResponseFromJSON(json: any): SavedSnapshotInfoResponse {
71
+ return SavedSnapshotInfoResponseFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function SavedSnapshotInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavedSnapshotInfoResponse {
75
+ if (json == null) {
76
+ return json;
77
+ }
78
+ return {
79
+
80
+ 'ok': json['ok'],
81
+ 'type': json['type'],
82
+ 'snapshot': SavedSnapshotFromJSON(json['snapshot']),
83
+ };
84
+ }
85
+
86
+ export function SavedSnapshotInfoResponseToJSON(json: any): SavedSnapshotInfoResponse {
87
+ return SavedSnapshotInfoResponseToJSONTyped(json, false);
88
+ }
89
+
90
+ export function SavedSnapshotInfoResponseToJSONTyped(value?: SavedSnapshotInfoResponse | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'ok': value['ok'],
98
+ 'type': value['type'],
99
+ 'snapshot': SavedSnapshotToJSON(value['snapshot']),
100
+ };
101
+ }
102
+
@@ -0,0 +1,117 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { SavedSnapshot } from './SavedSnapshot';
17
+ import {
18
+ SavedSnapshotFromJSON,
19
+ SavedSnapshotFromJSONTyped,
20
+ SavedSnapshotToJSON,
21
+ SavedSnapshotToJSONTyped,
22
+ } from './SavedSnapshot';
23
+ import type { SavedSnapshotAllowance } from './SavedSnapshotAllowance';
24
+ import {
25
+ SavedSnapshotAllowanceFromJSON,
26
+ SavedSnapshotAllowanceFromJSONTyped,
27
+ SavedSnapshotAllowanceToJSON,
28
+ SavedSnapshotAllowanceToJSONTyped,
29
+ } from './SavedSnapshotAllowance';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface SavedSnapshotListResponse
35
+ */
36
+ export interface SavedSnapshotListResponse {
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof SavedSnapshotListResponse
41
+ */
42
+ ok: boolean;
43
+ /**
44
+ *
45
+ * @type {SavedSnapshotListResponseTypeEnum}
46
+ * @memberof SavedSnapshotListResponse
47
+ */
48
+ type: SavedSnapshotListResponseTypeEnum;
49
+ /**
50
+ *
51
+ * @type {Array<SavedSnapshot>}
52
+ * @memberof SavedSnapshotListResponse
53
+ */
54
+ snapshots: Array<SavedSnapshot>;
55
+ /**
56
+ *
57
+ * @type {SavedSnapshotAllowance}
58
+ * @memberof SavedSnapshotListResponse
59
+ */
60
+ allowance?: SavedSnapshotAllowance;
61
+ }
62
+
63
+
64
+ /**
65
+ * @export
66
+ */
67
+ export const SavedSnapshotListResponseTypeEnum = {
68
+ SnapshotSavedList: 'snapshot.saved.list'
69
+ } as const;
70
+ export type SavedSnapshotListResponseTypeEnum = typeof SavedSnapshotListResponseTypeEnum[keyof typeof SavedSnapshotListResponseTypeEnum];
71
+
72
+
73
+ /**
74
+ * Check if a given object implements the SavedSnapshotListResponse interface.
75
+ */
76
+ export function instanceOfSavedSnapshotListResponse(value: object): value is SavedSnapshotListResponse {
77
+ if (!('ok' in value) || value['ok'] === undefined) return false;
78
+ if (!('type' in value) || value['type'] === undefined) return false;
79
+ if (!('snapshots' in value) || value['snapshots'] === undefined) return false;
80
+ return true;
81
+ }
82
+
83
+ export function SavedSnapshotListResponseFromJSON(json: any): SavedSnapshotListResponse {
84
+ return SavedSnapshotListResponseFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function SavedSnapshotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavedSnapshotListResponse {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'ok': json['ok'],
94
+ 'type': json['type'],
95
+ 'snapshots': ((json['snapshots'] as Array<any>).map(SavedSnapshotFromJSON)),
96
+ 'allowance': json['allowance'] == null ? undefined : SavedSnapshotAllowanceFromJSON(json['allowance']),
97
+ };
98
+ }
99
+
100
+ export function SavedSnapshotListResponseToJSON(json: any): SavedSnapshotListResponse {
101
+ return SavedSnapshotListResponseToJSONTyped(json, false);
102
+ }
103
+
104
+ export function SavedSnapshotListResponseToJSONTyped(value?: SavedSnapshotListResponse | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'ok': value['ok'],
112
+ 'type': value['type'],
113
+ 'snapshots': ((value['snapshots'] as Array<any>).map(SavedSnapshotToJSON)),
114
+ 'allowance': SavedSnapshotAllowanceToJSON(value['allowance']),
115
+ };
116
+ }
117
+
@@ -0,0 +1,75 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SavedSnapshotSaveRequest
20
+ */
21
+ export interface SavedSnapshotSaveRequest {
22
+ /**
23
+ * The sandbox whose current state to freeze.
24
+ * @type {string}
25
+ * @memberof SavedSnapshotSaveRequest
26
+ */
27
+ sandboxId: string;
28
+ /**
29
+ * Name to save under. 1-63 lowercase letters, digits, or dashes, starting with a letter or digit. Reusing one of your existing names replaces that snapshot's artifact. `latest`, `tree`, `pull`, `rm`, `save`, `current`, `self`, and `new` are reserved.
30
+ * @type {string}
31
+ * @memberof SavedSnapshotSaveRequest
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SavedSnapshotSaveRequest interface.
38
+ */
39
+ export function instanceOfSavedSnapshotSaveRequest(value: object): value is SavedSnapshotSaveRequest {
40
+ if (!('sandboxId' in value) || value['sandboxId'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SavedSnapshotSaveRequestFromJSON(json: any): SavedSnapshotSaveRequest {
46
+ return SavedSnapshotSaveRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SavedSnapshotSaveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavedSnapshotSaveRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'sandboxId': json['sandboxId'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function SavedSnapshotSaveRequestToJSON(json: any): SavedSnapshotSaveRequest {
61
+ return SavedSnapshotSaveRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SavedSnapshotSaveRequestToJSONTyped(value?: SavedSnapshotSaveRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'sandboxId': value['sandboxId'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,119 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { SavedSnapshot } from './SavedSnapshot';
17
+ import {
18
+ SavedSnapshotFromJSON,
19
+ SavedSnapshotFromJSONTyped,
20
+ SavedSnapshotToJSON,
21
+ SavedSnapshotToJSONTyped,
22
+ } from './SavedSnapshot';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SavedSnapshotSavingResponse
28
+ */
29
+ export interface SavedSnapshotSavingResponse {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof SavedSnapshotSavingResponse
34
+ */
35
+ ok: boolean;
36
+ /**
37
+ *
38
+ * @type {SavedSnapshotSavingResponseTypeEnum}
39
+ * @memberof SavedSnapshotSavingResponse
40
+ */
41
+ type: SavedSnapshotSavingResponseTypeEnum;
42
+ /**
43
+ *
44
+ * @type {SavedSnapshotSavingResponseStatusEnum}
45
+ * @memberof SavedSnapshotSavingResponse
46
+ */
47
+ status: SavedSnapshotSavingResponseStatusEnum;
48
+ /**
49
+ *
50
+ * @type {SavedSnapshot}
51
+ * @memberof SavedSnapshotSavingResponse
52
+ */
53
+ snapshot: SavedSnapshot;
54
+ }
55
+
56
+
57
+ /**
58
+ * @export
59
+ */
60
+ export const SavedSnapshotSavingResponseTypeEnum = {
61
+ SnapshotSavedSaving: 'snapshot.saved.saving'
62
+ } as const;
63
+ export type SavedSnapshotSavingResponseTypeEnum = typeof SavedSnapshotSavingResponseTypeEnum[keyof typeof SavedSnapshotSavingResponseTypeEnum];
64
+
65
+ /**
66
+ * @export
67
+ */
68
+ export const SavedSnapshotSavingResponseStatusEnum = {
69
+ Saving: 'saving'
70
+ } as const;
71
+ export type SavedSnapshotSavingResponseStatusEnum = typeof SavedSnapshotSavingResponseStatusEnum[keyof typeof SavedSnapshotSavingResponseStatusEnum];
72
+
73
+
74
+ /**
75
+ * Check if a given object implements the SavedSnapshotSavingResponse interface.
76
+ */
77
+ export function instanceOfSavedSnapshotSavingResponse(value: object): value is SavedSnapshotSavingResponse {
78
+ if (!('ok' in value) || value['ok'] === undefined) return false;
79
+ if (!('type' in value) || value['type'] === undefined) return false;
80
+ if (!('status' in value) || value['status'] === undefined) return false;
81
+ if (!('snapshot' in value) || value['snapshot'] === undefined) return false;
82
+ return true;
83
+ }
84
+
85
+ export function SavedSnapshotSavingResponseFromJSON(json: any): SavedSnapshotSavingResponse {
86
+ return SavedSnapshotSavingResponseFromJSONTyped(json, false);
87
+ }
88
+
89
+ export function SavedSnapshotSavingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavedSnapshotSavingResponse {
90
+ if (json == null) {
91
+ return json;
92
+ }
93
+ return {
94
+
95
+ 'ok': json['ok'],
96
+ 'type': json['type'],
97
+ 'status': json['status'],
98
+ 'snapshot': SavedSnapshotFromJSON(json['snapshot']),
99
+ };
100
+ }
101
+
102
+ export function SavedSnapshotSavingResponseToJSON(json: any): SavedSnapshotSavingResponse {
103
+ return SavedSnapshotSavingResponseToJSONTyped(json, false);
104
+ }
105
+
106
+ export function SavedSnapshotSavingResponseToJSONTyped(value?: SavedSnapshotSavingResponse | null, ignoreDiscriminator: boolean = false): any {
107
+ if (value == null) {
108
+ return value;
109
+ }
110
+
111
+ return {
112
+
113
+ 'ok': value['ok'],
114
+ 'type': value['type'],
115
+ 'status': value['status'],
116
+ 'snapshot': SavedSnapshotToJSON(value['snapshot']),
117
+ };
118
+ }
119
+
@@ -92,7 +92,7 @@ export interface SnapshotSummary {
92
92
  */
93
93
  contentFileCount?: number | null;
94
94
  /**
95
- * `template` = this Sandbox has snapshots off, so Boat never captures it: the row is a copy of the template, named snapshot or Sandbox it was created from. `captured` = this Sandbox has snapshots on: its own captures, plus the copies Boat makes when the Sandbox is created from a source, forked or resumed.
95
+ * `template` = this Sandbox has snapshots off, so Boat never captures it: the row is a copy of the template, saved snapshot or Sandbox it was created from. `captured` = this Sandbox has snapshots on: its own captures, plus the copies Boat makes when the Sandbox is created from a source, forked or resumed.
96
96
  * @type {SnapshotSummaryOriginEnum}
97
97
  * @memberof SnapshotSummary
98
98
  */