@openrouter/sdk 0.13.44 → 0.13.45

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 (104) hide show
  1. package/esm/funcs/byokList.js +1 -1
  2. package/esm/funcs/embeddingsListModels.d.ts +4 -2
  3. package/esm/funcs/embeddingsListModels.js +45 -8
  4. package/esm/funcs/guardrailsList.js +1 -1
  5. package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +1 -1
  6. package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +1 -1
  7. package/esm/funcs/guardrailsListKeyAssignments.js +1 -1
  8. package/esm/funcs/guardrailsListMemberAssignments.js +1 -1
  9. package/esm/funcs/modelsList.d.ts +4 -2
  10. package/esm/funcs/modelsList.js +39 -7
  11. package/esm/funcs/modelsListForUser.d.ts +4 -2
  12. package/esm/funcs/modelsListForUser.js +45 -8
  13. package/esm/funcs/observabilityList.js +1 -1
  14. package/esm/funcs/organizationListMembers.js +1 -1
  15. package/esm/funcs/presetsList.js +1 -1
  16. package/esm/funcs/presetsListVersions.js +1 -1
  17. package/esm/funcs/workspacesList.js +1 -1
  18. package/esm/funcs/workspacesListMembers.js +1 -1
  19. package/esm/lib/config.d.ts +2 -2
  20. package/esm/lib/config.js +2 -2
  21. package/esm/models/additionaltoolsitem.d.ts +5 -5
  22. package/esm/models/additionaltoolsitem.js +3 -3
  23. package/esm/models/anthropiccitationsearchresultlocationparam.d.ts +24 -0
  24. package/esm/models/{anthropiccitationsearchresultlocation.js → anthropiccitationsearchresultlocationparam.js} +5 -5
  25. package/esm/models/anthropiccitationwebsearchresultlocationparam.d.ts +20 -0
  26. package/esm/models/{anthropiccitationwebsearchresultlocation.js → anthropiccitationwebsearchresultlocationparam.js} +5 -5
  27. package/esm/models/anthropictextblockparam.d.ts +6 -6
  28. package/esm/models/anthropictextblockparam.js +6 -6
  29. package/esm/models/chatformatjsonobjectconfig.d.ts +15 -0
  30. package/esm/models/chatformatjsonobjectconfig.js +13 -0
  31. package/esm/models/chatrequest.d.ts +5 -5
  32. package/esm/models/chatrequest.js +3 -3
  33. package/esm/models/createobservabilitydestinationrequest.d.ts +3 -3
  34. package/esm/models/createobservabilitydestinationrequest.js +2 -2
  35. package/esm/models/imageinputmodality.d.ts +13 -0
  36. package/esm/models/imageinputmodality.js +15 -0
  37. package/esm/models/imagemodelarchitecture.d.ts +2 -2
  38. package/esm/models/imagemodelarchitecture.js +2 -2
  39. package/esm/models/index.d.ts +9 -2
  40. package/esm/models/index.js +9 -2
  41. package/esm/models/legacychatcontentvideo.d.ts +3 -3
  42. package/esm/models/legacychatcontentvideo.js +3 -3
  43. package/esm/models/legacychatcontentvideoinput.d.ts +23 -0
  44. package/esm/models/legacychatcontentvideoinput.js +21 -0
  45. package/esm/models/messagesrequest.d.ts +5 -5
  46. package/esm/models/messagesrequest.js +3 -3
  47. package/esm/models/messagessearchmodelsservertool.d.ts +28 -0
  48. package/esm/models/messagessearchmodelsservertool.js +20 -0
  49. package/esm/models/modelarchitecture.d.ts +2 -35
  50. package/esm/models/modelarchitecture.js +2 -32
  51. package/esm/models/modelslistresponse.d.ts +20 -0
  52. package/esm/models/modelslistresponse.js +14 -0
  53. package/esm/models/observabilityfilterrulegroup.d.ts +94 -0
  54. package/esm/models/observabilityfilterrulegroup.js +103 -0
  55. package/esm/models/observabilityfilterrulesconfig.d.ts +3 -100
  56. package/esm/models/observabilityfilterrulesconfig.js +2 -105
  57. package/esm/models/observabilityfilterrulesconfignullable.d.ts +18 -0
  58. package/esm/models/observabilityfilterrulesconfignullable.js +15 -0
  59. package/esm/models/operations/createembeddings.d.ts +1 -12
  60. package/esm/models/operations/createembeddings.js +1 -17
  61. package/esm/models/operations/getmodels.d.ts +19 -0
  62. package/esm/models/operations/getmodels.js +15 -0
  63. package/esm/models/operations/listbyokkeys.d.ts +2 -2
  64. package/esm/models/operations/listbyokkeys.js +2 -2
  65. package/esm/models/operations/listembeddingsmodels.d.ts +19 -0
  66. package/esm/models/operations/listembeddingsmodels.js +15 -0
  67. package/esm/models/operations/listguardrailkeyassignments.d.ts +2 -2
  68. package/esm/models/operations/listguardrailkeyassignments.js +2 -2
  69. package/esm/models/operations/listguardrailmemberassignments.d.ts +2 -2
  70. package/esm/models/operations/listguardrailmemberassignments.js +2 -2
  71. package/esm/models/operations/listguardrails.d.ts +2 -2
  72. package/esm/models/operations/listguardrails.js +2 -2
  73. package/esm/models/operations/listkeyassignments.d.ts +2 -2
  74. package/esm/models/operations/listkeyassignments.js +2 -2
  75. package/esm/models/operations/listmemberassignments.d.ts +2 -2
  76. package/esm/models/operations/listmemberassignments.js +2 -2
  77. package/esm/models/operations/listmodelsuser.d.ts +19 -0
  78. package/esm/models/operations/listmodelsuser.js +15 -0
  79. package/esm/models/operations/listobservabilitydestinations.d.ts +2 -2
  80. package/esm/models/operations/listobservabilitydestinations.js +2 -2
  81. package/esm/models/operations/listorganizationmembers.d.ts +2 -2
  82. package/esm/models/operations/listorganizationmembers.js +2 -2
  83. package/esm/models/operations/listpresets.d.ts +2 -2
  84. package/esm/models/operations/listpresets.js +2 -2
  85. package/esm/models/operations/listpresetversions.d.ts +2 -2
  86. package/esm/models/operations/listpresetversions.js +2 -2
  87. package/esm/models/operations/listworkspacemembers.d.ts +2 -2
  88. package/esm/models/operations/listworkspacemembers.js +2 -2
  89. package/esm/models/operations/listworkspaces.d.ts +2 -2
  90. package/esm/models/operations/listworkspaces.js +2 -2
  91. package/esm/models/responsesrequest.d.ts +5 -5
  92. package/esm/models/responsesrequest.js +3 -3
  93. package/esm/models/searchmodelsservertoolopenrouter.d.ts +28 -0
  94. package/esm/models/searchmodelsservertoolopenrouter.js +20 -0
  95. package/esm/models/updateobservabilitydestinationrequest.d.ts +3 -3
  96. package/esm/models/updateobservabilitydestinationrequest.js +2 -2
  97. package/esm/sdk/embeddings.d.ts +4 -2
  98. package/esm/sdk/embeddings.js +2 -1
  99. package/esm/sdk/models.d.ts +7 -2
  100. package/esm/sdk/models.js +3 -2
  101. package/jsr.json +1 -1
  102. package/package.json +6 -6
  103. package/esm/models/anthropiccitationsearchresultlocation.d.ts +0 -24
  104. package/esm/models/anthropiccitationwebsearchresultlocation.d.ts +0 -20
