@boatdev/sdk 1.9.4 → 1.9.6
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 +44 -0
- package/dist/apis/BoatApi.d.ts +305 -7
- package/dist/apis/BoatApi.js +764 -15
- package/dist/esm/apis/BoatApi.d.ts +305 -7
- package/dist/esm/apis/BoatApi.js +764 -15
- package/dist/esm/models/AccountAiUsageResponse.d.ts +83 -0
- package/dist/esm/models/AccountAiUsageResponse.js +78 -0
- package/dist/esm/models/AiProxySettings.d.ts +81 -0
- package/dist/esm/models/AiProxySettings.js +76 -0
- package/dist/esm/models/AiProxySettingsAllOfPricing.d.ts +38 -0
- package/dist/esm/models/AiProxySettingsAllOfPricing.js +47 -0
- package/dist/esm/models/AiUsageRow.d.ts +80 -0
- package/dist/esm/models/AiUsageRow.js +75 -0
- package/dist/esm/models/AiUsageTotals.d.ts +62 -0
- package/dist/esm/models/AiUsageTotals.js +63 -0
- package/dist/esm/models/CreateCredentialProfileRequest.d.ts +44 -0
- package/dist/esm/models/CreateCredentialProfileRequest.js +47 -0
- package/dist/esm/models/CredentialId.d.ts +36 -0
- package/dist/esm/models/CredentialId.js +54 -0
- package/dist/esm/models/CredentialProfile.d.ts +82 -0
- package/dist/esm/models/CredentialProfile.js +77 -0
- package/dist/esm/models/CredentialProfileDeletedResponse.d.ts +44 -0
- package/dist/esm/models/CredentialProfileDeletedResponse.js +51 -0
- package/dist/esm/models/CredentialProfileListResponse.d.ts +45 -0
- package/dist/esm/models/CredentialProfileListResponse.js +52 -0
- package/dist/esm/models/CredentialProfileOwner.d.ts +58 -0
- package/dist/esm/models/CredentialProfileOwner.js +62 -0
- package/dist/esm/models/CredentialProfileResponse.d.ts +51 -0
- package/dist/esm/models/CredentialProfileResponse.js +56 -0
- package/dist/esm/models/DeletionOperation.d.ts +1 -1
- package/dist/esm/models/FileUrlRequest.d.ts +38 -0
- package/dist/esm/models/FileUrlRequest.js +45 -0
- package/dist/esm/models/FileUrlResponse.d.ts +78 -0
- package/dist/esm/models/FileUrlResponse.js +77 -0
- package/dist/esm/models/ProcessListResponse.d.ts +1 -1
- package/dist/esm/models/SandboxAiAccessResponse.d.ts +56 -0
- package/dist/esm/models/SandboxAiAccessResponse.js +59 -0
- package/dist/esm/models/SandboxAiUsage.d.ts +64 -0
- package/dist/esm/models/SandboxAiUsage.js +65 -0
- package/dist/esm/models/SandboxAiUsageResponse.d.ts +88 -0
- package/dist/esm/models/SandboxAiUsageResponse.js +81 -0
- package/dist/esm/models/SandboxEnvironment.d.ts +13 -1
- package/dist/esm/models/SandboxEnvironment.js +4 -0
- package/dist/esm/models/SetCredentialKeyRequest.d.ts +32 -0
- package/dist/esm/models/SetCredentialKeyRequest.js +43 -0
- package/dist/esm/models/SetCustomApiRequest.d.ts +38 -0
- package/dist/esm/models/SetCustomApiRequest.js +47 -0
- package/dist/esm/models/SetSandboxAiAccessRequest.d.ts +32 -0
- package/dist/esm/models/SetSandboxAiAccessRequest.js +43 -0
- package/dist/esm/models/SnapshotSummary.d.ts +14 -0
- package/dist/esm/models/SnapshotSummary.js +9 -0
- package/dist/esm/models/UpdateAiProxyRequest.d.ts +32 -0
- package/dist/esm/models/UpdateAiProxyRequest.js +43 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.d.ts +38 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.js +43 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +4 -0
- package/dist/esm/models/index.d.ts +22 -0
- package/dist/esm/models/index.js +22 -0
- package/dist/models/AccountAiUsageResponse.d.ts +83 -0
- package/dist/models/AccountAiUsageResponse.js +85 -0
- package/dist/models/AiProxySettings.d.ts +81 -0
- package/dist/models/AiProxySettings.js +83 -0
- package/dist/models/AiProxySettingsAllOfPricing.d.ts +38 -0
- package/dist/models/AiProxySettingsAllOfPricing.js +54 -0
- package/dist/models/AiUsageRow.d.ts +80 -0
- package/dist/models/AiUsageRow.js +82 -0
- package/dist/models/AiUsageTotals.d.ts +62 -0
- package/dist/models/AiUsageTotals.js +70 -0
- package/dist/models/CreateCredentialProfileRequest.d.ts +44 -0
- package/dist/models/CreateCredentialProfileRequest.js +54 -0
- package/dist/models/CredentialId.d.ts +36 -0
- package/dist/models/CredentialId.js +62 -0
- package/dist/models/CredentialProfile.d.ts +82 -0
- package/dist/models/CredentialProfile.js +84 -0
- package/dist/models/CredentialProfileDeletedResponse.d.ts +44 -0
- package/dist/models/CredentialProfileDeletedResponse.js +58 -0
- package/dist/models/CredentialProfileListResponse.d.ts +45 -0
- package/dist/models/CredentialProfileListResponse.js +59 -0
- package/dist/models/CredentialProfileOwner.d.ts +58 -0
- package/dist/models/CredentialProfileOwner.js +70 -0
- package/dist/models/CredentialProfileResponse.d.ts +51 -0
- package/dist/models/CredentialProfileResponse.js +63 -0
- package/dist/models/DeletionOperation.d.ts +1 -1
- package/dist/models/FileUrlRequest.d.ts +38 -0
- package/dist/models/FileUrlRequest.js +52 -0
- package/dist/models/FileUrlResponse.d.ts +78 -0
- package/dist/models/FileUrlResponse.js +85 -0
- package/dist/models/ProcessListResponse.d.ts +1 -1
- package/dist/models/SandboxAiAccessResponse.d.ts +56 -0
- package/dist/models/SandboxAiAccessResponse.js +66 -0
- package/dist/models/SandboxAiUsage.d.ts +64 -0
- package/dist/models/SandboxAiUsage.js +72 -0
- package/dist/models/SandboxAiUsageResponse.d.ts +88 -0
- package/dist/models/SandboxAiUsageResponse.js +88 -0
- package/dist/models/SandboxEnvironment.d.ts +13 -1
- package/dist/models/SandboxEnvironment.js +4 -0
- package/dist/models/SetCredentialKeyRequest.d.ts +32 -0
- package/dist/models/SetCredentialKeyRequest.js +50 -0
- package/dist/models/SetCustomApiRequest.d.ts +38 -0
- package/dist/models/SetCustomApiRequest.js +54 -0
- package/dist/models/SetSandboxAiAccessRequest.d.ts +32 -0
- package/dist/models/SetSandboxAiAccessRequest.js +50 -0
- package/dist/models/SnapshotSummary.d.ts +14 -0
- package/dist/models/SnapshotSummary.js +10 -1
- package/dist/models/UpdateAiProxyRequest.d.ts +32 -0
- package/dist/models/UpdateAiProxyRequest.js +50 -0
- package/dist/models/UpdateCredentialProfileRequest.d.ts +38 -0
- package/dist/models/UpdateCredentialProfileRequest.js +50 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.js +4 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/docs/AccountAiUsageResponse.md +48 -0
- package/docs/AiProxySettings.md +48 -0
- package/docs/AiProxySettingsAllOfPricing.md +34 -0
- package/docs/AiUsageRow.md +48 -0
- package/docs/AiUsageTotals.md +43 -0
- package/docs/BoatApi.md +1568 -359
- package/docs/CreateCredentialProfileRequest.md +36 -0
- package/docs/CredentialId.md +31 -0
- package/docs/CredentialProfile.md +49 -0
- package/docs/CredentialProfileDeletedResponse.md +36 -0
- package/docs/CredentialProfileListResponse.md +36 -0
- package/docs/CredentialProfileOwner.md +38 -0
- package/docs/CredentialProfileResponse.md +38 -0
- package/docs/FileUrlRequest.md +34 -0
- package/docs/FileUrlResponse.md +42 -0
- package/docs/SandboxAiAccessResponse.md +40 -0
- package/docs/SandboxAiUsage.md +42 -0
- package/docs/SandboxAiUsageResponse.md +50 -0
- package/docs/SandboxEnvironment.md +4 -0
- package/docs/SetCredentialKeyRequest.md +32 -0
- package/docs/SetCustomApiRequest.md +34 -0
- package/docs/SetSandboxAiAccessRequest.md +32 -0
- package/docs/SnapshotSummary.md +2 -0
- package/docs/UpdateAiProxyRequest.md +32 -0
- package/docs/UpdateCredentialProfileRequest.md +34 -0
- package/docs/UpdateSandboxEnvironmentRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +1257 -105
- package/src/models/AccountAiUsageResponse.ts +160 -0
- package/src/models/AiProxySettings.ts +146 -0
- package/src/models/AiProxySettingsAllOfPricing.ts +75 -0
- package/src/models/AiUsageRow.ts +138 -0
- package/src/models/AiUsageTotals.ts +111 -0
- package/src/models/CreateCredentialProfileRequest.ts +82 -0
- package/src/models/CredentialId.ts +64 -0
- package/src/models/CredentialProfile.ts +153 -0
- package/src/models/CredentialProfileDeletedResponse.ts +84 -0
- package/src/models/CredentialProfileListResponse.ts +92 -0
- package/src/models/CredentialProfileOwner.ts +104 -0
- package/src/models/CredentialProfileResponse.ts +101 -0
- package/src/models/DeletionOperation.ts +1 -1
- package/src/models/FileUrlRequest.ts +74 -0
- package/src/models/FileUrlResponse.ts +131 -0
- package/src/models/ProcessListResponse.ts +1 -1
- package/src/models/SandboxAiAccessResponse.ts +102 -0
- package/src/models/SandboxAiUsage.ts +126 -0
- package/src/models/SandboxAiUsageResponse.ts +162 -0
- package/src/models/SandboxEnvironment.ts +17 -1
- package/src/models/SetCredentialKeyRequest.ts +66 -0
- package/src/models/SetCustomApiRequest.ts +75 -0
- package/src/models/SetSandboxAiAccessRequest.ts +66 -0
- package/src/models/SnapshotSummary.ts +17 -0
- package/src/models/UpdateAiProxyRequest.ts +66 -0
- package/src/models/UpdateCredentialProfileRequest.ts +73 -0
- package/src/models/UpdateSandboxEnvironmentRequest.ts +16 -0
- package/src/models/index.ts +22 -0
|
@@ -0,0 +1,51 @@
|
|
|
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 { CredentialProfile } from './CredentialProfile';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CredentialProfileResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CredentialProfileResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof CredentialProfileResponse
|
|
23
|
+
*/
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Stable success envelope discriminator added by v1.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CredentialProfileResponse
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof CredentialProfileResponse
|
|
35
|
+
*/
|
|
36
|
+
success: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CredentialProfile}
|
|
40
|
+
* @memberof CredentialProfileResponse
|
|
41
|
+
*/
|
|
42
|
+
profile: CredentialProfile;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the CredentialProfileResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfCredentialProfileResponse(value: object): value is CredentialProfileResponse;
|
|
48
|
+
export declare function CredentialProfileResponseFromJSON(json: any): CredentialProfileResponse;
|
|
49
|
+
export declare function CredentialProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialProfileResponse;
|
|
50
|
+
export declare function CredentialProfileResponseToJSON(json: any): CredentialProfileResponse;
|
|
51
|
+
export declare function CredentialProfileResponseToJSONTyped(value?: CredentialProfileResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { CredentialProfileFromJSON, CredentialProfileToJSON, } from './CredentialProfile';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CredentialProfileResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCredentialProfileResponse(value) {
|
|
19
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('profile' in value) || value['profile'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function CredentialProfileResponseFromJSON(json) {
|
|
30
|
+
return CredentialProfileResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function CredentialProfileResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'ok': json['ok'],
|
|
38
|
+
'type': json['type'],
|
|
39
|
+
'success': json['success'],
|
|
40
|
+
'profile': CredentialProfileFromJSON(json['profile']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function CredentialProfileResponseToJSON(json) {
|
|
44
|
+
return CredentialProfileResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function CredentialProfileResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'ok': value['ok'],
|
|
52
|
+
'type': value['type'],
|
|
53
|
+
'success': value['success'],
|
|
54
|
+
'profile': CredentialProfileToJSON(value['profile']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -46,7 +46,7 @@ export interface DeletionOperation {
|
|
|
46
46
|
*/
|
|
47
47
|
status: DeletionOperationStatusEnum;
|
|
48
48
|
/**
|
|
49
|
-
* What the background purge is doing. The target is already gone from every list, restore and fork once the operation exists. `waiting_for_uploads`: stored data is erased once the last upload URL issued for it expires (`expectedBy`). `kept_for_newer_snapshots`: a newer snapshot
|
|
49
|
+
* What the background purge is doing. The target is already gone from every list, restore and fork once the operation exists. `waiting_for_uploads`: stored data is erased once the last upload URL issued for it expires (`expectedBy`). `kept_for_newer_snapshots`: a newer snapshot, or a sandbox forked or deployed from it, still builds on this data; it goes when they go. `waiting_for_restore`: a sandbox is still restoring from it. `retrying`: a transient fault, retried automatically.
|
|
50
50
|
* @type {DeletionOperationStageEnum}
|
|
51
51
|
* @memberof DeletionOperation
|
|
52
52
|
*/
|
|
@@ -0,0 +1,38 @@
|
|
|
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 FileUrlRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface FileUrlRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Absolute path, or path relative to the sandbox work directory (/home/user). It must resolve under /home/user or /tmp.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FileUrlRequest
|
|
22
|
+
*/
|
|
23
|
+
path: string;
|
|
24
|
+
/**
|
|
25
|
+
* How long the URL stays valid.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof FileUrlRequest
|
|
28
|
+
*/
|
|
29
|
+
ttlSeconds?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the FileUrlRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfFileUrlRequest(value: object): value is FileUrlRequest;
|
|
35
|
+
export declare function FileUrlRequestFromJSON(json: any): FileUrlRequest;
|
|
36
|
+
export declare function FileUrlRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileUrlRequest;
|
|
37
|
+
export declare function FileUrlRequestToJSON(json: any): FileUrlRequest;
|
|
38
|
+
export declare function FileUrlRequestToJSONTyped(value?: FileUrlRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Check if a given object implements the FileUrlRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfFileUrlRequest(value) {
|
|
18
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function FileUrlRequestFromJSON(json) {
|
|
23
|
+
return FileUrlRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function FileUrlRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'path': json['path'],
|
|
31
|
+
'ttlSeconds': json['ttlSeconds'] == null ? undefined : json['ttlSeconds'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function FileUrlRequestToJSON(json) {
|
|
35
|
+
return FileUrlRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function FileUrlRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'path': value['path'],
|
|
43
|
+
'ttlSeconds': value['ttlSeconds'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 FileUrlResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface FileUrlResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof FileUrlResponse
|
|
22
|
+
*/
|
|
23
|
+
ok: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {FileUrlResponseTypeEnum}
|
|
27
|
+
* @memberof FileUrlResponse
|
|
28
|
+
*/
|
|
29
|
+
type: FileUrlResponseTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* The signed URL. Send the request straight to it; it needs no Authorization header.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FileUrlResponse
|
|
34
|
+
*/
|
|
35
|
+
url: string;
|
|
36
|
+
/**
|
|
37
|
+
* GET downloads the file. PUT uploads the request body as the file.
|
|
38
|
+
* @type {FileUrlResponseMethodEnum}
|
|
39
|
+
* @memberof FileUrlResponse
|
|
40
|
+
*/
|
|
41
|
+
method: FileUrlResponseMethodEnum;
|
|
42
|
+
/**
|
|
43
|
+
* The canonical path the URL is bound to.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof FileUrlResponse
|
|
46
|
+
*/
|
|
47
|
+
path: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof FileUrlResponse
|
|
52
|
+
*/
|
|
53
|
+
expiresAt: Date;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const FileUrlResponseTypeEnum: {
|
|
59
|
+
readonly FileDownloadUrl: 'file.download_url';
|
|
60
|
+
readonly FileUploadUrl: 'file.upload_url';
|
|
61
|
+
};
|
|
62
|
+
export type FileUrlResponseTypeEnum = typeof FileUrlResponseTypeEnum[keyof typeof FileUrlResponseTypeEnum];
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const FileUrlResponseMethodEnum: {
|
|
67
|
+
readonly Get: 'GET';
|
|
68
|
+
readonly Put: 'PUT';
|
|
69
|
+
};
|
|
70
|
+
export type FileUrlResponseMethodEnum = typeof FileUrlResponseMethodEnum[keyof typeof FileUrlResponseMethodEnum];
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the FileUrlResponse interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfFileUrlResponse(value: object): value is FileUrlResponse;
|
|
75
|
+
export declare function FileUrlResponseFromJSON(json: any): FileUrlResponse;
|
|
76
|
+
export declare function FileUrlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileUrlResponse;
|
|
77
|
+
export declare function FileUrlResponseToJSON(json: any): FileUrlResponse;
|
|
78
|
+
export declare function FileUrlResponseToJSONTyped(value?: FileUrlResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 FileUrlResponseTypeEnum = {
|
|
18
|
+
FileDownloadUrl: 'file.download_url',
|
|
19
|
+
FileUploadUrl: 'file.upload_url'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const FileUrlResponseMethodEnum = {
|
|
25
|
+
Get: 'GET',
|
|
26
|
+
Put: 'PUT'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the FileUrlResponse interface.
|
|
30
|
+
*/
|
|
31
|
+
export function instanceOfFileUrlResponse(value) {
|
|
32
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('method' in value) || value['method'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function FileUrlResponseFromJSON(json) {
|
|
47
|
+
return FileUrlResponseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function FileUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'ok': json['ok'],
|
|
55
|
+
'type': json['type'],
|
|
56
|
+
'url': json['url'],
|
|
57
|
+
'method': json['method'],
|
|
58
|
+
'path': json['path'],
|
|
59
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function FileUrlResponseToJSON(json) {
|
|
63
|
+
return FileUrlResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function FileUrlResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'ok': value['ok'],
|
|
71
|
+
'type': value['type'],
|
|
72
|
+
'url': value['url'],
|
|
73
|
+
'method': value['method'],
|
|
74
|
+
'path': value['path'],
|
|
75
|
+
'expiresAt': value['expiresAt'].toISOString(),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -41,7 +41,7 @@ export interface ProcessListResponse {
|
|
|
41
41
|
*/
|
|
42
42
|
sampledAt: Date | null;
|
|
43
43
|
/**
|
|
44
|
-
* Processes on the sandbox. The list holds at most 500
|
|
44
|
+
* Processes on the sandbox. The list holds at most 500, busiest first.
|
|
45
45
|
* @type {number}
|
|
46
46
|
* @memberof ProcessListResponse
|
|
47
47
|
*/
|
|
@@ -0,0 +1,56 @@
|
|
|
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 SandboxAiAccessResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxAiAccessResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof SandboxAiAccessResponse
|
|
22
|
+
*/
|
|
23
|
+
ok: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Stable success envelope discriminator added by v1.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SandboxAiAccessResponse
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof SandboxAiAccessResponse
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SandboxAiAccessResponse
|
|
40
|
+
*/
|
|
41
|
+
sandboxId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof SandboxAiAccessResponse
|
|
46
|
+
*/
|
|
47
|
+
blocked: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SandboxAiAccessResponse interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSandboxAiAccessResponse(value: object): value is SandboxAiAccessResponse;
|
|
53
|
+
export declare function SandboxAiAccessResponseFromJSON(json: any): SandboxAiAccessResponse;
|
|
54
|
+
export declare function SandboxAiAccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxAiAccessResponse;
|
|
55
|
+
export declare function SandboxAiAccessResponseToJSON(json: any): SandboxAiAccessResponse;
|
|
56
|
+
export declare function SandboxAiAccessResponseToJSONTyped(value?: SandboxAiAccessResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
* Check if a given object implements the SandboxAiAccessResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSandboxAiAccessResponse(value) {
|
|
18
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('blocked' in value) || value['blocked'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function SandboxAiAccessResponseFromJSON(json) {
|
|
31
|
+
return SandboxAiAccessResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function SandboxAiAccessResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'ok': json['ok'],
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'success': json['success'],
|
|
41
|
+
'sandboxId': json['sandboxId'],
|
|
42
|
+
'blocked': json['blocked'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function SandboxAiAccessResponseToJSON(json) {
|
|
46
|
+
return SandboxAiAccessResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function SandboxAiAccessResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'ok': value['ok'],
|
|
54
|
+
'type': value['type'],
|
|
55
|
+
'success': value['success'],
|
|
56
|
+
'sandboxId': value['sandboxId'],
|
|
57
|
+
'blocked': value['blocked'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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 { AiUsageRow } from './AiUsageRow';
|
|
13
|
+
import type { AiUsageTotals } from './AiUsageTotals';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SandboxAiUsage
|
|
18
|
+
*/
|
|
19
|
+
export interface SandboxAiUsage {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof SandboxAiUsage
|
|
24
|
+
*/
|
|
25
|
+
sandboxId: string | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SandboxAiUsage
|
|
30
|
+
*/
|
|
31
|
+
name: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof SandboxAiUsage
|
|
36
|
+
*/
|
|
37
|
+
blocked: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<AiUsageRow>}
|
|
41
|
+
* @memberof SandboxAiUsage
|
|
42
|
+
*/
|
|
43
|
+
usage: Array<AiUsageRow>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {AiUsageTotals}
|
|
47
|
+
* @memberof SandboxAiUsage
|
|
48
|
+
*/
|
|
49
|
+
totals: AiUsageTotals;
|
|
50
|
+
/**
|
|
51
|
+
* Request charge for the period, at the price per 1,000 requests.
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof SandboxAiUsage
|
|
54
|
+
*/
|
|
55
|
+
dollars: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SandboxAiUsage interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfSandboxAiUsage(value: object): value is SandboxAiUsage;
|
|
61
|
+
export declare function SandboxAiUsageFromJSON(json: any): SandboxAiUsage;
|
|
62
|
+
export declare function SandboxAiUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxAiUsage;
|
|
63
|
+
export declare function SandboxAiUsageToJSON(json: any): SandboxAiUsage;
|
|
64
|
+
export declare function SandboxAiUsageToJSONTyped(value?: SandboxAiUsage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { AiUsageRowFromJSON, AiUsageRowToJSON, } from './AiUsageRow';
|
|
15
|
+
import { AiUsageTotalsFromJSON, AiUsageTotalsToJSON, } from './AiUsageTotals';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the SandboxAiUsage interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfSandboxAiUsage(value) {
|
|
20
|
+
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('blocked' in value) || value['blocked'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('usage' in value) || value['usage'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('totals' in value) || value['totals'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('dollars' in value) || value['dollars'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function SandboxAiUsageFromJSON(json) {
|
|
35
|
+
return SandboxAiUsageFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function SandboxAiUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'sandboxId': json['sandboxId'],
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'blocked': json['blocked'],
|
|
45
|
+
'usage': (json['usage'].map(AiUsageRowFromJSON)),
|
|
46
|
+
'totals': AiUsageTotalsFromJSON(json['totals']),
|
|
47
|
+
'dollars': json['dollars'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function SandboxAiUsageToJSON(json) {
|
|
51
|
+
return SandboxAiUsageToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function SandboxAiUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'sandboxId': value['sandboxId'],
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'blocked': value['blocked'],
|
|
61
|
+
'usage': (value['usage'].map(AiUsageRowToJSON)),
|
|
62
|
+
'totals': AiUsageTotalsToJSON(value['totals']),
|
|
63
|
+
'dollars': value['dollars'],
|
|
64
|
+
};
|
|
65
|
+
}
|