@openrouter/sdk 1.5.18 → 1.5.20

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 (74) hide show
  1. package/esm/funcs/modelsList.d.ts +1 -1
  2. package/esm/funcs/modelsList.js +2 -2
  3. package/esm/funcs/modelsListForUser.d.ts +1 -1
  4. package/esm/funcs/modelsListForUser.js +2 -2
  5. package/esm/funcs/privateEndpointsUpdate.d.ts +2 -2
  6. package/esm/funcs/privateEndpointsUpdate.js +2 -2
  7. package/esm/funcs/privateEndpointsUpdateParameters.d.ts +4 -2
  8. package/esm/funcs/privateEndpointsUpdateParameters.js +4 -2
  9. package/esm/funcs/privateEndpointsUpdatePricing.d.ts +4 -2
  10. package/esm/funcs/privateEndpointsUpdatePricing.js +4 -2
  11. package/esm/funcs/privateProvidersCreate.d.ts +18 -0
  12. package/esm/funcs/privateProvidersCreate.js +99 -0
  13. package/esm/funcs/privateProvidersDelete.d.ts +18 -0
  14. package/esm/funcs/privateProvidersDelete.js +102 -0
  15. package/esm/funcs/privateProvidersGet.d.ts +18 -0
  16. package/esm/funcs/privateProvidersGet.js +102 -0
  17. package/esm/funcs/privateProvidersList.d.ts +18 -0
  18. package/esm/funcs/privateProvidersList.js +96 -0
  19. package/esm/funcs/privateProvidersUpdate.d.ts +18 -0
  20. package/esm/funcs/privateProvidersUpdate.js +105 -0
  21. package/esm/lib/config.d.ts +3 -3
  22. package/esm/lib/config.js +3 -3
  23. package/esm/models/createguardrailrequest.d.ts +5 -0
  24. package/esm/models/createguardrailrequest.js +2 -0
  25. package/esm/models/createprivateendpointrequest.d.ts +6 -0
  26. package/esm/models/createprivateendpointrequest.js +2 -0
  27. package/esm/models/createprivateproviderrequest.d.ts +36 -0
  28. package/esm/models/createprivateproviderrequest.js +25 -0
  29. package/esm/models/guardrail.d.ts +4 -0
  30. package/esm/models/guardrail.js +2 -0
  31. package/esm/models/index.d.ts +8 -0
  32. package/esm/models/index.js +8 -0
  33. package/esm/models/operations/createprivateprovider.d.ts +67 -0
  34. package/esm/models/operations/createprivateprovider.js +31 -0
  35. package/esm/models/operations/deleteprivateprovider.d.ts +75 -0
  36. package/esm/models/operations/deleteprivateprovider.js +36 -0
  37. package/esm/models/operations/getprivateprovider.d.ts +67 -0
  38. package/esm/models/operations/getprivateprovider.js +30 -0
  39. package/esm/models/operations/index.d.ts +5 -0
  40. package/esm/models/operations/index.js +5 -0
  41. package/esm/models/operations/listprivateproviders.d.ts +65 -0
  42. package/esm/models/operations/listprivateproviders.js +29 -0
  43. package/esm/models/operations/updateprivateprovider.d.ts +69 -0
  44. package/esm/models/operations/updateprivateprovider.js +32 -0
  45. package/esm/models/organizationsettings.d.ts +1 -1
  46. package/esm/models/privateendpoint.d.ts +5 -0
  47. package/esm/models/privateendpoint.js +2 -0
  48. package/esm/models/privateendpointquantization.d.ts +28 -0
  49. package/esm/models/privateendpointquantization.js +27 -0
  50. package/esm/models/privateendpointreasoningreturnmechanism.d.ts +20 -0
  51. package/esm/models/privateendpointreasoningreturnmechanism.js +19 -0
  52. package/esm/models/privateendpointsettings.d.ts +142 -0
  53. package/esm/models/privateendpointsettings.js +112 -0
  54. package/esm/models/privateprovider.d.ts +47 -0
  55. package/esm/models/privateprovider.js +41 -0
  56. package/esm/models/privateproviderdatapolicy.d.ts +28 -0
  57. package/esm/models/privateproviderdatapolicy.js +21 -0
  58. package/esm/models/updateguardrailrequest.d.ts +5 -0
  59. package/esm/models/updateguardrailrequest.js +2 -0
  60. package/esm/models/updateorganizationsettingsrequest.d.ts +1 -1
  61. package/esm/models/updateprivateendpointrequest.d.ts +17 -2
  62. package/esm/models/updateprivateendpointrequest.js +9 -1
  63. package/esm/models/updateprivateendpointsettingsrequest.d.ts +177 -0
  64. package/esm/models/updateprivateendpointsettingsrequest.js +111 -0
  65. package/esm/models/updateprivateproviderrequest.d.ts +42 -0
  66. package/esm/models/updateprivateproviderrequest.js +36 -0
  67. package/esm/sdk/privateendpoints.d.ts +10 -6
  68. package/esm/sdk/privateendpoints.js +10 -6
  69. package/esm/sdk/privateproviders.d.ts +40 -0
  70. package/esm/sdk/privateproviders.js +59 -0
  71. package/esm/sdk/sdk.d.ts +3 -0
  72. package/esm/sdk/sdk.js +4 -0
  73. package/jsr.json +1 -1
  74. package/package.json +8 -8
