@openrouter/sdk 1.5.44 → 1.5.46

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 (40) hide show
  1. package/esm/funcs/providersListProviderEndpoints.d.ts +19 -0
  2. package/esm/funcs/providersListProviderEndpoints.js +108 -0
  3. package/esm/lib/config.d.ts +2 -2
  4. package/esm/lib/config.js +2 -2
  5. package/esm/models/decisionsrefusalanswer.d.ts +13 -0
  6. package/esm/models/decisionsrefusalanswer.js +14 -0
  7. package/esm/models/decisionsresponse.d.ts +9 -3
  8. package/esm/models/decisionsresponse.js +5 -0
  9. package/esm/models/decisionsurlcitationannotation.d.ts +29 -0
  10. package/esm/models/decisionsurlcitationannotation.js +34 -0
  11. package/esm/models/endpointsummary.d.ts +65 -0
  12. package/esm/models/endpointsummary.js +48 -0
  13. package/esm/models/endpointtestprofile.d.ts +271 -0
  14. package/esm/models/endpointtestprofile.js +252 -0
  15. package/esm/models/index.d.ts +9 -0
  16. package/esm/models/index.js +9 -0
  17. package/esm/models/operations/gettaskclassifications.d.ts +4 -4
  18. package/esm/models/operations/gettaskclassifications.js +3 -3
  19. package/esm/models/operations/index.d.ts +1 -0
  20. package/esm/models/operations/index.js +1 -0
  21. package/esm/models/operations/listproviderendpoints.d.ts +106 -0
  22. package/esm/models/operations/listproviderendpoints.js +55 -0
  23. package/esm/models/providerendpoints.d.ts +34 -0
  24. package/esm/models/providerendpoints.js +32 -0
  25. package/esm/models/providerendpointsresponse.d.ts +11 -0
  26. package/esm/models/providerendpointsresponse.js +15 -0
  27. package/esm/models/providerendpointstats.d.ts +11 -0
  28. package/esm/models/providerendpointstats.js +17 -0
  29. package/esm/models/providerendpointstatsavailable.d.ts +66 -0
  30. package/esm/models/providerendpointstatsavailable.js +51 -0
  31. package/esm/models/providerendpointstatsunavailable.d.ts +10 -0
  32. package/esm/models/providerendpointstatsunavailable.js +14 -0
  33. package/esm/models/speechrequest.d.ts +45 -2
  34. package/esm/models/speechrequest.js +23 -0
  35. package/esm/models/sttrequest.d.ts +45 -2
  36. package/esm/models/sttrequest.js +23 -0
  37. package/esm/sdk/providers.d.ts +8 -0
  38. package/esm/sdk/providers.js +10 -0
  39. package/jsr.json +1 -1
  40. package/package.json +3 -3
