@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,83 @@
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 { SandboxAiUsage } from './SandboxAiUsage';
13
+ import type { AiUsageRow } from './AiUsageRow';
14
+ import type { AiUsageTotals } from './AiUsageTotals';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AccountAiUsageResponse
19
+ */
20
+ export interface AccountAiUsageResponse {
21
+ /**
22
+ *
23
+ * @type {boolean}
24
+ * @memberof AccountAiUsageResponse
25
+ */
26
+ ok: boolean;
27
+ /**
28
+ * Stable success envelope discriminator added by v1.
29
+ * @type {string}
30
+ * @memberof AccountAiUsageResponse
31
+ */
32
+ type: string;
33
+ /**
34
+ * The wallet the usage is charged to. Null with `profile`.
35
+ * @type {string}
36
+ * @memberof AccountAiUsageResponse
37
+ */
38
+ accountId: string | null;
39
+ /**
40
+ * The credential profile whose requests are counted. Null without `profile`.
41
+ * @type {string}
42
+ * @memberof AccountAiUsageResponse
43
+ */
44
+ profileId: string | null;
45
+ /**
46
+ * First UTC day included.
47
+ * @type {Date}
48
+ * @memberof AccountAiUsageResponse
49
+ */
50
+ since: Date;
51
+ /**
52
+ *
53
+ * @type {Array<SandboxAiUsage>}
54
+ * @memberof AccountAiUsageResponse
55
+ */
56
+ sandboxes: Array<SandboxAiUsage>;
57
+ /**
58
+ *
59
+ * @type {Array<AiUsageRow>}
60
+ * @memberof AccountAiUsageResponse
61
+ */
62
+ usage: Array<AiUsageRow>;
63
+ /**
64
+ *
65
+ * @type {AiUsageTotals}
66
+ * @memberof AccountAiUsageResponse
67
+ */
68
+ totals: AiUsageTotals;
69
+ /**
70
+ *
71
+ * @type {number}
72
+ * @memberof AccountAiUsageResponse
73
+ */
74
+ dollars: number;
75
+ }
76
+ /**
77
+ * Check if a given object implements the AccountAiUsageResponse interface.
78
+ */
79
+ export declare function instanceOfAccountAiUsageResponse(value: object): value is AccountAiUsageResponse;
80
+ export declare function AccountAiUsageResponseFromJSON(json: any): AccountAiUsageResponse;
81
+ export declare function AccountAiUsageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAiUsageResponse;
82
+ export declare function AccountAiUsageResponseToJSON(json: any): AccountAiUsageResponse;
83
+ export declare function AccountAiUsageResponseToJSONTyped(value?: AccountAiUsageResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,78 @@
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 { SandboxAiUsageFromJSON, SandboxAiUsageToJSON, } from './SandboxAiUsage';
15
+ import { AiUsageRowFromJSON, AiUsageRowToJSON, } from './AiUsageRow';
16
+ import { AiUsageTotalsFromJSON, AiUsageTotalsToJSON, } from './AiUsageTotals';
17
+ /**
18
+ * Check if a given object implements the AccountAiUsageResponse interface.
19
+ */
20
+ export function instanceOfAccountAiUsageResponse(value) {
21
+ if (!('ok' in value) || value['ok'] === undefined)
22
+ return false;
23
+ if (!('type' in value) || value['type'] === undefined)
24
+ return false;
25
+ if (!('accountId' in value) || value['accountId'] === undefined)
26
+ return false;
27
+ if (!('profileId' in value) || value['profileId'] === undefined)
28
+ return false;
29
+ if (!('since' in value) || value['since'] === undefined)
30
+ return false;
31
+ if (!('sandboxes' in value) || value['sandboxes'] === 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
+ export function AccountAiUsageResponseFromJSON(json) {
42
+ return AccountAiUsageResponseFromJSONTyped(json, false);
43
+ }
44
+ export function AccountAiUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'ok': json['ok'],
50
+ 'type': json['type'],
51
+ 'accountId': json['accountId'],
52
+ 'profileId': json['profileId'],
53
+ 'since': (new Date(json['since'])),
54
+ 'sandboxes': (json['sandboxes'].map(SandboxAiUsageFromJSON)),
55
+ 'usage': (json['usage'].map(AiUsageRowFromJSON)),
56
+ 'totals': AiUsageTotalsFromJSON(json['totals']),
57
+ 'dollars': json['dollars'],
58
+ };
59
+ }
60
+ export function AccountAiUsageResponseToJSON(json) {
61
+ return AccountAiUsageResponseToJSONTyped(json, false);
62
+ }
63
+ export function AccountAiUsageResponseToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'ok': value['ok'],
69
+ 'type': value['type'],
70
+ 'accountId': value['accountId'],
71
+ 'profileId': value['profileId'],
72
+ 'since': value['since'].toISOString().substring(0, 10),
73
+ 'sandboxes': (value['sandboxes'].map(SandboxAiUsageToJSON)),
74
+ 'usage': (value['usage'].map(AiUsageRowToJSON)),
75
+ 'totals': AiUsageTotalsToJSON(value['totals']),
76
+ 'dollars': value['dollars'],
77
+ };
78
+ }
@@ -0,0 +1,81 @@
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 { AiProxySettingsAllOfPricing } from './AiProxySettingsAllOfPricing';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AiProxySettings
17
+ */
18
+ export interface AiProxySettings {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof AiProxySettings
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ * Stable success envelope discriminator added by v1.
27
+ * @type {string}
28
+ * @memberof AiProxySettings
29
+ */
30
+ type: string;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof AiProxySettings
35
+ */
36
+ success: boolean;
37
+ /**
38
+ * The account the switch belongs to, a person or an organization.
39
+ * @type {string}
40
+ * @memberof AiProxySettings
41
+ */
42
+ accountId: string;
43
+ /**
44
+ * True when `accountId` is an organization.
45
+ * @type {boolean}
46
+ * @memberof AiProxySettings
47
+ */
48
+ org: boolean;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof AiProxySettings
53
+ */
54
+ enabled: boolean;
55
+ /**
56
+ *
57
+ * @type {Date}
58
+ * @memberof AiProxySettings
59
+ */
60
+ enabledAt: Date | null;
61
+ /**
62
+ *
63
+ * @type {AiProxySettingsAllOfPricing}
64
+ * @memberof AiProxySettings
65
+ */
66
+ pricing: AiProxySettingsAllOfPricing;
67
+ /**
68
+ * The base URL sandboxes call instead of the providers.
69
+ * @type {string}
70
+ * @memberof AiProxySettings
71
+ */
72
+ proxyUrl: string;
73
+ }
74
+ /**
75
+ * Check if a given object implements the AiProxySettings interface.
76
+ */
77
+ export declare function instanceOfAiProxySettings(value: object): value is AiProxySettings;
78
+ export declare function AiProxySettingsFromJSON(json: any): AiProxySettings;
79
+ export declare function AiProxySettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiProxySettings;
80
+ export declare function AiProxySettingsToJSON(json: any): AiProxySettings;
81
+ export declare function AiProxySettingsToJSONTyped(value?: AiProxySettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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 { AiProxySettingsAllOfPricingFromJSON, AiProxySettingsAllOfPricingToJSON, } from './AiProxySettingsAllOfPricing';
15
+ /**
16
+ * Check if a given object implements the AiProxySettings interface.
17
+ */
18
+ export function instanceOfAiProxySettings(value) {
19
+ if (!('ok' in value) || value['ok'] === undefined)
20
+ return false;
21
+ if (!('type' in value) || value['type'] === undefined)
22
+ return false;
23
+ if (!('success' in value) || value['success'] === undefined)
24
+ return false;
25
+ if (!('accountId' in value) || value['accountId'] === undefined)
26
+ return false;
27
+ if (!('org' in value) || value['org'] === undefined)
28
+ return false;
29
+ if (!('enabled' in value) || value['enabled'] === undefined)
30
+ return false;
31
+ if (!('enabledAt' in value) || value['enabledAt'] === undefined)
32
+ return false;
33
+ if (!('pricing' in value) || value['pricing'] === undefined)
34
+ return false;
35
+ if (!('proxyUrl' in value) || value['proxyUrl'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function AiProxySettingsFromJSON(json) {
40
+ return AiProxySettingsFromJSONTyped(json, false);
41
+ }
42
+ export function AiProxySettingsFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'ok': json['ok'],
48
+ 'type': json['type'],
49
+ 'success': json['success'],
50
+ 'accountId': json['accountId'],
51
+ 'org': json['org'],
52
+ 'enabled': json['enabled'],
53
+ 'enabledAt': (json['enabledAt'] == null ? null : new Date(json['enabledAt'])),
54
+ 'pricing': AiProxySettingsAllOfPricingFromJSON(json['pricing']),
55
+ 'proxyUrl': json['proxyUrl'],
56
+ };
57
+ }
58
+ export function AiProxySettingsToJSON(json) {
59
+ return AiProxySettingsToJSONTyped(json, false);
60
+ }
61
+ export function AiProxySettingsToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'ok': value['ok'],
67
+ 'type': value['type'],
68
+ 'success': value['success'],
69
+ 'accountId': value['accountId'],
70
+ 'org': value['org'],
71
+ 'enabled': value['enabled'],
72
+ 'enabledAt': value['enabledAt'] == null ? value['enabledAt'] : value['enabledAt'].toISOString(),
73
+ 'pricing': AiProxySettingsAllOfPricingToJSON(value['pricing']),
74
+ 'proxyUrl': value['proxyUrl'],
75
+ };
76
+ }
@@ -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 AiProxySettingsAllOfPricing
16
+ */
17
+ export interface AiProxySettingsAllOfPricing {
18
+ /**
19
+ * Charged to the account for each UTC day the proxy is on.
20
+ * @type {number}
21
+ * @memberof AiProxySettingsAllOfPricing
22
+ */
23
+ dailyDollars: number;
24
+ /**
25
+ * Charged per 1,000 proxied requests.
26
+ * @type {number}
27
+ * @memberof AiProxySettingsAllOfPricing
28
+ */
29
+ dollarsPer1000Requests: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AiProxySettingsAllOfPricing interface.
33
+ */
34
+ export declare function instanceOfAiProxySettingsAllOfPricing(value: object): value is AiProxySettingsAllOfPricing;
35
+ export declare function AiProxySettingsAllOfPricingFromJSON(json: any): AiProxySettingsAllOfPricing;
36
+ export declare function AiProxySettingsAllOfPricingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiProxySettingsAllOfPricing;
37
+ export declare function AiProxySettingsAllOfPricingToJSON(json: any): AiProxySettingsAllOfPricing;
38
+ export declare function AiProxySettingsAllOfPricingToJSONTyped(value?: AiProxySettingsAllOfPricing | 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 AiProxySettingsAllOfPricing interface.
16
+ */
17
+ export function instanceOfAiProxySettingsAllOfPricing(value) {
18
+ if (!('dailyDollars' in value) || value['dailyDollars'] === undefined)
19
+ return false;
20
+ if (!('dollarsPer1000Requests' in value) || value['dollarsPer1000Requests'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function AiProxySettingsAllOfPricingFromJSON(json) {
25
+ return AiProxySettingsAllOfPricingFromJSONTyped(json, false);
26
+ }
27
+ export function AiProxySettingsAllOfPricingFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'dailyDollars': json['dailyDollars'],
33
+ 'dollarsPer1000Requests': json['dollarsPer1000Requests'],
34
+ };
35
+ }
36
+ export function AiProxySettingsAllOfPricingToJSON(json) {
37
+ return AiProxySettingsAllOfPricingToJSONTyped(json, false);
38
+ }
39
+ export function AiProxySettingsAllOfPricingToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'dailyDollars': value['dailyDollars'],
45
+ 'dollarsPer1000Requests': value['dollarsPer1000Requests'],
46
+ };
47
+ }
@@ -0,0 +1,80 @@
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 AiUsageRow
16
+ */
17
+ export interface AiUsageRow {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AiUsageRow
22
+ */
23
+ requests: number;
24
+ /**
25
+ * Requests the provider answered with an HTTP error, or did not answer.
26
+ * @type {number}
27
+ * @memberof AiUsageRow
28
+ */
29
+ errors: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AiUsageRow
34
+ */
35
+ inputTokens: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AiUsageRow
40
+ */
41
+ outputTokens: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AiUsageRow
46
+ */
47
+ cacheReadTokens: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof AiUsageRow
52
+ */
53
+ cacheWriteTokens: number;
54
+ /**
55
+ * UTC day.
56
+ * @type {Date}
57
+ * @memberof AiUsageRow
58
+ */
59
+ day: Date;
60
+ /**
61
+ * The credential used: a `CredentialId`, or `custom:<NAME>` for a custom API.
62
+ * @type {string}
63
+ * @memberof AiUsageRow
64
+ */
65
+ credential: string;
66
+ /**
67
+ * The model the provider reported, or empty.
68
+ * @type {string}
69
+ * @memberof AiUsageRow
70
+ */
71
+ model: string;
72
+ }
73
+ /**
74
+ * Check if a given object implements the AiUsageRow interface.
75
+ */
76
+ export declare function instanceOfAiUsageRow(value: object): value is AiUsageRow;
77
+ export declare function AiUsageRowFromJSON(json: any): AiUsageRow;
78
+ export declare function AiUsageRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiUsageRow;
79
+ export declare function AiUsageRowToJSON(json: any): AiUsageRow;
80
+ export declare function AiUsageRowToJSONTyped(value?: AiUsageRow | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
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 AiUsageRow interface.
16
+ */
17
+ export function instanceOfAiUsageRow(value) {
18
+ if (!('requests' in value) || value['requests'] === undefined)
19
+ return false;
20
+ if (!('errors' in value) || value['errors'] === undefined)
21
+ return false;
22
+ if (!('inputTokens' in value) || value['inputTokens'] === undefined)
23
+ return false;
24
+ if (!('outputTokens' in value) || value['outputTokens'] === undefined)
25
+ return false;
26
+ if (!('cacheReadTokens' in value) || value['cacheReadTokens'] === undefined)
27
+ return false;
28
+ if (!('cacheWriteTokens' in value) || value['cacheWriteTokens'] === undefined)
29
+ return false;
30
+ if (!('day' in value) || value['day'] === undefined)
31
+ return false;
32
+ if (!('credential' in value) || value['credential'] === undefined)
33
+ return false;
34
+ if (!('model' in value) || value['model'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ export function AiUsageRowFromJSON(json) {
39
+ return AiUsageRowFromJSONTyped(json, false);
40
+ }
41
+ export function AiUsageRowFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'requests': json['requests'],
47
+ 'errors': json['errors'],
48
+ 'inputTokens': json['inputTokens'],
49
+ 'outputTokens': json['outputTokens'],
50
+ 'cacheReadTokens': json['cacheReadTokens'],
51
+ 'cacheWriteTokens': json['cacheWriteTokens'],
52
+ 'day': (new Date(json['day'])),
53
+ 'credential': json['credential'],
54
+ 'model': json['model'],
55
+ };
56
+ }
57
+ export function AiUsageRowToJSON(json) {
58
+ return AiUsageRowToJSONTyped(json, false);
59
+ }
60
+ export function AiUsageRowToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'requests': value['requests'],
66
+ 'errors': value['errors'],
67
+ 'inputTokens': value['inputTokens'],
68
+ 'outputTokens': value['outputTokens'],
69
+ 'cacheReadTokens': value['cacheReadTokens'],
70
+ 'cacheWriteTokens': value['cacheWriteTokens'],
71
+ 'day': value['day'].toISOString().substring(0, 10),
72
+ 'credential': value['credential'],
73
+ 'model': value['model'],
74
+ };
75
+ }
@@ -0,0 +1,62 @@
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
+ * Token counts are the numbers the provider reports in its replies.
14
+ * @export
15
+ * @interface AiUsageTotals
16
+ */
17
+ export interface AiUsageTotals {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AiUsageTotals
22
+ */
23
+ requests: number;
24
+ /**
25
+ * Requests the provider answered with an HTTP error, or did not answer.
26
+ * @type {number}
27
+ * @memberof AiUsageTotals
28
+ */
29
+ errors: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AiUsageTotals
34
+ */
35
+ inputTokens: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AiUsageTotals
40
+ */
41
+ outputTokens: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AiUsageTotals
46
+ */
47
+ cacheReadTokens: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof AiUsageTotals
52
+ */
53
+ cacheWriteTokens: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the AiUsageTotals interface.
57
+ */
58
+ export declare function instanceOfAiUsageTotals(value: object): value is AiUsageTotals;
59
+ export declare function AiUsageTotalsFromJSON(json: any): AiUsageTotals;
60
+ export declare function AiUsageTotalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiUsageTotals;
61
+ export declare function AiUsageTotalsToJSON(json: any): AiUsageTotals;
62
+ export declare function AiUsageTotalsToJSONTyped(value?: AiUsageTotals | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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 AiUsageTotals interface.
16
+ */
17
+ export function instanceOfAiUsageTotals(value) {
18
+ if (!('requests' in value) || value['requests'] === undefined)
19
+ return false;
20
+ if (!('errors' in value) || value['errors'] === undefined)
21
+ return false;
22
+ if (!('inputTokens' in value) || value['inputTokens'] === undefined)
23
+ return false;
24
+ if (!('outputTokens' in value) || value['outputTokens'] === undefined)
25
+ return false;
26
+ if (!('cacheReadTokens' in value) || value['cacheReadTokens'] === undefined)
27
+ return false;
28
+ if (!('cacheWriteTokens' in value) || value['cacheWriteTokens'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function AiUsageTotalsFromJSON(json) {
33
+ return AiUsageTotalsFromJSONTyped(json, false);
34
+ }
35
+ export function AiUsageTotalsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'requests': json['requests'],
41
+ 'errors': json['errors'],
42
+ 'inputTokens': json['inputTokens'],
43
+ 'outputTokens': json['outputTokens'],
44
+ 'cacheReadTokens': json['cacheReadTokens'],
45
+ 'cacheWriteTokens': json['cacheWriteTokens'],
46
+ };
47
+ }
48
+ export function AiUsageTotalsToJSON(json) {
49
+ return AiUsageTotalsToJSONTyped(json, false);
50
+ }
51
+ export function AiUsageTotalsToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'requests': value['requests'],
57
+ 'errors': value['errors'],
58
+ 'inputTokens': value['inputTokens'],
59
+ 'outputTokens': value['outputTokens'],
60
+ 'cacheReadTokens': value['cacheReadTokens'],
61
+ 'cacheWriteTokens': value['cacheWriteTokens'],
62
+ };
63
+ }