@openrouter/sdk 0.13.44 → 0.13.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 (110) 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/imagegenerationproviderpreferences.d.ts +811 -0
  36. package/esm/models/imagegenerationproviderpreferences.js +208 -0
  37. package/esm/models/imagegenerationrequest.d.ts +4 -753
  38. package/esm/models/imagegenerationrequest.js +2 -162
  39. package/esm/models/imageinputmodality.d.ts +13 -0
  40. package/esm/models/imageinputmodality.js +15 -0
  41. package/esm/models/imagemodelarchitecture.d.ts +2 -2
  42. package/esm/models/imagemodelarchitecture.js +2 -2
  43. package/esm/models/index.d.ts +10 -2
  44. package/esm/models/index.js +10 -2
  45. package/esm/models/legacychatcontentvideo.d.ts +3 -3
  46. package/esm/models/legacychatcontentvideo.js +3 -3
  47. package/esm/models/legacychatcontentvideoinput.d.ts +23 -0
  48. package/esm/models/legacychatcontentvideoinput.js +21 -0
  49. package/esm/models/messagesrequest.d.ts +5 -5
  50. package/esm/models/messagesrequest.js +3 -3
  51. package/esm/models/messagessearchmodelsservertool.d.ts +28 -0
  52. package/esm/models/messagessearchmodelsservertool.js +20 -0
  53. package/esm/models/modelarchitecture.d.ts +2 -35
  54. package/esm/models/modelarchitecture.js +2 -32
  55. package/esm/models/modelslistresponse.d.ts +20 -0
  56. package/esm/models/modelslistresponse.js +14 -0
  57. package/esm/models/observabilityfilterrulegroup.d.ts +94 -0
  58. package/esm/models/observabilityfilterrulegroup.js +103 -0
  59. package/esm/models/observabilityfilterrulesconfig.d.ts +3 -100
  60. package/esm/models/observabilityfilterrulesconfig.js +2 -105
  61. package/esm/models/observabilityfilterrulesconfignullable.d.ts +18 -0
  62. package/esm/models/observabilityfilterrulesconfignullable.js +15 -0
  63. package/esm/models/operations/createembeddings.d.ts +1 -12
  64. package/esm/models/operations/createembeddings.js +1 -17
  65. package/esm/models/operations/getmodels.d.ts +19 -0
  66. package/esm/models/operations/getmodels.js +15 -0
  67. package/esm/models/operations/listbyokkeys.d.ts +2 -2
  68. package/esm/models/operations/listbyokkeys.js +2 -2
  69. package/esm/models/operations/listembeddingsmodels.d.ts +19 -0
  70. package/esm/models/operations/listembeddingsmodels.js +15 -0
  71. package/esm/models/operations/listguardrailkeyassignments.d.ts +2 -2
  72. package/esm/models/operations/listguardrailkeyassignments.js +2 -2
  73. package/esm/models/operations/listguardrailmemberassignments.d.ts +2 -2
  74. package/esm/models/operations/listguardrailmemberassignments.js +2 -2
  75. package/esm/models/operations/listguardrails.d.ts +2 -2
  76. package/esm/models/operations/listguardrails.js +2 -2
  77. package/esm/models/operations/listkeyassignments.d.ts +2 -2
  78. package/esm/models/operations/listkeyassignments.js +2 -2
  79. package/esm/models/operations/listmemberassignments.d.ts +2 -2
  80. package/esm/models/operations/listmemberassignments.js +2 -2
  81. package/esm/models/operations/listmodelsuser.d.ts +19 -0
  82. package/esm/models/operations/listmodelsuser.js +15 -0
  83. package/esm/models/operations/listobservabilitydestinations.d.ts +2 -2
  84. package/esm/models/operations/listobservabilitydestinations.js +2 -2
  85. package/esm/models/operations/listorganizationmembers.d.ts +2 -2
  86. package/esm/models/operations/listorganizationmembers.js +2 -2
  87. package/esm/models/operations/listpresets.d.ts +2 -2
  88. package/esm/models/operations/listpresets.js +2 -2
  89. package/esm/models/operations/listpresetversions.d.ts +2 -2
  90. package/esm/models/operations/listpresetversions.js +2 -2
  91. package/esm/models/operations/listworkspacemembers.d.ts +2 -2
  92. package/esm/models/operations/listworkspacemembers.js +2 -2
  93. package/esm/models/operations/listworkspaces.d.ts +2 -2
  94. package/esm/models/operations/listworkspaces.js +2 -2
  95. package/esm/models/providerpreferences.d.ts +16 -16
  96. package/esm/models/providerpreferences.js +12 -19
  97. package/esm/models/responsesrequest.d.ts +5 -5
  98. package/esm/models/responsesrequest.js +3 -3
  99. package/esm/models/searchmodelsservertoolopenrouter.d.ts +28 -0
  100. package/esm/models/searchmodelsservertoolopenrouter.js +20 -0
  101. package/esm/models/updateobservabilitydestinationrequest.d.ts +3 -3
  102. package/esm/models/updateobservabilitydestinationrequest.js +2 -2
  103. package/esm/sdk/embeddings.d.ts +4 -2
  104. package/esm/sdk/embeddings.js +2 -1
  105. package/esm/sdk/models.d.ts +7 -2
  106. package/esm/sdk/models.js +3 -2
  107. package/jsr.json +1 -1
  108. package/package.json +5 -5
  109. package/esm/models/anthropiccitationsearchresultlocation.d.ts +0 -24
  110. 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),