@boatdev/sdk 1.8.0 → 1.9.1

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.
Files changed (50) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/dist/apis/BoatApi.d.ts +55 -0
  3. package/dist/apis/BoatApi.js +133 -0
  4. package/dist/esm/apis/BoatApi.d.ts +55 -0
  5. package/dist/esm/apis/BoatApi.js +133 -0
  6. package/dist/esm/models/CreateSandboxRequest.d.ts +1 -1
  7. package/dist/esm/models/CreateScopedApiKey503Response.d.ts +2 -9
  8. package/dist/esm/models/CreateScopedApiKey503Response.js +0 -6
  9. package/dist/esm/models/NamedSnapshotShare.d.ts +76 -0
  10. package/dist/esm/models/NamedSnapshotShare.js +74 -0
  11. package/dist/esm/models/NamedSnapshotShareCreatedResponse.d.ts +64 -0
  12. package/dist/esm/models/NamedSnapshotShareCreatedResponse.js +66 -0
  13. package/dist/esm/models/NamedSnapshotShareListResponse.d.ts +58 -0
  14. package/dist/esm/models/NamedSnapshotShareListResponse.js +62 -0
  15. package/dist/esm/models/NamedSnapshotShareRevokedResponse.d.ts +58 -0
  16. package/dist/esm/models/NamedSnapshotShareRevokedResponse.js +62 -0
  17. package/dist/esm/models/SandboxEnvironmentListResponse.d.ts +2 -9
  18. package/dist/esm/models/SandboxEnvironmentListResponse.js +0 -6
  19. package/dist/esm/models/index.d.ts +4 -0
  20. package/dist/esm/models/index.js +4 -0
  21. package/dist/models/CreateSandboxRequest.d.ts +1 -1
  22. package/dist/models/CreateScopedApiKey503Response.d.ts +2 -9
  23. package/dist/models/CreateScopedApiKey503Response.js +1 -7
  24. package/dist/models/NamedSnapshotShare.d.ts +76 -0
  25. package/dist/models/NamedSnapshotShare.js +82 -0
  26. package/dist/models/NamedSnapshotShareCreatedResponse.d.ts +64 -0
  27. package/dist/models/NamedSnapshotShareCreatedResponse.js +74 -0
  28. package/dist/models/NamedSnapshotShareListResponse.d.ts +58 -0
  29. package/dist/models/NamedSnapshotShareListResponse.js +70 -0
  30. package/dist/models/NamedSnapshotShareRevokedResponse.d.ts +58 -0
  31. package/dist/models/NamedSnapshotShareRevokedResponse.js +70 -0
  32. package/dist/models/SandboxEnvironmentListResponse.d.ts +2 -9
  33. package/dist/models/SandboxEnvironmentListResponse.js +1 -7
  34. package/dist/models/index.d.ts +4 -0
  35. package/dist/models/index.js +4 -0
  36. package/docs/BoatApi.md +225 -0
  37. package/docs/NamedSnapshotShare.md +45 -0
  38. package/docs/NamedSnapshotShareCreatedResponse.md +40 -0
  39. package/docs/NamedSnapshotShareListResponse.md +38 -0
  40. package/docs/NamedSnapshotShareRevokedResponse.md +38 -0
  41. package/package.json +1 -1
  42. package/src/apis/BoatApi.ts +201 -0
  43. package/src/models/CreateSandboxRequest.ts +1 -1
  44. package/src/models/CreateScopedApiKey503Response.ts +2 -10
  45. package/src/models/NamedSnapshotShare.ts +131 -0
  46. package/src/models/NamedSnapshotShareCreatedResponse.ts +120 -0
  47. package/src/models/NamedSnapshotShareListResponse.ts +111 -0
  48. package/src/models/NamedSnapshotShareRevokedResponse.ts +111 -0
  49. package/src/models/SandboxEnvironmentListResponse.ts +2 -10
  50. package/src/models/index.ts +4 -0
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A share code for a named snapshot. Any Boat account that holds the code can create a sandbox from the snapshot. Boat stores only a hash of the code. The full code is in the create response only.
14
+ * @export
15
+ * @interface NamedSnapshotShare
16
+ */
17
+ export interface NamedSnapshotShare {
18
+ /**
19
+ * Share id, for example `shr_...`. Pass it to revoke the code.
20
+ * @type {string}
21
+ * @memberof NamedSnapshotShare
22
+ */
23
+ id: string;
24
+ /**
25
+ * The first characters of the code, for example `bsh_xxxxxxxx`. Use it to tell codes apart.
26
+ * @type {string}
27
+ * @memberof NamedSnapshotShare
28
+ */
29
+ codePrefix: string;
30
+ /**
31
+ *
32
+ * @type {NamedSnapshotShareStatusEnum}
33
+ * @memberof NamedSnapshotShare
34
+ */
35
+ status: NamedSnapshotShareStatusEnum;
36
+ /**
37
+ * Number of sandboxes created with this code.
38
+ * @type {number}
39
+ * @memberof NamedSnapshotShare
40
+ */
41
+ useCount: number;
42
+ /**
43
+ * When a sandbox was last created with this code. null if never.
44
+ * @type {Date}
45
+ * @memberof NamedSnapshotShare
46
+ */
47
+ lastUsedAt: Date | null;
48
+ /**
49
+ * When the code was revoked. null while active.
50
+ * @type {Date}
51
+ * @memberof NamedSnapshotShare
52
+ */
53
+ revokedAt: Date | null;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof NamedSnapshotShare
58
+ */
59
+ createdAt: Date;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const NamedSnapshotShareStatusEnum: {
65
+ readonly Active: 'active';
66
+ readonly Revoked: 'revoked';
67
+ };
68
+ export type NamedSnapshotShareStatusEnum = typeof NamedSnapshotShareStatusEnum[keyof typeof NamedSnapshotShareStatusEnum];
69
+ /**
70
+ * Check if a given object implements the NamedSnapshotShare interface.
71
+ */
72
+ export declare function instanceOfNamedSnapshotShare(value: object): value is NamedSnapshotShare;
73
+ export declare function NamedSnapshotShareFromJSON(json: any): NamedSnapshotShare;
74
+ export declare function NamedSnapshotShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShare;
75
+ export declare function NamedSnapshotShareToJSON(json: any): NamedSnapshotShare;
76
+ export declare function NamedSnapshotShareToJSONTyped(value?: NamedSnapshotShare | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Boat Public API v1
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.NamedSnapshotShareStatusEnum = void 0;
17
+ exports.instanceOfNamedSnapshotShare = instanceOfNamedSnapshotShare;
18
+ exports.NamedSnapshotShareFromJSON = NamedSnapshotShareFromJSON;
19
+ exports.NamedSnapshotShareFromJSONTyped = NamedSnapshotShareFromJSONTyped;
20
+ exports.NamedSnapshotShareToJSON = NamedSnapshotShareToJSON;
21
+ exports.NamedSnapshotShareToJSONTyped = NamedSnapshotShareToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.NamedSnapshotShareStatusEnum = {
26
+ Active: 'active',
27
+ Revoked: 'revoked'
28
+ };
29
+ /**
30
+ * Check if a given object implements the NamedSnapshotShare interface.
31
+ */
32
+ function instanceOfNamedSnapshotShare(value) {
33
+ if (!('id' in value) || value['id'] === undefined)
34
+ return false;
35
+ if (!('codePrefix' in value) || value['codePrefix'] === undefined)
36
+ return false;
37
+ if (!('status' in value) || value['status'] === undefined)
38
+ return false;
39
+ if (!('useCount' in value) || value['useCount'] === undefined)
40
+ return false;
41
+ if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined)
42
+ return false;
43
+ if (!('revokedAt' in value) || value['revokedAt'] === undefined)
44
+ return false;
45
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ function NamedSnapshotShareFromJSON(json) {
50
+ return NamedSnapshotShareFromJSONTyped(json, false);
51
+ }
52
+ function NamedSnapshotShareFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'id': json['id'],
58
+ 'codePrefix': json['codePrefix'],
59
+ 'status': json['status'],
60
+ 'useCount': json['useCount'],
61
+ 'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
62
+ 'revokedAt': (json['revokedAt'] == null ? null : new Date(json['revokedAt'])),
63
+ 'createdAt': (new Date(json['createdAt'])),
64
+ };
65
+ }
66
+ function NamedSnapshotShareToJSON(json) {
67
+ return NamedSnapshotShareToJSONTyped(json, false);
68
+ }
69
+ function NamedSnapshotShareToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'id': value['id'],
75
+ 'codePrefix': value['codePrefix'],
76
+ 'status': value['status'],
77
+ 'useCount': value['useCount'],
78
+ 'lastUsedAt': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
79
+ 'revokedAt': value['revokedAt'] == null ? value['revokedAt'] : value['revokedAt'].toISOString(),
80
+ 'createdAt': value['createdAt'].toISOString(),
81
+ };
82
+ }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { NamedSnapshotShare } from './NamedSnapshotShare';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NamedSnapshotShareCreatedResponse
17
+ */
18
+ export interface NamedSnapshotShareCreatedResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof NamedSnapshotShareCreatedResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {NamedSnapshotShareCreatedResponseTypeEnum}
28
+ * @memberof NamedSnapshotShareCreatedResponse
29
+ */
30
+ type: NamedSnapshotShareCreatedResponseTypeEnum;
31
+ /**
32
+ * The named snapshot the code deploys.
33
+ * @type {string}
34
+ * @memberof NamedSnapshotShareCreatedResponse
35
+ */
36
+ name: string;
37
+ /**
38
+ * The share code, for example `bsh_...`. Boat shows it only in this response. Store it now; you cannot get it again.
39
+ * @type {string}
40
+ * @memberof NamedSnapshotShareCreatedResponse
41
+ */
42
+ shareCode: string;
43
+ /**
44
+ *
45
+ * @type {NamedSnapshotShare}
46
+ * @memberof NamedSnapshotShareCreatedResponse
47
+ */
48
+ share: NamedSnapshotShare;
49
+ }
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const NamedSnapshotShareCreatedResponseTypeEnum: {
54
+ readonly SnapshotShareCreated: 'snapshot.share.created';
55
+ };
56
+ export type NamedSnapshotShareCreatedResponseTypeEnum = typeof NamedSnapshotShareCreatedResponseTypeEnum[keyof typeof NamedSnapshotShareCreatedResponseTypeEnum];
57
+ /**
58
+ * Check if a given object implements the NamedSnapshotShareCreatedResponse interface.
59
+ */
60
+ export declare function instanceOfNamedSnapshotShareCreatedResponse(value: object): value is NamedSnapshotShareCreatedResponse;
61
+ export declare function NamedSnapshotShareCreatedResponseFromJSON(json: any): NamedSnapshotShareCreatedResponse;
62
+ export declare function NamedSnapshotShareCreatedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareCreatedResponse;
63
+ export declare function NamedSnapshotShareCreatedResponseToJSON(json: any): NamedSnapshotShareCreatedResponse;
64
+ export declare function NamedSnapshotShareCreatedResponseToJSONTyped(value?: NamedSnapshotShareCreatedResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Boat Public API v1
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.NamedSnapshotShareCreatedResponseTypeEnum = void 0;
17
+ exports.instanceOfNamedSnapshotShareCreatedResponse = instanceOfNamedSnapshotShareCreatedResponse;
18
+ exports.NamedSnapshotShareCreatedResponseFromJSON = NamedSnapshotShareCreatedResponseFromJSON;
19
+ exports.NamedSnapshotShareCreatedResponseFromJSONTyped = NamedSnapshotShareCreatedResponseFromJSONTyped;
20
+ exports.NamedSnapshotShareCreatedResponseToJSON = NamedSnapshotShareCreatedResponseToJSON;
21
+ exports.NamedSnapshotShareCreatedResponseToJSONTyped = NamedSnapshotShareCreatedResponseToJSONTyped;
22
+ const NamedSnapshotShare_1 = require("./NamedSnapshotShare");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.NamedSnapshotShareCreatedResponseTypeEnum = {
27
+ SnapshotShareCreated: 'snapshot.share.created'
28
+ };
29
+ /**
30
+ * Check if a given object implements the NamedSnapshotShareCreatedResponse interface.
31
+ */
32
+ function instanceOfNamedSnapshotShareCreatedResponse(value) {
33
+ if (!('ok' in value) || value['ok'] === undefined)
34
+ return false;
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('name' in value) || value['name'] === undefined)
38
+ return false;
39
+ if (!('shareCode' in value) || value['shareCode'] === undefined)
40
+ return false;
41
+ if (!('share' in value) || value['share'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function NamedSnapshotShareCreatedResponseFromJSON(json) {
46
+ return NamedSnapshotShareCreatedResponseFromJSONTyped(json, false);
47
+ }
48
+ function NamedSnapshotShareCreatedResponseFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'ok': json['ok'],
54
+ 'type': json['type'],
55
+ 'name': json['name'],
56
+ 'shareCode': json['shareCode'],
57
+ 'share': (0, NamedSnapshotShare_1.NamedSnapshotShareFromJSON)(json['share']),
58
+ };
59
+ }
60
+ function NamedSnapshotShareCreatedResponseToJSON(json) {
61
+ return NamedSnapshotShareCreatedResponseToJSONTyped(json, false);
62
+ }
63
+ function NamedSnapshotShareCreatedResponseToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'ok': value['ok'],
69
+ 'type': value['type'],
70
+ 'name': value['name'],
71
+ 'shareCode': value['shareCode'],
72
+ 'share': (0, NamedSnapshotShare_1.NamedSnapshotShareToJSON)(value['share']),
73
+ };
74
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { NamedSnapshotShare } from './NamedSnapshotShare';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NamedSnapshotShareListResponse
17
+ */
18
+ export interface NamedSnapshotShareListResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof NamedSnapshotShareListResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {NamedSnapshotShareListResponseTypeEnum}
28
+ * @memberof NamedSnapshotShareListResponse
29
+ */
30
+ type: NamedSnapshotShareListResponseTypeEnum;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof NamedSnapshotShareListResponse
35
+ */
36
+ name: string;
37
+ /**
38
+ *
39
+ * @type {Array<NamedSnapshotShare>}
40
+ * @memberof NamedSnapshotShareListResponse
41
+ */
42
+ shares: Array<NamedSnapshotShare>;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const NamedSnapshotShareListResponseTypeEnum: {
48
+ readonly SnapshotShareList: 'snapshot.share.list';
49
+ };
50
+ export type NamedSnapshotShareListResponseTypeEnum = typeof NamedSnapshotShareListResponseTypeEnum[keyof typeof NamedSnapshotShareListResponseTypeEnum];
51
+ /**
52
+ * Check if a given object implements the NamedSnapshotShareListResponse interface.
53
+ */
54
+ export declare function instanceOfNamedSnapshotShareListResponse(value: object): value is NamedSnapshotShareListResponse;
55
+ export declare function NamedSnapshotShareListResponseFromJSON(json: any): NamedSnapshotShareListResponse;
56
+ export declare function NamedSnapshotShareListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareListResponse;
57
+ export declare function NamedSnapshotShareListResponseToJSON(json: any): NamedSnapshotShareListResponse;
58
+ export declare function NamedSnapshotShareListResponseToJSONTyped(value?: NamedSnapshotShareListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Boat Public API v1
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.NamedSnapshotShareListResponseTypeEnum = void 0;
17
+ exports.instanceOfNamedSnapshotShareListResponse = instanceOfNamedSnapshotShareListResponse;
18
+ exports.NamedSnapshotShareListResponseFromJSON = NamedSnapshotShareListResponseFromJSON;
19
+ exports.NamedSnapshotShareListResponseFromJSONTyped = NamedSnapshotShareListResponseFromJSONTyped;
20
+ exports.NamedSnapshotShareListResponseToJSON = NamedSnapshotShareListResponseToJSON;
21
+ exports.NamedSnapshotShareListResponseToJSONTyped = NamedSnapshotShareListResponseToJSONTyped;
22
+ const NamedSnapshotShare_1 = require("./NamedSnapshotShare");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.NamedSnapshotShareListResponseTypeEnum = {
27
+ SnapshotShareList: 'snapshot.share.list'
28
+ };
29
+ /**
30
+ * Check if a given object implements the NamedSnapshotShareListResponse interface.
31
+ */
32
+ function instanceOfNamedSnapshotShareListResponse(value) {
33
+ if (!('ok' in value) || value['ok'] === undefined)
34
+ return false;
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('name' in value) || value['name'] === undefined)
38
+ return false;
39
+ if (!('shares' in value) || value['shares'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function NamedSnapshotShareListResponseFromJSON(json) {
44
+ return NamedSnapshotShareListResponseFromJSONTyped(json, false);
45
+ }
46
+ function NamedSnapshotShareListResponseFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'ok': json['ok'],
52
+ 'type': json['type'],
53
+ 'name': json['name'],
54
+ 'shares': (json['shares'].map(NamedSnapshotShare_1.NamedSnapshotShareFromJSON)),
55
+ };
56
+ }
57
+ function NamedSnapshotShareListResponseToJSON(json) {
58
+ return NamedSnapshotShareListResponseToJSONTyped(json, false);
59
+ }
60
+ function NamedSnapshotShareListResponseToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'ok': value['ok'],
66
+ 'type': value['type'],
67
+ 'name': value['name'],
68
+ 'shares': (value['shares'].map(NamedSnapshotShare_1.NamedSnapshotShareToJSON)),
69
+ };
70
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { NamedSnapshotShare } from './NamedSnapshotShare';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NamedSnapshotShareRevokedResponse
17
+ */
18
+ export interface NamedSnapshotShareRevokedResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof NamedSnapshotShareRevokedResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {NamedSnapshotShareRevokedResponseTypeEnum}
28
+ * @memberof NamedSnapshotShareRevokedResponse
29
+ */
30
+ type: NamedSnapshotShareRevokedResponseTypeEnum;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof NamedSnapshotShareRevokedResponse
35
+ */
36
+ name: string;
37
+ /**
38
+ *
39
+ * @type {NamedSnapshotShare}
40
+ * @memberof NamedSnapshotShareRevokedResponse
41
+ */
42
+ share: NamedSnapshotShare;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const NamedSnapshotShareRevokedResponseTypeEnum: {
48
+ readonly SnapshotShareRevoked: 'snapshot.share.revoked';
49
+ };
50
+ export type NamedSnapshotShareRevokedResponseTypeEnum = typeof NamedSnapshotShareRevokedResponseTypeEnum[keyof typeof NamedSnapshotShareRevokedResponseTypeEnum];
51
+ /**
52
+ * Check if a given object implements the NamedSnapshotShareRevokedResponse interface.
53
+ */
54
+ export declare function instanceOfNamedSnapshotShareRevokedResponse(value: object): value is NamedSnapshotShareRevokedResponse;
55
+ export declare function NamedSnapshotShareRevokedResponseFromJSON(json: any): NamedSnapshotShareRevokedResponse;
56
+ export declare function NamedSnapshotShareRevokedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareRevokedResponse;
57
+ export declare function NamedSnapshotShareRevokedResponseToJSON(json: any): NamedSnapshotShareRevokedResponse;
58
+ export declare function NamedSnapshotShareRevokedResponseToJSONTyped(value?: NamedSnapshotShareRevokedResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Boat Public API v1
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.NamedSnapshotShareRevokedResponseTypeEnum = void 0;
17
+ exports.instanceOfNamedSnapshotShareRevokedResponse = instanceOfNamedSnapshotShareRevokedResponse;
18
+ exports.NamedSnapshotShareRevokedResponseFromJSON = NamedSnapshotShareRevokedResponseFromJSON;
19
+ exports.NamedSnapshotShareRevokedResponseFromJSONTyped = NamedSnapshotShareRevokedResponseFromJSONTyped;
20
+ exports.NamedSnapshotShareRevokedResponseToJSON = NamedSnapshotShareRevokedResponseToJSON;
21
+ exports.NamedSnapshotShareRevokedResponseToJSONTyped = NamedSnapshotShareRevokedResponseToJSONTyped;
22
+ const NamedSnapshotShare_1 = require("./NamedSnapshotShare");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.NamedSnapshotShareRevokedResponseTypeEnum = {
27
+ SnapshotShareRevoked: 'snapshot.share.revoked'
28
+ };
29
+ /**
30
+ * Check if a given object implements the NamedSnapshotShareRevokedResponse interface.
31
+ */
32
+ function instanceOfNamedSnapshotShareRevokedResponse(value) {
33
+ if (!('ok' in value) || value['ok'] === undefined)
34
+ return false;
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('name' in value) || value['name'] === undefined)
38
+ return false;
39
+ if (!('share' in value) || value['share'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function NamedSnapshotShareRevokedResponseFromJSON(json) {
44
+ return NamedSnapshotShareRevokedResponseFromJSONTyped(json, false);
45
+ }
46
+ function NamedSnapshotShareRevokedResponseFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'ok': json['ok'],
52
+ 'type': json['type'],
53
+ 'name': json['name'],
54
+ 'share': (0, NamedSnapshotShare_1.NamedSnapshotShareFromJSON)(json['share']),
55
+ };
56
+ }
57
+ function NamedSnapshotShareRevokedResponseToJSON(json) {
58
+ return NamedSnapshotShareRevokedResponseToJSONTyped(json, false);
59
+ }
60
+ function NamedSnapshotShareRevokedResponseToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'ok': value['ok'],
66
+ 'type': value['type'],
67
+ 'name': value['name'],
68
+ 'share': (0, NamedSnapshotShare_1.NamedSnapshotShareToJSON)(value['share']),
69
+ };
70
+ }
@@ -18,10 +18,10 @@ import type { SandboxEnvironment } from './SandboxEnvironment';
18
18
  export interface SandboxEnvironmentListResponse {
19
19
  /**
20
20
  *
21
- * @type {SandboxEnvironmentListResponseOkEnum}
21
+ * @type {boolean}
22
22
  * @memberof SandboxEnvironmentListResponse
23
23
  */
24
- ok?: SandboxEnvironmentListResponseOkEnum;
24
+ ok?: boolean;
25
25
  /**
26
26
  *
27
27
  * @type {SandboxEnvironmentListResponseTypeEnum}
@@ -35,13 +35,6 @@ export interface SandboxEnvironmentListResponse {
35
35
  */
36
36
  environments: Array<SandboxEnvironment>;
37
37
  }
