@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
@@ -80,7 +80,7 @@ export interface CreateSandboxRequest {
80
80
  */
81
81
  teamId?: string;
82
82
  /**
83
- * Create the sandbox from a named snapshot (saved with `POST /named-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.
83
+ * Create the sandbox from a named snapshot (saved with `POST /named-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 /named-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`.
84
84
  * @type {string}
85
85
  * @memberof CreateSandboxRequest
86
86
  */
@@ -33,10 +33,10 @@ export interface CreateScopedApiKey503Response {
33
33
  message: string;
34
34
  /**
35
35
  *
36
- * @type {CreateScopedApiKey503ResponseScopedCreationEnabledEnum}
36
+ * @type {boolean}
37
37
  * @memberof CreateScopedApiKey503Response
38
38
  */
39
- scopedCreationEnabled: CreateScopedApiKey503ResponseScopedCreationEnabledEnum;
39
+ scopedCreationEnabled: boolean;
40
40
  }
41
41
 
42
42
 
@@ -48,14 +48,6 @@ export const CreateScopedApiKey503ResponseErrorEnum = {
48
48
  } as const;
49
49
  export type CreateScopedApiKey503ResponseErrorEnum = typeof CreateScopedApiKey503ResponseErrorEnum[keyof typeof CreateScopedApiKey503ResponseErrorEnum];
50
50
 
51
- /**
52
- * @export
53
- */
54
- export const CreateScopedApiKey503ResponseScopedCreationEnabledEnum = {
55
- False: false
56
- } as const;
57
- export type CreateScopedApiKey503ResponseScopedCreationEnabledEnum = typeof CreateScopedApiKey503ResponseScopedCreationEnabledEnum[keyof typeof CreateScopedApiKey503ResponseScopedCreationEnabledEnum];
58
-
59
51
 
60
52
  /**
61
53
  * Check if a given object implements the CreateScopedApiKey503Response interface.
@@ -0,0 +1,131 @@
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
+ * 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.
18
+ * @export
19
+ * @interface NamedSnapshotShare
20
+ */
21
+ export interface NamedSnapshotShare {
22
+ /**
23
+ * Share id, for example `shr_...`. Pass it to revoke the code.
24
+ * @type {string}
25
+ * @memberof NamedSnapshotShare
26
+ */
27
+ id: string;
28
+ /**
29
+ * The first characters of the code, for example `bsh_xxxxxxxx`. Use it to tell codes apart.
30
+ * @type {string}
31
+ * @memberof NamedSnapshotShare
32
+ */
33
+ codePrefix: string;
34
+ /**
35
+ *
36
+ * @type {NamedSnapshotShareStatusEnum}
37
+ * @memberof NamedSnapshotShare
38
+ */
39
+ status: NamedSnapshotShareStatusEnum;
40
+ /**
41
+ * Number of sandboxes created with this code.
42
+ * @type {number}
43
+ * @memberof NamedSnapshotShare
44
+ */
45
+ useCount: number;
46
+ /**
47
+ * When a sandbox was last created with this code. null if never.
48
+ * @type {Date}
49
+ * @memberof NamedSnapshotShare
50
+ */
51
+ lastUsedAt: Date | null;
52
+ /**
53
+ * When the code was revoked. null while active.
54
+ * @type {Date}
55
+ * @memberof NamedSnapshotShare
56
+ */
57
+ revokedAt: Date | null;
58
+ /**
59
+ *
60
+ * @type {Date}
61
+ * @memberof NamedSnapshotShare
62
+ */
63
+ createdAt: Date;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const NamedSnapshotShareStatusEnum = {
71
+ Active: 'active',
72
+ Revoked: 'revoked'
73
+ } as const;
74
+ export type NamedSnapshotShareStatusEnum = typeof NamedSnapshotShareStatusEnum[keyof typeof NamedSnapshotShareStatusEnum];
75
+
76
+
77
+ /**
78
+ * Check if a given object implements the NamedSnapshotShare interface.
79
+ */
80
+ export function instanceOfNamedSnapshotShare(value: object): value is NamedSnapshotShare {
81
+ if (!('id' in value) || value['id'] === undefined) return false;
82
+ if (!('codePrefix' in value) || value['codePrefix'] === undefined) return false;
83
+ if (!('status' in value) || value['status'] === undefined) return false;
84
+ if (!('useCount' in value) || value['useCount'] === undefined) return false;
85
+ if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined) return false;
86
+ if (!('revokedAt' in value) || value['revokedAt'] === undefined) return false;
87
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
88
+ return true;
89
+ }
90
+
91
+ export function NamedSnapshotShareFromJSON(json: any): NamedSnapshotShare {
92
+ return NamedSnapshotShareFromJSONTyped(json, false);
93
+ }
94
+
95
+ export function NamedSnapshotShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShare {
96
+ if (json == null) {
97
+ return json;
98
+ }
99
+ return {
100
+
101
+ 'id': json['id'],
102
+ 'codePrefix': json['codePrefix'],
103
+ 'status': json['status'],
104
+ 'useCount': json['useCount'],
105
+ 'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
106
+ 'revokedAt': (json['revokedAt'] == null ? null : new Date(json['revokedAt'])),
107
+ 'createdAt': (new Date(json['createdAt'])),
108
+ };
109
+ }
110
+
111
+ export function NamedSnapshotShareToJSON(json: any): NamedSnapshotShare {
112
+ return NamedSnapshotShareToJSONTyped(json, false);
113
+ }
114
+
115
+ export function NamedSnapshotShareToJSONTyped(value?: NamedSnapshotShare | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'id': value['id'],
123
+ 'codePrefix': value['codePrefix'],
124
+ 'status': value['status'],
125
+ 'useCount': value['useCount'],
126
+ 'lastUsedAt': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
127
+ 'revokedAt': value['revokedAt'] == null ? value['revokedAt'] : value['revokedAt'].toISOString(),
128
+ 'createdAt': value['createdAt'].toISOString(),
129
+ };
130
+ }
131
+
@@ -0,0 +1,120 @@
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 { NamedSnapshotShare } from './NamedSnapshotShare';
17
+ import {
18
+ NamedSnapshotShareFromJSON,
19
+ NamedSnapshotShareFromJSONTyped,
20
+ NamedSnapshotShareToJSON,
21
+ NamedSnapshotShareToJSONTyped,
22
+ } from './NamedSnapshotShare';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface NamedSnapshotShareCreatedResponse
28
+ */
29
+ export interface NamedSnapshotShareCreatedResponse {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof NamedSnapshotShareCreatedResponse
34
+ */
35
+ ok: boolean;
36
+ /**
37
+ *
38
+ * @type {NamedSnapshotShareCreatedResponseTypeEnum}
39
+ * @memberof NamedSnapshotShareCreatedResponse
40
+ */
41
+ type: NamedSnapshotShareCreatedResponseTypeEnum;
42
+ /**
43
+ * The named snapshot the code deploys.
44
+ * @type {string}
45
+ * @memberof NamedSnapshotShareCreatedResponse
46
+ */
47
+ name: string;
48
+ /**
49
+ * The share code, for example `bsh_...`. Boat shows it only in this response. Store it now; you cannot get it again.
50
+ * @type {string}
51
+ * @memberof NamedSnapshotShareCreatedResponse
52
+ */
53
+ shareCode: string;
54
+ /**
55
+ *
56
+ * @type {NamedSnapshotShare}
57
+ * @memberof NamedSnapshotShareCreatedResponse
58
+ */
59
+ share: NamedSnapshotShare;
60
+ }
61
+
62
+
63
+ /**
64
+ * @export
65
+ */
66
+ export const NamedSnapshotShareCreatedResponseTypeEnum = {
67
+ SnapshotShareCreated: 'snapshot.share.created'
68
+ } as const;
69
+ export type NamedSnapshotShareCreatedResponseTypeEnum = typeof NamedSnapshotShareCreatedResponseTypeEnum[keyof typeof NamedSnapshotShareCreatedResponseTypeEnum];
70
+
71
+
72
+ /**
73
+ * Check if a given object implements the NamedSnapshotShareCreatedResponse interface.
74
+ */
75
+ export function instanceOfNamedSnapshotShareCreatedResponse(value: object): value is NamedSnapshotShareCreatedResponse {
76
+ if (!('ok' in value) || value['ok'] === undefined) return false;
77
+ if (!('type' in value) || value['type'] === undefined) return false;
78
+ if (!('name' in value) || value['name'] === undefined) return false;
79
+ if (!('shareCode' in value) || value['shareCode'] === undefined) return false;
80
+ if (!('share' in value) || value['share'] === undefined) return false;
81
+ return true;
82
+ }
83
+
84
+ export function NamedSnapshotShareCreatedResponseFromJSON(json: any): NamedSnapshotShareCreatedResponse {
85
+ return NamedSnapshotShareCreatedResponseFromJSONTyped(json, false);
86
+ }
87
+
88
+ export function NamedSnapshotShareCreatedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareCreatedResponse {
89
+ if (json == null) {
90
+ return json;
91
+ }
92
+ return {
93
+
94
+ 'ok': json['ok'],
95
+ 'type': json['type'],
96
+ 'name': json['name'],
97
+ 'shareCode': json['shareCode'],
98
+ 'share': NamedSnapshotShareFromJSON(json['share']),
99
+ };
100
+ }
101
+
102
+ export function NamedSnapshotShareCreatedResponseToJSON(json: any): NamedSnapshotShareCreatedResponse {
103
+ return NamedSnapshotShareCreatedResponseToJSONTyped(json, false);
104
+ }
105
+
106
+ export function NamedSnapshotShareCreatedResponseToJSONTyped(value?: NamedSnapshotShareCreatedResponse | null, ignoreDiscriminator: boolean = false): any {
107
+ if (value == null) {
108
+ return value;
109
+ }
110
+
111
+ return {
112
+
113
+ 'ok': value['ok'],
114
+ 'type': value['type'],
115
+ 'name': value['name'],
116
+ 'shareCode': value['shareCode'],
117
+ 'share': NamedSnapshotShareToJSON(value['share']),
118
+ };
119
+ }
120
+
@@ -0,0 +1,111 @@
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 { NamedSnapshotShare } from './NamedSnapshotShare';
17
+ import {
18
+ NamedSnapshotShareFromJSON,
19
+ NamedSnapshotShareFromJSONTyped,
20
+ NamedSnapshotShareToJSON,
21
+ NamedSnapshotShareToJSONTyped,
22
+ } from './NamedSnapshotShare';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface NamedSnapshotShareListResponse
28
+ */
29
+ export interface NamedSnapshotShareListResponse {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof NamedSnapshotShareListResponse
34
+ */
35
+ ok: boolean;
36
+ /**
37
+ *
38
+ * @type {NamedSnapshotShareListResponseTypeEnum}
39
+ * @memberof NamedSnapshotShareListResponse
40
+ */
41
+ type: NamedSnapshotShareListResponseTypeEnum;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof NamedSnapshotShareListResponse
46
+ */
47
+ name: string;
48
+ /**
49
+ *
50
+ * @type {Array<NamedSnapshotShare>}
51
+ * @memberof NamedSnapshotShareListResponse
52
+ */
53
+ shares: Array<NamedSnapshotShare>;
54
+ }
55
+
56
+
57
+ /**
58
+ * @export
59
+ */
60
+ export const NamedSnapshotShareListResponseTypeEnum = {
61
+ SnapshotShareList: 'snapshot.share.list'
62
+ } as const;
63
+ export type NamedSnapshotShareListResponseTypeEnum = typeof NamedSnapshotShareListResponseTypeEnum[keyof typeof NamedSnapshotShareListResponseTypeEnum];
64
+
65
+
66
+ /**
67
+ * Check if a given object implements the NamedSnapshotShareListResponse interface.
68
+ */
69
+ export function instanceOfNamedSnapshotShareListResponse(value: object): value is NamedSnapshotShareListResponse {
70
+ if (!('ok' in value) || value['ok'] === undefined) return false;
71
+ if (!('type' in value) || value['type'] === undefined) return false;
72
+ if (!('name' in value) || value['name'] === undefined) return false;
73
+ if (!('shares' in value) || value['shares'] === undefined) return false;
74
+ return true;
75
+ }
76
+
77
+ export function NamedSnapshotShareListResponseFromJSON(json: any): NamedSnapshotShareListResponse {
78
+ return NamedSnapshotShareListResponseFromJSONTyped(json, false);
79
+ }
80
+
81
+ export function NamedSnapshotShareListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareListResponse {
82
+ if (json == null) {
83
+ return json;
84
+ }
85
+ return {
86
+
87
+ 'ok': json['ok'],
88
+ 'type': json['type'],
89
+ 'name': json['name'],
90
+ 'shares': ((json['shares'] as Array<any>).map(NamedSnapshotShareFromJSON)),
91
+ };
92
+ }
93
+
94
+ export function NamedSnapshotShareListResponseToJSON(json: any): NamedSnapshotShareListResponse {
95
+ return NamedSnapshotShareListResponseToJSONTyped(json, false);
96
+ }
97
+
98
+ export function NamedSnapshotShareListResponseToJSONTyped(value?: NamedSnapshotShareListResponse | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'ok': value['ok'],
106
+ 'type': value['type'],
107
+ 'name': value['name'],
108
+ 'shares': ((value['shares'] as Array<any>).map(NamedSnapshotShareToJSON)),
109
+ };
110
+ }
111
+
@@ -0,0 +1,111 @@
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 { NamedSnapshotShare } from './NamedSnapshotShare';
17
+ import {
18
+ NamedSnapshotShareFromJSON,
19
+ NamedSnapshotShareFromJSONTyped,
20
+ NamedSnapshotShareToJSON,
21
+ NamedSnapshotShareToJSONTyped,
22
+ } from './NamedSnapshotShare';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface NamedSnapshotShareRevokedResponse
28
+ */
29
+ export interface NamedSnapshotShareRevokedResponse {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof NamedSnapshotShareRevokedResponse
34
+ */
35
+ ok: boolean;
36
+ /**
37
+ *
38
+ * @type {NamedSnapshotShareRevokedResponseTypeEnum}
39
+ * @memberof NamedSnapshotShareRevokedResponse
40
+ */
41
+ type: NamedSnapshotShareRevokedResponseTypeEnum;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof NamedSnapshotShareRevokedResponse
46
+ */
47
+ name: string;
48
+ /**
49
+ *
50
+ * @type {NamedSnapshotShare}
51
+ * @memberof NamedSnapshotShareRevokedResponse
52
+ */
53
+ share: NamedSnapshotShare;
54
+ }
55
+
56
+
57
+ /**
58
+ * @export
59
+ */
60
+ export const NamedSnapshotShareRevokedResponseTypeEnum = {
61
+ SnapshotShareRevoked: 'snapshot.share.revoked'
62
+ } as const;
63
+ export type NamedSnapshotShareRevokedResponseTypeEnum = typeof NamedSnapshotShareRevokedResponseTypeEnum[keyof typeof NamedSnapshotShareRevokedResponseTypeEnum];
64
+
65
+
66
+ /**
67
+ * Check if a given object implements the NamedSnapshotShareRevokedResponse interface.
68
+ */
69
+ export function instanceOfNamedSnapshotShareRevokedResponse(value: object): value is NamedSnapshotShareRevokedResponse {
70
+ if (!('ok' in value) || value['ok'] === undefined) return false;
71
+ if (!('type' in value) || value['type'] === undefined) return false;
72
+ if (!('name' in value) || value['name'] === undefined) return false;
73
+ if (!('share' in value) || value['share'] === undefined) return false;
74
+ return true;
75
+ }
76
+
77
+ export function NamedSnapshotShareRevokedResponseFromJSON(json: any): NamedSnapshotShareRevokedResponse {
78
+ return NamedSnapshotShareRevokedResponseFromJSONTyped(json, false);
79
+ }
80
+
81
+ export function NamedSnapshotShareRevokedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareRevokedResponse {
82
+ if (json == null) {
83
+ return json;
84
+ }
85
+ return {
86
+
87
+ 'ok': json['ok'],
88
+ 'type': json['type'],
89
+ 'name': json['name'],
90
+ 'share': NamedSnapshotShareFromJSON(json['share']),
91
+ };
92
+ }
93
+
94
+ export function NamedSnapshotShareRevokedResponseToJSON(json: any): NamedSnapshotShareRevokedResponse {
95
+ return NamedSnapshotShareRevokedResponseToJSONTyped(json, false);
96
+ }
97
+
98
+ export function NamedSnapshotShareRevokedResponseToJSONTyped(value?: NamedSnapshotShareRevokedResponse | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'ok': value['ok'],
106
+ 'type': value['type'],
107
+ 'name': value['name'],
108
+ 'share': NamedSnapshotShareToJSON(value['share']),
109
+ };
110
+ }
111
+
@@ -29,10 +29,10 @@ import {
29
29
  export interface SandboxEnvironmentListResponse {
30
30
  /**
31
31
  *
32
- * @type {SandboxEnvironmentListResponseOkEnum}
32
+ * @type {boolean}
33
33
  * @memberof SandboxEnvironmentListResponse
34
34
  */
35
- ok?: SandboxEnvironmentListResponseOkEnum;
35
+ ok?: boolean;
36
36
  /**
37
37
  *
38
38
  * @type {SandboxEnvironmentListResponseTypeEnum}
@@ -48,14 +48,6 @@ export interface SandboxEnvironmentListResponse {
48
48
  }
49
49
 
50
50
 
51
- /**
52
- * @export
53
- */
54
- export const SandboxEnvironmentListResponseOkEnum = {
55
- True: true
56
- } as const;
57
- export type SandboxEnvironmentListResponseOkEnum = typeof SandboxEnvironmentListResponseOkEnum[keyof typeof SandboxEnvironmentListResponseOkEnum];
58
-
59
51
  /**
60
52
  * @export
61
53
  */
@@ -65,6 +65,10 @@ export * from './NamedSnapshotInfoResponse';
65
65
  export * from './NamedSnapshotListResponse';
66
66
  export * from './NamedSnapshotSaveRequest';
67
67
  export * from './NamedSnapshotSavingResponse';
68
+ export * from './NamedSnapshotShare';
69
+ export * from './NamedSnapshotShareCreatedResponse';
70
+ export * from './NamedSnapshotShareListResponse';
71
+ export * from './NamedSnapshotShareRevokedResponse';
68
72
  export * from './Org';
69
73
  export * from './OrgListResponse';
70
74
  export * from './PageInfo';