@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.
- package/.openapi-generator/FILES +44 -0
- package/dist/apis/BoatApi.d.ts +305 -7
- package/dist/apis/BoatApi.js +764 -15
- package/dist/esm/apis/BoatApi.d.ts +305 -7
- package/dist/esm/apis/BoatApi.js +764 -15
- package/dist/esm/models/AccountAiUsageResponse.d.ts +83 -0
- package/dist/esm/models/AccountAiUsageResponse.js +78 -0
- package/dist/esm/models/AiProxySettings.d.ts +81 -0
- package/dist/esm/models/AiProxySettings.js +76 -0
- package/dist/esm/models/AiProxySettingsAllOfPricing.d.ts +38 -0
- package/dist/esm/models/AiProxySettingsAllOfPricing.js +47 -0
- package/dist/esm/models/AiUsageRow.d.ts +80 -0
- package/dist/esm/models/AiUsageRow.js +75 -0
- package/dist/esm/models/AiUsageTotals.d.ts +62 -0
- package/dist/esm/models/AiUsageTotals.js +63 -0
- package/dist/esm/models/CreateCredentialProfileRequest.d.ts +44 -0
- package/dist/esm/models/CreateCredentialProfileRequest.js +47 -0
- package/dist/esm/models/CredentialId.d.ts +36 -0
- package/dist/esm/models/CredentialId.js +54 -0
- package/dist/esm/models/CredentialProfile.d.ts +82 -0
- package/dist/esm/models/CredentialProfile.js +77 -0
- package/dist/esm/models/CredentialProfileDeletedResponse.d.ts +44 -0
- package/dist/esm/models/CredentialProfileDeletedResponse.js +51 -0
- package/dist/esm/models/CredentialProfileListResponse.d.ts +45 -0
- package/dist/esm/models/CredentialProfileListResponse.js +52 -0
- package/dist/esm/models/CredentialProfileOwner.d.ts +58 -0
- package/dist/esm/models/CredentialProfileOwner.js +62 -0
- package/dist/esm/models/CredentialProfileResponse.d.ts +51 -0
- package/dist/esm/models/CredentialProfileResponse.js +56 -0
- package/dist/esm/models/DeletionOperation.d.ts +1 -1
- package/dist/esm/models/FileUrlRequest.d.ts +38 -0
- package/dist/esm/models/FileUrlRequest.js +45 -0
- package/dist/esm/models/FileUrlResponse.d.ts +78 -0
- package/dist/esm/models/FileUrlResponse.js +77 -0
- package/dist/esm/models/ProcessListResponse.d.ts +1 -1
- package/dist/esm/models/SandboxAiAccessResponse.d.ts +56 -0
- package/dist/esm/models/SandboxAiAccessResponse.js +59 -0
- package/dist/esm/models/SandboxAiUsage.d.ts +64 -0
- package/dist/esm/models/SandboxAiUsage.js +65 -0
- package/dist/esm/models/SandboxAiUsageResponse.d.ts +88 -0
- package/dist/esm/models/SandboxAiUsageResponse.js +81 -0
- package/dist/esm/models/SandboxEnvironment.d.ts +13 -1
- package/dist/esm/models/SandboxEnvironment.js +4 -0
- package/dist/esm/models/SetCredentialKeyRequest.d.ts +32 -0
- package/dist/esm/models/SetCredentialKeyRequest.js +43 -0
- package/dist/esm/models/SetCustomApiRequest.d.ts +38 -0
- package/dist/esm/models/SetCustomApiRequest.js +47 -0
- package/dist/esm/models/SetSandboxAiAccessRequest.d.ts +32 -0
- package/dist/esm/models/SetSandboxAiAccessRequest.js +43 -0
- package/dist/esm/models/SnapshotSummary.d.ts +14 -0
- package/dist/esm/models/SnapshotSummary.js +9 -0
- package/dist/esm/models/UpdateAiProxyRequest.d.ts +32 -0
- package/dist/esm/models/UpdateAiProxyRequest.js +43 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.d.ts +38 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.js +43 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +4 -0
- package/dist/esm/models/index.d.ts +22 -0
- package/dist/esm/models/index.js +22 -0
- package/dist/models/AccountAiUsageResponse.d.ts +83 -0
- package/dist/models/AccountAiUsageResponse.js +85 -0
- package/dist/models/AiProxySettings.d.ts +81 -0
- package/dist/models/AiProxySettings.js +83 -0
- package/dist/models/AiProxySettingsAllOfPricing.d.ts +38 -0
- package/dist/models/AiProxySettingsAllOfPricing.js +54 -0
- package/dist/models/AiUsageRow.d.ts +80 -0
- package/dist/models/AiUsageRow.js +82 -0
- package/dist/models/AiUsageTotals.d.ts +62 -0
- package/dist/models/AiUsageTotals.js +70 -0
- package/dist/models/CreateCredentialProfileRequest.d.ts +44 -0
- package/dist/models/CreateCredentialProfileRequest.js +54 -0
- package/dist/models/CredentialId.d.ts +36 -0
- package/dist/models/CredentialId.js +62 -0
- package/dist/models/CredentialProfile.d.ts +82 -0
- package/dist/models/CredentialProfile.js +84 -0
- package/dist/models/CredentialProfileDeletedResponse.d.ts +44 -0
- package/dist/models/CredentialProfileDeletedResponse.js +58 -0
- package/dist/models/CredentialProfileListResponse.d.ts +45 -0
- package/dist/models/CredentialProfileListResponse.js +59 -0
- package/dist/models/CredentialProfileOwner.d.ts +58 -0
- package/dist/models/CredentialProfileOwner.js +70 -0
- package/dist/models/CredentialProfileResponse.d.ts +51 -0
- package/dist/models/CredentialProfileResponse.js +63 -0
- package/dist/models/DeletionOperation.d.ts +1 -1
- package/dist/models/FileUrlRequest.d.ts +38 -0
- package/dist/models/FileUrlRequest.js +52 -0
- package/dist/models/FileUrlResponse.d.ts +78 -0
- package/dist/models/FileUrlResponse.js +85 -0
- package/dist/models/ProcessListResponse.d.ts +1 -1
- package/dist/models/SandboxAiAccessResponse.d.ts +56 -0
- package/dist/models/SandboxAiAccessResponse.js +66 -0
- package/dist/models/SandboxAiUsage.d.ts +64 -0
- package/dist/models/SandboxAiUsage.js +72 -0
- package/dist/models/SandboxAiUsageResponse.d.ts +88 -0
- package/dist/models/SandboxAiUsageResponse.js +88 -0
- package/dist/models/SandboxEnvironment.d.ts +13 -1
- package/dist/models/SandboxEnvironment.js +4 -0
- package/dist/models/SetCredentialKeyRequest.d.ts +32 -0
- package/dist/models/SetCredentialKeyRequest.js +50 -0
- package/dist/models/SetCustomApiRequest.d.ts +38 -0
- package/dist/models/SetCustomApiRequest.js +54 -0
- package/dist/models/SetSandboxAiAccessRequest.d.ts +32 -0
- package/dist/models/SetSandboxAiAccessRequest.js +50 -0
- package/dist/models/SnapshotSummary.d.ts +14 -0
- package/dist/models/SnapshotSummary.js +10 -1
- package/dist/models/UpdateAiProxyRequest.d.ts +32 -0
- package/dist/models/UpdateAiProxyRequest.js +50 -0
- package/dist/models/UpdateCredentialProfileRequest.d.ts +38 -0
- package/dist/models/UpdateCredentialProfileRequest.js +50 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.js +4 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/docs/AccountAiUsageResponse.md +48 -0
- package/docs/AiProxySettings.md +48 -0
- package/docs/AiProxySettingsAllOfPricing.md +34 -0
- package/docs/AiUsageRow.md +48 -0
- package/docs/AiUsageTotals.md +43 -0
- package/docs/BoatApi.md +1568 -359
- package/docs/CreateCredentialProfileRequest.md +36 -0
- package/docs/CredentialId.md +31 -0
- package/docs/CredentialProfile.md +49 -0
- package/docs/CredentialProfileDeletedResponse.md +36 -0
- package/docs/CredentialProfileListResponse.md +36 -0
- package/docs/CredentialProfileOwner.md +38 -0
- package/docs/CredentialProfileResponse.md +38 -0
- package/docs/FileUrlRequest.md +34 -0
- package/docs/FileUrlResponse.md +42 -0
- package/docs/SandboxAiAccessResponse.md +40 -0
- package/docs/SandboxAiUsage.md +42 -0
- package/docs/SandboxAiUsageResponse.md +50 -0
- package/docs/SandboxEnvironment.md +4 -0
- package/docs/SetCredentialKeyRequest.md +32 -0
- package/docs/SetCustomApiRequest.md +34 -0
- package/docs/SetSandboxAiAccessRequest.md +32 -0
- package/docs/SnapshotSummary.md +2 -0
- package/docs/UpdateAiProxyRequest.md +32 -0
- package/docs/UpdateCredentialProfileRequest.md +34 -0
- package/docs/UpdateSandboxEnvironmentRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +1257 -105
- package/src/models/AccountAiUsageResponse.ts +160 -0
- package/src/models/AiProxySettings.ts +146 -0
- package/src/models/AiProxySettingsAllOfPricing.ts +75 -0
- package/src/models/AiUsageRow.ts +138 -0
- package/src/models/AiUsageTotals.ts +111 -0
- package/src/models/CreateCredentialProfileRequest.ts +82 -0
- package/src/models/CredentialId.ts +64 -0
- package/src/models/CredentialProfile.ts +153 -0
- package/src/models/CredentialProfileDeletedResponse.ts +84 -0
- package/src/models/CredentialProfileListResponse.ts +92 -0
- package/src/models/CredentialProfileOwner.ts +104 -0
- package/src/models/CredentialProfileResponse.ts +101 -0
- package/src/models/DeletionOperation.ts +1 -1
- package/src/models/FileUrlRequest.ts +74 -0
- package/src/models/FileUrlResponse.ts +131 -0
- package/src/models/ProcessListResponse.ts +1 -1
- package/src/models/SandboxAiAccessResponse.ts +102 -0
- package/src/models/SandboxAiUsage.ts +126 -0
- package/src/models/SandboxAiUsageResponse.ts +162 -0
- package/src/models/SandboxEnvironment.ts +17 -1
- package/src/models/SetCredentialKeyRequest.ts +66 -0
- package/src/models/SetCustomApiRequest.ts +75 -0
- package/src/models/SetSandboxAiAccessRequest.ts +66 -0
- package/src/models/SnapshotSummary.ts +17 -0
- package/src/models/UpdateAiProxyRequest.ts +66 -0
- package/src/models/UpdateCredentialProfileRequest.ts +73 -0
- package/src/models/UpdateSandboxEnvironmentRequest.ts +16 -0
- package/src/models/index.ts +22 -0
|
@@ -59,6 +59,18 @@ export interface UpdateSandboxEnvironmentRequest {
|
|
|
59
59
|
* @memberof UpdateSandboxEnvironmentRequest
|
|
60
60
|
*/
|
|
61
61
|
passAgentsCredentials?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Id or name of a credential profile you can use, or null for the sandbox owner's default profile. Unknown profiles return `404 credential_profile_not_found`.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof UpdateSandboxEnvironmentRequest
|
|
66
|
+
*/
|
|
67
|
+
credentialProfileId?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* With `safeForThirdParties` true, pass AI credentials as proxy placeholders. Setting true needs the AI credentials proxy on for the profile owner, else `400 ai_proxy_off`.
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof UpdateSandboxEnvironmentRequest
|
|
72
|
+
*/
|
|
73
|
+
proxyAiCredentials?: boolean;
|
|
62
74
|
/**
|
|
63
75
|
* Full .env-style content for the new version.
|
|
64
76
|
* @type {string}
|
|
@@ -34,6 +34,8 @@ export function UpdateSandboxEnvironmentRequestFromJSONTyped(json, ignoreDiscrim
|
|
|
34
34
|
'passSecrets': json['passSecrets'] == null ? undefined : json['passSecrets'],
|
|
35
35
|
'passSandboxCredentials': json['passSandboxCredentials'] == null ? undefined : json['passSandboxCredentials'],
|
|
36
36
|
'passAgentsCredentials': json['passAgentsCredentials'] == null ? undefined : json['passAgentsCredentials'],
|
|
37
|
+
'credentialProfileId': json['credentialProfileId'] == null ? undefined : json['credentialProfileId'],
|
|
38
|
+
'proxyAiCredentials': json['proxyAiCredentials'] == null ? undefined : json['proxyAiCredentials'],
|
|
37
39
|
'envContents': json['envContents'] == null ? undefined : json['envContents'],
|
|
38
40
|
'secretFiles': json['secretFiles'] == null ? undefined : (json['secretFiles'].map(SecretFileFromJSON)),
|
|
39
41
|
'repositories': json['repositories'] == null ? undefined : (json['repositories'].map(UpdateSandboxEnvironmentRequestRepositoriesInnerFromJSON)),
|
|
@@ -54,6 +56,8 @@ export function UpdateSandboxEnvironmentRequestToJSONTyped(value, ignoreDiscrimi
|
|
|
54
56
|
'passSecrets': value['passSecrets'],
|
|
55
57
|
'passSandboxCredentials': value['passSandboxCredentials'],
|
|
56
58
|
'passAgentsCredentials': value['passAgentsCredentials'],
|
|
59
|
+
'credentialProfileId': value['credentialProfileId'],
|
|
60
|
+
'proxyAiCredentials': value['proxyAiCredentials'],
|
|
57
61
|
'envContents': value['envContents'],
|
|
58
62
|
'secretFiles': value['secretFiles'] == null ? undefined : (value['secretFiles'].map(SecretFileToJSON)),
|
|
59
63
|
'repositories': value['repositories'] == null ? undefined : (value['repositories'].map(UpdateSandboxEnvironmentRequestRepositoriesInnerToJSON)),
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
export * from './AccountAiUsageResponse';
|
|
1
2
|
export * from './ActiveOrgResponse';
|
|
2
3
|
export * from './ActiveOrgResponseAllOfActive';
|
|
3
4
|
export * from './ActiveOrgUpdateRequest';
|
|
4
5
|
export * from './AddEnvironmentRepoRequest';
|
|
6
|
+
export * from './AiProxySettings';
|
|
7
|
+
export * from './AiProxySettingsAllOfPricing';
|
|
8
|
+
export * from './AiUsageRow';
|
|
9
|
+
export * from './AiUsageTotals';
|
|
5
10
|
export * from './ApiKey';
|
|
6
11
|
export * from './ApiKeyCatalog';
|
|
7
12
|
export * from './ApiKeyCatalogScopeResources';
|
|
@@ -30,11 +35,18 @@ export * from './CommandStreamFrame';
|
|
|
30
35
|
export * from './CompletionEvent';
|
|
31
36
|
export * from './Conversation';
|
|
32
37
|
export * from './ConversationsResponse';
|
|
38
|
+
export * from './CreateCredentialProfileRequest';
|
|
33
39
|
export * from './CreateSandboxEnvironmentRequest';
|
|
34
40
|
export * from './CreateSandboxRequest';
|
|
35
41
|
export * from './CreateSandboxResponse';
|
|
36
42
|
export * from './CreateScopedApiKey503Response';
|
|
37
43
|
export * from './CreateScopedApiKeyRequest';
|
|
44
|
+
export * from './CredentialId';
|
|
45
|
+
export * from './CredentialProfile';
|
|
46
|
+
export * from './CredentialProfileDeletedResponse';
|
|
47
|
+
export * from './CredentialProfileListResponse';
|
|
48
|
+
export * from './CredentialProfileOwner';
|
|
49
|
+
export * from './CredentialProfileResponse';
|
|
38
50
|
export * from './DataRetentionPolicyResponse';
|
|
39
51
|
export * from './DataRetentionUpdateRequest';
|
|
40
52
|
export * from './DeletionOperation';
|
|
@@ -48,6 +60,8 @@ export * from './ErrorEnvelopeError';
|
|
|
48
60
|
export * from './ErrorEvent';
|
|
49
61
|
export * from './EventsResponse';
|
|
50
62
|
export * from './FileReadResponse';
|
|
63
|
+
export * from './FileUrlRequest';
|
|
64
|
+
export * from './FileUrlResponse';
|
|
51
65
|
export * from './FileWriteRequest';
|
|
52
66
|
export * from './FileWriteResponse';
|
|
53
67
|
export * from './ForkRequest';
|
|
@@ -97,6 +111,9 @@ export * from './ResumeRequest';
|
|
|
97
111
|
export * from './RotateApiKey409Response';
|
|
98
112
|
export * from './Sandbox';
|
|
99
113
|
export * from './SandboxActionResponse';
|
|
114
|
+
export * from './SandboxAiAccessResponse';
|
|
115
|
+
export * from './SandboxAiUsage';
|
|
116
|
+
export * from './SandboxAiUsageResponse';
|
|
100
117
|
export * from './SandboxEnvironment';
|
|
101
118
|
export * from './SandboxEnvironmentListResponse';
|
|
102
119
|
export * from './SandboxEnvironmentResponse';
|
|
@@ -111,8 +128,11 @@ export * from './SecretFile';
|
|
|
111
128
|
export * from './SecretsResponse';
|
|
112
129
|
export * from './SecretsUpdateRequest';
|
|
113
130
|
export * from './SelectedRepository';
|
|
131
|
+
export * from './SetCredentialKeyRequest';
|
|
132
|
+
export * from './SetCustomApiRequest';
|
|
114
133
|
export * from './SetEnvironmentSecretFileRequest';
|
|
115
134
|
export * from './SetEnvironmentVarRequest';
|
|
135
|
+
export * from './SetSandboxAiAccessRequest';
|
|
116
136
|
export * from './Share200Response';
|
|
117
137
|
export * from './SnapshotChunk';
|
|
118
138
|
export * from './SnapshotDownloadResponse';
|
|
@@ -140,6 +160,8 @@ export * from './TelemetrySetRequest';
|
|
|
140
160
|
export * from './TelemetrySetResponse';
|
|
141
161
|
export * from './TelemetryTestResult';
|
|
142
162
|
export * from './UnknownEvent';
|
|
163
|
+
export * from './UpdateAiProxyRequest';
|
|
164
|
+
export * from './UpdateCredentialProfileRequest';
|
|
143
165
|
export * from './UpdateSandboxEnvironmentRequest';
|
|
144
166
|
export * from './UpdateSandboxEnvironmentRequestRepositoriesInner';
|
|
145
167
|
export * from './UpdateSandboxRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AccountAiUsageResponse';
|
|
3
4
|
export * from './ActiveOrgResponse';
|
|
4
5
|
export * from './ActiveOrgResponseAllOfActive';
|
|
5
6
|
export * from './ActiveOrgUpdateRequest';
|
|
6
7
|
export * from './AddEnvironmentRepoRequest';
|
|
8
|
+
export * from './AiProxySettings';
|
|
9
|
+
export * from './AiProxySettingsAllOfPricing';
|
|
10
|
+
export * from './AiUsageRow';
|
|
11
|
+
export * from './AiUsageTotals';
|
|
7
12
|
export * from './ApiKey';
|
|
8
13
|
export * from './ApiKeyCatalog';
|
|
9
14
|
export * from './ApiKeyCatalogScopeResources';
|
|
@@ -32,11 +37,18 @@ export * from './CommandStreamFrame';
|
|
|
32
37
|
export * from './CompletionEvent';
|
|
33
38
|
export * from './Conversation';
|
|
34
39
|
export * from './ConversationsResponse';
|
|
40
|
+
export * from './CreateCredentialProfileRequest';
|
|
35
41
|
export * from './CreateSandboxEnvironmentRequest';
|
|
36
42
|
export * from './CreateSandboxRequest';
|
|
37
43
|
export * from './CreateSandboxResponse';
|
|
38
44
|
export * from './CreateScopedApiKey503Response';
|
|
39
45
|
export * from './CreateScopedApiKeyRequest';
|
|
46
|
+
export * from './CredentialId';
|
|
47
|
+
export * from './CredentialProfile';
|
|
48
|
+
export * from './CredentialProfileDeletedResponse';
|
|
49
|
+
export * from './CredentialProfileListResponse';
|
|
50
|
+
export * from './CredentialProfileOwner';
|
|
51
|
+
export * from './CredentialProfileResponse';
|
|
40
52
|
export * from './DataRetentionPolicyResponse';
|
|
41
53
|
export * from './DataRetentionUpdateRequest';
|
|
42
54
|
export * from './DeletionOperation';
|
|
@@ -50,6 +62,8 @@ export * from './ErrorEnvelopeError';
|
|
|
50
62
|
export * from './ErrorEvent';
|
|
51
63
|
export * from './EventsResponse';
|
|
52
64
|
export * from './FileReadResponse';
|
|
65
|
+
export * from './FileUrlRequest';
|
|
66
|
+
export * from './FileUrlResponse';
|
|
53
67
|
export * from './FileWriteRequest';
|
|
54
68
|
export * from './FileWriteResponse';
|
|
55
69
|
export * from './ForkRequest';
|
|
@@ -99,6 +113,9 @@ export * from './ResumeRequest';
|
|
|
99
113
|
export * from './RotateApiKey409Response';
|
|
100
114
|
export * from './Sandbox';
|
|
101
115
|
export * from './SandboxActionResponse';
|
|
116
|
+
export * from './SandboxAiAccessResponse';
|
|
117
|
+
export * from './SandboxAiUsage';
|
|
118
|
+
export * from './SandboxAiUsageResponse';
|
|
102
119
|
export * from './SandboxEnvironment';
|
|
103
120
|
export * from './SandboxEnvironmentListResponse';
|
|
104
121
|
export * from './SandboxEnvironmentResponse';
|
|
@@ -113,8 +130,11 @@ export * from './SecretFile';
|
|
|
113
130
|
export * from './SecretsResponse';
|
|
114
131
|
export * from './SecretsUpdateRequest';
|
|
115
132
|
export * from './SelectedRepository';
|
|
133
|
+
export * from './SetCredentialKeyRequest';
|
|
134
|
+
export * from './SetCustomApiRequest';
|
|
116
135
|
export * from './SetEnvironmentSecretFileRequest';
|
|
117
136
|
export * from './SetEnvironmentVarRequest';
|
|
137
|
+
export * from './SetSandboxAiAccessRequest';
|
|
118
138
|
export * from './Share200Response';
|
|
119
139
|
export * from './SnapshotChunk';
|
|
120
140
|
export * from './SnapshotDownloadResponse';
|
|
@@ -142,6 +162,8 @@ export * from './TelemetrySetRequest';
|
|
|
142
162
|
export * from './TelemetrySetResponse';
|
|
143
163
|
export * from './TelemetryTestResult';
|
|
144
164
|
export * from './UnknownEvent';
|
|
165
|
+
export * from './UpdateAiProxyRequest';
|
|
166
|
+
export * from './UpdateCredentialProfileRequest';
|
|
145
167
|
export * from './UpdateSandboxEnvironmentRequest';
|
|
146
168
|
export * from './UpdateSandboxEnvironmentRequestRepositoriesInner';
|
|
147
169
|
export * from './UpdateSandboxRequest';
|
|
@@ -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,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Boat Public API v1
|
|
6
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAccountAiUsageResponse = instanceOfAccountAiUsageResponse;
|
|
17
|
+
exports.AccountAiUsageResponseFromJSON = AccountAiUsageResponseFromJSON;
|
|
18
|
+
exports.AccountAiUsageResponseFromJSONTyped = AccountAiUsageResponseFromJSONTyped;
|
|
19
|
+
exports.AccountAiUsageResponseToJSON = AccountAiUsageResponseToJSON;
|
|
20
|
+
exports.AccountAiUsageResponseToJSONTyped = AccountAiUsageResponseToJSONTyped;
|
|
21
|
+
const SandboxAiUsage_1 = require("./SandboxAiUsage");
|
|
22
|
+
const AiUsageRow_1 = require("./AiUsageRow");
|
|
23
|
+
const AiUsageTotals_1 = require("./AiUsageTotals");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AccountAiUsageResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfAccountAiUsageResponse(value) {
|
|
28
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('profileId' in value) || value['profileId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('since' in value) || value['since'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('sandboxes' in value) || value['sandboxes'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('usage' in value) || value['usage'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('totals' in value) || value['totals'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('dollars' in value) || value['dollars'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function AccountAiUsageResponseFromJSON(json) {
|
|
49
|
+
return AccountAiUsageResponseFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function AccountAiUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'ok': json['ok'],
|
|
57
|
+
'type': json['type'],
|
|
58
|
+
'accountId': json['accountId'],
|
|
59
|
+
'profileId': json['profileId'],
|
|
60
|
+
'since': (new Date(json['since'])),
|
|
61
|
+
'sandboxes': (json['sandboxes'].map(SandboxAiUsage_1.SandboxAiUsageFromJSON)),
|
|
62
|
+
'usage': (json['usage'].map(AiUsageRow_1.AiUsageRowFromJSON)),
|
|
63
|
+
'totals': (0, AiUsageTotals_1.AiUsageTotalsFromJSON)(json['totals']),
|
|
64
|
+
'dollars': json['dollars'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function AccountAiUsageResponseToJSON(json) {
|
|
68
|
+
return AccountAiUsageResponseToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function AccountAiUsageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'ok': value['ok'],
|
|
76
|
+
'type': value['type'],
|
|
77
|
+
'accountId': value['accountId'],
|
|
78
|
+
'profileId': value['profileId'],
|
|
79
|
+
'since': value['since'].toISOString().substring(0, 10),
|
|
80
|
+
'sandboxes': (value['sandboxes'].map(SandboxAiUsage_1.SandboxAiUsageToJSON)),
|
|
81
|
+
'usage': (value['usage'].map(AiUsageRow_1.AiUsageRowToJSON)),
|
|
82
|
+
'totals': (0, AiUsageTotals_1.AiUsageTotalsToJSON)(value['totals']),
|
|
83
|
+
'dollars': value['dollars'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -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,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Boat Public API v1
|
|
6
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAiProxySettings = instanceOfAiProxySettings;
|
|
17
|
+
exports.AiProxySettingsFromJSON = AiProxySettingsFromJSON;
|
|
18
|
+
exports.AiProxySettingsFromJSONTyped = AiProxySettingsFromJSONTyped;
|
|
19
|
+
exports.AiProxySettingsToJSON = AiProxySettingsToJSON;
|
|
20
|
+
exports.AiProxySettingsToJSONTyped = AiProxySettingsToJSONTyped;
|
|
21
|
+
const AiProxySettingsAllOfPricing_1 = require("./AiProxySettingsAllOfPricing");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AiProxySettings interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAiProxySettings(value) {
|
|
26
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('org' in value) || value['org'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('enabledAt' in value) || value['enabledAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('pricing' in value) || value['pricing'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('proxyUrl' in value) || value['proxyUrl'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function AiProxySettingsFromJSON(json) {
|
|
47
|
+
return AiProxySettingsFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AiProxySettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'ok': json['ok'],
|
|
55
|
+
'type': json['type'],
|
|
56
|
+
'success': json['success'],
|
|
57
|
+
'accountId': json['accountId'],
|
|
58
|
+
'org': json['org'],
|
|
59
|
+
'enabled': json['enabled'],
|
|
60
|
+
'enabledAt': (json['enabledAt'] == null ? null : new Date(json['enabledAt'])),
|
|
61
|
+
'pricing': (0, AiProxySettingsAllOfPricing_1.AiProxySettingsAllOfPricingFromJSON)(json['pricing']),
|
|
62
|
+
'proxyUrl': json['proxyUrl'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function AiProxySettingsToJSON(json) {
|
|
66
|
+
return AiProxySettingsToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function AiProxySettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'ok': value['ok'],
|
|
74
|
+
'type': value['type'],
|
|
75
|
+
'success': value['success'],
|
|
76
|
+
'accountId': value['accountId'],
|
|
77
|
+
'org': value['org'],
|
|
78
|
+
'enabled': value['enabled'],
|
|
79
|
+
'enabledAt': value['enabledAt'] == null ? value['enabledAt'] : value['enabledAt'].toISOString(),
|
|
80
|
+
'pricing': (0, AiProxySettingsAllOfPricing_1.AiProxySettingsAllOfPricingToJSON)(value['pricing']),
|
|
81
|
+
'proxyUrl': value['proxyUrl'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -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,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Boat Public API v1
|
|
6
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAiProxySettingsAllOfPricing = instanceOfAiProxySettingsAllOfPricing;
|
|
17
|
+
exports.AiProxySettingsAllOfPricingFromJSON = AiProxySettingsAllOfPricingFromJSON;
|
|
18
|
+
exports.AiProxySettingsAllOfPricingFromJSONTyped = AiProxySettingsAllOfPricingFromJSONTyped;
|
|
19
|
+
exports.AiProxySettingsAllOfPricingToJSON = AiProxySettingsAllOfPricingToJSON;
|
|
20
|
+
exports.AiProxySettingsAllOfPricingToJSONTyped = AiProxySettingsAllOfPricingToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiProxySettingsAllOfPricing interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiProxySettingsAllOfPricing(value) {
|
|
25
|
+
if (!('dailyDollars' in value) || value['dailyDollars'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('dollarsPer1000Requests' in value) || value['dollarsPer1000Requests'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AiProxySettingsAllOfPricingFromJSON(json) {
|
|
32
|
+
return AiProxySettingsAllOfPricingFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AiProxySettingsAllOfPricingFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'dailyDollars': json['dailyDollars'],
|
|
40
|
+
'dollarsPer1000Requests': json['dollarsPer1000Requests'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AiProxySettingsAllOfPricingToJSON(json) {
|
|
44
|
+
return AiProxySettingsAllOfPricingToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AiProxySettingsAllOfPricingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'dailyDollars': value['dailyDollars'],
|
|
52
|
+
'dollarsPer1000Requests': value['dollarsPer1000Requests'],
|
|
53
|
+
};
|
|
54
|
+
}
|