@openrouter/sdk 1.3.36 → 1.4.0
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/privateEndpointsActivate.d.ts +19 -0
- package/esm/funcs/privateEndpointsActivate.js +103 -0
- package/esm/funcs/privateEndpointsCreate.d.ts +19 -0
- package/esm/funcs/privateEndpointsCreate.js +101 -0
- package/esm/funcs/privateEndpointsDelete.d.ts +19 -0
- package/esm/funcs/privateEndpointsDelete.js +107 -0
- package/esm/funcs/privateEndpointsDisable.d.ts +19 -0
- package/esm/funcs/privateEndpointsDisable.js +103 -0
- package/esm/funcs/privateEndpointsEnable.d.ts +19 -0
- package/esm/funcs/privateEndpointsEnable.js +103 -0
- package/esm/funcs/privateEndpointsGet.d.ts +19 -0
- package/esm/funcs/privateEndpointsGet.js +103 -0
- package/esm/funcs/privateEndpointsList.d.ts +19 -0
- package/esm/funcs/privateEndpointsList.js +97 -0
- package/esm/funcs/privateEndpointsUpdate.d.ts +19 -0
- package/esm/funcs/privateEndpointsUpdate.js +106 -0
- package/esm/funcs/privateEndpointsUpdatePricing.d.ts +19 -0
- package/esm/funcs/privateEndpointsUpdatePricing.js +106 -0
- package/esm/funcs/privateEndpointsValidate.d.ts +19 -0
- package/esm/funcs/privateEndpointsValidate.js +106 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/createprivateendpointrequest.d.ts +67 -0
- package/esm/models/createprivateendpointrequest.js +44 -0
- package/esm/models/createprivateendpointvalidationfailedresponseerror.d.ts +20 -0
- package/esm/models/createprivateendpointvalidationfailedresponseerror.js +27 -0
- package/esm/models/deleteprivateendpointresponse.d.ts +19 -0
- package/esm/models/deleteprivateendpointresponse.js +21 -0
- package/esm/models/errors/createprivateendpoint.d.ts +45 -0
- package/esm/models/errors/createprivateendpoint.js +53 -0
- package/esm/models/errors/createprivateendpointvalidationfailedresponseerror.d.ts +21 -0
- package/esm/models/errors/createprivateendpointvalidationfailedresponseerror.js +35 -0
- package/esm/models/errors/index.d.ts +2 -0
- package/esm/models/errors/index.js +2 -0
- package/esm/models/index.d.ts +21 -0
- package/esm/models/index.js +21 -0
- package/esm/models/listprivateendpointsresponse.d.ts +11 -0
- package/esm/models/listprivateendpointsresponse.js +15 -0
- package/esm/models/managedprivateendpoint.d.ts +47 -0
- package/esm/models/managedprivateendpoint.js +35 -0
- package/esm/models/managedprivateendpointresponse.d.ts +11 -0
- package/esm/models/managedprivateendpointresponse.js +15 -0
- package/esm/models/operations/activateprivateendpoint.d.ts +58 -0
- package/esm/models/operations/activateprivateendpoint.js +21 -0
- package/esm/models/operations/createprivateendpoint.d.ts +61 -0
- package/esm/models/operations/createprivateendpoint.js +25 -0
- package/esm/models/operations/deleteprivateendpoint.d.ts +77 -0
- package/esm/models/operations/deleteprivateendpoint.js +34 -0
- package/esm/models/operations/disableprivateendpoint.d.ts +58 -0
- package/esm/models/operations/disableprivateendpoint.js +21 -0
- package/esm/models/operations/enableprivateendpoint.d.ts +58 -0
- package/esm/models/operations/enableprivateendpoint.js +21 -0
- package/esm/models/operations/getprivateendpoint.d.ts +58 -0
- package/esm/models/operations/getprivateendpoint.js +21 -0
- package/esm/models/operations/index.d.ts +10 -0
- package/esm/models/operations/index.js +10 -0
- package/esm/models/operations/listprivateendpoints.d.ts +53 -0
- package/esm/models/operations/listprivateendpoints.js +20 -0
- package/esm/models/operations/updateprivateendpoint.d.ts +61 -0
- package/esm/models/operations/updateprivateendpoint.js +24 -0
- package/esm/models/operations/updateprivateendpointpricing.d.ts +61 -0
- package/esm/models/operations/updateprivateendpointpricing.js +24 -0
- package/esm/models/operations/validateprivateendpoint.d.ts +61 -0
- package/esm/models/operations/validateprivateendpoint.js +24 -0
- package/esm/models/privateendpoint.d.ts +60 -0
- package/esm/models/privateendpoint.js +41 -0
- package/esm/models/privateendpointactivation.d.ts +18 -0
- package/esm/models/privateendpointactivation.js +18 -0
- package/esm/models/privateendpointcheck.d.ts +31 -0
- package/esm/models/privateendpointcheck.js +27 -0
- package/esm/models/privateendpointcheckreason.d.ts +30 -0
- package/esm/models/privateendpointcheckreason.js +29 -0
- package/esm/models/privateendpointdeclaredregion.d.ts +17 -0
- package/esm/models/privateendpointdeclaredregion.js +16 -0
- package/esm/models/privateendpointpricing.d.ts +28 -0
- package/esm/models/privateendpointpricing.js +23 -0
- package/esm/models/privateendpointresponse.d.ts +11 -0
- package/esm/models/privateendpointresponse.js +15 -0
- package/esm/models/privateendpointstatus.d.ts +17 -0
- package/esm/models/privateendpointstatus.js +16 -0
- package/esm/models/privateendpointsummary.d.ts +38 -0
- package/esm/models/privateendpointsummary.js +30 -0
- package/esm/models/privateendpointvalidation.d.ts +15 -0
- package/esm/models/privateendpointvalidation.js +16 -0
- package/esm/models/privateendpointvalidationnullable.d.ts +15 -0
- package/esm/models/privateendpointvalidationnullable.js +16 -0
- package/esm/models/privateendpointvalidationresponse.d.ts +11 -0
- package/esm/models/privateendpointvalidationresponse.js +15 -0
- package/esm/models/updateprivateendpointpricingrequest.d.ts +16 -0
- package/esm/models/updateprivateendpointpricingrequest.js +14 -0
- package/esm/models/updateprivateendpointrequest.d.ts +45 -0
- package/esm/models/updateprivateendpointrequest.js +36 -0
- package/esm/models/validateprivateendpointrequest.d.ts +15 -0
- package/esm/models/validateprivateendpointrequest.js +18 -0
- package/esm/sdk/privateendpoints.d.ts +76 -0
- package/esm/sdk/privateendpoints.js +109 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +5 -5
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.
|
|
53
|
+
readonly sdkVersion: "1.4.0";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.4.0 2.914.0 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.
|
|
32
|
+
sdkVersion: "1.4.0",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.4.0 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { PrivateEndpointActivation, PrivateEndpointActivation$Outbound } from "./privateendpointactivation.js";
|
|
4
|
+
import { PrivateEndpointPricing, PrivateEndpointPricing$Outbound } from "./privateendpointpricing.js";
|
|
5
|
+
/**
|
|
6
|
+
* Attest where this deployment processes data.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CreatePrivateEndpointRequestDeclaredRegion: {
|
|
9
|
+
readonly Global: "global";
|
|
10
|
+
readonly Europe: "europe";
|
|
11
|
+
readonly Us: "us";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Attest where this deployment processes data.
|
|
15
|
+
*/
|
|
16
|
+
export type CreatePrivateEndpointRequestDeclaredRegion = OpenEnum<typeof CreatePrivateEndpointRequestDeclaredRegion>;
|
|
17
|
+
export type CreatePrivateEndpointRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* Validate and activate in the same call. On a failed validation the draft is kept and returned with a 422, so fix it and call `/validate` and `/activate` instead of creating it again.
|
|
20
|
+
*/
|
|
21
|
+
activate?: PrivateEndpointActivation | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* HTTPS base URL of your deployment. Required unless the provider derives its URL from the BYOK credential (Azure, Amazon Bedrock, Google Vertex).
|
|
24
|
+
*/
|
|
25
|
+
baseUrl?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Attest where this deployment processes data.
|
|
28
|
+
*/
|
|
29
|
+
declaredRegion?: CreatePrivateEndpointRequestDeclaredRegion | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Attest that this deployment retains no prompt or completion data.
|
|
32
|
+
*/
|
|
33
|
+
declaredZdr?: boolean | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Permanent slug of the model this endpoint serves.
|
|
36
|
+
*/
|
|
37
|
+
modelPermaslug: string;
|
|
38
|
+
/**
|
|
39
|
+
* Negotiated per-token rates reported for requests routed to this endpoint.
|
|
40
|
+
*/
|
|
41
|
+
pricing?: PrivateEndpointPricing | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Slug of the upstream provider.
|
|
44
|
+
*/
|
|
45
|
+
providerSlug: string;
|
|
46
|
+
/**
|
|
47
|
+
* Model or deployment identifier sent to the upstream provider.
|
|
48
|
+
*/
|
|
49
|
+
upstreamModelId: string;
|
|
50
|
+
};
|
|
51
|
+
/** @internal */
|
|
52
|
+
export declare const CreatePrivateEndpointRequestDeclaredRegion$outboundSchema: z.ZodType<string, CreatePrivateEndpointRequestDeclaredRegion>;
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type CreatePrivateEndpointRequest$Outbound = {
|
|
55
|
+
activate?: PrivateEndpointActivation$Outbound | undefined;
|
|
56
|
+
base_url?: string | undefined;
|
|
57
|
+
declared_region?: string | null | undefined;
|
|
58
|
+
declared_zdr?: boolean | null | undefined;
|
|
59
|
+
model_permaslug: string;
|
|
60
|
+
pricing?: PrivateEndpointPricing$Outbound | undefined;
|
|
61
|
+
provider_slug: string;
|
|
62
|
+
upstream_model_id: string;
|
|
63
|
+
};
|
|
64
|
+
/** @internal */
|
|
65
|
+
export declare const CreatePrivateEndpointRequest$outboundSchema: z.ZodType<CreatePrivateEndpointRequest$Outbound, CreatePrivateEndpointRequest>;
|
|
66
|
+
export declare function createPrivateEndpointRequestToJSON(createPrivateEndpointRequest: CreatePrivateEndpointRequest): string;
|
|
67
|
+
//# sourceMappingURL=createprivateendpointrequest.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 466afc9b7d23
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import { PrivateEndpointActivation$outboundSchema, } from "./privateendpointactivation.js";
|
|
9
|
+
import { PrivateEndpointPricing$outboundSchema, } from "./privateendpointpricing.js";
|
|
10
|
+
/**
|
|
11
|
+
* Attest where this deployment processes data.
|
|
12
|
+
*/
|
|
13
|
+
export const CreatePrivateEndpointRequestDeclaredRegion = {
|
|
14
|
+
Global: "global",
|
|
15
|
+
Europe: "europe",
|
|
16
|
+
Us: "us",
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const CreatePrivateEndpointRequestDeclaredRegion$outboundSchema = openEnums
|
|
20
|
+
.outboundSchema(CreatePrivateEndpointRequestDeclaredRegion);
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const CreatePrivateEndpointRequest$outboundSchema = z.object({
|
|
23
|
+
activate: PrivateEndpointActivation$outboundSchema.optional(),
|
|
24
|
+
baseUrl: z.string().optional(),
|
|
25
|
+
declaredRegion: z.nullable(CreatePrivateEndpointRequestDeclaredRegion$outboundSchema).optional(),
|
|
26
|
+
declaredZdr: z.nullable(z.boolean()).optional(),
|
|
27
|
+
modelPermaslug: z.string(),
|
|
28
|
+
pricing: PrivateEndpointPricing$outboundSchema.optional(),
|
|
29
|
+
providerSlug: z.string(),
|
|
30
|
+
upstreamModelId: z.string(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
baseUrl: "base_url",
|
|
34
|
+
declaredRegion: "declared_region",
|
|
35
|
+
declaredZdr: "declared_zdr",
|
|
36
|
+
modelPermaslug: "model_permaslug",
|
|
37
|
+
providerSlug: "provider_slug",
|
|
38
|
+
upstreamModelId: "upstream_model_id",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
export function createPrivateEndpointRequestToJSON(createPrivateEndpointRequest) {
|
|
42
|
+
return JSON.stringify(CreatePrivateEndpointRequest$outboundSchema.parse(createPrivateEndpointRequest));
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=createprivateendpointrequest.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { ManagedPrivateEndpoint } from "./managedprivateendpoint.js";
|
|
5
|
+
import { PrivateEndpointValidationNullable } from "./privateendpointvalidationnullable.js";
|
|
6
|
+
export type CreatePrivateEndpointValidationFailedResponseData = {
|
|
7
|
+
endpoint: ManagedPrivateEndpoint;
|
|
8
|
+
validation: PrivateEndpointValidationNullable | null;
|
|
9
|
+
};
|
|
10
|
+
export type CreatePrivateEndpointValidationFailedResponseError = {
|
|
11
|
+
code: number;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const CreatePrivateEndpointValidationFailedResponseData$inboundSchema: z.ZodType<CreatePrivateEndpointValidationFailedResponseData, unknown>;
|
|
16
|
+
export declare function createPrivateEndpointValidationFailedResponseDataFromJSON(jsonString: string): SafeParseResult<CreatePrivateEndpointValidationFailedResponseData, SDKValidationError>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const CreatePrivateEndpointValidationFailedResponseError$inboundSchema: z.ZodType<CreatePrivateEndpointValidationFailedResponseError, unknown>;
|
|
19
|
+
export declare function createPrivateEndpointValidationFailedResponseErrorFromJSON(jsonString: string): SafeParseResult<CreatePrivateEndpointValidationFailedResponseError, SDKValidationError>;
|
|
20
|
+
//# sourceMappingURL=createprivateendpointvalidationfailedresponseerror.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4e00bbe15ec8
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ManagedPrivateEndpoint$inboundSchema, } from "./managedprivateendpoint.js";
|
|
8
|
+
import { PrivateEndpointValidationNullable$inboundSchema, } from "./privateendpointvalidationnullable.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const CreatePrivateEndpointValidationFailedResponseData$inboundSchema = z
|
|
11
|
+
.object({
|
|
12
|
+
endpoint: ManagedPrivateEndpoint$inboundSchema,
|
|
13
|
+
validation: z.nullable(PrivateEndpointValidationNullable$inboundSchema),
|
|
14
|
+
});
|
|
15
|
+
export function createPrivateEndpointValidationFailedResponseDataFromJSON(jsonString) {
|
|
16
|
+
return safeParse(jsonString, (x) => CreatePrivateEndpointValidationFailedResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePrivateEndpointValidationFailedResponseData' from JSON`);
|
|
17
|
+
}
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const CreatePrivateEndpointValidationFailedResponseError$inboundSchema = z
|
|
20
|
+
.object({
|
|
21
|
+
code: z.int(),
|
|
22
|
+
message: z.string(),
|
|
23
|
+
});
|
|
24
|
+
export function createPrivateEndpointValidationFailedResponseErrorFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => CreatePrivateEndpointValidationFailedResponseError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePrivateEndpointValidationFailedResponseError' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=createprivateendpointvalidationfailedresponseerror.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type DeletePrivateEndpointResponseData = {
|
|
5
|
+
/**
|
|
6
|
+
* Stable identifier of the private endpoint.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
export type DeletePrivateEndpointResponse = {
|
|
11
|
+
data: DeletePrivateEndpointResponseData;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const DeletePrivateEndpointResponseData$inboundSchema: z.ZodType<DeletePrivateEndpointResponseData, unknown>;
|
|
15
|
+
export declare function deletePrivateEndpointResponseDataFromJSON(jsonString: string): SafeParseResult<DeletePrivateEndpointResponseData, SDKValidationError>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const DeletePrivateEndpointResponse$inboundSchema: z.ZodType<DeletePrivateEndpointResponse, unknown>;
|
|
18
|
+
export declare function deletePrivateEndpointResponseFromJSON(jsonString: string): SafeParseResult<DeletePrivateEndpointResponse, SDKValidationError>;
|
|
19
|
+
//# sourceMappingURL=deleteprivateendpointresponse.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f98c78f263f4
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const DeletePrivateEndpointResponseData$inboundSchema = z.object({
|
|
9
|
+
id: z.string(),
|
|
10
|
+
});
|
|
11
|
+
export function deletePrivateEndpointResponseDataFromJSON(jsonString) {
|
|
12
|
+
return safeParse(jsonString, (x) => DeletePrivateEndpointResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeletePrivateEndpointResponseData' from JSON`);
|
|
13
|
+
}
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const DeletePrivateEndpointResponse$inboundSchema = z.object({
|
|
16
|
+
data: z.lazy(() => DeletePrivateEndpointResponseData$inboundSchema),
|
|
17
|
+
});
|
|
18
|
+
export function deletePrivateEndpointResponseFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => DeletePrivateEndpointResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeletePrivateEndpointResponse' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=deleteprivateendpointresponse.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { BadGatewayResponseError } from "./badgatewayresponseerror.js";
|
|
4
|
+
import { ConflictResponseError } from "./conflictresponseerror.js";
|
|
5
|
+
import { CreatePrivateEndpointValidationFailedResponseError } from "./createprivateendpointvalidationfailedresponseerror.js";
|
|
6
|
+
import { InternalServerResponseError } from "./internalserverresponseerror.js";
|
|
7
|
+
import { NotFoundResponseError } from "./notfoundresponseerror.js";
|
|
8
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
|
+
import { UnprocessableEntityResponseError } from "./unprocessableentityresponseerror.js";
|
|
10
|
+
/**
|
|
11
|
+
* An upstream dependency failed. When `activate` was passed and the draft was created, `data` carries it and any validation checks.
|
|
12
|
+
*/
|
|
13
|
+
export type BadGateway = CreatePrivateEndpointValidationFailedResponseError | BadGatewayResponseError;
|
|
14
|
+
/**
|
|
15
|
+
* Internal server error. When `activate` was passed and the draft was created, `data` carries it and any validation checks.
|
|
16
|
+
*/
|
|
17
|
+
export type InternalServerError = CreatePrivateEndpointValidationFailedResponseError | InternalServerResponseError;
|
|
18
|
+
/**
|
|
19
|
+
* The request was invalid, or validation failed. When `activate` was passed and the draft was created, `data` carries it and any validation checks.
|
|
20
|
+
*/
|
|
21
|
+
export type UnprocessableEntity = CreatePrivateEndpointValidationFailedResponseError | UnprocessableEntityResponseError;
|
|
22
|
+
/**
|
|
23
|
+
* The request conflicts with the endpoint state, such as a stale validation. When `activate` was passed and the draft was created, `data` carries it and any validation checks.
|
|
24
|
+
*/
|
|
25
|
+
export type Conflict = CreatePrivateEndpointValidationFailedResponseError | ConflictResponseError;
|
|
26
|
+
/**
|
|
27
|
+
* The model, provider, or validation workspace was not found. When `activate` was passed and the draft was created, `data` carries it and any validation checks.
|
|
28
|
+
*/
|
|
29
|
+
export type NotFound = CreatePrivateEndpointValidationFailedResponseError | NotFoundResponseError;
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const BadGateway$inboundSchema: z.ZodType<BadGateway, unknown>;
|
|
32
|
+
export declare function badGatewayFromJSON(jsonString: string): SafeParseResult<BadGateway, SDKValidationError>;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const InternalServerError$inboundSchema: z.ZodType<InternalServerError, unknown>;
|
|
35
|
+
export declare function internalServerErrorFromJSON(jsonString: string): SafeParseResult<InternalServerError, SDKValidationError>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const UnprocessableEntity$inboundSchema: z.ZodType<UnprocessableEntity, unknown>;
|
|
38
|
+
export declare function unprocessableEntityFromJSON(jsonString: string): SafeParseResult<UnprocessableEntity, SDKValidationError>;
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const Conflict$inboundSchema: z.ZodType<Conflict, unknown>;
|
|
41
|
+
export declare function conflictFromJSON(jsonString: string): SafeParseResult<Conflict, SDKValidationError>;
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const NotFound$inboundSchema: z.ZodType<NotFound, unknown>;
|
|
44
|
+
export declare function notFoundFromJSON(jsonString: string): SafeParseResult<NotFound, SDKValidationError>;
|
|
45
|
+
//# sourceMappingURL=createprivateendpoint.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 677d100a981d
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { BadGatewayResponseError$inboundSchema, } from "./badgatewayresponseerror.js";
|
|
8
|
+
import { ConflictResponseError$inboundSchema, } from "./conflictresponseerror.js";
|
|
9
|
+
import { CreatePrivateEndpointValidationFailedResponseError$inboundSchema, } from "./createprivateendpointvalidationfailedresponseerror.js";
|
|
10
|
+
import { InternalServerResponseError$inboundSchema, } from "./internalserverresponseerror.js";
|
|
11
|
+
import { NotFoundResponseError$inboundSchema, } from "./notfoundresponseerror.js";
|
|
12
|
+
import { UnprocessableEntityResponseError$inboundSchema, } from "./unprocessableentityresponseerror.js";
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const BadGateway$inboundSchema = z.union([
|
|
15
|
+
CreatePrivateEndpointValidationFailedResponseError$inboundSchema,
|
|
16
|
+
BadGatewayResponseError$inboundSchema,
|
|
17
|
+
]);
|
|
18
|
+
export function badGatewayFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => BadGateway$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BadGateway' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const InternalServerError$inboundSchema = z.union([
|
|
23
|
+
CreatePrivateEndpointValidationFailedResponseError$inboundSchema,
|
|
24
|
+
InternalServerResponseError$inboundSchema,
|
|
25
|
+
]);
|
|
26
|
+
export function internalServerErrorFromJSON(jsonString) {
|
|
27
|
+
return safeParse(jsonString, (x) => InternalServerError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternalServerError' from JSON`);
|
|
28
|
+
}
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const UnprocessableEntity$inboundSchema = z.union([
|
|
31
|
+
CreatePrivateEndpointValidationFailedResponseError$inboundSchema,
|
|
32
|
+
UnprocessableEntityResponseError$inboundSchema,
|
|
33
|
+
]);
|
|
34
|
+
export function unprocessableEntityFromJSON(jsonString) {
|
|
35
|
+
return safeParse(jsonString, (x) => UnprocessableEntity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnprocessableEntity' from JSON`);
|
|
36
|
+
}
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const Conflict$inboundSchema = z.union([
|
|
39
|
+
CreatePrivateEndpointValidationFailedResponseError$inboundSchema,
|
|
40
|
+
ConflictResponseError$inboundSchema,
|
|
41
|
+
]);
|
|
42
|
+
export function conflictFromJSON(jsonString) {
|
|
43
|
+
return safeParse(jsonString, (x) => Conflict$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Conflict' from JSON`);
|
|
44
|
+
}
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const NotFound$inboundSchema = z.union([
|
|
47
|
+
CreatePrivateEndpointValidationFailedResponseError$inboundSchema,
|
|
48
|
+
NotFoundResponseError$inboundSchema,
|
|
49
|
+
]);
|
|
50
|
+
export function notFoundFromJSON(jsonString) {
|
|
51
|
+
return safeParse(jsonString, (x) => NotFound$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotFound' from JSON`);
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=createprivateendpoint.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
import { OpenRouterError } from "./openroutererror.js";
|
|
4
|
+
export type CreatePrivateEndpointValidationFailedResponseErrorData = {
|
|
5
|
+
data: models.CreatePrivateEndpointValidationFailedResponseData;
|
|
6
|
+
error: models.CreatePrivateEndpointValidationFailedResponseError;
|
|
7
|
+
};
|
|
8
|
+
export declare class CreatePrivateEndpointValidationFailedResponseError extends OpenRouterError {
|
|
9
|
+
data: models.CreatePrivateEndpointValidationFailedResponseData;
|
|
10
|
+
error: models.CreatePrivateEndpointValidationFailedResponseError;
|
|
11
|
+
/** The original data that was passed to this error instance. */
|
|
12
|
+
data$: CreatePrivateEndpointValidationFailedResponseErrorData;
|
|
13
|
+
constructor(err: CreatePrivateEndpointValidationFailedResponseErrorData, httpMeta: {
|
|
14
|
+
response: Response;
|
|
15
|
+
request: Request;
|
|
16
|
+
body: string;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const CreatePrivateEndpointValidationFailedResponseError$inboundSchema: z.ZodType<CreatePrivateEndpointValidationFailedResponseError, unknown>;
|
|
21
|
+
//# sourceMappingURL=createprivateendpointvalidationfailedresponseerror.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 81ce190d6cf1
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { CreatePrivateEndpointValidationFailedResponseData$inboundSchema as models_CreatePrivateEndpointValidationFailedResponseData$inboundSchema, CreatePrivateEndpointValidationFailedResponseError$inboundSchema as models_CreatePrivateEndpointValidationFailedResponseError$inboundSchema } from "../createprivateendpointvalidationfailedresponseerror.js";
|
|
7
|
+
import { OpenRouterError } from "./openroutererror.js";
|
|
8
|
+
export class CreatePrivateEndpointValidationFailedResponseError extends OpenRouterError {
|
|
9
|
+
constructor(err, httpMeta) {
|
|
10
|
+
const message = err.error?.message
|
|
11
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
12
|
+
super(message, httpMeta);
|
|
13
|
+
this.data$ = err;
|
|
14
|
+
this.data = err.data;
|
|
15
|
+
this.error = err.error;
|
|
16
|
+
this.name = "CreatePrivateEndpointValidationFailedResponseError";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const CreatePrivateEndpointValidationFailedResponseError$inboundSchema = z
|
|
21
|
+
.object({
|
|
22
|
+
data: z.lazy(() => models_CreatePrivateEndpointValidationFailedResponseData$inboundSchema),
|
|
23
|
+
error: z.lazy(() => models_CreatePrivateEndpointValidationFailedResponseError$inboundSchema),
|
|
24
|
+
request$: z.custom(x => x instanceof Request),
|
|
25
|
+
response$: z.custom(x => x instanceof Response),
|
|
26
|
+
body$: z.string(),
|
|
27
|
+
})
|
|
28
|
+
.transform((v) => {
|
|
29
|
+
return new CreatePrivateEndpointValidationFailedResponseError(v, {
|
|
30
|
+
request: v.request$,
|
|
31
|
+
response: v.response$,
|
|
32
|
+
body: v.body$,
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=createprivateendpointvalidationfailedresponseerror.js.map
|
|
@@ -3,6 +3,8 @@ export * from "./badrequestresponseerror.js";
|
|
|
3
3
|
export * from "./batcherrorresponse.js";
|
|
4
4
|
export * from "./batchpaymentrequiredresponseerror.js";
|
|
5
5
|
export * from "./conflictresponseerror.js";
|
|
6
|
+
export * from "./createprivateendpoint.js";
|
|
7
|
+
export * from "./createprivateendpointvalidationfailedresponseerror.js";
|
|
6
8
|
export * from "./edgenetworktimeoutresponseerror.js";
|
|
7
9
|
export * from "./forbiddenresponseerror.js";
|
|
8
10
|
export * from "./gatewaytimeoutresponseerror.js";
|
|
@@ -7,6 +7,8 @@ export * from "./badrequestresponseerror.js";
|
|
|
7
7
|
export * from "./batcherrorresponse.js";
|
|
8
8
|
export * from "./batchpaymentrequiredresponseerror.js";
|
|
9
9
|
export * from "./conflictresponseerror.js";
|
|
10
|
+
export * from "./createprivateendpoint.js";
|
|
11
|
+
export * from "./createprivateendpointvalidationfailedresponseerror.js";
|
|
10
12
|
export * from "./edgenetworktimeoutresponseerror.js";
|
|
11
13
|
export * from "./forbiddenresponseerror.js";
|
|
12
14
|
export * from "./gatewaytimeoutresponseerror.js";
|
package/esm/models/index.d.ts
CHANGED
|
@@ -253,6 +253,8 @@ export * from "./createinternrequest.js";
|
|
|
253
253
|
export * from "./createobservabilitydestinationrequest.js";
|
|
254
254
|
export * from "./createobservabilitydestinationresponse.js";
|
|
255
255
|
export * from "./createpresetfrominferenceresponse.js";
|
|
256
|
+
export * from "./createprivateendpointrequest.js";
|
|
257
|
+
export * from "./createprivateendpointvalidationfailedresponseerror.js";
|
|
256
258
|
export * from "./createscimgroupmappingrequest.js";
|
|
257
259
|
export * from "./createscimgroupmappingresponse.js";
|
|
258
260
|
export * from "./createscimsyncjobresponse.js";
|
|
@@ -281,6 +283,7 @@ export * from "./deleteguardrailresponse.js";
|
|
|
281
283
|
export * from "./deleteinternrequest.js";
|
|
282
284
|
export * from "./deleteinternresponse.js";
|
|
283
285
|
export * from "./deleteobservabilitydestinationresponse.js";
|
|
286
|
+
export * from "./deleteprivateendpointresponse.js";
|
|
284
287
|
export * from "./deletescimgroupmappingresponse.js";
|
|
285
288
|
export * from "./deleteworkspacebudgetresponse.js";
|
|
286
289
|
export * from "./deleteworkspaceresponse.js";
|
|
@@ -429,6 +432,7 @@ export * from "./listmemberassignmentsresponse.js";
|
|
|
429
432
|
export * from "./listobservabilitydestinationsresponse.js";
|
|
430
433
|
export * from "./listpresetsresponse.js";
|
|
431
434
|
export * from "./listpresetversionsresponse.js";
|
|
435
|
+
export * from "./listprivateendpointsresponse.js";
|
|
432
436
|
export * from "./listscimgroupmappingsresponse.js";
|
|
433
437
|
export * from "./listscimgroupsresponse.js";
|
|
434
438
|
export * from "./listworkspacebudgetsresponse.js";
|
|
@@ -436,6 +440,8 @@ export * from "./listworkspacemembersresponse.js";
|
|
|
436
440
|
export * from "./listworkspacesresponse.js";
|
|
437
441
|
export * from "./localshellcallitem.js";
|
|
438
442
|
export * from "./localshellcalloutputitem.js";
|
|
443
|
+
export * from "./managedprivateendpoint.js";
|
|
444
|
+
export * from "./managedprivateendpointresponse.js";
|
|
439
445
|
export * from "./mcpapprovalrequestitem.js";
|
|
440
446
|
export * from "./mcpapprovalresponseitem.js";
|
|
441
447
|
export * from "./mcpcallitem.js";
|
|
@@ -584,6 +590,18 @@ export * from "./preview20250311websearchservertool.js";
|
|
|
584
590
|
export * from "./previewwebsearchservertool.js";
|
|
585
591
|
export * from "./previewwebsearchuserlocation.js";
|
|
586
592
|
export * from "./pricingoverride.js";
|
|
593
|
+
export * from "./privateendpoint.js";
|
|
594
|
+
export * from "./privateendpointactivation.js";
|
|
595
|
+
export * from "./privateendpointcheck.js";
|
|
596
|
+
export * from "./privateendpointcheckreason.js";
|
|
597
|
+
export * from "./privateendpointdeclaredregion.js";
|
|
598
|
+
export * from "./privateendpointpricing.js";
|
|
599
|
+
export * from "./privateendpointresponse.js";
|
|
600
|
+
export * from "./privateendpointstatus.js";
|
|
601
|
+
export * from "./privateendpointsummary.js";
|
|
602
|
+
export * from "./privateendpointvalidation.js";
|
|
603
|
+
export * from "./privateendpointvalidationnullable.js";
|
|
604
|
+
export * from "./privateendpointvalidationresponse.js";
|
|
587
605
|
export * from "./promptcachebreakpoint.js";
|
|
588
606
|
export * from "./promptcacheoptions.js";
|
|
589
607
|
export * from "./promptinjectionscanscope.js";
|
|
@@ -727,6 +745,8 @@ export * from "./updateguardrailresponse.js";
|
|
|
727
745
|
export * from "./updateinternrequest.js";
|
|
728
746
|
export * from "./updateobservabilitydestinationrequest.js";
|
|
729
747
|
export * from "./updateobservabilitydestinationresponse.js";
|
|
748
|
+
export * from "./updateprivateendpointpricingrequest.js";
|
|
749
|
+
export * from "./updateprivateendpointrequest.js";
|
|
730
750
|
export * from "./updatescimgroupmappingrequest.js";
|
|
731
751
|
export * from "./updatescimgroupmappingresponse.js";
|
|
732
752
|
export * from "./updateworkspacerequest.js";
|
|
@@ -734,6 +754,7 @@ export * from "./updateworkspaceresponse.js";
|
|
|
734
754
|
export * from "./upsertworkspacebudgetrequest.js";
|
|
735
755
|
export * from "./upsertworkspacebudgetresponse.js";
|
|
736
756
|
export * from "./urlcitation.js";
|
|
757
|
+
export * from "./validateprivateendpointrequest.js";
|
|
737
758
|
export * from "./vaultsecret.js";
|
|
738
759
|
export * from "./vaultsecretcopyrequest.js";
|
|
739
760
|
export * from "./vaultsecretcopyresponse.js";
|
package/esm/models/index.js
CHANGED
|
@@ -257,6 +257,8 @@ export * from "./createinternrequest.js";
|
|
|
257
257
|
export * from "./createobservabilitydestinationrequest.js";
|
|
258
258
|
export * from "./createobservabilitydestinationresponse.js";
|
|
259
259
|
export * from "./createpresetfrominferenceresponse.js";
|
|
260
|
+
export * from "./createprivateendpointrequest.js";
|
|
261
|
+
export * from "./createprivateendpointvalidationfailedresponseerror.js";
|
|
260
262
|
export * from "./createscimgroupmappingrequest.js";
|
|
261
263
|
export * from "./createscimgroupmappingresponse.js";
|
|
262
264
|
export * from "./createscimsyncjobresponse.js";
|
|
@@ -285,6 +287,7 @@ export * from "./deleteguardrailresponse.js";
|
|
|
285
287
|
export * from "./deleteinternrequest.js";
|
|
286
288
|
export * from "./deleteinternresponse.js";
|
|
287
289
|
export * from "./deleteobservabilitydestinationresponse.js";
|
|
290
|
+
export * from "./deleteprivateendpointresponse.js";
|
|
288
291
|
export * from "./deletescimgroupmappingresponse.js";
|
|
289
292
|
export * from "./deleteworkspacebudgetresponse.js";
|
|
290
293
|
export * from "./deleteworkspaceresponse.js";
|
|
@@ -433,6 +436,7 @@ export * from "./listmemberassignmentsresponse.js";
|
|
|
433
436
|
export * from "./listobservabilitydestinationsresponse.js";
|
|
434
437
|
export * from "./listpresetsresponse.js";
|
|
435
438
|
export * from "./listpresetversionsresponse.js";
|
|
439
|
+
export * from "./listprivateendpointsresponse.js";
|
|
436
440
|
export * from "./listscimgroupmappingsresponse.js";
|
|
437
441
|
export * from "./listscimgroupsresponse.js";
|
|
438
442
|
export * from "./listworkspacebudgetsresponse.js";
|
|
@@ -440,6 +444,8 @@ export * from "./listworkspacemembersresponse.js";
|
|
|
440
444
|
export * from "./listworkspacesresponse.js";
|
|
441
445
|
export * from "./localshellcallitem.js";
|
|
442
446
|
export * from "./localshellcalloutputitem.js";
|
|
447
|
+
export * from "./managedprivateendpoint.js";
|
|
448
|
+
export * from "./managedprivateendpointresponse.js";
|
|
443
449
|
export * from "./mcpapprovalrequestitem.js";
|
|
444
450
|
export * from "./mcpapprovalresponseitem.js";
|
|
445
451
|
export * from "./mcpcallitem.js";
|
|
@@ -588,6 +594,18 @@ export * from "./preview20250311websearchservertool.js";
|
|
|
588
594
|
export * from "./previewwebsearchservertool.js";
|
|
589
595
|
export * from "./previewwebsearchuserlocation.js";
|
|
590
596
|
export * from "./pricingoverride.js";
|
|
597
|
+
export * from "./privateendpoint.js";
|
|
598
|
+
export * from "./privateendpointactivation.js";
|
|
599
|
+
export * from "./privateendpointcheck.js";
|
|
600
|
+
export * from "./privateendpointcheckreason.js";
|
|
601
|
+
export * from "./privateendpointdeclaredregion.js";
|
|
602
|
+
export * from "./privateendpointpricing.js";
|
|
603
|
+
export * from "./privateendpointresponse.js";
|
|
604
|
+
export * from "./privateendpointstatus.js";
|
|
605
|
+
export * from "./privateendpointsummary.js";
|
|
606
|
+
export * from "./privateendpointvalidation.js";
|
|
607
|
+
export * from "./privateendpointvalidationnullable.js";
|
|
608
|
+
export * from "./privateendpointvalidationresponse.js";
|
|
591
609
|
export * from "./promptcachebreakpoint.js";
|
|
592
610
|
export * from "./promptcacheoptions.js";
|
|
593
611
|
export * from "./promptinjectionscanscope.js";
|
|
@@ -731,6 +749,8 @@ export * from "./updateguardrailresponse.js";
|
|
|
731
749
|
export * from "./updateinternrequest.js";
|
|
732
750
|
export * from "./updateobservabilitydestinationrequest.js";
|
|
733
751
|
export * from "./updateobservabilitydestinationresponse.js";
|
|
752
|
+
export * from "./updateprivateendpointpricingrequest.js";
|
|
753
|
+
export * from "./updateprivateendpointrequest.js";
|
|
734
754
|
export * from "./updatescimgroupmappingrequest.js";
|
|
735
755
|
export * from "./updatescimgroupmappingresponse.js";
|
|
736
756
|
export * from "./updateworkspacerequest.js";
|
|
@@ -738,6 +758,7 @@ export * from "./updateworkspaceresponse.js";
|
|
|
738
758
|
export * from "./upsertworkspacebudgetrequest.js";
|
|
739
759
|
export * from "./upsertworkspacebudgetresponse.js";
|
|
740
760
|
export * from "./urlcitation.js";
|
|
761
|
+
export * from "./validateprivateendpointrequest.js";
|
|
741
762
|
export * from "./vaultsecret.js";
|
|
742
763
|
export * from "./vaultsecretcopyrequest.js";
|
|
743
764
|
export * from "./vaultsecretcopyresponse.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { PrivateEndpointSummary } from "./privateendpointsummary.js";
|
|
5
|
+
export type ListPrivateEndpointsResponse = {
|
|
6
|
+
data: Array<PrivateEndpointSummary>;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const ListPrivateEndpointsResponse$inboundSchema: z.ZodType<ListPrivateEndpointsResponse, unknown>;
|
|
10
|
+
export declare function listPrivateEndpointsResponseFromJSON(jsonString: string): SafeParseResult<ListPrivateEndpointsResponse, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=listprivateendpointsresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0f316944ddb9
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { PrivateEndpointSummary$inboundSchema, } from "./privateendpointsummary.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const ListPrivateEndpointsResponse$inboundSchema = z.object({
|
|
10
|
+
data: z.array(PrivateEndpointSummary$inboundSchema),
|
|
11
|
+
});
|
|
12
|
+
export function listPrivateEndpointsResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => ListPrivateEndpointsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPrivateEndpointsResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=listprivateendpointsresponse.js.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { PrivateEndpointDeclaredRegion } from "./privateendpointdeclaredregion.js";
|
|
5
|
+
import { PrivateEndpointStatus } from "./privateendpointstatus.js";
|
|
6
|
+
export type ManagedPrivateEndpoint = {
|
|
7
|
+
/**
|
|
8
|
+
* ISO timestamp of when the endpoint was created.
|
|
9
|
+
*/
|
|
10
|
+
createdAt: string;
|
|
11
|
+
/**
|
|
12
|
+
* Stable identifier of the private endpoint.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Display name of the model, or `null` when the model is no longer listed.
|
|
17
|
+
*/
|
|
18
|
+
modelName: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Permanent slug of the model this endpoint serves.
|
|
21
|
+
*/
|
|
22
|
+
modelPermaslug: string;
|
|
23
|
+
/**
|
|
24
|
+
* Public model slug, or `null` when the model is no longer listed.
|
|
25
|
+
*/
|
|
26
|
+
modelSlug: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Display name of the upstream provider.
|
|
29
|
+
*/
|
|
30
|
+
providerName: string;
|
|
31
|
+
/**
|
|
32
|
+
* Lifecycle state. `draft` endpoints are not routable until validated and activated; `disabled` endpoints are activated but temporarily not routable.
|
|
33
|
+
*/
|
|
34
|
+
status: PrivateEndpointStatus;
|
|
35
|
+
/**
|
|
36
|
+
* Where you attest this deployment processes data. `global` means not regional; `null` means undeclared.
|
|
37
|
+
*/
|
|
38
|
+
declaredRegion: PrivateEndpointDeclaredRegion | null;
|
|
39
|
+
/**
|
|
40
|
+
* Whether you attest this deployment retains no prompt or completion data. `null` means undeclared.
|
|
41
|
+
*/
|
|
42
|
+
declaredZdr: boolean | null;
|
|
43
|
+
};
|
|
44
|
+
/** @internal */
|
|
45
|
+
export declare const ManagedPrivateEndpoint$inboundSchema: z.ZodType<ManagedPrivateEndpoint, unknown>;
|
|
46
|
+
export declare function managedPrivateEndpointFromJSON(jsonString: string): SafeParseResult<ManagedPrivateEndpoint, SDKValidationError>;
|
|
47
|
+
//# sourceMappingURL=managedprivateendpoint.d.ts.map
|