@boatdev/sdk 1.9.4 → 1.9.6

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 (169) hide show
  1. package/.openapi-generator/FILES +44 -0
  2. package/dist/apis/BoatApi.d.ts +305 -7
  3. package/dist/apis/BoatApi.js +764 -15
  4. package/dist/esm/apis/BoatApi.d.ts +305 -7
  5. package/dist/esm/apis/BoatApi.js +764 -15
  6. package/dist/esm/models/AccountAiUsageResponse.d.ts +83 -0
  7. package/dist/esm/models/AccountAiUsageResponse.js +78 -0
  8. package/dist/esm/models/AiProxySettings.d.ts +81 -0
  9. package/dist/esm/models/AiProxySettings.js +76 -0
  10. package/dist/esm/models/AiProxySettingsAllOfPricing.d.ts +38 -0
  11. package/dist/esm/models/AiProxySettingsAllOfPricing.js +47 -0
  12. package/dist/esm/models/AiUsageRow.d.ts +80 -0
  13. package/dist/esm/models/AiUsageRow.js +75 -0
  14. package/dist/esm/models/AiUsageTotals.d.ts +62 -0
  15. package/dist/esm/models/AiUsageTotals.js +63 -0
  16. package/dist/esm/models/CreateCredentialProfileRequest.d.ts +44 -0
  17. package/dist/esm/models/CreateCredentialProfileRequest.js +47 -0
  18. package/dist/esm/models/CredentialId.d.ts +36 -0
  19. package/dist/esm/models/CredentialId.js +54 -0
  20. package/dist/esm/models/CredentialProfile.d.ts +82 -0
  21. package/dist/esm/models/CredentialProfile.js +77 -0
  22. package/dist/esm/models/CredentialProfileDeletedResponse.d.ts +44 -0
  23. package/dist/esm/models/CredentialProfileDeletedResponse.js +51 -0
  24. package/dist/esm/models/CredentialProfileListResponse.d.ts +45 -0
  25. package/dist/esm/models/CredentialProfileListResponse.js +52 -0
  26. package/dist/esm/models/CredentialProfileOwner.d.ts +58 -0
  27. package/dist/esm/models/CredentialProfileOwner.js +62 -0
  28. package/dist/esm/models/CredentialProfileResponse.d.ts +51 -0
  29. package/dist/esm/models/CredentialProfileResponse.js +56 -0
  30. package/dist/esm/models/DeletionOperation.d.ts +1 -1
  31. package/dist/esm/models/FileUrlRequest.d.ts +38 -0
  32. package/dist/esm/models/FileUrlRequest.js +45 -0
  33. package/dist/esm/models/FileUrlResponse.d.ts +78 -0
  34. package/dist/esm/models/FileUrlResponse.js +77 -0
  35. package/dist/esm/models/ProcessListResponse.d.ts +1 -1
  36. package/dist/esm/models/SandboxAiAccessResponse.d.ts +56 -0
  37. package/dist/esm/models/SandboxAiAccessResponse.js +59 -0
  38. package/dist/esm/models/SandboxAiUsage.d.ts +64 -0
  39. package/dist/esm/models/SandboxAiUsage.js +65 -0
  40. package/dist/esm/models/SandboxAiUsageResponse.d.ts +88 -0
  41. package/dist/esm/models/SandboxAiUsageResponse.js +81 -0
  42. package/dist/esm/models/SandboxEnvironment.d.ts +13 -1
  43. package/dist/esm/models/SandboxEnvironment.js +4 -0
  44. package/dist/esm/models/SetCredentialKeyRequest.d.ts +32 -0
  45. package/dist/esm/models/SetCredentialKeyRequest.js +43 -0
  46. package/dist/esm/models/SetCustomApiRequest.d.ts +38 -0
  47. package/dist/esm/models/SetCustomApiRequest.js +47 -0
  48. package/dist/esm/models/SetSandboxAiAccessRequest.d.ts +32 -0
  49. package/dist/esm/models/SetSandboxAiAccessRequest.js +43 -0
  50. package/dist/esm/models/SnapshotSummary.d.ts +14 -0
  51. package/dist/esm/models/SnapshotSummary.js +9 -0
  52. package/dist/esm/models/UpdateAiProxyRequest.d.ts +32 -0
  53. package/dist/esm/models/UpdateAiProxyRequest.js +43 -0
  54. package/dist/esm/models/UpdateCredentialProfileRequest.d.ts +38 -0
  55. package/dist/esm/models/UpdateCredentialProfileRequest.js +43 -0
  56. package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
  57. package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +4 -0
  58. package/dist/esm/models/index.d.ts +22 -0
  59. package/dist/esm/models/index.js +22 -0
  60. package/dist/models/AccountAiUsageResponse.d.ts +83 -0
  61. package/dist/models/AccountAiUsageResponse.js +85 -0
  62. package/dist/models/AiProxySettings.d.ts +81 -0
  63. package/dist/models/AiProxySettings.js +83 -0
  64. package/dist/models/AiProxySettingsAllOfPricing.d.ts +38 -0
  65. package/dist/models/AiProxySettingsAllOfPricing.js +54 -0
  66. package/dist/models/AiUsageRow.d.ts +80 -0
  67. package/dist/models/AiUsageRow.js +82 -0
  68. package/dist/models/AiUsageTotals.d.ts +62 -0
  69. package/dist/models/AiUsageTotals.js +70 -0
  70. package/dist/models/CreateCredentialProfileRequest.d.ts +44 -0
  71. package/dist/models/CreateCredentialProfileRequest.js +54 -0
  72. package/dist/models/CredentialId.d.ts +36 -0
  73. package/dist/models/CredentialId.js +62 -0
  74. package/dist/models/CredentialProfile.d.ts +82 -0
  75. package/dist/models/CredentialProfile.js +84 -0
  76. package/dist/models/CredentialProfileDeletedResponse.d.ts +44 -0
  77. package/dist/models/CredentialProfileDeletedResponse.js +58 -0
  78. package/dist/models/CredentialProfileListResponse.d.ts +45 -0
  79. package/dist/models/CredentialProfileListResponse.js +59 -0
  80. package/dist/models/CredentialProfileOwner.d.ts +58 -0
  81. package/dist/models/CredentialProfileOwner.js +70 -0
  82. package/dist/models/CredentialProfileResponse.d.ts +51 -0
  83. package/dist/models/CredentialProfileResponse.js +63 -0
  84. package/dist/models/DeletionOperation.d.ts +1 -1
  85. package/dist/models/FileUrlRequest.d.ts +38 -0
  86. package/dist/models/FileUrlRequest.js +52 -0
  87. package/dist/models/FileUrlResponse.d.ts +78 -0
  88. package/dist/models/FileUrlResponse.js +85 -0
  89. package/dist/models/ProcessListResponse.d.ts +1 -1
  90. package/dist/models/SandboxAiAccessResponse.d.ts +56 -0
  91. package/dist/models/SandboxAiAccessResponse.js +66 -0
  92. package/dist/models/SandboxAiUsage.d.ts +64 -0
  93. package/dist/models/SandboxAiUsage.js +72 -0
  94. package/dist/models/SandboxAiUsageResponse.d.ts +88 -0
  95. package/dist/models/SandboxAiUsageResponse.js +88 -0
  96. package/dist/models/SandboxEnvironment.d.ts +13 -1
  97. package/dist/models/SandboxEnvironment.js +4 -0
  98. package/dist/models/SetCredentialKeyRequest.d.ts +32 -0
  99. package/dist/models/SetCredentialKeyRequest.js +50 -0
  100. package/dist/models/SetCustomApiRequest.d.ts +38 -0
  101. package/dist/models/SetCustomApiRequest.js +54 -0
  102. package/dist/models/SetSandboxAiAccessRequest.d.ts +32 -0
  103. package/dist/models/SetSandboxAiAccessRequest.js +50 -0
  104. package/dist/models/SnapshotSummary.d.ts +14 -0
  105. package/dist/models/SnapshotSummary.js +10 -1
  106. package/dist/models/UpdateAiProxyRequest.d.ts +32 -0
  107. package/dist/models/UpdateAiProxyRequest.js +50 -0
  108. package/dist/models/UpdateCredentialProfileRequest.d.ts +38 -0
  109. package/dist/models/UpdateCredentialProfileRequest.js +50 -0
  110. package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
  111. package/dist/models/UpdateSandboxEnvironmentRequest.js +4 -0
  112. package/dist/models/index.d.ts +22 -0
  113. package/dist/models/index.js +22 -0
  114. package/docs/AccountAiUsageResponse.md +48 -0
  115. package/docs/AiProxySettings.md +48 -0
  116. package/docs/AiProxySettingsAllOfPricing.md +34 -0
  117. package/docs/AiUsageRow.md +48 -0
  118. package/docs/AiUsageTotals.md +43 -0
  119. package/docs/BoatApi.md +1568 -359
  120. package/docs/CreateCredentialProfileRequest.md +36 -0
  121. package/docs/CredentialId.md +31 -0
  122. package/docs/CredentialProfile.md +49 -0
  123. package/docs/CredentialProfileDeletedResponse.md +36 -0
  124. package/docs/CredentialProfileListResponse.md +36 -0
  125. package/docs/CredentialProfileOwner.md +38 -0
  126. package/docs/CredentialProfileResponse.md +38 -0
  127. package/docs/FileUrlRequest.md +34 -0
  128. package/docs/FileUrlResponse.md +42 -0
  129. package/docs/SandboxAiAccessResponse.md +40 -0
  130. package/docs/SandboxAiUsage.md +42 -0
  131. package/docs/SandboxAiUsageResponse.md +50 -0
  132. package/docs/SandboxEnvironment.md +4 -0
  133. package/docs/SetCredentialKeyRequest.md +32 -0
  134. package/docs/SetCustomApiRequest.md +34 -0
  135. package/docs/SetSandboxAiAccessRequest.md +32 -0
  136. package/docs/SnapshotSummary.md +2 -0
  137. package/docs/UpdateAiProxyRequest.md +32 -0
  138. package/docs/UpdateCredentialProfileRequest.md +34 -0
  139. package/docs/UpdateSandboxEnvironmentRequest.md +4 -0
  140. package/package.json +1 -1
  141. package/src/apis/BoatApi.ts +1257 -105
  142. package/src/models/AccountAiUsageResponse.ts +160 -0
  143. package/src/models/AiProxySettings.ts +146 -0
  144. package/src/models/AiProxySettingsAllOfPricing.ts +75 -0
  145. package/src/models/AiUsageRow.ts +138 -0
  146. package/src/models/AiUsageTotals.ts +111 -0
  147. package/src/models/CreateCredentialProfileRequest.ts +82 -0
  148. package/src/models/CredentialId.ts +64 -0
  149. package/src/models/CredentialProfile.ts +153 -0
  150. package/src/models/CredentialProfileDeletedResponse.ts +84 -0
  151. package/src/models/CredentialProfileListResponse.ts +92 -0
  152. package/src/models/CredentialProfileOwner.ts +104 -0
  153. package/src/models/CredentialProfileResponse.ts +101 -0
  154. package/src/models/DeletionOperation.ts +1 -1
  155. package/src/models/FileUrlRequest.ts +74 -0
  156. package/src/models/FileUrlResponse.ts +131 -0
  157. package/src/models/ProcessListResponse.ts +1 -1
  158. package/src/models/SandboxAiAccessResponse.ts +102 -0
  159. package/src/models/SandboxAiUsage.ts +126 -0
  160. package/src/models/SandboxAiUsageResponse.ts +162 -0
  161. package/src/models/SandboxEnvironment.ts +17 -1
  162. package/src/models/SetCredentialKeyRequest.ts +66 -0
  163. package/src/models/SetCustomApiRequest.ts +75 -0
  164. package/src/models/SetSandboxAiAccessRequest.ts +66 -0
  165. package/src/models/SnapshotSummary.ts +17 -0
  166. package/src/models/UpdateAiProxyRequest.ts +66 -0
  167. package/src/models/UpdateCredentialProfileRequest.ts +73 -0
  168. package/src/models/UpdateSandboxEnvironmentRequest.ts +16 -0
  169. package/src/models/index.ts +22 -0
