@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.
Files changed (100) hide show
  1. package/esm/funcs/privateEndpointsActivate.d.ts +19 -0
  2. package/esm/funcs/privateEndpointsActivate.js +103 -0
  3. package/esm/funcs/privateEndpointsCreate.d.ts +19 -0
  4. package/esm/funcs/privateEndpointsCreate.js +101 -0
  5. package/esm/funcs/privateEndpointsDelete.d.ts +19 -0
  6. package/esm/funcs/privateEndpointsDelete.js +107 -0
  7. package/esm/funcs/privateEndpointsDisable.d.ts +19 -0
  8. package/esm/funcs/privateEndpointsDisable.js +103 -0
  9. package/esm/funcs/privateEndpointsEnable.d.ts +19 -0
  10. package/esm/funcs/privateEndpointsEnable.js +103 -0
  11. package/esm/funcs/privateEndpointsGet.d.ts +19 -0
  12. package/esm/funcs/privateEndpointsGet.js +103 -0
  13. package/esm/funcs/privateEndpointsList.d.ts +19 -0
  14. package/esm/funcs/privateEndpointsList.js +97 -0
  15. package/esm/funcs/privateEndpointsUpdate.d.ts +19 -0
  16. package/esm/funcs/privateEndpointsUpdate.js +106 -0
  17. package/esm/funcs/privateEndpointsUpdatePricing.d.ts +19 -0
  18. package/esm/funcs/privateEndpointsUpdatePricing.js +106 -0
  19. package/esm/funcs/privateEndpointsValidate.d.ts +19 -0
  20. package/esm/funcs/privateEndpointsValidate.js +106 -0
  21. package/esm/lib/config.d.ts +2 -2
  22. package/esm/lib/config.js +2 -2
  23. package/esm/models/createprivateendpointrequest.d.ts +67 -0
  24. package/esm/models/createprivateendpointrequest.js +44 -0
  25. package/esm/models/createprivateendpointvalidationfailedresponseerror.d.ts +20 -0
  26. package/esm/models/createprivateendpointvalidationfailedresponseerror.js +27 -0
  27. package/esm/models/deleteprivateendpointresponse.d.ts +19 -0
  28. package/esm/models/deleteprivateendpointresponse.js +21 -0
  29. package/esm/models/errors/createprivateendpoint.d.ts +45 -0
  30. package/esm/models/errors/createprivateendpoint.js +53 -0
  31. package/esm/models/errors/createprivateendpointvalidationfailedresponseerror.d.ts +21 -0
  32. package/esm/models/errors/createprivateendpointvalidationfailedresponseerror.js +35 -0
  33. package/esm/models/errors/index.d.ts +2 -0
  34. package/esm/models/errors/index.js +2 -0
  35. package/esm/models/index.d.ts +21 -0
  36. package/esm/models/index.js +21 -0
  37. package/esm/models/listprivateendpointsresponse.d.ts +11 -0
  38. package/esm/models/listprivateendpointsresponse.js +15 -0
  39. package/esm/models/managedprivateendpoint.d.ts +47 -0
  40. package/esm/models/managedprivateendpoint.js +35 -0
  41. package/esm/models/managedprivateendpointresponse.d.ts +11 -0
  42. package/esm/models/managedprivateendpointresponse.js +15 -0
  43. package/esm/models/operations/activateprivateendpoint.d.ts +58 -0
  44. package/esm/models/operations/activateprivateendpoint.js +21 -0
  45. package/esm/models/operations/createprivateendpoint.d.ts +61 -0
  46. package/esm/models/operations/createprivateendpoint.js +25 -0
  47. package/esm/models/operations/deleteprivateendpoint.d.ts +77 -0
  48. package/esm/models/operations/deleteprivateendpoint.js +34 -0
  49. package/esm/models/operations/disableprivateendpoint.d.ts +58 -0
  50. package/esm/models/operations/disableprivateendpoint.js +21 -0
  51. package/esm/models/operations/enableprivateendpoint.d.ts +58 -0
  52. package/esm/models/operations/enableprivateendpoint.js +21 -0
  53. package/esm/models/operations/getprivateendpoint.d.ts +58 -0
  54. package/esm/models/operations/getprivateendpoint.js +21 -0
  55. package/esm/models/operations/index.d.ts +10 -0
  56. package/esm/models/operations/index.js +10 -0
  57. package/esm/models/operations/listprivateendpoints.d.ts +53 -0
  58. package/esm/models/operations/listprivateendpoints.js +20 -0
  59. package/esm/models/operations/updateprivateendpoint.d.ts +61 -0
  60. package/esm/models/operations/updateprivateendpoint.js +24 -0
  61. package/esm/models/operations/updateprivateendpointpricing.d.ts +61 -0
  62. package/esm/models/operations/updateprivateendpointpricing.js +24 -0
  63. package/esm/models/operations/validateprivateendpoint.d.ts +61 -0
  64. package/esm/models/operations/validateprivateendpoint.js +24 -0
  65. package/esm/models/privateendpoint.d.ts +60 -0
  66. package/esm/models/privateendpoint.js +41 -0
  67. package/esm/models/privateendpointactivation.d.ts +18 -0
  68. package/esm/models/privateendpointactivation.js +18 -0
  69. package/esm/models/privateendpointcheck.d.ts +31 -0
  70. package/esm/models/privateendpointcheck.js +27 -0
  71. package/esm/models/privateendpointcheckreason.d.ts +30 -0
  72. package/esm/models/privateendpointcheckreason.js +29 -0
  73. package/esm/models/privateendpointdeclaredregion.d.ts +17 -0
  74. package/esm/models/privateendpointdeclaredregion.js +16 -0
  75. package/esm/models/privateendpointpricing.d.ts +28 -0
  76. package/esm/models/privateendpointpricing.js +23 -0
  77. package/esm/models/privateendpointresponse.d.ts +11 -0
  78. package/esm/models/privateendpointresponse.js +15 -0
  79. package/esm/models/privateendpointstatus.d.ts +17 -0
  80. package/esm/models/privateendpointstatus.js +16 -0
  81. package/esm/models/privateendpointsummary.d.ts +38 -0
  82. package/esm/models/privateendpointsummary.js +30 -0
  83. package/esm/models/privateendpointvalidation.d.ts +15 -0
  84. package/esm/models/privateendpointvalidation.js +16 -0
  85. package/esm/models/privateendpointvalidationnullable.d.ts +15 -0
  86. package/esm/models/privateendpointvalidationnullable.js +16 -0
  87. package/esm/models/privateendpointvalidationresponse.d.ts +11 -0
  88. package/esm/models/privateendpointvalidationresponse.js +15 -0
  89. package/esm/models/updateprivateendpointpricingrequest.d.ts +16 -0
  90. package/esm/models/updateprivateendpointpricingrequest.js +14 -0
  91. package/esm/models/updateprivateendpointrequest.d.ts +45 -0
  92. package/esm/models/updateprivateendpointrequest.js +36 -0
  93. package/esm/models/validateprivateendpointrequest.d.ts +15 -0
  94. package/esm/models/validateprivateendpointrequest.js +18 -0
  95. package/esm/sdk/privateendpoints.d.ts +76 -0
  96. package/esm/sdk/privateendpoints.js +109 -0
  97. package/esm/sdk/sdk.d.ts +3 -0
  98. package/esm/sdk/sdk.js +4 -0
  99. package/jsr.json +1 -1
  100. package/package.json +5 -5
