@openrouter/sdk 1.5.39 → 1.5.41
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/alphaDecisionsCreate.d.ts +1 -1
- package/esm/funcs/alphaDecisionsCreate.js +1 -1
- package/esm/funcs/modelsList.js +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/byokproviderslug.d.ts +1 -0
- package/esm/models/byokproviderslug.js +1 -0
- package/esm/models/createprivateendpointrequest.d.ts +0 -5
- package/esm/models/createprivateendpointrequest.js +0 -2
- package/esm/models/imagegenerationproviderpreferences.d.ts +6 -0
- package/esm/models/imagegenerationproviderpreferences.js +1 -0
- package/esm/models/index.d.ts +0 -2
- package/esm/models/index.js +0 -2
- package/esm/models/operations/createprivateendpoint.d.ts +1 -1
- package/esm/models/operations/getmodels.d.ts +5 -0
- package/esm/models/operations/getmodels.js +1 -0
- package/esm/models/operations/index.d.ts +0 -2
- package/esm/models/operations/index.js +0 -2
- package/esm/models/operations/listbyokkeys.d.ts +1 -0
- package/esm/models/operations/listbyokkeys.js +1 -0
- package/esm/models/providername.d.ts +1 -0
- package/esm/models/providername.js +1 -0
- package/esm/models/provideroptions.d.ts +6 -0
- package/esm/models/provideroptions.js +1 -0
- package/esm/models/providerresponse.d.ts +1 -0
- package/esm/models/providerresponse.js +1 -0
- package/esm/models/videogenerationrequest.d.ts +6 -0
- package/esm/models/videogenerationrequest.js +1 -0
- package/esm/sdk/decisions.d.ts +1 -1
- package/esm/sdk/decisions.js +1 -1
- package/esm/sdk/privateendpoints.d.ts +0 -18
- package/esm/sdk/privateendpoints.js +0 -24
- package/jsr.json +1 -1
- package/package.json +6 -6
- package/esm/funcs/privateEndpointsUpdateParameters.d.ts +0 -21
- package/esm/funcs/privateEndpointsUpdateParameters.js +0 -106
- package/esm/funcs/privateEndpointsUpdatePricing.d.ts +0 -21
- package/esm/funcs/privateEndpointsUpdatePricing.js +0 -108
- package/esm/models/operations/updateprivateendpointparameters.d.ts +0 -61
- package/esm/models/operations/updateprivateendpointparameters.js +0 -24
- package/esm/models/operations/updateprivateendpointpricing.d.ts +0 -61
- package/esm/models/operations/updateprivateendpointpricing.js +0 -24
- package/esm/models/updateprivateendpointparametersrequest.d.ts +0 -16
- package/esm/models/updateprivateendpointparametersrequest.js +0 -19
- package/esm/models/updateprivateendpointpricingrequest.d.ts +0 -16
- package/esm/models/updateprivateendpointpricingrequest.js +0 -14
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Submit a Decisions request
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Asks a Decisions model typed questions (`noul`, `choice`, `score`, `box`) about the content in `state` and returns one typed answer per question with its probabilities. Images, audio and video go in `state` as `image_url`, `input_audio` and `video_url` parts; PNG and JPEG images can instead go once in `assets` and be referenced by key. Which question types, media parts and asset references an endpoint accepts depends on the provider; a request an endpoint cannot serve fails with `400` before anything is sent upstream. See the [Multimodal Decisions guide](/docs/guides/community/multimodal-decisions) for the per-provider table. Alpha: the shape may change.
|
|
16
|
+
* Asks a Decisions model typed questions (`noul`, `choice`, `score`, `box`) about the content in `state` and returns one typed answer per question with its probabilities. Images, audio and video go in `state` as `image_url`, `input_audio` and `video_url` parts; PNG and JPEG images can instead go once in `assets` and be referenced by key. Which question types, media parts and asset references an endpoint accepts depends on the provider; a request an endpoint cannot serve fails with `400` before anything is sent upstream. See the [Multimodal Decisions guide](/docs/guides/community/multimodal-decisions) for the per-provider table. Typed fields (text, numbers, dates, lists, estimates, forecasts) come from [`POST /api/alpha/extractions`](/docs/guides/community/extractions), which takes the same envelope with `fields` in place of `questions` (text `state` only; images and PDFs go in `assets`). Alpha: the shape may change.
|
|
17
17
|
*/
|
|
18
18
|
export declare function alphaDecisionsCreate(client: OpenRouterCore, request: operations.CreateApiAlphaDecisionsRequest, options?: RequestOptions): APIPromise<Result<models.DecisionsResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.PaymentRequiredResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.PayloadTooLargeResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | errors.BadGatewayResponseError | errors.ServiceUnavailableResponseError | errors.EdgeNetworkTimeoutResponseError | errors.ProviderOverloadedResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=alphaDecisionsCreate.d.ts.map
|
|
@@ -18,7 +18,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
18
18
|
* Submit a Decisions request
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
|
-
* Asks a Decisions model typed questions (`noul`, `choice`, `score`, `box`) about the content in `state` and returns one typed answer per question with its probabilities. Images, audio and video go in `state` as `image_url`, `input_audio` and `video_url` parts; PNG and JPEG images can instead go once in `assets` and be referenced by key. Which question types, media parts and asset references an endpoint accepts depends on the provider; a request an endpoint cannot serve fails with `400` before anything is sent upstream. See the [Multimodal Decisions guide](/docs/guides/community/multimodal-decisions) for the per-provider table. Alpha: the shape may change.
|
|
21
|
+
* Asks a Decisions model typed questions (`noul`, `choice`, `score`, `box`) about the content in `state` and returns one typed answer per question with its probabilities. Images, audio and video go in `state` as `image_url`, `input_audio` and `video_url` parts; PNG and JPEG images can instead go once in `assets` and be referenced by key. Which question types, media parts and asset references an endpoint accepts depends on the provider; a request an endpoint cannot serve fails with `400` before anything is sent upstream. See the [Multimodal Decisions guide](/docs/guides/community/multimodal-decisions) for the per-provider table. Typed fields (text, numbers, dates, lists, estimates, forecasts) come from [`POST /api/alpha/extractions`](/docs/guides/community/extractions), which takes the same envelope with `fields` in place of `questions` (text `state` only; images and PDFs go in `assets`). Alpha: the shape may change.
|
|
22
22
|
*/
|
|
23
23
|
export function alphaDecisionsCreate(client, request, options) {
|
|
24
24
|
return new APIPromise($do(client, request, options));
|
package/esm/funcs/modelsList.js
CHANGED
|
@@ -32,6 +32,7 @@ async function $do(client, request, options) {
|
|
|
32
32
|
"category": payload?.category,
|
|
33
33
|
"context": payload?.context,
|
|
34
34
|
"distillable": payload?.distillable,
|
|
35
|
+
"endpoints": payload?.endpoints,
|
|
35
36
|
"input_modalities": payload?.input_modalities,
|
|
36
37
|
"limit": payload?.limit,
|
|
37
38
|
"max_age_days": payload?.max_age_days,
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
50
50
|
export declare const SDK_METADATA: {
|
|
51
51
|
readonly language: "typescript";
|
|
52
52
|
readonly openapiDocVersion: "1.0.0";
|
|
53
|
-
readonly sdkVersion: "1.5.
|
|
53
|
+
readonly sdkVersion: "1.5.41";
|
|
54
54
|
readonly genVersion: "2.950.13";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.41 2.950.13 1.0.0 @openrouter/sdk";
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
|
|
|
29
29
|
export const SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0.0",
|
|
32
|
-
sdkVersion: "1.5.
|
|
32
|
+
sdkVersion: "1.5.41",
|
|
33
33
|
genVersion: "2.950.13",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.5.41 2.950.13 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -12,6 +12,7 @@ export declare const BYOKProviderSlug: {
|
|
|
12
12
|
readonly AmazonBedrockClaudeOnAws: "amazon-bedrock/claude-on-aws";
|
|
13
13
|
readonly AmazonNova: "amazon-nova";
|
|
14
14
|
readonly Ambient: "ambient";
|
|
15
|
+
readonly Antdigital: "antdigital";
|
|
15
16
|
readonly Anthropic: "anthropic";
|
|
16
17
|
readonly Anthropic2: "anthropic/2";
|
|
17
18
|
readonly ArceeAi: "arcee-ai";
|
|
@@ -37,10 +37,6 @@ export type CreatePrivateEndpointRequest = {
|
|
|
37
37
|
* Attest that this deployment retains no prompt or completion data.
|
|
38
38
|
*/
|
|
39
39
|
declaredZdr?: boolean | null | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Cap on completion tokens per request. Requests asking for more skip this endpoint, and the default output length stays within it. When omitted, the cap is copied from the public endpoint for the same model and provider, if there is one.
|
|
42
|
-
*/
|
|
43
|
-
maxCompletionTokens?: number | undefined;
|
|
44
40
|
/**
|
|
45
41
|
* Permanent slug of the model this endpoint serves.
|
|
46
42
|
*/
|
|
@@ -71,7 +67,6 @@ export type CreatePrivateEndpointRequest$Outbound = {
|
|
|
71
67
|
declared_parameters?: Array<string> | undefined;
|
|
72
68
|
declared_region?: string | null | undefined;
|
|
73
69
|
declared_zdr?: boolean | null | undefined;
|
|
74
|
-
max_completion_tokens?: number | undefined;
|
|
75
70
|
model_permaslug: string;
|
|
76
71
|
pricing?: PrivateEndpointPricing$Outbound | undefined;
|
|
77
72
|
provider_slug: string;
|
|
@@ -28,7 +28,6 @@ export const CreatePrivateEndpointRequest$outboundSchema = z.object({
|
|
|
28
28
|
.optional(),
|
|
29
29
|
declaredRegion: z.nullable(CreatePrivateEndpointRequestDeclaredRegion$outboundSchema).optional(),
|
|
30
30
|
declaredZdr: z.nullable(z.boolean()).optional(),
|
|
31
|
-
maxCompletionTokens: z.int().optional(),
|
|
32
31
|
modelPermaslug: z.string(),
|
|
33
32
|
pricing: PrivateEndpointPricing$outboundSchema.optional(),
|
|
34
33
|
providerSlug: z.string(),
|
|
@@ -40,7 +39,6 @@ export const CreatePrivateEndpointRequest$outboundSchema = z.object({
|
|
|
40
39
|
declaredParameters: "declared_parameters",
|
|
41
40
|
declaredRegion: "declared_region",
|
|
42
41
|
declaredZdr: "declared_zdr",
|
|
43
|
-
maxCompletionTokens: "max_completion_tokens",
|
|
44
42
|
modelPermaslug: "model_permaslug",
|
|
45
43
|
providerSlug: "provider_slug",
|
|
46
44
|
upstreamModelId: "upstream_model_id",
|
|
@@ -35,6 +35,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
35
35
|
ambient?: {
|
|
36
36
|
[k: string]: any;
|
|
37
37
|
} | undefined;
|
|
38
|
+
antdigital?: {
|
|
39
|
+
[k: string]: any;
|
|
40
|
+
} | undefined;
|
|
38
41
|
anthropic?: {
|
|
39
42
|
[k: string]: any;
|
|
40
43
|
} | undefined;
|
|
@@ -539,6 +542,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
539
542
|
ambient?: {
|
|
540
543
|
[k: string]: any;
|
|
541
544
|
} | undefined;
|
|
545
|
+
antdigital?: {
|
|
546
|
+
[k: string]: any;
|
|
547
|
+
} | undefined;
|
|
542
548
|
anthropic?: {
|
|
543
549
|
[k: string]: any;
|
|
544
550
|
} | undefined;
|
|
@@ -28,6 +28,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
28
28
|
amazonBedrockClaudeOnAws: z.record(z.string(), z.any()).optional(),
|
|
29
29
|
amazonNova: z.record(z.string(), z.any()).optional(),
|
|
30
30
|
ambient: z.record(z.string(), z.any()).optional(),
|
|
31
|
+
antdigital: z.record(z.string(), z.any()).optional(),
|
|
31
32
|
anthropic: z.record(z.string(), z.any()).optional(),
|
|
32
33
|
anthropic2: z.record(z.string(), z.any()).optional(),
|
|
33
34
|
anyscale: z.record(z.string(), z.any()).optional(),
|
package/esm/models/index.d.ts
CHANGED
|
@@ -834,8 +834,6 @@ export * from "./updateguardrailresponse.js";
|
|
|
834
834
|
export * from "./updateobservabilitydestinationrequest.js";
|
|
835
835
|
export * from "./updateobservabilitydestinationresponse.js";
|
|
836
836
|
export * from "./updateorganizationsettingsrequest.js";
|
|
837
|
-
export * from "./updateprivateendpointparametersrequest.js";
|
|
838
|
-
export * from "./updateprivateendpointpricingrequest.js";
|
|
839
837
|
export * from "./updateprivateendpointrequest.js";
|
|
840
838
|
export * from "./updateprivateendpointsettingsrequest.js";
|
|
841
839
|
export * from "./updateprivateproviderrequest.js";
|
package/esm/models/index.js
CHANGED
|
@@ -838,8 +838,6 @@ export * from "./updateguardrailresponse.js";
|
|
|
838
838
|
export * from "./updateobservabilitydestinationrequest.js";
|
|
839
839
|
export * from "./updateobservabilitydestinationresponse.js";
|
|
840
840
|
export * from "./updateorganizationsettingsrequest.js";
|
|
841
|
-
export * from "./updateprivateendpointparametersrequest.js";
|
|
842
|
-
export * from "./updateprivateendpointpricingrequest.js";
|
|
843
841
|
export * from "./updateprivateendpointrequest.js";
|
|
844
842
|
export * from "./updateprivateendpointsettingsrequest.js";
|
|
845
843
|
export * from "./updateprivateproviderrequest.js";
|
|
@@ -42,7 +42,7 @@ export type CreatePrivateEndpointRequest = {
|
|
|
42
42
|
*/
|
|
43
43
|
appCategories?: string | undefined;
|
|
44
44
|
/**
|
|
45
|
-
* Retry-safe create: a repeated create with the same key from the same organization returns the endpoint the first request created instead of creating another. The endpoint is returned as it is now. Reusing a key with a different request body (model, provider, base URL, upstream model ID, declared ZDR or region, pricing, or declared parameters) is rejected with 422 `idempotency_key_reused`. Declared parameters are compared as a set, so a retry that reorders or repeats a name replays the endpoint. `activate` and `
|
|
45
|
+
* Retry-safe create: a repeated create with the same key from the same organization returns the endpoint the first request created instead of creating another. The endpoint is returned as it is now. Reusing a key with a different request body (model, provider, base URL, upstream model ID, declared ZDR or region, pricing, or declared parameters) is rejected with 422 `idempotency_key_reused`. Declared parameters are compared as a set, so a retry that reorders or repeats a name replays the endpoint. `activate` and `settings` are not compared, and later edits to the endpoint do not affect the comparison. `settings` is still validated before the replay, so a retry with invalid settings returns 400 `settings_invalid` instead of the endpoint.
|
|
46
46
|
*/
|
|
47
47
|
idempotencyKey?: string | undefined;
|
|
48
48
|
createPrivateEndpointRequest: models.CreatePrivateEndpointRequest;
|
|
@@ -150,6 +150,10 @@ export type GetModelsRequest = {
|
|
|
150
150
|
* Filter models by input modality. Comma-separated list of: text, image, audio, file.
|
|
151
151
|
*/
|
|
152
152
|
inputModalities?: string | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* Filter models by the request API paths they serve, as listed in each model's `endpoints` field. Comma-separated; a model must serve every listed path. Valid values: /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses, /api/v1/embeddings, /api/v1/rerank, /api/alpha/decisions, /api/alpha/extractions, /api/v1/videos, /api/v1/audio/speech, /api/v1/audio/transcriptions, /api/v1/images, /api/v1/batches. When set without `output_modalities`, models of every output modality are considered (the companion `/api/alpha/extractions` route is served by text and decisions models alike).
|
|
155
|
+
*/
|
|
156
|
+
endpoints?: string | undefined;
|
|
153
157
|
/**
|
|
154
158
|
* Minimum context length (tokens). Models with smaller context are excluded.
|
|
155
159
|
*/
|
|
@@ -261,6 +265,7 @@ export type GetModelsRequest$Outbound = {
|
|
|
261
265
|
sort?: string | undefined;
|
|
262
266
|
q?: string | undefined;
|
|
263
267
|
input_modalities?: string | undefined;
|
|
268
|
+
endpoints?: string | undefined;
|
|
264
269
|
context?: number | undefined;
|
|
265
270
|
min_price?: number | null | undefined;
|
|
266
271
|
max_price?: number | null | undefined;
|
|
@@ -85,6 +85,7 @@ export const GetModelsRequest$outboundSchema = z.object({
|
|
|
85
85
|
sort: GetModelsSort$outboundSchema.optional(),
|
|
86
86
|
q: z.string().optional(),
|
|
87
87
|
inputModalities: z.string().optional(),
|
|
88
|
+
endpoints: z.string().optional(),
|
|
88
89
|
context: z.int().optional(),
|
|
89
90
|
minPrice: z.nullable(z.number()).optional(),
|
|
90
91
|
maxPrice: z.nullable(z.number()).optional(),
|
|
@@ -135,8 +135,6 @@ export * from "./updatekeys.js";
|
|
|
135
135
|
export * from "./updateobservabilitydestination.js";
|
|
136
136
|
export * from "./updateorganizationsettings.js";
|
|
137
137
|
export * from "./updateprivateendpoint.js";
|
|
138
|
-
export * from "./updateprivateendpointparameters.js";
|
|
139
|
-
export * from "./updateprivateendpointpricing.js";
|
|
140
138
|
export * from "./updateprivateprovider.js";
|
|
141
139
|
export * from "./updatescimgroupmapping.js";
|
|
142
140
|
export * from "./updateworkspace.js";
|
|
@@ -139,8 +139,6 @@ export * from "./updatekeys.js";
|
|
|
139
139
|
export * from "./updateobservabilitydestination.js";
|
|
140
140
|
export * from "./updateorganizationsettings.js";
|
|
141
141
|
export * from "./updateprivateendpoint.js";
|
|
142
|
-
export * from "./updateprivateendpointparameters.js";
|
|
143
|
-
export * from "./updateprivateendpointpricing.js";
|
|
144
142
|
export * from "./updateprivateprovider.js";
|
|
145
143
|
export * from "./updatescimgroupmapping.js";
|
|
146
144
|
export * from "./updateworkspace.js";
|
|
@@ -36,6 +36,7 @@ export declare const Provider: {
|
|
|
36
36
|
readonly AmazonBedrockClaudeOnAws: "amazon-bedrock/claude-on-aws";
|
|
37
37
|
readonly AmazonNova: "amazon-nova";
|
|
38
38
|
readonly Ambient: "ambient";
|
|
39
|
+
readonly Antdigital: "antdigital";
|
|
39
40
|
readonly Anthropic: "anthropic";
|
|
40
41
|
readonly Anthropic2: "anthropic/2";
|
|
41
42
|
readonly ArceeAi: "arcee-ai";
|
|
@@ -7,6 +7,7 @@ export declare const ProviderName: {
|
|
|
7
7
|
readonly AionLabs: "AionLabs";
|
|
8
8
|
readonly Alibaba: "Alibaba";
|
|
9
9
|
readonly Ambient: "Ambient";
|
|
10
|
+
readonly AntDigital: "Ant Digital";
|
|
10
11
|
readonly Baidu: "Baidu";
|
|
11
12
|
readonly AmazonBedrock: "Amazon Bedrock";
|
|
12
13
|
readonly AmazonNova: "Amazon Nova";
|
|
@@ -30,6 +30,9 @@ export type ProviderOptions = {
|
|
|
30
30
|
ambient?: {
|
|
31
31
|
[k: string]: any;
|
|
32
32
|
} | undefined;
|
|
33
|
+
antdigital?: {
|
|
34
|
+
[k: string]: any;
|
|
35
|
+
} | undefined;
|
|
33
36
|
anthropic?: {
|
|
34
37
|
[k: string]: any;
|
|
35
38
|
} | undefined;
|
|
@@ -489,6 +492,9 @@ export type ProviderOptions$Outbound = {
|
|
|
489
492
|
ambient?: {
|
|
490
493
|
[k: string]: any;
|
|
491
494
|
} | undefined;
|
|
495
|
+
antdigital?: {
|
|
496
|
+
[k: string]: any;
|
|
497
|
+
} | undefined;
|
|
492
498
|
anthropic?: {
|
|
493
499
|
[k: string]: any;
|
|
494
500
|
} | undefined;
|
|
@@ -15,6 +15,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
15
15
|
amazonBedrockClaudeOnAws: z.record(z.string(), z.any()).optional(),
|
|
16
16
|
amazonNova: z.record(z.string(), z.any()).optional(),
|
|
17
17
|
ambient: z.record(z.string(), z.any()).optional(),
|
|
18
|
+
antdigital: z.record(z.string(), z.any()).optional(),
|
|
18
19
|
anthropic: z.record(z.string(), z.any()).optional(),
|
|
19
20
|
anthropic2: z.record(z.string(), z.any()).optional(),
|
|
20
21
|
anyscale: z.record(z.string(), z.any()).optional(),
|
|
@@ -40,6 +40,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
40
40
|
readonly AionLabs: "AionLabs";
|
|
41
41
|
readonly Alibaba: "Alibaba";
|
|
42
42
|
readonly Ambient: "Ambient";
|
|
43
|
+
readonly AntDigital: "Ant Digital";
|
|
43
44
|
readonly Baidu: "Baidu";
|
|
44
45
|
readonly AmazonBedrock: "Amazon Bedrock";
|
|
45
46
|
readonly AmazonNova: "Amazon Nova";
|
|
@@ -52,6 +52,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
52
52
|
ambient?: {
|
|
53
53
|
[k: string]: any;
|
|
54
54
|
} | undefined;
|
|
55
|
+
antdigital?: {
|
|
56
|
+
[k: string]: any;
|
|
57
|
+
} | undefined;
|
|
55
58
|
anthropic?: {
|
|
56
59
|
[k: string]: any;
|
|
57
60
|
} | undefined;
|
|
@@ -607,6 +610,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
607
610
|
ambient?: {
|
|
608
611
|
[k: string]: any;
|
|
609
612
|
} | undefined;
|
|
613
|
+
antdigital?: {
|
|
614
|
+
[k: string]: any;
|
|
615
|
+
} | undefined;
|
|
610
616
|
anthropic?: {
|
|
611
617
|
[k: string]: any;
|
|
612
618
|
} | undefined;
|
|
@@ -48,6 +48,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
48
48
|
amazonBedrockClaudeOnAws: z.record(z.string(), z.any()).optional(),
|
|
49
49
|
amazonNova: z.record(z.string(), z.any()).optional(),
|
|
50
50
|
ambient: z.record(z.string(), z.any()).optional(),
|
|
51
|
+
antdigital: z.record(z.string(), z.any()).optional(),
|
|
51
52
|
anthropic: z.record(z.string(), z.any()).optional(),
|
|
52
53
|
anthropic2: z.record(z.string(), z.any()).optional(),
|
|
53
54
|
anyscale: z.record(z.string(), z.any()).optional(),
|
package/esm/sdk/decisions.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class Decisions extends ClientSDK {
|
|
|
6
6
|
* Submit a Decisions request
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Asks a Decisions model typed questions (`noul`, `choice`, `score`, `box`) about the content in `state` and returns one typed answer per question with its probabilities. Images, audio and video go in `state` as `image_url`, `input_audio` and `video_url` parts; PNG and JPEG images can instead go once in `assets` and be referenced by key. Which question types, media parts and asset references an endpoint accepts depends on the provider; a request an endpoint cannot serve fails with `400` before anything is sent upstream. See the [Multimodal Decisions guide](/docs/guides/community/multimodal-decisions) for the per-provider table. Alpha: the shape may change.
|
|
9
|
+
* Asks a Decisions model typed questions (`noul`, `choice`, `score`, `box`) about the content in `state` and returns one typed answer per question with its probabilities. Images, audio and video go in `state` as `image_url`, `input_audio` and `video_url` parts; PNG and JPEG images can instead go once in `assets` and be referenced by key. Which question types, media parts and asset references an endpoint accepts depends on the provider; a request an endpoint cannot serve fails with `400` before anything is sent upstream. See the [Multimodal Decisions guide](/docs/guides/community/multimodal-decisions) for the per-provider table. Typed fields (text, numbers, dates, lists, estimates, forecasts) come from [`POST /api/alpha/extractions`](/docs/guides/community/extractions), which takes the same envelope with `fields` in place of `questions` (text `state` only; images and PDFs go in `assets`). Alpha: the shape may change.
|
|
10
10
|
*/
|
|
11
11
|
create(request: operations.CreateApiAlphaDecisionsRequest, options?: RequestOptions): Promise<models.DecisionsResponse>;
|
|
12
12
|
}
|
package/esm/sdk/decisions.js
CHANGED
|
@@ -10,7 +10,7 @@ export class Decisions extends ClientSDK {
|
|
|
10
10
|
* Submit a Decisions request
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Asks a Decisions model typed questions (`noul`, `choice`, `score`, `box`) about the content in `state` and returns one typed answer per question with its probabilities. Images, audio and video go in `state` as `image_url`, `input_audio` and `video_url` parts; PNG and JPEG images can instead go once in `assets` and be referenced by key. Which question types, media parts and asset references an endpoint accepts depends on the provider; a request an endpoint cannot serve fails with `400` before anything is sent upstream. See the [Multimodal Decisions guide](/docs/guides/community/multimodal-decisions) for the per-provider table. Alpha: the shape may change.
|
|
13
|
+
* Asks a Decisions model typed questions (`noul`, `choice`, `score`, `box`) about the content in `state` and returns one typed answer per question with its probabilities. Images, audio and video go in `state` as `image_url`, `input_audio` and `video_url` parts; PNG and JPEG images can instead go once in `assets` and be referenced by key. Which question types, media parts and asset references an endpoint accepts depends on the provider; a request an endpoint cannot serve fails with `400` before anything is sent upstream. See the [Multimodal Decisions guide](/docs/guides/community/multimodal-decisions) for the per-provider table. Typed fields (text, numbers, dates, lists, estimates, forecasts) come from [`POST /api/alpha/extractions`](/docs/guides/community/extractions), which takes the same envelope with `fields` in place of `questions` (text `state` only; images and PDFs go in `assets`). Alpha: the shape may change.
|
|
14
14
|
*/
|
|
15
15
|
async create(request, options) {
|
|
16
16
|
return unwrapAsync(alphaDecisionsCreate(this, request, options));
|
|
@@ -58,24 +58,6 @@ export declare class PrivateEndpoints extends ClientSDK {
|
|
|
58
58
|
* Resume routing to a disabled endpoint. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
59
59
|
*/
|
|
60
60
|
enable(request: operations.EnablePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
|
|
61
|
-
/**
|
|
62
|
-
* Set private endpoint supported parameters (deprecated)
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
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.
|
|
68
|
-
*/
|
|
69
|
-
updateParameters(request: operations.UpdatePrivateEndpointParametersRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* Set private endpoint pricing (deprecated)
|
|
72
|
-
*
|
|
73
|
-
* @remarks
|
|
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.
|
|
77
|
-
*/
|
|
78
|
-
updatePricing(request: operations.UpdatePrivateEndpointPricingRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
79
61
|
/**
|
|
80
62
|
* Validate a draft private endpoint
|
|
81
63
|
*
|
|
@@ -10,8 +10,6 @@ import { privateEndpointsEnable } from "../funcs/privateEndpointsEnable.js";
|
|
|
10
10
|
import { privateEndpointsGet } from "../funcs/privateEndpointsGet.js";
|
|
11
11
|
import { privateEndpointsList } from "../funcs/privateEndpointsList.js";
|
|
12
12
|
import { privateEndpointsUpdate } from "../funcs/privateEndpointsUpdate.js";
|
|
13
|
-
import { privateEndpointsUpdateParameters } from "../funcs/privateEndpointsUpdateParameters.js";
|
|
14
|
-
import { privateEndpointsUpdatePricing } from "../funcs/privateEndpointsUpdatePricing.js";
|
|
15
13
|
import { privateEndpointsValidate } from "../funcs/privateEndpointsValidate.js";
|
|
16
14
|
import { ClientSDK } from "../lib/sdks.js";
|
|
17
15
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -88,28 +86,6 @@ export class PrivateEndpoints extends ClientSDK {
|
|
|
88
86
|
async enable(request, options) {
|
|
89
87
|
return unwrapAsync(privateEndpointsEnable(this, request, options));
|
|
90
88
|
}
|
|
91
|
-
/**
|
|
92
|
-
* Set private endpoint supported parameters (deprecated)
|
|
93
|
-
*
|
|
94
|
-
* @remarks
|
|
95
|
-
* 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.
|
|
96
|
-
*
|
|
97
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
98
|
-
*/
|
|
99
|
-
async updateParameters(request, options) {
|
|
100
|
-
return unwrapAsync(privateEndpointsUpdateParameters(this, request, options));
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Set private endpoint pricing (deprecated)
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
* 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.
|
|
107
|
-
*
|
|
108
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
109
|
-
*/
|
|
110
|
-
async updatePricing(request, options) {
|
|
111
|
-
return unwrapAsync(privateEndpointsUpdatePricing(this, request, options));
|
|
112
|
-
}
|
|
113
89
|
/**
|
|
114
90
|
* Validate a draft private endpoint
|
|
115
91
|
*
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.41",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
+
"test:e2e": "vitest --run --project e2e",
|
|
77
|
+
"typecheck:transit": "exit 0",
|
|
76
78
|
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
77
79
|
"postinstall": "node scripts/check-types.js || true",
|
|
78
|
-
"test:e2e": "vitest --run --project e2e",
|
|
79
|
-
"test:transit": "exit 0",
|
|
80
|
-
"test:watch": "vitest --watch --project unit",
|
|
81
|
-
"typecheck": "tsc --noEmit",
|
|
82
80
|
"prepare": "npm run build",
|
|
83
81
|
"test": "vitest --run --project unit",
|
|
84
|
-
"
|
|
82
|
+
"test:transit": "exit 0",
|
|
83
|
+
"test:watch": "vitest --watch --project unit",
|
|
84
|
+
"typecheck": "tsc --noEmit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OpenRouterCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { OpenRouterError } from "../models/errors/openroutererror.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as models from "../models/index.js";
|
|
9
|
-
import * as operations from "../models/operations/index.js";
|
|
10
|
-
import { APIPromise } from "../types/async.js";
|
|
11
|
-
import { Result } from "../types/fp.js";
|
|
12
|
-
/**
|
|
13
|
-
* Set private endpoint supported parameters (deprecated)
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* 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.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
19
|
-
*/
|
|
20
|
-
export declare function privateEndpointsUpdateParameters(client: OpenRouterCore, request: operations.UpdatePrivateEndpointParametersRequest, options?: RequestOptions): APIPromise<Result<models.PrivateEndpointResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.RequestTimeoutResponseError | errors.ConflictResponseError | errors.UnprocessableEntityResponseError | errors.InternalServerResponseError | errors.BadGatewayResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
21
|
-
//# sourceMappingURL=privateEndpointsUpdateParameters.d.ts.map
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: a541ac958e3d
|
|
4
|
-
*/
|
|
5
|
-
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
6
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
-
import { pathToFunc } from "../lib/url.js";
|
|
12
|
-
import { BadGatewayResponseError$inboundSchema as errors_BadGatewayResponseError$inboundSchema } from "../models/errors/badgatewayresponseerror.js"; import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ConflictResponseError$inboundSchema as errors_ConflictResponseError$inboundSchema } from "../models/errors/conflictresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { RequestTimeoutResponseError$inboundSchema as errors_RequestTimeoutResponseError$inboundSchema } from "../models/errors/requesttimeoutresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js"; import { UnprocessableEntityResponseError$inboundSchema as errors_UnprocessableEntityResponseError$inboundSchema } from "../models/errors/unprocessableentityresponseerror.js";
|
|
13
|
-
import { PrivateEndpointResponse$inboundSchema as models_PrivateEndpointResponse$inboundSchema } from "../models/privateendpointresponse.js";
|
|
14
|
-
import { UpdatePrivateEndpointParametersRequest$outboundSchema as operations_UpdatePrivateEndpointParametersRequest$outboundSchema } from "../models/operations/updateprivateendpointparameters.js";
|
|
15
|
-
import { APIPromise } from "../types/async.js";
|
|
16
|
-
/**
|
|
17
|
-
* Set private endpoint supported parameters (deprecated)
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* 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.
|
|
21
|
-
*
|
|
22
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
23
|
-
*/
|
|
24
|
-
export function privateEndpointsUpdateParameters(client, request, options) {
|
|
25
|
-
return new APIPromise($do(client, request, options));
|
|
26
|
-
}
|
|
27
|
-
async function $do(client, request, options) {
|
|
28
|
-
const parsed = safeParse(request, (value) => operations_UpdatePrivateEndpointParametersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
29
|
-
if (!parsed.ok) {
|
|
30
|
-
return [parsed, { status: "invalid" }];
|
|
31
|
-
}
|
|
32
|
-
const payload = parsed.value;
|
|
33
|
-
const body = encodeJSON("body", payload.UpdatePrivateEndpointParametersRequest, { explode: true });
|
|
34
|
-
const pathParams = {
|
|
35
|
-
id: encodeSimple("id", payload.id, {
|
|
36
|
-
explode: false,
|
|
37
|
-
charEncoding: "percent",
|
|
38
|
-
}),
|
|
39
|
-
};
|
|
40
|
-
const path = pathToFunc("/private-endpoints/{id}/parameters")(pathParams);
|
|
41
|
-
const headers = new Headers(compactMap({
|
|
42
|
-
"Content-Type": "application/json",
|
|
43
|
-
Accept: "application/json",
|
|
44
|
-
"HTTP-Referer": encodeSimple("HTTP-Referer", payload["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
|
|
45
|
-
"X-OpenRouter-Categories": encodeSimple("X-OpenRouter-Categories", payload.appCategories ?? client._options.appCategories, { explode: false, charEncoding: "none" }),
|
|
46
|
-
"X-OpenRouter-Title": encodeSimple("X-OpenRouter-Title", payload.appTitle ?? client._options.appTitle, { explode: false, charEncoding: "none" }),
|
|
47
|
-
}));
|
|
48
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
49
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
50
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
51
|
-
const context = {
|
|
52
|
-
options: client._options,
|
|
53
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
54
|
-
operationID: "updatePrivateEndpointParameters",
|
|
55
|
-
oAuth2Scopes: null,
|
|
56
|
-
resolvedSecurity: requestSecurity,
|
|
57
|
-
securitySource: client._options.apiKey,
|
|
58
|
-
retryConfig: options?.retries
|
|
59
|
-
|| client._options.retryConfig
|
|
60
|
-
|| {
|
|
61
|
-
strategy: "backoff",
|
|
62
|
-
backoff: {
|
|
63
|
-
initialInterval: 500,
|
|
64
|
-
maxInterval: 60000,
|
|
65
|
-
exponent: 1.5,
|
|
66
|
-
maxElapsedTime: 3600000,
|
|
67
|
-
},
|
|
68
|
-
retryConnectionErrors: true,
|
|
69
|
-
}
|
|
70
|
-
|| { strategy: "none" },
|
|
71
|
-
retryCodes: options?.retryCodes || ["5XX"],
|
|
72
|
-
};
|
|
73
|
-
const requestRes = client._createRequest(context, {
|
|
74
|
-
security: requestSecurity,
|
|
75
|
-
method: "PUT",
|
|
76
|
-
baseURL: options?.serverURL,
|
|
77
|
-
path: path,
|
|
78
|
-
headers: headers,
|
|
79
|
-
body: body,
|
|
80
|
-
userAgent: client._options.userAgent,
|
|
81
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
82
|
-
}, options);
|
|
83
|
-
if (!requestRes.ok) {
|
|
84
|
-
return [requestRes, { status: "invalid" }];
|
|
85
|
-
}
|
|
86
|
-
const req = requestRes.value;
|
|
87
|
-
const doResult = await client._do(req, {
|
|
88
|
-
context,
|
|
89
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
90
|
-
retryConfig: context.retryConfig,
|
|
91
|
-
retryCodes: context.retryCodes,
|
|
92
|
-
});
|
|
93
|
-
if (!doResult.ok) {
|
|
94
|
-
return [doResult, { status: "request-error", request: req }];
|
|
95
|
-
}
|
|
96
|
-
const response = doResult.value;
|
|
97
|
-
const responseFields = {
|
|
98
|
-
HttpMeta: { Response: response, Request: req },
|
|
99
|
-
};
|
|
100
|
-
const [result] = await M.match(M.json(200, models_PrivateEndpointResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(408, errors_RequestTimeoutResponseError$inboundSchema), M.jsonErr(409, errors_ConflictResponseError$inboundSchema), M.jsonErr(422, errors_UnprocessableEntityResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.jsonErr(502, errors_BadGatewayResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
101
|
-
if (!result.ok) {
|
|
102
|
-
return [result, { status: "complete", request: req, response }];
|
|
103
|
-
}
|
|
104
|
-
return [result, { status: "complete", request: req, response }];
|
|
105
|
-
}
|
|
106
|
-
//# sourceMappingURL=privateEndpointsUpdateParameters.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OpenRouterCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { OpenRouterError } from "../models/errors/openroutererror.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as models from "../models/index.js";
|
|
9
|
-
import * as operations from "../models/operations/index.js";
|
|
10
|
-
import { APIPromise } from "../types/async.js";
|
|
11
|
-
import { Result } from "../types/fp.js";
|
|
12
|
-
/**
|
|
13
|
-
* Set private endpoint pricing (deprecated)
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* 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.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
19
|
-
*/
|
|
20
|
-
export declare function privateEndpointsUpdatePricing(client: OpenRouterCore, request: operations.UpdatePrivateEndpointPricingRequest, options?: RequestOptions): APIPromise<Result<models.PrivateEndpointResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.RequestTimeoutResponseError | errors.ConflictResponseError | errors.UnprocessableEntityResponseError | errors.InternalServerResponseError | errors.BadGatewayResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
21
|
-
//# sourceMappingURL=privateEndpointsUpdatePricing.d.ts.map
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 5824e06c594a
|
|
4
|
-
*/
|
|
5
|
-
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
6
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
-
import { pathToFunc } from "../lib/url.js";
|
|
12
|
-
import { BadGatewayResponseError$inboundSchema as errors_BadGatewayResponseError$inboundSchema } from "../models/errors/badgatewayresponseerror.js"; import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ConflictResponseError$inboundSchema as errors_ConflictResponseError$inboundSchema } from "../models/errors/conflictresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { RequestTimeoutResponseError$inboundSchema as errors_RequestTimeoutResponseError$inboundSchema } from "../models/errors/requesttimeoutresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js"; import { UnprocessableEntityResponseError$inboundSchema as errors_UnprocessableEntityResponseError$inboundSchema } from "../models/errors/unprocessableentityresponseerror.js";
|
|
13
|
-
import { PrivateEndpointResponse$inboundSchema as models_PrivateEndpointResponse$inboundSchema } from "../models/privateendpointresponse.js";
|
|
14
|
-
import { UpdatePrivateEndpointPricingRequest$outboundSchema as operations_UpdatePrivateEndpointPricingRequest$outboundSchema } from "../models/operations/updateprivateendpointpricing.js";
|
|
15
|
-
import { APIPromise } from "../types/async.js";
|
|
16
|
-
/**
|
|
17
|
-
* Set private endpoint pricing (deprecated)
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* 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.
|
|
21
|
-
*
|
|
22
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
23
|
-
*/
|
|
24
|
-
export function privateEndpointsUpdatePricing(client, request, options) {
|
|
25
|
-
return new APIPromise($do(client, request, options));
|
|
26
|
-
}
|
|
27
|
-
async function $do(client, request, options) {
|
|
28
|
-
const parsed = safeParse(request, (value) => operations_UpdatePrivateEndpointPricingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
29
|
-
if (!parsed.ok) {
|
|
30
|
-
return [parsed, { status: "invalid" }];
|
|
31
|
-
}
|
|
32
|
-
const payload = parsed.value;
|
|
33
|
-
const body = encodeJSON("body", payload.UpdatePrivateEndpointPricingRequest, {
|
|
34
|
-
explode: true,
|
|
35
|
-
});
|
|
36
|
-
const pathParams = {
|
|
37
|
-
id: encodeSimple("id", payload.id, {
|
|
38
|
-
explode: false,
|
|
39
|
-
charEncoding: "percent",
|
|
40
|
-
}),
|
|
41
|
-
};
|
|
42
|
-
const path = pathToFunc("/private-endpoints/{id}/pricing")(pathParams);
|
|
43
|
-
const headers = new Headers(compactMap({
|
|
44
|
-
"Content-Type": "application/json",
|
|
45
|
-
Accept: "application/json",
|
|
46
|
-
"HTTP-Referer": encodeSimple("HTTP-Referer", payload["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
|
|
47
|
-
"X-OpenRouter-Categories": encodeSimple("X-OpenRouter-Categories", payload.appCategories ?? client._options.appCategories, { explode: false, charEncoding: "none" }),
|
|
48
|
-
"X-OpenRouter-Title": encodeSimple("X-OpenRouter-Title", payload.appTitle ?? client._options.appTitle, { explode: false, charEncoding: "none" }),
|
|
49
|
-
}));
|
|
50
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
51
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
52
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
53
|
-
const context = {
|
|
54
|
-
options: client._options,
|
|
55
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
56
|
-
operationID: "updatePrivateEndpointPricing",
|
|
57
|
-
oAuth2Scopes: null,
|
|
58
|
-
resolvedSecurity: requestSecurity,
|
|
59
|
-
securitySource: client._options.apiKey,
|
|
60
|
-
retryConfig: options?.retries
|
|
61
|
-
|| client._options.retryConfig
|
|
62
|
-
|| {
|
|
63
|
-
strategy: "backoff",
|
|
64
|
-
backoff: {
|
|
65
|
-
initialInterval: 500,
|
|
66
|
-
maxInterval: 60000,
|
|
67
|
-
exponent: 1.5,
|
|
68
|
-
maxElapsedTime: 3600000,
|
|
69
|
-
},
|
|
70
|
-
retryConnectionErrors: true,
|
|
71
|
-
}
|
|
72
|
-
|| { strategy: "none" },
|
|
73
|
-
retryCodes: options?.retryCodes || ["5XX"],
|
|
74
|
-
};
|
|
75
|
-
const requestRes = client._createRequest(context, {
|
|
76
|
-
security: requestSecurity,
|
|
77
|
-
method: "PUT",
|
|
78
|
-
baseURL: options?.serverURL,
|
|
79
|
-
path: path,
|
|
80
|
-
headers: headers,
|
|
81
|
-
body: body,
|
|
82
|
-
userAgent: client._options.userAgent,
|
|
83
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
84
|
-
}, options);
|
|
85
|
-
if (!requestRes.ok) {
|
|
86
|
-
return [requestRes, { status: "invalid" }];
|
|
87
|
-
}
|
|
88
|
-
const req = requestRes.value;
|
|
89
|
-
const doResult = await client._do(req, {
|
|
90
|
-
context,
|
|
91
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
92
|
-
retryConfig: context.retryConfig,
|
|
93
|
-
retryCodes: context.retryCodes,
|
|
94
|
-
});
|
|
95
|
-
if (!doResult.ok) {
|
|
96
|
-
return [doResult, { status: "request-error", request: req }];
|
|
97
|
-
}
|
|
98
|
-
const response = doResult.value;
|
|
99
|
-
const responseFields = {
|
|
100
|
-
HttpMeta: { Response: response, Request: req },
|
|
101
|
-
};
|
|
102
|
-
const [result] = await M.match(M.json(200, models_PrivateEndpointResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(408, errors_RequestTimeoutResponseError$inboundSchema), M.jsonErr(409, errors_ConflictResponseError$inboundSchema), M.jsonErr(422, errors_UnprocessableEntityResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.jsonErr(502, errors_BadGatewayResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
103
|
-
if (!result.ok) {
|
|
104
|
-
return [result, { status: "complete", request: req, response }];
|
|
105
|
-
}
|
|
106
|
-
return [result, { status: "complete", request: req, response }];
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=privateEndpointsUpdatePricing.js.map
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import * as models from "../index.js";
|
|
3
|
-
export type UpdatePrivateEndpointParametersGlobals = {
|
|
4
|
-
/**
|
|
5
|
-
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* This is used to track API usage per application.
|
|
9
|
-
*/
|
|
10
|
-
httpReferer?: string | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
*/
|
|
16
|
-
appTitle?: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
*/
|
|
22
|
-
appCategories?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
export type UpdatePrivateEndpointParametersRequest = {
|
|
25
|
-
/**
|
|
26
|
-
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* This is used to track API usage per application.
|
|
30
|
-
*/
|
|
31
|
-
httpReferer?: string | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
*/
|
|
37
|
-
appTitle?: string | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
40
|
-
*
|
|
41
|
-
* @remarks
|
|
42
|
-
*/
|
|
43
|
-
appCategories?: string | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Stable identifier of the private endpoint.
|
|
46
|
-
*/
|
|
47
|
-
id: string;
|
|
48
|
-
updatePrivateEndpointParametersRequest: models.UpdatePrivateEndpointParametersRequest;
|
|
49
|
-
};
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type UpdatePrivateEndpointParametersRequest$Outbound = {
|
|
52
|
-
"HTTP-Referer"?: string | undefined;
|
|
53
|
-
appTitle?: string | undefined;
|
|
54
|
-
appCategories?: string | undefined;
|
|
55
|
-
id: string;
|
|
56
|
-
UpdatePrivateEndpointParametersRequest: models.UpdatePrivateEndpointParametersRequest$Outbound;
|
|
57
|
-
};
|
|
58
|
-
/** @internal */
|
|
59
|
-
export declare const UpdatePrivateEndpointParametersRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointParametersRequest$Outbound, UpdatePrivateEndpointParametersRequest>;
|
|
60
|
-
export declare function updatePrivateEndpointParametersRequestToJSON(updatePrivateEndpointParametersRequest: UpdatePrivateEndpointParametersRequest): string;
|
|
61
|
-
//# sourceMappingURL=updateprivateendpointparameters.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 7665d9dbe783
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { UpdatePrivateEndpointParametersRequest$outboundSchema as models_UpdatePrivateEndpointParametersRequest$outboundSchema } from "../updateprivateendpointparametersrequest.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const UpdatePrivateEndpointParametersRequest$outboundSchema = z.object({
|
|
10
|
-
httpReferer: z.string().optional(),
|
|
11
|
-
appTitle: z.string().optional(),
|
|
12
|
-
appCategories: z.string().optional(),
|
|
13
|
-
id: z.string(),
|
|
14
|
-
updatePrivateEndpointParametersRequest: models_UpdatePrivateEndpointParametersRequest$outboundSchema,
|
|
15
|
-
}).transform((v) => {
|
|
16
|
-
return remap$(v, {
|
|
17
|
-
httpReferer: "HTTP-Referer",
|
|
18
|
-
updatePrivateEndpointParametersRequest: "UpdatePrivateEndpointParametersRequest",
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
export function updatePrivateEndpointParametersRequestToJSON(updatePrivateEndpointParametersRequest) {
|
|
22
|
-
return JSON.stringify(UpdatePrivateEndpointParametersRequest$outboundSchema.parse(updatePrivateEndpointParametersRequest));
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=updateprivateendpointparameters.js.map
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import * as models from "../index.js";
|
|
3
|
-
export type UpdatePrivateEndpointPricingGlobals = {
|
|
4
|
-
/**
|
|
5
|
-
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* This is used to track API usage per application.
|
|
9
|
-
*/
|
|
10
|
-
httpReferer?: string | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
*/
|
|
16
|
-
appTitle?: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
*/
|
|
22
|
-
appCategories?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
export type UpdatePrivateEndpointPricingRequest = {
|
|
25
|
-
/**
|
|
26
|
-
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* This is used to track API usage per application.
|
|
30
|
-
*/
|
|
31
|
-
httpReferer?: string | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
*/
|
|
37
|
-
appTitle?: string | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
40
|
-
*
|
|
41
|
-
* @remarks
|
|
42
|
-
*/
|
|
43
|
-
appCategories?: string | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Stable identifier of the private endpoint.
|
|
46
|
-
*/
|
|
47
|
-
id: string;
|
|
48
|
-
updatePrivateEndpointPricingRequest: models.UpdatePrivateEndpointPricingRequest;
|
|
49
|
-
};
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type UpdatePrivateEndpointPricingRequest$Outbound = {
|
|
52
|
-
"HTTP-Referer"?: string | undefined;
|
|
53
|
-
appTitle?: string | undefined;
|
|
54
|
-
appCategories?: string | undefined;
|
|
55
|
-
id: string;
|
|
56
|
-
UpdatePrivateEndpointPricingRequest: models.UpdatePrivateEndpointPricingRequest$Outbound;
|
|
57
|
-
};
|
|
58
|
-
/** @internal */
|
|
59
|
-
export declare const UpdatePrivateEndpointPricingRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointPricingRequest$Outbound, UpdatePrivateEndpointPricingRequest>;
|
|
60
|
-
export declare function updatePrivateEndpointPricingRequestToJSON(updatePrivateEndpointPricingRequest: UpdatePrivateEndpointPricingRequest): string;
|
|
61
|
-
//# sourceMappingURL=updateprivateendpointpricing.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 412bca3c778f
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { UpdatePrivateEndpointPricingRequest$outboundSchema as models_UpdatePrivateEndpointPricingRequest$outboundSchema } from "../updateprivateendpointpricingrequest.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const UpdatePrivateEndpointPricingRequest$outboundSchema = z.object({
|
|
10
|
-
httpReferer: z.string().optional(),
|
|
11
|
-
appTitle: z.string().optional(),
|
|
12
|
-
appCategories: z.string().optional(),
|
|
13
|
-
id: z.string(),
|
|
14
|
-
updatePrivateEndpointPricingRequest: models_UpdatePrivateEndpointPricingRequest$outboundSchema,
|
|
15
|
-
}).transform((v) => {
|
|
16
|
-
return remap$(v, {
|
|
17
|
-
httpReferer: "HTTP-Referer",
|
|
18
|
-
updatePrivateEndpointPricingRequest: "UpdatePrivateEndpointPricingRequest",
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
export function updatePrivateEndpointPricingRequestToJSON(updatePrivateEndpointPricingRequest) {
|
|
22
|
-
return JSON.stringify(UpdatePrivateEndpointPricingRequest$outboundSchema.parse(updatePrivateEndpointPricingRequest));
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=updateprivateendpointpricing.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { PrivateEndpointDeclaredParameter } from "./privateendpointdeclaredparameter.js";
|
|
3
|
-
export type UpdatePrivateEndpointParametersRequest = {
|
|
4
|
-
/**
|
|
5
|
-
* 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.
|
|
6
|
-
*/
|
|
7
|
-
declaredParameters: Array<PrivateEndpointDeclaredParameter>;
|
|
8
|
-
};
|
|
9
|
-
/** @internal */
|
|
10
|
-
export type UpdatePrivateEndpointParametersRequest$Outbound = {
|
|
11
|
-
declared_parameters: Array<string>;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const UpdatePrivateEndpointParametersRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointParametersRequest$Outbound, UpdatePrivateEndpointParametersRequest>;
|
|
15
|
-
export declare function updatePrivateEndpointParametersRequestToJSON(updatePrivateEndpointParametersRequest: UpdatePrivateEndpointParametersRequest): string;
|
|
16
|
-
//# sourceMappingURL=updateprivateendpointparametersrequest.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 07aff12e19d4
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import { PrivateEndpointDeclaredParameter$outboundSchema, } from "./privateendpointdeclaredparameter.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const UpdatePrivateEndpointParametersRequest$outboundSchema = z.object({
|
|
10
|
-
declaredParameters: z.array(PrivateEndpointDeclaredParameter$outboundSchema),
|
|
11
|
-
}).transform((v) => {
|
|
12
|
-
return remap$(v, {
|
|
13
|
-
declaredParameters: "declared_parameters",
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
export function updatePrivateEndpointParametersRequestToJSON(updatePrivateEndpointParametersRequest) {
|
|
17
|
-
return JSON.stringify(UpdatePrivateEndpointParametersRequest$outboundSchema.parse(updatePrivateEndpointParametersRequest));
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=updateprivateendpointparametersrequest.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { PrivateEndpointPricing, PrivateEndpointPricing$Outbound } from "./privateendpointpricing.js";
|
|
3
|
-
export type UpdatePrivateEndpointPricingRequest = {
|
|
4
|
-
/**
|
|
5
|
-
* Negotiated per-token rates reported for requests routed to this endpoint.
|
|
6
|
-
*/
|
|
7
|
-
pricing: PrivateEndpointPricing;
|
|
8
|
-
};
|
|
9
|
-
/** @internal */
|
|
10
|
-
export type UpdatePrivateEndpointPricingRequest$Outbound = {
|
|
11
|
-
pricing: PrivateEndpointPricing$Outbound;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const UpdatePrivateEndpointPricingRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointPricingRequest$Outbound, UpdatePrivateEndpointPricingRequest>;
|
|
15
|
-
export declare function updatePrivateEndpointPricingRequestToJSON(updatePrivateEndpointPricingRequest: UpdatePrivateEndpointPricingRequest): string;
|
|
16
|
-
//# sourceMappingURL=updateprivateendpointpricingrequest.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: af98cc8bf348
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { PrivateEndpointPricing$outboundSchema, } from "./privateendpointpricing.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const UpdatePrivateEndpointPricingRequest$outboundSchema = z.object({
|
|
9
|
-
pricing: PrivateEndpointPricing$outboundSchema,
|
|
10
|
-
});
|
|
11
|
-
export function updatePrivateEndpointPricingRequestToJSON(updatePrivateEndpointPricingRequest) {
|
|
12
|
-
return JSON.stringify(UpdatePrivateEndpointPricingRequest$outboundSchema.parse(updatePrivateEndpointPricingRequest));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=updateprivateendpointpricingrequest.js.map
|