@boatdev/sdk 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +22 -0
- package/dist/apis/BoatApi.d.ts +92 -12
- package/dist/apis/BoatApi.js +196 -15
- package/dist/esm/apis/BoatApi.d.ts +92 -12
- package/dist/esm/apis/BoatApi.js +196 -15
- package/dist/esm/models/CreateSandboxRequest.d.ts +3 -3
- 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/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/Sandbox.d.ts +7 -0
- package/dist/esm/models/Sandbox.js +3 -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/UpdateCredentialProfileRequest.d.ts +7 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.js +3 -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 +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/CreateSandboxRequest.d.ts +3 -3
- 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/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/Sandbox.d.ts +7 -0
- package/dist/models/Sandbox.js +3 -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/UpdateCredentialProfileRequest.d.ts +7 -0
- package/dist/models/UpdateCredentialProfileRequest.js +3 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +7 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.js +3 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/BoatApi.md +307 -15
- package/docs/CredentialProfile.md +2 -0
- package/docs/ResourceAccess.md +35 -0
- package/docs/ResourceAccessUpdate.md +35 -0
- package/docs/Sandbox.md +2 -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/UpdateCredentialProfileRequest.md +2 -0
- package/docs/UpdateSandboxEnvironmentRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +277 -15
- package/src/models/CreateSandboxRequest.ts +3 -3
- package/src/models/CredentialId.ts +3 -0
- package/src/models/CredentialProfile.ts +15 -0
- package/src/models/DeletionOperation.ts +1 -1
- package/src/models/ResourceAccess.ts +75 -0
- package/src/models/ResourceAccessUpdate.ts +74 -0
- package/src/models/Sandbox.ts +15 -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/UpdateCredentialProfileRequest.ts +16 -0
- package/src/models/UpdateSandboxEnvironmentRequest.ts +15 -0
- package/src/models/index.ts +11 -0
package/src/apis/BoatApi.ts
CHANGED
|
@@ -393,6 +393,31 @@ import {
|
|
|
393
393
|
SandboxUsageResponseFromJSON,
|
|
394
394
|
SandboxUsageResponseToJSON,
|
|
395
395
|
} from '../models/SandboxUsageResponse';
|
|
396
|
+
import {
|
|
397
|
+
type SavedSnapshotDeletedResponse,
|
|
398
|
+
SavedSnapshotDeletedResponseFromJSON,
|
|
399
|
+
SavedSnapshotDeletedResponseToJSON,
|
|
400
|
+
} from '../models/SavedSnapshotDeletedResponse';
|
|
401
|
+
import {
|
|
402
|
+
type SavedSnapshotInfoResponse,
|
|
403
|
+
SavedSnapshotInfoResponseFromJSON,
|
|
404
|
+
SavedSnapshotInfoResponseToJSON,
|
|
405
|
+
} from '../models/SavedSnapshotInfoResponse';
|
|
406
|
+
import {
|
|
407
|
+
type SavedSnapshotListResponse,
|
|
408
|
+
SavedSnapshotListResponseFromJSON,
|
|
409
|
+
SavedSnapshotListResponseToJSON,
|
|
410
|
+
} from '../models/SavedSnapshotListResponse';
|
|
411
|
+
import {
|
|
412
|
+
type SavedSnapshotSaveRequest,
|
|
413
|
+
SavedSnapshotSaveRequestFromJSON,
|
|
414
|
+
SavedSnapshotSaveRequestToJSON,
|
|
415
|
+
} from '../models/SavedSnapshotSaveRequest';
|
|
416
|
+
import {
|
|
417
|
+
type SavedSnapshotSavingResponse,
|
|
418
|
+
SavedSnapshotSavingResponseFromJSON,
|
|
419
|
+
SavedSnapshotSavingResponseToJSON,
|
|
420
|
+
} from '../models/SavedSnapshotSavingResponse';
|
|
396
421
|
import {
|
|
397
422
|
type SecretsResponse,
|
|
398
423
|
SecretsResponseFromJSON,
|
|
@@ -731,6 +756,10 @@ export interface DeleteSandboxSnapshotsRequest {
|
|
|
731
756
|
xAsciiConfirmDelete: string;
|
|
732
757
|
}
|
|
733
758
|
|
|
759
|
+
export interface DeleteSavedSnapshotRequest {
|
|
760
|
+
name: string;
|
|
761
|
+
}
|
|
762
|
+
|
|
734
763
|
export interface DeleteSnapshotRequest {
|
|
735
764
|
snapshotId: string;
|
|
736
765
|
xAsciiConfirmDelete: string;
|
|
@@ -804,6 +833,10 @@ export interface GetSandboxAiUsageRequest {
|
|
|
804
833
|
days?: number;
|
|
805
834
|
}
|
|
806
835
|
|
|
836
|
+
export interface GetSavedSnapshotRequest {
|
|
837
|
+
name: string;
|
|
838
|
+
}
|
|
839
|
+
|
|
807
840
|
export interface GetSnapshotDownloadRequest {
|
|
808
841
|
snapshotId: string;
|
|
809
842
|
}
|
|
@@ -933,6 +966,10 @@ export interface SaveNamedSnapshotRequest {
|
|
|
933
966
|
namedSnapshotSaveRequest: NamedSnapshotSaveRequest;
|
|
934
967
|
}
|
|
935
968
|
|
|
969
|
+
export interface SaveSavedSnapshotRequest {
|
|
970
|
+
savedSnapshotSaveRequest: SavedSnapshotSaveRequest;
|
|
971
|
+
}
|
|
972
|
+
|
|
936
973
|
export interface SelectRepoRequest {
|
|
937
974
|
repoSelectionRequest: RepoSelectionRequest;
|
|
938
975
|
}
|
|
@@ -2132,7 +2169,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2132
2169
|
}
|
|
2133
2170
|
}
|
|
2134
2171
|
|
|
2135
|
-
let urlPath = `/
|
|
2172
|
+
let urlPath = `/saved-snapshots/{name}/shares`;
|
|
2136
2173
|
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
2137
2174
|
|
|
2138
2175
|
return {
|
|
@@ -2144,8 +2181,8 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2144
2181
|
}
|
|
2145
2182
|
|
|
2146
2183
|
/**
|
|
2147
|
-
* Make a secret code that lets any Boat account create a sandbox from this
|
|
2148
|
-
* Share a
|
|
2184
|
+
* Make a secret code that lets any Boat account create a sandbox from this saved snapshot (`boat snapshot share <name>` in the CLI). The response shows the code once; Boat stores only a hash. Re-saving the name changes what the code deploys. Removing the name removes its codes. Everything on the disk is shared, so do not keep secrets in files on it. Needs `snapshot.write`.
|
|
2185
|
+
* Share a saved snapshot
|
|
2149
2186
|
*/
|
|
2150
2187
|
async createSnapshotShareRaw(requestParameters: CreateSnapshotShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NamedSnapshotShareCreatedResponse>> {
|
|
2151
2188
|
const requestOptions = await this.createSnapshotShareRequestOpts(requestParameters);
|
|
@@ -2155,8 +2192,8 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2155
2192
|
}
|
|
2156
2193
|
|
|
2157
2194
|
/**
|
|
2158
|
-
* Make a secret code that lets any Boat account create a sandbox from this
|
|
2159
|
-
* Share a
|
|
2195
|
+
* Make a secret code that lets any Boat account create a sandbox from this saved snapshot (`boat snapshot share <name>` in the CLI). The response shows the code once; Boat stores only a hash. Re-saving the name changes what the code deploys. Removing the name removes its codes. Everything on the disk is shared, so do not keep secrets in files on it. Needs `snapshot.write`.
|
|
2196
|
+
* Share a saved snapshot
|
|
2160
2197
|
*/
|
|
2161
2198
|
async createSnapshotShare(requestParameters: CreateSnapshotShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamedSnapshotShareCreatedResponse> {
|
|
2162
2199
|
const response = await this.createSnapshotShareRaw(requestParameters, initOverrides);
|
|
@@ -2804,6 +2841,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2804
2841
|
|
|
2805
2842
|
/**
|
|
2806
2843
|
* Creates request options for deleteNamedSnapshot without sending the request
|
|
2844
|
+
* @deprecated
|
|
2807
2845
|
*/
|
|
2808
2846
|
async deleteNamedSnapshotRequestOpts(requestParameters: DeleteNamedSnapshotRequest): Promise<runtime.RequestOpts> {
|
|
2809
2847
|
if (requestParameters['name'] == null) {
|
|
@@ -2840,6 +2878,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2840
2878
|
/**
|
|
2841
2879
|
* Remove a named snapshot and release its storage (`boat snapshot rm <name>` in the CLI). Sandboxes already deployed from it are unaffected.
|
|
2842
2880
|
* Remove a named snapshot
|
|
2881
|
+
* @deprecated
|
|
2843
2882
|
*/
|
|
2844
2883
|
async deleteNamedSnapshotRaw(requestParameters: DeleteNamedSnapshotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NamedSnapshotDeletedResponse>> {
|
|
2845
2884
|
const requestOptions = await this.deleteNamedSnapshotRequestOpts(requestParameters);
|
|
@@ -2851,6 +2890,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2851
2890
|
/**
|
|
2852
2891
|
* Remove a named snapshot and release its storage (`boat snapshot rm <name>` in the CLI). Sandboxes already deployed from it are unaffected.
|
|
2853
2892
|
* Remove a named snapshot
|
|
2893
|
+
* @deprecated
|
|
2854
2894
|
*/
|
|
2855
2895
|
async deleteNamedSnapshot(requestParameters: DeleteNamedSnapshotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamedSnapshotDeletedResponse> {
|
|
2856
2896
|
const response = await this.deleteNamedSnapshotRaw(requestParameters, initOverrides);
|
|
@@ -2904,7 +2944,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2904
2944
|
}
|
|
2905
2945
|
|
|
2906
2946
|
/**
|
|
2907
|
-
* Accept irreversible background deletion of the sandbox machine, snapshots, and content-bearing records. This is not archive: the sandbox cannot be resumed.
|
|
2947
|
+
* Accept irreversible background deletion of the sandbox machine, snapshots, and content-bearing records. This is not archive: the sandbox cannot be resumed. Saved snapshots and other shared artifacts remain independent. Poll the returned operation until `completed`.
|
|
2908
2948
|
* Permanently delete sandbox data
|
|
2909
2949
|
*/
|
|
2910
2950
|
async deleteSandboxRaw(requestParameters: DeleteSandboxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeletionOperationResponse>> {
|
|
@@ -2915,7 +2955,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2915
2955
|
}
|
|
2916
2956
|
|
|
2917
2957
|
/**
|
|
2918
|
-
* Accept irreversible background deletion of the sandbox machine, snapshots, and content-bearing records. This is not archive: the sandbox cannot be resumed.
|
|
2958
|
+
* Accept irreversible background deletion of the sandbox machine, snapshots, and content-bearing records. This is not archive: the sandbox cannot be resumed. Saved snapshots and other shared artifacts remain independent. Poll the returned operation until `completed`.
|
|
2919
2959
|
* Permanently delete sandbox data
|
|
2920
2960
|
*/
|
|
2921
2961
|
async deleteSandbox(requestParameters: DeleteSandboxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeletionOperationResponse> {
|
|
@@ -2970,7 +3010,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2970
3010
|
}
|
|
2971
3011
|
|
|
2972
3012
|
/**
|
|
2973
|
-
* Accept irreversible deletion of every unpinned snapshot of this sandbox. The sandbox itself and its
|
|
3013
|
+
* Accept irreversible deletion of every unpinned snapshot of this sandbox. The sandbox itself and its saved snapshots stay. Snapshots disappear from lists, restores and forks immediately; their stored data is purged in the background. Set `X-Ascii-Confirm-Delete` to the sandbox id.
|
|
2974
3014
|
* Permanently delete all snapshots of a sandbox
|
|
2975
3015
|
*/
|
|
2976
3016
|
async deleteSandboxSnapshotsRaw(requestParameters: DeleteSandboxSnapshotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeletionOperationListResponse>> {
|
|
@@ -2981,7 +3021,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2981
3021
|
}
|
|
2982
3022
|
|
|
2983
3023
|
/**
|
|
2984
|
-
* Accept irreversible deletion of every unpinned snapshot of this sandbox. The sandbox itself and its
|
|
3024
|
+
* Accept irreversible deletion of every unpinned snapshot of this sandbox. The sandbox itself and its saved snapshots stay. Snapshots disappear from lists, restores and forks immediately; their stored data is purged in the background. Set `X-Ascii-Confirm-Delete` to the sandbox id.
|
|
2985
3025
|
* Permanently delete all snapshots of a sandbox
|
|
2986
3026
|
*/
|
|
2987
3027
|
async deleteSandboxSnapshots(requestParameters: DeleteSandboxSnapshotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeletionOperationListResponse> {
|
|
@@ -2989,6 +3029,61 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2989
3029
|
return await response.value();
|
|
2990
3030
|
}
|
|
2991
3031
|
|
|
3032
|
+
/**
|
|
3033
|
+
* Creates request options for deleteSavedSnapshot without sending the request
|
|
3034
|
+
*/
|
|
3035
|
+
async deleteSavedSnapshotRequestOpts(requestParameters: DeleteSavedSnapshotRequest): Promise<runtime.RequestOpts> {
|
|
3036
|
+
if (requestParameters['name'] == null) {
|
|
3037
|
+
throw new runtime.RequiredError(
|
|
3038
|
+
'name',
|
|
3039
|
+
'Required parameter "name" was null or undefined when calling deleteSavedSnapshot().'
|
|
3040
|
+
);
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
const queryParameters: any = {};
|
|
3044
|
+
|
|
3045
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3046
|
+
|
|
3047
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3048
|
+
const token = this.configuration.accessToken;
|
|
3049
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3050
|
+
|
|
3051
|
+
if (tokenString) {
|
|
3052
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
let urlPath = `/saved-snapshots/{name}`;
|
|
3057
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
3058
|
+
|
|
3059
|
+
return {
|
|
3060
|
+
path: urlPath,
|
|
3061
|
+
method: 'DELETE',
|
|
3062
|
+
headers: headerParameters,
|
|
3063
|
+
query: queryParameters,
|
|
3064
|
+
};
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
* Remove a saved snapshot and release its storage (`boat snapshot rm <name>` in the CLI). Sandboxes already deployed from it are unaffected.
|
|
3069
|
+
* Remove a saved snapshot
|
|
3070
|
+
*/
|
|
3071
|
+
async deleteSavedSnapshotRaw(requestParameters: DeleteSavedSnapshotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SavedSnapshotDeletedResponse>> {
|
|
3072
|
+
const requestOptions = await this.deleteSavedSnapshotRequestOpts(requestParameters);
|
|
3073
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3074
|
+
|
|
3075
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SavedSnapshotDeletedResponseFromJSON(jsonValue));
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
/**
|
|
3079
|
+
* Remove a saved snapshot and release its storage (`boat snapshot rm <name>` in the CLI). Sandboxes already deployed from it are unaffected.
|
|
3080
|
+
* Remove a saved snapshot
|
|
3081
|
+
*/
|
|
3082
|
+
async deleteSavedSnapshot(requestParameters: DeleteSavedSnapshotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SavedSnapshotDeletedResponse> {
|
|
3083
|
+
const response = await this.deleteSavedSnapshotRaw(requestParameters, initOverrides);
|
|
3084
|
+
return await response.value();
|
|
3085
|
+
}
|
|
3086
|
+
|
|
2992
3087
|
/**
|
|
2993
3088
|
* Creates request options for deleteSnapshot without sending the request
|
|
2994
3089
|
*/
|
|
@@ -3806,6 +3901,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
3806
3901
|
|
|
3807
3902
|
/**
|
|
3808
3903
|
* Creates request options for getNamedSnapshot without sending the request
|
|
3904
|
+
* @deprecated
|
|
3809
3905
|
*/
|
|
3810
3906
|
async getNamedSnapshotRequestOpts(requestParameters: GetNamedSnapshotRequest): Promise<runtime.RequestOpts> {
|
|
3811
3907
|
if (requestParameters['name'] == null) {
|
|
@@ -3841,6 +3937,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
3841
3937
|
|
|
3842
3938
|
/**
|
|
3843
3939
|
* Get a named snapshot
|
|
3940
|
+
* @deprecated
|
|
3844
3941
|
*/
|
|
3845
3942
|
async getNamedSnapshotRaw(requestParameters: GetNamedSnapshotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NamedSnapshotInfoResponse>> {
|
|
3846
3943
|
const requestOptions = await this.getNamedSnapshotRequestOpts(requestParameters);
|
|
@@ -3851,6 +3948,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
3851
3948
|
|
|
3852
3949
|
/**
|
|
3853
3950
|
* Get a named snapshot
|
|
3951
|
+
* @deprecated
|
|
3854
3952
|
*/
|
|
3855
3953
|
async getNamedSnapshot(requestParameters: GetNamedSnapshotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamedSnapshotInfoResponse> {
|
|
3856
3954
|
const response = await this.getNamedSnapshotRaw(requestParameters, initOverrides);
|
|
@@ -3916,6 +4014,59 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
3916
4014
|
return await response.value();
|
|
3917
4015
|
}
|
|
3918
4016
|
|
|
4017
|
+
/**
|
|
4018
|
+
* Creates request options for getSavedSnapshot without sending the request
|
|
4019
|
+
*/
|
|
4020
|
+
async getSavedSnapshotRequestOpts(requestParameters: GetSavedSnapshotRequest): Promise<runtime.RequestOpts> {
|
|
4021
|
+
if (requestParameters['name'] == null) {
|
|
4022
|
+
throw new runtime.RequiredError(
|
|
4023
|
+
'name',
|
|
4024
|
+
'Required parameter "name" was null or undefined when calling getSavedSnapshot().'
|
|
4025
|
+
);
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
const queryParameters: any = {};
|
|
4029
|
+
|
|
4030
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4031
|
+
|
|
4032
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4033
|
+
const token = this.configuration.accessToken;
|
|
4034
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
4035
|
+
|
|
4036
|
+
if (tokenString) {
|
|
4037
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4038
|
+
}
|
|
4039
|
+
}
|
|
4040
|
+
|
|
4041
|
+
let urlPath = `/saved-snapshots/{name}`;
|
|
4042
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
4043
|
+
|
|
4044
|
+
return {
|
|
4045
|
+
path: urlPath,
|
|
4046
|
+
method: 'GET',
|
|
4047
|
+
headers: headerParameters,
|
|
4048
|
+
query: queryParameters,
|
|
4049
|
+
};
|
|
4050
|
+
}
|
|
4051
|
+
|
|
4052
|
+
/**
|
|
4053
|
+
* Get a saved snapshot
|
|
4054
|
+
*/
|
|
4055
|
+
async getSavedSnapshotRaw(requestParameters: GetSavedSnapshotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SavedSnapshotInfoResponse>> {
|
|
4056
|
+
const requestOptions = await this.getSavedSnapshotRequestOpts(requestParameters);
|
|
4057
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4058
|
+
|
|
4059
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SavedSnapshotInfoResponseFromJSON(jsonValue));
|
|
4060
|
+
}
|
|
4061
|
+
|
|
4062
|
+
/**
|
|
4063
|
+
* Get a saved snapshot
|
|
4064
|
+
*/
|
|
4065
|
+
async getSavedSnapshot(requestParameters: GetSavedSnapshotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SavedSnapshotInfoResponse> {
|
|
4066
|
+
const response = await this.getSavedSnapshotRaw(requestParameters, initOverrides);
|
|
4067
|
+
return await response.value();
|
|
4068
|
+
}
|
|
4069
|
+
|
|
3919
4070
|
/**
|
|
3920
4071
|
* Creates request options for getSnapshotDownload without sending the request
|
|
3921
4072
|
*/
|
|
@@ -4546,6 +4697,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4546
4697
|
|
|
4547
4698
|
/**
|
|
4548
4699
|
* Creates request options for listNamedSnapshots without sending the request
|
|
4700
|
+
* @deprecated
|
|
4549
4701
|
*/
|
|
4550
4702
|
async listNamedSnapshotsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
4551
4703
|
const queryParameters: any = {};
|
|
@@ -4574,6 +4726,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4574
4726
|
/**
|
|
4575
4727
|
* List your named snapshots, newest first.
|
|
4576
4728
|
* List named snapshots
|
|
4729
|
+
* @deprecated
|
|
4577
4730
|
*/
|
|
4578
4731
|
async listNamedSnapshotsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NamedSnapshotListResponse>> {
|
|
4579
4732
|
const requestOptions = await this.listNamedSnapshotsRequestOpts();
|
|
@@ -4585,6 +4738,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4585
4738
|
/**
|
|
4586
4739
|
* List your named snapshots, newest first.
|
|
4587
4740
|
* List named snapshots
|
|
4741
|
+
* @deprecated
|
|
4588
4742
|
*/
|
|
4589
4743
|
async listNamedSnapshots(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamedSnapshotListResponse> {
|
|
4590
4744
|
const response = await this.listNamedSnapshotsRaw(initOverrides);
|
|
@@ -4705,6 +4859,53 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4705
4859
|
return await response.value();
|
|
4706
4860
|
}
|
|
4707
4861
|
|
|
4862
|
+
/**
|
|
4863
|
+
* Creates request options for listSavedSnapshots without sending the request
|
|
4864
|
+
*/
|
|
4865
|
+
async listSavedSnapshotsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
4866
|
+
const queryParameters: any = {};
|
|
4867
|
+
|
|
4868
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4869
|
+
|
|
4870
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4871
|
+
const token = this.configuration.accessToken;
|
|
4872
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
4873
|
+
|
|
4874
|
+
if (tokenString) {
|
|
4875
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4876
|
+
}
|
|
4877
|
+
}
|
|
4878
|
+
|
|
4879
|
+
let urlPath = `/saved-snapshots`;
|
|
4880
|
+
|
|
4881
|
+
return {
|
|
4882
|
+
path: urlPath,
|
|
4883
|
+
method: 'GET',
|
|
4884
|
+
headers: headerParameters,
|
|
4885
|
+
query: queryParameters,
|
|
4886
|
+
};
|
|
4887
|
+
}
|
|
4888
|
+
|
|
4889
|
+
/**
|
|
4890
|
+
* List your saved snapshots, newest first.
|
|
4891
|
+
* List saved snapshots
|
|
4892
|
+
*/
|
|
4893
|
+
async listSavedSnapshotsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SavedSnapshotListResponse>> {
|
|
4894
|
+
const requestOptions = await this.listSavedSnapshotsRequestOpts();
|
|
4895
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4896
|
+
|
|
4897
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SavedSnapshotListResponseFromJSON(jsonValue));
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
/**
|
|
4901
|
+
* List your saved snapshots, newest first.
|
|
4902
|
+
* List saved snapshots
|
|
4903
|
+
*/
|
|
4904
|
+
async listSavedSnapshots(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SavedSnapshotListResponse> {
|
|
4905
|
+
const response = await this.listSavedSnapshotsRaw(initOverrides);
|
|
4906
|
+
return await response.value();
|
|
4907
|
+
}
|
|
4908
|
+
|
|
4708
4909
|
/**
|
|
4709
4910
|
* Creates request options for listSnapshotShares without sending the request
|
|
4710
4911
|
*/
|
|
@@ -4729,7 +4930,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4729
4930
|
}
|
|
4730
4931
|
}
|
|
4731
4932
|
|
|
4732
|
-
let urlPath = `/
|
|
4933
|
+
let urlPath = `/saved-snapshots/{name}/shares`;
|
|
4733
4934
|
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
4734
4935
|
|
|
4735
4936
|
return {
|
|
@@ -4741,8 +4942,8 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4741
4942
|
}
|
|
4742
4943
|
|
|
4743
4944
|
/**
|
|
4744
|
-
* List the share codes of a
|
|
4745
|
-
* List share codes of a
|
|
4945
|
+
* List the share codes of a saved snapshot, active and revoked (`boat snapshot shares <name>` in the CLI). The full codes are not returned. Needs `snapshot.read`.
|
|
4946
|
+
* List share codes of a saved snapshot
|
|
4746
4947
|
*/
|
|
4747
4948
|
async listSnapshotSharesRaw(requestParameters: ListSnapshotSharesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NamedSnapshotShareListResponse>> {
|
|
4748
4949
|
const requestOptions = await this.listSnapshotSharesRequestOpts(requestParameters);
|
|
@@ -4752,8 +4953,8 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4752
4953
|
}
|
|
4753
4954
|
|
|
4754
4955
|
/**
|
|
4755
|
-
* List the share codes of a
|
|
4756
|
-
* List share codes of a
|
|
4956
|
+
* List the share codes of a saved snapshot, active and revoked (`boat snapshot shares <name>` in the CLI). The full codes are not returned. Needs `snapshot.read`.
|
|
4957
|
+
* List share codes of a saved snapshot
|
|
4757
4958
|
*/
|
|
4758
4959
|
async listSnapshotShares(requestParameters: ListSnapshotSharesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamedSnapshotShareListResponse> {
|
|
4759
4960
|
const response = await this.listSnapshotSharesRaw(requestParameters, initOverrides);
|
|
@@ -5436,7 +5637,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5436
5637
|
}
|
|
5437
5638
|
}
|
|
5438
5639
|
|
|
5439
|
-
let urlPath = `/
|
|
5640
|
+
let urlPath = `/saved-snapshots/{name}/shares/{shareId}`;
|
|
5440
5641
|
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
5441
5642
|
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
5442
5643
|
|
|
@@ -5655,6 +5856,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5655
5856
|
|
|
5656
5857
|
/**
|
|
5657
5858
|
* Creates request options for saveNamedSnapshot without sending the request
|
|
5859
|
+
* @deprecated
|
|
5658
5860
|
*/
|
|
5659
5861
|
async saveNamedSnapshotRequestOpts(input: SaveNamedSnapshotRequest | runtime.FlatBody<SaveNamedSnapshotRequest, 'namedSnapshotSaveRequest'>): Promise<runtime.RequestOpts> {
|
|
5660
5862
|
const requestParameters = runtime.unflattenBody<SaveNamedSnapshotRequest>(input, 'namedSnapshotSaveRequest', [], []);
|
|
@@ -5694,6 +5896,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5694
5896
|
/**
|
|
5695
5897
|
* Freeze a sandbox\'s current state under a name (`boat snapshot <id> <name>` in the CLI). Answers `202` immediately with the snapshot in `saving`; a running sandbox takes a fresh capture first, which can run minutes. Poll `GET /named-snapshots/{name}` until the status settles at `ready` or `failed`. Reusing one of your existing names replaces that snapshot\'s artifact once the new save is ready.
|
|
5696
5898
|
* Save a named snapshot
|
|
5899
|
+
* @deprecated
|
|
5697
5900
|
*/
|
|
5698
5901
|
async saveNamedSnapshotRaw(requestParameters: SaveNamedSnapshotRequest | runtime.FlatBody<SaveNamedSnapshotRequest, 'namedSnapshotSaveRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NamedSnapshotSavingResponse>> {
|
|
5699
5902
|
const requestOptions = await this.saveNamedSnapshotRequestOpts(requestParameters);
|
|
@@ -5705,12 +5908,71 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5705
5908
|
/**
|
|
5706
5909
|
* Freeze a sandbox\'s current state under a name (`boat snapshot <id> <name>` in the CLI). Answers `202` immediately with the snapshot in `saving`; a running sandbox takes a fresh capture first, which can run minutes. Poll `GET /named-snapshots/{name}` until the status settles at `ready` or `failed`. Reusing one of your existing names replaces that snapshot\'s artifact once the new save is ready.
|
|
5707
5910
|
* Save a named snapshot
|
|
5911
|
+
* @deprecated
|
|
5708
5912
|
*/
|
|
5709
5913
|
async saveNamedSnapshot(requestParameters: SaveNamedSnapshotRequest | runtime.FlatBody<SaveNamedSnapshotRequest, 'namedSnapshotSaveRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamedSnapshotSavingResponse> {
|
|
5710
5914
|
const response = await this.saveNamedSnapshotRaw(requestParameters, initOverrides);
|
|
5711
5915
|
return await response.value();
|
|
5712
5916
|
}
|
|
5713
5917
|
|
|
5918
|
+
/**
|
|
5919
|
+
* Creates request options for saveSavedSnapshot without sending the request
|
|
5920
|
+
*/
|
|
5921
|
+
async saveSavedSnapshotRequestOpts(input: SaveSavedSnapshotRequest | runtime.FlatBody<SaveSavedSnapshotRequest, 'savedSnapshotSaveRequest'>): Promise<runtime.RequestOpts> {
|
|
5922
|
+
const requestParameters = runtime.unflattenBody<SaveSavedSnapshotRequest>(input, 'savedSnapshotSaveRequest', [], []);
|
|
5923
|
+
if (requestParameters['savedSnapshotSaveRequest'] == null) {
|
|
5924
|
+
throw new runtime.RequiredError(
|
|
5925
|
+
'savedSnapshotSaveRequest',
|
|
5926
|
+
'Required parameter "savedSnapshotSaveRequest" was null or undefined when calling saveSavedSnapshot().'
|
|
5927
|
+
);
|
|
5928
|
+
}
|
|
5929
|
+
|
|
5930
|
+
const queryParameters: any = {};
|
|
5931
|
+
|
|
5932
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5933
|
+
|
|
5934
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5935
|
+
|
|
5936
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5937
|
+
const token = this.configuration.accessToken;
|
|
5938
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
5939
|
+
|
|
5940
|
+
if (tokenString) {
|
|
5941
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5942
|
+
}
|
|
5943
|
+
}
|
|
5944
|
+
|
|
5945
|
+
let urlPath = `/saved-snapshots`;
|
|
5946
|
+
|
|
5947
|
+
return {
|
|
5948
|
+
path: urlPath,
|
|
5949
|
+
method: 'POST',
|
|
5950
|
+
headers: headerParameters,
|
|
5951
|
+
query: queryParameters,
|
|
5952
|
+
body: SavedSnapshotSaveRequestToJSON(requestParameters['savedSnapshotSaveRequest']),
|
|
5953
|
+
};
|
|
5954
|
+
}
|
|
5955
|
+
|
|
5956
|
+
/**
|
|
5957
|
+
* Freeze a sandbox\'s current state under a name (`boat snapshot <id> <name>` in the CLI). Answers `202` immediately with the snapshot in `saving`; a running sandbox takes a fresh capture first, which can run minutes. Poll `GET /saved-snapshots/{name}` until the status settles at `ready` or `failed`. Reusing one of your existing names replaces that snapshot\'s artifact once the new save is ready.
|
|
5958
|
+
* Save a saved snapshot
|
|
5959
|
+
*/
|
|
5960
|
+
async saveSavedSnapshotRaw(requestParameters: SaveSavedSnapshotRequest | runtime.FlatBody<SaveSavedSnapshotRequest, 'savedSnapshotSaveRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SavedSnapshotSavingResponse>> {
|
|
5961
|
+
const requestOptions = await this.saveSavedSnapshotRequestOpts(requestParameters);
|
|
5962
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5963
|
+
|
|
5964
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SavedSnapshotSavingResponseFromJSON(jsonValue));
|
|
5965
|
+
}
|
|
5966
|
+
|
|
5967
|
+
/**
|
|
5968
|
+
* Freeze a sandbox\'s current state under a name (`boat snapshot <id> <name>` in the CLI). Answers `202` immediately with the snapshot in `saving`; a running sandbox takes a fresh capture first, which can run minutes. Poll `GET /saved-snapshots/{name}` until the status settles at `ready` or `failed`. Reusing one of your existing names replaces that snapshot\'s artifact once the new save is ready.
|
|
5969
|
+
* Save a saved snapshot
|
|
5970
|
+
*/
|
|
5971
|
+
async saveSavedSnapshot(requestParameters: SaveSavedSnapshotRequest | runtime.FlatBody<SaveSavedSnapshotRequest, 'savedSnapshotSaveRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SavedSnapshotSavingResponse> {
|
|
5972
|
+
const response = await this.saveSavedSnapshotRaw(requestParameters, initOverrides);
|
|
5973
|
+
return await response.value();
|
|
5974
|
+
}
|
|
5975
|
+
|
|
5714
5976
|
/**
|
|
5715
5977
|
* Creates request options for secrets without sending the request
|
|
5716
5978
|
*/
|
|
@@ -50,7 +50,7 @@ export interface CreateSandboxRequest {
|
|
|
50
50
|
*/
|
|
51
51
|
noEnv?: boolean;
|
|
52
52
|
/**
|
|
53
|
-
* Pass `false` to never snapshot this sandbox. Nothing is captured in the background, so it pays no CPU or memory for it, and stopping it erases its disk the way zero data retention does. It cannot be resumed, forked, or saved as a
|
|
53
|
+
* Pass `false` to never snapshot this sandbox. Nothing is captured in the background, so it pays no CPU or memory for it, and stopping it erases its disk the way zero data retention does. It cannot be resumed, forked, or saved as a saved snapshot, and if its machine fails there is no backup to rebuild it from.
|
|
54
54
|
* @type {boolean}
|
|
55
55
|
* @memberof CreateSandboxRequest
|
|
56
56
|
*/
|
|
@@ -68,7 +68,7 @@ export interface CreateSandboxRequest {
|
|
|
68
68
|
*/
|
|
69
69
|
failFast?: boolean;
|
|
70
70
|
/**
|
|
71
|
-
* With `from`: create this many sandboxes from the
|
|
71
|
+
* With `from`: create this many sandboxes from the saved snapshot in one request. Boat creates them together, which is faster than separate creates when you need many sandboxes at once. Start limits and the active-sandbox limit count every sandbox of the batch; if the batch does not fit, nothing is created. The answer lists all of them in `sandboxes` (and the first one in `sandbox`). Refused with 400 `count_requires_from` without `from`, and with 400 `count_with_fail_fast` together with `failFast`.
|
|
72
72
|
* @type {number}
|
|
73
73
|
* @memberof CreateSandboxRequest
|
|
74
74
|
*/
|
|
@@ -92,7 +92,7 @@ export interface CreateSandboxRequest {
|
|
|
92
92
|
*/
|
|
93
93
|
teamId?: string;
|
|
94
94
|
/**
|
|
95
|
-
* Create the sandbox from a
|
|
95
|
+
* Create the sandbox from a saved snapshot (saved with `POST /saved-snapshots`, or `boat snapshot <id> <name>` in the CLI). The sandbox starts from that exact frozen state. Omitting `type` inherits the type the snapshot was saved from; env and no-env inherit from the snapshot's source sandbox unless the request passes its own, with the same rules as forking. Also accepts a share code (`bsh_...`) that another account made with `POST /saved-snapshots/{name}/shares`. The new sandbox lives in and is billed to your account. It does not get the owner's per-sandbox env; your own environment applies normally. A wrong or revoked code returns `404 snapshot_not_found`.
|
|
96
96
|
* @type {string}
|
|
97
97
|
* @memberof CreateSandboxRequest
|
|
98
98
|
*/
|
|
@@ -25,10 +25,13 @@ export const CredentialId = {
|
|
|
25
25
|
DeepseekApiKey: 'deepseek-api-key',
|
|
26
26
|
MoonshotApiKey: 'moonshot-api-key',
|
|
27
27
|
MistralApiKey: 'mistral-api-key',
|
|
28
|
+
XaiApiKey: 'xai-api-key',
|
|
29
|
+
OpencodeApiKey: 'opencode-api-key',
|
|
28
30
|
ClaudeSubscription: 'claude-subscription',
|
|
29
31
|
ChatgptSubscription: 'chatgpt-subscription',
|
|
30
32
|
KimiSubscription: 'kimi-subscription',
|
|
31
33
|
MistralVibeSubscription: 'mistral-vibe-subscription',
|
|
34
|
+
GrokSubscription: 'grok-subscription',
|
|
32
35
|
ClaudeBedrock: 'claude-bedrock',
|
|
33
36
|
CodexBedrock: 'codex-bedrock'
|
|
34
37
|
} as const;
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ResourceAccess } from './ResourceAccess';
|
|
17
|
+
import {
|
|
18
|
+
ResourceAccessFromJSON,
|
|
19
|
+
ResourceAccessFromJSONTyped,
|
|
20
|
+
ResourceAccessToJSON,
|
|
21
|
+
ResourceAccessToJSONTyped,
|
|
22
|
+
} from './ResourceAccess';
|
|
16
23
|
import type { CredentialId } from './CredentialId';
|
|
17
24
|
import {
|
|
18
25
|
CredentialIdFromJSON,
|
|
@@ -101,6 +108,12 @@ export interface CredentialProfile {
|
|
|
101
108
|
* @memberof CredentialProfile
|
|
102
109
|
*/
|
|
103
110
|
updatedAt: Date;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {ResourceAccess}
|
|
114
|
+
* @memberof CredentialProfile
|
|
115
|
+
*/
|
|
116
|
+
access?: ResourceAccess;
|
|
104
117
|
}
|
|
105
118
|
|
|
106
119
|
/**
|
|
@@ -139,6 +152,7 @@ export function CredentialProfileFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
139
152
|
'customApis': json['customApis'],
|
|
140
153
|
'createdAt': (new Date(json['createdAt'])),
|
|
141
154
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
155
|
+
'access': json['access'] == null ? undefined : ResourceAccessFromJSON(json['access']),
|
|
142
156
|
};
|
|
143
157
|
}
|
|
144
158
|
|
|
@@ -163,6 +177,7 @@ export function CredentialProfileToJSONTyped(value?: CredentialProfile | null, i
|
|
|
163
177
|
'customApis': value['customApis'],
|
|
164
178
|
'createdAt': value['createdAt'].toISOString(),
|
|
165
179
|
'updatedAt': value['updatedAt'].toISOString(),
|
|
180
|
+
'access': ResourceAccessToJSON(value['access']),
|
|
166
181
|
};
|
|
167
182
|
}
|
|
168
183
|
|
|
@@ -50,7 +50,7 @@ export interface DeletionOperation {
|
|
|
50
50
|
*/
|
|
51
51
|
status: DeletionOperationStatusEnum;
|
|
52
52
|
/**
|
|
53
|
-
* 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`). `retrying`: a transient fault, retried automatically. `completed`: a newer snapshot, a fork or a
|
|
53
|
+
* 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`). `retrying`: a transient fault, retried automatically. `completed`: a newer snapshot, a fork or a saved snapshot made from it keeps the data it reads, until that is deleted too.
|
|
54
54
|
* @type {DeletionOperationStageEnum}
|
|
55
55
|
* @memberof DeletionOperation
|
|
56
56
|
*/
|