@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,44 @@
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 CreateCredentialProfileRequest
16
+ */
17
+ export interface CreateCredentialProfileRequest {
18
+ /**
19
+ * Unique among the owner's profiles.
20
+ * @type {string}
21
+ * @memberof CreateCredentialProfileRequest
22
+ */
23
+ name: string;
24
+ /**
25
+ * Organization id or name. The profile then belongs to that organization. Omit for a personal profile.
26
+ * @type {string}
27
+ * @memberof CreateCredentialProfileRequest
28
+ */
29
+ org?: string;
30
+ /**
31
+ * Id or name of a profile you manage. The new profile starts with a copy of its credentials.
32
+ * @type {string}
33
+ * @memberof CreateCredentialProfileRequest
34
+ */
35
+ copyFrom?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CreateCredentialProfileRequest interface.
39
+ */
40
+ export declare function instanceOfCreateCredentialProfileRequest(value: object): value is CreateCredentialProfileRequest;
41
+ export declare function CreateCredentialProfileRequestFromJSON(json: any): CreateCredentialProfileRequest;
42
+ export declare function CreateCredentialProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCredentialProfileRequest;
43
+ export declare function CreateCredentialProfileRequestToJSON(json: any): CreateCredentialProfileRequest;
44
+ export declare function CreateCredentialProfileRequestToJSONTyped(value?: CreateCredentialProfileRequest | 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 CreateCredentialProfileRequest interface.
16
+ */
17
+ export function instanceOfCreateCredentialProfileRequest(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function CreateCredentialProfileRequestFromJSON(json) {
23
+ return CreateCredentialProfileRequestFromJSONTyped(json, false);
24
+ }
25
+ export function CreateCredentialProfileRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': json['name'],
31
+ 'org': json['org'] == null ? undefined : json['org'],
32
+ 'copyFrom': json['copyFrom'] == null ? undefined : json['copyFrom'],
33
+ };
34
+ }
35
+ export function CreateCredentialProfileRequestToJSON(json) {
36
+ return CreateCredentialProfileRequestToJSONTyped(json, false);
37
+ }
38
+ export function CreateCredentialProfileRequestToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'name': value['name'],
44
+ 'org': value['org'],
45
+ 'copyFrom': value['copyFrom'],
46
+ };
47
+ }
@@ -0,0 +1,50 @@
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
+ * One account of a credential. Never a secret.
14
+ * @export
15
+ * @interface CredentialAccount
16
+ */
17
+ export interface CredentialAccount {
18
+ /**
19
+ * The account's id. It stays the same across switches.
20
+ * @type {string}
21
+ * @memberof CredentialAccount
22
+ */
23
+ id: string;
24
+ /**
25
+ * The account's email for a sign-in, or the key's last characters (…1234).
26
+ * @type {string}
27
+ * @memberof CredentialAccount
28
+ */
29
+ label: string;
30
+ /**
31
+ * True for the account every sandbox on the profile uses.
32
+ * @type {boolean}
33
+ * @memberof CredentialAccount
34
+ */
35
+ active: boolean;
36
+ /**
37
+ * When the account was set aside (accounts not in use).
38
+ * @type {Date}
39
+ * @memberof CredentialAccount
40
+ */
41
+ addedAt?: Date;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CredentialAccount interface.
45
+ */
46
+ export declare function instanceOfCredentialAccount(value: object): value is CredentialAccount;
47
+ export declare function CredentialAccountFromJSON(json: any): CredentialAccount;
48
+ export declare function CredentialAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialAccount;
49
+ export declare function CredentialAccountToJSON(json: any): CredentialAccount;
50
+ export declare function CredentialAccountToJSONTyped(value?: CredentialAccount | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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 CredentialAccount interface.
16
+ */
17
+ export function instanceOfCredentialAccount(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('label' in value) || value['label'] === undefined)
21
+ return false;
22
+ if (!('active' in value) || value['active'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function CredentialAccountFromJSON(json) {
27
+ return CredentialAccountFromJSONTyped(json, false);
28
+ }
29
+ export function CredentialAccountFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'label': json['label'],
36
+ 'active': json['active'],
37
+ 'addedAt': json['addedAt'] == null ? undefined : (new Date(json['addedAt'])),
38
+ };
39
+ }
40
+ export function CredentialAccountToJSON(json) {
41
+ return CredentialAccountToJSONTyped(json, false);
42
+ }
43
+ export function CredentialAccountToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'label': value['label'],
50
+ 'active': value['active'],
51
+ 'addedAt': value['addedAt'] == null ? value['addedAt'] : value['addedAt'].toISOString(),
52
+ };
53
+ }
@@ -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 { CredentialId } from './CredentialId';
13
+ import type { CredentialAccount } from './CredentialAccount';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CredentialAccountsResponse
18
+ */
19
+ export interface CredentialAccountsResponse {
20
+ /**
21
+ *
22
+ * @type {boolean}
23
+ * @memberof CredentialAccountsResponse
24
+ */
25
+ ok: boolean;
26
+ /**
27
+ * Stable success envelope discriminator added by v1.
28
+ * @type {string}
29
+ * @memberof CredentialAccountsResponse
30
+ */
31
+ type: string;
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof CredentialAccountsResponse
36
+ */
37
+ success: boolean;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof CredentialAccountsResponse
42
+ */
43
+ profileId: string;
44
+ /**
45
+ *
46
+ * @type {CredentialId}
47
+ * @memberof CredentialAccountsResponse
48
+ */
49
+ credential: CredentialId;
50
+ /**
51
+ * In the order the accounts were added, so their numbers stay the same across switches. The one in use is marked `active`.
52
+ * @type {Array<CredentialAccount>}
53
+ * @memberof CredentialAccountsResponse
54
+ */
55
+ accounts: Array<CredentialAccount>;
56
+ }
57
+ /**
58
+ * Check if a given object implements the CredentialAccountsResponse interface.
59
+ */
60
+ export declare function instanceOfCredentialAccountsResponse(value: object): value is CredentialAccountsResponse;
61
+ export declare function CredentialAccountsResponseFromJSON(json: any): CredentialAccountsResponse;
62
+ export declare function CredentialAccountsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialAccountsResponse;
63
+ export declare function CredentialAccountsResponseToJSON(json: any): CredentialAccountsResponse;
64
+ export declare function CredentialAccountsResponseToJSONTyped(value?: CredentialAccountsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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 { CredentialIdFromJSON, CredentialIdToJSON, } from './CredentialId';
15
+ import { CredentialAccountFromJSON, CredentialAccountToJSON, } from './CredentialAccount';
16
+ /**
17
+ * Check if a given object implements the CredentialAccountsResponse interface.
18
+ */
19
+ export function instanceOfCredentialAccountsResponse(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 (!('success' in value) || value['success'] === undefined)
25
+ return false;
26
+ if (!('profileId' in value) || value['profileId'] === undefined)
27
+ return false;
28
+ if (!('credential' in value) || value['credential'] === undefined)
29
+ return false;
30
+ if (!('accounts' in value) || value['accounts'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function CredentialAccountsResponseFromJSON(json) {
35
+ return CredentialAccountsResponseFromJSONTyped(json, false);
36
+ }
37
+ export function CredentialAccountsResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'ok': json['ok'],
43
+ 'type': json['type'],
44
+ 'success': json['success'],
45
+ 'profileId': json['profileId'],
46
+ 'credential': CredentialIdFromJSON(json['credential']),
47
+ 'accounts': (json['accounts'].map(CredentialAccountFromJSON)),
48
+ };
49
+ }
50
+ export function CredentialAccountsResponseToJSON(json) {
51
+ return CredentialAccountsResponseToJSONTyped(json, false);
52
+ }
53
+ export function CredentialAccountsResponseToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'ok': value['ok'],
59
+ 'type': value['type'],
60
+ 'success': value['success'],
61
+ 'profileId': value['profileId'],
62
+ 'credential': CredentialIdToJSON(value['credential']),
63
+ 'accounts': (value['accounts'].map(CredentialAccountToJSON)),
64
+ };
65
+ }
@@ -0,0 +1,36 @@
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
+ * One AI credential in a credential profile. The `*-api-key` ids are API keys you can set with `PUT /credential-profiles/{profile}/keys/{credential}`. The sign-ins (`*-subscription`) and Bedrock (`*-bedrock`) are connected on the dashboard Agents & Proxying page, with the profile picked at the top; you can remove them here.
14
+ * @export
15
+ */
16
+ export declare const CredentialId: {
17
+ readonly AnthropicApiKey: 'anthropic-api-key';
18
+ readonly OpenaiApiKey: 'openai-api-key';
19
+ readonly OpenrouterApiKey: 'openrouter-api-key';
20
+ readonly LlmgatewayApiKey: 'llmgateway-api-key';
21
+ readonly DeepseekApiKey: 'deepseek-api-key';
22
+ readonly MoonshotApiKey: 'moonshot-api-key';
23
+ readonly MistralApiKey: 'mistral-api-key';
24
+ readonly ClaudeSubscription: 'claude-subscription';
25
+ readonly ChatgptSubscription: 'chatgpt-subscription';
26
+ readonly KimiSubscription: 'kimi-subscription';
27
+ readonly MistralVibeSubscription: 'mistral-vibe-subscription';
28
+ readonly ClaudeBedrock: 'claude-bedrock';
29
+ readonly CodexBedrock: 'codex-bedrock';
30
+ };
31
+ export type CredentialId = typeof CredentialId[keyof typeof CredentialId];
32
+ export declare function instanceOfCredentialId(value: any): boolean;
33
+ export declare function CredentialIdFromJSON(json: any): CredentialId;
34
+ export declare function CredentialIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialId;
35
+ export declare function CredentialIdToJSON(value?: CredentialId | null): any;
36
+ export declare function CredentialIdToJSONTyped(value: any, ignoreDiscriminator: boolean): CredentialId;
@@ -0,0 +1,54 @@
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
+ * One AI credential in a credential profile. The `*-api-key` ids are API keys you can set with `PUT /credential-profiles/{profile}/keys/{credential}`. The sign-ins (`*-subscription`) and Bedrock (`*-bedrock`) are connected on the dashboard Agents & Proxying page, with the profile picked at the top; you can remove them here.
16
+ * @export
17
+ */
18
+ export const CredentialId = {
19
+ AnthropicApiKey: 'anthropic-api-key',
20
+ OpenaiApiKey: 'openai-api-key',
21
+ OpenrouterApiKey: 'openrouter-api-key',
22
+ LlmgatewayApiKey: 'llmgateway-api-key',
23
+ DeepseekApiKey: 'deepseek-api-key',
24
+ MoonshotApiKey: 'moonshot-api-key',
25
+ MistralApiKey: 'mistral-api-key',
26
+ ClaudeSubscription: 'claude-subscription',
27
+ ChatgptSubscription: 'chatgpt-subscription',
28
+ KimiSubscription: 'kimi-subscription',
29
+ MistralVibeSubscription: 'mistral-vibe-subscription',
30
+ ClaudeBedrock: 'claude-bedrock',
31
+ CodexBedrock: 'codex-bedrock'
32
+ };
33
+ export function instanceOfCredentialId(value) {
34
+ for (const key in CredentialId) {
35
+ if (Object.prototype.hasOwnProperty.call(CredentialId, key)) {
36
+ if (CredentialId[key] === value) {
37
+ return true;
38
+ }
39
+ }
40
+ }
41
+ return false;
42
+ }
43
+ export function CredentialIdFromJSON(json) {
44
+ return CredentialIdFromJSONTyped(json, false);
45
+ }
46
+ export function CredentialIdFromJSONTyped(json, ignoreDiscriminator) {
47
+ return json;
48
+ }
49
+ export function CredentialIdToJSON(value) {
50
+ return value;
51
+ }
52
+ export function CredentialIdToJSONTyped(value, ignoreDiscriminator) {
53
+ return value;
54
+ }
@@ -0,0 +1,91 @@
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 { CredentialId } from './CredentialId';
13
+ import type { CredentialProfileOwner } from './CredentialProfileOwner';
14
+ import type { CredentialAccount } from './CredentialAccount';
15
+ /**
16
+ * A named set of AI credentials. Secret values are never returned.
17
+ * @export
18
+ * @interface CredentialProfile
19
+ */
20
+ export interface CredentialProfile {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof CredentialProfile
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof CredentialProfile
31
+ */
32
+ name: string;
33
+ /**
34
+ * True for the one profile of its owner that sandboxes get when nothing names a profile. The dashboard Agents page edits this profile.
35
+ * @type {boolean}
36
+ * @memberof CredentialProfile
37
+ */
38
+ isDefault: boolean;
39
+ /**
40
+ *
41
+ * @type {CredentialProfileOwner}
42
+ * @memberof CredentialProfile
43
+ */
44
+ owner: CredentialProfileOwner;
45
+ /**
46
+ * True when you can change the profile. Org members use an org profile; org owners manage it.
47
+ * @type {boolean}
48
+ * @memberof CredentialProfile
49
+ */
50
+ canManage: boolean;
51
+ /**
52
+ * The credentials the profile holds.
53
+ * @type {Array<CredentialId>}
54
+ * @memberof CredentialProfile
55
+ */
56
+ connected: Array<CredentialId>;
57
+ /**
58
+ * Credentials with several accounts, keyed by credential id. Each lists every account (labels only), the one in use marked `active`.
59
+ * @type {{ [key: string]: Array<CredentialAccount>; }}
60
+ * @memberof CredentialProfile
61
+ */
62
+ accounts?: {
63
+ [key: string]: Array<CredentialAccount>;
64
+ };
65
+ /**
66
+ * The names of the profile's custom APIs. Values are never returned.
67
+ * @type {Array<string>}
68
+ * @memberof CredentialProfile
69
+ */
70
+ customApis: Array<string>;
71
+ /**
72
+ *
73
+ * @type {Date}
74
+ * @memberof CredentialProfile
75
+ */
76
+ createdAt: Date;
77
+ /**
78
+ *
79
+ * @type {Date}
80
+ * @memberof CredentialProfile
81
+ */
82
+ updatedAt: Date;
83
+ }
84
+ /**
85
+ * Check if a given object implements the CredentialProfile interface.
86
+ */
87
+ export declare function instanceOfCredentialProfile(value: object): value is CredentialProfile;
88
+ export declare function CredentialProfileFromJSON(json: any): CredentialProfile;
89
+ export declare function CredentialProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialProfile;
90
+ export declare function CredentialProfileToJSON(json: any): CredentialProfile;
91
+ export declare function CredentialProfileToJSONTyped(value?: CredentialProfile | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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 { CredentialIdFromJSON, CredentialIdToJSON, } from './CredentialId';
15
+ import { CredentialProfileOwnerFromJSON, CredentialProfileOwnerToJSON, } from './CredentialProfileOwner';
16
+ /**
17
+ * Check if a given object implements the CredentialProfile interface.
18
+ */
19
+ export function instanceOfCredentialProfile(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('name' in value) || value['name'] === undefined)
23
+ return false;
24
+ if (!('isDefault' in value) || value['isDefault'] === undefined)
25
+ return false;
26
+ if (!('owner' in value) || value['owner'] === undefined)
27
+ return false;
28
+ if (!('canManage' in value) || value['canManage'] === undefined)
29
+ return false;
30
+ if (!('connected' in value) || value['connected'] === undefined)
31
+ return false;
32
+ if (!('customApis' in value) || value['customApis'] === undefined)
33
+ return false;
34
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ return false;
36
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function CredentialProfileFromJSON(json) {
41
+ return CredentialProfileFromJSONTyped(json, false);
42
+ }
43
+ export function CredentialProfileFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'name': json['name'],
50
+ 'isDefault': json['isDefault'],
51
+ 'owner': CredentialProfileOwnerFromJSON(json['owner']),
52
+ 'canManage': json['canManage'],
53
+ 'connected': (json['connected'].map(CredentialIdFromJSON)),
54
+ 'accounts': json['accounts'] == null ? undefined : json['accounts'],
55
+ 'customApis': json['customApis'],
56
+ 'createdAt': (new Date(json['createdAt'])),
57
+ 'updatedAt': (new Date(json['updatedAt'])),
58
+ };
59
+ }
60
+ export function CredentialProfileToJSON(json) {
61
+ return CredentialProfileToJSONTyped(json, false);
62
+ }
63
+ export function CredentialProfileToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'id': value['id'],
69
+ 'name': value['name'],
70
+ 'isDefault': value['isDefault'],
71
+ 'owner': CredentialProfileOwnerToJSON(value['owner']),
72
+ 'canManage': value['canManage'],
73
+ 'connected': (value['connected'].map(CredentialIdToJSON)),
74
+ 'accounts': value['accounts'],
75
+ 'customApis': value['customApis'],
76
+ 'createdAt': value['createdAt'].toISOString(),
77
+ 'updatedAt': value['updatedAt'].toISOString(),
78
+ };
79
+ }
@@ -0,0 +1,44 @@
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 CredentialProfileDeletedResponse
16
+ */
17
+ export interface CredentialProfileDeletedResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof CredentialProfileDeletedResponse
22
+ */
23
+ ok: boolean;
24
+ /**
25
+ * Stable success envelope discriminator added by v1.
26
+ * @type {string}
27
+ * @memberof CredentialProfileDeletedResponse
28
+ */
29
+ type: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CredentialProfileDeletedResponse
34
+ */
35
+ success: boolean;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CredentialProfileDeletedResponse interface.
39
+ */
40
+ export declare function instanceOfCredentialProfileDeletedResponse(value: object): value is CredentialProfileDeletedResponse;
41
+ export declare function CredentialProfileDeletedResponseFromJSON(json: any): CredentialProfileDeletedResponse;
42
+ export declare function CredentialProfileDeletedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialProfileDeletedResponse;
43
+ export declare function CredentialProfileDeletedResponseToJSON(json: any): CredentialProfileDeletedResponse;
44
+ export declare function CredentialProfileDeletedResponseToJSONTyped(value?: CredentialProfileDeletedResponse | null, ignoreDiscriminator?: boolean): any;