@openrouter/sdk 1.5.19 → 1.5.21
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/esm/funcs/privateEndpointsUpdate.d.ts +2 -2
- package/esm/funcs/privateEndpointsUpdate.js +2 -2
- package/esm/funcs/privateEndpointsUpdateParameters.d.ts +4 -2
- package/esm/funcs/privateEndpointsUpdateParameters.js +4 -2
- package/esm/funcs/privateEndpointsUpdatePricing.d.ts +4 -2
- package/esm/funcs/privateEndpointsUpdatePricing.js +4 -2
- package/esm/funcs/privateProvidersCreate.d.ts +18 -0
- package/esm/funcs/privateProvidersCreate.js +99 -0
- package/esm/funcs/privateProvidersDelete.d.ts +18 -0
- package/esm/funcs/privateProvidersDelete.js +102 -0
- package/esm/funcs/privateProvidersGet.d.ts +18 -0
- package/esm/funcs/privateProvidersGet.js +102 -0
- package/esm/funcs/privateProvidersList.d.ts +18 -0
- package/esm/funcs/privateProvidersList.js +96 -0
- package/esm/funcs/privateProvidersUpdate.d.ts +18 -0
- package/esm/funcs/privateProvidersUpdate.js +105 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/createprivateendpointrequest.d.ts +6 -0
- package/esm/models/createprivateendpointrequest.js +2 -0
- package/esm/models/createprivateproviderrequest.d.ts +36 -0
- package/esm/models/createprivateproviderrequest.js +25 -0
- package/esm/models/index.d.ts +8 -0
- package/esm/models/index.js +8 -0
- package/esm/models/operations/createprivateprovider.d.ts +67 -0
- package/esm/models/operations/createprivateprovider.js +31 -0
- package/esm/models/operations/deleteprivateprovider.d.ts +75 -0
- package/esm/models/operations/deleteprivateprovider.js +36 -0
- package/esm/models/operations/getprivateprovider.d.ts +67 -0
- package/esm/models/operations/getprivateprovider.js +30 -0
- package/esm/models/operations/index.d.ts +5 -0
- package/esm/models/operations/index.js +5 -0
- package/esm/models/operations/listprivateproviders.d.ts +65 -0
- package/esm/models/operations/listprivateproviders.js +29 -0
- package/esm/models/operations/updateprivateprovider.d.ts +69 -0
- package/esm/models/operations/updateprivateprovider.js +32 -0
- package/esm/models/privateendpoint.d.ts +5 -0
- package/esm/models/privateendpoint.js +2 -0
- package/esm/models/privateendpointquantization.d.ts +28 -0
- package/esm/models/privateendpointquantization.js +27 -0
- package/esm/models/privateendpointreasoningreturnmechanism.d.ts +20 -0
- package/esm/models/privateendpointreasoningreturnmechanism.js +19 -0
- package/esm/models/privateendpointsettings.d.ts +142 -0
- package/esm/models/privateendpointsettings.js +112 -0
- package/esm/models/privateprovider.d.ts +50 -0
- package/esm/models/privateprovider.js +41 -0
- package/esm/models/privateproviderdatapolicy.d.ts +28 -0
- package/esm/models/privateproviderdatapolicy.js +21 -0
- package/esm/models/updateprivateendpointrequest.d.ts +17 -2
- package/esm/models/updateprivateendpointrequest.js +9 -1
- package/esm/models/updateprivateendpointsettingsrequest.d.ts +177 -0
- package/esm/models/updateprivateendpointsettingsrequest.js +111 -0
- package/esm/models/updateprivateproviderrequest.d.ts +42 -0
- package/esm/models/updateprivateproviderrequest.js +36 -0
- package/esm/sdk/privateendpoints.d.ts +10 -6
- package/esm/sdk/privateendpoints.js +10 -6
- package/esm/sdk/privateproviders.d.ts +40 -0
- package/esm/sdk/privateproviders.js +59 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Your declared data policy, or `null` when none was declared.
|
|
6
|
+
*/
|
|
7
|
+
export type PrivateProviderDataPolicy1 = {
|
|
8
|
+
/**
|
|
9
|
+
* Days prompts are retained. Must be `null` unless `retains_prompts` is true.
|
|
10
|
+
*/
|
|
11
|
+
promptRetentionDays: number | null;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the provider retains prompts or completions.
|
|
14
|
+
*/
|
|
15
|
+
retainsPrompts: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the provider trains on prompts.
|
|
18
|
+
*/
|
|
19
|
+
training: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type PrivateProvider = {
|
|
22
|
+
/**
|
|
23
|
+
* HTTPS base URL of an OpenAI-compatible API, used by private endpoints under this provider that set no URL of their own. Without it, each endpoint must set its own. Private, internal, metadata and OpenRouter hosts are rejected.
|
|
24
|
+
*/
|
|
25
|
+
baseUrl: string | null;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
/**
|
|
28
|
+
* Your declared data policy, or `null` when none was declared.
|
|
29
|
+
*/
|
|
30
|
+
dataPolicy: PrivateProviderDataPolicy1 | null;
|
|
31
|
+
/**
|
|
32
|
+
* Human-readable provider name shown in the UI.
|
|
33
|
+
*/
|
|
34
|
+
displayName: string;
|
|
35
|
+
/**
|
|
36
|
+
* Provider name, shown in your activity, logs and Broadcast output.
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* The slug you chose, unique within your account. Use it as `provider_slug` when creating private endpoints and BYOK keys, and in `provider.order`, `only` and `ignore`.
|
|
41
|
+
*/
|
|
42
|
+
slug: string;
|
|
43
|
+
};
|
|
44
|
+
/** @internal */
|
|
45
|
+
export declare const PrivateProviderDataPolicy1$inboundSchema: z.ZodType<PrivateProviderDataPolicy1, unknown>;
|
|
46
|
+
export declare function privateProviderDataPolicy1FromJSON(jsonString: string): SafeParseResult<PrivateProviderDataPolicy1, SDKValidationError>;
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const PrivateProvider$inboundSchema: z.ZodType<PrivateProvider, unknown>;
|
|
49
|
+
export declare function privateProviderFromJSON(jsonString: string): SafeParseResult<PrivateProvider, SDKValidationError>;
|
|
50
|
+
//# sourceMappingURL=privateprovider.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: bae774ca2103
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PrivateProviderDataPolicy1$inboundSchema = z.object({
|
|
10
|
+
prompt_retention_days: z.nullable(z.int()),
|
|
11
|
+
retains_prompts: z.boolean(),
|
|
12
|
+
training: z.boolean(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
"prompt_retention_days": "promptRetentionDays",
|
|
16
|
+
"retains_prompts": "retainsPrompts",
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export function privateProviderDataPolicy1FromJSON(jsonString) {
|
|
20
|
+
return safeParse(jsonString, (x) => PrivateProviderDataPolicy1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateProviderDataPolicy1' from JSON`);
|
|
21
|
+
}
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const PrivateProvider$inboundSchema = z.object({
|
|
24
|
+
base_url: z.nullable(z.string()),
|
|
25
|
+
created_at: z.string(),
|
|
26
|
+
data_policy: z.nullable(z.lazy(() => PrivateProviderDataPolicy1$inboundSchema)),
|
|
27
|
+
display_name: z.string(),
|
|
28
|
+
name: z.string(),
|
|
29
|
+
slug: z.string(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"base_url": "baseUrl",
|
|
33
|
+
"created_at": "createdAt",
|
|
34
|
+
"data_policy": "dataPolicy",
|
|
35
|
+
"display_name": "displayName",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
export function privateProviderFromJSON(jsonString) {
|
|
39
|
+
return safeParse(jsonString, (x) => PrivateProvider$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateProvider' from JSON`);
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=privateprovider.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Defaults to training on and retaining prompts, the most conservative declaration. Your own declaration; it applies to your own traffic and OpenRouter does not verify it.
|
|
4
|
+
*/
|
|
5
|
+
export type PrivateProviderDataPolicy = {
|
|
6
|
+
/**
|
|
7
|
+
* Days prompts are retained. Must be `null` unless `retains_prompts` is true.
|
|
8
|
+
*/
|
|
9
|
+
promptRetentionDays: number | null;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the provider retains prompts or completions.
|
|
12
|
+
*/
|
|
13
|
+
retainsPrompts: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the provider trains on prompts.
|
|
16
|
+
*/
|
|
17
|
+
training: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type PrivateProviderDataPolicy$Outbound = {
|
|
21
|
+
prompt_retention_days: number | null;
|
|
22
|
+
retains_prompts: boolean;
|
|
23
|
+
training: boolean;
|
|
24
|
+
};
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const PrivateProviderDataPolicy$outboundSchema: z.ZodType<PrivateProviderDataPolicy$Outbound, PrivateProviderDataPolicy>;
|
|
27
|
+
export declare function privateProviderDataPolicyToJSON(privateProviderDataPolicy: PrivateProviderDataPolicy): string;
|
|
28
|
+
//# sourceMappingURL=privateproviderdatapolicy.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7a9731f38867
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const PrivateProviderDataPolicy$outboundSchema = z.object({
|
|
9
|
+
promptRetentionDays: z.nullable(z.int()),
|
|
10
|
+
retainsPrompts: z.boolean(),
|
|
11
|
+
training: z.boolean(),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
promptRetentionDays: "prompt_retention_days",
|
|
15
|
+
retainsPrompts: "retains_prompts",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function privateProviderDataPolicyToJSON(privateProviderDataPolicy) {
|
|
19
|
+
return JSON.stringify(PrivateProviderDataPolicy$outboundSchema.parse(privateProviderDataPolicy));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=privateproviderdatapolicy.js.map
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { PrivateEndpointDeclaredParameter } from "./privateendpointdeclaredparameter.js";
|
|
4
|
+
import { PrivateEndpointPricing, PrivateEndpointPricing$Outbound } from "./privateendpointpricing.js";
|
|
5
|
+
import { UpdatePrivateEndpointSettingsRequest, UpdatePrivateEndpointSettingsRequest$Outbound } from "./updateprivateendpointsettingsrequest.js";
|
|
3
6
|
/**
|
|
4
7
|
* Attest where this deployment processes data.
|
|
5
8
|
*/
|
|
@@ -12,11 +15,18 @@ export declare const UpdatePrivateEndpointRequestDeclaredRegion: {
|
|
|
12
15
|
* Attest where this deployment processes data.
|
|
13
16
|
*/
|
|
14
17
|
export type UpdatePrivateEndpointRequestDeclaredRegion = OpenEnum<typeof UpdatePrivateEndpointRequestDeclaredRegion>;
|
|
18
|
+
/**
|
|
19
|
+
* Only the fields present change. `base_url`, `upstream_model_id`, `declared_zdr` and `declared_region` are accepted on a draft only; `pricing` and `declared_parameters` replace their value; `settings` is itself a partial update where `null` clears a limit or restores the provider default.
|
|
20
|
+
*/
|
|
15
21
|
export type UpdatePrivateEndpointRequest = {
|
|
16
22
|
/**
|
|
17
23
|
* HTTPS base URL of your deployment. Required unless the provider derives its URL from the BYOK credential (Azure, Amazon Bedrock, Google Vertex).
|
|
18
24
|
*/
|
|
19
25
|
baseUrl?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Parameters the upstream supports beyond the tested ones. Replaces the earlier declaration; tested parameters stay. Order and repeated names are ignored, but the list holds at most as many entries as there are declarable parameters, repeats included. `tool_choice` requires `tools` to be tested or declared.
|
|
28
|
+
*/
|
|
29
|
+
declaredParameters?: Array<PrivateEndpointDeclaredParameter> | undefined;
|
|
20
30
|
/**
|
|
21
31
|
* Attest where this deployment processes data.
|
|
22
32
|
*/
|
|
@@ -25,19 +35,24 @@ export type UpdatePrivateEndpointRequest = {
|
|
|
25
35
|
* Attest that this deployment retains no prompt or completion data.
|
|
26
36
|
*/
|
|
27
37
|
declaredZdr?: boolean | null | undefined;
|
|
38
|
+
pricing?: PrivateEndpointPricing | undefined;
|
|
39
|
+
settings?: UpdatePrivateEndpointSettingsRequest | undefined;
|
|
28
40
|
/**
|
|
29
41
|
* Model or deployment identifier sent to the upstream provider.
|
|
30
42
|
*/
|
|
31
|
-
upstreamModelId
|
|
43
|
+
upstreamModelId?: string | undefined;
|
|
32
44
|
};
|
|
33
45
|
/** @internal */
|
|
34
46
|
export declare const UpdatePrivateEndpointRequestDeclaredRegion$outboundSchema: z.ZodType<string, UpdatePrivateEndpointRequestDeclaredRegion>;
|
|
35
47
|
/** @internal */
|
|
36
48
|
export type UpdatePrivateEndpointRequest$Outbound = {
|
|
37
49
|
base_url?: string | undefined;
|
|
50
|
+
declared_parameters?: Array<string> | undefined;
|
|
38
51
|
declared_region?: string | null | undefined;
|
|
39
52
|
declared_zdr?: boolean | null | undefined;
|
|
40
|
-
|
|
53
|
+
pricing?: PrivateEndpointPricing$Outbound | undefined;
|
|
54
|
+
settings?: UpdatePrivateEndpointSettingsRequest$Outbound | undefined;
|
|
55
|
+
upstream_model_id?: string | undefined;
|
|
41
56
|
};
|
|
42
57
|
/** @internal */
|
|
43
58
|
export declare const UpdatePrivateEndpointRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointRequest$Outbound, UpdatePrivateEndpointRequest>;
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import { PrivateEndpointDeclaredParameter$outboundSchema, } from "./privateendpointdeclaredparameter.js";
|
|
9
|
+
import { PrivateEndpointPricing$outboundSchema, } from "./privateendpointpricing.js";
|
|
10
|
+
import { UpdatePrivateEndpointSettingsRequest$outboundSchema, } from "./updateprivateendpointsettingsrequest.js";
|
|
8
11
|
/**
|
|
9
12
|
* Attest where this deployment processes data.
|
|
10
13
|
*/
|
|
@@ -19,12 +22,17 @@ export const UpdatePrivateEndpointRequestDeclaredRegion$outboundSchema = openEnu
|
|
|
19
22
|
/** @internal */
|
|
20
23
|
export const UpdatePrivateEndpointRequest$outboundSchema = z.object({
|
|
21
24
|
baseUrl: z.string().optional(),
|
|
25
|
+
declaredParameters: z.array(PrivateEndpointDeclaredParameter$outboundSchema)
|
|
26
|
+
.optional(),
|
|
22
27
|
declaredRegion: z.nullable(UpdatePrivateEndpointRequestDeclaredRegion$outboundSchema).optional(),
|
|
23
28
|
declaredZdr: z.nullable(z.boolean()).optional(),
|
|
24
|
-
|
|
29
|
+
pricing: PrivateEndpointPricing$outboundSchema.optional(),
|
|
30
|
+
settings: UpdatePrivateEndpointSettingsRequest$outboundSchema.optional(),
|
|
31
|
+
upstreamModelId: z.string().optional(),
|
|
25
32
|
}).transform((v) => {
|
|
26
33
|
return remap$(v, {
|
|
27
34
|
baseUrl: "base_url",
|
|
35
|
+
declaredParameters: "declared_parameters",
|
|
28
36
|
declaredRegion: "declared_region",
|
|
29
37
|
declaredZdr: "declared_zdr",
|
|
30
38
|
upstreamModelId: "upstream_model_id",
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { PrivateEndpointQuantization } from "./privateendpointquantization.js";
|
|
4
|
+
import { PrivateEndpointReasoningReturnMechanism } from "./privateendpointreasoningreturnmechanism.js";
|
|
5
|
+
export type UpdatePrivateEndpointSettingsRequestCompletions = {
|
|
6
|
+
/**
|
|
7
|
+
* Serves `/chat/completions`; `null` uses the provider default.
|
|
8
|
+
*/
|
|
9
|
+
chat?: boolean | null | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Serves `/completions`; `null` uses the provider default.
|
|
12
|
+
*/
|
|
13
|
+
text?: boolean | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare const UpdatePrivateEndpointSettingsRequestExcludedParameter: {
|
|
16
|
+
readonly Temperature: "temperature";
|
|
17
|
+
readonly TopP: "top_p";
|
|
18
|
+
readonly TopK: "top_k";
|
|
19
|
+
readonly MinP: "min_p";
|
|
20
|
+
readonly TopA: "top_a";
|
|
21
|
+
readonly FrequencyPenalty: "frequency_penalty";
|
|
22
|
+
readonly PresencePenalty: "presence_penalty";
|
|
23
|
+
readonly RepetitionPenalty: "repetition_penalty";
|
|
24
|
+
readonly MaxTokens: "max_tokens";
|
|
25
|
+
readonly MaxCompletionTokens: "max_completion_tokens";
|
|
26
|
+
readonly LogitBias: "logit_bias";
|
|
27
|
+
readonly Logprobs: "logprobs";
|
|
28
|
+
readonly TopLogprobs: "top_logprobs";
|
|
29
|
+
readonly Prediction: "prediction";
|
|
30
|
+
readonly Seed: "seed";
|
|
31
|
+
readonly ResponseFormat: "response_format";
|
|
32
|
+
readonly StructuredOutputs: "structured_outputs";
|
|
33
|
+
readonly Stop: "stop";
|
|
34
|
+
readonly Tools: "tools";
|
|
35
|
+
readonly ToolChoice: "tool_choice";
|
|
36
|
+
readonly ParallelToolCalls: "parallel_tool_calls";
|
|
37
|
+
readonly IncludeReasoning: "include_reasoning";
|
|
38
|
+
readonly Reasoning: "reasoning";
|
|
39
|
+
readonly ReasoningEffort: "reasoning_effort";
|
|
40
|
+
readonly WebSearchOptions: "web_search_options";
|
|
41
|
+
readonly Verbosity: "verbosity";
|
|
42
|
+
};
|
|
43
|
+
export type UpdatePrivateEndpointSettingsRequestExcludedParameter = OpenEnum<typeof UpdatePrivateEndpointSettingsRequestExcludedParameter>;
|
|
44
|
+
export type UpdatePrivateEndpointSettingsRequestInputs = {
|
|
45
|
+
/**
|
|
46
|
+
* Accepts audio input. `null` keeps the provider default.
|
|
47
|
+
*/
|
|
48
|
+
audio?: boolean | null | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Accepts base64 file data. `null` keeps the provider default.
|
|
51
|
+
*/
|
|
52
|
+
base64Files?: boolean | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Accepts base64 image data. `null` keeps the provider default.
|
|
55
|
+
*/
|
|
56
|
+
base64Images?: boolean | null | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Accepts file URLs. `null` keeps the provider default.
|
|
59
|
+
*/
|
|
60
|
+
fileUrls?: boolean | null | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Accepts image URLs. `null` keeps the provider default.
|
|
63
|
+
*/
|
|
64
|
+
imageUrls?: boolean | null | undefined;
|
|
65
|
+
};
|
|
66
|
+
export type UpdatePrivateEndpointSettingsRequestReasoning = {
|
|
67
|
+
/**
|
|
68
|
+
* Where the upstream puts reasoning tokens in its response: `reasoning` and `reasoning-content` are response fields, `content-string` is inline in the message, `none` returns no reasoning. `null` uses the provider default.
|
|
69
|
+
*/
|
|
70
|
+
returnMechanism?: PrivateEndpointReasoningReturnMechanism | null | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Whether requests with `reasoning` route to this endpoint.
|
|
73
|
+
*/
|
|
74
|
+
supported?: boolean | undefined;
|
|
75
|
+
};
|
|
76
|
+
export type UpdatePrivateEndpointSettingsRequestToolChoice = {
|
|
77
|
+
/**
|
|
78
|
+
* Accepts `tool_choice: "auto"`.
|
|
79
|
+
*/
|
|
80
|
+
auto?: boolean | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Accepts a named function in `tool_choice`.
|
|
83
|
+
*/
|
|
84
|
+
function?: boolean | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Accepts `tool_choice: "none"`.
|
|
87
|
+
*/
|
|
88
|
+
none?: boolean | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Accepts `tool_choice: "required"`.
|
|
91
|
+
*/
|
|
92
|
+
required?: boolean | undefined;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Capabilities and limits to set over the ones copied from the public endpoint for this model and provider (or from the model). Omitted fields keep the copied values.
|
|
96
|
+
*/
|
|
97
|
+
export type UpdatePrivateEndpointSettingsRequest = {
|
|
98
|
+
completions?: UpdatePrivateEndpointSettingsRequestCompletions | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Longest prompt plus completion, in tokens, or `null` to keep the model default.
|
|
101
|
+
*/
|
|
102
|
+
contextLength?: number | null | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Request parameters the upstream rejects even though the model supports them; requests using one do not route here. Cannot name a tested parameter.
|
|
105
|
+
*/
|
|
106
|
+
excludedParameters?: Array<UpdatePrivateEndpointSettingsRequestExcludedParameter> | undefined;
|
|
107
|
+
inputs?: UpdatePrivateEndpointSettingsRequestInputs | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Longest completion the upstream returns, in tokens, or `null` to keep the model default.
|
|
110
|
+
*/
|
|
111
|
+
maxCompletionTokens?: number | null | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* Longest prompt, in tokens, or `null` for no cap below the context length. Cannot exceed `context_length`, or the model context length while `context_length` is `null`.
|
|
114
|
+
*/
|
|
115
|
+
maxPromptTokens?: number | null | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Weight precision the deployment runs at; `unknown` when not stated.
|
|
118
|
+
*/
|
|
119
|
+
quantization?: PrivateEndpointQuantization | undefined;
|
|
120
|
+
reasoning?: UpdatePrivateEndpointSettingsRequestReasoning | undefined;
|
|
121
|
+
toolChoice?: UpdatePrivateEndpointSettingsRequestToolChoice | undefined;
|
|
122
|
+
};
|
|
123
|
+
/** @internal */
|
|
124
|
+
export type UpdatePrivateEndpointSettingsRequestCompletions$Outbound = {
|
|
125
|
+
chat?: boolean | null | undefined;
|
|
126
|
+
text?: boolean | null | undefined;
|
|
127
|
+
};
|
|
128
|
+
/** @internal */
|
|
129
|
+
export declare const UpdatePrivateEndpointSettingsRequestCompletions$outboundSchema: z.ZodType<UpdatePrivateEndpointSettingsRequestCompletions$Outbound, UpdatePrivateEndpointSettingsRequestCompletions>;
|
|
130
|
+
export declare function updatePrivateEndpointSettingsRequestCompletionsToJSON(updatePrivateEndpointSettingsRequestCompletions: UpdatePrivateEndpointSettingsRequestCompletions): string;
|
|
131
|
+
/** @internal */
|
|
132
|
+
export declare const UpdatePrivateEndpointSettingsRequestExcludedParameter$outboundSchema: z.ZodType<string, UpdatePrivateEndpointSettingsRequestExcludedParameter>;
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type UpdatePrivateEndpointSettingsRequestInputs$Outbound = {
|
|
135
|
+
audio?: boolean | null | undefined;
|
|
136
|
+
base64_files?: boolean | null | undefined;
|
|
137
|
+
base64_images?: boolean | null | undefined;
|
|
138
|
+
file_urls?: boolean | null | undefined;
|
|
139
|
+
image_urls?: boolean | null | undefined;
|
|
140
|
+
};
|
|
141
|
+
/** @internal */
|
|
142
|
+
export declare const UpdatePrivateEndpointSettingsRequestInputs$outboundSchema: z.ZodType<UpdatePrivateEndpointSettingsRequestInputs$Outbound, UpdatePrivateEndpointSettingsRequestInputs>;
|
|
143
|
+
export declare function updatePrivateEndpointSettingsRequestInputsToJSON(updatePrivateEndpointSettingsRequestInputs: UpdatePrivateEndpointSettingsRequestInputs): string;
|
|
144
|
+
/** @internal */
|
|
145
|
+
export type UpdatePrivateEndpointSettingsRequestReasoning$Outbound = {
|
|
146
|
+
return_mechanism?: string | null | undefined;
|
|
147
|
+
supported?: boolean | undefined;
|
|
148
|
+
};
|
|
149
|
+
/** @internal */
|
|
150
|
+
export declare const UpdatePrivateEndpointSettingsRequestReasoning$outboundSchema: z.ZodType<UpdatePrivateEndpointSettingsRequestReasoning$Outbound, UpdatePrivateEndpointSettingsRequestReasoning>;
|
|
151
|
+
export declare function updatePrivateEndpointSettingsRequestReasoningToJSON(updatePrivateEndpointSettingsRequestReasoning: UpdatePrivateEndpointSettingsRequestReasoning): string;
|
|
152
|
+
/** @internal */
|
|
153
|
+
export type UpdatePrivateEndpointSettingsRequestToolChoice$Outbound = {
|
|
154
|
+
auto?: boolean | undefined;
|
|
155
|
+
function?: boolean | undefined;
|
|
156
|
+
none?: boolean | undefined;
|
|
157
|
+
required?: boolean | undefined;
|
|
158
|
+
};
|
|
159
|
+
/** @internal */
|
|
160
|
+
export declare const UpdatePrivateEndpointSettingsRequestToolChoice$outboundSchema: z.ZodType<UpdatePrivateEndpointSettingsRequestToolChoice$Outbound, UpdatePrivateEndpointSettingsRequestToolChoice>;
|
|
161
|
+
export declare function updatePrivateEndpointSettingsRequestToolChoiceToJSON(updatePrivateEndpointSettingsRequestToolChoice: UpdatePrivateEndpointSettingsRequestToolChoice): string;
|
|
162
|
+
/** @internal */
|
|
163
|
+
export type UpdatePrivateEndpointSettingsRequest$Outbound = {
|
|
164
|
+
completions?: UpdatePrivateEndpointSettingsRequestCompletions$Outbound | undefined;
|
|
165
|
+
context_length?: number | null | undefined;
|
|
166
|
+
excluded_parameters?: Array<string> | undefined;
|
|
167
|
+
inputs?: UpdatePrivateEndpointSettingsRequestInputs$Outbound | undefined;
|
|
168
|
+
max_completion_tokens?: number | null | undefined;
|
|
169
|
+
max_prompt_tokens?: number | null | undefined;
|
|
170
|
+
quantization?: string | undefined;
|
|
171
|
+
reasoning?: UpdatePrivateEndpointSettingsRequestReasoning$Outbound | undefined;
|
|
172
|
+
tool_choice?: UpdatePrivateEndpointSettingsRequestToolChoice$Outbound | undefined;
|
|
173
|
+
};
|
|
174
|
+
/** @internal */
|
|
175
|
+
export declare const UpdatePrivateEndpointSettingsRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointSettingsRequest$Outbound, UpdatePrivateEndpointSettingsRequest>;
|
|
176
|
+
export declare function updatePrivateEndpointSettingsRequestToJSON(updatePrivateEndpointSettingsRequest: UpdatePrivateEndpointSettingsRequest): string;
|
|
177
|
+
//# sourceMappingURL=updateprivateendpointsettingsrequest.d.ts.map
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5104217fe6cc
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import { PrivateEndpointQuantization$outboundSchema, } from "./privateendpointquantization.js";
|
|
9
|
+
import { PrivateEndpointReasoningReturnMechanism$outboundSchema, } from "./privateendpointreasoningreturnmechanism.js";
|
|
10
|
+
export const UpdatePrivateEndpointSettingsRequestExcludedParameter = {
|
|
11
|
+
Temperature: "temperature",
|
|
12
|
+
TopP: "top_p",
|
|
13
|
+
TopK: "top_k",
|
|
14
|
+
MinP: "min_p",
|
|
15
|
+
TopA: "top_a",
|
|
16
|
+
FrequencyPenalty: "frequency_penalty",
|
|
17
|
+
PresencePenalty: "presence_penalty",
|
|
18
|
+
RepetitionPenalty: "repetition_penalty",
|
|
19
|
+
MaxTokens: "max_tokens",
|
|
20
|
+
MaxCompletionTokens: "max_completion_tokens",
|
|
21
|
+
LogitBias: "logit_bias",
|
|
22
|
+
Logprobs: "logprobs",
|
|
23
|
+
TopLogprobs: "top_logprobs",
|
|
24
|
+
Prediction: "prediction",
|
|
25
|
+
Seed: "seed",
|
|
26
|
+
ResponseFormat: "response_format",
|
|
27
|
+
StructuredOutputs: "structured_outputs",
|
|
28
|
+
Stop: "stop",
|
|
29
|
+
Tools: "tools",
|
|
30
|
+
ToolChoice: "tool_choice",
|
|
31
|
+
ParallelToolCalls: "parallel_tool_calls",
|
|
32
|
+
IncludeReasoning: "include_reasoning",
|
|
33
|
+
Reasoning: "reasoning",
|
|
34
|
+
ReasoningEffort: "reasoning_effort",
|
|
35
|
+
WebSearchOptions: "web_search_options",
|
|
36
|
+
Verbosity: "verbosity",
|
|
37
|
+
};
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const UpdatePrivateEndpointSettingsRequestCompletions$outboundSchema = z.object({
|
|
40
|
+
chat: z.nullable(z.boolean()).optional(),
|
|
41
|
+
text: z.nullable(z.boolean()).optional(),
|
|
42
|
+
});
|
|
43
|
+
export function updatePrivateEndpointSettingsRequestCompletionsToJSON(updatePrivateEndpointSettingsRequestCompletions) {
|
|
44
|
+
return JSON.stringify(UpdatePrivateEndpointSettingsRequestCompletions$outboundSchema.parse(updatePrivateEndpointSettingsRequestCompletions));
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const UpdatePrivateEndpointSettingsRequestExcludedParameter$outboundSchema = openEnums.outboundSchema(UpdatePrivateEndpointSettingsRequestExcludedParameter);
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const UpdatePrivateEndpointSettingsRequestInputs$outboundSchema = z.object({
|
|
50
|
+
audio: z.nullable(z.boolean()).optional(),
|
|
51
|
+
base64Files: z.nullable(z.boolean()).optional(),
|
|
52
|
+
base64Images: z.nullable(z.boolean()).optional(),
|
|
53
|
+
fileUrls: z.nullable(z.boolean()).optional(),
|
|
54
|
+
imageUrls: z.nullable(z.boolean()).optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
base64Files: "base64_files",
|
|
58
|
+
base64Images: "base64_images",
|
|
59
|
+
fileUrls: "file_urls",
|
|
60
|
+
imageUrls: "image_urls",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
export function updatePrivateEndpointSettingsRequestInputsToJSON(updatePrivateEndpointSettingsRequestInputs) {
|
|
64
|
+
return JSON.stringify(UpdatePrivateEndpointSettingsRequestInputs$outboundSchema.parse(updatePrivateEndpointSettingsRequestInputs));
|
|
65
|
+
}
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const UpdatePrivateEndpointSettingsRequestReasoning$outboundSchema = z.object({
|
|
68
|
+
returnMechanism: z.nullable(PrivateEndpointReasoningReturnMechanism$outboundSchema).optional(),
|
|
69
|
+
supported: z.boolean().optional(),
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return remap$(v, {
|
|
72
|
+
returnMechanism: "return_mechanism",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
export function updatePrivateEndpointSettingsRequestReasoningToJSON(updatePrivateEndpointSettingsRequestReasoning) {
|
|
76
|
+
return JSON.stringify(UpdatePrivateEndpointSettingsRequestReasoning$outboundSchema.parse(updatePrivateEndpointSettingsRequestReasoning));
|
|
77
|
+
}
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const UpdatePrivateEndpointSettingsRequestToolChoice$outboundSchema = z.object({
|
|
80
|
+
auto: z.boolean().optional(),
|
|
81
|
+
function: z.boolean().optional(),
|
|
82
|
+
none: z.boolean().optional(),
|
|
83
|
+
required: z.boolean().optional(),
|
|
84
|
+
});
|
|
85
|
+
export function updatePrivateEndpointSettingsRequestToolChoiceToJSON(updatePrivateEndpointSettingsRequestToolChoice) {
|
|
86
|
+
return JSON.stringify(UpdatePrivateEndpointSettingsRequestToolChoice$outboundSchema.parse(updatePrivateEndpointSettingsRequestToolChoice));
|
|
87
|
+
}
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const UpdatePrivateEndpointSettingsRequest$outboundSchema = z.object({
|
|
90
|
+
completions: z.lazy(() => UpdatePrivateEndpointSettingsRequestCompletions$outboundSchema).optional(),
|
|
91
|
+
contextLength: z.nullable(z.int()).optional(),
|
|
92
|
+
excludedParameters: z.array(UpdatePrivateEndpointSettingsRequestExcludedParameter$outboundSchema).optional(),
|
|
93
|
+
inputs: z.lazy(() => UpdatePrivateEndpointSettingsRequestInputs$outboundSchema).optional(),
|
|
94
|
+
maxCompletionTokens: z.nullable(z.int()).optional(),
|
|
95
|
+
maxPromptTokens: z.nullable(z.int()).optional(),
|
|
96
|
+
quantization: PrivateEndpointQuantization$outboundSchema.optional(),
|
|
97
|
+
reasoning: z.lazy(() => UpdatePrivateEndpointSettingsRequestReasoning$outboundSchema).optional(),
|
|
98
|
+
toolChoice: z.lazy(() => UpdatePrivateEndpointSettingsRequestToolChoice$outboundSchema).optional(),
|
|
99
|
+
}).transform((v) => {
|
|
100
|
+
return remap$(v, {
|
|
101
|
+
contextLength: "context_length",
|
|
102
|
+
excludedParameters: "excluded_parameters",
|
|
103
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
104
|
+
maxPromptTokens: "max_prompt_tokens",
|
|
105
|
+
toolChoice: "tool_choice",
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
export function updatePrivateEndpointSettingsRequestToJSON(updatePrivateEndpointSettingsRequest) {
|
|
109
|
+
return JSON.stringify(UpdatePrivateEndpointSettingsRequest$outboundSchema.parse(updatePrivateEndpointSettingsRequest));
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=updateprivateendpointsettingsrequest.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type UpdatePrivateProviderRequestDataPolicy = {
|
|
3
|
+
/**
|
|
4
|
+
* Days prompts are retained. Must be `null` unless `retains_prompts` is true.
|
|
5
|
+
*/
|
|
6
|
+
promptRetentionDays?: number | null | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the provider retains prompts or completions.
|
|
9
|
+
*/
|
|
10
|
+
retainsPrompts?: boolean | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the provider trains on prompts.
|
|
13
|
+
*/
|
|
14
|
+
training?: boolean | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type UpdatePrivateProviderRequest = {
|
|
17
|
+
/**
|
|
18
|
+
* HTTPS base URL of an OpenAI-compatible API, used by private endpoints under this provider that set no URL of their own. Without it, each endpoint must set its own. Private, internal, metadata and OpenRouter hosts are rejected.
|
|
19
|
+
*/
|
|
20
|
+
baseUrl?: string | undefined;
|
|
21
|
+
dataPolicy?: UpdatePrivateProviderRequestDataPolicy | undefined;
|
|
22
|
+
displayName?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type UpdatePrivateProviderRequestDataPolicy$Outbound = {
|
|
26
|
+
prompt_retention_days?: number | null | undefined;
|
|
27
|
+
retains_prompts?: boolean | undefined;
|
|
28
|
+
training?: boolean | undefined;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const UpdatePrivateProviderRequestDataPolicy$outboundSchema: z.ZodType<UpdatePrivateProviderRequestDataPolicy$Outbound, UpdatePrivateProviderRequestDataPolicy>;
|
|
32
|
+
export declare function updatePrivateProviderRequestDataPolicyToJSON(updatePrivateProviderRequestDataPolicy: UpdatePrivateProviderRequestDataPolicy): string;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type UpdatePrivateProviderRequest$Outbound = {
|
|
35
|
+
base_url?: string | undefined;
|
|
36
|
+
data_policy?: UpdatePrivateProviderRequestDataPolicy$Outbound | undefined;
|
|
37
|
+
display_name?: string | undefined;
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const UpdatePrivateProviderRequest$outboundSchema: z.ZodType<UpdatePrivateProviderRequest$Outbound, UpdatePrivateProviderRequest>;
|
|
41
|
+
export declare function updatePrivateProviderRequestToJSON(updatePrivateProviderRequest: UpdatePrivateProviderRequest): string;
|
|
42
|
+
//# sourceMappingURL=updateprivateproviderrequest.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 52820b5609e0
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const UpdatePrivateProviderRequestDataPolicy$outboundSchema = z.object({
|
|
9
|
+
promptRetentionDays: z.nullable(z.int()).optional(),
|
|
10
|
+
retainsPrompts: z.boolean().optional(),
|
|
11
|
+
training: z.boolean().optional(),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
promptRetentionDays: "prompt_retention_days",
|
|
15
|
+
retainsPrompts: "retains_prompts",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function updatePrivateProviderRequestDataPolicyToJSON(updatePrivateProviderRequestDataPolicy) {
|
|
19
|
+
return JSON.stringify(UpdatePrivateProviderRequestDataPolicy$outboundSchema.parse(updatePrivateProviderRequestDataPolicy));
|
|
20
|
+
}
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const UpdatePrivateProviderRequest$outboundSchema = z.object({
|
|
23
|
+
baseUrl: z.string().optional(),
|
|
24
|
+
dataPolicy: z.lazy(() => UpdatePrivateProviderRequestDataPolicy$outboundSchema).optional(),
|
|
25
|
+
displayName: z.string().optional(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
baseUrl: "base_url",
|
|
29
|
+
dataPolicy: "data_policy",
|
|
30
|
+
displayName: "display_name",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
export function updatePrivateProviderRequestToJSON(updatePrivateProviderRequest) {
|
|
34
|
+
return JSON.stringify(UpdatePrivateProviderRequest$outboundSchema.parse(updatePrivateProviderRequest));
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=updateprivateproviderrequest.js.map
|
|
@@ -31,10 +31,10 @@ export declare class PrivateEndpoints extends ClientSDK {
|
|
|
31
31
|
*/
|
|
32
32
|
get(request: operations.GetPrivateEndpointRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
33
33
|
/**
|
|
34
|
-
* Update a
|
|
34
|
+
* Update a private endpoint
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
*
|
|
37
|
+
* Change any of the endpoint fields you own in one call; only the fields present change, and the response is the whole endpoint. `pricing` and `declared_parameters` replace their stored value, `settings` changes only the fields it names (`null` clears a limit or restores the provider default); routing picks these up for subsequent requests on drafts and active endpoints alike. `upstream_model_id`, `base_url`, `declared_zdr` and `declared_region` re-point a draft: an omitted `upstream_model_id` or `base_url` keeps the stored one, omitted data-policy declarations are kept while the upstream is unchanged and cleared when it changes, and any upstream change clears earlier validation. Naming an upstream field on an active endpoint returns 409 `already_active` and writes nothing; delete and re-create instead. Every group is checked before anything is written: 400 `parameters_invalid` when `tool_choice` is declared without `tools` tested or declared, 400 `settings_invalid` when `max_prompt_tokens` exceeds the context length, both completion APIs are off, or `excluded_parameters` names a tested parameter, 422 `pricing_invalid` for rates the provider strategy cannot represent. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
38
38
|
*/
|
|
39
39
|
update(request: operations.UpdatePrivateEndpointRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
40
40
|
/**
|
|
@@ -59,17 +59,21 @@ export declare class PrivateEndpoints extends ClientSDK {
|
|
|
59
59
|
*/
|
|
60
60
|
enable(request: operations.EnablePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
|
|
61
61
|
/**
|
|
62
|
-
* Set private endpoint supported parameters
|
|
62
|
+
* Set private endpoint supported parameters (deprecated)
|
|
63
63
|
*
|
|
64
64
|
* @remarks
|
|
65
|
-
*
|
|
65
|
+
* Deprecated: send `declared_parameters` to `PATCH /private-endpoints/{id}` instead; this route behaves exactly like that call and will be removed. The body replaces the earlier declaration and is read as a set; `tested_parameters` stay. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools` being tested or declared. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
66
|
+
*
|
|
67
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
66
68
|
*/
|
|
67
69
|
updateParameters(request: operations.UpdatePrivateEndpointParametersRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
68
70
|
/**
|
|
69
|
-
* Set private endpoint pricing
|
|
71
|
+
* Set private endpoint pricing (deprecated)
|
|
70
72
|
*
|
|
71
73
|
* @remarks
|
|
72
|
-
*
|
|
74
|
+
* Deprecated: send `pricing` to `PATCH /private-endpoints/{id}` instead; this route behaves exactly like that call and will be removed. The body replaces the whole pricing object: omitting `cache_read` or `cache_write` reverts that rate to the provider pricing strategy default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
75
|
+
*
|
|
76
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
73
77
|
*/
|
|
74
78
|
updatePricing(request: operations.UpdatePrivateEndpointPricingRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
75
79
|
/**
|