@@ -0,0 +1,88 @@
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 { AiUsageRow } from './AiUsageRow';
13
+ import type { AiUsageTotals } from './AiUsageTotals';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SandboxAiUsageResponse
18
+ */
19
+ export interface SandboxAiUsageResponse {
20
+ /**
21
+ *
22
+ * @type {boolean}
23
+ * @memberof SandboxAiUsageResponse
24
+ */
25
+ ok: boolean;
26
+ /**
27
+ * Stable success envelope discriminator added by v1.
28
+ * @type {string}
29
+ * @memberof SandboxAiUsageResponse
30
+ */
31
+ type: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof SandboxAiUsageResponse
36
+ */
37
+ sandboxId: string;
38
+ /**
39
+ * True when the proxy refuses this sandbox's placeholders.
40
+ * @type {boolean}
41
+ * @memberof SandboxAiUsageResponse
42
+ */
43
+ blocked: boolean;
44
+ /**
45
+ * True when the sandbox holds placeholders, not real keys.
46
+ * @type {boolean}
47
+ * @memberof SandboxAiUsageResponse
48
+ */
49
+ proxied: boolean;
50
+ /**
51
+ * The profile the sandbox uses. Null means its owner's default.
52
+ * @type {string}
53
+ * @memberof SandboxAiUsageResponse
54
+ */
55
+ credentialProfileId: string | null;
56
+ /**
57
+ *
58
+ * @type {Date}
59
+ * @memberof SandboxAiUsageResponse
60
+ */
61
+ since: Date;
62
+ /**
63
+ *
64
+ * @type {Array<AiUsageRow>}
65
+ * @memberof SandboxAiUsageResponse
66
+ */
67
+ usage: Array<AiUsageRow>;
68
+ /**
69
+ *
70
+ * @type {AiUsageTotals}
71
+ * @memberof SandboxAiUsageResponse
72
+ */
73
+ totals: AiUsageTotals;
74
+ /**
75
+ *
76
+ * @type {number}
77
+ * @memberof SandboxAiUsageResponse
78
+ */
79
+ dollars: number;
80
+ }
81
+ /**
82
+ * Check if a given object implements the SandboxAiUsageResponse interface.
83
+ */
84
+ export declare function instanceOfSandboxAiUsageResponse(value: object): value is SandboxAiUsageResponse;
85
+ export declare function SandboxAiUsageResponseFromJSON(json: any): SandboxAiUsageResponse;
86
+ export declare function SandboxAiUsageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxAiUsageResponse;
87
+ export declare function SandboxAiUsageResponseToJSON(json: any): SandboxAiUsageResponse;
88
+ export declare function SandboxAiUsageResponseToJSONTyped(value?: SandboxAiUsageResponse | null, ignoreDiscriminator?: boolean): any;
@@ -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
+ import { AiUsageRowFromJSON, AiUsageRowToJSON, } from './AiUsageRow';
15
+ import { AiUsageTotalsFromJSON, AiUsageTotalsToJSON, } from './AiUsageTotals';
16
+ /**
17
+ * Check if a given object implements the SandboxAiUsageResponse interface.
18
+ */
19
+ export function instanceOfSandboxAiUsageResponse(value) {
20
+ if (!('ok' in value) || value['ok'] === undefined)
21
+ return false;
22
+ if (!('type' in value) || value['type'] === undefined)
23
+ return false;
24
+ if (!('sandboxId' in value) || value['sandboxId'] === undefined)
25
+ return false;
26
+ if (!('blocked' in value) || value['blocked'] === undefined)
27
+ return false;
28
+ if (!('proxied' in value) || value['proxied'] === undefined)
29
+ return false;
30
+ if (!('credentialProfileId' in value) || value['credentialProfileId'] === undefined)
31
+ return false;
32
+ if (!('since' in value) || value['since'] === undefined)
33
+ return false;
34
+ if (!('usage' in value) || value['usage'] === undefined)
35
+ return false;
36
+ if (!('totals' in value) || value['totals'] === undefined)
37
+ return false;
38
+ if (!('dollars' in value) || value['dollars'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ export function SandboxAiUsageResponseFromJSON(json) {
43
+ return SandboxAiUsageResponseFromJSONTyped(json, false);
44
+ }
45
+ export function SandboxAiUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'ok': json['ok'],
51
+ 'type': json['type'],
52
+ 'sandboxId': json['sandboxId'],
53
+ 'blocked': json['blocked'],
54
+ 'proxied': json['proxied'],
55
+ 'credentialProfileId': json['credentialProfileId'],
56
+ 'since': (new Date(json['since'])),
57
+ 'usage': (json['usage'].map(AiUsageRowFromJSON)),
58
+ 'totals': AiUsageTotalsFromJSON(json['totals']),
59
+ 'dollars': json['dollars'],
60
+ };
61
+ }
62
+ export function SandboxAiUsageResponseToJSON(json) {
63
+ return SandboxAiUsageResponseToJSONTyped(json, false);
64
+ }
65
+ export function SandboxAiUsageResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'ok': value['ok'],
71
+ 'type': value['type'],
72
+ 'sandboxId': value['sandboxId'],
73
+ 'blocked': value['blocked'],
74
+ 'proxied': value['proxied'],
75
+ 'credentialProfileId': value['credentialProfileId'],
76
+ 'since': value['since'].toISOString().substring(0, 10),
77
+ 'usage': (value['usage'].map(AiUsageRowToJSON)),
78
+ 'totals': AiUsageTotalsToJSON(value['totals']),
79
+ 'dollars': value['dollars'],
80
+ };
81
+ }
@@ -55,7 +55,7 @@ export interface SandboxEnvironment {
55
55
  */
56
56
  safetyAnsweredAt?: Date | null;
57
57
  /**
58
- * When true the environment passes nothing to a sandbox (repos, secrets, and all credentials withheld), overriding the fine-grained flags below. Use for sandboxes handed to third parties.
58
+ * When true the environment passes nothing to a sandbox (repos, secrets, and all credentials withheld), overriding the fine-grained flags below. Use for sandboxes handed to third parties. The one exception is `proxyAiCredentials`.
59
59
  * @type {boolean}
60
60
  * @memberof SandboxEnvironment
61
61
  */
@@ -84,6 +84,18 @@ export interface SandboxEnvironment {
84
84
  * @memberof SandboxEnvironment
85
85
  */
86
86
  passAgentsCredentials: boolean;
87
+ /**
88
+ * The AI credential profile the environment's sandboxes get. Null means the sandbox owner's default profile.
89
+ * @type {string}
90
+ * @memberof SandboxEnvironment
91
+ */
92
+ credentialProfileId?: string | null;
93
+ /**
94
+ * Only with `safeForThirdParties` true. The sandboxes still get AI credentials, as AI credentials proxy placeholders. Real keys never enter them.
95
+ * @type {boolean}
96
+ * @memberof SandboxEnvironment
97
+ */
98
+ proxyAiCredentials?: boolean;
87
99
  /**
88
100
  * The latest version's .env-style content. Treat as sensitive.
89
101
  * @type {string}
@@ -63,6 +63,8 @@ export function SandboxEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'passSecrets': json['passSecrets'],
64
64
  'passSandboxCredentials': json['passSandboxCredentials'],
65
65
  'passAgentsCredentials': json['passAgentsCredentials'],
66
+ 'credentialProfileId': json['credentialProfileId'] == null ? undefined : json['credentialProfileId'],
67
+ 'proxyAiCredentials': json['proxyAiCredentials'] == null ? undefined : json['proxyAiCredentials'],
66
68
  'envContents': json['envContents'],
67
69
  'secretFiles': (json['secretFiles'].map(SecretFileFromJSON)),
68
70
  'selectedRepositories': json['selectedRepositories'] == null ? undefined : (json['selectedRepositories'].map(SelectedRepositoryFromJSON)),
@@ -88,6 +90,8 @@ export function SandboxEnvironmentToJSONTyped(value, ignoreDiscriminator = false
88
90
  'passSecrets': value['passSecrets'],
89
91
  'passSandboxCredentials': value['passSandboxCredentials'],
90
92
  'passAgentsCredentials': value['passAgentsCredentials'],
93
+ 'credentialProfileId': value['credentialProfileId'],
94
+ 'proxyAiCredentials': value['proxyAiCredentials'],
91
95
  'envContents': value['envContents'],
92
96
  'secretFiles': (value['secretFiles'].map(SecretFileToJSON)),
93
97
  'selectedRepositories': value['selectedRepositories'] == null ? undefined : (value['selectedRepositories'].map(SelectedRepositoryToJSON)),
@@ -0,0 +1,32 @@
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
+ *
14
+ * @export
15
+ * @interface SetCredentialKeyRequest
16
+ */
17
+ export interface SetCredentialKeyRequest {
18
+ /**
19
+ * The API key. Boat encrypts it at rest.
20
+ * @type {string}
21
+ * @memberof SetCredentialKeyRequest
22
+ */
23
+ value: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SetCredentialKeyRequest interface.
27
+ */
28
+ export declare function instanceOfSetCredentialKeyRequest(value: object): value is SetCredentialKeyRequest;
29
+ export declare function SetCredentialKeyRequestFromJSON(json: any): SetCredentialKeyRequest;
30
+ export declare function SetCredentialKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetCredentialKeyRequest;
31
+ export declare function SetCredentialKeyRequestToJSON(json: any): SetCredentialKeyRequest;
32
+ export declare function SetCredentialKeyRequestToJSONTyped(value?: SetCredentialKeyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the SetCredentialKeyRequest interface.
16
+ */
17
+ export function instanceOfSetCredentialKeyRequest(value) {
18
+ if (!('value' in value) || value['value'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function SetCredentialKeyRequestFromJSON(json) {
23
+ return SetCredentialKeyRequestFromJSONTyped(json, false);
24
+ }
25
+ export function SetCredentialKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'value': json['value'],
31
+ };
32
+ }
33
+ export function SetCredentialKeyRequestToJSON(json) {
34
+ return SetCredentialKeyRequestToJSONTyped(json, false);
35
+ }
36
+ export function SetCredentialKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'value': value['value'],
42
+ };
43
+ }
@@ -0,0 +1,38 @@
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
+ *
14
+ * @export
15
+ * @interface SetCustomApiRequest
16
+ */
17
+ export interface SetCustomApiRequest {
18
+ /**
19
+ * The secret. The sandbox gets it as the variable named in the path.
20
+ * @type {string}
21
+ * @memberof SetCustomApiRequest
22
+ */
23
+ value: string;
24
+ /**
25
+ * Public HTTPS base URL of the API, on the default port, with a DNS name. The sandbox gets it as `<NAME>_BASE_URL`.
26
+ * @type {string}
27
+ * @memberof SetCustomApiRequest
28
+ */
29
+ baseUrl: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SetCustomApiRequest interface.
33
+ */
34
+ export declare function instanceOfSetCustomApiRequest(value: object): value is SetCustomApiRequest;
35
+ export declare function SetCustomApiRequestFromJSON(json: any): SetCustomApiRequest;
36
+ export declare function SetCustomApiRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetCustomApiRequest;
37
+ export declare function SetCustomApiRequestToJSON(json: any): SetCustomApiRequest;
38
+ export declare function SetCustomApiRequestToJSONTyped(value?: SetCustomApiRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the SetCustomApiRequest interface.
16
+ */
17
+ export function instanceOfSetCustomApiRequest(value) {
18
+ if (!('value' in value) || value['value'] === undefined)
19
+ return false;
20
+ if (!('baseUrl' in value) || value['baseUrl'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function SetCustomApiRequestFromJSON(json) {
25
+ return SetCustomApiRequestFromJSONTyped(json, false);
26
+ }
27
+ export function SetCustomApiRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'value': json['value'],
33
+ 'baseUrl': json['baseUrl'],
34
+ };
35
+ }
36
+ export function SetCustomApiRequestToJSON(json) {
37
+ return SetCustomApiRequestToJSONTyped(json, false);
38
+ }
39
+ export function SetCustomApiRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'value': value['value'],
45
+ 'baseUrl': value['baseUrl'],
46
+ };
47
+ }
@@ -0,0 +1,32 @@
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
+ *
14
+ * @export
15
+ * @interface SetSandboxAiAccessRequest
16
+ */
17
+ export interface SetSandboxAiAccessRequest {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof SetSandboxAiAccessRequest
22
+ */
23
+ blocked: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SetSandboxAiAccessRequest interface.
27
+ */
28
+ export declare function instanceOfSetSandboxAiAccessRequest(value: object): value is SetSandboxAiAccessRequest;
29
+ export declare function SetSandboxAiAccessRequestFromJSON(json: any): SetSandboxAiAccessRequest;
30
+ export declare function SetSandboxAiAccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetSandboxAiAccessRequest;
31
+ export declare function SetSandboxAiAccessRequestToJSON(json: any): SetSandboxAiAccessRequest;
32
+ export declare function SetSandboxAiAccessRequestToJSONTyped(value?: SetSandboxAiAccessRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the SetSandboxAiAccessRequest interface.
16
+ */
17
+ export function instanceOfSetSandboxAiAccessRequest(value) {
18
+ if (!('blocked' in value) || value['blocked'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function SetSandboxAiAccessRequestFromJSON(json) {
23
+ return SetSandboxAiAccessRequestFromJSONTyped(json, false);
24
+ }
25
+ export function SetSandboxAiAccessRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'blocked': json['blocked'],
31
+ };
32
+ }
33
+ export function SetSandboxAiAccessRequestToJSON(json) {
34
+ return SetSandboxAiAccessRequestToJSONTyped(json, false);
35
+ }
36
+ export function SetSandboxAiAccessRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'blocked': value['blocked'],
42
+ };
43
+ }
@@ -87,6 +87,12 @@ export interface SnapshotSummary {
87
87
  * @memberof SnapshotSummary
88
88
  */
89
89
  contentFileCount?: number | null;
90
+ /**
91
+ * `template` = this Sandbox has snapshots off, so Boat never captures it: the row is a copy of the template, named snapshot or Sandbox it was created from. `captured` = this Sandbox has snapshots on: its own captures, plus the copies Boat makes when the Sandbox is created from a source, forked or resumed.
92
+ * @type {SnapshotSummaryOriginEnum}
93
+ * @memberof SnapshotSummary
94
+ */
95
+ origin?: SnapshotSummaryOriginEnum;
90
96
  }
91
97
  /**
92
98
  * @export
@@ -103,6 +109,14 @@ export declare const SnapshotSummaryKindEnum: {
103
109
  readonly Incremental: 'incremental';
104
110
  };
105
111
  export type SnapshotSummaryKindEnum = typeof SnapshotSummaryKindEnum[keyof typeof SnapshotSummaryKindEnum];
112
+ /**
113
+ * @export
114
+ */
115
+ export declare const SnapshotSummaryOriginEnum: {
116
+ readonly Captured: 'captured';
117
+ readonly Template: 'template';
118
+ };
119
+ export type SnapshotSummaryOriginEnum = typeof SnapshotSummaryOriginEnum[keyof typeof SnapshotSummaryOriginEnum];
106
120
  /**
107
121
  * Check if a given object implements the SnapshotSummary interface.
108
122
  */
@@ -24,6 +24,13 @@ export const SnapshotSummaryKindEnum = {
24
24
  Base: 'base',
25
25
  Incremental: 'incremental'
26
26
  };
27
+ /**
28
+ * @export
29
+ */
30
+ export const SnapshotSummaryOriginEnum = {
31
+ Captured: 'captured',
32
+ Template: 'template'
33
+ };
27
34
  /**
28
35
  * Check if a given object implements the SnapshotSummary interface.
29
36
  */
@@ -64,6 +71,7 @@ export function SnapshotSummaryFromJSONTyped(json, ignoreDiscriminator) {
64
71
  'fileCount': json['fileCount'],
65
72
  'contentSizeBytes': json['contentSizeBytes'] == null ? undefined : json['contentSizeBytes'],
66
73
  'contentFileCount': json['contentFileCount'] == null ? undefined : json['contentFileCount'],
74
+ 'origin': json['origin'] == null ? undefined : json['origin'],
67
75
  };
68
76
  }
69
77
  export function SnapshotSummaryToJSON(json) {
@@ -86,5 +94,6 @@ export function SnapshotSummaryToJSONTyped(value, ignoreDiscriminator = false) {
86
94
  'fileCount': value['fileCount'],
87
95
  'contentSizeBytes': value['contentSizeBytes'],
88
96
  'contentFileCount': value['contentFileCount'],
97
+ 'origin': value['origin'],
89
98
  };
90
99
  }
@@ -0,0 +1,32 @@
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
+ *
14
+ * @export
15
+ * @interface UpdateAiProxyRequest
16
+ */
17
+ export interface UpdateAiProxyRequest {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof UpdateAiProxyRequest
22
+ */
23
+ enabled: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateAiProxyRequest interface.
27
+ */
28
+ export declare function instanceOfUpdateAiProxyRequest(value: object): value is UpdateAiProxyRequest;
29
+ export declare function UpdateAiProxyRequestFromJSON(json: any): UpdateAiProxyRequest;
30
+ export declare function UpdateAiProxyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAiProxyRequest;
31
+ export declare function UpdateAiProxyRequestToJSON(json: any): UpdateAiProxyRequest;
32
+ export declare function UpdateAiProxyRequestToJSONTyped(value?: UpdateAiProxyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the UpdateAiProxyRequest interface.
16
+ */
17
+ export function instanceOfUpdateAiProxyRequest(value) {
18
+ if (!('enabled' in value) || value['enabled'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function UpdateAiProxyRequestFromJSON(json) {
23
+ return UpdateAiProxyRequestFromJSONTyped(json, false);
24
+ }
25
+ export function UpdateAiProxyRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'enabled': json['enabled'],
31
+ };
32
+ }
33
+ export function UpdateAiProxyRequestToJSON(json) {
34
+ return UpdateAiProxyRequestToJSONTyped(json, false);
35
+ }
36
+ export function UpdateAiProxyRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'enabled': value['enabled'],
42
+ };
43
+ }
@@ -0,0 +1,38 @@
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
+ *
14
+ * @export
15
+ * @interface UpdateCredentialProfileRequest
16
+ */
17
+ export interface UpdateCredentialProfileRequest {
18
+ /**
19
+ * New profile name.
20
+ * @type {string}
21
+ * @memberof UpdateCredentialProfileRequest
22
+ */
23
+ name?: string;
24
+ /**
25
+ * Send true to make this profile its owner's default. The previous default loses the flag. False is ignored; make another profile the default instead.
26
+ * @type {boolean}
27
+ * @memberof UpdateCredentialProfileRequest
28
+ */
29
+ isDefault?: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdateCredentialProfileRequest interface.
33
+ */
34
+ export declare function instanceOfUpdateCredentialProfileRequest(value: object): value is UpdateCredentialProfileRequest;
35
+ export declare function UpdateCredentialProfileRequestFromJSON(json: any): UpdateCredentialProfileRequest;
36
+ export declare function UpdateCredentialProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCredentialProfileRequest;
37
+ export declare function UpdateCredentialProfileRequestToJSON(json: any): UpdateCredentialProfileRequest;
38
+ export declare function UpdateCredentialProfileRequestToJSONTyped(value?: UpdateCredentialProfileRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the UpdateCredentialProfileRequest interface.
16
+ */
17
+ export function instanceOfUpdateCredentialProfileRequest(value) {
18
+ return true;
19
+ }
20
+ export function UpdateCredentialProfileRequestFromJSON(json) {
21
+ return UpdateCredentialProfileRequestFromJSONTyped(json, false);
22
+ }
23
+ export function UpdateCredentialProfileRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ 'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
30
+ };
31
+ }
32
+ export function UpdateCredentialProfileRequestToJSON(json) {
33
+ return UpdateCredentialProfileRequestToJSONTyped(json, false);
34
+ }
35
+ export function UpdateCredentialProfileRequestToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'name': value['name'],
41
+ 'isDefault': value['isDefault'],
42
+ };
43
+ }