@@ -0,0 +1,271 @@
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
+ /**
6
+ * Reasoning return mechanism the endpoint uses when neither its features nor the model set one
7
+ */
8
+ export declare const DefaultReasoningReturnMechanism: {
9
+ readonly ContentString: "content-string";
10
+ readonly ReasoningContent: "reasoning-content";
11
+ readonly Reasoning: "reasoning";
12
+ readonly None: "none";
13
+ };
14
+ /**
15
+ * Reasoning return mechanism the endpoint uses when neither its features nor the model set one
16
+ */
17
+ export type DefaultReasoningReturnMechanism = OpenEnum<typeof DefaultReasoningReturnMechanism>;
18
+ /**
19
+ * How leading instruction (developer/system) messages are mapped before reaching a chat-completions provider. 'developer' keeps the developer role, 'system' downgrades developer to system, 'user-only' downgrades both to a wrapped user message. Overridable per-endpoint.
20
+ */
21
+ export declare const InstructionRoleSupport: {
22
+ readonly Developer: "developer";
23
+ readonly System: "system";
24
+ readonly UserOnly: "user-only";
25
+ };
26
+ /**
27
+ * How leading instruction (developer/system) messages are mapped before reaching a chat-completions provider. 'developer' keeps the developer role, 'system' downgrades developer to system, 'user-only' downgrades both to a wrapped user message. Overridable per-endpoint.
28
+ */
29
+ export type InstructionRoleSupport = OpenEnum<typeof InstructionRoleSupport>;
30
+ export type ChatTemplateConfig = {
31
+ /**
32
+ * How leading instruction (developer/system) messages are mapped before reaching a chat-completions provider. 'developer' keeps the developer role, 'system' downgrades developer to system, 'user-only' downgrades both to a wrapped user message. Overridable per-endpoint.
33
+ */
34
+ instructionRoleSupport?: InstructionRoleSupport | null | undefined;
35
+ /**
36
+ * Whether to hoist and merge system messages
37
+ */
38
+ shouldHoistAndMergeSystemMessages?: boolean | null | undefined;
39
+ /**
40
+ * Whether the model accepts system/developer messages that appear after the first user/assistant turn. When false, mid-session instruction messages are downgraded to wrapped user messages. Overridable per-endpoint.
41
+ */
42
+ supportsMidSessionSystem?: boolean | null | undefined;
43
+ };
44
+ export declare const FeaturesDefaultReasoningEffort: {
45
+ readonly Max: "max";
46
+ readonly Xhigh: "xhigh";
47
+ readonly High: "high";
48
+ readonly Medium: "medium";
49
+ readonly Low: "low";
50
+ readonly Minimal: "minimal";
51
+ };
52
+ export type FeaturesDefaultReasoningEffort = OpenEnum<typeof FeaturesDefaultReasoningEffort>;
53
+ /**
54
+ * Default mechanism for returning reasoning tokens. Can be overridden per-endpoint via endpoint features.
55
+ */
56
+ export declare const FeaturesReasoningReturnMechanism: {
57
+ readonly ContentString: "content-string";
58
+ readonly ReasoningContent: "reasoning-content";
59
+ readonly Reasoning: "reasoning";
60
+ readonly None: "none";
61
+ };
62
+ /**
63
+ * Default mechanism for returning reasoning tokens. Can be overridden per-endpoint via endpoint features.
64
+ */
65
+ export type FeaturesReasoningReturnMechanism = OpenEnum<typeof FeaturesReasoningReturnMechanism>;
66
+ export declare const FeaturesSupportedReasoningEffort: {
67
+ readonly Max: "max";
68
+ readonly Xhigh: "xhigh";
69
+ readonly High: "high";
70
+ readonly Medium: "medium";
71
+ readonly Low: "low";
72
+ readonly Minimal: "minimal";
73
+ };
74
+ export type FeaturesSupportedReasoningEffort = OpenEnum<typeof FeaturesSupportedReasoningEffort>;
75
+ export type FeaturesReasoningConfig = {
76
+ defaultReasoningEffort?: FeaturesDefaultReasoningEffort | null | undefined;
77
+ /**
78
+ * Default reasoning enabled state for the model. When true, reasoning is enabled by default; when false, disabled by default. User-specified values always override this.
79
+ */
80
+ defaultReasoningEnabled?: boolean | null | undefined;
81
+ endToken?: string | null | undefined;
82
+ isMandatoryReasoning?: boolean | null | undefined;
83
+ /**
84
+ * Default mechanism for returning reasoning tokens. Can be overridden per-endpoint via endpoint features.
85
+ */
86
+ reasoningReturnMechanism?: FeaturesReasoningReturnMechanism | null | undefined;
87
+ startToken?: string | null | undefined;
88
+ /**
89
+ * List of reasoning effort values the model accepts upstream
90
+ */
91
+ supportedReasoningEfforts?: Array<FeaturesSupportedReasoningEffort> | null | undefined;
92
+ /**
93
+ * Whether the model supports reasoning effort
94
+ */
95
+ supportsReasoningEffort?: boolean | null | undefined;
96
+ /**
97
+ * Whether the model supports reasoning max tokens
98
+ */
99
+ supportsReasoningMaxTokens?: boolean | null | undefined;
100
+ systemPrompt?: string | null | undefined;
101
+ };
102
+ export declare const RequiredInputModality: {
103
+ readonly Text: "text";
104
+ readonly Image: "image";
105
+ readonly Audio: "audio";
106
+ readonly Video: "video";
107
+ };
108
+ export type RequiredInputModality = OpenEnum<typeof RequiredInputModality>;
109
+ export type Features = {
110
+ chatTemplateConfig?: ChatTemplateConfig | null | undefined;
111
+ reasoningConfig?: FeaturesReasoningConfig | null | undefined;
112
+ /**
113
+ * Input modalities every request to the model must include, e.g. ["video"] for video-to-video-only models. Requests missing a required modality are rejected before dispatch. A required text modality is satisfied by the prompt. Currently enforced on the video generation request path.
114
+ */
115
+ requiredInputModalities?: Array<RequiredInputModality> | null | undefined;
116
+ };
117
+ export declare const EndpointTestProfileInputModality: {
118
+ readonly Text: "text";
119
+ readonly Image: "image";
120
+ readonly File: "file";
121
+ readonly Audio: "audio";
122
+ readonly Video: "video";
123
+ };
124
+ export type EndpointTestProfileInputModality = OpenEnum<typeof EndpointTestProfileInputModality>;
125
+ export declare const EndpointTestProfileOutputModality: {
126
+ readonly Text: "text";
127
+ readonly Image: "image";
128
+ readonly Embeddings: "embeddings";
129
+ readonly Audio: "audio";
130
+ readonly Video: "video";
131
+ readonly Rerank: "rerank";
132
+ readonly Decisions: "decisions";
133
+ readonly Speech: "speech";
134
+ readonly Transcription: "transcription";
135
+ };
136
+ export type EndpointTestProfileOutputModality = OpenEnum<typeof EndpointTestProfileOutputModality>;
137
+ export declare const DefaultReasoningEffort: {
138
+ readonly Max: "max";
139
+ readonly Xhigh: "xhigh";
140
+ readonly High: "high";
141
+ readonly Medium: "medium";
142
+ readonly Low: "low";
143
+ readonly Minimal: "minimal";
144
+ };
145
+ export type DefaultReasoningEffort = OpenEnum<typeof DefaultReasoningEffort>;
146
+ /**
147
+ * Default mechanism for returning reasoning tokens. Can be overridden per-endpoint via endpoint features.
148
+ */
149
+ export declare const ReasoningReturnMechanism: {
150
+ readonly ContentString: "content-string";
151
+ readonly ReasoningContent: "reasoning-content";
152
+ readonly Reasoning: "reasoning";
153
+ readonly None: "none";
154
+ };
155
+ /**
156
+ * Default mechanism for returning reasoning tokens. Can be overridden per-endpoint via endpoint features.
157
+ */
158
+ export type ReasoningReturnMechanism = OpenEnum<typeof ReasoningReturnMechanism>;
159
+ export declare const SupportedReasoningEffort: {
160
+ readonly Max: "max";
161
+ readonly Xhigh: "xhigh";
162
+ readonly High: "high";
163
+ readonly Medium: "medium";
164
+ readonly Low: "low";
165
+ readonly Minimal: "minimal";
166
+ };
167
+ export type SupportedReasoningEffort = OpenEnum<typeof SupportedReasoningEffort>;
168
+ export type EndpointTestProfileReasoningConfig = {
169
+ defaultReasoningEffort?: DefaultReasoningEffort | null | undefined;
170
+ /**
171
+ * Default reasoning enabled state for the model. When true, reasoning is enabled by default; when false, disabled by default. User-specified values always override this.
172
+ */
173
+ defaultReasoningEnabled?: boolean | null | undefined;
174
+ endToken?: string | null | undefined;
175
+ isMandatoryReasoning?: boolean | null | undefined;
176
+ /**
177
+ * Default mechanism for returning reasoning tokens. Can be overridden per-endpoint via endpoint features.
178
+ */
179
+ reasoningReturnMechanism?: ReasoningReturnMechanism | null | undefined;
180
+ startToken?: string | null | undefined;
181
+ /**
182
+ * List of reasoning effort values the model accepts upstream
183
+ */
184
+ supportedReasoningEfforts?: Array<SupportedReasoningEffort> | null | undefined;
185
+ /**
186
+ * Whether the model supports reasoning effort
187
+ */
188
+ supportsReasoningEffort?: boolean | null | undefined;
189
+ /**
190
+ * Whether the model supports reasoning max tokens
191
+ */
192
+ supportsReasoningMaxTokens?: boolean | null | undefined;
193
+ systemPrompt?: string | null | undefined;
194
+ };
195
+ export type EndpointTestProfileModel = {
196
+ features: Features | null;
197
+ inputModalities: Array<EndpointTestProfileInputModality>;
198
+ outputModalities: Array<EndpointTestProfileOutputModality>;
199
+ reasoningConfig: EndpointTestProfileReasoningConfig | null;
200
+ /**
201
+ * Public model slug
202
+ */
203
+ slug: string;
204
+ supportsReasoning: boolean;
205
+ };
206
+ export type EndpointTestProfile = {
207
+ /**
208
+ * Context length the endpoint serves: its override, else the model's
209
+ */
210
+ contextLength: number | null;
211
+ /**
212
+ * Reasoning return mechanism the endpoint uses when neither its features nor the model set one
213
+ */
214
+ defaultReasoningReturnMechanism: DefaultReasoningReturnMechanism | null;
215
+ /**
216
+ * Adapter the endpoint is served through: its provider override, else the provider's; null when unresolved
217
+ */
218
+ effectiveAdapterName: string | null;
219
+ /**
220
+ * Endpoint feature flags; null when unset or invalid
221
+ */
222
+ endpointFeatures: {
223
+ [k: string]: any;
224
+ } | null;
225
+ /**
226
+ * Whether the endpoint serves a closed lab model through the lab or an official partner
227
+ */
228
+ isLabTrusted: boolean;
229
+ model: EndpointTestProfileModel;
230
+ };
231
+ /** @internal */
232
+ export declare const DefaultReasoningReturnMechanism$inboundSchema: z.ZodType<DefaultReasoningReturnMechanism, unknown>;
233
+ /** @internal */
234
+ export declare const InstructionRoleSupport$inboundSchema: z.ZodType<InstructionRoleSupport, unknown>;
235
+ /** @internal */
236
+ export declare const ChatTemplateConfig$inboundSchema: z.ZodType<ChatTemplateConfig, unknown>;
237
+ export declare function chatTemplateConfigFromJSON(jsonString: string): SafeParseResult<ChatTemplateConfig, SDKValidationError>;
238
+ /** @internal */
239
+ export declare const FeaturesDefaultReasoningEffort$inboundSchema: z.ZodType<FeaturesDefaultReasoningEffort, unknown>;
240
+ /** @internal */
241
+ export declare const FeaturesReasoningReturnMechanism$inboundSchema: z.ZodType<FeaturesReasoningReturnMechanism, unknown>;
242
+ /** @internal */
243
+ export declare const FeaturesSupportedReasoningEffort$inboundSchema: z.ZodType<FeaturesSupportedReasoningEffort, unknown>;
244
+ /** @internal */
245
+ export declare const FeaturesReasoningConfig$inboundSchema: z.ZodType<FeaturesReasoningConfig, unknown>;
246
+ export declare function featuresReasoningConfigFromJSON(jsonString: string): SafeParseResult<FeaturesReasoningConfig, SDKValidationError>;
247
+ /** @internal */
248
+ export declare const RequiredInputModality$inboundSchema: z.ZodType<RequiredInputModality, unknown>;
249
+ /** @internal */
250
+ export declare const Features$inboundSchema: z.ZodType<Features, unknown>;
251
+ export declare function featuresFromJSON(jsonString: string): SafeParseResult<Features, SDKValidationError>;
252
+ /** @internal */
253
+ export declare const EndpointTestProfileInputModality$inboundSchema: z.ZodType<EndpointTestProfileInputModality, unknown>;
254
+ /** @internal */
255
+ export declare const EndpointTestProfileOutputModality$inboundSchema: z.ZodType<EndpointTestProfileOutputModality, unknown>;
256
+ /** @internal */
257
+ export declare const DefaultReasoningEffort$inboundSchema: z.ZodType<DefaultReasoningEffort, unknown>;
258
+ /** @internal */
259
+ export declare const ReasoningReturnMechanism$inboundSchema: z.ZodType<ReasoningReturnMechanism, unknown>;
260
+ /** @internal */
261
+ export declare const SupportedReasoningEffort$inboundSchema: z.ZodType<SupportedReasoningEffort, unknown>;
262
+ /** @internal */
263
+ export declare const EndpointTestProfileReasoningConfig$inboundSchema: z.ZodType<EndpointTestProfileReasoningConfig, unknown>;
264
+ export declare function endpointTestProfileReasoningConfigFromJSON(jsonString: string): SafeParseResult<EndpointTestProfileReasoningConfig, SDKValidationError>;
265
+ /** @internal */
266
+ export declare const EndpointTestProfileModel$inboundSchema: z.ZodType<EndpointTestProfileModel, unknown>;
267
+ export declare function endpointTestProfileModelFromJSON(jsonString: string): SafeParseResult<EndpointTestProfileModel, SDKValidationError>;
268
+ /** @internal */
269
+ export declare const EndpointTestProfile$inboundSchema: z.ZodType<EndpointTestProfile, unknown>;
270
+ export declare function endpointTestProfileFromJSON(jsonString: string): SafeParseResult<EndpointTestProfile, SDKValidationError>;
271
+ //# sourceMappingURL=endpointtestprofile.d.ts.map
@@ -0,0 +1,252 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ed343fe8be16
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
+ /**
10
+ * Reasoning return mechanism the endpoint uses when neither its features nor the model set one
11
+ */
12
+ export const DefaultReasoningReturnMechanism = {
13
+ ContentString: "content-string",
14
+ ReasoningContent: "reasoning-content",
15
+ Reasoning: "reasoning",
16
+ None: "none",
17
+ };
18
+ /**
19
+ * How leading instruction (developer/system) messages are mapped before reaching a chat-completions provider. 'developer' keeps the developer role, 'system' downgrades developer to system, 'user-only' downgrades both to a wrapped user message. Overridable per-endpoint.
20
+ */
21
+ export const InstructionRoleSupport = {
22
+ Developer: "developer",
23
+ System: "system",
24
+ UserOnly: "user-only",
25
+ };
26
+ export const FeaturesDefaultReasoningEffort = {
27
+ Max: "max",
28
+ Xhigh: "xhigh",
29
+ High: "high",
30
+ Medium: "medium",
31
+ Low: "low",
32
+ Minimal: "minimal",
33
+ };
34
+ /**
35
+ * Default mechanism for returning reasoning tokens. Can be overridden per-endpoint via endpoint features.
36
+ */
37
+ export const FeaturesReasoningReturnMechanism = {
38
+ ContentString: "content-string",
39
+ ReasoningContent: "reasoning-content",
40
+ Reasoning: "reasoning",
41
+ None: "none",
42
+ };
43
+ export const FeaturesSupportedReasoningEffort = {
44
+ Max: "max",
45
+ Xhigh: "xhigh",
46
+ High: "high",
47
+ Medium: "medium",
48
+ Low: "low",
49
+ Minimal: "minimal",
50
+ };
51
+ export const RequiredInputModality = {
52
+ Text: "text",
53
+ Image: "image",
54
+ Audio: "audio",
55
+ Video: "video",
56
+ };
57
+ export const EndpointTestProfileInputModality = {
58
+ Text: "text",
59
+ Image: "image",
60
+ File: "file",
61
+ Audio: "audio",
62
+ Video: "video",
63
+ };
64
+ export const EndpointTestProfileOutputModality = {
65
+ Text: "text",
66
+ Image: "image",
67
+ Embeddings: "embeddings",
68
+ Audio: "audio",
69
+ Video: "video",
70
+ Rerank: "rerank",
71
+ Decisions: "decisions",
72
+ Speech: "speech",
73
+ Transcription: "transcription",
74
+ };
75
+ export const DefaultReasoningEffort = {
76
+ Max: "max",
77
+ Xhigh: "xhigh",
78
+ High: "high",
79
+ Medium: "medium",
80
+ Low: "low",
81
+ Minimal: "minimal",
82
+ };
83
+ /**
84
+ * Default mechanism for returning reasoning tokens. Can be overridden per-endpoint via endpoint features.
85
+ */
86
+ export const ReasoningReturnMechanism = {
87
+ ContentString: "content-string",
88
+ ReasoningContent: "reasoning-content",
89
+ Reasoning: "reasoning",
90
+ None: "none",
91
+ };
92
+ export const SupportedReasoningEffort = {
93
+ Max: "max",
94
+ Xhigh: "xhigh",
95
+ High: "high",
96
+ Medium: "medium",
97
+ Low: "low",
98
+ Minimal: "minimal",
99
+ };
100
+ /** @internal */
101
+ export const DefaultReasoningReturnMechanism$inboundSchema = openEnums.inboundSchema(DefaultReasoningReturnMechanism);
102
+ /** @internal */
103
+ export const InstructionRoleSupport$inboundSchema = openEnums.inboundSchema(InstructionRoleSupport);
104
+ /** @internal */
105
+ export const ChatTemplateConfig$inboundSchema = z.object({
106
+ instruction_role_support: z.nullable(InstructionRoleSupport$inboundSchema)
107
+ .optional(),
108
+ should_hoist_and_merge_system_messages: z.nullable(z.boolean()).optional(),
109
+ supports_mid_session_system: z.nullable(z.boolean()).optional(),
110
+ }).transform((v) => {
111
+ return remap$(v, {
112
+ "instruction_role_support": "instructionRoleSupport",
113
+ "should_hoist_and_merge_system_messages": "shouldHoistAndMergeSystemMessages",
114
+ "supports_mid_session_system": "supportsMidSessionSystem",
115
+ });
116
+ });
117
+ export function chatTemplateConfigFromJSON(jsonString) {
118
+ return safeParse(jsonString, (x) => ChatTemplateConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatTemplateConfig' from JSON`);
119
+ }
120
+ /** @internal */
121
+ export const FeaturesDefaultReasoningEffort$inboundSchema = openEnums.inboundSchema(FeaturesDefaultReasoningEffort);
122
+ /** @internal */
123
+ export const FeaturesReasoningReturnMechanism$inboundSchema = openEnums.inboundSchema(FeaturesReasoningReturnMechanism);
124
+ /** @internal */
125
+ export const FeaturesSupportedReasoningEffort$inboundSchema = openEnums.inboundSchema(FeaturesSupportedReasoningEffort);
126
+ /** @internal */
127
+ export const FeaturesReasoningConfig$inboundSchema = z.object({
128
+ default_reasoning_effort: z.nullable(FeaturesDefaultReasoningEffort$inboundSchema).optional(),
129
+ default_reasoning_enabled: z.nullable(z.boolean()).optional(),
130
+ end_token: z.nullable(z.string()).optional(),
131
+ is_mandatory_reasoning: z.nullable(z.boolean()).optional(),
132
+ reasoning_return_mechanism: z.nullable(FeaturesReasoningReturnMechanism$inboundSchema).optional(),
133
+ start_token: z.nullable(z.string()).optional(),
134
+ supported_reasoning_efforts: z.nullable(z.array(FeaturesSupportedReasoningEffort$inboundSchema)).optional(),
135
+ supports_reasoning_effort: z.nullable(z.boolean()).optional(),
136
+ supports_reasoning_max_tokens: z.nullable(z.boolean()).optional(),
137
+ system_prompt: z.nullable(z.string()).optional(),
138
+ }).transform((v) => {
139
+ return remap$(v, {
140
+ "default_reasoning_effort": "defaultReasoningEffort",
141
+ "default_reasoning_enabled": "defaultReasoningEnabled",
142
+ "end_token": "endToken",
143
+ "is_mandatory_reasoning": "isMandatoryReasoning",
144
+ "reasoning_return_mechanism": "reasoningReturnMechanism",
145
+ "start_token": "startToken",
146
+ "supported_reasoning_efforts": "supportedReasoningEfforts",
147
+ "supports_reasoning_effort": "supportsReasoningEffort",
148
+ "supports_reasoning_max_tokens": "supportsReasoningMaxTokens",
149
+ "system_prompt": "systemPrompt",
150
+ });
151
+ });
152
+ export function featuresReasoningConfigFromJSON(jsonString) {
153
+ return safeParse(jsonString, (x) => FeaturesReasoningConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeaturesReasoningConfig' from JSON`);
154
+ }
155
+ /** @internal */
156
+ export const RequiredInputModality$inboundSchema = openEnums.inboundSchema(RequiredInputModality);
157
+ /** @internal */
158
+ export const Features$inboundSchema = z.object({
159
+ chat_template_config: z.nullable(z.lazy(() => ChatTemplateConfig$inboundSchema)).optional(),
160
+ reasoning_config: z.nullable(z.lazy(() => FeaturesReasoningConfig$inboundSchema)).optional(),
161
+ required_input_modalities: z.nullable(z.array(RequiredInputModality$inboundSchema)).optional(),
162
+ }).transform((v) => {
163
+ return remap$(v, {
164
+ "chat_template_config": "chatTemplateConfig",
165
+ "reasoning_config": "reasoningConfig",
166
+ "required_input_modalities": "requiredInputModalities",
167
+ });
168
+ });
169
+ export function featuresFromJSON(jsonString) {
170
+ return safeParse(jsonString, (x) => Features$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Features' from JSON`);
171
+ }
172
+ /** @internal */
173
+ export const EndpointTestProfileInputModality$inboundSchema = openEnums.inboundSchema(EndpointTestProfileInputModality);
174
+ /** @internal */
175
+ export const EndpointTestProfileOutputModality$inboundSchema = openEnums.inboundSchema(EndpointTestProfileOutputModality);
176
+ /** @internal */
177
+ export const DefaultReasoningEffort$inboundSchema = openEnums.inboundSchema(DefaultReasoningEffort);
178
+ /** @internal */
179
+ export const ReasoningReturnMechanism$inboundSchema = openEnums.inboundSchema(ReasoningReturnMechanism);
180
+ /** @internal */
181
+ export const SupportedReasoningEffort$inboundSchema = openEnums.inboundSchema(SupportedReasoningEffort);
182
+ /** @internal */
183
+ export const EndpointTestProfileReasoningConfig$inboundSchema = z.object({
184
+ default_reasoning_effort: z.nullable(DefaultReasoningEffort$inboundSchema)
185
+ .optional(),
186
+ default_reasoning_enabled: z.nullable(z.boolean()).optional(),
187
+ end_token: z.nullable(z.string()).optional(),
188
+ is_mandatory_reasoning: z.nullable(z.boolean()).optional(),
189
+ reasoning_return_mechanism: z.nullable(ReasoningReturnMechanism$inboundSchema)
190
+ .optional(),
191
+ start_token: z.nullable(z.string()).optional(),
192
+ supported_reasoning_efforts: z.nullable(z.array(SupportedReasoningEffort$inboundSchema)).optional(),
193
+ supports_reasoning_effort: z.nullable(z.boolean()).optional(),
194
+ supports_reasoning_max_tokens: z.nullable(z.boolean()).optional(),
195
+ system_prompt: z.nullable(z.string()).optional(),
196
+ }).transform((v) => {
197
+ return remap$(v, {
198
+ "default_reasoning_effort": "defaultReasoningEffort",
199
+ "default_reasoning_enabled": "defaultReasoningEnabled",
200
+ "end_token": "endToken",
201
+ "is_mandatory_reasoning": "isMandatoryReasoning",
202
+ "reasoning_return_mechanism": "reasoningReturnMechanism",
203
+ "start_token": "startToken",
204
+ "supported_reasoning_efforts": "supportedReasoningEfforts",
205
+ "supports_reasoning_effort": "supportsReasoningEffort",
206
+ "supports_reasoning_max_tokens": "supportsReasoningMaxTokens",
207
+ "system_prompt": "systemPrompt",
208
+ });
209
+ });
210
+ export function endpointTestProfileReasoningConfigFromJSON(jsonString) {
211
+ return safeParse(jsonString, (x) => EndpointTestProfileReasoningConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EndpointTestProfileReasoningConfig' from JSON`);
212
+ }
213
+ /** @internal */
214
+ export const EndpointTestProfileModel$inboundSchema = z.object({
215
+ features: z.nullable(z.lazy(() => Features$inboundSchema)),
216
+ input_modalities: z.array(EndpointTestProfileInputModality$inboundSchema),
217
+ output_modalities: z.array(EndpointTestProfileOutputModality$inboundSchema),
218
+ reasoning_config: z.nullable(z.lazy(() => EndpointTestProfileReasoningConfig$inboundSchema)),
219
+ slug: z.string(),
220
+ supports_reasoning: z.boolean(),
221
+ }).transform((v) => {
222
+ return remap$(v, {
223
+ "input_modalities": "inputModalities",
224
+ "output_modalities": "outputModalities",
225
+ "reasoning_config": "reasoningConfig",
226
+ "supports_reasoning": "supportsReasoning",
227
+ });
228
+ });
229
+ export function endpointTestProfileModelFromJSON(jsonString) {
230
+ return safeParse(jsonString, (x) => EndpointTestProfileModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EndpointTestProfileModel' from JSON`);
231
+ }
232
+ /** @internal */
233
+ export const EndpointTestProfile$inboundSchema = z.object({
234
+ context_length: z.nullable(z.int()),
235
+ default_reasoning_return_mechanism: z.nullable(DefaultReasoningReturnMechanism$inboundSchema),
236
+ effective_adapter_name: z.nullable(z.string()),
237
+ endpoint_features: z.nullable(z.record(z.string(), z.any())),
238
+ is_lab_trusted: z.boolean(),
239
+ model: z.lazy(() => EndpointTestProfileModel$inboundSchema),
240
+ }).transform((v) => {
241
+ return remap$(v, {
242
+ "context_length": "contextLength",
243
+ "default_reasoning_return_mechanism": "defaultReasoningReturnMechanism",
244
+ "effective_adapter_name": "effectiveAdapterName",
245
+ "endpoint_features": "endpointFeatures",
246
+ "is_lab_trusted": "isLabTrusted",
247
+ });
248
+ });
249
+ export function endpointTestProfileFromJSON(jsonString) {
250
+ return safeParse(jsonString, (x) => EndpointTestProfile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EndpointTestProfile' from JSON`);
251
+ }
252
+ //# sourceMappingURL=endpointtestprofile.js.map
@@ -306,10 +306,12 @@ export * from "./decisionschoicequestion.js";
306
306
  export * from "./decisionsimageasset.js";
307
307
  export * from "./decisionsnoulanswer.js";
308
308
  export * from "./decisionsnoulquestion.js";
309
+ export * from "./decisionsrefusalanswer.js";
309
310
  export * from "./decisionsrequest.js";
310
311
  export * from "./decisionsresponse.js";
311
312
  export * from "./decisionsscoreanswer.js";
312
313
  export * from "./decisionsscorequestion.js";
314
+ export * from "./decisionsurlcitationannotation.js";
313
315
  export * from "./decisionsusageinputtokensdetails.js";
314
316
  export * from "./defaultparameters.js";
315
317
  export * from "./deferredbm25search.js";
@@ -330,6 +332,8 @@ export * from "./embeddings.js";
330
332
  export * from "./endpointinfo.js";
331
333
  export * from "./endpointsmetadata.js";
332
334
  export * from "./endpointstatus.js";
335
+ export * from "./endpointsummary.js";
336
+ export * from "./endpointtestprofile.js";
333
337
  export * from "./enumcapability.js";
334
338
  export * from "./errorevent.js";
335
339
  export * from "./externaluser.js";
@@ -670,6 +674,11 @@ export * from "./privateprovider.js";
670
674
  export * from "./promptcachebreakpoint.js";
671
675
  export * from "./promptcacheoptions.js";
672
676
  export * from "./promptinjectionscanscope.js";
677
+ export * from "./providerendpoints.js";
678
+ export * from "./providerendpointsresponse.js";
679
+ export * from "./providerendpointstats.js";
680
+ export * from "./providerendpointstatsavailable.js";
681
+ export * from "./providerendpointstatsunavailable.js";
673
682
  export * from "./providername.js";
674
683
  export * from "./provideroptions.js";
675
684
  export * from "./provideroverloadedresponseerrordata.js";
@@ -310,10 +310,12 @@ export * from "./decisionschoicequestion.js";
310
310
  export * from "./decisionsimageasset.js";
311
311
  export * from "./decisionsnoulanswer.js";
312
312
  export * from "./decisionsnoulquestion.js";
313
+ export * from "./decisionsrefusalanswer.js";
313
314
  export * from "./decisionsrequest.js";
314
315
  export * from "./decisionsresponse.js";
315
316
  export * from "./decisionsscoreanswer.js";
316
317
  export * from "./decisionsscorequestion.js";
318
+ export * from "./decisionsurlcitationannotation.js";
317
319
  export * from "./decisionsusageinputtokensdetails.js";
318
320
  export * from "./defaultparameters.js";
319
321
  export * from "./deferredbm25search.js";
@@ -334,6 +336,8 @@ export * from "./embeddings.js";
334
336
  export * from "./endpointinfo.js";
335
337
  export * from "./endpointsmetadata.js";
336
338
  export * from "./endpointstatus.js";
339
+ export * from "./endpointsummary.js";
340
+ export * from "./endpointtestprofile.js";
337
341
  export * from "./enumcapability.js";
338
342
  export * from "./errorevent.js";
339
343
  export * from "./externaluser.js";
@@ -674,6 +678,11 @@ export * from "./privateprovider.js";
674
678
  export * from "./promptcachebreakpoint.js";
675
679
  export * from "./promptcacheoptions.js";
676
680
  export * from "./promptinjectionscanscope.js";
681
+ export * from "./providerendpoints.js";
682
+ export * from "./providerendpointsresponse.js";
683
+ export * from "./providerendpointstats.js";
684
+ export * from "./providerendpointstatsavailable.js";
685
+ export * from "./providerendpointstatsunavailable.js";
677
686
  export * from "./providername.js";
678
687
  export * from "./provideroptions.js";
679
688
  export * from "./provideroverloadedresponseerrordata.js";
@@ -24,13 +24,13 @@ export type GetTaskClassificationsGlobals = {
24
24
  /**
25
25
  * Trailing time window for the classification data. Currently only `7d` (trailing 7 days) is supported.
26
26
  */
27
- export declare const Window: {
27
+ export declare const GetTaskClassificationsWindow: {
28
28
  readonly Sevend: "7d";
29
29
  };
30
30
  /**
31
31
  * Trailing time window for the classification data. Currently only `7d` (trailing 7 days) is supported.
32
32
  */
33
- export type Window = ClosedEnum<typeof Window>;
33
+ export type GetTaskClassificationsWindow = ClosedEnum<typeof GetTaskClassificationsWindow>;
34
34
  export type GetTaskClassificationsRequest = {
35
35
  /**
36
36
  * The app identifier should be your app's URL and is used as the primary identifier for rankings.
@@ -54,10 +54,10 @@ export type GetTaskClassificationsRequest = {
54
54
  /**
55
55
  * Trailing time window for the classification data. Currently only `7d` (trailing 7 days) is supported.
56
56
  */
57
- window?: Window | undefined;
57
+ window?: GetTaskClassificationsWindow | undefined;
58
58
  };
59
59
  /** @internal */
60
- export declare const Window$outboundSchema: z.ZodEnum<typeof Window>;
60
+ export declare const GetTaskClassificationsWindow$outboundSchema: z.ZodEnum<typeof GetTaskClassificationsWindow>;
61
61
  /** @internal */
62
62
  export type GetTaskClassificationsRequest$Outbound = {
63
63
  "HTTP-Referer"?: string | undefined;
@@ -7,17 +7,17 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  /**
8
8
  * Trailing time window for the classification data. Currently only `7d` (trailing 7 days) is supported.
9
9
  */
10
- export const Window = {
10
+ export const GetTaskClassificationsWindow = {
11
11
  Sevend: "7d",
12
12
  };
13
13
  /** @internal */
14
- export const Window$outboundSchema = z.enum(Window);
14
+ export const GetTaskClassificationsWindow$outboundSchema = z.enum(GetTaskClassificationsWindow);
15
15
  /** @internal */
16
16
  export const GetTaskClassificationsRequest$outboundSchema = z.object({
17
17
  httpReferer: z.string().optional(),
18
18
  appTitle: z.string().optional(),
19
19
  appCategories: z.string().optional(),
20
- window: Window$outboundSchema.default("7d"),
20
+ window: GetTaskClassificationsWindow$outboundSchema.default("7d"),
21
21
  }).transform((v) => {
22
22
  return remap$(v, {
23
23
  httpReferer: "HTTP-Referer",
@@ -112,6 +112,7 @@ export * from "./listpresets.js";
112
112
  export * from "./listpresetversions.js";
113
113
  export * from "./listprivateendpoints.js";
114
114
  export * from "./listprivateproviders.js";
115
+ export * from "./listproviderendpoints.js";
115
116
  export * from "./listproviders.js";
116
117
  export * from "./listscimgroupmappings.js";
117
118
  export * from "./listscimgroups.js";
@@ -116,6 +116,7 @@ export * from "./listpresets.js";
116
116
  export * from "./listpresetversions.js";
117
117
  export * from "./listprivateendpoints.js";
118
118
  export * from "./listprivateproviders.js";
119
+ export * from "./listproviderendpoints.js";
119
120
  export * from "./listproviders.js";
120
121
  export * from "./listscimgroupmappings.js";
121
122
  export * from "./listscimgroups.js";