@openrouter/sdk 1.3.36 → 1.4.1
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/internsCreateIntern.d.ts +1 -1
- package/esm/funcs/internsCreateIntern.js +1 -1
- package/esm/funcs/internsDeleteIntern.d.ts +1 -1
- package/esm/funcs/internsDeleteIntern.js +1 -1
- package/esm/funcs/internsGetIntern.d.ts +1 -1
- package/esm/funcs/internsGetIntern.js +1 -1
- package/esm/funcs/internsGetInternDaemon.d.ts +1 -1
- package/esm/funcs/internsGetInternDaemon.js +1 -1
- package/esm/funcs/internsGetInternDaemonAccess.d.ts +1 -1
- package/esm/funcs/internsGetInternDaemonAccess.js +1 -1
- package/esm/funcs/internsListInterns.d.ts +1 -1
- package/esm/funcs/internsListInterns.js +1 -1
- package/esm/funcs/internsProvisionIntern.d.ts +1 -1
- package/esm/funcs/internsProvisionIntern.js +1 -1
- package/esm/funcs/internsSuspendIntern.d.ts +1 -1
- package/esm/funcs/internsSuspendIntern.js +1 -1
- package/esm/funcs/internsUpdateIntern.d.ts +1 -1
- package/esm/funcs/internsUpdateIntern.js +1 -1
- 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/funcs/vaultCopyVaultSecretsToIntern.d.ts +1 -1
- package/esm/funcs/vaultCopyVaultSecretsToIntern.js +1 -1
- package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultDeleteInternVaultSecret.js +1 -1
- package/esm/funcs/vaultDeleteVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultDeleteVaultSecret.js +1 -1
- package/esm/funcs/vaultListInternEffectiveVaultSecrets.d.ts +21 -0
- package/esm/funcs/vaultListInternEffectiveVaultSecrets.js +110 -0
- package/esm/funcs/vaultListInternVaultSecrets.d.ts +1 -1
- package/esm/funcs/vaultListInternVaultSecrets.js +1 -1
- package/esm/funcs/vaultListVaultSecrets.d.ts +1 -1
- package/esm/funcs/vaultListVaultSecrets.js +1 -1
- package/esm/funcs/vaultStoreInternVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultStoreInternVaultSecret.js +1 -1
- package/esm/funcs/vaultStoreVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultStoreVaultSecret.js +1 -1
- 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 +23 -0
- package/esm/models/index.js +23 -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 +11 -0
- package/esm/models/operations/index.js +11 -0
- package/esm/models/operations/listinterneffectivevaultsecrets.d.ts +68 -0
- package/esm/models/operations/listinterneffectivevaultsecrets.js +23 -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/tokenexchangerequest.d.ts +4 -4
- package/esm/models/tokenexchangerequest.js +3 -3
- 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/models/vaulteffectivesecret.d.ts +35 -0
- package/esm/models/vaulteffectivesecret.js +34 -0
- package/esm/models/vaulteffectivesecretlistresponse.d.ts +18 -0
- package/esm/models/vaulteffectivesecretlistresponse.js +21 -0
- package/esm/sdk/interns.d.ts +9 -9
- package/esm/sdk/interns.js +9 -9
- 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/esm/sdk/vault.d.ts +14 -7
- package/esm/sdk/vault.js +17 -7
- package/jsr.json +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 680e5562177c
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { PrivateEndpointCheckReason$inboundSchema, } from "./privateendpointcheckreason.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const PrivateEndpointCheck$inboundSchema = z.object({
|
|
11
|
+
actual_model: z.nullable(z.string()).optional(),
|
|
12
|
+
name: z.string(),
|
|
13
|
+
passed: z.boolean(),
|
|
14
|
+
reason: PrivateEndpointCheckReason$inboundSchema.optional(),
|
|
15
|
+
upstream_message: z.nullable(z.string()).optional(),
|
|
16
|
+
upstream_status: z.int().optional(),
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
"actual_model": "actualModel",
|
|
20
|
+
"upstream_message": "upstreamMessage",
|
|
21
|
+
"upstream_status": "upstreamStatus",
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export function privateEndpointCheckFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => PrivateEndpointCheck$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointCheck' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=privateendpointcheck.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Why the check failed.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PrivateEndpointCheckReason: {
|
|
7
|
+
readonly DatabaseError: "database_error";
|
|
8
|
+
readonly EndpointLimitReached: "endpoint_limit_reached";
|
|
9
|
+
readonly InvalidBaseUrl: "invalid_base_url";
|
|
10
|
+
readonly ModelNotFound: "model_not_found";
|
|
11
|
+
readonly ProviderNotFound: "provider_not_found";
|
|
12
|
+
readonly EndpointNotFound: "endpoint_not_found";
|
|
13
|
+
readonly WorkspaceNotFound: "workspace_not_found";
|
|
14
|
+
readonly NoBYOKKey: "no_byok_key";
|
|
15
|
+
readonly KeyDecryptionFailed: "key_decryption_failed";
|
|
16
|
+
readonly UpstreamError: "upstream_error";
|
|
17
|
+
readonly InvalidResponse: "invalid_response";
|
|
18
|
+
readonly InvalidStream: "invalid_stream";
|
|
19
|
+
readonly MissingUsage: "missing_usage";
|
|
20
|
+
readonly ModelMismatch: "model_mismatch";
|
|
21
|
+
readonly NotValidated: "not_validated";
|
|
22
|
+
readonly ValidationStale: "validation_stale";
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Why the check failed.
|
|
26
|
+
*/
|
|
27
|
+
export type PrivateEndpointCheckReason = OpenEnum<typeof PrivateEndpointCheckReason>;
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const PrivateEndpointCheckReason$inboundSchema: z.ZodType<PrivateEndpointCheckReason, unknown>;
|
|
30
|
+
//# sourceMappingURL=privateendpointcheckreason.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5d4379eaa453
|
|
4
|
+
*/
|
|
5
|
+
import * as openEnums from "../types/enums.js";
|
|
6
|
+
/**
|
|
7
|
+
* Why the check failed.
|
|
8
|
+
*/
|
|
9
|
+
export const PrivateEndpointCheckReason = {
|
|
10
|
+
DatabaseError: "database_error",
|
|
11
|
+
EndpointLimitReached: "endpoint_limit_reached",
|
|
12
|
+
InvalidBaseUrl: "invalid_base_url",
|
|
13
|
+
ModelNotFound: "model_not_found",
|
|
14
|
+
ProviderNotFound: "provider_not_found",
|
|
15
|
+
EndpointNotFound: "endpoint_not_found",
|
|
16
|
+
WorkspaceNotFound: "workspace_not_found",
|
|
17
|
+
NoBYOKKey: "no_byok_key",
|
|
18
|
+
KeyDecryptionFailed: "key_decryption_failed",
|
|
19
|
+
UpstreamError: "upstream_error",
|
|
20
|
+
InvalidResponse: "invalid_response",
|
|
21
|
+
InvalidStream: "invalid_stream",
|
|
22
|
+
MissingUsage: "missing_usage",
|
|
23
|
+
ModelMismatch: "model_mismatch",
|
|
24
|
+
NotValidated: "not_validated",
|
|
25
|
+
ValidationStale: "validation_stale",
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const PrivateEndpointCheckReason$inboundSchema = openEnums.inboundSchema(PrivateEndpointCheckReason);
|
|
29
|
+
//# sourceMappingURL=privateendpointcheckreason.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Where you attest this deployment processes data. `global` means not regional; `null` means undeclared.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PrivateEndpointDeclaredRegion: {
|
|
7
|
+
readonly Global: "global";
|
|
8
|
+
readonly Europe: "europe";
|
|
9
|
+
readonly Us: "us";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Where you attest this deployment processes data. `global` means not regional; `null` means undeclared.
|
|
13
|
+
*/
|
|
14
|
+
export type PrivateEndpointDeclaredRegion = OpenEnum<typeof PrivateEndpointDeclaredRegion>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const PrivateEndpointDeclaredRegion$inboundSchema: z.ZodType<PrivateEndpointDeclaredRegion, unknown>;
|
|
17
|
+
//# sourceMappingURL=privateendpointdeclaredregion.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e91a7cba073a
|
|
4
|
+
*/
|
|
5
|
+
import * as openEnums from "../types/enums.js";
|
|
6
|
+
/**
|
|
7
|
+
* Where you attest this deployment processes data. `global` means not regional; `null` means undeclared.
|
|
8
|
+
*/
|
|
9
|
+
export const PrivateEndpointDeclaredRegion = {
|
|
10
|
+
Global: "global",
|
|
11
|
+
Europe: "europe",
|
|
12
|
+
Us: "us",
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const PrivateEndpointDeclaredRegion$inboundSchema = openEnums.inboundSchema(PrivateEndpointDeclaredRegion);
|
|
16
|
+
//# sourceMappingURL=privateendpointdeclaredregion.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Negotiated per-token rates reported for requests routed to this endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export type PrivateEndpointPricing = {
|
|
8
|
+
/**
|
|
9
|
+
* USD per completion token, as a decimal string.
|
|
10
|
+
*/
|
|
11
|
+
completion: string;
|
|
12
|
+
/**
|
|
13
|
+
* USD per prompt token, as a decimal string.
|
|
14
|
+
*/
|
|
15
|
+
prompt: string;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const PrivateEndpointPricing$inboundSchema: z.ZodType<PrivateEndpointPricing, unknown>;
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type PrivateEndpointPricing$Outbound = {
|
|
21
|
+
completion: string;
|
|
22
|
+
prompt: string;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const PrivateEndpointPricing$outboundSchema: z.ZodType<PrivateEndpointPricing$Outbound, PrivateEndpointPricing>;
|
|
26
|
+
export declare function privateEndpointPricingToJSON(privateEndpointPricing: PrivateEndpointPricing): string;
|
|
27
|
+
export declare function privateEndpointPricingFromJSON(jsonString: string): SafeParseResult<PrivateEndpointPricing, SDKValidationError>;
|
|
28
|
+
//# sourceMappingURL=privateendpointpricing.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c780fa3f1dc9
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const PrivateEndpointPricing$inboundSchema = z.object({
|
|
9
|
+
completion: z.string(),
|
|
10
|
+
prompt: z.string(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const PrivateEndpointPricing$outboundSchema = z.object({
|
|
14
|
+
completion: z.string(),
|
|
15
|
+
prompt: z.string(),
|
|
16
|
+
});
|
|
17
|
+
export function privateEndpointPricingToJSON(privateEndpointPricing) {
|
|
18
|
+
return JSON.stringify(PrivateEndpointPricing$outboundSchema.parse(privateEndpointPricing));
|
|
19
|
+
}
|
|
20
|
+
export function privateEndpointPricingFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => PrivateEndpointPricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointPricing' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=privateendpointpricing.js.map
|
|
@@ -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 { PrivateEndpoint } from "./privateendpoint.js";
|
|
5
|
+
export type PrivateEndpointResponse = {
|
|
6
|
+
data: PrivateEndpoint;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const PrivateEndpointResponse$inboundSchema: z.ZodType<PrivateEndpointResponse, unknown>;
|
|
10
|
+
export declare function privateEndpointResponseFromJSON(jsonString: string): SafeParseResult<PrivateEndpointResponse, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=privateendpointresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 852b6135ff3d
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { PrivateEndpoint$inboundSchema, } from "./privateendpoint.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PrivateEndpointResponse$inboundSchema = z.object({
|
|
10
|
+
data: PrivateEndpoint$inboundSchema,
|
|
11
|
+
});
|
|
12
|
+
export function privateEndpointResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => PrivateEndpointResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=privateendpointresponse.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Lifecycle state. `draft` endpoints are not routable until validated and activated; `disabled` endpoints are activated but temporarily not routable.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PrivateEndpointStatus: {
|
|
7
|
+
readonly Draft: "draft";
|
|
8
|
+
readonly Active: "active";
|
|
9
|
+
readonly Disabled: "disabled";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Lifecycle state. `draft` endpoints are not routable until validated and activated; `disabled` endpoints are activated but temporarily not routable.
|
|
13
|
+
*/
|
|
14
|
+
export type PrivateEndpointStatus = OpenEnum<typeof PrivateEndpointStatus>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const PrivateEndpointStatus$inboundSchema: z.ZodType<PrivateEndpointStatus, unknown>;
|
|
17
|
+
//# sourceMappingURL=privateendpointstatus.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d539deb2b851
|
|
4
|
+
*/
|
|
5
|
+
import * as openEnums from "../types/enums.js";
|
|
6
|
+
/**
|
|
7
|
+
* Lifecycle state. `draft` endpoints are not routable until validated and activated; `disabled` endpoints are activated but temporarily not routable.
|
|
8
|
+
*/
|
|
9
|
+
export const PrivateEndpointStatus = {
|
|
10
|
+
Draft: "draft",
|
|
11
|
+
Active: "active",
|
|
12
|
+
Disabled: "disabled",
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const PrivateEndpointStatus$inboundSchema = openEnums.inboundSchema(PrivateEndpointStatus);
|
|
16
|
+
//# sourceMappingURL=privateendpointstatus.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { PrivateEndpointStatus } from "./privateendpointstatus.js";
|
|
5
|
+
export type PrivateEndpointSummary = {
|
|
6
|
+
/**
|
|
7
|
+
* ISO timestamp of when the endpoint was created.
|
|
8
|
+
*/
|
|
9
|
+
createdAt: string;
|
|
10
|
+
/**
|
|
11
|
+
* Stable identifier of the private endpoint.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Display name of the model, or `null` when the model is no longer listed.
|
|
16
|
+
*/
|
|
17
|
+
modelName: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Permanent slug of the model this endpoint serves.
|
|
20
|
+
*/
|
|
21
|
+
modelPermaslug: string;
|
|
22
|
+
/**
|
|
23
|
+
* Public model slug, or `null` when the model is no longer listed.
|
|
24
|
+
*/
|
|
25
|
+
modelSlug: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Display name of the upstream provider.
|
|
28
|
+
*/
|
|
29
|
+
providerName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Lifecycle state. `draft` endpoints are not routable until validated and activated; `disabled` endpoints are activated but temporarily not routable.
|
|
32
|
+
*/
|
|
33
|
+
status: PrivateEndpointStatus;
|
|
34
|
+
};
|
|
35
|
+
/** @internal */
|
|
36
|
+
export declare const PrivateEndpointSummary$inboundSchema: z.ZodType<PrivateEndpointSummary, unknown>;
|
|
37
|
+
export declare function privateEndpointSummaryFromJSON(jsonString: string): SafeParseResult<PrivateEndpointSummary, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=privateendpointsummary.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8f13349c68fa
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { PrivateEndpointStatus$inboundSchema, } from "./privateendpointstatus.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const PrivateEndpointSummary$inboundSchema = z.object({
|
|
11
|
+
created_at: z.string(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
model_name: z.nullable(z.string()),
|
|
14
|
+
model_permaslug: z.string(),
|
|
15
|
+
model_slug: z.nullable(z.string()),
|
|
16
|
+
provider_name: z.string(),
|
|
17
|
+
status: PrivateEndpointStatus$inboundSchema,
|
|
18
|
+
}).transform((v) => {
|
|
19
|
+
return remap$(v, {
|
|
20
|
+
"created_at": "createdAt",
|
|
21
|
+
"model_name": "modelName",
|
|
22
|
+
"model_permaslug": "modelPermaslug",
|
|
23
|
+
"model_slug": "modelSlug",
|
|
24
|
+
"provider_name": "providerName",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export function privateEndpointSummaryFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => PrivateEndpointSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointSummary' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=privateendpointsummary.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { PrivateEndpointCheck } from "./privateendpointcheck.js";
|
|
5
|
+
export type PrivateEndpointValidation = {
|
|
6
|
+
checks: Array<PrivateEndpointCheck>;
|
|
7
|
+
/**
|
|
8
|
+
* Whether every check passed.
|
|
9
|
+
*/
|
|
10
|
+
passed: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const PrivateEndpointValidation$inboundSchema: z.ZodType<PrivateEndpointValidation, unknown>;
|
|
14
|
+
export declare function privateEndpointValidationFromJSON(jsonString: string): SafeParseResult<PrivateEndpointValidation, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=privateendpointvalidation.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c29e1f33143e
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { PrivateEndpointCheck$inboundSchema, } from "./privateendpointcheck.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PrivateEndpointValidation$inboundSchema = z.object({
|
|
10
|
+
checks: z.array(PrivateEndpointCheck$inboundSchema),
|
|
11
|
+
passed: z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
export function privateEndpointValidationFromJSON(jsonString) {
|
|
14
|
+
return safeParse(jsonString, (x) => PrivateEndpointValidation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointValidation' from JSON`);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=privateendpointvalidation.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { PrivateEndpointCheck } from "./privateendpointcheck.js";
|
|
5
|
+
export type PrivateEndpointValidationNullable = {
|
|
6
|
+
checks: Array<PrivateEndpointCheck>;
|
|
7
|
+
/**
|
|
8
|
+
* Whether every check passed.
|
|
9
|
+
*/
|
|
10
|
+
passed: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const PrivateEndpointValidationNullable$inboundSchema: z.ZodType<PrivateEndpointValidationNullable, unknown>;
|
|
14
|
+
export declare function privateEndpointValidationNullableFromJSON(jsonString: string): SafeParseResult<PrivateEndpointValidationNullable, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=privateendpointvalidationnullable.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: cf4aae30836f
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { PrivateEndpointCheck$inboundSchema, } from "./privateendpointcheck.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PrivateEndpointValidationNullable$inboundSchema = z.object({
|
|
10
|
+
checks: z.array(PrivateEndpointCheck$inboundSchema),
|
|
11
|
+
passed: z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
export function privateEndpointValidationNullableFromJSON(jsonString) {
|
|
14
|
+
return safeParse(jsonString, (x) => PrivateEndpointValidationNullable$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointValidationNullable' from JSON`);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=privateendpointvalidationnullable.js.map
|
|
@@ -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 { PrivateEndpointValidation } from "./privateendpointvalidation.js";
|
|
5
|
+
export type PrivateEndpointValidationResponse = {
|
|
6
|
+
data: PrivateEndpointValidation;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const PrivateEndpointValidationResponse$inboundSchema: z.ZodType<PrivateEndpointValidationResponse, unknown>;
|
|
10
|
+
export declare function privateEndpointValidationResponseFromJSON(jsonString: string): SafeParseResult<PrivateEndpointValidationResponse, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=privateendpointvalidationresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a3a95aa177a5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { PrivateEndpointValidation$inboundSchema, } from "./privateendpointvalidation.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PrivateEndpointValidationResponse$inboundSchema = z.object({
|
|
10
|
+
data: PrivateEndpointValidation$inboundSchema,
|
|
11
|
+
});
|
|
12
|
+
export function privateEndpointValidationResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => PrivateEndpointValidationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointValidationResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=privateendpointvalidationresponse.js.map
|
|
@@ -23,13 +23,13 @@ export type RequestedTokenType = ClosedEnum<typeof RequestedTokenType>;
|
|
|
23
23
|
/**
|
|
24
24
|
* Optional; only `inference` is available.
|
|
25
25
|
*/
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const TokenExchangeRequestScope: {
|
|
27
27
|
readonly Inference: "inference";
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* Optional; only `inference` is available.
|
|
31
31
|
*/
|
|
32
|
-
export type
|
|
32
|
+
export type TokenExchangeRequestScope = ClosedEnum<typeof TokenExchangeRequestScope>;
|
|
33
33
|
/**
|
|
34
34
|
* Must be `urn:ietf:params:oauth:token-type:jwt`.
|
|
35
35
|
*/
|
|
@@ -59,7 +59,7 @@ export type TokenExchangeRequest = {
|
|
|
59
59
|
/**
|
|
60
60
|
* Optional; only `inference` is available.
|
|
61
61
|
*/
|
|
62
|
-
scope?:
|
|
62
|
+
scope?: TokenExchangeRequestScope | undefined;
|
|
63
63
|
/**
|
|
64
64
|
* The JWT issued by your identity provider.
|
|
65
65
|
*/
|
|
@@ -74,7 +74,7 @@ export declare const GrantType$outboundSchema: z.ZodEnum<typeof GrantType>;
|
|
|
74
74
|
/** @internal */
|
|
75
75
|
export declare const RequestedTokenType$outboundSchema: z.ZodEnum<typeof RequestedTokenType>;
|
|
76
76
|
/** @internal */
|
|
77
|
-
export declare const
|
|
77
|
+
export declare const TokenExchangeRequestScope$outboundSchema: z.ZodEnum<typeof TokenExchangeRequestScope>;
|
|
78
78
|
/** @internal */
|
|
79
79
|
export declare const SubjectTokenType$outboundSchema: z.ZodEnum<typeof SubjectTokenType>;
|
|
80
80
|
/** @internal */
|
|
@@ -19,7 +19,7 @@ export const RequestedTokenType = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Optional; only `inference` is available.
|
|
21
21
|
*/
|
|
22
|
-
export const
|
|
22
|
+
export const TokenExchangeRequestScope = {
|
|
23
23
|
Inference: "inference",
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
@@ -33,7 +33,7 @@ export const GrantType$outboundSchema = z.enum(GrantType);
|
|
|
33
33
|
/** @internal */
|
|
34
34
|
export const RequestedTokenType$outboundSchema = z.enum(RequestedTokenType);
|
|
35
35
|
/** @internal */
|
|
36
|
-
export const
|
|
36
|
+
export const TokenExchangeRequestScope$outboundSchema = z.enum(TokenExchangeRequestScope);
|
|
37
37
|
/** @internal */
|
|
38
38
|
export const SubjectTokenType$outboundSchema = z.enum(SubjectTokenType);
|
|
39
39
|
/** @internal */
|
|
@@ -41,7 +41,7 @@ export const TokenExchangeRequest$outboundSchema = z.object({
|
|
|
41
41
|
federationPolicyId: z.string(),
|
|
42
42
|
grantType: GrantType$outboundSchema,
|
|
43
43
|
requestedTokenType: RequestedTokenType$outboundSchema.optional(),
|
|
44
|
-
scope:
|
|
44
|
+
scope: TokenExchangeRequestScope$outboundSchema.optional(),
|
|
45
45
|
subjectToken: z.string(),
|
|
46
46
|
subjectTokenType: SubjectTokenType$outboundSchema,
|
|
47
47
|
}).transform((v) => {
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Attest where this deployment processes data.
|
|
5
|
+
*/
|
|
6
|
+
export declare const UpdatePrivateEndpointRequestDeclaredRegion: {
|
|
7
|
+
readonly Global: "global";
|
|
8
|
+
readonly Europe: "europe";
|
|
9
|
+
readonly Us: "us";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Attest where this deployment processes data.
|
|
13
|
+
*/
|
|
14
|
+
export type UpdatePrivateEndpointRequestDeclaredRegion = OpenEnum<typeof UpdatePrivateEndpointRequestDeclaredRegion>;
|
|
15
|
+
export type UpdatePrivateEndpointRequest = {
|
|
16
|
+
/**
|
|
17
|
+
* HTTPS base URL of your deployment. Required unless the provider derives its URL from the BYOK credential (Azure, Amazon Bedrock, Google Vertex).
|
|
18
|
+
*/
|
|
19
|
+
baseUrl?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Attest where this deployment processes data.
|
|
22
|
+
*/
|
|
23
|
+
declaredRegion?: UpdatePrivateEndpointRequestDeclaredRegion | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Attest that this deployment retains no prompt or completion data.
|
|
26
|
+
*/
|
|
27
|
+
declaredZdr?: boolean | null | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Model or deployment identifier sent to the upstream provider.
|
|
30
|
+
*/
|
|
31
|
+
upstreamModelId: string;
|
|
32
|
+
};
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const UpdatePrivateEndpointRequestDeclaredRegion$outboundSchema: z.ZodType<string, UpdatePrivateEndpointRequestDeclaredRegion>;
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type UpdatePrivateEndpointRequest$Outbound = {
|
|
37
|
+
base_url?: string | undefined;
|
|
38
|
+
declared_region?: string | null | undefined;
|
|
39
|
+
declared_zdr?: boolean | null | undefined;
|
|
40
|
+
upstream_model_id: string;
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const UpdatePrivateEndpointRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointRequest$Outbound, UpdatePrivateEndpointRequest>;
|
|
44
|
+
export declare function updatePrivateEndpointRequestToJSON(updatePrivateEndpointRequest: UpdatePrivateEndpointRequest): string;
|
|
45
|
+
//# sourceMappingURL=updateprivateendpointrequest.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 998472d2d99c
|
|
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
|
+
/**
|
|
9
|
+
* Attest where this deployment processes data.
|
|
10
|
+
*/
|
|
11
|
+
export const UpdatePrivateEndpointRequestDeclaredRegion = {
|
|
12
|
+
Global: "global",
|
|
13
|
+
Europe: "europe",
|
|
14
|
+
Us: "us",
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const UpdatePrivateEndpointRequestDeclaredRegion$outboundSchema = openEnums
|
|
18
|
+
.outboundSchema(UpdatePrivateEndpointRequestDeclaredRegion);
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const UpdatePrivateEndpointRequest$outboundSchema = z.object({
|
|
21
|
+
baseUrl: z.string().optional(),
|
|
22
|
+
declaredRegion: z.nullable(UpdatePrivateEndpointRequestDeclaredRegion$outboundSchema).optional(),
|
|
23
|
+
declaredZdr: z.nullable(z.boolean()).optional(),
|
|
24
|
+
upstreamModelId: z.string(),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
baseUrl: "base_url",
|
|
28
|
+
declaredRegion: "declared_region",
|
|
29
|
+
declaredZdr: "declared_zdr",
|
|
30
|
+
upstreamModelId: "upstream_model_id",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
export function updatePrivateEndpointRequestToJSON(updatePrivateEndpointRequest) {
|
|
34
|
+
return JSON.stringify(UpdatePrivateEndpointRequest$outboundSchema.parse(updatePrivateEndpointRequest));
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=updateprivateendpointrequest.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type ValidatePrivateEndpointRequest = {
|
|
3
|
+
/**
|
|
4
|
+
* Workspace whose BYOK credential is used for the live validation call. The workspace must belong to your account.
|
|
5
|
+
*/
|
|
6
|
+
workspaceId: string;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export type ValidatePrivateEndpointRequest$Outbound = {
|
|
10
|
+
workspace_id: string;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const ValidatePrivateEndpointRequest$outboundSchema: z.ZodType<ValidatePrivateEndpointRequest$Outbound, ValidatePrivateEndpointRequest>;
|
|
14
|
+
export declare function validatePrivateEndpointRequestToJSON(validatePrivateEndpointRequest: ValidatePrivateEndpointRequest): string;
|
|
15
|
+
//# sourceMappingURL=validateprivateendpointrequest.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f7909806f4e1
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const ValidatePrivateEndpointRequest$outboundSchema = z.object({
|
|
9
|
+
workspaceId: z.string(),
|
|
10
|
+
}).transform((v) => {
|
|
11
|
+
return remap$(v, {
|
|
12
|
+
workspaceId: "workspace_id",
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
export function validatePrivateEndpointRequestToJSON(validatePrivateEndpointRequest) {
|
|
16
|
+
return JSON.stringify(ValidatePrivateEndpointRequest$outboundSchema.parse(validatePrivateEndpointRequest));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=validateprivateendpointrequest.js.map
|