@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,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 SetCredentialKeyRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SetCredentialKeyRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The API key. Boat encrypts it at rest.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SetCredentialKeyRequest
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SetCredentialKeyRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSetCredentialKeyRequest(value: object): value is SetCredentialKeyRequest {
|
|
34
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function SetCredentialKeyRequestFromJSON(json: any): SetCredentialKeyRequest {
|
|
39
|
+
return SetCredentialKeyRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function SetCredentialKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetCredentialKeyRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'value': json['value'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SetCredentialKeyRequestToJSON(json: any): SetCredentialKeyRequest {
|
|
53
|
+
return SetCredentialKeyRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SetCredentialKeyRequestToJSONTyped(value?: SetCredentialKeyRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'value': value['value'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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 SetCustomApiRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SetCustomApiRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The secret. The sandbox gets it as the variable named in the path.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SetCustomApiRequest
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
/**
|
|
29
|
+
* Public HTTPS base URL of the API, on the default port, with a DNS name. The sandbox gets it as `<NAME>_BASE_URL`.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SetCustomApiRequest
|
|
32
|
+
*/
|
|
33
|
+
baseUrl: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SetCustomApiRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSetCustomApiRequest(value: object): value is SetCustomApiRequest {
|
|
40
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
41
|
+
if (!('baseUrl' in value) || value['baseUrl'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SetCustomApiRequestFromJSON(json: any): SetCustomApiRequest {
|
|
46
|
+
return SetCustomApiRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SetCustomApiRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetCustomApiRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'value': json['value'],
|
|
56
|
+
'baseUrl': json['baseUrl'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SetCustomApiRequestToJSON(json: any): SetCustomApiRequest {
|
|
61
|
+
return SetCustomApiRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SetCustomApiRequestToJSONTyped(value?: SetCustomApiRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'value': value['value'],
|
|
72
|
+
'baseUrl': value['baseUrl'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -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 SetSandboxAiAccessRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SetSandboxAiAccessRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SetSandboxAiAccessRequest
|
|
26
|
+
*/
|
|
27
|
+
blocked: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SetSandboxAiAccessRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSetSandboxAiAccessRequest(value: object): value is SetSandboxAiAccessRequest {
|
|
34
|
+
if (!('blocked' in value) || value['blocked'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function SetSandboxAiAccessRequestFromJSON(json: any): SetSandboxAiAccessRequest {
|
|
39
|
+
return SetSandboxAiAccessRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function SetSandboxAiAccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetSandboxAiAccessRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'blocked': json['blocked'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SetSandboxAiAccessRequestToJSON(json: any): SetSandboxAiAccessRequest {
|
|
53
|
+
return SetSandboxAiAccessRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SetSandboxAiAccessRequestToJSONTyped(value?: SetSandboxAiAccessRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'blocked': value['blocked'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -91,6 +91,12 @@ export interface SnapshotSummary {
|
|
|
91
91
|
* @memberof SnapshotSummary
|
|
92
92
|
*/
|
|
93
93
|
contentFileCount?: number | null;
|
|
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.
|
|
96
|
+
* @type {SnapshotSummaryOriginEnum}
|
|
97
|
+
* @memberof SnapshotSummary
|
|
98
|
+
*/
|
|
99
|
+
origin?: SnapshotSummaryOriginEnum;
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
|
|
@@ -111,6 +117,15 @@ export const SnapshotSummaryKindEnum = {
|
|
|
111
117
|
} as const;
|
|
112
118
|
export type SnapshotSummaryKindEnum = typeof SnapshotSummaryKindEnum[keyof typeof SnapshotSummaryKindEnum];
|
|
113
119
|
|
|
120
|
+
/**
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export const SnapshotSummaryOriginEnum = {
|
|
124
|
+
Captured: 'captured',
|
|
125
|
+
Template: 'template'
|
|
126
|
+
} as const;
|
|
127
|
+
export type SnapshotSummaryOriginEnum = typeof SnapshotSummaryOriginEnum[keyof typeof SnapshotSummaryOriginEnum];
|
|
128
|
+
|
|
114
129
|
|
|
115
130
|
/**
|
|
116
131
|
* Check if a given object implements the SnapshotSummary interface.
|
|
@@ -148,6 +163,7 @@ export function SnapshotSummaryFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
148
163
|
'fileCount': json['fileCount'],
|
|
149
164
|
'contentSizeBytes': json['contentSizeBytes'] == null ? undefined : json['contentSizeBytes'],
|
|
150
165
|
'contentFileCount': json['contentFileCount'] == null ? undefined : json['contentFileCount'],
|
|
166
|
+
'origin': json['origin'] == null ? undefined : json['origin'],
|
|
151
167
|
};
|
|
152
168
|
}
|
|
153
169
|
|
|
@@ -174,6 +190,7 @@ export function SnapshotSummaryToJSONTyped(value?: SnapshotSummary | null, ignor
|
|
|
174
190
|
'fileCount': value['fileCount'],
|
|
175
191
|
'contentSizeBytes': value['contentSizeBytes'],
|
|
176
192
|
'contentFileCount': value['contentFileCount'],
|
|
193
|
+
'origin': value['origin'],
|
|
177
194
|
};
|
|
178
195
|
}
|
|
179
196
|
|
|
@@ -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 UpdateAiProxyRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateAiProxyRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdateAiProxyRequest
|
|
26
|
+
*/
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateAiProxyRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateAiProxyRequest(value: object): value is UpdateAiProxyRequest {
|
|
34
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UpdateAiProxyRequestFromJSON(json: any): UpdateAiProxyRequest {
|
|
39
|
+
return UpdateAiProxyRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UpdateAiProxyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAiProxyRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'enabled': json['enabled'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateAiProxyRequestToJSON(json: any): UpdateAiProxyRequest {
|
|
53
|
+
return UpdateAiProxyRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateAiProxyRequestToJSONTyped(value?: UpdateAiProxyRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'enabled': value['enabled'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 UpdateCredentialProfileRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateCredentialProfileRequest {
|
|
22
|
+
/**
|
|
23
|
+
* New profile name.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateCredentialProfileRequest
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Send true to make this profile its owner's default. The previous default loses the flag. False is ignored; make another profile the default instead.
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof UpdateCredentialProfileRequest
|
|
32
|
+
*/
|
|
33
|
+
isDefault?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UpdateCredentialProfileRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUpdateCredentialProfileRequest(value: object): value is UpdateCredentialProfileRequest {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UpdateCredentialProfileRequestFromJSON(json: any): UpdateCredentialProfileRequest {
|
|
44
|
+
return UpdateCredentialProfileRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UpdateCredentialProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCredentialProfileRequest {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
+
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function UpdateCredentialProfileRequestToJSON(json: any): UpdateCredentialProfileRequest {
|
|
59
|
+
return UpdateCredentialProfileRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function UpdateCredentialProfileRequestToJSONTyped(value?: UpdateCredentialProfileRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'isDefault': value['isDefault'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -76,6 +76,18 @@ export interface UpdateSandboxEnvironmentRequest {
|
|
|
76
76
|
* @memberof UpdateSandboxEnvironmentRequest
|
|
77
77
|
*/
|
|
78
78
|
passAgentsCredentials?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Id or name of a credential profile you can use, or null for the sandbox owner's default profile. Unknown profiles return `404 credential_profile_not_found`.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof UpdateSandboxEnvironmentRequest
|
|
83
|
+
*/
|
|
84
|
+
credentialProfileId?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* With `safeForThirdParties` true, pass AI credentials as proxy placeholders. Setting true needs the AI credentials proxy on for the profile owner, else `400 ai_proxy_off`.
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof UpdateSandboxEnvironmentRequest
|
|
89
|
+
*/
|
|
90
|
+
proxyAiCredentials?: boolean;
|
|
79
91
|
/**
|
|
80
92
|
* Full .env-style content for the new version.
|
|
81
93
|
* @type {string}
|
|
@@ -120,6 +132,8 @@ export function UpdateSandboxEnvironmentRequestFromJSONTyped(json: any, ignoreDi
|
|
|
120
132
|
'passSecrets': json['passSecrets'] == null ? undefined : json['passSecrets'],
|
|
121
133
|
'passSandboxCredentials': json['passSandboxCredentials'] == null ? undefined : json['passSandboxCredentials'],
|
|
122
134
|
'passAgentsCredentials': json['passAgentsCredentials'] == null ? undefined : json['passAgentsCredentials'],
|
|
135
|
+
'credentialProfileId': json['credentialProfileId'] == null ? undefined : json['credentialProfileId'],
|
|
136
|
+
'proxyAiCredentials': json['proxyAiCredentials'] == null ? undefined : json['proxyAiCredentials'],
|
|
123
137
|
'envContents': json['envContents'] == null ? undefined : json['envContents'],
|
|
124
138
|
'secretFiles': json['secretFiles'] == null ? undefined : ((json['secretFiles'] as Array<any>).map(SecretFileFromJSON)),
|
|
125
139
|
'repositories': json['repositories'] == null ? undefined : ((json['repositories'] as Array<any>).map(UpdateSandboxEnvironmentRequestRepositoriesInnerFromJSON)),
|
|
@@ -144,6 +158,8 @@ export function UpdateSandboxEnvironmentRequestToJSONTyped(value?: UpdateSandbox
|
|
|
144
158
|
'passSecrets': value['passSecrets'],
|
|
145
159
|
'passSandboxCredentials': value['passSandboxCredentials'],
|
|
146
160
|
'passAgentsCredentials': value['passAgentsCredentials'],
|
|
161
|
+
'credentialProfileId': value['credentialProfileId'],
|
|
162
|
+
'proxyAiCredentials': value['proxyAiCredentials'],
|
|
147
163
|
'envContents': value['envContents'],
|
|
148
164
|
'secretFiles': value['secretFiles'] == null ? undefined : ((value['secretFiles'] as Array<any>).map(SecretFileToJSON)),
|
|
149
165
|
'repositories': value['repositories'] == null ? undefined : ((value['repositories'] as Array<any>).map(UpdateSandboxEnvironmentRequestRepositoriesInnerToJSON)),
|
package/src/models/index.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AccountAiUsageResponse';
|
|
3
4
|
export * from './ActiveOrgResponse';
|
|
4
5
|
export * from './ActiveOrgResponseAllOfActive';
|
|
5
6
|
export * from './ActiveOrgUpdateRequest';
|
|
6
7
|
export * from './AddEnvironmentRepoRequest';
|
|
8
|
+
export * from './AiProxySettings';
|
|
9
|
+
export * from './AiProxySettingsAllOfPricing';
|
|
10
|
+
export * from './AiUsageRow';
|
|
11
|
+
export * from './AiUsageTotals';
|
|
7
12
|
export * from './ApiKey';
|
|
8
13
|
export * from './ApiKeyCatalog';
|
|
9
14
|
export * from './ApiKeyCatalogScopeResources';
|
|
@@ -32,11 +37,18 @@ export * from './CommandStreamFrame';
|
|
|
32
37
|
export * from './CompletionEvent';
|
|
33
38
|
export * from './Conversation';
|
|
34
39
|
export * from './ConversationsResponse';
|
|
40
|
+
export * from './CreateCredentialProfileRequest';
|
|
35
41
|
export * from './CreateSandboxEnvironmentRequest';
|
|
36
42
|
export * from './CreateSandboxRequest';
|
|
37
43
|
export * from './CreateSandboxResponse';
|
|
38
44
|
export * from './CreateScopedApiKey503Response';
|
|
39
45
|
export * from './CreateScopedApiKeyRequest';
|
|
46
|
+
export * from './CredentialId';
|
|
47
|
+
export * from './CredentialProfile';
|
|
48
|
+
export * from './CredentialProfileDeletedResponse';
|
|
49
|
+
export * from './CredentialProfileListResponse';
|
|
50
|
+
export * from './CredentialProfileOwner';
|
|
51
|
+
export * from './CredentialProfileResponse';
|
|
40
52
|
export * from './DataRetentionPolicyResponse';
|
|
41
53
|
export * from './DataRetentionUpdateRequest';
|
|
42
54
|
export * from './DeletionOperation';
|
|
@@ -50,6 +62,8 @@ export * from './ErrorEnvelopeError';
|
|
|
50
62
|
export * from './ErrorEvent';
|
|
51
63
|
export * from './EventsResponse';
|
|
52
64
|
export * from './FileReadResponse';
|
|
65
|
+
export * from './FileUrlRequest';
|
|
66
|
+
export * from './FileUrlResponse';
|
|
53
67
|
export * from './FileWriteRequest';
|
|
54
68
|
export * from './FileWriteResponse';
|
|
55
69
|
export * from './ForkRequest';
|
|
@@ -99,6 +113,9 @@ export * from './ResumeRequest';
|
|
|
99
113
|
export * from './RotateApiKey409Response';
|
|
100
114
|
export * from './Sandbox';
|
|
101
115
|
export * from './SandboxActionResponse';
|
|
116
|
+
export * from './SandboxAiAccessResponse';
|
|
117
|
+
export * from './SandboxAiUsage';
|
|
118
|
+
export * from './SandboxAiUsageResponse';
|
|
102
119
|
export * from './SandboxEnvironment';
|
|
103
120
|
export * from './SandboxEnvironmentListResponse';
|
|
104
121
|
export * from './SandboxEnvironmentResponse';
|
|
@@ -113,8 +130,11 @@ export * from './SecretFile';
|
|
|
113
130
|
export * from './SecretsResponse';
|
|
114
131
|
export * from './SecretsUpdateRequest';
|
|
115
132
|
export * from './SelectedRepository';
|
|
133
|
+
export * from './SetCredentialKeyRequest';
|
|
134
|
+
export * from './SetCustomApiRequest';
|
|
116
135
|
export * from './SetEnvironmentSecretFileRequest';
|
|
117
136
|
export * from './SetEnvironmentVarRequest';
|
|
137
|
+
export * from './SetSandboxAiAccessRequest';
|
|
118
138
|
export * from './Share200Response';
|
|
119
139
|
export * from './SnapshotChunk';
|
|
120
140
|
export * from './SnapshotDownloadResponse';
|
|
@@ -142,6 +162,8 @@ export * from './TelemetrySetRequest';
|
|
|
142
162
|
export * from './TelemetrySetResponse';
|
|
143
163
|
export * from './TelemetryTestResult';
|
|
144
164
|
export * from './UnknownEvent';
|
|
165
|
+
export * from './UpdateAiProxyRequest';
|
|
166
|
+
export * from './UpdateCredentialProfileRequest';
|
|
145
167
|
export * from './UpdateSandboxEnvironmentRequest';
|
|
146
168
|
export * from './UpdateSandboxEnvironmentRequestRepositoriesInner';
|
|
147
169
|
export * from './UpdateSandboxRequest';
|