@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,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateCredentialProfileRequest
20
+ */
21
+ export interface CreateCredentialProfileRequest {
22
+ /**
23
+ * Unique among the owner's profiles.
24
+ * @type {string}
25
+ * @memberof CreateCredentialProfileRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ * Organization id or name. The profile then belongs to that organization. Omit for a personal profile.
30
+ * @type {string}
31
+ * @memberof CreateCredentialProfileRequest
32
+ */
33
+ org?: string;
34
+ /**
35
+ * Id or name of a profile you manage. The new profile starts with a copy of its credentials.
36
+ * @type {string}
37
+ * @memberof CreateCredentialProfileRequest
38
+ */
39
+ copyFrom?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the CreateCredentialProfileRequest interface.
44
+ */
45
+ export function instanceOfCreateCredentialProfileRequest(value: object): value is CreateCredentialProfileRequest {
46
+ if (!('name' in value) || value['name'] === undefined) return false;
47
+ return true;
48
+ }
49
+
50
+ export function CreateCredentialProfileRequestFromJSON(json: any): CreateCredentialProfileRequest {
51
+ return CreateCredentialProfileRequestFromJSONTyped(json, false);
52
+ }
53
+
54
+ export function CreateCredentialProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCredentialProfileRequest {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+
60
+ 'name': json['name'],
61
+ 'org': json['org'] == null ? undefined : json['org'],
62
+ 'copyFrom': json['copyFrom'] == null ? undefined : json['copyFrom'],
63
+ };
64
+ }
65
+
66
+ export function CreateCredentialProfileRequestToJSON(json: any): CreateCredentialProfileRequest {
67
+ return CreateCredentialProfileRequestToJSONTyped(json, false);
68
+ }
69
+
70
+ export function CreateCredentialProfileRequestToJSONTyped(value?: CreateCredentialProfileRequest | null, ignoreDiscriminator: boolean = false): any {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+
75
+ return {
76
+
77
+ 'name': value['name'],
78
+ 'org': value['org'],
79
+ 'copyFrom': value['copyFrom'],
80
+ };
81
+ }
82
+
@@ -0,0 +1,64 @@
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
+
16
+ /**
17
+ * 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.
18
+ * @export
19
+ */
20
+ export const CredentialId = {
21
+ AnthropicApiKey: 'anthropic-api-key',
22
+ OpenaiApiKey: 'openai-api-key',
23
+ OpenrouterApiKey: 'openrouter-api-key',
24
+ LlmgatewayApiKey: 'llmgateway-api-key',
25
+ DeepseekApiKey: 'deepseek-api-key',
26
+ MoonshotApiKey: 'moonshot-api-key',
27
+ MistralApiKey: 'mistral-api-key',
28
+ ClaudeSubscription: 'claude-subscription',
29
+ ChatgptSubscription: 'chatgpt-subscription',
30
+ KimiSubscription: 'kimi-subscription',
31
+ MistralVibeSubscription: 'mistral-vibe-subscription',
32
+ ClaudeBedrock: 'claude-bedrock',
33
+ CodexBedrock: 'codex-bedrock'
34
+ } as const;
35
+ export type CredentialId = typeof CredentialId[keyof typeof CredentialId];
36
+
37
+
38
+ export function instanceOfCredentialId(value: any): boolean {
39
+ for (const key in CredentialId) {
40
+ if (Object.prototype.hasOwnProperty.call(CredentialId, key)) {
41
+ if (CredentialId[key as keyof typeof CredentialId] === value) {
42
+ return true;
43
+ }
44
+ }
45
+ }
46
+ return false;
47
+ }
48
+
49
+ export function CredentialIdFromJSON(json: any): CredentialId {
50
+ return CredentialIdFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function CredentialIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialId {
54
+ return json as CredentialId;
55
+ }
56
+
57
+ export function CredentialIdToJSON(value?: CredentialId | null): any {
58
+ return value as any;
59
+ }
60
+
61
+ export function CredentialIdToJSONTyped(value: any, ignoreDiscriminator: boolean): CredentialId {
62
+ return value as CredentialId;
63
+ }
64
+
@@ -0,0 +1,153 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { CredentialId } from './CredentialId';
17
+ import {
18
+ CredentialIdFromJSON,
19
+ CredentialIdFromJSONTyped,
20
+ CredentialIdToJSON,
21
+ CredentialIdToJSONTyped,
22
+ } from './CredentialId';
23
+ import type { CredentialProfileOwner } from './CredentialProfileOwner';
24
+ import {
25
+ CredentialProfileOwnerFromJSON,
26
+ CredentialProfileOwnerFromJSONTyped,
27
+ CredentialProfileOwnerToJSON,
28
+ CredentialProfileOwnerToJSONTyped,
29
+ } from './CredentialProfileOwner';
30
+
31
+ /**
32
+ * A named set of AI credentials. Secret values are never returned.
33
+ * @export
34
+ * @interface CredentialProfile
35
+ */
36
+ export interface CredentialProfile {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof CredentialProfile
41
+ */
42
+ id: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof CredentialProfile
47
+ */
48
+ name: string;
49
+ /**
50
+ * True for the one profile of its owner that sandboxes get when nothing names a profile. The dashboard Agents page edits this profile.
51
+ * @type {boolean}
52
+ * @memberof CredentialProfile
53
+ */
54
+ isDefault: boolean;
55
+ /**
56
+ *
57
+ * @type {CredentialProfileOwner}
58
+ * @memberof CredentialProfile
59
+ */
60
+ owner: CredentialProfileOwner;
61
+ /**
62
+ * True when you can change the profile. Org members use an org profile; org owners manage it.
63
+ * @type {boolean}
64
+ * @memberof CredentialProfile
65
+ */
66
+ canManage: boolean;
67
+ /**
68
+ * The credentials the profile holds.
69
+ * @type {Array<CredentialId>}
70
+ * @memberof CredentialProfile
71
+ */
72
+ connected: Array<CredentialId>;
73
+ /**
74
+ * The names of the profile's custom APIs. Values are never returned.
75
+ * @type {Array<string>}
76
+ * @memberof CredentialProfile
77
+ */
78
+ customApis: Array<string>;
79
+ /**
80
+ *
81
+ * @type {Date}
82
+ * @memberof CredentialProfile
83
+ */
84
+ createdAt: Date;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof CredentialProfile
89
+ */
90
+ updatedAt: Date;
91
+ }
92
+
93
+ /**
94
+ * Check if a given object implements the CredentialProfile interface.
95
+ */
96
+ export function instanceOfCredentialProfile(value: object): value is CredentialProfile {
97
+ if (!('id' in value) || value['id'] === undefined) return false;
98
+ if (!('name' in value) || value['name'] === undefined) return false;
99
+ if (!('isDefault' in value) || value['isDefault'] === undefined) return false;
100
+ if (!('owner' in value) || value['owner'] === undefined) return false;
101
+ if (!('canManage' in value) || value['canManage'] === undefined) return false;
102
+ if (!('connected' in value) || value['connected'] === undefined) return false;
103
+ if (!('customApis' in value) || value['customApis'] === undefined) return false;
104
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
105
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function CredentialProfileFromJSON(json: any): CredentialProfile {
110
+ return CredentialProfileFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function CredentialProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialProfile {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'id': json['id'],
120
+ 'name': json['name'],
121
+ 'isDefault': json['isDefault'],
122
+ 'owner': CredentialProfileOwnerFromJSON(json['owner']),
123
+ 'canManage': json['canManage'],
124
+ 'connected': ((json['connected'] as Array<any>).map(CredentialIdFromJSON)),
125
+ 'customApis': json['customApis'],
126
+ 'createdAt': (new Date(json['createdAt'])),
127
+ 'updatedAt': (new Date(json['updatedAt'])),
128
+ };
129
+ }
130
+
131
+ export function CredentialProfileToJSON(json: any): CredentialProfile {
132
+ return CredentialProfileToJSONTyped(json, false);
133
+ }
134
+
135
+ export function CredentialProfileToJSONTyped(value?: CredentialProfile | null, ignoreDiscriminator: boolean = false): any {
136
+ if (value == null) {
137
+ return value;
138
+ }
139
+
140
+ return {
141
+
142
+ 'id': value['id'],
143
+ 'name': value['name'],
144
+ 'isDefault': value['isDefault'],
145
+ 'owner': CredentialProfileOwnerToJSON(value['owner']),
146
+ 'canManage': value['canManage'],
147
+ 'connected': ((value['connected'] as Array<any>).map(CredentialIdToJSON)),
148
+ 'customApis': value['customApis'],
149
+ 'createdAt': value['createdAt'].toISOString(),
150
+ 'updatedAt': value['updatedAt'].toISOString(),
151
+ };
152
+ }
153
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CredentialProfileDeletedResponse
20
+ */
21
+ export interface CredentialProfileDeletedResponse {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof CredentialProfileDeletedResponse
26
+ */
27
+ ok: boolean;
28
+ /**
29
+ * Stable success envelope discriminator added by v1.
30
+ * @type {string}
31
+ * @memberof CredentialProfileDeletedResponse
32
+ */
33
+ type: string;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof CredentialProfileDeletedResponse
38
+ */
39
+ success: boolean;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the CredentialProfileDeletedResponse interface.
44
+ */
45
+ export function instanceOfCredentialProfileDeletedResponse(value: object): value is CredentialProfileDeletedResponse {
46
+ if (!('ok' in value) || value['ok'] === undefined) return false;
47
+ if (!('type' in value) || value['type'] === undefined) return false;
48
+ if (!('success' in value) || value['success'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function CredentialProfileDeletedResponseFromJSON(json: any): CredentialProfileDeletedResponse {
53
+ return CredentialProfileDeletedResponseFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function CredentialProfileDeletedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialProfileDeletedResponse {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'ok': json['ok'],
63
+ 'type': json['type'],
64
+ 'success': json['success'],
65
+ };
66
+ }
67
+
68
+ export function CredentialProfileDeletedResponseToJSON(json: any): CredentialProfileDeletedResponse {
69
+ return CredentialProfileDeletedResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function CredentialProfileDeletedResponseToJSONTyped(value?: CredentialProfileDeletedResponse | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'ok': value['ok'],
80
+ 'type': value['type'],
81
+ 'success': value['success'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,92 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { CredentialProfile } from './CredentialProfile';
17
+ import {
18
+ CredentialProfileFromJSON,
19
+ CredentialProfileFromJSONTyped,
20
+ CredentialProfileToJSON,
21
+ CredentialProfileToJSONTyped,
22
+ } from './CredentialProfile';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CredentialProfileListResponse
28
+ */
29
+ export interface CredentialProfileListResponse {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CredentialProfileListResponse
34
+ */
35
+ ok: boolean;
36
+ /**
37
+ * Stable success envelope discriminator added by v1.
38
+ * @type {string}
39
+ * @memberof CredentialProfileListResponse
40
+ */
41
+ type: string;
42
+ /**
43
+ *
44
+ * @type {Array<CredentialProfile>}
45
+ * @memberof CredentialProfileListResponse
46
+ */
47
+ profiles: Array<CredentialProfile>;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the CredentialProfileListResponse interface.
52
+ */
53
+ export function instanceOfCredentialProfileListResponse(value: object): value is CredentialProfileListResponse {
54
+ if (!('ok' in value) || value['ok'] === undefined) return false;
55
+ if (!('type' in value) || value['type'] === undefined) return false;
56
+ if (!('profiles' in value) || value['profiles'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function CredentialProfileListResponseFromJSON(json: any): CredentialProfileListResponse {
61
+ return CredentialProfileListResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function CredentialProfileListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialProfileListResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'ok': json['ok'],
71
+ 'type': json['type'],
72
+ 'profiles': ((json['profiles'] as Array<any>).map(CredentialProfileFromJSON)),
73
+ };
74
+ }
75
+
76
+ export function CredentialProfileListResponseToJSON(json: any): CredentialProfileListResponse {
77
+ return CredentialProfileListResponseToJSONTyped(json, false);
78
+ }
79
+
80
+ export function CredentialProfileListResponseToJSONTyped(value?: CredentialProfileListResponse | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'ok': value['ok'],
88
+ 'type': value['type'],
89
+ 'profiles': ((value['profiles'] as Array<any>).map(CredentialProfileToJSON)),
90
+ };
91
+ }
92
+
@@ -0,0 +1,104 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CredentialProfileOwner
20
+ */
21
+ export interface CredentialProfileOwner {
22
+ /**
23
+ * The account that owns the profile, a person or an organization.
24
+ * @type {string}
25
+ * @memberof CredentialProfileOwner
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {CredentialProfileOwnerKindEnum}
31
+ * @memberof CredentialProfileOwner
32
+ */
33
+ kind: CredentialProfileOwnerKindEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CredentialProfileOwner
38
+ */
39
+ name: string;
40
+ /**
41
+ * True when the owner has the AI credentials proxy on.
42
+ * @type {boolean}
43
+ * @memberof CredentialProfileOwner
44
+ */
45
+ aiProxyEnabled: boolean;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const CredentialProfileOwnerKindEnum = {
53
+ Personal: 'personal',
54
+ Org: 'org'
55
+ } as const;
56
+ export type CredentialProfileOwnerKindEnum = typeof CredentialProfileOwnerKindEnum[keyof typeof CredentialProfileOwnerKindEnum];
57
+
58
+
59
+ /**
60
+ * Check if a given object implements the CredentialProfileOwner interface.
61
+ */
62
+ export function instanceOfCredentialProfileOwner(value: object): value is CredentialProfileOwner {
63
+ if (!('id' in value) || value['id'] === undefined) return false;
64
+ if (!('kind' in value) || value['kind'] === undefined) return false;
65
+ if (!('name' in value) || value['name'] === undefined) return false;
66
+ if (!('aiProxyEnabled' in value) || value['aiProxyEnabled'] === undefined) return false;
67
+ return true;
68
+ }
69
+
70
+ export function CredentialProfileOwnerFromJSON(json: any): CredentialProfileOwner {
71
+ return CredentialProfileOwnerFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function CredentialProfileOwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialProfileOwner {
75
+ if (json == null) {
76
+ return json;
77
+ }
78
+ return {
79
+
80
+ 'id': json['id'],
81
+ 'kind': json['kind'],
82
+ 'name': json['name'],
83
+ 'aiProxyEnabled': json['aiProxyEnabled'],
84
+ };
85
+ }
86
+
87
+ export function CredentialProfileOwnerToJSON(json: any): CredentialProfileOwner {
88
+ return CredentialProfileOwnerToJSONTyped(json, false);
89
+ }
90
+
91
+ export function CredentialProfileOwnerToJSONTyped(value?: CredentialProfileOwner | null, ignoreDiscriminator: boolean = false): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+
96
+ return {
97
+
98
+ 'id': value['id'],
99
+ 'kind': value['kind'],
100
+ 'name': value['name'],
101
+ 'aiProxyEnabled': value['aiProxyEnabled'],
102
+ };
103
+ }
104
+
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { CredentialProfile } from './CredentialProfile';
17
+ import {
18
+ CredentialProfileFromJSON,
19
+ CredentialProfileFromJSONTyped,
20
+ CredentialProfileToJSON,
21
+ CredentialProfileToJSONTyped,
22
+ } from './CredentialProfile';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CredentialProfileResponse
28
+ */
29
+ export interface CredentialProfileResponse {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CredentialProfileResponse
34
+ */
35
+ ok: boolean;
36
+ /**
37
+ * Stable success envelope discriminator added by v1.
38
+ * @type {string}
39
+ * @memberof CredentialProfileResponse
40
+ */
41
+ type: string;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof CredentialProfileResponse
46
+ */
47
+ success: boolean;
48
+ /**
49
+ *
50
+ * @type {CredentialProfile}
51
+ * @memberof CredentialProfileResponse
52
+ */
53
+ profile: CredentialProfile;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the CredentialProfileResponse interface.
58
+ */
59
+ export function instanceOfCredentialProfileResponse(value: object): value is CredentialProfileResponse {
60
+ if (!('ok' in value) || value['ok'] === undefined) return false;
61
+ if (!('type' in value) || value['type'] === undefined) return false;
62
+ if (!('success' in value) || value['success'] === undefined) return false;
63
+ if (!('profile' in value) || value['profile'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function CredentialProfileResponseFromJSON(json: any): CredentialProfileResponse {
68
+ return CredentialProfileResponseFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function CredentialProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialProfileResponse {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'ok': json['ok'],
78
+ 'type': json['type'],
79
+ 'success': json['success'],
80
+ 'profile': CredentialProfileFromJSON(json['profile']),
81
+ };
82
+ }
83
+
84
+ export function CredentialProfileResponseToJSON(json: any): CredentialProfileResponse {
85
+ return CredentialProfileResponseToJSONTyped(json, false);
86
+ }
87
+
88
+ export function CredentialProfileResponseToJSONTyped(value?: CredentialProfileResponse | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'ok': value['ok'],
96
+ 'type': value['type'],
97
+ 'success': value['success'],
98
+ 'profile': CredentialProfileToJSON(value['profile']),
99
+ };
100
+ }
101
+
@@ -50,7 +50,7 @@ export interface DeletionOperation {
50
50
  */
51
51
  status: DeletionOperationStatusEnum;
52
52
  /**
53
- * What the background purge is doing. The target is already gone from every list, restore and fork once the operation exists. `waiting_for_uploads`: stored data is erased once the last upload URL issued for it expires (`expectedBy`). `kept_for_newer_snapshots`: a newer snapshot you kept is built on this one; its data goes when they go. `waiting_for_restore`: a sandbox is still restoring from it. `retrying`: a transient fault, retried automatically.
53
+ * What the background purge is doing. The target is already gone from every list, restore and fork once the operation exists. `waiting_for_uploads`: stored data is erased once the last upload URL issued for it expires (`expectedBy`). `kept_for_newer_snapshots`: a newer snapshot, or a sandbox forked or deployed from it, still builds on this data; it goes when they go. `waiting_for_restore`: a sandbox is still restoring from it. `retrying`: a transient fault, retried automatically.
54
54
  * @type {DeletionOperationStageEnum}
55
55
  * @memberof DeletionOperation
56
56
  */