38
- /**
39
- * @export
40
- */
41
- export declare const SandboxEnvironmentListResponseOkEnum: {
42
- readonly True: true;
43
- };
44
- export type SandboxEnvironmentListResponseOkEnum = typeof SandboxEnvironmentListResponseOkEnum[keyof typeof SandboxEnvironmentListResponseOkEnum];
45
38
  /**
46
39
  * @export
47
40
  */
@@ -13,19 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SandboxEnvironmentListResponseTypeEnum = exports.SandboxEnvironmentListResponseOkEnum = void 0;
16
+ exports.SandboxEnvironmentListResponseTypeEnum = void 0;
17
17
  exports.instanceOfSandboxEnvironmentListResponse = instanceOfSandboxEnvironmentListResponse;
18
18
  exports.SandboxEnvironmentListResponseFromJSON = SandboxEnvironmentListResponseFromJSON;
19
19
  exports.SandboxEnvironmentListResponseFromJSONTyped = SandboxEnvironmentListResponseFromJSONTyped;
20
20
  exports.SandboxEnvironmentListResponseToJSON = SandboxEnvironmentListResponseToJSON;
21
21
  exports.SandboxEnvironmentListResponseToJSONTyped = SandboxEnvironmentListResponseToJSONTyped;
22
22
  const SandboxEnvironment_1 = require("./SandboxEnvironment");
