@boatdev/sdk 1.9.8 → 1.10.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 +8 -0
- package/dist/apis/BoatApi.d.ts +52 -6
- package/dist/apis/BoatApi.js +109 -7
- package/dist/esm/apis/BoatApi.d.ts +52 -6
- package/dist/esm/apis/BoatApi.js +108 -6
- package/dist/esm/http2-fetch.js +17 -9
- package/dist/esm/models/CreateSandboxRequest.d.ts +7 -1
- package/dist/esm/models/CreateSandboxRequest.js +2 -0
- package/dist/esm/models/CreateSandboxResponse.d.ts +6 -0
- package/dist/esm/models/CreateSandboxResponse.js +2 -0
- package/dist/esm/models/CreateScopedApiKeyRequest.d.ts +1 -1
- package/dist/esm/models/LimitsFields.d.ts +1 -1
- package/dist/esm/models/LimitsResponse.d.ts +1 -1
- package/dist/esm/models/MeResponseAllOfUser.d.ts +1 -0
- package/dist/esm/models/MeResponseAllOfUser.js +1 -0
- package/dist/esm/models/ResumeRequest.d.ts +1 -1
- package/dist/esm/models/Sandbox.d.ts +28 -1
- package/dist/esm/models/Sandbox.js +14 -0
- package/dist/esm/models/SandboxCost.d.ts +44 -0
- package/dist/esm/models/SandboxCost.js +51 -0
- package/dist/esm/models/Unshare200Response.d.ts +39 -0
- package/dist/esm/models/Unshare200Response.js +44 -0
- package/dist/esm/models/UpdateOrganization200Response.d.ts +50 -0
- package/dist/esm/models/UpdateOrganization200Response.js +47 -0
- package/dist/esm/models/UpdateOrganizationRequest.d.ts +32 -0
- package/dist/esm/models/UpdateOrganizationRequest.js +43 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/http2-fetch.js +17 -9
- package/dist/models/CreateSandboxRequest.d.ts +7 -1
- package/dist/models/CreateSandboxRequest.js +2 -0
- package/dist/models/CreateSandboxResponse.d.ts +6 -0
- package/dist/models/CreateSandboxResponse.js +2 -0
- package/dist/models/CreateScopedApiKeyRequest.d.ts +1 -1
- package/dist/models/LimitsFields.d.ts +1 -1
- package/dist/models/LimitsResponse.d.ts +1 -1
- package/dist/models/MeResponseAllOfUser.d.ts +1 -0
- package/dist/models/MeResponseAllOfUser.js +1 -0
- package/dist/models/ResumeRequest.d.ts +1 -1
- package/dist/models/Sandbox.d.ts +28 -1
- package/dist/models/Sandbox.js +15 -1
- package/dist/models/SandboxCost.d.ts +44 -0
- package/dist/models/SandboxCost.js +58 -0
- package/dist/models/Unshare200Response.d.ts +39 -0
- package/dist/models/Unshare200Response.js +51 -0
- package/dist/models/UpdateOrganization200Response.d.ts +50 -0
- package/dist/models/UpdateOrganization200Response.js +54 -0
- package/dist/models/UpdateOrganizationRequest.d.ts +32 -0
- package/dist/models/UpdateOrganizationRequest.js +50 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/BoatApi.md +161 -4
- package/docs/CreateSandboxRequest.md +2 -0
- package/docs/CreateSandboxResponse.md +2 -0
- package/docs/Sandbox.md +6 -0
- package/docs/SandboxCost.md +37 -0
- package/docs/Unshare200Response.md +34 -0
- package/docs/UpdateOrganization200Response.md +38 -0
- package/docs/UpdateOrganizationRequest.md +32 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +163 -6
- package/src/http2-fetch.ts +14 -4
- package/src/models/CreateSandboxRequest.ts +9 -1
- package/src/models/CreateSandboxResponse.ts +8 -0
- package/src/models/CreateScopedApiKeyRequest.ts +1 -1
- package/src/models/LimitsFields.ts +1 -1
- package/src/models/LimitsResponse.ts +1 -1
- package/src/models/MeResponseAllOfUser.ts +1 -0
- package/src/models/ResumeRequest.ts +1 -1
- package/src/models/Sandbox.ts +41 -1
- package/src/models/SandboxCost.ts +84 -0
- package/src/models/Unshare200Response.ts +81 -0
- package/src/models/UpdateOrganization200Response.ts +89 -0
- package/src/models/UpdateOrganizationRequest.ts +66 -0
- package/src/models/index.ts +4 -0
package/src/models/Sandbox.ts
CHANGED
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
StopOperationToJSON,
|
|
28
28
|
StopOperationToJSONTyped,
|
|
29
29
|
} from './StopOperation';
|
|
30
|
+
import type { SandboxCost } from './SandboxCost';
|
|
31
|
+
import {
|
|
32
|
+
SandboxCostFromJSON,
|
|
33
|
+
SandboxCostFromJSONTyped,
|
|
34
|
+
SandboxCostToJSON,
|
|
35
|
+
SandboxCostToJSONTyped,
|
|
36
|
+
} from './SandboxCost';
|
|
30
37
|
import type { SandboxHydration } from './SandboxHydration';
|
|
31
38
|
import {
|
|
32
39
|
SandboxHydrationFromJSON,
|
|
@@ -65,6 +72,12 @@ export interface Sandbox {
|
|
|
65
72
|
* @memberof Sandbox
|
|
66
73
|
*/
|
|
67
74
|
error?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* When Boat deleted the snapshot data of this stopped sandbox, 14 days after it stopped. Resume and fork then fail with `409 snapshot_data_expired`. Null while the data is kept.
|
|
77
|
+
* @type {Date}
|
|
78
|
+
* @memberof Sandbox
|
|
79
|
+
*/
|
|
80
|
+
dataExpiredAt?: Date | null;
|
|
68
81
|
/**
|
|
69
82
|
* `degraded` when the machine is alive but Boat cannot fully reach it (for example a firewall rule inside the sandbox blocks the tunnel). The sandbox keeps running.
|
|
70
83
|
* @type {SandboxHealthEnum}
|
|
@@ -234,7 +247,7 @@ export interface Sandbox {
|
|
|
234
247
|
*/
|
|
235
248
|
createdById?: string | null;
|
|
236
249
|
/**
|
|
237
|
-
* What you may do with this sandbox. `owner`: you created it. `use`: a teammate's organization sandbox that
|
|
250
|
+
* What you may do with this sandbox. `owner`: you created it. `use`: a teammate's organization sandbox that is `shared` (see `visibility`), so you can open, run commands in, prompt, resume and stop it. `view`: a teammate's organization sandbox that is `private`, so you can see it and stop it until they share it (`POST /sandboxes/{sandboxId}/share`).
|
|
238
251
|
* @type {SandboxAccessEnum}
|
|
239
252
|
* @memberof Sandbox
|
|
240
253
|
*/
|
|
@@ -245,6 +258,18 @@ export interface Sandbox {
|
|
|
245
258
|
* @memberof Sandbox
|
|
246
259
|
*/
|
|
247
260
|
holdsCreatorLogins?: boolean;
|
|
261
|
+
/**
|
|
262
|
+
* Organization sandboxes only; null for a personal sandbox. `shared`: every member can use it. It holds none of its creator's personal logins (`noEnv`, shared and restarted, or created on an environment that passes nothing) and its creator did not make it private. `private`: only its creator can use it. It holds their logins, or its creator made it private (`POST /sandboxes/{sandboxId}/unshare`, or the organization's `newSandboxesPrivate` default).
|
|
263
|
+
* @type {SandboxVisibilityEnum}
|
|
264
|
+
* @memberof Sandbox
|
|
265
|
+
*/
|
|
266
|
+
visibility?: SandboxVisibilityEnum | null;
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @type {SandboxCost}
|
|
270
|
+
* @memberof Sandbox
|
|
271
|
+
*/
|
|
272
|
+
cost?: SandboxCost;
|
|
248
273
|
/**
|
|
249
274
|
* True once the sandbox is shared but not restarted yet. Its creator's logins are wiped at its next start, and the organization can use it from then on.
|
|
250
275
|
* @type {boolean}
|
|
@@ -359,6 +384,15 @@ export const SandboxAccessEnum = {
|
|
|
359
384
|
} as const;
|
|
360
385
|
export type SandboxAccessEnum = typeof SandboxAccessEnum[keyof typeof SandboxAccessEnum];
|
|
361
386
|
|
|
387
|
+
/**
|
|
388
|
+
* @export
|
|
389
|
+
*/
|
|
390
|
+
export const SandboxVisibilityEnum = {
|
|
391
|
+
Shared: 'shared',
|
|
392
|
+
Private: 'private'
|
|
393
|
+
} as const;
|
|
394
|
+
export type SandboxVisibilityEnum = typeof SandboxVisibilityEnum[keyof typeof SandboxVisibilityEnum];
|
|
395
|
+
|
|
362
396
|
/**
|
|
363
397
|
* @export
|
|
364
398
|
*/
|
|
@@ -409,6 +443,7 @@ export function SandboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): S
|
|
|
409
443
|
'name': json['name'],
|
|
410
444
|
'state': json['state'],
|
|
411
445
|
'error': json['error'] == null ? undefined : json['error'],
|
|
446
|
+
'dataExpiredAt': json['dataExpiredAt'] == null ? undefined : (new Date(json['dataExpiredAt'])),
|
|
412
447
|
'health': json['health'] == null ? undefined : json['health'],
|
|
413
448
|
'healthReason': json['healthReason'] == null ? undefined : json['healthReason'],
|
|
414
449
|
'degradedSince': json['degradedSince'] == null ? undefined : (new Date(json['degradedSince'])),
|
|
@@ -439,6 +474,8 @@ export function SandboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): S
|
|
|
439
474
|
'createdById': json['createdById'] == null ? undefined : json['createdById'],
|
|
440
475
|
'access': json['access'] == null ? undefined : json['access'],
|
|
441
476
|
'holdsCreatorLogins': json['holdsCreatorLogins'] == null ? undefined : json['holdsCreatorLogins'],
|
|
477
|
+
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
478
|
+
'cost': json['cost'] == null ? undefined : SandboxCostFromJSON(json['cost']),
|
|
442
479
|
'wipePendingUntilRestart': json['wipePendingUntilRestart'] == null ? undefined : json['wipePendingUntilRestart'],
|
|
443
480
|
'subdomain': json['subdomain'] == null ? undefined : json['subdomain'],
|
|
444
481
|
'lastSnapshotAttemptAt': json['lastSnapshotAttemptAt'] == null ? undefined : (new Date(json['lastSnapshotAttemptAt'])),
|
|
@@ -466,6 +503,7 @@ export function SandboxToJSONTyped(value?: Sandbox | null, ignoreDiscriminator:
|
|
|
466
503
|
'name': value['name'],
|
|
467
504
|
'state': value['state'],
|
|
468
505
|
'error': value['error'],
|
|
506
|
+
'dataExpiredAt': value['dataExpiredAt'] == null ? value['dataExpiredAt'] : value['dataExpiredAt'].toISOString(),
|
|
469
507
|
'health': value['health'],
|
|
470
508
|
'healthReason': value['healthReason'],
|
|
471
509
|
'degradedSince': value['degradedSince'] == null ? value['degradedSince'] : value['degradedSince'].toISOString(),
|
|
@@ -496,6 +534,8 @@ export function SandboxToJSONTyped(value?: Sandbox | null, ignoreDiscriminator:
|
|
|
496
534
|
'createdById': value['createdById'],
|
|
497
535
|
'access': value['access'],
|
|
498
536
|
'holdsCreatorLogins': value['holdsCreatorLogins'],
|
|
537
|
+
'visibility': value['visibility'],
|
|
538
|
+
'cost': SandboxCostToJSON(value['cost']),
|
|
499
539
|
'wipePendingUntilRestart': value['wipePendingUntilRestart'],
|
|
500
540
|
'subdomain': value['subdomain'],
|
|
501
541
|
'lastSnapshotAttemptAt': value['lastSnapshotAttemptAt'] == null ? value['lastSnapshotAttemptAt'] : value['lastSnapshotAttemptAt'].toISOString(),
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
* Only with `include=cost` on `GET /sandboxes`. Machine time this sandbox used this calendar month (UTC), at list price. Same meter as `GET /sandboxes/{sandboxId}/usage`.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SandboxCost
|
|
20
|
+
*/
|
|
21
|
+
export interface SandboxCost {
|
|
22
|
+
/**
|
|
23
|
+
* The 1st of this month, 00:00 UTC.
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof SandboxCost
|
|
26
|
+
*/
|
|
27
|
+
since: Date;
|
|
28
|
+
/**
|
|
29
|
+
* Billable machine-seconds, size multiplier applied.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SandboxCost
|
|
32
|
+
*/
|
|
33
|
+
seconds: number;
|
|
34
|
+
/**
|
|
35
|
+
* seconds / secondsPerDollar, at list price.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SandboxCost
|
|
38
|
+
*/
|
|
39
|
+
dollars: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SandboxCost interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSandboxCost(value: object): value is SandboxCost {
|
|
46
|
+
if (!('since' in value) || value['since'] === undefined) return false;
|
|
47
|
+
if (!('seconds' in value) || value['seconds'] === undefined) return false;
|
|
48
|
+
if (!('dollars' in value) || value['dollars'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SandboxCostFromJSON(json: any): SandboxCost {
|
|
53
|
+
return SandboxCostFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SandboxCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxCost {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'since': (new Date(json['since'])),
|
|
63
|
+
'seconds': json['seconds'],
|
|
64
|
+
'dollars': json['dollars'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SandboxCostToJSON(json: any): SandboxCost {
|
|
69
|
+
return SandboxCostToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SandboxCostToJSONTyped(value?: SandboxCost | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'since': value['since'].toISOString(),
|
|
80
|
+
'seconds': value['seconds'],
|
|
81
|
+
'dollars': value['dollars'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Boat Public API v1
|
|
5
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Sandbox } from './Sandbox';
|
|
17
|
+
import {
|
|
18
|
+
SandboxFromJSON,
|
|
19
|
+
SandboxFromJSONTyped,
|
|
20
|
+
SandboxToJSON,
|
|
21
|
+
SandboxToJSONTyped,
|
|
22
|
+
} from './Sandbox';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Unshare200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface Unshare200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Sandbox}
|
|
33
|
+
* @memberof Unshare200Response
|
|
34
|
+
*/
|
|
35
|
+
sandbox?: Sandbox;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Unshare200Response
|
|
40
|
+
*/
|
|
41
|
+
message?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the Unshare200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfUnshare200Response(value: object): value is Unshare200Response {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function Unshare200ResponseFromJSON(json: any): Unshare200Response {
|
|
52
|
+
return Unshare200ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function Unshare200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Unshare200Response {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'sandbox': json['sandbox'] == null ? undefined : SandboxFromJSON(json['sandbox']),
|
|
62
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function Unshare200ResponseToJSON(json: any): Unshare200Response {
|
|
67
|
+
return Unshare200ResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function Unshare200ResponseToJSONTyped(value?: Unshare200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'sandbox': SandboxToJSON(value['sandbox']),
|
|
78
|
+
'message': value['message'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Boat Public API v1
|
|
5
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateOrganization200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateOrganization200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdateOrganization200Response
|
|
26
|
+
*/
|
|
27
|
+
ok?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateOrganization200Response
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof UpdateOrganization200Response
|
|
38
|
+
*/
|
|
39
|
+
success?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof UpdateOrganization200Response
|
|
44
|
+
*/
|
|
45
|
+
newSandboxesPrivate?: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the UpdateOrganization200Response interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfUpdateOrganization200Response(value: object): value is UpdateOrganization200Response {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UpdateOrganization200ResponseFromJSON(json: any): UpdateOrganization200Response {
|
|
56
|
+
return UpdateOrganization200ResponseFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UpdateOrganization200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrganization200Response {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'ok': json['ok'] == null ? undefined : json['ok'],
|
|
66
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
67
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
68
|
+
'newSandboxesPrivate': json['newSandboxesPrivate'] == null ? undefined : json['newSandboxesPrivate'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function UpdateOrganization200ResponseToJSON(json: any): UpdateOrganization200Response {
|
|
73
|
+
return UpdateOrganization200ResponseToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function UpdateOrganization200ResponseToJSONTyped(value?: UpdateOrganization200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'ok': value['ok'],
|
|
84
|
+
'type': value['type'],
|
|
85
|
+
'success': value['success'],
|
|
86
|
+
'newSandboxesPrivate': value['newSandboxesPrivate'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Boat Public API v1
|
|
5
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateOrganizationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateOrganizationRequest {
|
|
22
|
+
/**
|
|
23
|
+
* True = new sandboxes start private. False = they start shared.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdateOrganizationRequest
|
|
26
|
+
*/
|
|
27
|
+
newSandboxesPrivate: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateOrganizationRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateOrganizationRequest(value: object): value is UpdateOrganizationRequest {
|
|
34
|
+
if (!('newSandboxesPrivate' in value) || value['newSandboxesPrivate'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UpdateOrganizationRequestFromJSON(json: any): UpdateOrganizationRequest {
|
|
39
|
+
return UpdateOrganizationRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UpdateOrganizationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrganizationRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'newSandboxesPrivate': json['newSandboxesPrivate'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateOrganizationRequestToJSON(json: any): UpdateOrganizationRequest {
|
|
53
|
+
return UpdateOrganizationRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateOrganizationRequestToJSONTyped(value?: UpdateOrganizationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'newSandboxesPrivate': value['newSandboxesPrivate'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -119,6 +119,7 @@ export * from './SandboxActionResponse';
|
|
|
119
119
|
export * from './SandboxAiAccessResponse';
|
|
120
120
|
export * from './SandboxAiUsage';
|
|
121
121
|
export * from './SandboxAiUsageResponse';
|
|
122
|
+
export * from './SandboxCost';
|
|
122
123
|
export * from './SandboxEnvironment';
|
|
123
124
|
export * from './SandboxEnvironmentListResponse';
|
|
124
125
|
export * from './SandboxEnvironmentResponse';
|
|
@@ -166,8 +167,11 @@ export * from './TelemetrySetRequest';
|
|
|
166
167
|
export * from './TelemetrySetResponse';
|
|
167
168
|
export * from './TelemetryTestResult';
|
|
168
169
|
export * from './UnknownEvent';
|
|
170
|
+
export * from './Unshare200Response';
|
|
169
171
|
export * from './UpdateAiProxyRequest';
|
|
170
172
|
export * from './UpdateCredentialProfileRequest';
|
|
173
|
+
export * from './UpdateOrganization200Response';
|
|
174
|
+
export * from './UpdateOrganizationRequest';
|
|
171
175
|
export * from './UpdateSandboxEnvironmentRequest';
|
|
172
176
|
export * from './UpdateSandboxEnvironmentRequestRepositoriesInner';
|
|
173
177
|
export * from './UpdateSandboxRequest';
|