@openrouter/sdk 1.5.40 → 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/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/createprivateendpointrequest.d.ts +0 -5
- package/esm/models/createprivateendpointrequest.js +0 -2
- 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/index.d.ts +0 -2
- package/esm/models/operations/index.js +0 -2
- package/esm/sdk/privateendpoints.d.ts +0 -18
- package/esm/sdk/privateendpoints.js +0 -24
- package/jsr.json +1 -1
- package/package.json +5 -5
- 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
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
|
|
@@ -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",
|
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;
|
|
@@ -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";
|
|
@@ -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
|
-
"prepare": "npm run build",
|
|
78
|
-
"typecheck": "tsc --noEmit",
|
|
79
79
|
"postinstall": "node scripts/check-types.js || true",
|
|
80
|
+
"prepare": "npm run build",
|
|
80
81
|
"test": "vitest --run --project unit",
|
|
81
|
-
"test:e2e": "vitest --run --project e2e",
|
|
82
82
|
"test:transit": "exit 0",
|
|
83
83
|
"test:watch": "vitest --watch --project unit",
|
|
84
|
-
"typecheck
|
|
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
|