@boatdev/sdk 1.9.9 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +30 -0
- package/dist/apis/BoatApi.d.ts +144 -18
- package/dist/apis/BoatApi.js +305 -22
- package/dist/esm/apis/BoatApi.d.ts +144 -18
- package/dist/esm/apis/BoatApi.js +304 -21
- package/dist/esm/models/CreateSandboxRequest.d.ts +9 -3
- package/dist/esm/models/CreateSandboxRequest.js +2 -0
- package/dist/esm/models/CreateSandboxResponse.d.ts +6 -0
- package/dist/esm/models/CreateSandboxResponse.js +2 -0
- package/dist/esm/models/CreateScopedApiKeyRequest.d.ts +1 -1
- package/dist/esm/models/CredentialId.d.ts +3 -0
- package/dist/esm/models/CredentialId.js +3 -0
- package/dist/esm/models/CredentialProfile.d.ts +7 -0
- package/dist/esm/models/CredentialProfile.js +3 -0
- package/dist/esm/models/DeletionOperation.d.ts +1 -1
- package/dist/esm/models/LimitsFields.d.ts +1 -1
- package/dist/esm/models/LimitsResponse.d.ts +1 -1
- package/dist/esm/models/MeResponseAllOfUser.d.ts +1 -0
- package/dist/esm/models/MeResponseAllOfUser.js +1 -0
- package/dist/esm/models/ResourceAccess.d.ts +38 -0
- package/dist/esm/models/ResourceAccess.js +47 -0
- package/dist/esm/models/ResourceAccessUpdate.d.ts +38 -0
- package/dist/esm/models/ResourceAccessUpdate.js +45 -0
- package/dist/esm/models/ResumeRequest.d.ts +1 -1
- package/dist/esm/models/Sandbox.d.ts +35 -1
- package/dist/esm/models/Sandbox.js +17 -0
- package/dist/esm/models/SandboxCost.d.ts +44 -0
- package/dist/esm/models/SandboxCost.js +51 -0
- package/dist/esm/models/SandboxEnvironment.d.ts +7 -0
- package/dist/esm/models/SandboxEnvironment.js +3 -0
- package/dist/esm/models/SandboxLastReboot.d.ts +47 -0
- package/dist/esm/models/SandboxLastReboot.js +51 -0
- package/dist/esm/models/SandboxListResponse.d.ts +7 -0
- package/dist/esm/models/SandboxListResponse.js +3 -0
- package/dist/esm/models/SandboxListResponseAllOfDeletedCost.d.ts +44 -0
- package/dist/esm/models/SandboxListResponseAllOfDeletedCost.js +51 -0
- package/dist/esm/models/SavedSnapshot.d.ts +83 -0
- package/dist/esm/models/SavedSnapshot.js +71 -0
- package/dist/esm/models/SavedSnapshotAllowance.d.ts +81 -0
- package/dist/esm/models/SavedSnapshotAllowance.js +57 -0
- package/dist/esm/models/SavedSnapshotDeletedResponse.d.ts +64 -0
- package/dist/esm/models/SavedSnapshotDeletedResponse.js +67 -0
- package/dist/esm/models/SavedSnapshotInfoResponse.d.ts +52 -0
- package/dist/esm/models/SavedSnapshotInfoResponse.js +58 -0
- package/dist/esm/models/SavedSnapshotListResponse.d.ts +59 -0
- package/dist/esm/models/SavedSnapshotListResponse.js +61 -0
- package/dist/esm/models/SavedSnapshotSaveRequest.d.ts +38 -0
- package/dist/esm/models/SavedSnapshotSaveRequest.js +47 -0
- package/dist/esm/models/SavedSnapshotSavingResponse.d.ts +65 -0
- package/dist/esm/models/SavedSnapshotSavingResponse.js +68 -0
- package/dist/esm/models/SnapshotSummary.d.ts +1 -1
- package/dist/esm/models/Unshare200Response.d.ts +39 -0
- package/dist/esm/models/Unshare200Response.js +44 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.d.ts +7 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.js +3 -0
- package/dist/esm/models/UpdateOrganization200Response.d.ts +50 -0
- package/dist/esm/models/UpdateOrganization200Response.js +47 -0
- package/dist/esm/models/UpdateOrganizationRequest.d.ts +32 -0
- package/dist/esm/models/UpdateOrganizationRequest.js +43 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +7 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +3 -0
- package/dist/esm/models/index.d.ts +15 -0
- package/dist/esm/models/index.js +15 -0
- package/dist/models/CreateSandboxRequest.d.ts +9 -3
- package/dist/models/CreateSandboxRequest.js +2 -0
- package/dist/models/CreateSandboxResponse.d.ts +6 -0
- package/dist/models/CreateSandboxResponse.js +2 -0
- package/dist/models/CreateScopedApiKeyRequest.d.ts +1 -1
- package/dist/models/CredentialId.d.ts +3 -0
- package/dist/models/CredentialId.js +3 -0
- package/dist/models/CredentialProfile.d.ts +7 -0
- package/dist/models/CredentialProfile.js +3 -0
- package/dist/models/DeletionOperation.d.ts +1 -1
- package/dist/models/LimitsFields.d.ts +1 -1
- package/dist/models/LimitsResponse.d.ts +1 -1
- package/dist/models/MeResponseAllOfUser.d.ts +1 -0
- package/dist/models/MeResponseAllOfUser.js +1 -0
- package/dist/models/ResourceAccess.d.ts +38 -0
- package/dist/models/ResourceAccess.js +54 -0
- package/dist/models/ResourceAccessUpdate.d.ts +38 -0
- package/dist/models/ResourceAccessUpdate.js +52 -0
- package/dist/models/ResumeRequest.d.ts +1 -1
- package/dist/models/Sandbox.d.ts +35 -1
- package/dist/models/Sandbox.js +18 -1
- package/dist/models/SandboxCost.d.ts +44 -0
- package/dist/models/SandboxCost.js +58 -0
- package/dist/models/SandboxEnvironment.d.ts +7 -0
- package/dist/models/SandboxEnvironment.js +3 -0
- package/dist/models/SandboxLastReboot.d.ts +47 -0
- package/dist/models/SandboxLastReboot.js +59 -0
- package/dist/models/SandboxListResponse.d.ts +7 -0
- package/dist/models/SandboxListResponse.js +3 -0
- package/dist/models/SandboxListResponseAllOfDeletedCost.d.ts +44 -0
- package/dist/models/SandboxListResponseAllOfDeletedCost.js +58 -0
- package/dist/models/SavedSnapshot.d.ts +83 -0
- package/dist/models/SavedSnapshot.js +79 -0
- package/dist/models/SavedSnapshotAllowance.d.ts +81 -0
- package/dist/models/SavedSnapshotAllowance.js +64 -0
- package/dist/models/SavedSnapshotDeletedResponse.d.ts +64 -0
- package/dist/models/SavedSnapshotDeletedResponse.js +75 -0
- package/dist/models/SavedSnapshotInfoResponse.d.ts +52 -0
- package/dist/models/SavedSnapshotInfoResponse.js +66 -0
- package/dist/models/SavedSnapshotListResponse.d.ts +59 -0
- package/dist/models/SavedSnapshotListResponse.js +69 -0
- package/dist/models/SavedSnapshotSaveRequest.d.ts +38 -0
- package/dist/models/SavedSnapshotSaveRequest.js +54 -0
- package/dist/models/SavedSnapshotSavingResponse.d.ts +65 -0
- package/dist/models/SavedSnapshotSavingResponse.js +76 -0
- package/dist/models/SnapshotSummary.d.ts +1 -1
- package/dist/models/Unshare200Response.d.ts +39 -0
- package/dist/models/Unshare200Response.js +51 -0
- package/dist/models/UpdateCredentialProfileRequest.d.ts +7 -0
- package/dist/models/UpdateCredentialProfileRequest.js +3 -0
- package/dist/models/UpdateOrganization200Response.d.ts +50 -0
- package/dist/models/UpdateOrganization200Response.js +54 -0
- package/dist/models/UpdateOrganizationRequest.d.ts +32 -0
- package/dist/models/UpdateOrganizationRequest.js +50 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +7 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.js +3 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/docs/BoatApi.md +468 -19
- package/docs/CreateSandboxRequest.md +2 -0
- package/docs/CreateSandboxResponse.md +2 -0
- package/docs/CredentialProfile.md +2 -0
- package/docs/ResourceAccess.md +35 -0
- package/docs/ResourceAccessUpdate.md +35 -0
- package/docs/Sandbox.md +8 -0
- package/docs/SandboxCost.md +37 -0
- package/docs/SandboxEnvironment.md +2 -0
- package/docs/SandboxLastReboot.md +35 -0
- package/docs/SandboxListResponse.md +2 -0
- package/docs/SandboxListResponseAllOfDeletedCost.md +37 -0
- package/docs/SavedSnapshot.md +47 -0
- package/docs/SavedSnapshotAllowance.md +49 -0
- package/docs/SavedSnapshotDeletedResponse.md +38 -0
- package/docs/SavedSnapshotInfoResponse.md +36 -0
- package/docs/SavedSnapshotListResponse.md +38 -0
- package/docs/SavedSnapshotSaveRequest.md +34 -0
- package/docs/SavedSnapshotSavingResponse.md +38 -0
- package/docs/Unshare200Response.md +34 -0
- package/docs/UpdateCredentialProfileRequest.md +2 -0
- package/docs/UpdateOrganization200Response.md +38 -0
- package/docs/UpdateOrganizationRequest.md +32 -0
- package/docs/UpdateSandboxEnvironmentRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +440 -21
- package/src/models/CreateSandboxRequest.ts +11 -3
- package/src/models/CreateSandboxResponse.ts +8 -0
- package/src/models/CreateScopedApiKeyRequest.ts +1 -1
- package/src/models/CredentialId.ts +3 -0
- package/src/models/CredentialProfile.ts +15 -0
- package/src/models/DeletionOperation.ts +1 -1
- package/src/models/LimitsFields.ts +1 -1
- package/src/models/LimitsResponse.ts +1 -1
- package/src/models/MeResponseAllOfUser.ts +1 -0
- package/src/models/ResourceAccess.ts +75 -0
- package/src/models/ResourceAccessUpdate.ts +74 -0
- package/src/models/ResumeRequest.ts +1 -1
- package/src/models/Sandbox.ts +56 -1
- package/src/models/SandboxCost.ts +84 -0
- package/src/models/SandboxEnvironment.ts +15 -0
- package/src/models/SandboxLastReboot.ts +85 -0
- package/src/models/SandboxListResponse.ts +15 -0
- package/src/models/SandboxListResponseAllOfDeletedCost.ts +84 -0
- package/src/models/SavedSnapshot.ts +137 -0
- package/src/models/SavedSnapshotAllowance.ts +130 -0
- package/src/models/SavedSnapshotDeletedResponse.ts +111 -0
- package/src/models/SavedSnapshotInfoResponse.ts +102 -0
- package/src/models/SavedSnapshotListResponse.ts +117 -0
- package/src/models/SavedSnapshotSaveRequest.ts +75 -0
- package/src/models/SavedSnapshotSavingResponse.ts +119 -0
- package/src/models/SnapshotSummary.ts +1 -1
- package/src/models/Unshare200Response.ts +81 -0
- package/src/models/UpdateCredentialProfileRequest.ts +16 -0
- package/src/models/UpdateOrganization200Response.ts +89 -0
- package/src/models/UpdateOrganizationRequest.ts +66 -0
- package/src/models/UpdateSandboxEnvironmentRequest.ts +15 -0
- package/src/models/index.ts +15 -0
|
@@ -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,
|
|
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
|
*/
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { Sandbox } from './Sandbox';
|
|
17
|
+
import {
|
|
18
|
+
SandboxFromJSON,
|
|
19
|
+
SandboxFromJSONTyped,
|
|
20
|
+
SandboxToJSON,
|
|
21
|
+
SandboxToJSONTyped,
|
|
22
|
+
} from './Sandbox';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Unshare200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface Unshare200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Sandbox}
|
|
33
|
+
* @memberof Unshare200Response
|
|
34
|
+
*/
|
|
35
|
+
sandbox?: Sandbox;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Unshare200Response
|
|
40
|
+
*/
|
|
41
|
+
message?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the Unshare200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfUnshare200Response(value: object): value is Unshare200Response {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function Unshare200ResponseFromJSON(json: any): Unshare200Response {
|
|
52
|
+
return Unshare200ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function Unshare200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Unshare200Response {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'sandbox': json['sandbox'] == null ? undefined : SandboxFromJSON(json['sandbox']),
|
|
62
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function Unshare200ResponseToJSON(json: any): Unshare200Response {
|
|
67
|
+
return Unshare200ResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function Unshare200ResponseToJSONTyped(value?: Unshare200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'sandbox': SandboxToJSON(value['sandbox']),
|
|
78
|
+
'message': value['message'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ResourceAccessUpdate } from './ResourceAccessUpdate';
|
|
17
|
+
import {
|
|
18
|
+
ResourceAccessUpdateFromJSON,
|
|
19
|
+
ResourceAccessUpdateFromJSONTyped,
|
|
20
|
+
ResourceAccessUpdateToJSON,
|
|
21
|
+
ResourceAccessUpdateToJSONTyped,
|
|
22
|
+
} from './ResourceAccessUpdate';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -31,6 +39,12 @@ export interface UpdateCredentialProfileRequest {
|
|
|
31
39
|
* @memberof UpdateCredentialProfileRequest
|
|
32
40
|
*/
|
|
33
41
|
isDefault?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Organization profiles only. Organization owner only.
|
|
44
|
+
* @type {ResourceAccessUpdate}
|
|
45
|
+
* @memberof UpdateCredentialProfileRequest
|
|
46
|
+
*/
|
|
47
|
+
access?: ResourceAccessUpdate;
|
|
34
48
|
}
|
|
35
49
|
|
|
36
50
|
/**
|
|
@@ -52,6 +66,7 @@ export function UpdateCredentialProfileRequestFromJSONTyped(json: any, ignoreDis
|
|
|
52
66
|
|
|
53
67
|
'name': json['name'] == null ? undefined : json['name'],
|
|
54
68
|
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
69
|
+
'access': json['access'] == null ? undefined : ResourceAccessUpdateFromJSON(json['access']),
|
|
55
70
|
};
|
|
56
71
|
}
|
|
57
72
|
|
|
@@ -68,6 +83,7 @@ export function UpdateCredentialProfileRequestToJSONTyped(value?: UpdateCredenti
|
|
|
68
83
|
|
|
69
84
|
'name': value['name'],
|
|
70
85
|
'isDefault': value['isDefault'],
|
|
86
|
+
'access': ResourceAccessUpdateToJSON(value['access']),
|
|
71
87
|
};
|
|
72
88
|
}
|
|
73
89
|
|
|
@@ -0,0 +1,89 @@
|
|
|
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 UpdateOrganization200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateOrganization200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdateOrganization200Response
|
|
26
|
+
*/
|
|
27
|
+
ok?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateOrganization200Response
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof UpdateOrganization200Response
|
|
38
|
+
*/
|
|
39
|
+
success?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof UpdateOrganization200Response
|
|
44
|
+
*/
|
|
45
|
+
newSandboxesPrivate?: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the UpdateOrganization200Response interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfUpdateOrganization200Response(value: object): value is UpdateOrganization200Response {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UpdateOrganization200ResponseFromJSON(json: any): UpdateOrganization200Response {
|
|
56
|
+
return UpdateOrganization200ResponseFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UpdateOrganization200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrganization200Response {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'ok': json['ok'] == null ? undefined : json['ok'],
|
|
66
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
67
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
68
|
+
'newSandboxesPrivate': json['newSandboxesPrivate'] == null ? undefined : json['newSandboxesPrivate'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function UpdateOrganization200ResponseToJSON(json: any): UpdateOrganization200Response {
|
|
73
|
+
return UpdateOrganization200ResponseToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function UpdateOrganization200ResponseToJSONTyped(value?: UpdateOrganization200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'ok': value['ok'],
|
|
84
|
+
'type': value['type'],
|
|
85
|
+
'success': value['success'],
|
|
86
|
+
'newSandboxesPrivate': value['newSandboxesPrivate'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateOrganizationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateOrganizationRequest {
|
|
22
|
+
/**
|
|
23
|
+
* True = new sandboxes start private. False = they start shared.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdateOrganizationRequest
|
|
26
|
+
*/
|
|
27
|
+
newSandboxesPrivate: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateOrganizationRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateOrganizationRequest(value: object): value is UpdateOrganizationRequest {
|
|
34
|
+
if (!('newSandboxesPrivate' in value) || value['newSandboxesPrivate'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UpdateOrganizationRequestFromJSON(json: any): UpdateOrganizationRequest {
|
|
39
|
+
return UpdateOrganizationRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UpdateOrganizationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrganizationRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'newSandboxesPrivate': json['newSandboxesPrivate'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateOrganizationRequestToJSON(json: any): UpdateOrganizationRequest {
|
|
53
|
+
return UpdateOrganizationRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateOrganizationRequestToJSONTyped(value?: UpdateOrganizationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'newSandboxesPrivate': value['newSandboxesPrivate'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
UpdateSandboxEnvironmentRequestRepositoriesInnerToJSON,
|
|
21
21
|
UpdateSandboxEnvironmentRequestRepositoriesInnerToJSONTyped,
|
|
22
22
|
} from './UpdateSandboxEnvironmentRequestRepositoriesInner';
|
|
23
|
+
import type { ResourceAccessUpdate } from './ResourceAccessUpdate';
|
|
24
|
+
import {
|
|
25
|
+
ResourceAccessUpdateFromJSON,
|
|
26
|
+
ResourceAccessUpdateFromJSONTyped,
|
|
27
|
+
ResourceAccessUpdateToJSON,
|
|
28
|
+
ResourceAccessUpdateToJSONTyped,
|
|
29
|
+
} from './ResourceAccessUpdate';
|
|
23
30
|
import type { SecretFile } from './SecretFile';
|
|
24
31
|
import {
|
|
25
32
|
SecretFileFromJSON,
|
|
@@ -88,6 +95,12 @@ export interface UpdateSandboxEnvironmentRequest {
|
|
|
88
95
|
* @memberof UpdateSandboxEnvironmentRequest
|
|
89
96
|
*/
|
|
90
97
|
proxyAiCredentials?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {ResourceAccessUpdate}
|
|
101
|
+
* @memberof UpdateSandboxEnvironmentRequest
|
|
102
|
+
*/
|
|
103
|
+
access?: ResourceAccessUpdate;
|
|
91
104
|
/**
|
|
92
105
|
* Full .env-style content for the new version.
|
|
93
106
|
* @type {string}
|
|
@@ -134,6 +147,7 @@ export function UpdateSandboxEnvironmentRequestFromJSONTyped(json: any, ignoreDi
|
|
|
134
147
|
'passAgentsCredentials': json['passAgentsCredentials'] == null ? undefined : json['passAgentsCredentials'],
|
|
135
148
|
'credentialProfileId': json['credentialProfileId'] == null ? undefined : json['credentialProfileId'],
|
|
136
149
|
'proxyAiCredentials': json['proxyAiCredentials'] == null ? undefined : json['proxyAiCredentials'],
|
|
150
|
+
'access': json['access'] == null ? undefined : ResourceAccessUpdateFromJSON(json['access']),
|
|
137
151
|
'envContents': json['envContents'] == null ? undefined : json['envContents'],
|
|
138
152
|
'secretFiles': json['secretFiles'] == null ? undefined : ((json['secretFiles'] as Array<any>).map(SecretFileFromJSON)),
|
|
139
153
|
'repositories': json['repositories'] == null ? undefined : ((json['repositories'] as Array<any>).map(UpdateSandboxEnvironmentRequestRepositoriesInnerFromJSON)),
|
|
@@ -160,6 +174,7 @@ export function UpdateSandboxEnvironmentRequestToJSONTyped(value?: UpdateSandbox
|
|
|
160
174
|
'passAgentsCredentials': value['passAgentsCredentials'],
|
|
161
175
|
'credentialProfileId': value['credentialProfileId'],
|
|
162
176
|
'proxyAiCredentials': value['proxyAiCredentials'],
|
|
177
|
+
'access': ResourceAccessUpdateToJSON(value['access']),
|
|
163
178
|
'envContents': value['envContents'],
|
|
164
179
|
'secretFiles': value['secretFiles'] == null ? undefined : ((value['secretFiles'] as Array<any>).map(SecretFileToJSON)),
|
|
165
180
|
'repositories': value['repositories'] == null ? undefined : ((value['repositories'] as Array<any>).map(UpdateSandboxEnvironmentRequestRepositoriesInnerToJSON)),
|