@boatdev/sdk 1.9.5 → 1.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/.openapi-generator/FILES +44 -0
  2. package/dist/apis/BoatApi.d.ts +339 -3
  3. package/dist/apis/BoatApi.js +865 -15
  4. package/dist/esm/apis/BoatApi.d.ts +339 -3
  5. package/dist/esm/apis/BoatApi.js +865 -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/CredentialAccount.d.ts +50 -0
  19. package/dist/esm/models/CredentialAccount.js +53 -0
  20. package/dist/esm/models/CredentialAccountsResponse.d.ts +64 -0
  21. package/dist/esm/models/CredentialAccountsResponse.js +65 -0
  22. package/dist/esm/models/CredentialId.d.ts +36 -0
  23. package/dist/esm/models/CredentialId.js +54 -0
  24. package/dist/esm/models/CredentialProfile.d.ts +91 -0
  25. package/dist/esm/models/CredentialProfile.js +79 -0
  26. package/dist/esm/models/CredentialProfileDeletedResponse.d.ts +44 -0
  27. package/dist/esm/models/CredentialProfileDeletedResponse.js +51 -0
  28. package/dist/esm/models/CredentialProfileListResponse.d.ts +45 -0
  29. package/dist/esm/models/CredentialProfileListResponse.js +52 -0
  30. package/dist/esm/models/CredentialProfileOwner.d.ts +58 -0
  31. package/dist/esm/models/CredentialProfileOwner.js +62 -0
  32. package/dist/esm/models/CredentialProfileResponse.d.ts +51 -0
  33. package/dist/esm/models/CredentialProfileResponse.js +56 -0
  34. package/dist/esm/models/ProcessListResponse.d.ts +1 -1
  35. package/dist/esm/models/SandboxAiAccessResponse.d.ts +56 -0
  36. package/dist/esm/models/SandboxAiAccessResponse.js +59 -0
  37. package/dist/esm/models/SandboxAiUsage.d.ts +64 -0
  38. package/dist/esm/models/SandboxAiUsage.js +65 -0
  39. package/dist/esm/models/SandboxAiUsageResponse.d.ts +88 -0
  40. package/dist/esm/models/SandboxAiUsageResponse.js +81 -0
  41. package/dist/esm/models/SandboxEnvironment.d.ts +13 -1
  42. package/dist/esm/models/SandboxEnvironment.js +4 -0
  43. package/dist/esm/models/SetCredentialKeyRequest.d.ts +38 -0
  44. package/dist/esm/models/SetCredentialKeyRequest.js +45 -0
  45. package/dist/esm/models/SetCustomApiRequest.d.ts +38 -0
  46. package/dist/esm/models/SetCustomApiRequest.js +47 -0
  47. package/dist/esm/models/SetSandboxAiAccessRequest.d.ts +32 -0
  48. package/dist/esm/models/SetSandboxAiAccessRequest.js +43 -0
  49. package/dist/esm/models/UpdateAiProxyRequest.d.ts +32 -0
  50. package/dist/esm/models/UpdateAiProxyRequest.js +43 -0
  51. package/dist/esm/models/UpdateCredentialProfileRequest.d.ts +38 -0
  52. package/dist/esm/models/UpdateCredentialProfileRequest.js +43 -0
  53. package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
  54. package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +4 -0
  55. package/dist/esm/models/index.d.ts +22 -0
  56. package/dist/esm/models/index.js +22 -0
  57. package/dist/models/AccountAiUsageResponse.d.ts +83 -0
  58. package/dist/models/AccountAiUsageResponse.js +85 -0
  59. package/dist/models/AiProxySettings.d.ts +81 -0
  60. package/dist/models/AiProxySettings.js +83 -0
  61. package/dist/models/AiProxySettingsAllOfPricing.d.ts +38 -0
  62. package/dist/models/AiProxySettingsAllOfPricing.js +54 -0
  63. package/dist/models/AiUsageRow.d.ts +80 -0
  64. package/dist/models/AiUsageRow.js +82 -0
  65. package/dist/models/AiUsageTotals.d.ts +62 -0
  66. package/dist/models/AiUsageTotals.js +70 -0
  67. package/dist/models/CreateCredentialProfileRequest.d.ts +44 -0
  68. package/dist/models/CreateCredentialProfileRequest.js +54 -0
  69. package/dist/models/CredentialAccount.d.ts +50 -0
  70. package/dist/models/CredentialAccount.js +60 -0
  71. package/dist/models/CredentialAccountsResponse.d.ts +64 -0
  72. package/dist/models/CredentialAccountsResponse.js +72 -0
  73. package/dist/models/CredentialId.d.ts +36 -0
  74. package/dist/models/CredentialId.js +62 -0
  75. package/dist/models/CredentialProfile.d.ts +91 -0
  76. package/dist/models/CredentialProfile.js +86 -0
  77. package/dist/models/CredentialProfileDeletedResponse.d.ts +44 -0
  78. package/dist/models/CredentialProfileDeletedResponse.js +58 -0
  79. package/dist/models/CredentialProfileListResponse.d.ts +45 -0
  80. package/dist/models/CredentialProfileListResponse.js +59 -0
  81. package/dist/models/CredentialProfileOwner.d.ts +58 -0
  82. package/dist/models/CredentialProfileOwner.js +70 -0
  83. package/dist/models/CredentialProfileResponse.d.ts +51 -0
  84. package/dist/models/CredentialProfileResponse.js +63 -0
  85. package/dist/models/ProcessListResponse.d.ts +1 -1
  86. package/dist/models/SandboxAiAccessResponse.d.ts +56 -0
  87. package/dist/models/SandboxAiAccessResponse.js +66 -0
  88. package/dist/models/SandboxAiUsage.d.ts +64 -0
  89. package/dist/models/SandboxAiUsage.js +72 -0
  90. package/dist/models/SandboxAiUsageResponse.d.ts +88 -0
  91. package/dist/models/SandboxAiUsageResponse.js +88 -0
  92. package/dist/models/SandboxEnvironment.d.ts +13 -1
  93. package/dist/models/SandboxEnvironment.js +4 -0
  94. package/dist/models/SetCredentialKeyRequest.d.ts +38 -0
  95. package/dist/models/SetCredentialKeyRequest.js +52 -0
  96. package/dist/models/SetCustomApiRequest.d.ts +38 -0
  97. package/dist/models/SetCustomApiRequest.js +54 -0
  98. package/dist/models/SetSandboxAiAccessRequest.d.ts +32 -0
  99. package/dist/models/SetSandboxAiAccessRequest.js +50 -0
  100. package/dist/models/UpdateAiProxyRequest.d.ts +32 -0
  101. package/dist/models/UpdateAiProxyRequest.js +50 -0
  102. package/dist/models/UpdateCredentialProfileRequest.d.ts +38 -0
  103. package/dist/models/UpdateCredentialProfileRequest.js +50 -0
  104. package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
  105. package/dist/models/UpdateSandboxEnvironmentRequest.js +4 -0
  106. package/dist/models/index.d.ts +22 -0
  107. package/dist/models/index.js +22 -0
  108. package/docs/AccountAiUsageResponse.md +48 -0
  109. package/docs/AiProxySettings.md +48 -0
  110. package/docs/AiProxySettingsAllOfPricing.md +34 -0
  111. package/docs/AiUsageRow.md +48 -0
  112. package/docs/AiUsageTotals.md +43 -0
  113. package/docs/BoatApi.md +1588 -212
  114. package/docs/CreateCredentialProfileRequest.md +36 -0
  115. package/docs/CredentialAccount.md +39 -0
  116. package/docs/CredentialAccountsResponse.md +42 -0
  117. package/docs/CredentialId.md +31 -0
  118. package/docs/CredentialProfile.md +51 -0
  119. package/docs/CredentialProfileDeletedResponse.md +36 -0
  120. package/docs/CredentialProfileListResponse.md +36 -0
  121. package/docs/CredentialProfileOwner.md +38 -0
  122. package/docs/CredentialProfileResponse.md +38 -0
  123. package/docs/SandboxAiAccessResponse.md +40 -0
  124. package/docs/SandboxAiUsage.md +42 -0
  125. package/docs/SandboxAiUsageResponse.md +50 -0
  126. package/docs/SandboxEnvironment.md +4 -0
  127. package/docs/SetCredentialKeyRequest.md +34 -0
  128. package/docs/SetCustomApiRequest.md +34 -0
  129. package/docs/SetSandboxAiAccessRequest.md +32 -0
  130. package/docs/UpdateAiProxyRequest.md +32 -0
  131. package/docs/UpdateCredentialProfileRequest.md +34 -0
  132. package/docs/UpdateSandboxEnvironmentRequest.md +4 -0
  133. package/package.json +1 -1
  134. package/src/apis/BoatApi.ts +1440 -133
  135. package/src/models/AccountAiUsageResponse.ts +160 -0
  136. package/src/models/AiProxySettings.ts +146 -0
  137. package/src/models/AiProxySettingsAllOfPricing.ts +75 -0
  138. package/src/models/AiUsageRow.ts +138 -0
  139. package/src/models/AiUsageTotals.ts +111 -0
  140. package/src/models/CreateCredentialProfileRequest.ts +82 -0
  141. package/src/models/CredentialAccount.ts +92 -0
  142. package/src/models/CredentialAccountsResponse.ts +128 -0
  143. package/src/models/CredentialId.ts +64 -0
  144. package/src/models/CredentialProfile.ts +168 -0
  145. package/src/models/CredentialProfileDeletedResponse.ts +84 -0
  146. package/src/models/CredentialProfileListResponse.ts +92 -0
  147. package/src/models/CredentialProfileOwner.ts +104 -0
  148. package/src/models/CredentialProfileResponse.ts +101 -0
  149. package/src/models/ProcessListResponse.ts +1 -1
  150. package/src/models/SandboxAiAccessResponse.ts +102 -0
  151. package/src/models/SandboxAiUsage.ts +126 -0
  152. package/src/models/SandboxAiUsageResponse.ts +162 -0
  153. package/src/models/SandboxEnvironment.ts +17 -1
  154. package/src/models/SetCredentialKeyRequest.ts +74 -0
  155. package/src/models/SetCustomApiRequest.ts +75 -0
  156. package/src/models/SetSandboxAiAccessRequest.ts +66 -0
  157. package/src/models/UpdateAiProxyRequest.ts +66 -0
  158. package/src/models/UpdateCredentialProfileRequest.ts +73 -0
  159. package/src/models/UpdateSandboxEnvironmentRequest.ts +16 -0
  160. package/src/models/index.ts +22 -0