@@ -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
@@ -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
@@ -0,0 +1,76 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as models from "../models/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ export declare class PrivateEndpoints extends ClientSDK {
5
+ /**
6
+ * List private endpoints
7
+ *
8
+ * @remarks
9
+ * List the organization's private endpoints, including drafts. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.
10
+ */
11
+ list(request?: operations.ListPrivateEndpointsRequest | undefined, options?: RequestOptions): Promise<models.ListPrivateEndpointsResponse>;
12
+ /**
13
+ * Create a private endpoint
14
+ *
15
+ * @remarks
16
+ * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
17
+ */
18
+ create(request: operations.CreatePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
19
+ /**
20
+ * Delete a private endpoint
21
+ *
22
+ * @remarks
23
+ * Delete a private endpoint and stop routing to it. Pass `draft_only=true` to refuse (409) when the endpoint has been activated. [Management key](/docs/guides/overview/auth/management-api-keys) required.
24
+ */
25
+ delete(request: operations.DeletePrivateEndpointRequest, options?: RequestOptions): Promise<models.DeletePrivateEndpointResponse>;
26
+ /**
27
+ * Get a private endpoint
28
+ *
29
+ * @remarks
30
+ * Get one private endpoint with its upstream configuration and current pricing. [Management key](/docs/guides/overview/auth/management-api-keys) required.
31
+ */
32
+ get(request: operations.GetPrivateEndpointRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
33
+ /**
34
+ * Update a draft private endpoint
35
+ *
36
+ * @remarks
37
+ * Replace a draft endpoint's upstream configuration: send `upstream_model_id`, and `base_url` to change it (an omitted `base_url` keeps the stored one). Omitted data-policy declarations are kept while the upstream is unchanged and cleared when it changes. Any change clears earlier validation. Active endpoints return 409; delete and re-create them instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.
38
+ */
39
+ update(request: operations.UpdatePrivateEndpointRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
40
+ /**
41
+ * Activate a validated private endpoint
42
+ *
43
+ * @remarks
44
+ * Make a validated draft routable. Returns 409 when the endpoint was never validated, the validation is stale, or it is already active. [Management key](/docs/guides/overview/auth/management-api-keys) required.
45
+ */
46
+ activate(request: operations.ActivatePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
47
+ /**
48
+ * Disable a private endpoint
49
+ *
50
+ * @remarks
51
+ * Stop routing to an active endpoint without deleting it. [Management key](/docs/guides/overview/auth/management-api-keys) required.
52
+ */
53
+ disable(request: operations.DisablePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
54
+ /**
55
+ * Enable a private endpoint
56
+ *
57
+ * @remarks
58
+ * Resume routing to a disabled endpoint. [Management key](/docs/guides/overview/auth/management-api-keys) required.
59
+ */
60
+ enable(request: operations.EnablePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
61
+ /**
62
+ * Set private endpoint pricing
63
+ *
64
+ * @remarks
65
+ * Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. [Management key](/docs/guides/overview/auth/management-api-keys) required.
66
+ */
67
+ updatePricing(request: operations.UpdatePrivateEndpointPricingRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
68
+ /**
69
+ * Validate a draft private endpoint
70
+ *
71
+ * @remarks
72
+ * Send a live test request to the draft endpoint using the given workspace's BYOK credential for its provider. A passing validation is required before activation. Failed checks return 200 with `passed: false`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
73
+ */
74
+ validate(request: operations.ValidatePrivateEndpointRequest, options?: RequestOptions): Promise<models.PrivateEndpointValidationResponse>;
75
+ }
76
+ //# sourceMappingURL=privateendpoints.d.ts.map