sandbox0 0.2.6 → 0.2.7
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/README.md +3 -1
- package/dist/apispec/src/apis/ApiKeysApi.d.ts +11 -1
- package/dist/apispec/src/apis/ApiKeysApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/ApiKeysApi.js +32 -1
- package/dist/apispec/src/apis/UsersApi.d.ts +31 -1
- package/dist/apispec/src/apis/UsersApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/UsersApi.js +97 -1
- package/dist/apispec/src/models/CreateSSHPublicKeyRequest.d.ts +39 -0
- package/dist/apispec/src/models/CreateSSHPublicKeyRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/CreateSSHPublicKeyRequest.js +47 -0
- package/dist/apispec/src/models/CurrentAPIKeyResponse.d.ts +75 -0
- package/dist/apispec/src/models/CurrentAPIKeyResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/CurrentAPIKeyResponse.js +71 -0
- package/dist/apispec/src/models/SSHPublicKey.d.ts +75 -0
- package/dist/apispec/src/models/SSHPublicKey.d.ts.map +1 -0
- package/dist/apispec/src/models/SSHPublicKey.js +69 -0
- package/dist/apispec/src/models/Sandbox.d.ts +7 -0
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +3 -0
- package/dist/apispec/src/models/SandboxSSHConnection.d.ts +45 -0
- package/dist/apispec/src/models/SandboxSSHConnection.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxSSHConnection.js +51 -0
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +3 -10
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxTemplateSpec.js +3 -6
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponse.js +46 -0
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponseAllOfData.js +42 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponseAllOfData.js +42 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyResponse.js +46 -0
- package/dist/apispec/src/models/WarmProcessSpec.d.ts +67 -0
- package/dist/apispec/src/models/WarmProcessSpec.d.ts.map +1 -0
- package/dist/apispec/src/models/WarmProcessSpec.js +58 -0
- package/dist/apispec/src/models/index.d.ts +10 -3
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +10 -3
- package/dist/resources/volumes.js +1 -1
- package/dist/response_normalize.d.ts.map +1 -1
- package/dist/response_normalize.js +1 -2
- package/dist/sandbox.js +1 -1
- package/dist/sandbox_files.js +1 -1
- package/dist/template_helpers.d.ts +7 -19
- package/dist/template_helpers.d.ts.map +1 -1
- package/dist/template_helpers.js +7 -26
- package/dist/ws_client.d.ts +13 -3
- package/dist/ws_client.d.ts.map +1 -1
- package/dist/ws_client.js +145 -28
- package/package.json +1 -1
- package/dist/apispec/src/models/ContainerMountSpec.d.ts +0 -45
- package/dist/apispec/src/models/ContainerMountSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/ContainerMountSpec.js +0 -49
- package/dist/apispec/src/models/SharedVolumeSpec.d.ts +0 -69
- package/dist/apispec/src/models/SharedVolumeSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/SharedVolumeSpec.js +0 -57
- package/dist/apispec/src/models/SidecarContainerSpec.d.ts +0 -85
- package/dist/apispec/src/models/SidecarContainerSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/SidecarContainerSpec.js +0 -67
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ pnpm add sandbox0
|
|
|
16
16
|
|
|
17
17
|
- Node.js 18.0.0 or later
|
|
18
18
|
|
|
19
|
+
Streaming APIs prefer a runtime-native `globalThis.WebSocket` when a Node-compatible host exposes one, and fall back to the `ws` package on older Node runtimes. This keeps the main SDK entry compatible with SandFunc-style runtimes that expose a standard outbound WebSocket client without requiring raw socket access in user code.
|
|
20
|
+
|
|
19
21
|
## Configuration
|
|
20
22
|
|
|
21
23
|
| Environment Variable | Required | Default | Description |
|
|
@@ -67,7 +69,7 @@ console.log(`exit=${done.exitCode} state=${done.state}`);
|
|
|
67
69
|
## Documentation
|
|
68
70
|
|
|
69
71
|
- [Sandbox0 docs](https://sandbox0.ai/docs)
|
|
70
|
-
- [Template
|
|
72
|
+
- [Template warm processes](https://sandbox0.ai/docs/template/warm-processes)
|
|
71
73
|
- [Volume mounts](https://sandbox0.ai/docs/volume/mounts)
|
|
72
74
|
|
|
73
75
|
## Bootstrap Mounts At Claim Time
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { CreateAPIKeyRequest, SuccessAPIKeyListResponse, SuccessCreateAPIKeyResponse, SuccessMessageResponse } from '../models/index.js';
|
|
13
|
+
import type { CreateAPIKeyRequest, SuccessAPIKeyListResponse, SuccessCreateAPIKeyResponse, SuccessCurrentAPIKeyResponse, SuccessMessageResponse } from '../models/index.js';
|
|
14
14
|
export interface ApiKeysIdDeactivatePostRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
}
|
|
@@ -24,6 +24,16 @@ export interface ApiKeysPostRequest {
|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class ApiKeysApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Returns the identity and permissions of the currently authenticated API key.
|
|
29
|
+
* Introspect current API key
|
|
30
|
+
*/
|
|
31
|
+
apiKeysCurrentGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessCurrentAPIKeyResponse>>;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the identity and permissions of the currently authenticated API key.
|
|
34
|
+
* Introspect current API key
|
|
35
|
+
*/
|
|
36
|
+
apiKeysCurrentGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessCurrentAPIKeyResponse>;
|
|
27
37
|
/**
|
|
28
38
|
* List API keys
|
|
29
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiKeysApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/ApiKeysApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,mBAAmB,EAEnB,yBAAyB,EACzB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiKeysApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/ApiKeysApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,mBAAmB,EAEnB,yBAAyB,EACzB,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAgBzB,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IAC/B,mBAAmB,EAAE,mBAAmB,CAAC;CAC5C;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,OAAO;IAE3C;;;OAGG;IACG,oBAAoB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;IA0BlJ;;;OAGG;IACG,iBAAiB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAK1H;;OAEG;IACG,aAAa,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IA0BxI;;OAEG;IACG,UAAU,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAKhH;;OAEG;IACG,0BAA0B,CAAC,iBAAiB,EAAE,8BAA8B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAkCrM;;OAEG;IACG,uBAAuB,CAAC,iBAAiB,EAAE,8BAA8B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAK7K;;OAEG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAkCrL;;OAEG;IACG,eAAe,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAK7J;;OAEG;IACG,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAoClL;;OAEG;IACG,WAAW,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAK7J"}
|
|
@@ -12,11 +12,42 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { CreateAPIKeyRequestToJSON, SuccessAPIKeyListResponseFromJSON, SuccessCreateAPIKeyResponseFromJSON, SuccessMessageResponseFromJSON, } from '../models/index.js';
|
|
15
|
+
import { CreateAPIKeyRequestToJSON, SuccessAPIKeyListResponseFromJSON, SuccessCreateAPIKeyResponseFromJSON, SuccessCurrentAPIKeyResponseFromJSON, SuccessMessageResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class ApiKeysApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Returns the identity and permissions of the currently authenticated API key.
|
|
22
|
+
* Introspect current API key
|
|
23
|
+
*/
|
|
24
|
+
async apiKeysCurrentGetRaw(initOverrides) {
|
|
25
|
+
const queryParameters = {};
|
|
26
|
+
const headerParameters = {};
|
|
27
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
28
|
+
const token = this.configuration.accessToken;
|
|
29
|
+
const tokenString = await token("bearerAuth", []);
|
|
30
|
+
if (tokenString) {
|
|
31
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
let urlPath = `/api-keys/current`;
|
|
35
|
+
const response = await this.request({
|
|
36
|
+
path: urlPath,
|
|
37
|
+
method: 'GET',
|
|
38
|
+
headers: headerParameters,
|
|
39
|
+
query: queryParameters,
|
|
40
|
+
}, initOverrides);
|
|
41
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessCurrentAPIKeyResponseFromJSON(jsonValue));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns the identity and permissions of the currently authenticated API key.
|
|
45
|
+
* Introspect current API key
|
|
46
|
+
*/
|
|
47
|
+
async apiKeysCurrentGet(initOverrides) {
|
|
48
|
+
const response = await this.apiKeysCurrentGetRaw(initOverrides);
|
|
49
|
+
return await response.value();
|
|
50
|
+
}
|
|
20
51
|
/**
|
|
21
52
|
* List API keys
|
|
22
53
|
*/
|
|
@@ -10,13 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { SuccessIdentityListResponse, SuccessMessageResponse, SuccessUserResponse, UpdateUserRequest } from '../models/index.js';
|
|
13
|
+
import type { CreateSSHPublicKeyRequest, SuccessIdentityListResponse, SuccessMessageResponse, SuccessSSHPublicKeyListResponse, SuccessSSHPublicKeyResponse, SuccessUserResponse, UpdateUserRequest } from '../models/index.js';
|
|
14
14
|
export interface UsersMeIdentitiesIdDeleteRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
}
|
|
17
17
|
export interface UsersMePutRequest {
|
|
18
18
|
updateUserRequest: UpdateUserRequest;
|
|
19
19
|
}
|
|
20
|
+
export interface UsersMeSshKeysIdDeleteRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
23
|
+
export interface UsersMeSshKeysPostRequest {
|
|
24
|
+
createSSHPublicKeyRequest: CreateSSHPublicKeyRequest;
|
|
25
|
+
}
|
|
20
26
|
/**
|
|
21
27
|
*
|
|
22
28
|
*/
|
|
@@ -53,5 +59,29 @@ export declare class UsersApi extends runtime.BaseAPI {
|
|
|
53
59
|
* Update current user
|
|
54
60
|
*/
|
|
55
61
|
usersMePut(requestParameters: UsersMePutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessUserResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* List current user SSH public keys
|
|
64
|
+
*/
|
|
65
|
+
usersMeSshKeysGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSSHPublicKeyListResponse>>;
|
|
66
|
+
/**
|
|
67
|
+
* List current user SSH public keys
|
|
68
|
+
*/
|
|
69
|
+
usersMeSshKeysGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSSHPublicKeyListResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Delete a current user SSH public key
|
|
72
|
+
*/
|
|
73
|
+
usersMeSshKeysIdDeleteRaw(requestParameters: UsersMeSshKeysIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessMessageResponse>>;
|
|
74
|
+
/**
|
|
75
|
+
* Delete a current user SSH public key
|
|
76
|
+
*/
|
|
77
|
+
usersMeSshKeysIdDelete(requestParameters: UsersMeSshKeysIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessMessageResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Create a current user SSH public key
|
|
80
|
+
*/
|
|
81
|
+
usersMeSshKeysPostRaw(requestParameters: UsersMeSshKeysPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSSHPublicKeyResponse>>;
|
|
82
|
+
/**
|
|
83
|
+
* Create a current user SSH public key
|
|
84
|
+
*/
|
|
85
|
+
usersMeSshKeysPost(requestParameters: UsersMeSshKeysPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSSHPublicKeyResponse>;
|
|
56
86
|
}
|
|
57
87
|
//# sourceMappingURL=UsersApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsersApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/UsersApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"UsersApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/UsersApi.ts"],"names":[],"mappings":"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"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { SuccessIdentityListResponseFromJSON, SuccessMessageResponseFromJSON, SuccessUserResponseFromJSON, UpdateUserRequestToJSON, } from '../models/index.js';
|
|
15
|
+
import { CreateSSHPublicKeyRequestToJSON, SuccessIdentityListResponseFromJSON, SuccessMessageResponseFromJSON, SuccessSSHPublicKeyListResponseFromJSON, SuccessSSHPublicKeyResponseFromJSON, SuccessUserResponseFromJSON, UpdateUserRequestToJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -142,4 +142,100 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
142
142
|
const response = await this.usersMePutRaw(requestParameters, initOverrides);
|
|
143
143
|
return await response.value();
|
|
144
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* List current user SSH public keys
|
|
147
|
+
*/
|
|
148
|
+
async usersMeSshKeysGetRaw(initOverrides) {
|
|
149
|
+
const queryParameters = {};
|
|
150
|
+
const headerParameters = {};
|
|
151
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
152
|
+
const token = this.configuration.accessToken;
|
|
153
|
+
const tokenString = await token("bearerAuth", []);
|
|
154
|
+
if (tokenString) {
|
|
155
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
let urlPath = `/users/me/ssh-keys`;
|
|
159
|
+
const response = await this.request({
|
|
160
|
+
path: urlPath,
|
|
161
|
+
method: 'GET',
|
|
162
|
+
headers: headerParameters,
|
|
163
|
+
query: queryParameters,
|
|
164
|
+
}, initOverrides);
|
|
165
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSSHPublicKeyListResponseFromJSON(jsonValue));
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* List current user SSH public keys
|
|
169
|
+
*/
|
|
170
|
+
async usersMeSshKeysGet(initOverrides) {
|
|
171
|
+
const response = await this.usersMeSshKeysGetRaw(initOverrides);
|
|
172
|
+
return await response.value();
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Delete a current user SSH public key
|
|
176
|
+
*/
|
|
177
|
+
async usersMeSshKeysIdDeleteRaw(requestParameters, initOverrides) {
|
|
178
|
+
if (requestParameters['id'] == null) {
|
|
179
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling usersMeSshKeysIdDelete().');
|
|
180
|
+
}
|
|
181
|
+
const queryParameters = {};
|
|
182
|
+
const headerParameters = {};
|
|
183
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
184
|
+
const token = this.configuration.accessToken;
|
|
185
|
+
const tokenString = await token("bearerAuth", []);
|
|
186
|
+
if (tokenString) {
|
|
187
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
let urlPath = `/users/me/ssh-keys/{id}`;
|
|
191
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
192
|
+
const response = await this.request({
|
|
193
|
+
path: urlPath,
|
|
194
|
+
method: 'DELETE',
|
|
195
|
+
headers: headerParameters,
|
|
196
|
+
query: queryParameters,
|
|
197
|
+
}, initOverrides);
|
|
198
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessMessageResponseFromJSON(jsonValue));
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Delete a current user SSH public key
|
|
202
|
+
*/
|
|
203
|
+
async usersMeSshKeysIdDelete(requestParameters, initOverrides) {
|
|
204
|
+
const response = await this.usersMeSshKeysIdDeleteRaw(requestParameters, initOverrides);
|
|
205
|
+
return await response.value();
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Create a current user SSH public key
|
|
209
|
+
*/
|
|
210
|
+
async usersMeSshKeysPostRaw(requestParameters, initOverrides) {
|
|
211
|
+
if (requestParameters['createSSHPublicKeyRequest'] == null) {
|
|
212
|
+
throw new runtime.RequiredError('createSSHPublicKeyRequest', 'Required parameter "createSSHPublicKeyRequest" was null or undefined when calling usersMeSshKeysPost().');
|
|
213
|
+
}
|
|
214
|
+
const queryParameters = {};
|
|
215
|
+
const headerParameters = {};
|
|
216
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
217
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
218
|
+
const token = this.configuration.accessToken;
|
|
219
|
+
const tokenString = await token("bearerAuth", []);
|
|
220
|
+
if (tokenString) {
|
|
221
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
let urlPath = `/users/me/ssh-keys`;
|
|
225
|
+
const response = await this.request({
|
|
226
|
+
path: urlPath,
|
|
227
|
+
method: 'POST',
|
|
228
|
+
headers: headerParameters,
|
|
229
|
+
query: queryParameters,
|
|
230
|
+
body: CreateSSHPublicKeyRequestToJSON(requestParameters['createSSHPublicKeyRequest']),
|
|
231
|
+
}, initOverrides);
|
|
232
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSSHPublicKeyResponseFromJSON(jsonValue));
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Create a current user SSH public key
|
|
236
|
+
*/
|
|
237
|
+
async usersMeSshKeysPost(requestParameters, initOverrides) {
|
|
238
|
+
const response = await this.usersMeSshKeysPostRaw(requestParameters, initOverrides);
|
|
239
|
+
return await response.value();
|
|
240
|
+
}
|
|
145
241
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.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 CreateSSHPublicKeyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateSSHPublicKeyRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateSSHPublicKeyRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateSSHPublicKeyRequest
|
|
28
|
+
*/
|
|
29
|
+
publicKey: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateSSHPublicKeyRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateSSHPublicKeyRequest(value: object): value is CreateSSHPublicKeyRequest;
|
|
35
|
+
export declare function CreateSSHPublicKeyRequestFromJSON(json: any): CreateSSHPublicKeyRequest;
|
|
36
|
+
export declare function CreateSSHPublicKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSSHPublicKeyRequest;
|
|
37
|
+
export declare function CreateSSHPublicKeyRequestToJSON(json: any): CreateSSHPublicKeyRequest;
|
|
38
|
+
export declare function CreateSSHPublicKeyRequestToJSONTyped(value?: CreateSSHPublicKeyRequest | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=CreateSSHPublicKeyRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateSSHPublicKeyRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSSHPublicKeyRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAIrG;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEtF;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yBAAyB,CASzH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEpF;AAED,wBAAgB,oCAAoC,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxI"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.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 CreateSSHPublicKeyRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateSSHPublicKeyRequest(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('publicKey' in value) || value['publicKey'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function CreateSSHPublicKeyRequestFromJSON(json) {
|
|
25
|
+
return CreateSSHPublicKeyRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function CreateSSHPublicKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'publicKey': json['public_key'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CreateSSHPublicKeyRequestToJSON(json) {
|
|
37
|
+
return CreateSSHPublicKeyRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CreateSSHPublicKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'public_key': value['publicKey'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.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 CurrentAPIKeyResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CurrentAPIKeyResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CurrentAPIKeyResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CurrentAPIKeyResponse
|
|
28
|
+
*/
|
|
29
|
+
teamId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CurrentAPIKeyResponse
|
|
34
|
+
*/
|
|
35
|
+
createdBy: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CurrentAPIKeyResponse
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof CurrentAPIKeyResponse
|
|
46
|
+
*/
|
|
47
|
+
roles: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof CurrentAPIKeyResponse
|
|
52
|
+
*/
|
|
53
|
+
permissions: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof CurrentAPIKeyResponse
|
|
58
|
+
*/
|
|
59
|
+
isActive: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof CurrentAPIKeyResponse
|
|
64
|
+
*/
|
|
65
|
+
expiresAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the CurrentAPIKeyResponse interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfCurrentAPIKeyResponse(value: object): value is CurrentAPIKeyResponse;
|
|
71
|
+
export declare function CurrentAPIKeyResponseFromJSON(json: any): CurrentAPIKeyResponse;
|
|
72
|
+
export declare function CurrentAPIKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentAPIKeyResponse;
|
|
73
|
+
export declare function CurrentAPIKeyResponseToJSON(json: any): CurrentAPIKeyResponse;
|
|
74
|
+
export declare function CurrentAPIKeyResponseToJSONTyped(value?: CurrentAPIKeyResponse | null, ignoreDiscriminator?: boolean): any;
|
|
75
|
+
//# sourceMappingURL=CurrentAPIKeyResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentAPIKeyResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CurrentAPIKeyResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAU7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAejH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBhI"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.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 CurrentAPIKeyResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCurrentAPIKeyResponse(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('teamId' in value) || value['teamId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('roles' in value) || value['roles'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function CurrentAPIKeyResponseFromJSON(json) {
|
|
37
|
+
return CurrentAPIKeyResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CurrentAPIKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'teamId': json['team_id'],
|
|
46
|
+
'createdBy': json['created_by'],
|
|
47
|
+
'type': json['type'],
|
|
48
|
+
'roles': json['roles'],
|
|
49
|
+
'permissions': json['permissions'],
|
|
50
|
+
'isActive': json['is_active'],
|
|
51
|
+
'expiresAt': (new Date(json['expires_at'])),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function CurrentAPIKeyResponseToJSON(json) {
|
|
55
|
+
return CurrentAPIKeyResponseToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function CurrentAPIKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'team_id': value['teamId'],
|
|
64
|
+
'created_by': value['createdBy'],
|
|
65
|
+
'type': value['type'],
|
|
66
|
+
'roles': value['roles'],
|
|
67
|
+
'permissions': value['permissions'],
|
|
68
|
+
'is_active': value['isActive'],
|
|
69
|
+
'expires_at': value['expiresAt'].toISOString(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.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 SSHPublicKey
|
|
16
|
+
*/
|
|
17
|
+
export interface SSHPublicKey {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SSHPublicKey
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SSHPublicKey
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SSHPublicKey
|
|
34
|
+
*/
|
|
35
|
+
publicKey: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SSHPublicKey
|
|
40
|
+
*/
|
|
41
|
+
keyType: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SSHPublicKey
|
|
46
|
+
*/
|
|
47
|
+
fingerprintSha256: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SSHPublicKey
|
|
52
|
+
*/
|
|
53
|
+
comment?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof SSHPublicKey
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof SSHPublicKey
|
|
64
|
+
*/
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the SSHPublicKey interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfSSHPublicKey(value: object): value is SSHPublicKey;
|
|
71
|
+
export declare function SSHPublicKeyFromJSON(json: any): SSHPublicKey;
|
|
72
|
+
export declare function SSHPublicKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SSHPublicKey;
|
|
73
|
+
export declare function SSHPublicKeyToJSON(json: any): SSHPublicKey;
|
|
74
|
+
export declare function SSHPublicKeyToJSONTyped(value?: SSHPublicKey | null, ignoreDiscriminator?: boolean): any;
|
|
75
|
+
//# sourceMappingURL=SSHPublicKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SSHPublicKey.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SSHPublicKey.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAS3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAe/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB9G"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.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 SSHPublicKey interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSSHPublicKey(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('publicKey' in value) || value['publicKey'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('keyType' in value) || value['keyType'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('fingerprintSha256' in value) || value['fingerprintSha256'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function SSHPublicKeyFromJSON(json) {
|
|
35
|
+
return SSHPublicKeyFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function SSHPublicKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'publicKey': json['public_key'],
|
|
45
|
+
'keyType': json['key_type'],
|
|
46
|
+
'fingerprintSha256': json['fingerprint_sha256'],
|
|
47
|
+
'comment': json['comment'] == null ? undefined : json['comment'],
|
|
48
|
+
'createdAt': (new Date(json['created_at'])),
|
|
49
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function SSHPublicKeyToJSON(json) {
|
|
53
|
+
return SSHPublicKeyToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function SSHPublicKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'public_key': value['publicKey'],
|
|
63
|
+
'key_type': value['keyType'],
|
|
64
|
+
'fingerprint_sha256': value['fingerprintSha256'],
|
|
65
|
+
'comment': value['comment'],
|
|
66
|
+
'created_at': value['createdAt'].toISOString(),
|
|
67
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
68
|
+
};
|
|
69
|
+
}
|