@@ -0,0 +1,56 @@
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 SandboxAiAccessResponse
16
+ */
17
+ export interface SandboxAiAccessResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof SandboxAiAccessResponse
22
+ */
23
+ ok: boolean;
24
+ /**
25
+ * Stable success envelope discriminator added by v1.
26
+ * @type {string}
27
+ * @memberof SandboxAiAccessResponse
28
+ */
29
+ type: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof SandboxAiAccessResponse
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SandboxAiAccessResponse
40
+ */
41
+ sandboxId: string;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof SandboxAiAccessResponse
46
+ */
47
+ blocked: boolean;
48
+ }
49
+ /**
50
+ * Check if a given object implements the SandboxAiAccessResponse interface.
51
+ */
52
+ export declare function instanceOfSandboxAiAccessResponse(value: object): value is SandboxAiAccessResponse;
53
+ export declare function SandboxAiAccessResponseFromJSON(json: any): SandboxAiAccessResponse;
54
+ export declare function SandboxAiAccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxAiAccessResponse;
55
+ export declare function SandboxAiAccessResponseToJSON(json: any): SandboxAiAccessResponse;
56
+ export declare function SandboxAiAccessResponseToJSONTyped(value?: SandboxAiAccessResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfSandboxAiAccessResponse = instanceOfSandboxAiAccessResponse;
17
+ exports.SandboxAiAccessResponseFromJSON = SandboxAiAccessResponseFromJSON;
18
+ exports.SandboxAiAccessResponseFromJSONTyped = SandboxAiAccessResponseFromJSONTyped;
19
+ exports.SandboxAiAccessResponseToJSON = SandboxAiAccessResponseToJSON;
20
+ exports.SandboxAiAccessResponseToJSONTyped = SandboxAiAccessResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SandboxAiAccessResponse interface.
23
+ */
24
+ function instanceOfSandboxAiAccessResponse(value) {
25
+ if (!('ok' in value) || value['ok'] === undefined)
26
+ return false;
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ if (!('success' in value) || value['success'] === undefined)
30
+ return false;
31
+ if (!('sandboxId' in value) || value['sandboxId'] === undefined)
32
+ return false;
33
+ if (!('blocked' in value) || value['blocked'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function SandboxAiAccessResponseFromJSON(json) {
38
+ return SandboxAiAccessResponseFromJSONTyped(json, false);
39
+ }
40
+ function SandboxAiAccessResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'ok': json['ok'],
46
+ 'type': json['type'],
47
+ 'success': json['success'],
48
+ 'sandboxId': json['sandboxId'],
49
+ 'blocked': json['blocked'],
50
+ };
51
+ }
52
+ function SandboxAiAccessResponseToJSON(json) {
53
+ return SandboxAiAccessResponseToJSONTyped(json, false);
54
+ }
55
+ function SandboxAiAccessResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'ok': value['ok'],
61
+ 'type': value['type'],
62
+ 'success': value['success'],
63
+ 'sandboxId': value['sandboxId'],
64
+ 'blocked': value['blocked'],
65
+ };
66
+ }
@@ -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 { AiUsageRow } from './AiUsageRow';
13
+ import type { AiUsageTotals } from './AiUsageTotals';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SandboxAiUsage
18
+ */
19
+ export interface SandboxAiUsage {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof SandboxAiUsage
24
+ */
25
+ sandboxId: string | null;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof SandboxAiUsage
30
+ */
31
+ name: string | null;
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof SandboxAiUsage
36
+ */
37
+ blocked: boolean;
38
+ /**
39
+ *
40
+ * @type {Array<AiUsageRow>}
41
+ * @memberof SandboxAiUsage
42
+ */
43
+ usage: Array<AiUsageRow>;
44
+ /**
45
+ *
46
+ * @type {AiUsageTotals}
47
+ * @memberof SandboxAiUsage
48
+ */
49
+ totals: AiUsageTotals;
50
+ /**
51
+ * Request charge for the period, at the price per 1,000 requests.
52
+ * @type {number}
53
+ * @memberof SandboxAiUsage
54
+ */
55
+ dollars: number;
56
+ }
57
+ /**
58
+ * Check if a given object implements the SandboxAiUsage interface.
59
+ */
60
+ export declare function instanceOfSandboxAiUsage(value: object): value is SandboxAiUsage;
61
+ export declare function SandboxAiUsageFromJSON(json: any): SandboxAiUsage;
62
+ export declare function SandboxAiUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxAiUsage;
63
+ export declare function SandboxAiUsageToJSON(json: any): SandboxAiUsage;
64
+ export declare function SandboxAiUsageToJSONTyped(value?: SandboxAiUsage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.instanceOfSandboxAiUsage = instanceOfSandboxAiUsage;
17
+ exports.SandboxAiUsageFromJSON = SandboxAiUsageFromJSON;
18
+ exports.SandboxAiUsageFromJSONTyped = SandboxAiUsageFromJSONTyped;
19
+ exports.SandboxAiUsageToJSON = SandboxAiUsageToJSON;
20
+ exports.SandboxAiUsageToJSONTyped = SandboxAiUsageToJSONTyped;
21
+ const AiUsageRow_1 = require("./AiUsageRow");
22
+ const AiUsageTotals_1 = require("./AiUsageTotals");
23
+ /**
24
+ * Check if a given object implements the SandboxAiUsage interface.
25
+ */
26
+ function instanceOfSandboxAiUsage(value) {
27
+ if (!('sandboxId' in value) || value['sandboxId'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('blocked' in value) || value['blocked'] === undefined)
32
+ return false;
33
+ if (!('usage' in value) || value['usage'] === undefined)
34
+ return false;
35
+ if (!('totals' in value) || value['totals'] === undefined)
36
+ return false;
37
+ if (!('dollars' in value) || value['dollars'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function SandboxAiUsageFromJSON(json) {
42
+ return SandboxAiUsageFromJSONTyped(json, false);
43
+ }
44
+ function SandboxAiUsageFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'sandboxId': json['sandboxId'],
50
+ 'name': json['name'],
51
+ 'blocked': json['blocked'],
52
+ 'usage': (json['usage'].map(AiUsageRow_1.AiUsageRowFromJSON)),
53
+ 'totals': (0, AiUsageTotals_1.AiUsageTotalsFromJSON)(json['totals']),
54
+ 'dollars': json['dollars'],
55
+ };
56
+ }
57
+ function SandboxAiUsageToJSON(json) {
58
+ return SandboxAiUsageToJSONTyped(json, false);
59
+ }
60
+ function SandboxAiUsageToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'sandboxId': value['sandboxId'],
66
+ 'name': value['name'],
67
+ 'blocked': value['blocked'],
68
+ 'usage': (value['usage'].map(AiUsageRow_1.AiUsageRowToJSON)),
69
+ 'totals': (0, AiUsageTotals_1.AiUsageTotalsToJSON)(value['totals']),
70
+ 'dollars': value['dollars'],
71
+ };
72
+ }
@@ -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,88 @@
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.instanceOfSandboxAiUsageResponse = instanceOfSandboxAiUsageResponse;
17
+ exports.SandboxAiUsageResponseFromJSON = SandboxAiUsageResponseFromJSON;
18
+ exports.SandboxAiUsageResponseFromJSONTyped = SandboxAiUsageResponseFromJSONTyped;
19
+ exports.SandboxAiUsageResponseToJSON = SandboxAiUsageResponseToJSON;
20
+ exports.SandboxAiUsageResponseToJSONTyped = SandboxAiUsageResponseToJSONTyped;
21
+ const AiUsageRow_1 = require("./AiUsageRow");
22
+ const AiUsageTotals_1 = require("./AiUsageTotals");
23
+ /**
24
+ * Check if a given object implements the SandboxAiUsageResponse interface.
25
+ */
26
+ function instanceOfSandboxAiUsageResponse(value) {
27
+ if (!('ok' in value) || value['ok'] === undefined)
28
+ return false;
29
+ if (!('type' in value) || value['type'] === undefined)
30
+ return false;
31
+ if (!('sandboxId' in value) || value['sandboxId'] === undefined)
32
+ return false;
33
+ if (!('blocked' in value) || value['blocked'] === undefined)
34
+ return false;
35
+ if (!('proxied' in value) || value['proxied'] === undefined)
36
+ return false;
37
+ if (!('credentialProfileId' in value) || value['credentialProfileId'] === undefined)
38
+ return false;
39
+ if (!('since' in value) || value['since'] === undefined)
40
+ return false;
41
+ if (!('usage' in value) || value['usage'] === undefined)
42
+ return false;
43
+ if (!('totals' in value) || value['totals'] === undefined)
44
+ return false;
45
+ if (!('dollars' in value) || value['dollars'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ function SandboxAiUsageResponseFromJSON(json) {
50
+ return SandboxAiUsageResponseFromJSONTyped(json, false);
51
+ }
52
+ function SandboxAiUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'ok': json['ok'],
58
+ 'type': json['type'],
59
+ 'sandboxId': json['sandboxId'],
60
+ 'blocked': json['blocked'],
61
+ 'proxied': json['proxied'],
62
+ 'credentialProfileId': json['credentialProfileId'],
63
+ 'since': (new Date(json['since'])),
64
+ 'usage': (json['usage'].map(AiUsageRow_1.AiUsageRowFromJSON)),
65
+ 'totals': (0, AiUsageTotals_1.AiUsageTotalsFromJSON)(json['totals']),
66
+ 'dollars': json['dollars'],
67
+ };
68
+ }
69
+ function SandboxAiUsageResponseToJSON(json) {
70
+ return SandboxAiUsageResponseToJSONTyped(json, false);
71
+ }
72
+ function SandboxAiUsageResponseToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'ok': value['ok'],
78
+ 'type': value['type'],
79
+ 'sandboxId': value['sandboxId'],
80
+ 'blocked': value['blocked'],
81
+ 'proxied': value['proxied'],
82
+ 'credentialProfileId': value['credentialProfileId'],
83
+ 'since': value['since'].toISOString().substring(0, 10),
84
+ 'usage': (value['usage'].map(AiUsageRow_1.AiUsageRowToJSON)),
85
+ 'totals': (0, AiUsageTotals_1.AiUsageTotalsToJSON)(value['totals']),
86
+ 'dollars': value['dollars'],
87
+ };
88
+ }
@@ -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}
@@ -70,6 +70,8 @@ function SandboxEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
70
70
  'passSecrets': json['passSecrets'],