23
- /**
24
- * @export
25
- */
26
- exports.SandboxEnvironmentListResponseOkEnum = {
27
- True: true
28
- };
29
23
  /**
30
24
  * @export
31
25
  */
@@ -63,6 +63,10 @@ export * from './NamedSnapshotInfoResponse';
63
63
  export * from './NamedSnapshotListResponse';
64
64
  export * from './NamedSnapshotSaveRequest';
65
65
  export * from './NamedSnapshotSavingResponse';
66
+ export * from './NamedSnapshotShare';
67
+ export * from './NamedSnapshotShareCreatedResponse';
68
+ export * from './NamedSnapshotShareListResponse';
69
+ export * from './NamedSnapshotShareRevokedResponse';
66
70
  export * from './Org';
67
71
  export * from './OrgListResponse';
68
72
  export * from './PageInfo';
@@ -81,6 +81,10 @@ __exportStar(require("./NamedSnapshotInfoResponse"), exports);
81
81
  __exportStar(require("./NamedSnapshotListResponse"), exports);
82
82
  __exportStar(require("./NamedSnapshotSaveRequest"), exports);
83
83
  __exportStar(require("./NamedSnapshotSavingResponse"), exports);
84
+ __exportStar(require("./NamedSnapshotShare"), exports);
85
+ __exportStar(require("./NamedSnapshotShareCreatedResponse"), exports);
86
+ __exportStar(require("./NamedSnapshotShareListResponse"), exports);
87
+ __exportStar(require("./NamedSnapshotShareRevokedResponse"), exports);
84
88
  __exportStar(require("./Org"), exports);
85
89
  __exportStar(require("./OrgListResponse"), exports);
86
90
  __exportStar(require("./PageInfo"), exports);