@gpuai/sdk 0.5.0 → 0.5.2
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 +6 -0
- package/README.md +7 -2
- package/dist/apis/InferenceApi.d.ts +60 -0
- package/dist/apis/InferenceApi.js +126 -1
- package/dist/esm/apis/InferenceApi.d.ts +60 -0
- package/dist/esm/apis/InferenceApi.js +125 -0
- package/dist/esm/models/DataRetention.d.ts +51 -0
- package/dist/esm/models/DataRetention.js +57 -0
- package/dist/esm/models/Model.d.ts +6 -0
- package/dist/esm/models/Model.js +2 -0
- package/dist/esm/models/OfferingAlternative.d.ts +68 -0
- package/dist/esm/models/OfferingAlternative.js +67 -0
- package/dist/esm/models/OperationError.d.ts +20 -1
- package/dist/esm/models/OperationError.js +7 -0
- package/dist/esm/models/Problem.d.ts +1 -0
- package/dist/esm/models/Problem.js +1 -0
- package/dist/esm/models/UpdateDataRetentionRequest.d.ts +32 -0
- package/dist/esm/models/UpdateDataRetentionRequest.js +43 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/DataRetention.d.ts +51 -0
- package/dist/models/DataRetention.js +65 -0
- package/dist/models/Model.d.ts +6 -0
- package/dist/models/Model.js +2 -0
- package/dist/models/OfferingAlternative.d.ts +68 -0
- package/dist/models/OfferingAlternative.js +74 -0
- package/dist/models/OperationError.d.ts +20 -1
- package/dist/models/OperationError.js +7 -0
- package/dist/models/Problem.d.ts +1 -0
- package/dist/models/Problem.js +1 -0
- package/dist/models/UpdateDataRetentionRequest.d.ts +32 -0
- package/dist/models/UpdateDataRetentionRequest.js +50 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +1 -1
- package/docs/DataRetention.md +38 -0
- package/docs/FineTuningApi.md +2 -2
- package/docs/InferenceApi.md +163 -12
- package/docs/Model.md +2 -0
- package/docs/OfferingAlternative.md +47 -0
- package/docs/OperationError.md +6 -0
- package/docs/UpdateDataRetentionRequest.md +34 -0
- package/package.json +1 -1
- package/src/apis/InferenceApi.ts +162 -0
- package/src/models/DataRetention.ts +95 -0
- package/src/models/Model.ts +8 -0
- package/src/models/OfferingAlternative.ts +120 -0
- package/src/models/OperationError.ts +33 -1
- package/src/models/Problem.ts +1 -0
- package/src/models/UpdateDataRetentionRequest.ts +66 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -41,6 +41,7 @@ docs/CreateRegistryCredentialRequest.md
|
|
|
41
41
|
docs/CreateSshKeyRequest.md
|
|
42
42
|
docs/CreateWebhookEndpointRequest.md
|
|
43
43
|
docs/CryptoDeposit.md
|
|
44
|
+
docs/DataRetention.md
|
|
44
45
|
docs/DedicatedIPRequest.md
|
|
45
46
|
docs/Embedding.md
|
|
46
47
|
docs/EmbeddingsRequest.md
|
|
@@ -102,6 +103,7 @@ docs/ModelList.md
|
|
|
102
103
|
docs/ModelParametersInner.md
|
|
103
104
|
docs/ModelPricing.md
|
|
104
105
|
docs/ModelRate.md
|
|
106
|
+
docs/OfferingAlternative.md
|
|
105
107
|
docs/OpenAIErrorEnvelope.md
|
|
106
108
|
docs/OpenAIErrorEnvelopeError.md
|
|
107
109
|
docs/Operation.md
|
|
@@ -128,6 +130,7 @@ docs/TemplateList.md
|
|
|
128
130
|
docs/TemplatePortsInner.md
|
|
129
131
|
docs/TemplatesApi.md
|
|
130
132
|
docs/UpdateBillingDetailsRequest.md
|
|
133
|
+
docs/UpdateDataRetentionRequest.md
|
|
131
134
|
docs/UpdateInstanceRequest.md
|
|
132
135
|
docs/UpdateSpendingLimitRequest.md
|
|
133
136
|
docs/Usage.md
|
|
@@ -205,6 +208,7 @@ src/models/CreateRegistryCredentialRequest.ts
|
|
|
205
208
|
src/models/CreateSshKeyRequest.ts
|
|
206
209
|
src/models/CreateWebhookEndpointRequest.ts
|
|
207
210
|
src/models/CryptoDeposit.ts
|
|
211
|
+
src/models/DataRetention.ts
|
|
208
212
|
src/models/DedicatedIPRequest.ts
|
|
209
213
|
src/models/Embedding.ts
|
|
210
214
|
src/models/EmbeddingsRequest.ts
|
|
@@ -258,6 +262,7 @@ src/models/ModelList.ts
|
|
|
258
262
|
src/models/ModelParametersInner.ts
|
|
259
263
|
src/models/ModelPricing.ts
|
|
260
264
|
src/models/ModelRate.ts
|
|
265
|
+
src/models/OfferingAlternative.ts
|
|
261
266
|
src/models/OpenAIErrorEnvelope.ts
|
|
262
267
|
src/models/OpenAIErrorEnvelopeError.ts
|
|
263
268
|
src/models/Operation.ts
|
|
@@ -279,6 +284,7 @@ src/models/TemplateEnvInner.ts
|
|
|
279
284
|
src/models/TemplateList.ts
|
|
280
285
|
src/models/TemplatePortsInner.ts
|
|
281
286
|
src/models/UpdateBillingDetailsRequest.ts
|
|
287
|
+
src/models/UpdateDataRetentionRequest.ts
|
|
282
288
|
src/models/UpdateInstanceRequest.ts
|
|
283
289
|
src/models/UpdateSpendingLimitRequest.ts
|
|
284
290
|
src/models/Usage.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @gpuai/sdk@0.5.
|
|
1
|
+
# @gpuai/sdk@0.5.2
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.gpu.ai API.
|
|
4
4
|
|
|
@@ -102,11 +102,13 @@ All URIs are relative to *https://api.gpu.ai/v1*
|
|
|
102
102
|
*InferenceApi* | [**createEmbeddings**](docs/InferenceApi.md#createembeddings) | **POST** /embeddings | Create embeddings (OpenAI-compatible)
|
|
103
103
|
*InferenceApi* | [**createImage**](docs/InferenceApi.md#createimage) | **POST** /images/generations | Create image (OpenAI-compatible)
|
|
104
104
|
*InferenceApi* | [**createVideo**](docs/InferenceApi.md#createvideo) | **POST** /videos | Create a video generation job (async)
|
|
105
|
+
*InferenceApi* | [**getDataRetention**](docs/InferenceApi.md#getdataretention) | **GET** /organization/data-retention | Get the org zero data retention setting
|
|
105
106
|
*InferenceApi* | [**getModel**](docs/InferenceApi.md#getmodel) | **GET** /models/{id} | Get a specific model (OpenAI-compatible)
|
|
106
107
|
*InferenceApi* | [**getVideo**](docs/InferenceApi.md#getvideo) | **GET** /videos/{id} | Get a video generation job
|
|
107
108
|
*InferenceApi* | [**getVideoContent**](docs/InferenceApi.md#getvideocontent) | **GET** /videos/{id}/content | Download a completed video artifact
|
|
108
109
|
*InferenceApi* | [**listModels**](docs/InferenceApi.md#listmodels) | **GET** /models | List available models (OpenAI-compatible)
|
|
109
110
|
*InferenceApi* | [**listVideos**](docs/InferenceApi.md#listvideos) | **GET** /videos | List video generation jobs
|
|
111
|
+
*InferenceApi* | [**updateDataRetention**](docs/InferenceApi.md#updatedataretentionoperation) | **PUT** /organization/data-retention | Turn zero data retention on or off for the org
|
|
110
112
|
*InstancesApi* | [**createInstance**](docs/InstancesApi.md#createinstanceoperation) | **POST** /instances | Create an instance (async — returns 202 + Operation-Id header)
|
|
111
113
|
*InstancesApi* | [**deleteInstance**](docs/InstancesApi.md#deleteinstance) | **DELETE** /instances/{id} | Terminate an instance (idempotent)
|
|
112
114
|
*InstancesApi* | [**getInstance**](docs/InstancesApi.md#getinstance) | **GET** /instances/{id} | Get an instance
|
|
@@ -178,6 +180,7 @@ All URIs are relative to *https://api.gpu.ai/v1*
|
|
|
178
180
|
- [CreateSshKeyRequest](docs/CreateSshKeyRequest.md)
|
|
179
181
|
- [CreateWebhookEndpointRequest](docs/CreateWebhookEndpointRequest.md)
|
|
180
182
|
- [CryptoDeposit](docs/CryptoDeposit.md)
|
|
183
|
+
- [DataRetention](docs/DataRetention.md)
|
|
181
184
|
- [DedicatedIPRequest](docs/DedicatedIPRequest.md)
|
|
182
185
|
- [Embedding](docs/Embedding.md)
|
|
183
186
|
- [EmbeddingsRequest](docs/EmbeddingsRequest.md)
|
|
@@ -231,6 +234,7 @@ All URIs are relative to *https://api.gpu.ai/v1*
|
|
|
231
234
|
- [ModelParametersInner](docs/ModelParametersInner.md)
|
|
232
235
|
- [ModelPricing](docs/ModelPricing.md)
|
|
233
236
|
- [ModelRate](docs/ModelRate.md)
|
|
237
|
+
- [OfferingAlternative](docs/OfferingAlternative.md)
|
|
234
238
|
- [OpenAIErrorEnvelope](docs/OpenAIErrorEnvelope.md)
|
|
235
239
|
- [OpenAIErrorEnvelopeError](docs/OpenAIErrorEnvelopeError.md)
|
|
236
240
|
- [Operation](docs/Operation.md)
|
|
@@ -252,6 +256,7 @@ All URIs are relative to *https://api.gpu.ai/v1*
|
|
|
252
256
|
- [TemplateList](docs/TemplateList.md)
|
|
253
257
|
- [TemplatePortsInner](docs/TemplatePortsInner.md)
|
|
254
258
|
- [UpdateBillingDetailsRequest](docs/UpdateBillingDetailsRequest.md)
|
|
259
|
+
- [UpdateDataRetentionRequest](docs/UpdateDataRetentionRequest.md)
|
|
255
260
|
- [UpdateInstanceRequest](docs/UpdateInstanceRequest.md)
|
|
256
261
|
- [UpdateSpendingLimitRequest](docs/UpdateSpendingLimitRequest.md)
|
|
257
262
|
- [Usage](docs/Usage.md)
|
|
@@ -285,7 +290,7 @@ and is automatically generated by the
|
|
|
285
290
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
286
291
|
|
|
287
292
|
- API version: `1.0.0`
|
|
288
|
-
- Package version: `0.5.
|
|
293
|
+
- Package version: `0.5.2`
|
|
289
294
|
- Generator version: `7.24.0`
|
|
290
295
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
291
296
|
|
|
@@ -12,12 +12,14 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type ChatCompletionRequest } from '../models/ChatCompletionRequest';
|
|
14
14
|
import { type ChatCompletionResponse } from '../models/ChatCompletionResponse';
|
|
15
|
+
import { type DataRetention } from '../models/DataRetention';
|
|
15
16
|
import { type EmbeddingsRequest } from '../models/EmbeddingsRequest';
|
|
16
17
|
import { type EmbeddingsResponse } from '../models/EmbeddingsResponse';
|
|
17
18
|
import { type ImagesGenerationsRequest } from '../models/ImagesGenerationsRequest';
|
|
18
19
|
import { type ImagesResponse } from '../models/ImagesResponse';
|
|
19
20
|
import { type Model } from '../models/Model';
|
|
20
21
|
import { type ModelList } from '../models/ModelList';
|
|
22
|
+
import { type UpdateDataRetentionRequest } from '../models/UpdateDataRetentionRequest';
|
|
21
23
|
import { type VideoCreateRequest } from '../models/VideoCreateRequest';
|
|
22
24
|
import { type VideoJob } from '../models/VideoJob';
|
|
23
25
|
import { type VideoList } from '../models/VideoList';
|
|
@@ -26,13 +28,16 @@ export interface CancelVideoRequest {
|
|
|
26
28
|
}
|
|
27
29
|
export interface CreateChatCompletionRequest {
|
|
28
30
|
chatCompletionRequest: ChatCompletionRequest;
|
|
31
|
+
xGPUAIZeroDataRetention?: CreateChatCompletionXGPUAIZeroDataRetentionEnum;
|
|
29
32
|
}
|
|
30
33
|
export interface CreateEmbeddingsRequest {
|
|
31
34
|
embeddingsRequest: EmbeddingsRequest;
|
|
35
|
+
xGPUAIZeroDataRetention?: CreateEmbeddingsXGPUAIZeroDataRetentionEnum;
|
|
32
36
|
}
|
|
33
37
|
export interface CreateImageRequest {
|
|
34
38
|
imagesGenerationsRequest: ImagesGenerationsRequest;
|
|
35
39
|
idempotencyKey?: string;
|
|
40
|
+
xGPUAIZeroDataRetention?: CreateImageXGPUAIZeroDataRetentionEnum;
|
|
36
41
|
}
|
|
37
42
|
export interface CreateVideoRequest {
|
|
38
43
|
videoCreateRequest: VideoCreateRequest;
|
|
@@ -54,6 +59,9 @@ export interface ListVideosRequest {
|
|
|
54
59
|
after?: string;
|
|
55
60
|
limit?: number;
|
|
56
61
|
}
|
|
62
|
+
export interface UpdateDataRetentionOperationRequest {
|
|
63
|
+
updateDataRetentionRequest: UpdateDataRetentionRequest;
|
|
64
|
+
}
|
|
57
65
|
/**
|
|
58
66
|
*
|
|
59
67
|
*/
|
|
@@ -124,6 +132,20 @@ export declare class InferenceApi extends runtime.BaseAPI {
|
|
|
124
132
|
* Create a video generation job (async)
|
|
125
133
|
*/
|
|
126
134
|
createVideo(requestParameters: CreateVideoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoJob>;
|
|
135
|
+
/**
|
|
136
|
+
* Creates request options for getDataRetention without sending the request
|
|
137
|
+
*/
|
|
138
|
+
getDataRetentionRequestOpts(): Promise<runtime.RequestOpts>;
|
|
139
|
+
/**
|
|
140
|
+
* Returns whether zero data retention (ZDR) is on for the organization. When it is on, chat, embeddings and image requests route only to model hosts that keep no prompt or output content, a model without one returns 400 `zero_data_retention_unavailable`, and video generation is refused. Requires the `serverless:read` scope. The organization is taken from the authenticated API key.
|
|
141
|
+
* Get the org zero data retention setting
|
|
142
|
+
*/
|
|
143
|
+
getDataRetentionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataRetention>>;
|
|
144
|
+
/**
|
|
145
|
+
* Returns whether zero data retention (ZDR) is on for the organization. When it is on, chat, embeddings and image requests route only to model hosts that keep no prompt or output content, a model without one returns 400 `zero_data_retention_unavailable`, and video generation is refused. Requires the `serverless:read` scope. The organization is taken from the authenticated API key.
|
|
146
|
+
* Get the org zero data retention setting
|
|
147
|
+
*/
|
|
148
|
+
getDataRetention(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataRetention>;
|
|
127
149
|
/**
|
|
128
150
|
* Creates request options for getModel without sending the request
|
|
129
151
|
*/
|
|
@@ -186,7 +208,45 @@ export declare class InferenceApi extends runtime.BaseAPI {
|
|
|
186
208
|
* List video generation jobs
|
|
187
209
|
*/
|
|
188
210
|
listVideos(requestParameters?: ListVideosRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoList>;
|
|
211
|
+
/**
|
|
212
|
+
* Creates request options for updateDataRetention without sending the request
|
|
213
|
+
*/
|
|
214
|
+
updateDataRetentionRequestOpts(requestParameters: UpdateDataRetentionOperationRequest): Promise<runtime.RequestOpts>;
|
|
215
|
+
/**
|
|
216
|
+
* Sets the organization\'s zero data retention (ZDR) setting. Takes effect from the next inference request. Requires the `serverless:write` scope AND org-admin privileges (a non-admin member gets 403). `zero_data_retention` is required (422 when missing).
|
|
217
|
+
* Turn zero data retention on or off for the org
|
|
218
|
+
*/
|
|
219
|
+
updateDataRetentionRaw(requestParameters: UpdateDataRetentionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataRetention>>;
|
|
220
|
+
/**
|
|
221
|
+
* Sets the organization\'s zero data retention (ZDR) setting. Takes effect from the next inference request. Requires the `serverless:write` scope AND org-admin privileges (a non-admin member gets 403). `zero_data_retention` is required (422 when missing).
|
|
222
|
+
* Turn zero data retention on or off for the org
|
|
223
|
+
*/
|
|
224
|
+
updateDataRetention(requestParameters: UpdateDataRetentionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataRetention>;
|
|
189
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* @export
|
|
228
|
+
*/
|
|
229
|
+
export declare const CreateChatCompletionXGPUAIZeroDataRetentionEnum: {
|
|
230
|
+
readonly True: "true";
|
|
231
|
+
readonly False: "false";
|
|
232
|
+
};
|
|
233
|
+
export type CreateChatCompletionXGPUAIZeroDataRetentionEnum = typeof CreateChatCompletionXGPUAIZeroDataRetentionEnum[keyof typeof CreateChatCompletionXGPUAIZeroDataRetentionEnum];
|
|
234
|
+
/**
|
|
235
|
+
* @export
|
|
236
|
+
*/
|
|
237
|
+
export declare const CreateEmbeddingsXGPUAIZeroDataRetentionEnum: {
|
|
238
|
+
readonly True: "true";
|
|
239
|
+
readonly False: "false";
|
|
240
|
+
};
|
|
241
|
+
export type CreateEmbeddingsXGPUAIZeroDataRetentionEnum = typeof CreateEmbeddingsXGPUAIZeroDataRetentionEnum[keyof typeof CreateEmbeddingsXGPUAIZeroDataRetentionEnum];
|
|
242
|
+
/**
|
|
243
|
+
* @export
|
|
244
|
+
*/
|
|
245
|
+
export declare const CreateImageXGPUAIZeroDataRetentionEnum: {
|
|
246
|
+
readonly True: "true";
|
|
247
|
+
readonly False: "false";
|
|
248
|
+
};
|
|
249
|
+
export type CreateImageXGPUAIZeroDataRetentionEnum = typeof CreateImageXGPUAIZeroDataRetentionEnum[keyof typeof CreateImageXGPUAIZeroDataRetentionEnum];
|
|
190
250
|
/**
|
|
191
251
|
* @export
|
|
192
252
|
*/
|
|
@@ -22,16 +22,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ListModelsModalityEnum = exports.InferenceApi = void 0;
|
|
25
|
+
exports.ListModelsModalityEnum = exports.CreateImageXGPUAIZeroDataRetentionEnum = exports.CreateEmbeddingsXGPUAIZeroDataRetentionEnum = exports.CreateChatCompletionXGPUAIZeroDataRetentionEnum = exports.InferenceApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const ChatCompletionRequest_1 = require("../models/ChatCompletionRequest");
|
|
28
28
|
const ChatCompletionResponse_1 = require("../models/ChatCompletionResponse");
|
|
29
|
+
const DataRetention_1 = require("../models/DataRetention");
|
|
29
30
|
const EmbeddingsRequest_1 = require("../models/EmbeddingsRequest");
|
|
30
31
|
const EmbeddingsResponse_1 = require("../models/EmbeddingsResponse");
|
|
31
32
|
const ImagesGenerationsRequest_1 = require("../models/ImagesGenerationsRequest");
|
|
32
33
|
const ImagesResponse_1 = require("../models/ImagesResponse");
|
|
33
34
|
const Model_1 = require("../models/Model");
|
|
34
35
|
const ModelList_1 = require("../models/ModelList");
|
|
36
|
+
const UpdateDataRetentionRequest_1 = require("../models/UpdateDataRetentionRequest");
|
|
35
37
|
const VideoCreateRequest_1 = require("../models/VideoCreateRequest");
|
|
36
38
|
const VideoJob_1 = require("../models/VideoJob");
|
|
37
39
|
const VideoList_1 = require("../models/VideoList");
|
|
@@ -96,6 +98,9 @@ class InferenceApi extends runtime.BaseAPI {
|
|
|
96
98
|
const queryParameters = {};
|
|
97
99
|
const headerParameters = {};
|
|
98
100
|
headerParameters['Content-Type'] = 'application/json';
|
|
101
|
+
if (requestParameters['xGPUAIZeroDataRetention'] != null) {
|
|
102
|
+
headerParameters['X-GPUAI-Zero-Data-Retention'] = String(requestParameters['xGPUAIZeroDataRetention']);
|
|
103
|
+
}
|
|
99
104
|
if (this.configuration && this.configuration.accessToken) {
|
|
100
105
|
const token = this.configuration.accessToken;
|
|
101
106
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -143,6 +148,9 @@ class InferenceApi extends runtime.BaseAPI {
|
|
|
143
148
|
const queryParameters = {};
|
|
144
149
|
const headerParameters = {};
|
|
145
150
|
headerParameters['Content-Type'] = 'application/json';
|
|
151
|
+
if (requestParameters['xGPUAIZeroDataRetention'] != null) {
|
|
152
|
+
headerParameters['X-GPUAI-Zero-Data-Retention'] = String(requestParameters['xGPUAIZeroDataRetention']);
|
|
153
|
+
}
|
|
146
154
|
if (this.configuration && this.configuration.accessToken) {
|
|
147
155
|
const token = this.configuration.accessToken;
|
|
148
156
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -195,6 +203,9 @@ class InferenceApi extends runtime.BaseAPI {
|
|
|
195
203
|
if (requestParameters['idempotencyKey'] != null) {
|
|
196
204
|
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
197
205
|
}
|
|
206
|
+
if (requestParameters['xGPUAIZeroDataRetention'] != null) {
|
|
207
|
+
headerParameters['X-GPUAI-Zero-Data-Retention'] = String(requestParameters['xGPUAIZeroDataRetention']);
|
|
208
|
+
}
|
|
198
209
|
if (this.configuration && this.configuration.accessToken) {
|
|
199
210
|
const token = this.configuration.accessToken;
|
|
200
211
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -285,6 +296,50 @@ class InferenceApi extends runtime.BaseAPI {
|
|
|
285
296
|
return yield response.value();
|
|
286
297
|
});
|
|
287
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Creates request options for getDataRetention without sending the request
|
|
301
|
+
*/
|
|
302
|
+
getDataRetentionRequestOpts() {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
const queryParameters = {};
|
|
305
|
+
const headerParameters = {};
|
|
306
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
307
|
+
const token = this.configuration.accessToken;
|
|
308
|
+
const tokenString = yield token("bearerAuth", []);
|
|
309
|
+
if (tokenString) {
|
|
310
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
let urlPath = `/organization/data-retention`;
|
|
314
|
+
return {
|
|
315
|
+
path: urlPath,
|
|
316
|
+
method: 'GET',
|
|
317
|
+
headers: headerParameters,
|
|
318
|
+
query: queryParameters,
|
|
319
|
+
};
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Returns whether zero data retention (ZDR) is on for the organization. When it is on, chat, embeddings and image requests route only to model hosts that keep no prompt or output content, a model without one returns 400 `zero_data_retention_unavailable`, and video generation is refused. Requires the `serverless:read` scope. The organization is taken from the authenticated API key.
|
|
324
|
+
* Get the org zero data retention setting
|
|
325
|
+
*/
|
|
326
|
+
getDataRetentionRaw(initOverrides) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
const requestOptions = yield this.getDataRetentionRequestOpts();
|
|
329
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
330
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataRetention_1.DataRetentionFromJSON)(jsonValue));
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Returns whether zero data retention (ZDR) is on for the organization. When it is on, chat, embeddings and image requests route only to model hosts that keep no prompt or output content, a model without one returns 400 `zero_data_retention_unavailable`, and video generation is refused. Requires the `serverless:read` scope. The organization is taken from the authenticated API key.
|
|
335
|
+
* Get the org zero data retention setting
|
|
336
|
+
*/
|
|
337
|
+
getDataRetention(initOverrides) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
const response = yield this.getDataRetentionRaw(initOverrides);
|
|
340
|
+
return yield response.value();
|
|
341
|
+
});
|
|
342
|
+
}
|
|
288
343
|
/**
|
|
289
344
|
* Creates request options for getModel without sending the request
|
|
290
345
|
*/
|
|
@@ -518,8 +573,78 @@ class InferenceApi extends runtime.BaseAPI {
|
|
|
518
573
|
return yield response.value();
|
|
519
574
|
});
|
|
520
575
|
}
|
|
576
|
+
/**
|
|
577
|
+
* Creates request options for updateDataRetention without sending the request
|
|
578
|
+
*/
|
|
579
|
+
updateDataRetentionRequestOpts(requestParameters) {
|
|
580
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
581
|
+
if (requestParameters['updateDataRetentionRequest'] == null) {
|
|
582
|
+
throw new runtime.RequiredError('updateDataRetentionRequest', 'Required parameter "updateDataRetentionRequest" was null or undefined when calling updateDataRetention().');
|
|
583
|
+
}
|
|
584
|
+
const queryParameters = {};
|
|
585
|
+
const headerParameters = {};
|
|
586
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
587
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
588
|
+
const token = this.configuration.accessToken;
|
|
589
|
+
const tokenString = yield token("bearerAuth", []);
|
|
590
|
+
if (tokenString) {
|
|
591
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
let urlPath = `/organization/data-retention`;
|
|
595
|
+
return {
|
|
596
|
+
path: urlPath,
|
|
597
|
+
method: 'PUT',
|
|
598
|
+
headers: headerParameters,
|
|
599
|
+
query: queryParameters,
|
|
600
|
+
body: (0, UpdateDataRetentionRequest_1.UpdateDataRetentionRequestToJSON)(requestParameters['updateDataRetentionRequest']),
|
|
601
|
+
};
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* Sets the organization\'s zero data retention (ZDR) setting. Takes effect from the next inference request. Requires the `serverless:write` scope AND org-admin privileges (a non-admin member gets 403). `zero_data_retention` is required (422 when missing).
|
|
606
|
+
* Turn zero data retention on or off for the org
|
|
607
|
+
*/
|
|
608
|
+
updateDataRetentionRaw(requestParameters, initOverrides) {
|
|
609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
610
|
+
const requestOptions = yield this.updateDataRetentionRequestOpts(requestParameters);
|
|
611
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
612
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataRetention_1.DataRetentionFromJSON)(jsonValue));
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Sets the organization\'s zero data retention (ZDR) setting. Takes effect from the next inference request. Requires the `serverless:write` scope AND org-admin privileges (a non-admin member gets 403). `zero_data_retention` is required (422 when missing).
|
|
617
|
+
* Turn zero data retention on or off for the org
|
|
618
|
+
*/
|
|
619
|
+
updateDataRetention(requestParameters, initOverrides) {
|
|
620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
621
|
+
const response = yield this.updateDataRetentionRaw(requestParameters, initOverrides);
|
|
622
|
+
return yield response.value();
|
|
623
|
+
});
|
|
624
|
+
}
|
|
521
625
|
}
|
|
522
626
|
exports.InferenceApi = InferenceApi;
|
|
627
|
+
/**
|
|
628
|
+
* @export
|
|
629
|
+
*/
|
|
630
|
+
exports.CreateChatCompletionXGPUAIZeroDataRetentionEnum = {
|
|
631
|
+
True: 'true',
|
|
632
|
+
False: 'false'
|
|
633
|
+
};
|
|
634
|
+
/**
|
|
635
|
+
* @export
|
|
636
|
+
*/
|
|
637
|
+
exports.CreateEmbeddingsXGPUAIZeroDataRetentionEnum = {
|
|
638
|
+
True: 'true',
|
|
639
|
+
False: 'false'
|
|
640
|
+
};
|
|
641
|
+
/**
|
|
642
|
+
* @export
|
|
643
|
+
*/
|
|
644
|
+
exports.CreateImageXGPUAIZeroDataRetentionEnum = {
|
|
645
|
+
True: 'true',
|
|
646
|
+
False: 'false'
|
|
647
|
+
};
|
|
523
648
|
/**
|
|
524
649
|
* @export
|
|
525
650
|
*/
|
|
@@ -12,12 +12,14 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type ChatCompletionRequest } from '../models/ChatCompletionRequest';
|
|
14
14
|
import { type ChatCompletionResponse } from '../models/ChatCompletionResponse';
|
|
15
|
+
import { type DataRetention } from '../models/DataRetention';
|
|
15
16
|
import { type EmbeddingsRequest } from '../models/EmbeddingsRequest';
|
|
16
17
|
import { type EmbeddingsResponse } from '../models/EmbeddingsResponse';
|
|
17
18
|
import { type ImagesGenerationsRequest } from '../models/ImagesGenerationsRequest';
|
|
18
19
|
import { type ImagesResponse } from '../models/ImagesResponse';
|
|
19
20
|
import { type Model } from '../models/Model';
|
|
20
21
|
import { type ModelList } from '../models/ModelList';
|
|
22
|
+
import { type UpdateDataRetentionRequest } from '../models/UpdateDataRetentionRequest';
|
|
21
23
|
import { type VideoCreateRequest } from '../models/VideoCreateRequest';
|
|
22
24
|
import { type VideoJob } from '../models/VideoJob';
|
|
23
25
|
import { type VideoList } from '../models/VideoList';
|
|
@@ -26,13 +28,16 @@ export interface CancelVideoRequest {
|
|
|
26
28
|
}
|
|
27
29
|
export interface CreateChatCompletionRequest {
|
|
28
30
|
chatCompletionRequest: ChatCompletionRequest;
|
|
31
|
+
xGPUAIZeroDataRetention?: CreateChatCompletionXGPUAIZeroDataRetentionEnum;
|
|
29
32
|
}
|
|
30
33
|
export interface CreateEmbeddingsRequest {
|
|
31
34
|
embeddingsRequest: EmbeddingsRequest;
|
|
35
|
+
xGPUAIZeroDataRetention?: CreateEmbeddingsXGPUAIZeroDataRetentionEnum;
|
|
32
36
|
}
|
|
33
37
|
export interface CreateImageRequest {
|
|
34
38
|
imagesGenerationsRequest: ImagesGenerationsRequest;
|
|
35
39
|
idempotencyKey?: string;
|
|
40
|
+
xGPUAIZeroDataRetention?: CreateImageXGPUAIZeroDataRetentionEnum;
|
|
36
41
|
}
|
|
37
42
|
export interface CreateVideoRequest {
|
|
38
43
|
videoCreateRequest: VideoCreateRequest;
|
|
@@ -54,6 +59,9 @@ export interface ListVideosRequest {
|
|
|
54
59
|
after?: string;
|
|
55
60
|
limit?: number;
|
|
56
61
|
}
|
|
62
|
+
export interface UpdateDataRetentionOperationRequest {
|
|
63
|
+
updateDataRetentionRequest: UpdateDataRetentionRequest;
|
|
64
|
+
}
|
|
57
65
|
/**
|
|
58
66
|
*
|
|
59
67
|
*/
|
|
@@ -124,6 +132,20 @@ export declare class InferenceApi extends runtime.BaseAPI {
|
|
|
124
132
|
* Create a video generation job (async)
|
|
125
133
|
*/
|
|
126
134
|
createVideo(requestParameters: CreateVideoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoJob>;
|
|
135
|
+
/**
|
|
136
|
+
* Creates request options for getDataRetention without sending the request
|
|
137
|
+
*/
|
|
138
|
+
getDataRetentionRequestOpts(): Promise<runtime.RequestOpts>;
|
|
139
|
+
/**
|
|
140
|
+
* Returns whether zero data retention (ZDR) is on for the organization. When it is on, chat, embeddings and image requests route only to model hosts that keep no prompt or output content, a model without one returns 400 `zero_data_retention_unavailable`, and video generation is refused. Requires the `serverless:read` scope. The organization is taken from the authenticated API key.
|
|
141
|
+
* Get the org zero data retention setting
|
|
142
|
+
*/
|
|
143
|
+
getDataRetentionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataRetention>>;
|
|
144
|
+
/**
|
|
145
|
+
* Returns whether zero data retention (ZDR) is on for the organization. When it is on, chat, embeddings and image requests route only to model hosts that keep no prompt or output content, a model without one returns 400 `zero_data_retention_unavailable`, and video generation is refused. Requires the `serverless:read` scope. The organization is taken from the authenticated API key.
|
|
146
|
+
* Get the org zero data retention setting
|
|
147
|
+
*/
|
|
148
|
+
getDataRetention(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataRetention>;
|
|
127
149
|
/**
|
|
128
150
|
* Creates request options for getModel without sending the request
|
|
129
151
|
*/
|
|
@@ -186,7 +208,45 @@ export declare class InferenceApi extends runtime.BaseAPI {
|
|
|
186
208
|
* List video generation jobs
|
|
187
209
|
*/
|
|
188
210
|
listVideos(requestParameters?: ListVideosRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoList>;
|
|
211
|
+
/**
|
|
212
|
+
* Creates request options for updateDataRetention without sending the request
|
|
213
|
+
*/
|
|
214
|
+
updateDataRetentionRequestOpts(requestParameters: UpdateDataRetentionOperationRequest): Promise<runtime.RequestOpts>;
|
|
215
|
+
/**
|
|
216
|
+
* Sets the organization\'s zero data retention (ZDR) setting. Takes effect from the next inference request. Requires the `serverless:write` scope AND org-admin privileges (a non-admin member gets 403). `zero_data_retention` is required (422 when missing).
|
|
217
|
+
* Turn zero data retention on or off for the org
|
|
218
|
+
*/
|
|
219
|
+
updateDataRetentionRaw(requestParameters: UpdateDataRetentionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataRetention>>;
|
|
220
|
+
/**
|
|
221
|
+
* Sets the organization\'s zero data retention (ZDR) setting. Takes effect from the next inference request. Requires the `serverless:write` scope AND org-admin privileges (a non-admin member gets 403). `zero_data_retention` is required (422 when missing).
|
|
222
|
+
* Turn zero data retention on or off for the org
|
|
223
|
+
*/
|
|
224
|
+
updateDataRetention(requestParameters: UpdateDataRetentionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataRetention>;
|
|
189
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* @export
|
|
228
|
+
*/
|
|
229
|
+
export declare const CreateChatCompletionXGPUAIZeroDataRetentionEnum: {
|
|
230
|
+
readonly True: "true";
|
|
231
|
+
readonly False: "false";
|
|
232
|
+
};
|
|
233
|
+
export type CreateChatCompletionXGPUAIZeroDataRetentionEnum = typeof CreateChatCompletionXGPUAIZeroDataRetentionEnum[keyof typeof CreateChatCompletionXGPUAIZeroDataRetentionEnum];
|
|
234
|
+
/**
|
|
235
|
+
* @export
|
|
236
|
+
*/
|
|
237
|
+
export declare const CreateEmbeddingsXGPUAIZeroDataRetentionEnum: {
|
|
238
|
+
readonly True: "true";
|
|
239
|
+
readonly False: "false";
|
|
240
|
+
};
|
|
241
|
+
export type CreateEmbeddingsXGPUAIZeroDataRetentionEnum = typeof CreateEmbeddingsXGPUAIZeroDataRetentionEnum[keyof typeof CreateEmbeddingsXGPUAIZeroDataRetentionEnum];
|
|
242
|
+
/**
|
|
243
|
+
* @export
|
|
244
|
+
*/
|
|
245
|
+
export declare const CreateImageXGPUAIZeroDataRetentionEnum: {
|
|
246
|
+
readonly True: "true";
|
|
247
|
+
readonly False: "false";
|
|
248
|
+
};
|
|
249
|
+
export type CreateImageXGPUAIZeroDataRetentionEnum = typeof CreateImageXGPUAIZeroDataRetentionEnum[keyof typeof CreateImageXGPUAIZeroDataRetentionEnum];
|
|
190
250
|
/**
|
|
191
251
|
* @export
|
|
192
252
|
*/
|
|
@@ -23,12 +23,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
24
|
import { ChatCompletionRequestToJSON, } from '../models/ChatCompletionRequest';
|
|
25
25
|
import { ChatCompletionResponseFromJSON, } from '../models/ChatCompletionResponse';
|
|
26
|
+
import { DataRetentionFromJSON, } from '../models/DataRetention';
|
|
26
27
|
import { EmbeddingsRequestToJSON, } from '../models/EmbeddingsRequest';
|
|
27
28
|
import { EmbeddingsResponseFromJSON, } from '../models/EmbeddingsResponse';
|
|
28
29
|
import { ImagesGenerationsRequestToJSON, } from '../models/ImagesGenerationsRequest';
|
|
29
30
|
import { ImagesResponseFromJSON, } from '../models/ImagesResponse';
|
|
30
31
|
import { ModelFromJSON, } from '../models/Model';
|
|
31
32
|
import { ModelListFromJSON, } from '../models/ModelList';
|
|
33
|
+
import { UpdateDataRetentionRequestToJSON, } from '../models/UpdateDataRetentionRequest';
|
|
32
34
|
import { VideoCreateRequestToJSON, } from '../models/VideoCreateRequest';
|
|
33
35
|
import { VideoJobFromJSON, } from '../models/VideoJob';
|
|
34
36
|
import { VideoListFromJSON, } from '../models/VideoList';
|
|
@@ -93,6 +95,9 @@ export class InferenceApi extends runtime.BaseAPI {
|
|
|
93
95
|
const queryParameters = {};
|
|
94
96
|
const headerParameters = {};
|
|
95
97
|
headerParameters['Content-Type'] = 'application/json';
|
|
98
|
+
if (requestParameters['xGPUAIZeroDataRetention'] != null) {
|
|
99
|
+
headerParameters['X-GPUAI-Zero-Data-Retention'] = String(requestParameters['xGPUAIZeroDataRetention']);
|
|
100
|
+
}
|
|
96
101
|
if (this.configuration && this.configuration.accessToken) {
|
|
97
102
|
const token = this.configuration.accessToken;
|
|
98
103
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -140,6 +145,9 @@ export class InferenceApi extends runtime.BaseAPI {
|
|
|
140
145
|
const queryParameters = {};
|
|
141
146
|
const headerParameters = {};
|
|
142
147
|
headerParameters['Content-Type'] = 'application/json';
|
|
148
|
+
if (requestParameters['xGPUAIZeroDataRetention'] != null) {
|
|
149
|
+
headerParameters['X-GPUAI-Zero-Data-Retention'] = String(requestParameters['xGPUAIZeroDataRetention']);
|
|
150
|
+
}
|
|
143
151
|
if (this.configuration && this.configuration.accessToken) {
|
|
144
152
|
const token = this.configuration.accessToken;
|
|
145
153
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -192,6 +200,9 @@ export class InferenceApi extends runtime.BaseAPI {
|
|
|
192
200
|
if (requestParameters['idempotencyKey'] != null) {
|
|
193
201
|
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
194
202
|
}
|
|
203
|
+
if (requestParameters['xGPUAIZeroDataRetention'] != null) {
|
|
204
|
+
headerParameters['X-GPUAI-Zero-Data-Retention'] = String(requestParameters['xGPUAIZeroDataRetention']);
|
|
205
|
+
}
|
|
195
206
|
if (this.configuration && this.configuration.accessToken) {
|
|
196
207
|
const token = this.configuration.accessToken;
|
|
197
208
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -282,6 +293,50 @@ export class InferenceApi extends runtime.BaseAPI {
|
|
|
282
293
|
return yield response.value();
|
|
283
294
|
});
|
|
284
295
|
}
|
|
296
|
+
/**
|
|
297
|
+
* Creates request options for getDataRetention without sending the request
|
|
298
|
+
*/
|
|
299
|
+
getDataRetentionRequestOpts() {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
const queryParameters = {};
|
|
302
|
+
const headerParameters = {};
|
|
303
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
304
|
+
const token = this.configuration.accessToken;
|
|
305
|
+
const tokenString = yield token("bearerAuth", []);
|
|
306
|
+
if (tokenString) {
|
|
307
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
let urlPath = `/organization/data-retention`;
|
|
311
|
+
return {
|
|
312
|
+
path: urlPath,
|
|
313
|
+
method: 'GET',
|
|
314
|
+
headers: headerParameters,
|
|
315
|
+
query: queryParameters,
|
|
316
|
+
};
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Returns whether zero data retention (ZDR) is on for the organization. When it is on, chat, embeddings and image requests route only to model hosts that keep no prompt or output content, a model without one returns 400 `zero_data_retention_unavailable`, and video generation is refused. Requires the `serverless:read` scope. The organization is taken from the authenticated API key.
|
|
321
|
+
* Get the org zero data retention setting
|
|
322
|
+
*/
|
|
323
|
+
getDataRetentionRaw(initOverrides) {
|
|
324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
+
const requestOptions = yield this.getDataRetentionRequestOpts();
|
|
326
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
327
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataRetentionFromJSON(jsonValue));
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Returns whether zero data retention (ZDR) is on for the organization. When it is on, chat, embeddings and image requests route only to model hosts that keep no prompt or output content, a model without one returns 400 `zero_data_retention_unavailable`, and video generation is refused. Requires the `serverless:read` scope. The organization is taken from the authenticated API key.
|
|
332
|
+
* Get the org zero data retention setting
|
|
333
|
+
*/
|
|
334
|
+
getDataRetention(initOverrides) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
const response = yield this.getDataRetentionRaw(initOverrides);
|
|
337
|
+
return yield response.value();
|
|
338
|
+
});
|
|
339
|
+
}
|
|
285
340
|
/**
|
|
286
341
|
* Creates request options for getModel without sending the request
|
|
287
342
|
*/
|
|
@@ -515,7 +570,77 @@ export class InferenceApi extends runtime.BaseAPI {
|
|
|
515
570
|
return yield response.value();
|
|
516
571
|
});
|
|
517
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* Creates request options for updateDataRetention without sending the request
|
|
575
|
+
*/
|
|
576
|
+
updateDataRetentionRequestOpts(requestParameters) {
|
|
577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
if (requestParameters['updateDataRetentionRequest'] == null) {
|
|
579
|
+
throw new runtime.RequiredError('updateDataRetentionRequest', 'Required parameter "updateDataRetentionRequest" was null or undefined when calling updateDataRetention().');
|
|
580
|
+
}
|
|
581
|
+
const queryParameters = {};
|
|
582
|
+
const headerParameters = {};
|
|
583
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
584
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
585
|
+
const token = this.configuration.accessToken;
|
|
586
|
+
const tokenString = yield token("bearerAuth", []);
|
|
587
|
+
if (tokenString) {
|
|
588
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
let urlPath = `/organization/data-retention`;
|
|
592
|
+
return {
|
|
593
|
+
path: urlPath,
|
|
594
|
+
method: 'PUT',
|
|
595
|
+
headers: headerParameters,
|
|
596
|
+
query: queryParameters,
|
|
597
|
+
body: UpdateDataRetentionRequestToJSON(requestParameters['updateDataRetentionRequest']),
|
|
598
|
+
};
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Sets the organization\'s zero data retention (ZDR) setting. Takes effect from the next inference request. Requires the `serverless:write` scope AND org-admin privileges (a non-admin member gets 403). `zero_data_retention` is required (422 when missing).
|
|
603
|
+
* Turn zero data retention on or off for the org
|
|
604
|
+
*/
|
|
605
|
+
updateDataRetentionRaw(requestParameters, initOverrides) {
|
|
606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
607
|
+
const requestOptions = yield this.updateDataRetentionRequestOpts(requestParameters);
|
|
608
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
609
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataRetentionFromJSON(jsonValue));
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Sets the organization\'s zero data retention (ZDR) setting. Takes effect from the next inference request. Requires the `serverless:write` scope AND org-admin privileges (a non-admin member gets 403). `zero_data_retention` is required (422 when missing).
|
|
614
|
+
* Turn zero data retention on or off for the org
|
|
615
|
+
*/
|
|
616
|
+
updateDataRetention(requestParameters, initOverrides) {
|
|
617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
+
const response = yield this.updateDataRetentionRaw(requestParameters, initOverrides);
|
|
619
|
+
return yield response.value();
|
|
620
|
+
});
|
|
621
|
+
}
|
|
518
622
|
}
|
|
623
|
+
/**
|
|
624
|
+
* @export
|
|
625
|
+
*/
|
|
626
|
+
export const CreateChatCompletionXGPUAIZeroDataRetentionEnum = {
|
|
627
|
+
True: 'true',
|
|
628
|
+
False: 'false'
|
|
629
|
+
};
|
|
630
|
+
/**
|
|
631
|
+
* @export
|
|
632
|
+
*/
|
|
633
|
+
export const CreateEmbeddingsXGPUAIZeroDataRetentionEnum = {
|
|
634
|
+
True: 'true',
|
|
635
|
+
False: 'false'
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* @export
|
|
639
|
+
*/
|
|
640
|
+
export const CreateImageXGPUAIZeroDataRetentionEnum = {
|
|
641
|
+
True: 'true',
|
|
642
|
+
False: 'false'
|
|
643
|
+
};
|
|
519
644
|
/**
|
|
520
645
|
* @export
|
|
521
646
|
*/
|