@@ -0,0 +1,24 @@
1
+ import * as z from "zod/v4";
2
+ export type AnthropicCitationSearchResultLocationParam = {
3
+ citedText: string;
4
+ endBlockIndex: number;
5
+ searchResultIndex: number;
6
+ source: string;
7
+ startBlockIndex: number;
8
+ title: string | null;
9
+ type: "search_result_location";
10
+ };
11
+ /** @internal */
12
+ export type AnthropicCitationSearchResultLocationParam$Outbound = {
13
+ cited_text: string;
14
+ end_block_index: number;
15
+ search_result_index: number;
16
+ source: string;
17
+ start_block_index: number;
18
+ title: string | null;
19
+ type: "search_result_location";
20
+ };
21
+ /** @internal */
22
+ export declare const AnthropicCitationSearchResultLocationParam$outboundSchema: z.ZodType<AnthropicCitationSearchResultLocationParam$Outbound, AnthropicCitationSearchResultLocationParam>;
23
+ export declare function anthropicCitationSearchResultLocationParamToJSON(anthropicCitationSearchResultLocationParam: AnthropicCitationSearchResultLocationParam): string;
24
+ //# sourceMappingURL=anthropiccitationsearchresultlocationparam.d.ts.map
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 3e456a65667d
3
+ * @generated-id: 8713c849c708
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  /** @internal */
8
- export const AnthropicCitationSearchResultLocation$outboundSchema = z.object({
8
+ export const AnthropicCitationSearchResultLocationParam$outboundSchema = z.object({
9
9
  citedText: z.string(),
10
10
  endBlockIndex: z.int(),
11
11
  searchResultIndex: z.int(),
@@ -21,7 +21,7 @@ export const AnthropicCitationSearchResultLocation$outboundSchema = z.object({
21
21
  startBlockIndex: "start_block_index",
22
22
  });
23
23
  });
24
- export function anthropicCitationSearchResultLocationToJSON(anthropicCitationSearchResultLocation) {
25
- return JSON.stringify(AnthropicCitationSearchResultLocation$outboundSchema.parse(anthropicCitationSearchResultLocation));
24
+ export function anthropicCitationSearchResultLocationParamToJSON(anthropicCitationSearchResultLocationParam) {
25
+ return JSON.stringify(AnthropicCitationSearchResultLocationParam$outboundSchema.parse(anthropicCitationSearchResultLocationParam));
26
26
  }
27
- //# sourceMappingURL=anthropiccitationsearchresultlocation.js.map
27
+ //# sourceMappingURL=anthropiccitationsearchresultlocationparam.js.map
@@ -0,0 +1,20 @@
1
+ import * as z from "zod/v4";
2
+ export type AnthropicCitationWebSearchResultLocationParam = {
3
+ citedText: string;
4
+ encryptedIndex: string;
5
+ title: string | null;
6
+ type: "web_search_result_location";
7
+ url: string;
8
+ };
9
+ /** @internal */
10
+ export type AnthropicCitationWebSearchResultLocationParam$Outbound = {
11
+ cited_text: string;
12
+ encrypted_index: string;
13
+ title: string | null;
14
+ type: "web_search_result_location";
15
+ url: string;
16
+ };
17
+ /** @internal */
18
+ export declare const AnthropicCitationWebSearchResultLocationParam$outboundSchema: z.ZodType<AnthropicCitationWebSearchResultLocationParam$Outbound, AnthropicCitationWebSearchResultLocationParam>;
19
+ export declare function anthropicCitationWebSearchResultLocationParamToJSON(anthropicCitationWebSearchResultLocationParam: AnthropicCitationWebSearchResultLocationParam): string;
20
+ //# sourceMappingURL=anthropiccitationwebsearchresultlocationparam.d.ts.map
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 5c08200bb3d1
3
+ * @generated-id: d0d7a90d9642
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  /** @internal */
8
- export const AnthropicCitationWebSearchResultLocation$outboundSchema = z.object({
8
+ export const AnthropicCitationWebSearchResultLocationParam$outboundSchema = z.object({
9
9
  citedText: z.string(),
10
10
  encryptedIndex: z.string(),
11
11
  title: z.nullable(z.string()),
@@ -17,7 +17,7 @@ export const AnthropicCitationWebSearchResultLocation$outboundSchema = z.object(
17
17
  encryptedIndex: "encrypted_index",
18
18
  });
19
19
  });
20
- export function anthropicCitationWebSearchResultLocationToJSON(anthropicCitationWebSearchResultLocation) {
21
- return JSON.stringify(AnthropicCitationWebSearchResultLocation$outboundSchema.parse(anthropicCitationWebSearchResultLocation));
20
+ export function anthropicCitationWebSearchResultLocationParamToJSON(anthropicCitationWebSearchResultLocationParam) {
21
+ return JSON.stringify(AnthropicCitationWebSearchResultLocationParam$outboundSchema.parse(anthropicCitationWebSearchResultLocationParam));
22
22
  }
23
- //# sourceMappingURL=anthropiccitationwebsearchresultlocation.js.map
23
+ //# sourceMappingURL=anthropiccitationwebsearchresultlocationparam.js.map
@@ -3,27 +3,27 @@ import { AnthropicCacheControlDirective, AnthropicCacheControlDirective$Outbound
3
3
  import { AnthropicCitationCharLocationParam, AnthropicCitationCharLocationParam$Outbound } from "./anthropiccitationcharlocationparam.js";
4
4
  import { AnthropicCitationContentBlockLocationParam, AnthropicCitationContentBlockLocationParam$Outbound } from "./anthropiccitationcontentblocklocationparam.js";
5
5
  import { AnthropicCitationPageLocationParam, AnthropicCitationPageLocationParam$Outbound } from "./anthropiccitationpagelocationparam.js";
6
- import { AnthropicCitationSearchResultLocation, AnthropicCitationSearchResultLocation$Outbound } from "./anthropiccitationsearchresultlocation.js";
7
- import { AnthropicCitationWebSearchResultLocation, AnthropicCitationWebSearchResultLocation$Outbound } from "./anthropiccitationwebsearchresultlocation.js";
8
- export type Citation = AnthropicCitationCharLocationParam | AnthropicCitationContentBlockLocationParam | AnthropicCitationPageLocationParam | AnthropicCitationSearchResultLocation | AnthropicCitationWebSearchResultLocation;
6
+ import { AnthropicCitationSearchResultLocationParam, AnthropicCitationSearchResultLocationParam$Outbound } from "./anthropiccitationsearchresultlocationparam.js";
7
+ import { AnthropicCitationWebSearchResultLocationParam, AnthropicCitationWebSearchResultLocationParam$Outbound } from "./anthropiccitationwebsearchresultlocationparam.js";
8
+ export type Citation = AnthropicCitationCharLocationParam | AnthropicCitationContentBlockLocationParam | AnthropicCitationPageLocationParam | AnthropicCitationSearchResultLocationParam | AnthropicCitationWebSearchResultLocationParam;
9
9
  export type AnthropicTextBlockParam = {
10
10
  /**
11
11
  * Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.
12
12
  */
13
13
  cacheControl?: AnthropicCacheControlDirective | undefined;
14
- citations?: Array<AnthropicCitationCharLocationParam | AnthropicCitationContentBlockLocationParam | AnthropicCitationPageLocationParam | AnthropicCitationSearchResultLocation | AnthropicCitationWebSearchResultLocation> | null | undefined;
14
+ citations?: Array<AnthropicCitationCharLocationParam | AnthropicCitationContentBlockLocationParam | AnthropicCitationPageLocationParam | AnthropicCitationSearchResultLocationParam | AnthropicCitationWebSearchResultLocationParam> | null | undefined;
15
15
  text: string;
16
16
  type: "text";
17
17
  };
18
18
  /** @internal */
19
- export type Citation$Outbound = AnthropicCitationCharLocationParam$Outbound | AnthropicCitationContentBlockLocationParam$Outbound | AnthropicCitationPageLocationParam$Outbound | AnthropicCitationSearchResultLocation$Outbound | AnthropicCitationWebSearchResultLocation$Outbound;
19
+ export type Citation$Outbound = AnthropicCitationCharLocationParam$Outbound | AnthropicCitationContentBlockLocationParam$Outbound | AnthropicCitationPageLocationParam$Outbound | AnthropicCitationSearchResultLocationParam$Outbound | AnthropicCitationWebSearchResultLocationParam$Outbound;
20
20
  /** @internal */
21
21
  export declare const Citation$outboundSchema: z.ZodType<Citation$Outbound, Citation>;
22
22
  export declare function citationToJSON(citation: Citation): string;
23
23
  /** @internal */
24
24
  export type AnthropicTextBlockParam$Outbound = {
25
25
  cache_control?: AnthropicCacheControlDirective$Outbound | undefined;
26
- citations?: Array<AnthropicCitationCharLocationParam$Outbound | AnthropicCitationContentBlockLocationParam$Outbound | AnthropicCitationPageLocationParam$Outbound | AnthropicCitationSearchResultLocation$Outbound | AnthropicCitationWebSearchResultLocation$Outbound> | null | undefined;
26
+ citations?: Array<AnthropicCitationCharLocationParam$Outbound | AnthropicCitationContentBlockLocationParam$Outbound | AnthropicCitationPageLocationParam$Outbound | AnthropicCitationSearchResultLocationParam$Outbound | AnthropicCitationWebSearchResultLocationParam$Outbound> | null | undefined;
27
27
  text: string;
28
28
  type: "text";
29
29
  };
@@ -8,16 +8,16 @@ import { AnthropicCacheControlDirective$outboundSchema, } from "./anthropiccache
8
8
  import { AnthropicCitationCharLocationParam$outboundSchema, } from "./anthropiccitationcharlocationparam.js";
9
9
  import { AnthropicCitationContentBlockLocationParam$outboundSchema, } from "./anthropiccitationcontentblocklocationparam.js";
10
10
  import { AnthropicCitationPageLocationParam$outboundSchema, } from "./anthropiccitationpagelocationparam.js";
11
- import { AnthropicCitationSearchResultLocation$outboundSchema, } from "./anthropiccitationsearchresultlocation.js";
12
- import { AnthropicCitationWebSearchResultLocation$outboundSchema, } from "./anthropiccitationwebsearchresultlocation.js";
11
+ import { AnthropicCitationSearchResultLocationParam$outboundSchema, } from "./anthropiccitationsearchresultlocationparam.js";
12
+ import { AnthropicCitationWebSearchResultLocationParam$outboundSchema, } from "./anthropiccitationwebsearchresultlocationparam.js";
13
13
  /** @internal */
14
14
  export const Citation$outboundSchema = z
15
15
  .union([
16
16
  AnthropicCitationCharLocationParam$outboundSchema,
17
17
  AnthropicCitationContentBlockLocationParam$outboundSchema,
18
18
  AnthropicCitationPageLocationParam$outboundSchema,
19
- AnthropicCitationSearchResultLocation$outboundSchema,
20
- AnthropicCitationWebSearchResultLocation$outboundSchema,
19
+ AnthropicCitationSearchResultLocationParam$outboundSchema,
20
+ AnthropicCitationWebSearchResultLocationParam$outboundSchema,
21
21
  ]);
22
22
  export function citationToJSON(citation) {
23
23
  return JSON.stringify(Citation$outboundSchema.parse(citation));
@@ -29,8 +29,8 @@ export const AnthropicTextBlockParam$outboundSchema = z.object({
29
29
  AnthropicCitationCharLocationParam$outboundSchema,
30
30
  AnthropicCitationContentBlockLocationParam$outboundSchema,
31
31
  AnthropicCitationPageLocationParam$outboundSchema,
32
- AnthropicCitationSearchResultLocation$outboundSchema,
33
- AnthropicCitationWebSearchResultLocation$outboundSchema,
32
+ AnthropicCitationSearchResultLocationParam$outboundSchema,
33
+ AnthropicCitationWebSearchResultLocationParam$outboundSchema,
34
34
  ]))).optional(),
35
35
  text: z.string(),
36
36
  type: z.literal("text"),
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4";
2
+ /**
3
+ * JSON object response format
4
+ */
5
+ export type ChatFormatJsonObjectConfig = {
6
+ type: "json_object";
7
+ };
8
+ /** @internal */
9
+ export type ChatFormatJsonObjectConfig$Outbound = {
10
+ type: "json_object";
11
+ };
12
+ /** @internal */
13
+ export declare const ChatFormatJsonObjectConfig$outboundSchema: z.ZodType<ChatFormatJsonObjectConfig$Outbound, ChatFormatJsonObjectConfig>;
14
+ export declare function chatFormatJsonObjectConfigToJSON(chatFormatJsonObjectConfig: ChatFormatJsonObjectConfig): string;
15
+ //# sourceMappingURL=chatformatjsonobjectconfig.d.ts.map
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ad7d8d0b41ae
4
+ */
5
+ import * as z from "zod/v4";
6
+ /** @internal */
7
+ export const ChatFormatJsonObjectConfig$outboundSchema = z.object({
8
+ type: z.literal("json_object"),
9
+ });
10
+ export function chatFormatJsonObjectConfigToJSON(chatFormatJsonObjectConfig) {
11
+ return JSON.stringify(ChatFormatJsonObjectConfig$outboundSchema.parse(chatFormatJsonObjectConfig));
12
+ }
13
+ //# sourceMappingURL=chatformatjsonobjectconfig.js.map
@@ -4,6 +4,7 @@ import { AnthropicCacheControlDirective, AnthropicCacheControlDirective$Outbound
4
4
  import { AutoRouterPlugin, AutoRouterPlugin$Outbound } from "./autorouterplugin.js";
5
5
  import { ChatDebugOptions, ChatDebugOptions$Outbound } from "./chatdebugoptions.js";
6
6
  import { ChatFormatGrammarConfig, ChatFormatGrammarConfig$Outbound } from "./chatformatgrammarconfig.js";
7
+ import { ChatFormatJsonObjectConfig, ChatFormatJsonObjectConfig$Outbound } from "./chatformatjsonobjectconfig.js";
7
8
  import { ChatFormatJsonSchemaConfig, ChatFormatJsonSchemaConfig$Outbound } from "./chatformatjsonschemaconfig.js";
8
9
  import { ChatFormatPythonConfig, ChatFormatPythonConfig$Outbound } from "./chatformatpythonconfig.js";
9
10
  import { ChatFormatTextConfig, ChatFormatTextConfig$Outbound } from "./chatformattextconfig.js";
@@ -14,7 +15,6 @@ import { ChatStreamOptions, ChatStreamOptions$Outbound } from "./chatstreamoptio
14
15
  import { ChatToolChoice, ChatToolChoice$Outbound } from "./chattoolchoice.js";
15
16
  import { ContextCompressionPlugin, ContextCompressionPlugin$Outbound } from "./contextcompressionplugin.js";
16
17
  import { FileParserPlugin, FileParserPlugin$Outbound } from "./fileparserplugin.js";
17
- import { FormatJsonObjectConfig, FormatJsonObjectConfig$Outbound } from "./formatjsonobjectconfig.js";
18
18
  import { FusionPlugin, FusionPlugin$Outbound } from "./fusionplugin.js";
19
19
  import { ImageConfig, ImageConfig$Outbound } from "./imageconfig.js";
20
20
  import { ModerationPlugin, ModerationPlugin$Outbound } from "./moderationplugin.js";
@@ -77,7 +77,7 @@ export type ChatRequestReasoningEffort = OpenEnum<typeof ChatRequestReasoningEff
77
77
  /**
78
78
  * Response format configuration
79
79
  */
80
- export type ResponseFormat = ChatFormatGrammarConfig | FormatJsonObjectConfig | ChatFormatJsonSchemaConfig | ChatFormatPythonConfig | ChatFormatTextConfig;
80
+ export type ResponseFormat = ChatFormatGrammarConfig | ChatFormatJsonObjectConfig | ChatFormatJsonSchemaConfig | ChatFormatPythonConfig | ChatFormatTextConfig;
81
81
  /**
82
82
  * The service tier to use for processing this request.
83
83
  */
@@ -193,7 +193,7 @@ export type ChatRequest = {
193
193
  /**
194
194
  * Response format configuration
195
195
  */
196
- responseFormat?: ChatFormatGrammarConfig | FormatJsonObjectConfig | ChatFormatJsonSchemaConfig | ChatFormatPythonConfig | ChatFormatTextConfig | undefined;
196
+ responseFormat?: ChatFormatGrammarConfig | ChatFormatJsonObjectConfig | ChatFormatJsonSchemaConfig | ChatFormatPythonConfig | ChatFormatTextConfig | undefined;
197
197
  /**
198
198
  * Random seed for deterministic outputs
199
199
  */
@@ -279,7 +279,7 @@ export declare function chatRequestReasoningToJSON(chatRequestReasoning: ChatReq
279
279
  /** @internal */
280
280
  export declare const ChatRequestReasoningEffort$outboundSchema: z.ZodType<string, ChatRequestReasoningEffort>;
281
281
  /** @internal */
282
- export type ResponseFormat$Outbound = ChatFormatGrammarConfig$Outbound | FormatJsonObjectConfig$Outbound | ChatFormatJsonSchemaConfig$Outbound | ChatFormatPythonConfig$Outbound | ChatFormatTextConfig$Outbound;
282
+ export type ResponseFormat$Outbound = ChatFormatGrammarConfig$Outbound | ChatFormatJsonObjectConfig$Outbound | ChatFormatJsonSchemaConfig$Outbound | ChatFormatPythonConfig$Outbound | ChatFormatTextConfig$Outbound;
283
283
  /** @internal */
284
284
  export declare const ResponseFormat$outboundSchema: z.ZodType<ResponseFormat$Outbound, ResponseFormat>;
285
285
  export declare function responseFormatToJSON(responseFormat: ResponseFormat): string;
@@ -319,7 +319,7 @@ export type ChatRequest$Outbound = {
319
319
  reasoning?: ChatRequestReasoning$Outbound | undefined;
320
320
  reasoning_effort?: string | null | undefined;
321
321
  repetition_penalty?: number | null | undefined;
322
- response_format?: ChatFormatGrammarConfig$Outbound | FormatJsonObjectConfig$Outbound | ChatFormatJsonSchemaConfig$Outbound | ChatFormatPythonConfig$Outbound | ChatFormatTextConfig$Outbound | undefined;
322
+ response_format?: ChatFormatGrammarConfig$Outbound | ChatFormatJsonObjectConfig$Outbound | ChatFormatJsonSchemaConfig$Outbound | ChatFormatPythonConfig$Outbound | ChatFormatTextConfig$Outbound | undefined;
323
323
  seed?: number | null | undefined;
324
324
  service_tier?: string | null | undefined;
325
325
  session_id?: string | undefined;
@@ -9,6 +9,7 @@ import { AnthropicCacheControlDirective$outboundSchema, } from "./anthropiccache
9
9
  import { AutoRouterPlugin$outboundSchema, } from "./autorouterplugin.js";
10
10
  import { ChatDebugOptions$outboundSchema, } from "./chatdebugoptions.js";
11
11
  import { ChatFormatGrammarConfig$outboundSchema, } from "./chatformatgrammarconfig.js";
12
+ import { ChatFormatJsonObjectConfig$outboundSchema, } from "./chatformatjsonobjectconfig.js";
12
13
  import { ChatFormatJsonSchemaConfig$outboundSchema, } from "./chatformatjsonschemaconfig.js";
13
14
  import { ChatFormatPythonConfig$outboundSchema, } from "./chatformatpythonconfig.js";
14
15
  import { ChatFormatTextConfig$outboundSchema, } from "./chatformattextconfig.js";
@@ -19,7 +20,6 @@ import { ChatStreamOptions$outboundSchema, } from "./chatstreamoptions.js";
19
20
  import { ChatToolChoice$outboundSchema, } from "./chattoolchoice.js";
20
21
  import { ContextCompressionPlugin$outboundSchema, } from "./contextcompressionplugin.js";
21
22
  import { FileParserPlugin$outboundSchema, } from "./fileparserplugin.js";
22
- import { FormatJsonObjectConfig$outboundSchema, } from "./formatjsonobjectconfig.js";
23
23
  import { FusionPlugin$outboundSchema, } from "./fusionplugin.js";
24
24
  import { ImageConfig$outboundSchema, } from "./imageconfig.js";
25
25
  import { ModerationPlugin$outboundSchema, } from "./moderationplugin.js";
@@ -103,7 +103,7 @@ export const ChatRequestReasoningEffort$outboundSchema = openEnums.outboundSchem
103
103
  /** @internal */
104
104
  export const ResponseFormat$outboundSchema = z.union([
105
105
  ChatFormatGrammarConfig$outboundSchema,
106
- FormatJsonObjectConfig$outboundSchema,
106
+ ChatFormatJsonObjectConfig$outboundSchema,
107
107
  ChatFormatJsonSchemaConfig$outboundSchema,
108
108
  ChatFormatPythonConfig$outboundSchema,
109
109
  ChatFormatTextConfig$outboundSchema,
@@ -158,7 +158,7 @@ export const ChatRequest$outboundSchema = z.object({
158
158
  repetitionPenalty: z.nullable(z.number()).optional(),
159
159
  responseFormat: z.union([
160
160
  ChatFormatGrammarConfig$outboundSchema,
161
- FormatJsonObjectConfig$outboundSchema,
161
+ ChatFormatJsonObjectConfig$outboundSchema,
162
162
  ChatFormatJsonSchemaConfig$outboundSchema,
163
163
  ChatFormatPythonConfig$outboundSchema,
164
164
  ChatFormatTextConfig$outboundSchema,
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
- import { ObservabilityFilterRulesConfig, ObservabilityFilterRulesConfig$Outbound } from "./observabilityfilterrulesconfig.js";
3
+ import { ObservabilityFilterRulesConfigNullable, ObservabilityFilterRulesConfigNullable$Outbound } from "./observabilityfilterrulesconfignullable.js";
4
4
  /**
5
5
  * The destination type. Only stable destination types are accepted.
6
6
  */
@@ -45,7 +45,7 @@ export type CreateObservabilityDestinationRequest = {
45
45
  /**
46
46
  * Optional structured filter rules controlling which events are forwarded.
47
47
  */
48
- filterRules?: ObservabilityFilterRulesConfig | null | undefined;
48
+ filterRules?: ObservabilityFilterRulesConfigNullable | null | undefined;
49
49
  /**
50
50
  * Human-readable name for the destination.
51
51
  */
@@ -76,7 +76,7 @@ export type CreateObservabilityDestinationRequest$Outbound = {
76
76
  [k: string]: any | null;
77
77
  };
78
78
  enabled: boolean;
79
- filter_rules?: ObservabilityFilterRulesConfig$Outbound | null | undefined;
79
+ filter_rules?: ObservabilityFilterRulesConfigNullable$Outbound | null | undefined;
80
80
  name: string;
81
81
  privacy_mode: boolean;
82
82
  sampling_rate?: number | undefined;
@@ -5,7 +5,7 @@
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 { ObservabilityFilterRulesConfig$outboundSchema, } from "./observabilityfilterrulesconfig.js";
8
+ import { ObservabilityFilterRulesConfigNullable$outboundSchema, } from "./observabilityfilterrulesconfignullable.js";
9
9
  /**
10
10
  * The destination type. Only stable destination types are accepted.
11
11
  */
@@ -36,7 +36,7 @@ export const CreateObservabilityDestinationRequest$outboundSchema = z.object({
36
36
  apiKeyHashes: z.nullable(z.array(z.string())).optional(),
37
37
  config: z.record(z.string(), z.nullable(z.any())),
38
38
  enabled: z.boolean().default(true),
39
- filterRules: z.nullable(ObservabilityFilterRulesConfig$outboundSchema)
39
+ filterRules: z.nullable(ObservabilityFilterRulesConfigNullable$outboundSchema)
40
40
  .optional(),
41
41
  name: z.string(),
42
42
  privacyMode: z.boolean().default(false),
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ export declare const ImageInputModality: {
4
+ readonly Text: "text";
5
+ readonly Image: "image";
6
+ readonly File: "file";
7
+ readonly Audio: "audio";
8
+ readonly Video: "video";
9
+ };
10
+ export type ImageInputModality = OpenEnum<typeof ImageInputModality>;
11
+ /** @internal */
12
+ export declare const ImageInputModality$inboundSchema: z.ZodType<ImageInputModality, unknown>;
13
+ //# sourceMappingURL=imageinputmodality.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: cac0d1b38b9d
4
+ */
5
+ import * as openEnums from "../types/enums.js";
6
+ export const ImageInputModality = {
7
+ Text: "text",
8
+ Image: "image",
9
+ File: "file",
10
+ Audio: "audio",
11
+ Video: "video",
12
+ };
13
+ /** @internal */
14
+ export const ImageInputModality$inboundSchema = openEnums.inboundSchema(ImageInputModality);
15
+ //# sourceMappingURL=imageinputmodality.js.map
@@ -1,13 +1,13 @@
1
1
  import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { ImageInputModality } from "./imageinputmodality.js";
4
5
  import { ImageOutputModality } from "./imageoutputmodality.js";
5
- import { InputModality } from "./inputmodality.js";
6
6
  export type ImageModelArchitecture = {
7
7
  /**
8
8
  * Supported input modalities
9
9
  */
10
- inputModalities: Array<InputModality>;
10
+ inputModalities: Array<ImageInputModality>;
11
11
  /**
12
12
  * Supported output modalities
13
13
  */
@@ -5,11 +5,11 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
+ import { ImageInputModality$inboundSchema, } from "./imageinputmodality.js";
8
9
  import { ImageOutputModality$inboundSchema, } from "./imageoutputmodality.js";
9
- import { InputModality$inboundSchema } from "./inputmodality.js";
10
10
  /** @internal */
11
11
  export const ImageModelArchitecture$inboundSchema = z.object({
12
- input_modalities: z.array(InputModality$inboundSchema),
12
+ input_modalities: z.array(ImageInputModality$inboundSchema),
13
13
  output_modalities: z.array(ImageOutputModality$inboundSchema),
14
14
  }).transform((v) => {
15
15
  return remap$(v, {
@@ -17,8 +17,8 @@ export * from "./anthropiccachecontrolttl.js";
17
17
  export * from "./anthropiccitationcharlocationparam.js";
18
18
  export * from "./anthropiccitationcontentblocklocationparam.js";
19
19
  export * from "./anthropiccitationpagelocationparam.js";
20
- export * from "./anthropiccitationsearchresultlocation.js";
21
- export * from "./anthropiccitationwebsearchresultlocation.js";
20
+ export * from "./anthropiccitationsearchresultlocationparam.js";
21
+ export * from "./anthropiccitationwebsearchresultlocationparam.js";
22
22
  export * from "./anthropiccompactionusageiteration.js";
23
23
  export * from "./anthropicdocumentblockparam.js";
24
24
  export * from "./anthropicfiledocumentsource.js";
@@ -99,6 +99,7 @@ export * from "./chatdebugoptions.js";
99
99
  export * from "./chatdevelopermessage.js";
100
100
  export * from "./chatfinishreasonenum.js";
101
101
  export * from "./chatformatgrammarconfig.js";
102
+ export * from "./chatformatjsonobjectconfig.js";
102
103
  export * from "./chatformatjsonschemaconfig.js";
103
104
  export * from "./chatformatpythonconfig.js";
104
105
  export * from "./chatformattextconfig.js";
@@ -245,6 +246,7 @@ export * from "./imagegenerationusage.js";
245
246
  export * from "./imagegenpartialimageevent.js";
246
247
  export * from "./imagegenstreamerrorevent.js";
247
248
  export * from "./imagegentextchunkevent.js";
249
+ export * from "./imageinputmodality.js";
248
250
  export * from "./imagemodelarchitecture.js";
249
251
  export * from "./imagemodelendpointsresponse.js";
250
252
  export * from "./imagemodellistitem.js";
@@ -267,6 +269,7 @@ export * from "./internalserverresponseerrordata.js";
267
269
  export * from "./itemreferenceitem.js";
268
270
  export * from "./keyassignment.js";
269
271
  export * from "./legacychatcontentvideo.js";
272
+ export * from "./legacychatcontentvideoinput.js";
270
273
  export * from "./legacywebsearchservertool.js";
271
274
  export * from "./listbyokkeysresponse.js";
272
275
  export * from "./listendpointsresponse.js";
@@ -292,6 +295,7 @@ export * from "./messagesfallbackparam.js";
292
295
  export * from "./messagesmessageparam.js";
293
296
  export * from "./messagesoutputconfig.js";
294
297
  export * from "./messagesrequest.js";
298
+ export * from "./messagessearchmodelsservertool.js";
295
299
  export * from "./metadatalevel.js";
296
300
  export * from "./model.js";
297
301
  export * from "./modelarchitecture.js";
@@ -310,7 +314,9 @@ export * from "./observabilitybraintrustdestination.js";
310
314
  export * from "./observabilityclickhousedestination.js";
311
315
  export * from "./observabilitydatadogdestination.js";
312
316
  export * from "./observabilitydestination.js";
317
+ export * from "./observabilityfilterrulegroup.js";
313
318
  export * from "./observabilityfilterrulesconfig.js";
319
+ export * from "./observabilityfilterrulesconfignullable.js";
314
320
  export * from "./observabilitygrafanadestination.js";
315
321
  export * from "./observabilitylangfusedestination.js";
316
322
  export * from "./observabilitylangsmithdestination.js";
@@ -446,6 +452,7 @@ export * from "./routerparams.js";
446
452
  export * from "./routingstrategy.js";
447
453
  export * from "./searchcontextsizeenum.js";
448
454
  export * from "./searchmodelsservertoolconfig.js";
455
+ export * from "./searchmodelsservertoolopenrouter.js";
449
456
  export * from "./searchqualitylevel.js";
450
457
  export * from "./security.js";
451
458
  export * from "./serviceunavailableresponseerrordata.js";
@@ -21,8 +21,8 @@ export * from "./anthropiccachecontrolttl.js";
21
21
  export * from "./anthropiccitationcharlocationparam.js";
22
22
  export * from "./anthropiccitationcontentblocklocationparam.js";
23
23
  export * from "./anthropiccitationpagelocationparam.js";
24
- export * from "./anthropiccitationsearchresultlocation.js";
25
- export * from "./anthropiccitationwebsearchresultlocation.js";
24
+ export * from "./anthropiccitationsearchresultlocationparam.js";
25
+ export * from "./anthropiccitationwebsearchresultlocationparam.js";
26
26
  export * from "./anthropiccompactionusageiteration.js";
27
27
  export * from "./anthropicdocumentblockparam.js";
28
28
  export * from "./anthropicfiledocumentsource.js";
@@ -103,6 +103,7 @@ export * from "./chatdebugoptions.js";
103
103
  export * from "./chatdevelopermessage.js";
104
104
  export * from "./chatfinishreasonenum.js";
105
105
  export * from "./chatformatgrammarconfig.js";
106
+ export * from "./chatformatjsonobjectconfig.js";
106
107
  export * from "./chatformatjsonschemaconfig.js";
107
108
  export * from "./chatformatpythonconfig.js";
108
109
  export * from "./chatformattextconfig.js";
@@ -249,6 +250,7 @@ export * from "./imagegenerationusage.js";
249
250
  export * from "./imagegenpartialimageevent.js";
250
251
  export * from "./imagegenstreamerrorevent.js";
251
252
  export * from "./imagegentextchunkevent.js";
253
+ export * from "./imageinputmodality.js";
252
254
  export * from "./imagemodelarchitecture.js";
253
255
  export * from "./imagemodelendpointsresponse.js";
254
256
  export * from "./imagemodellistitem.js";
@@ -271,6 +273,7 @@ export * from "./internalserverresponseerrordata.js";
271
273
  export * from "./itemreferenceitem.js";
272
274
  export * from "./keyassignment.js";
273
275
  export * from "./legacychatcontentvideo.js";
276
+ export * from "./legacychatcontentvideoinput.js";
274
277
  export * from "./legacywebsearchservertool.js";
275
278
  export * from "./listbyokkeysresponse.js";
276
279
  export * from "./listendpointsresponse.js";
@@ -296,6 +299,7 @@ export * from "./messagesfallbackparam.js";
296
299
  export * from "./messagesmessageparam.js";
297
300
  export * from "./messagesoutputconfig.js";
298
301
  export * from "./messagesrequest.js";
302
+ export * from "./messagessearchmodelsservertool.js";
299
303
  export * from "./metadatalevel.js";
300
304
  export * from "./model.js";
301
305
  export * from "./modelarchitecture.js";
@@ -314,7 +318,9 @@ export * from "./observabilitybraintrustdestination.js";
314
318
  export * from "./observabilityclickhousedestination.js";
315
319
  export * from "./observabilitydatadogdestination.js";
316
320
  export * from "./observabilitydestination.js";
321
+ export * from "./observabilityfilterrulegroup.js";
317
322
  export * from "./observabilityfilterrulesconfig.js";
323
+ export * from "./observabilityfilterrulesconfignullable.js";
318
324
  export * from "./observabilitygrafanadestination.js";
319
325
  export * from "./observabilitylangfusedestination.js";
320
326
  export * from "./observabilitylangsmithdestination.js";
@@ -450,6 +456,7 @@ export * from "./routerparams.js";
450
456
  export * from "./routingstrategy.js";
451
457
  export * from "./searchcontextsizeenum.js";
452
458
  export * from "./searchmodelsservertoolconfig.js";
459
+ export * from "./searchmodelsservertoolopenrouter.js";
453
460
  export * from "./searchqualitylevel.js";
454
461
  export * from "./security.js";
455
462
  export * from "./serviceunavailableresponseerrordata.js";
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
- import { ChatContentVideoInput, ChatContentVideoInput$Outbound } from "./chatcontentvideoinput.js";
4
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { LegacyChatContentVideoInput, LegacyChatContentVideoInput$Outbound } from "./legacychatcontentvideoinput.js";
5
5
  /**
6
6
  * Video input content part (legacy format - deprecated)
7
7
  *
@@ -12,14 +12,14 @@ export type LegacyChatContentVideo = {
12
12
  /**
13
13
  * Video input object
14
14
  */
15
- videoUrl: ChatContentVideoInput;
15
+ videoUrl: LegacyChatContentVideoInput;
16
16
  };
17
17
  /** @internal */
18
18
  export declare const LegacyChatContentVideo$inboundSchema: z.ZodType<LegacyChatContentVideo, unknown>;
19
19
  /** @internal */
20
20
  export type LegacyChatContentVideo$Outbound = {
21
21
  type: "input_video";
22
- video_url: ChatContentVideoInput$Outbound;
22
+ video_url: LegacyChatContentVideoInput$Outbound;
23
23
  };
24
24
  /** @internal */
25
25
  export declare const LegacyChatContentVideo$outboundSchema: z.ZodType<LegacyChatContentVideo$Outbound, LegacyChatContentVideo>;
@@ -5,11 +5,11 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
- import { ChatContentVideoInput$inboundSchema, ChatContentVideoInput$outboundSchema, } from "./chatcontentvideoinput.js";
8
+ import { LegacyChatContentVideoInput$inboundSchema, LegacyChatContentVideoInput$outboundSchema, } from "./legacychatcontentvideoinput.js";
9
9
  /** @internal */
10
10
  export const LegacyChatContentVideo$inboundSchema = z.object({
11
11
  type: z.literal("input_video"),
12
- video_url: ChatContentVideoInput$inboundSchema,
12
+ video_url: LegacyChatContentVideoInput$inboundSchema,
13
13
  }).transform((v) => {
14
14
  return remap$(v, {
15
15
  "video_url": "videoUrl",
@@ -18,7 +18,7 @@ export const LegacyChatContentVideo$inboundSchema = z.object({
18
18
  /** @internal */
19
19
  export const LegacyChatContentVideo$outboundSchema = z.object({
20
20
  type: z.literal("input_video"),
21
- videoUrl: ChatContentVideoInput$outboundSchema,
21
+ videoUrl: LegacyChatContentVideoInput$outboundSchema,
22
22
  }).transform((v) => {
23
23
  return remap$(v, {
24
24
  videoUrl: "video_url",
@@ -0,0 +1,23 @@
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
+ * Video input object
6
+ */
7
+ export type LegacyChatContentVideoInput = {
8
+ /**
9
+ * URL of the video (data: URLs supported)
10
+ */
11
+ url: string;
12
+ };
13
+ /** @internal */
14
+ export declare const LegacyChatContentVideoInput$inboundSchema: z.ZodType<LegacyChatContentVideoInput, unknown>;
15
+ /** @internal */
16
+ export type LegacyChatContentVideoInput$Outbound = {
17
+ url: string;
18
+ };
19
+ /** @internal */
20
+ export declare const LegacyChatContentVideoInput$outboundSchema: z.ZodType<LegacyChatContentVideoInput$Outbound, LegacyChatContentVideoInput>;
21
+ export declare function legacyChatContentVideoInputToJSON(legacyChatContentVideoInput: LegacyChatContentVideoInput): string;
22
+ export declare function legacyChatContentVideoInputFromJSON(jsonString: string): SafeParseResult<LegacyChatContentVideoInput, SDKValidationError>;
23
+ //# sourceMappingURL=legacychatcontentvideoinput.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 4070b34e4fde
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /** @internal */
8
+ export const LegacyChatContentVideoInput$inboundSchema = z.object({
9
+ url: z.string(),
10
+ });
11
+ /** @internal */
12
+ export const LegacyChatContentVideoInput$outboundSchema = z.object({
13
+ url: z.string(),
14
+ });
15
+ export function legacyChatContentVideoInputToJSON(legacyChatContentVideoInput) {
16
+ return JSON.stringify(LegacyChatContentVideoInput$outboundSchema.parse(legacyChatContentVideoInput));
17
+ }
18
+ export function legacyChatContentVideoInputFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => LegacyChatContentVideoInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LegacyChatContentVideoInput' from JSON`);
20
+ }
21
+ //# sourceMappingURL=legacychatcontentvideoinput.js.map