@@ -0,0 +1,142 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ import { PrivateEndpointQuantization } from "./privateendpointquantization.js";
6
+ import { PrivateEndpointReasoningReturnMechanism } from "./privateendpointreasoningreturnmechanism.js";
7
+ export type PrivateEndpointSettingsCompletions = {
8
+ /**
9
+ * Serves `/chat/completions`; `null` uses the provider default.
10
+ */
11
+ chat: boolean | null;
12
+ /**
13
+ * Serves `/completions`; `null` uses the provider default.
14
+ */
15
+ text: boolean | null;
16
+ };
17
+ export declare const PrivateEndpointSettingsExcludedParameter: {
18
+ readonly Temperature: "temperature";
19
+ readonly TopP: "top_p";
20
+ readonly TopK: "top_k";
21
+ readonly MinP: "min_p";
22
+ readonly TopA: "top_a";
23
+ readonly FrequencyPenalty: "frequency_penalty";
24
+ readonly PresencePenalty: "presence_penalty";
25
+ readonly RepetitionPenalty: "repetition_penalty";
26
+ readonly MaxTokens: "max_tokens";
27
+ readonly MaxCompletionTokens: "max_completion_tokens";
28
+ readonly LogitBias: "logit_bias";
29
+ readonly Logprobs: "logprobs";
30
+ readonly TopLogprobs: "top_logprobs";
31
+ readonly Prediction: "prediction";
32
+ readonly Seed: "seed";
33
+ readonly ResponseFormat: "response_format";
34
+ readonly StructuredOutputs: "structured_outputs";
35
+ readonly Stop: "stop";
36
+ readonly Tools: "tools";
37
+ readonly ToolChoice: "tool_choice";
38
+ readonly ParallelToolCalls: "parallel_tool_calls";
39
+ readonly IncludeReasoning: "include_reasoning";
40
+ readonly Reasoning: "reasoning";
41
+ readonly ReasoningEffort: "reasoning_effort";
42
+ readonly WebSearchOptions: "web_search_options";
43
+ readonly Verbosity: "verbosity";
44
+ };
45
+ export type PrivateEndpointSettingsExcludedParameter = OpenEnum<typeof PrivateEndpointSettingsExcludedParameter>;
46
+ export type PrivateEndpointSettingsInputs = {
47
+ /**
48
+ * Accepts audio input. `null` keeps the provider default.
49
+ */
50
+ audio: boolean | null;
51
+ /**
52
+ * Accepts base64 file data. `null` keeps the provider default.
53
+ */
54
+ base64Files: boolean | null;
55
+ /**
56
+ * Accepts base64 image data. `null` keeps the provider default.
57
+ */
58
+ base64Images: boolean | null;
59
+ /**
60
+ * Accepts file URLs. `null` keeps the provider default.
61
+ */
62
+ fileUrls: boolean | null;
63
+ /**
64
+ * Accepts image URLs. `null` keeps the provider default.
65
+ */
66
+ imageUrls: boolean | null;
67
+ };
68
+ export type PrivateEndpointSettingsReasoning = {
69
+ /**
70
+ * Where the upstream puts reasoning tokens in its response: `reasoning` and `reasoning-content` are response fields, `content-string` is inline in the message, `none` returns no reasoning. `null` uses the provider default.
71
+ */
72
+ returnMechanism: PrivateEndpointReasoningReturnMechanism | null;
73
+ /**
74
+ * Whether requests with `reasoning` route to this endpoint.
75
+ */
76
+ supported: boolean;
77
+ };
78
+ export type PrivateEndpointSettingsToolChoice = {
79
+ /**
80
+ * Accepts `tool_choice: "auto"`.
81
+ */
82
+ auto: boolean;
83
+ /**
84
+ * Accepts a named function in `tool_choice`.
85
+ */
86
+ function: boolean;
87
+ /**
88
+ * Accepts `tool_choice: "none"`.
89
+ */
90
+ none: boolean;
91
+ /**
92
+ * Accepts `tool_choice: "required"`.
93
+ */
94
+ required: boolean;
95
+ };
96
+ /**
97
+ * Capabilities and limits routing uses for this endpoint. A new endpoint copies them from the public endpoint for the same model and provider, or from the model, and the owner can change them. Rate limits are not part of this object: a private endpoint is billed to its own upstream key, so request limits stay with the provider.
98
+ */
99
+ export type PrivateEndpointSettings = {
100
+ completions: PrivateEndpointSettingsCompletions;
101
+ /**
102
+ * Longest prompt plus completion, in tokens, or `null` to keep the model default.
103
+ */
104
+ contextLength: number | null;
105
+ /**
106
+ * Request parameters the upstream rejects even though the model supports them; requests using one do not route here. Cannot name a tested parameter.
107
+ */
108
+ excludedParameters: Array<PrivateEndpointSettingsExcludedParameter>;
109
+ inputs: PrivateEndpointSettingsInputs;
110
+ /**
111
+ * Longest completion the upstream returns, in tokens, or `null` to keep the model default.
112
+ */
113
+ maxCompletionTokens: number | null;
114
+ /**
115
+ * Longest prompt, in tokens, or `null` for no cap below the context length. Cannot exceed `context_length`, or the model context length while `context_length` is `null`.
116
+ */
117
+ maxPromptTokens: number | null;
118
+ /**
119
+ * Weight precision the deployment runs at; `unknown` when not stated.
120
+ */
121
+ quantization: PrivateEndpointQuantization;
122
+ reasoning: PrivateEndpointSettingsReasoning;
123
+ toolChoice: PrivateEndpointSettingsToolChoice;
124
+ };
125
+ /** @internal */
126
+ export declare const PrivateEndpointSettingsCompletions$inboundSchema: z.ZodType<PrivateEndpointSettingsCompletions, unknown>;
127
+ export declare function privateEndpointSettingsCompletionsFromJSON(jsonString: string): SafeParseResult<PrivateEndpointSettingsCompletions, SDKValidationError>;
128
+ /** @internal */
129
+ export declare const PrivateEndpointSettingsExcludedParameter$inboundSchema: z.ZodType<PrivateEndpointSettingsExcludedParameter, unknown>;
130
+ /** @internal */
131
+ export declare const PrivateEndpointSettingsInputs$inboundSchema: z.ZodType<PrivateEndpointSettingsInputs, unknown>;
132
+ export declare function privateEndpointSettingsInputsFromJSON(jsonString: string): SafeParseResult<PrivateEndpointSettingsInputs, SDKValidationError>;
133
+ /** @internal */
134
+ export declare const PrivateEndpointSettingsReasoning$inboundSchema: z.ZodType<PrivateEndpointSettingsReasoning, unknown>;
135
+ export declare function privateEndpointSettingsReasoningFromJSON(jsonString: string): SafeParseResult<PrivateEndpointSettingsReasoning, SDKValidationError>;
136
+ /** @internal */
137
+ export declare const PrivateEndpointSettingsToolChoice$inboundSchema: z.ZodType<PrivateEndpointSettingsToolChoice, unknown>;
138
+ export declare function privateEndpointSettingsToolChoiceFromJSON(jsonString: string): SafeParseResult<PrivateEndpointSettingsToolChoice, SDKValidationError>;
139
+ /** @internal */
140
+ export declare const PrivateEndpointSettings$inboundSchema: z.ZodType<PrivateEndpointSettings, unknown>;
141
+ export declare function privateEndpointSettingsFromJSON(jsonString: string): SafeParseResult<PrivateEndpointSettings, SDKValidationError>;
142
+ //# sourceMappingURL=privateendpointsettings.d.ts.map
@@ -0,0 +1,112 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e21eccb2098e
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 * as openEnums from "../types/enums.js";
9
+ import { PrivateEndpointQuantization$inboundSchema, } from "./privateendpointquantization.js";
10
+ import { PrivateEndpointReasoningReturnMechanism$inboundSchema, } from "./privateendpointreasoningreturnmechanism.js";
11
+ export const PrivateEndpointSettingsExcludedParameter = {
12
+ Temperature: "temperature",
13
+ TopP: "top_p",
14
+ TopK: "top_k",
15
+ MinP: "min_p",
16
+ TopA: "top_a",
17
+ FrequencyPenalty: "frequency_penalty",
18
+ PresencePenalty: "presence_penalty",
19
+ RepetitionPenalty: "repetition_penalty",
20
+ MaxTokens: "max_tokens",
21
+ MaxCompletionTokens: "max_completion_tokens",
22
+ LogitBias: "logit_bias",
23
+ Logprobs: "logprobs",
24
+ TopLogprobs: "top_logprobs",
25
+ Prediction: "prediction",
26
+ Seed: "seed",
27
+ ResponseFormat: "response_format",
28
+ StructuredOutputs: "structured_outputs",
29
+ Stop: "stop",
30
+ Tools: "tools",
31
+ ToolChoice: "tool_choice",
32
+ ParallelToolCalls: "parallel_tool_calls",
33
+ IncludeReasoning: "include_reasoning",
34
+ Reasoning: "reasoning",
35
+ ReasoningEffort: "reasoning_effort",
36
+ WebSearchOptions: "web_search_options",
37
+ Verbosity: "verbosity",
38
+ };
39
+ /** @internal */
40
+ export const PrivateEndpointSettingsCompletions$inboundSchema = z.object({
41
+ chat: z.nullable(z.boolean()),
42
+ text: z.nullable(z.boolean()),
43
+ });
44
+ export function privateEndpointSettingsCompletionsFromJSON(jsonString) {
45
+ return safeParse(jsonString, (x) => PrivateEndpointSettingsCompletions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointSettingsCompletions' from JSON`);
46
+ }
47
+ /** @internal */
48
+ export const PrivateEndpointSettingsExcludedParameter$inboundSchema = openEnums.inboundSchema(PrivateEndpointSettingsExcludedParameter);
49
+ /** @internal */
50
+ export const PrivateEndpointSettingsInputs$inboundSchema = z.object({
51
+ audio: z.nullable(z.boolean()),
52
+ base64_files: z.nullable(z.boolean()),
53
+ base64_images: z.nullable(z.boolean()),
54
+ file_urls: z.nullable(z.boolean()),
55
+ image_urls: z.nullable(z.boolean()),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ "base64_files": "base64Files",
59
+ "base64_images": "base64Images",
60
+ "file_urls": "fileUrls",
61
+ "image_urls": "imageUrls",
62
+ });
63
+ });
64
+ export function privateEndpointSettingsInputsFromJSON(jsonString) {
65
+ return safeParse(jsonString, (x) => PrivateEndpointSettingsInputs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointSettingsInputs' from JSON`);
66
+ }
67
+ /** @internal */
68
+ export const PrivateEndpointSettingsReasoning$inboundSchema = z.object({
69
+ return_mechanism: z.nullable(PrivateEndpointReasoningReturnMechanism$inboundSchema),
70
+ supported: z.boolean(),
71
+ }).transform((v) => {
72
+ return remap$(v, {
73
+ "return_mechanism": "returnMechanism",
74
+ });
75
+ });
76
+ export function privateEndpointSettingsReasoningFromJSON(jsonString) {
77
+ return safeParse(jsonString, (x) => PrivateEndpointSettingsReasoning$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointSettingsReasoning' from JSON`);
78
+ }
79
+ /** @internal */
80
+ export const PrivateEndpointSettingsToolChoice$inboundSchema = z.object({
81
+ auto: z.boolean(),
82
+ function: z.boolean(),
83
+ none: z.boolean(),
84
+ required: z.boolean(),
85
+ });
86
+ export function privateEndpointSettingsToolChoiceFromJSON(jsonString) {
87
+ return safeParse(jsonString, (x) => PrivateEndpointSettingsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointSettingsToolChoice' from JSON`);
88
+ }
89
+ /** @internal */
90
+ export const PrivateEndpointSettings$inboundSchema = z.object({
91
+ completions: z.lazy(() => PrivateEndpointSettingsCompletions$inboundSchema),
92
+ context_length: z.nullable(z.int()),
93
+ excluded_parameters: z.array(PrivateEndpointSettingsExcludedParameter$inboundSchema),
94
+ inputs: z.lazy(() => PrivateEndpointSettingsInputs$inboundSchema),
95
+ max_completion_tokens: z.nullable(z.int()),
96
+ max_prompt_tokens: z.nullable(z.int()),
97
+ quantization: PrivateEndpointQuantization$inboundSchema,
98
+ reasoning: z.lazy(() => PrivateEndpointSettingsReasoning$inboundSchema),
99
+ tool_choice: z.lazy(() => PrivateEndpointSettingsToolChoice$inboundSchema),
100
+ }).transform((v) => {
101
+ return remap$(v, {
102
+ "context_length": "contextLength",
103
+ "excluded_parameters": "excludedParameters",
104
+ "max_completion_tokens": "maxCompletionTokens",
105
+ "max_prompt_tokens": "maxPromptTokens",
106
+ "tool_choice": "toolChoice",
107
+ });
108
+ });
109
+ export function privateEndpointSettingsFromJSON(jsonString) {
110
+ return safeParse(jsonString, (x) => PrivateEndpointSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointSettings' from JSON`);
111
+ }
112
+ //# sourceMappingURL=privateendpointsettings.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
+ /**
5
+ * Your declared data policy, or `null` when none was declared.
6
+ */
7
+ export type PrivateProviderDataPolicy1 = {
8
+ /**
9
+ * Days prompts are retained. Must be `null` unless `retains_prompts` is true.
10
+ */
11
+ promptRetentionDays: number | null;
12
+ /**
13
+ * Whether the provider retains prompts or completions.
14
+ */
15
+ retainsPrompts: boolean;
16
+ /**
17
+ * Whether the provider trains on prompts.
18
+ */
19
+ training: boolean;
20
+ };
21
+ export type PrivateProvider = {
22
+ /**
23
+ * HTTPS base URL of an OpenAI-compatible API, used by private endpoints under this provider that set no URL of their own. Without it, each endpoint must set its own. Private, internal, metadata and OpenRouter hosts are rejected.
24
+ */
25
+ baseUrl: string | null;
26
+ createdAt: string;
27
+ /**
28
+ * Your declared data policy, or `null` when none was declared.
29
+ */
30
+ dataPolicy: PrivateProviderDataPolicy1 | null;
31
+ displayName: string;
32
+ /**
33
+ * Provider name, shown in your activity, logs and Broadcast output. 2-64 letters, numbers, spaces, dots, underscores or hyphens. Cannot be changed later. Neither the name nor its slug may match a public provider name or slug (case-insensitive); other customers may use the same name.
34
+ */
35
+ name: string;
36
+ /**
37
+ * The slug you chose, unique within your account. Use it as `provider_slug` when creating private endpoints and BYOK keys, and in `provider.order`, `only` and `ignore`.
38
+ */
39
+ slug: string;
40
+ };
41
+ /** @internal */
42
+ export declare const PrivateProviderDataPolicy1$inboundSchema: z.ZodType<PrivateProviderDataPolicy1, unknown>;
43
+ export declare function privateProviderDataPolicy1FromJSON(jsonString: string): SafeParseResult<PrivateProviderDataPolicy1, SDKValidationError>;
44
+ /** @internal */
45
+ export declare const PrivateProvider$inboundSchema: z.ZodType<PrivateProvider, unknown>;
46
+ export declare function privateProviderFromJSON(jsonString: string): SafeParseResult<PrivateProvider, SDKValidationError>;
47
+ //# sourceMappingURL=privateprovider.d.ts.map
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: bae774ca2103
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
+ /** @internal */
9
+ export const PrivateProviderDataPolicy1$inboundSchema = z.object({
10
+ prompt_retention_days: z.nullable(z.int()),
11
+ retains_prompts: z.boolean(),
12
+ training: z.boolean(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ "prompt_retention_days": "promptRetentionDays",
16
+ "retains_prompts": "retainsPrompts",
17
+ });
18
+ });
19
+ export function privateProviderDataPolicy1FromJSON(jsonString) {
20
+ return safeParse(jsonString, (x) => PrivateProviderDataPolicy1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateProviderDataPolicy1' from JSON`);
21
+ }
22
+ /** @internal */
23
+ export const PrivateProvider$inboundSchema = z.object({
24
+ base_url: z.nullable(z.string()),
25
+ created_at: z.string(),
26
+ data_policy: z.nullable(z.lazy(() => PrivateProviderDataPolicy1$inboundSchema)),
27
+ display_name: z.string(),
28
+ name: z.string(),
29
+ slug: z.string(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "base_url": "baseUrl",
33
+ "created_at": "createdAt",
34
+ "data_policy": "dataPolicy",
35
+ "display_name": "displayName",
36
+ });
37
+ });
38
+ export function privateProviderFromJSON(jsonString) {
39
+ return safeParse(jsonString, (x) => PrivateProvider$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateProvider' from JSON`);
40
+ }
41
+ //# sourceMappingURL=privateprovider.js.map
@@ -0,0 +1,28 @@
1
+ import * as z from "zod/v4";
2
+ /**
3
+ * Defaults to training on and retaining prompts, the most conservative declaration. Your own declaration; it applies to your own traffic and OpenRouter does not verify it.
4
+ */
5
+ export type PrivateProviderDataPolicy = {
6
+ /**
7
+ * Days prompts are retained. Must be `null` unless `retains_prompts` is true.
8
+ */
9
+ promptRetentionDays: number | null;
10
+ /**
11
+ * Whether the provider retains prompts or completions.
12
+ */
13
+ retainsPrompts: boolean;
14
+ /**
15
+ * Whether the provider trains on prompts.
16
+ */
17
+ training: boolean;
18
+ };
19
+ /** @internal */
20
+ export type PrivateProviderDataPolicy$Outbound = {
21
+ prompt_retention_days: number | null;
22
+ retains_prompts: boolean;
23
+ training: boolean;
24
+ };
25
+ /** @internal */
26
+ export declare const PrivateProviderDataPolicy$outboundSchema: z.ZodType<PrivateProviderDataPolicy$Outbound, PrivateProviderDataPolicy>;
27
+ export declare function privateProviderDataPolicyToJSON(privateProviderDataPolicy: PrivateProviderDataPolicy): string;
28
+ //# sourceMappingURL=privateproviderdatapolicy.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7a9731f38867
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const PrivateProviderDataPolicy$outboundSchema = z.object({
9
+ promptRetentionDays: z.nullable(z.int()),
10
+ retainsPrompts: z.boolean(),
11
+ training: z.boolean(),
12
+ }).transform((v) => {
13
+ return remap$(v, {
14
+ promptRetentionDays: "prompt_retention_days",
15
+ retainsPrompts: "retains_prompts",
16
+ });
17
+ });
18
+ export function privateProviderDataPolicyToJSON(privateProviderDataPolicy) {
19
+ return JSON.stringify(PrivateProviderDataPolicy$outboundSchema.parse(privateProviderDataPolicy));
20
+ }
21
+ //# sourceMappingURL=privateproviderdatapolicy.js.map
@@ -48,6 +48,10 @@ export type UpdateGuardrailRequest = {
48
48
  * Whether this guardrail allows paid endpoints that train on request data.
49
49
  */
50
50
  enablePaidModelTraining?: boolean | null | undefined;
51
+ /**
52
+ * Whether coding harnesses list only their vendor's own models: Codex lists OpenAI models and Claude Code and Claude Desktop list Anthropic models. Affects only the model list those harnesses request from GET /models; a model the client names directly is still routed. Any true across the workspace default, member, and API key guardrails applies.
53
+ */
54
+ enforceFirstPartyHarnessModels?: boolean | null | undefined;
51
55
  /**
52
56
  * Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request.
53
57
  *
@@ -112,6 +116,7 @@ export type UpdateGuardrailRequest$Outbound = {
112
116
  enable_free_model_publication?: boolean | null | undefined;
113
117
  enable_free_model_training?: boolean | null | undefined;
114
118
  enable_paid_model_training?: boolean | null | undefined;
119
+ enforce_first_party_harness_models?: boolean | null | undefined;
115
120
  enforce_zdr?: boolean | null | undefined;
116
121
  enforce_zdr_anthropic?: boolean | null | undefined;
117
122
  enforce_zdr_google?: boolean | null | undefined;
@@ -23,6 +23,7 @@ export const UpdateGuardrailRequest$outboundSchema = z.object({
23
23
  enableFreeModelPublication: z.nullable(z.boolean()).optional(),
24
24
  enableFreeModelTraining: z.nullable(z.boolean()).optional(),
25
25
  enablePaidModelTraining: z.nullable(z.boolean()).optional(),
26
+ enforceFirstPartyHarnessModels: z.nullable(z.boolean()).optional(),
26
27
  enforceZdr: z.nullable(z.boolean()).optional(),
27
28
  enforceZdrAnthropic: z.nullable(z.boolean()).optional(),
28
29
  enforceZdrGoogle: z.nullable(z.boolean()).optional(),
@@ -47,6 +48,7 @@ export const UpdateGuardrailRequest$outboundSchema = z.object({
47
48
  enableFreeModelPublication: "enable_free_model_publication",
48
49
  enableFreeModelTraining: "enable_free_model_training",
49
50
  enablePaidModelTraining: "enable_paid_model_training",
51
+ enforceFirstPartyHarnessModels: "enforce_first_party_harness_models",
50
52
  enforceZdr: "enforce_zdr",
51
53
  enforceZdrAnthropic: "enforce_zdr_anthropic",
52
54
  enforceZdrGoogle: "enforce_zdr_google",
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  export type UpdateOrganizationSettingsRequest = {
3
3
  /**
4
- * When true, `GET /api/v1/models` called with one of the organization's API keys returns only the models that key can use (the `/api/v1/models/user` catalog), and the signed-in dashboard shows the same list. Anonymous requests always receive the public catalog.
4
+ * When true, the signed-in dashboard lists only the models the organization can use. `GET /api/v1/models` called with an API key always returns only the models that key can use, whatever this setting says; anonymous requests receive the public catalog.
5
5
  */
6
6
  isFilteredModelCatalogEnabled: boolean;
7
7
  };
@@ -1,5 +1,8 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
+ import { PrivateEndpointDeclaredParameter } from "./privateendpointdeclaredparameter.js";
4
+ import { PrivateEndpointPricing, PrivateEndpointPricing$Outbound } from "./privateendpointpricing.js";
5
+ import { UpdatePrivateEndpointSettingsRequest, UpdatePrivateEndpointSettingsRequest$Outbound } from "./updateprivateendpointsettingsrequest.js";
3
6
  /**
4
7
  * Attest where this deployment processes data.
5
8
  */
@@ -12,11 +15,18 @@ export declare const UpdatePrivateEndpointRequestDeclaredRegion: {
12
15
  * Attest where this deployment processes data.
13
16
  */
14
17
  export type UpdatePrivateEndpointRequestDeclaredRegion = OpenEnum<typeof UpdatePrivateEndpointRequestDeclaredRegion>;
18
+ /**
19
+ * Only the fields present change. `base_url`, `upstream_model_id`, `declared_zdr` and `declared_region` are accepted on a draft only; `pricing` and `declared_parameters` replace their value; `settings` is itself a partial update where `null` clears a limit or restores the provider default.
20
+ */
15
21
  export type UpdatePrivateEndpointRequest = {
16
22
  /**
17
23
  * HTTPS base URL of your deployment. Required unless the provider derives its URL from the BYOK credential (Azure, Amazon Bedrock, Google Vertex).
18
24
  */
19
25
  baseUrl?: string | undefined;
26
+ /**
27
+ * Parameters the upstream supports beyond the tested ones. Replaces the earlier declaration; tested parameters stay. Order and repeated names are ignored, but the list holds at most as many entries as there are declarable parameters, repeats included. `tool_choice` requires `tools` to be tested or declared.
28
+ */
29
+ declaredParameters?: Array<PrivateEndpointDeclaredParameter> | undefined;
20
30
  /**
21
31
  * Attest where this deployment processes data.
22
32
  */
@@ -25,19 +35,24 @@ export type UpdatePrivateEndpointRequest = {
25
35
  * Attest that this deployment retains no prompt or completion data.
26
36
  */
27
37
  declaredZdr?: boolean | null | undefined;
38
+ pricing?: PrivateEndpointPricing | undefined;
39
+ settings?: UpdatePrivateEndpointSettingsRequest | undefined;
28
40
  /**
29
41
  * Model or deployment identifier sent to the upstream provider.
30
42
  */
31
- upstreamModelId: string;
43
+ upstreamModelId?: string | undefined;
32
44
  };
33
45
  /** @internal */
34
46
  export declare const UpdatePrivateEndpointRequestDeclaredRegion$outboundSchema: z.ZodType<string, UpdatePrivateEndpointRequestDeclaredRegion>;
35
47
  /** @internal */
36
48
  export type UpdatePrivateEndpointRequest$Outbound = {
37
49
  base_url?: string | undefined;
50
+ declared_parameters?: Array<string> | undefined;
38
51
  declared_region?: string | null | undefined;
39
52
  declared_zdr?: boolean | null | undefined;
40
- upstream_model_id: string;
53
+ pricing?: PrivateEndpointPricing$Outbound | undefined;
54
+ settings?: UpdatePrivateEndpointSettingsRequest$Outbound | undefined;
55
+ upstream_model_id?: string | undefined;
41
56
  };
42
57
  /** @internal */
43
58
  export declare const UpdatePrivateEndpointRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointRequest$Outbound, UpdatePrivateEndpointRequest>;
@@ -5,6 +5,9 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import * as openEnums from "../types/enums.js";
8
+ import { PrivateEndpointDeclaredParameter$outboundSchema, } from "./privateendpointdeclaredparameter.js";
9
+ import { PrivateEndpointPricing$outboundSchema, } from "./privateendpointpricing.js";
10
+ import { UpdatePrivateEndpointSettingsRequest$outboundSchema, } from "./updateprivateendpointsettingsrequest.js";
8
11
  /**
9
12
  * Attest where this deployment processes data.
10
13
  */
@@ -19,12 +22,17 @@ export const UpdatePrivateEndpointRequestDeclaredRegion$outboundSchema = openEnu
19
22
  /** @internal */
20
23
  export const UpdatePrivateEndpointRequest$outboundSchema = z.object({
21
24
  baseUrl: z.string().optional(),
25
+ declaredParameters: z.array(PrivateEndpointDeclaredParameter$outboundSchema)
26
+ .optional(),
22
27
  declaredRegion: z.nullable(UpdatePrivateEndpointRequestDeclaredRegion$outboundSchema).optional(),
23
28
  declaredZdr: z.nullable(z.boolean()).optional(),
24
- upstreamModelId: z.string(),
29
+ pricing: PrivateEndpointPricing$outboundSchema.optional(),
30
+ settings: UpdatePrivateEndpointSettingsRequest$outboundSchema.optional(),
31
+ upstreamModelId: z.string().optional(),
25
32
  }).transform((v) => {
26
33
  return remap$(v, {
27
34
  baseUrl: "base_url",
35
+ declaredParameters: "declared_parameters",
28
36
  declaredRegion: "declared_region",
29
37
  declaredZdr: "declared_zdr",
30
38
  upstreamModelId: "upstream_model_id",