71
71
  'passSandboxCredentials': json['passSandboxCredentials'],
72
72
  'passAgentsCredentials': json['passAgentsCredentials'],
73
+ 'credentialProfileId': json['credentialProfileId'] == null ? undefined : json['credentialProfileId'],
74
+ 'proxyAiCredentials': json['proxyAiCredentials'] == null ? undefined : json['proxyAiCredentials'],
73
75
  'envContents': json['envContents'],
74
76
  'secretFiles': (json['secretFiles'].map(SecretFile_1.SecretFileFromJSON)),
75
77
  'selectedRepositories': json['selectedRepositories'] == null ? undefined : (json['selectedRepositories'].map(SelectedRepository_1.SelectedRepositoryFromJSON)),
@@ -95,6 +97,8 @@ function SandboxEnvironmentToJSONTyped(value, ignoreDiscriminator = false) {
95
97
  'passSecrets': value['passSecrets'],
96
98
  'passSandboxCredentials': value['passSandboxCredentials'],
97
99
  'passAgentsCredentials': value['passAgentsCredentials'],
100
+ 'credentialProfileId': value['credentialProfileId'],
101
+ 'proxyAiCredentials': value['proxyAiCredentials'],
98
102
  'envContents': value['envContents'],
99
103
  'secretFiles': (value['secretFiles'].map(SecretFile_1.SecretFileToJSON)),
100
104
  'selectedRepositories': value['selectedRepositories'] == null ? undefined : (value['selectedRepositories'].map(SelectedRepository_1.SelectedRepositoryToJSON)),
@@ -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 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
+ * Keep the key this one replaces as another account of the credential, ready to switch back to.
26
+ * @type {boolean}
27
+ * @memberof SetCredentialKeyRequest
28
+ */
29
+ keepCurrent?: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SetCredentialKeyRequest interface.
33
+ */
34
+ export declare function instanceOfSetCredentialKeyRequest(value: object): value is SetCredentialKeyRequest;
35
+ export declare function SetCredentialKeyRequestFromJSON(json: any): SetCredentialKeyRequest;
36
+ export declare function SetCredentialKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetCredentialKeyRequest;
37
+ export declare function SetCredentialKeyRequestToJSON(json: any): SetCredentialKeyRequest;
38
+ export declare function SetCredentialKeyRequestToJSONTyped(value?: SetCredentialKeyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfSetCredentialKeyRequest = instanceOfSetCredentialKeyRequest;
17
+ exports.SetCredentialKeyRequestFromJSON = SetCredentialKeyRequestFromJSON;
18
+ exports.SetCredentialKeyRequestFromJSONTyped = SetCredentialKeyRequestFromJSONTyped;
19
+ exports.SetCredentialKeyRequestToJSON = SetCredentialKeyRequestToJSON;
20
+ exports.SetCredentialKeyRequestToJSONTyped = SetCredentialKeyRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SetCredentialKeyRequest interface.
23
+ */
24
+ function instanceOfSetCredentialKeyRequest(value) {
25
+ if (!('value' in value) || value['value'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SetCredentialKeyRequestFromJSON(json) {
30
+ return SetCredentialKeyRequestFromJSONTyped(json, false);
31
+ }
32
+ function SetCredentialKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'value': json['value'],
38
+ 'keepCurrent': json['keepCurrent'] == null ? undefined : json['keepCurrent'],
39
+ };
40
+ }
41
+ function SetCredentialKeyRequestToJSON(json) {
42
+ return SetCredentialKeyRequestToJSONTyped(json, false);
43
+ }
44
+ function SetCredentialKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'value': value['value'],
50
+ 'keepCurrent': value['keepCurrent'],
51
+ };
52
+ }
@@ -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,54 @@
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.instanceOfSetCustomApiRequest = instanceOfSetCustomApiRequest;
17
+ exports.SetCustomApiRequestFromJSON = SetCustomApiRequestFromJSON;
18
+ exports.SetCustomApiRequestFromJSONTyped = SetCustomApiRequestFromJSONTyped;
19
+ exports.SetCustomApiRequestToJSON = SetCustomApiRequestToJSON;
20
+ exports.SetCustomApiRequestToJSONTyped = SetCustomApiRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SetCustomApiRequest interface.
23
+ */
24
+ function instanceOfSetCustomApiRequest(value) {
25
+ if (!('value' in value) || value['value'] === undefined)
26
+ return false;
27
+ if (!('baseUrl' in value) || value['baseUrl'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SetCustomApiRequestFromJSON(json) {
32
+ return SetCustomApiRequestFromJSONTyped(json, false);
33
+ }
34
+ function SetCustomApiRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'value': json['value'],
40
+ 'baseUrl': json['baseUrl'],
41
+ };
42
+ }
43
+ function SetCustomApiRequestToJSON(json) {
44
+ return SetCustomApiRequestToJSONTyped(json, false);
45
+ }
46
+ function SetCustomApiRequestToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'value': value['value'],
52
+ 'baseUrl': value['baseUrl'],
53
+ };
54
+ }