@openrouter/sdk 1.3.29 → 1.3.31

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 (205) hide show
  1. package/README.md +1 -1
  2. package/esm/funcs/batchCreateBatches.d.ts +19 -0
  3. package/esm/funcs/batchCreateBatches.js +98 -0
  4. package/esm/funcs/batchDelete.d.ts +19 -0
  5. package/esm/funcs/batchDelete.js +103 -0
  6. package/esm/funcs/batchGetBatches.d.ts +19 -0
  7. package/esm/funcs/batchGetBatches.js +103 -0
  8. package/esm/funcs/batchList.d.ts +21 -0
  9. package/esm/funcs/batchList.js +134 -0
  10. package/esm/lib/config.d.ts +2 -2
  11. package/esm/lib/config.js +2 -2
  12. package/esm/models/anthropicadvisortoolresult.d.ts +14 -0
  13. package/esm/models/anthropicadvisortoolresult.js +21 -0
  14. package/esm/models/anthropicbase64pdfsource.d.ts +17 -2
  15. package/esm/models/anthropicbase64pdfsource.js +25 -2
  16. package/esm/models/anthropicbashcodeexecutioncontent.d.ts +11 -0
  17. package/esm/models/anthropicbashcodeexecutioncontent.js +17 -0
  18. package/esm/models/anthropicbashcodeexecutionoutput.d.ts +18 -0
  19. package/esm/models/anthropicbashcodeexecutionoutput.js +25 -0
  20. package/esm/models/anthropicbashcodeexecutionresult.d.ts +15 -0
  21. package/esm/models/anthropicbashcodeexecutionresult.js +24 -0
  22. package/esm/models/anthropicbashcodeexecutiontoolresult.d.ts +13 -0
  23. package/esm/models/anthropicbashcodeexecutiontoolresult.js +22 -0
  24. package/esm/models/anthropicbashcodeexecutiontoolresulterror.d.ts +22 -0
  25. package/esm/models/anthropicbashcodeexecutiontoolresulterror.js +30 -0
  26. package/esm/models/anthropiccaller.d.ts +12 -0
  27. package/esm/models/anthropiccaller.js +19 -0
  28. package/esm/models/anthropiccitationcharlocation.d.ts +16 -0
  29. package/esm/models/anthropiccitationcharlocation.js +30 -0
  30. package/esm/models/anthropiccitationcontentblocklocation.d.ts +16 -0
  31. package/esm/models/anthropiccitationcontentblocklocation.js +30 -0
  32. package/esm/models/anthropiccitationpagelocation.d.ts +16 -0
  33. package/esm/models/anthropiccitationpagelocation.js +30 -0
  34. package/esm/models/anthropiccitationsconfig.d.ts +10 -0
  35. package/esm/models/anthropiccitationsconfig.js +14 -0
  36. package/esm/models/anthropiccitationsearchresultlocation.d.ts +16 -0
  37. package/esm/models/anthropiccitationsearchresultlocation.js +28 -0
  38. package/esm/models/anthropiccitationwebsearchresultlocation.d.ts +14 -0
  39. package/esm/models/anthropiccitationwebsearchresultlocation.js +24 -0
  40. package/esm/models/anthropiccodeexecution20250825caller.d.ts +11 -0
  41. package/esm/models/anthropiccodeexecution20250825caller.js +20 -0
  42. package/esm/models/anthropiccodeexecution20260120caller.d.ts +11 -0
  43. package/esm/models/anthropiccodeexecution20260120caller.js +20 -0
  44. package/esm/models/anthropiccodeexecutioncontent.d.ts +12 -0
  45. package/esm/models/anthropiccodeexecutioncontent.js +19 -0
  46. package/esm/models/anthropiccodeexecutionoutput.d.ts +18 -0
  47. package/esm/models/anthropiccodeexecutionoutput.js +25 -0
  48. package/esm/models/anthropiccodeexecutionresult.d.ts +15 -0
  49. package/esm/models/anthropiccodeexecutionresult.js +24 -0
  50. package/esm/models/anthropiccodeexecutiontoolresult.d.ts +13 -0
  51. package/esm/models/anthropiccodeexecutiontoolresult.js +22 -0
  52. package/esm/models/anthropiccodeexecutiontoolresulterror.d.ts +12 -0
  53. package/esm/models/anthropiccodeexecutiontoolresulterror.js +21 -0
  54. package/esm/models/anthropiccompactionblock.d.ts +12 -0
  55. package/esm/models/anthropiccompactionblock.js +21 -0
  56. package/esm/models/anthropiccontainer.d.ts +13 -0
  57. package/esm/models/anthropiccontainer.js +22 -0
  58. package/esm/models/anthropiccontainerskill.d.ts +20 -0
  59. package/esm/models/anthropiccontainerskill.js +28 -0
  60. package/esm/models/anthropiccontainerupload.d.ts +11 -0
  61. package/esm/models/anthropiccontainerupload.js +20 -0
  62. package/esm/models/anthropicdirectcaller.d.ts +10 -0
  63. package/esm/models/anthropicdirectcaller.js +14 -0
  64. package/esm/models/anthropicdocumentblock.d.ts +36 -0
  65. package/esm/models/anthropicdocumentblock.js +45 -0
  66. package/esm/models/anthropicdocumentblockparam.d.ts +20 -4
  67. package/esm/models/anthropicdocumentblockparam.js +4 -4
  68. package/esm/models/anthropicencryptedcodeexecutionresult.d.ts +15 -0
  69. package/esm/models/anthropicencryptedcodeexecutionresult.js +25 -0
  70. package/esm/models/anthropicinputtransformation.d.ts +18 -0
  71. package/esm/models/anthropicinputtransformation.js +16 -0
  72. package/esm/models/anthropicoutputtokensdetails.d.ts +10 -0
  73. package/esm/models/anthropicoutputtokensdetails.js +19 -0
  74. package/esm/models/anthropicplaintextsource.d.ts +17 -2
  75. package/esm/models/anthropicplaintextsource.js +25 -2
  76. package/esm/models/anthropicredactedthinkingblock.d.ts +11 -0
  77. package/esm/models/anthropicredactedthinkingblock.js +15 -0
  78. package/esm/models/anthropicrefusalstopdetails.d.ts +32 -0
  79. package/esm/models/anthropicrefusalstopdetails.js +31 -0
  80. package/esm/models/anthropicservertoolerrorcode.d.ts +12 -0
  81. package/esm/models/anthropicservertoolerrorcode.js +14 -0
  82. package/esm/models/anthropicservertoolusage.d.ts +11 -0
  83. package/esm/models/anthropicservertoolusage.js +21 -0
  84. package/esm/models/anthropicservicetier.d.ts +11 -0
  85. package/esm/models/anthropicservicetier.js +13 -0
  86. package/esm/models/anthropictextblock.d.ts +13 -0
  87. package/esm/models/anthropictextblock.js +17 -0
  88. package/esm/models/anthropictextcitation.d.ts +14 -0
  89. package/esm/models/anthropictextcitation.js +23 -0
  90. package/esm/models/anthropictexteditorcodeexecutioncontent.d.ts +13 -0
  91. package/esm/models/anthropictexteditorcodeexecutioncontent.js +21 -0
  92. package/esm/models/anthropictexteditorcodeexecutioncreateresult.d.ts +11 -0
  93. package/esm/models/anthropictexteditorcodeexecutioncreateresult.js +20 -0
  94. package/esm/models/anthropictexteditorcodeexecutionstrreplaceresult.d.ts +15 -0
  95. package/esm/models/anthropictexteditorcodeexecutionstrreplaceresult.js +28 -0
  96. package/esm/models/anthropictexteditorcodeexecutiontoolresult.d.ts +13 -0
  97. package/esm/models/anthropictexteditorcodeexecutiontoolresult.js +22 -0
  98. package/esm/models/anthropictexteditorcodeexecutiontoolresulterror.d.ts +23 -0
  99. package/esm/models/anthropictexteditorcodeexecutiontoolresulterror.js +33 -0
  100. package/esm/models/anthropictexteditorcodeexecutionviewresult.d.ts +24 -0
  101. package/esm/models/anthropictexteditorcodeexecutionviewresult.js +36 -0
  102. package/esm/models/anthropicthinkingblock.d.ts +12 -0
  103. package/esm/models/anthropicthinkingblock.js +16 -0
  104. package/esm/models/anthropictoolreference.d.ts +18 -0
  105. package/esm/models/anthropictoolreference.js +25 -0
  106. package/esm/models/anthropictoolsearchcontent.d.ts +11 -0
  107. package/esm/models/anthropictoolsearchcontent.js +17 -0
  108. package/esm/models/anthropictoolsearchresult.d.ts +12 -0
  109. package/esm/models/anthropictoolsearchresult.js +21 -0
  110. package/esm/models/anthropictoolsearchresulterror.d.ts +13 -0
  111. package/esm/models/anthropictoolsearchresulterror.js +23 -0
  112. package/esm/models/anthropictoolsearchtoolresult.d.ts +13 -0
  113. package/esm/models/anthropictoolsearchtoolresult.js +22 -0
  114. package/esm/models/anthropictooluseblock.d.ts +15 -0
  115. package/esm/models/anthropictooluseblock.js +19 -0
  116. package/esm/models/anthropicwebfetchblock.d.ts +14 -0
  117. package/esm/models/anthropicwebfetchblock.js +23 -0
  118. package/esm/models/anthropicwebfetchcontent.d.ts +11 -0
  119. package/esm/models/anthropicwebfetchcontent.js +17 -0
  120. package/esm/models/anthropicwebfetchtoolresult.d.ts +15 -0
  121. package/esm/models/anthropicwebfetchtoolresult.js +24 -0
  122. package/esm/models/anthropicwebfetchtoolresulterror.d.ts +25 -0
  123. package/esm/models/anthropicwebfetchtoolresulterror.js +33 -0
  124. package/esm/models/anthropicwebsearchresult.d.ts +21 -0
  125. package/esm/models/anthropicwebsearchresult.js +29 -0
  126. package/esm/models/anthropicwebsearchtoolresult.d.ts +20 -0
  127. package/esm/models/anthropicwebsearchtoolresult.js +36 -0
  128. package/esm/models/anthropicwebsearchtoolresulterror.d.ts +29 -0
  129. package/esm/models/anthropicwebsearchtoolresulterror.js +37 -0
  130. package/esm/models/batchdeletedobject.d.ts +26 -0
  131. package/esm/models/batchdeletedobject.js +22 -0
  132. package/esm/models/batchdeletionoutcome.d.ts +17 -0
  133. package/esm/models/batchdeletionoutcome.js +16 -0
  134. package/esm/models/batchdeletiontargets.d.ts +50 -0
  135. package/esm/models/batchdeletiontargets.js +32 -0
  136. package/esm/models/batcherrorresponse.d.ts +11 -0
  137. package/esm/models/batcherrorresponse.js +15 -0
  138. package/esm/models/batchlistitem.d.ts +181 -0
  139. package/esm/models/batchlistitem.js +159 -0
  140. package/esm/models/batchlistresponse.d.ts +25 -0
  141. package/esm/models/batchlistresponse.js +31 -0
  142. package/esm/models/batchliststatus.d.ts +20 -0
  143. package/esm/models/batchliststatus.js +19 -0
  144. package/esm/models/batchlisttimestamp.d.ts +12 -0
  145. package/esm/models/batchlisttimestamp.js +15 -0
  146. package/esm/models/batchobject.d.ts +750 -0
  147. package/esm/models/batchobject.js +810 -0
  148. package/esm/models/batchpaymentrequiredresponseerror.d.ts +159 -0
  149. package/esm/models/batchpaymentrequiredresponseerror.js +136 -0
  150. package/esm/models/batchproviderpreferences.d.ts +25 -0
  151. package/esm/models/batchproviderpreferences.js +20 -0
  152. package/esm/models/batchsubmitbody.d.ts +62 -0
  153. package/esm/models/batchsubmitbody.js +51 -0
  154. package/esm/models/debugevent.d.ts +12 -12
  155. package/esm/models/debugevent.js +11 -12
  156. package/esm/models/errors/batcherrorresponse.d.ts +19 -0
  157. package/esm/models/errors/batcherrorresponse.js +32 -0
  158. package/esm/models/errors/batchpaymentrequiredresponseerror.d.ts +53 -0
  159. package/esm/models/errors/batchpaymentrequiredresponseerror.js +64 -0
  160. package/esm/models/errors/index.d.ts +2 -0
  161. package/esm/models/errors/index.js +2 -0
  162. package/esm/models/finishreason.d.ts +13 -0
  163. package/esm/models/finishreason.js +15 -0
  164. package/esm/models/imagegenerationrequest.d.ts +3 -0
  165. package/esm/models/imagegenerationrequest.js +3 -0
  166. package/esm/models/imagegenerationusage.d.ts +4 -4
  167. package/esm/models/imagegenerationusage.js +4 -6
  168. package/esm/models/index.d.ts +75 -0
  169. package/esm/models/index.js +75 -0
  170. package/esm/models/internchatchoice.d.ts +4 -4
  171. package/esm/models/internchatchoice.js +3 -3
  172. package/esm/models/messagesmessageparam.d.ts +8 -8
  173. package/esm/models/messagesmessageparam.js +6 -7
  174. package/esm/models/operations/createbatches.d.ts +59 -0
  175. package/esm/models/operations/createbatches.js +23 -0
  176. package/esm/models/operations/deletebatch.d.ts +58 -0
  177. package/esm/models/operations/deletebatch.js +21 -0
  178. package/esm/models/operations/getbatches.d.ts +58 -0
  179. package/esm/models/operations/getbatches.js +21 -0
  180. package/esm/models/operations/index.d.ts +4 -0
  181. package/esm/models/operations/index.js +4 -0
  182. package/esm/models/operations/listbatches.d.ts +87 -0
  183. package/esm/models/operations/listbatches.js +40 -0
  184. package/esm/models/oranthropicbashtoolresult.d.ts +43 -0
  185. package/esm/models/oranthropicbashtoolresult.js +49 -0
  186. package/esm/models/oranthropiccontentblock.d.ts +25 -0
  187. package/esm/models/oranthropiccontentblock.js +45 -0
  188. package/esm/models/oranthropicnullablecaller.d.ts +12 -0
  189. package/esm/models/oranthropicnullablecaller.js +19 -0
  190. package/esm/models/oranthropicservertooluseblock.d.ts +15 -0
  191. package/esm/models/oranthropicservertooluseblock.js +19 -0
  192. package/esm/models/oranthropicshelltoolresult.d.ts +43 -0
  193. package/esm/models/oranthropicshelltoolresult.js +50 -0
  194. package/esm/models/oranthropicstopreason.d.ts +16 -0
  195. package/esm/models/oranthropicstopreason.js +18 -0
  196. package/esm/models/outputfusionservertoolitem.d.ts +8 -8
  197. package/esm/models/outputfusionservertoolitem.js +8 -8
  198. package/esm/models/submitgenerationfeedbackrequest.d.ts +4 -4
  199. package/esm/models/submitgenerationfeedbackrequest.js +3 -4
  200. package/esm/sdk/batch.d.ts +37 -0
  201. package/esm/sdk/batch.js +50 -0
  202. package/esm/sdk/sdk.d.ts +3 -0
  203. package/esm/sdk/sdk.js +4 -0
  204. package/jsr.json +1 -1
  205. package/package.json +7 -7
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: d22abd4b2e55
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
+ export const FileType = {
10
+ Text: "text",
11
+ Image: "image",
12
+ Pdf: "pdf",
13
+ };
14
+ /** @internal */
15
+ export const FileType$inboundSchema = openEnums
16
+ .inboundSchema(FileType);
17
+ /** @internal */
18
+ export const AnthropicTextEditorCodeExecutionViewResult$inboundSchema = z.object({
19
+ content: z.string(),
20
+ file_type: FileType$inboundSchema,
21
+ num_lines: z.nullable(z.int()),
22
+ start_line: z.nullable(z.int()),
23
+ total_lines: z.nullable(z.int()),
24
+ type: z.literal("text_editor_code_execution_view_result"),
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "file_type": "fileType",
28
+ "num_lines": "numLines",
29
+ "start_line": "startLine",
30
+ "total_lines": "totalLines",
31
+ });
32
+ });
33
+ export function anthropicTextEditorCodeExecutionViewResultFromJSON(jsonString) {
34
+ return safeParse(jsonString, (x) => AnthropicTextEditorCodeExecutionViewResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicTextEditorCodeExecutionViewResult' from JSON`);
35
+ }
36
+ //# sourceMappingURL=anthropictexteditorcodeexecutionviewresult.js.map
@@ -0,0 +1,12 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ export type AnthropicThinkingBlock = {
5
+ signature: string;
6
+ thinking: string;
7
+ type: "thinking";
8
+ };
9
+ /** @internal */
10
+ export declare const AnthropicThinkingBlock$inboundSchema: z.ZodType<AnthropicThinkingBlock, unknown>;
11
+ export declare function anthropicThinkingBlockFromJSON(jsonString: string): SafeParseResult<AnthropicThinkingBlock, SDKValidationError>;
12
+ //# sourceMappingURL=anthropicthinkingblock.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 3d517d0c0ebc
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /** @internal */
8
+ export const AnthropicThinkingBlock$inboundSchema = z.object({
9
+ signature: z.string(),
10
+ thinking: z.string(),
11
+ type: z.literal("thinking"),
12
+ });
13
+ export function anthropicThinkingBlockFromJSON(jsonString) {
14
+ return safeParse(jsonString, (x) => AnthropicThinkingBlock$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicThinkingBlock' from JSON`);
15
+ }
16
+ //# sourceMappingURL=anthropicthinkingblock.js.map
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export declare const AnthropicToolReferenceType: {
6
+ readonly ToolReference: "tool_reference";
7
+ };
8
+ export type AnthropicToolReferenceType = ClosedEnum<typeof AnthropicToolReferenceType>;
9
+ export type AnthropicToolReference = {
10
+ toolName: string;
11
+ type: AnthropicToolReferenceType;
12
+ };
13
+ /** @internal */
14
+ export declare const AnthropicToolReferenceType$inboundSchema: z.ZodEnum<typeof AnthropicToolReferenceType>;
15
+ /** @internal */
16
+ export declare const AnthropicToolReference$inboundSchema: z.ZodType<AnthropicToolReference, unknown>;
17
+ export declare function anthropicToolReferenceFromJSON(jsonString: string): SafeParseResult<AnthropicToolReference, SDKValidationError>;
18
+ //# sourceMappingURL=anthropictoolreference.d.ts.map
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 106efa7085a7
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
+ export const AnthropicToolReferenceType = {
9
+ ToolReference: "tool_reference",
10
+ };
11
+ /** @internal */
12
+ export const AnthropicToolReferenceType$inboundSchema = z.enum(AnthropicToolReferenceType);
13
+ /** @internal */
14
+ export const AnthropicToolReference$inboundSchema = z.object({
15
+ tool_name: z.string(),
16
+ type: AnthropicToolReferenceType$inboundSchema,
17
+ }).transform((v) => {
18
+ return remap$(v, {
19
+ "tool_name": "toolName",
20
+ });
21
+ });
22
+ export function anthropicToolReferenceFromJSON(jsonString) {
23
+ return safeParse(jsonString, (x) => AnthropicToolReference$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicToolReference' from JSON`);
24
+ }
25
+ //# sourceMappingURL=anthropictoolreference.js.map
@@ -0,0 +1,11 @@
1
+ import * as z from "zod/v4";
2
+ import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { AnthropicToolSearchResult } from "./anthropictoolsearchresult.js";
5
+ import { AnthropicToolSearchResultError } from "./anthropictoolsearchresulterror.js";
6
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
7
+ export type AnthropicToolSearchContent = AnthropicToolSearchResultError | AnthropicToolSearchResult | discriminatedUnionTypes.Unknown<"type">;
8
+ /** @internal */
9
+ export declare const AnthropicToolSearchContent$inboundSchema: z.ZodType<AnthropicToolSearchContent, unknown>;
10
+ export declare function anthropicToolSearchContentFromJSON(jsonString: string): SafeParseResult<AnthropicToolSearchContent, SDKValidationError>;
11
+ //# sourceMappingURL=anthropictoolsearchcontent.d.ts.map
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 3a2d3e60694f
4
+ */
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import { discriminatedUnion } from "../types/discriminatedUnion.js";
7
+ import { AnthropicToolSearchResult$inboundSchema, } from "./anthropictoolsearchresult.js";
8
+ import { AnthropicToolSearchResultError$inboundSchema, } from "./anthropictoolsearchresulterror.js";
9
+ /** @internal */
10
+ export const AnthropicToolSearchContent$inboundSchema = discriminatedUnion("type", {
11
+ tool_search_tool_result_error: AnthropicToolSearchResultError$inboundSchema,
12
+ tool_search_tool_search_result: AnthropicToolSearchResult$inboundSchema,
13
+ });
14
+ export function anthropicToolSearchContentFromJSON(jsonString) {
15
+ return safeParse(jsonString, (x) => AnthropicToolSearchContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicToolSearchContent' from JSON`);
16
+ }
17
+ //# sourceMappingURL=anthropictoolsearchcontent.js.map
@@ -0,0 +1,12 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AnthropicToolReference } from "./anthropictoolreference.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export type AnthropicToolSearchResult = {
6
+ toolReferences: Array<AnthropicToolReference>;
7
+ type: "tool_search_tool_search_result";
8
+ };
9
+ /** @internal */
10
+ export declare const AnthropicToolSearchResult$inboundSchema: z.ZodType<AnthropicToolSearchResult, unknown>;
11
+ export declare function anthropicToolSearchResultFromJSON(jsonString: string): SafeParseResult<AnthropicToolSearchResult, SDKValidationError>;
12
+ //# sourceMappingURL=anthropictoolsearchresult.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 465ebc45a91c
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 { AnthropicToolReference$inboundSchema, } from "./anthropictoolreference.js";
9
+ /** @internal */
10
+ export const AnthropicToolSearchResult$inboundSchema = z.object({
11
+ tool_references: z.array(AnthropicToolReference$inboundSchema),
12
+ type: z.literal("tool_search_tool_search_result"),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ "tool_references": "toolReferences",
16
+ });
17
+ });
18
+ export function anthropicToolSearchResultFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => AnthropicToolSearchResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicToolSearchResult' from JSON`);
20
+ }
21
+ //# sourceMappingURL=anthropictoolsearchresult.js.map
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AnthropicServerToolErrorCode } from "./anthropicservertoolerrorcode.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export type AnthropicToolSearchResultError = {
6
+ errorCode: AnthropicServerToolErrorCode;
7
+ errorMessage: string | null;
8
+ type: "tool_search_tool_result_error";
9
+ };
10
+ /** @internal */
11
+ export declare const AnthropicToolSearchResultError$inboundSchema: z.ZodType<AnthropicToolSearchResultError, unknown>;
12
+ export declare function anthropicToolSearchResultErrorFromJSON(jsonString: string): SafeParseResult<AnthropicToolSearchResultError, SDKValidationError>;
13
+ //# sourceMappingURL=anthropictoolsearchresulterror.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: fdf5a0f6072b
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 { AnthropicServerToolErrorCode$inboundSchema, } from "./anthropicservertoolerrorcode.js";
9
+ /** @internal */
10
+ export const AnthropicToolSearchResultError$inboundSchema = z.object({
11
+ error_code: AnthropicServerToolErrorCode$inboundSchema,
12
+ error_message: z.nullable(z.string()),
13
+ type: z.literal("tool_search_tool_result_error"),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ "error_code": "errorCode",
17
+ "error_message": "errorMessage",
18
+ });
19
+ });
20
+ export function anthropicToolSearchResultErrorFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => AnthropicToolSearchResultError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicToolSearchResultError' from JSON`);
22
+ }
23
+ //# sourceMappingURL=anthropictoolsearchresulterror.js.map
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AnthropicToolSearchContent } from "./anthropictoolsearchcontent.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export type AnthropicToolSearchToolResult = {
6
+ content: AnthropicToolSearchContent;
7
+ toolUseId: string;
8
+ type: "tool_search_tool_result";
9
+ };
10
+ /** @internal */
11
+ export declare const AnthropicToolSearchToolResult$inboundSchema: z.ZodType<AnthropicToolSearchToolResult, unknown>;
12
+ export declare function anthropicToolSearchToolResultFromJSON(jsonString: string): SafeParseResult<AnthropicToolSearchToolResult, SDKValidationError>;
13
+ //# sourceMappingURL=anthropictoolsearchtoolresult.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0c393b072147
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 { AnthropicToolSearchContent$inboundSchema, } from "./anthropictoolsearchcontent.js";
9
+ /** @internal */
10
+ export const AnthropicToolSearchToolResult$inboundSchema = z.object({
11
+ content: AnthropicToolSearchContent$inboundSchema,
12
+ tool_use_id: z.string(),
13
+ type: z.literal("tool_search_tool_result"),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ "tool_use_id": "toolUseId",
17
+ });
18
+ });
19
+ export function anthropicToolSearchToolResultFromJSON(jsonString) {
20
+ return safeParse(jsonString, (x) => AnthropicToolSearchToolResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicToolSearchToolResult' from JSON`);
21
+ }
22
+ //# sourceMappingURL=anthropictoolsearchtoolresult.js.map
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AnthropicCaller } from "./anthropiccaller.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export type AnthropicToolUseBlock = {
6
+ caller: AnthropicCaller;
7
+ id: string;
8
+ input?: any | undefined;
9
+ name: string;
10
+ type: "tool_use";
11
+ };
12
+ /** @internal */
13
+ export declare const AnthropicToolUseBlock$inboundSchema: z.ZodType<AnthropicToolUseBlock, unknown>;
14
+ export declare function anthropicToolUseBlockFromJSON(jsonString: string): SafeParseResult<AnthropicToolUseBlock, SDKValidationError>;
15
+ //# sourceMappingURL=anthropictooluseblock.d.ts.map
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 6c9a5a6224a4
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { AnthropicCaller$inboundSchema, } from "./anthropiccaller.js";
8
+ /** @internal */
9
+ export const AnthropicToolUseBlock$inboundSchema = z.object({
10
+ caller: AnthropicCaller$inboundSchema,
11
+ id: z.string(),
12
+ input: z.any().optional(),
13
+ name: z.string(),
14
+ type: z.literal("tool_use"),
15
+ });
16
+ export function anthropicToolUseBlockFromJSON(jsonString) {
17
+ return safeParse(jsonString, (x) => AnthropicToolUseBlock$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicToolUseBlock' from JSON`);
18
+ }
19
+ //# sourceMappingURL=anthropictooluseblock.js.map
@@ -0,0 +1,14 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AnthropicDocumentBlock } from "./anthropicdocumentblock.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export type AnthropicWebFetchBlock = {
6
+ content: AnthropicDocumentBlock;
7
+ retrievedAt: string | null;
8
+ type: "web_fetch_result";
9
+ url: string;
10
+ };
11
+ /** @internal */
12
+ export declare const AnthropicWebFetchBlock$inboundSchema: z.ZodType<AnthropicWebFetchBlock, unknown>;
13
+ export declare function anthropicWebFetchBlockFromJSON(jsonString: string): SafeParseResult<AnthropicWebFetchBlock, SDKValidationError>;
14
+ //# sourceMappingURL=anthropicwebfetchblock.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0e3236a6988b
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 { AnthropicDocumentBlock$inboundSchema, } from "./anthropicdocumentblock.js";
9
+ /** @internal */
10
+ export const AnthropicWebFetchBlock$inboundSchema = z.object({
11
+ content: AnthropicDocumentBlock$inboundSchema,
12
+ retrieved_at: z.nullable(z.string()),
13
+ type: z.literal("web_fetch_result"),
14
+ url: z.string(),
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ "retrieved_at": "retrievedAt",
18
+ });
19
+ });
20
+ export function anthropicWebFetchBlockFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => AnthropicWebFetchBlock$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicWebFetchBlock' from JSON`);
22
+ }
23
+ //# sourceMappingURL=anthropicwebfetchblock.js.map
@@ -0,0 +1,11 @@
1
+ import * as z from "zod/v4";
2
+ import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { AnthropicWebFetchBlock } from "./anthropicwebfetchblock.js";
5
+ import { AnthropicWebFetchToolResultError } from "./anthropicwebfetchtoolresulterror.js";
6
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
7
+ export type AnthropicWebFetchContent = AnthropicWebFetchBlock | AnthropicWebFetchToolResultError | discriminatedUnionTypes.Unknown<"type">;
8
+ /** @internal */
9
+ export declare const AnthropicWebFetchContent$inboundSchema: z.ZodType<AnthropicWebFetchContent, unknown>;
10
+ export declare function anthropicWebFetchContentFromJSON(jsonString: string): SafeParseResult<AnthropicWebFetchContent, SDKValidationError>;
11
+ //# sourceMappingURL=anthropicwebfetchcontent.d.ts.map
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ef77960724b3
4
+ */
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import { discriminatedUnion } from "../types/discriminatedUnion.js";
7
+ import { AnthropicWebFetchBlock$inboundSchema, } from "./anthropicwebfetchblock.js";
8
+ import { AnthropicWebFetchToolResultError$inboundSchema, } from "./anthropicwebfetchtoolresulterror.js";
9
+ /** @internal */
10
+ export const AnthropicWebFetchContent$inboundSchema = discriminatedUnion("type", {
11
+ web_fetch_result: AnthropicWebFetchBlock$inboundSchema,
12
+ web_fetch_tool_result_error: AnthropicWebFetchToolResultError$inboundSchema,
13
+ });
14
+ export function anthropicWebFetchContentFromJSON(jsonString) {
15
+ return safeParse(jsonString, (x) => AnthropicWebFetchContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicWebFetchContent' from JSON`);
16
+ }
17
+ //# sourceMappingURL=anthropicwebfetchcontent.js.map
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AnthropicCaller } from "./anthropiccaller.js";
4
+ import { AnthropicWebFetchContent } from "./anthropicwebfetchcontent.js";
5
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
6
+ export type AnthropicWebFetchToolResult = {
7
+ caller: AnthropicCaller;
8
+ content: AnthropicWebFetchContent;
9
+ toolUseId: string;
10
+ type: "web_fetch_tool_result";
11
+ };
12
+ /** @internal */
13
+ export declare const AnthropicWebFetchToolResult$inboundSchema: z.ZodType<AnthropicWebFetchToolResult, unknown>;
14
+ export declare function anthropicWebFetchToolResultFromJSON(jsonString: string): SafeParseResult<AnthropicWebFetchToolResult, SDKValidationError>;
15
+ //# sourceMappingURL=anthropicwebfetchtoolresult.d.ts.map
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 12d2ff014a57
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 { AnthropicCaller$inboundSchema, } from "./anthropiccaller.js";
9
+ import { AnthropicWebFetchContent$inboundSchema, } from "./anthropicwebfetchcontent.js";
10
+ /** @internal */
11
+ export const AnthropicWebFetchToolResult$inboundSchema = z.object({
12
+ caller: AnthropicCaller$inboundSchema,
13
+ content: AnthropicWebFetchContent$inboundSchema,
14
+ tool_use_id: z.string(),
15
+ type: z.literal("web_fetch_tool_result"),
16
+ }).transform((v) => {
17
+ return remap$(v, {
18
+ "tool_use_id": "toolUseId",
19
+ });
20
+ });
21
+ export function anthropicWebFetchToolResultFromJSON(jsonString) {
22
+ return safeParse(jsonString, (x) => AnthropicWebFetchToolResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicWebFetchToolResult' from JSON`);
23
+ }
24
+ //# sourceMappingURL=anthropicwebfetchtoolresult.js.map
@@ -0,0 +1,25 @@
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
+ export declare const AnthropicWebFetchToolResultErrorErrorCode: {
6
+ readonly InvalidToolInput: "invalid_tool_input";
7
+ readonly UrlTooLong: "url_too_long";
8
+ readonly UrlNotAllowed: "url_not_allowed";
9
+ readonly UrlNotAccessible: "url_not_accessible";
10
+ readonly UnsupportedContentType: "unsupported_content_type";
11
+ readonly TooManyRequests: "too_many_requests";
12
+ readonly MaxUsesExceeded: "max_uses_exceeded";
13
+ readonly Unavailable: "unavailable";
14
+ };
15
+ export type AnthropicWebFetchToolResultErrorErrorCode = OpenEnum<typeof AnthropicWebFetchToolResultErrorErrorCode>;
16
+ export type AnthropicWebFetchToolResultError = {
17
+ errorCode: AnthropicWebFetchToolResultErrorErrorCode;
18
+ type: "web_fetch_tool_result_error";
19
+ };
20
+ /** @internal */
21
+ export declare const AnthropicWebFetchToolResultErrorErrorCode$inboundSchema: z.ZodType<AnthropicWebFetchToolResultErrorErrorCode, unknown>;
22
+ /** @internal */
23
+ export declare const AnthropicWebFetchToolResultError$inboundSchema: z.ZodType<AnthropicWebFetchToolResultError, unknown>;
24
+ export declare function anthropicWebFetchToolResultErrorFromJSON(jsonString: string): SafeParseResult<AnthropicWebFetchToolResultError, SDKValidationError>;
25
+ //# sourceMappingURL=anthropicwebfetchtoolresulterror.d.ts.map
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 51ade5a2476e
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
+ export const AnthropicWebFetchToolResultErrorErrorCode = {
10
+ InvalidToolInput: "invalid_tool_input",
11
+ UrlTooLong: "url_too_long",
12
+ UrlNotAllowed: "url_not_allowed",
13
+ UrlNotAccessible: "url_not_accessible",
14
+ UnsupportedContentType: "unsupported_content_type",
15
+ TooManyRequests: "too_many_requests",
16
+ MaxUsesExceeded: "max_uses_exceeded",
17
+ Unavailable: "unavailable",
18
+ };
19
+ /** @internal */
20
+ export const AnthropicWebFetchToolResultErrorErrorCode$inboundSchema = openEnums.inboundSchema(AnthropicWebFetchToolResultErrorErrorCode);
21
+ /** @internal */
22
+ export const AnthropicWebFetchToolResultError$inboundSchema = z.object({
23
+ error_code: AnthropicWebFetchToolResultErrorErrorCode$inboundSchema,
24
+ type: z.literal("web_fetch_tool_result_error"),
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "error_code": "errorCode",
28
+ });
29
+ });
30
+ export function anthropicWebFetchToolResultErrorFromJSON(jsonString) {
31
+ return safeParse(jsonString, (x) => AnthropicWebFetchToolResultError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicWebFetchToolResultError' from JSON`);
32
+ }
33
+ //# sourceMappingURL=anthropicwebfetchtoolresulterror.js.map
@@ -0,0 +1,21 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export declare const AnthropicWebSearchResultType: {
6
+ readonly WebSearchResult: "web_search_result";
7
+ };
8
+ export type AnthropicWebSearchResultType = ClosedEnum<typeof AnthropicWebSearchResultType>;
9
+ export type AnthropicWebSearchResult = {
10
+ encryptedContent: string;
11
+ pageAge: string | null;
12
+ title: string;
13
+ type: AnthropicWebSearchResultType;
14
+ url: string;
15
+ };
16
+ /** @internal */
17
+ export declare const AnthropicWebSearchResultType$inboundSchema: z.ZodEnum<typeof AnthropicWebSearchResultType>;
18
+ /** @internal */
19
+ export declare const AnthropicWebSearchResult$inboundSchema: z.ZodType<AnthropicWebSearchResult, unknown>;
20
+ export declare function anthropicWebSearchResultFromJSON(jsonString: string): SafeParseResult<AnthropicWebSearchResult, SDKValidationError>;
21
+ //# sourceMappingURL=anthropicwebsearchresult.d.ts.map
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8e1525a04bc3
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
+ export const AnthropicWebSearchResultType = {
9
+ WebSearchResult: "web_search_result",
10
+ };
11
+ /** @internal */
12
+ export const AnthropicWebSearchResultType$inboundSchema = z.enum(AnthropicWebSearchResultType);
13
+ /** @internal */
14
+ export const AnthropicWebSearchResult$inboundSchema = z.object({
15
+ encrypted_content: z.string(),
16
+ page_age: z.nullable(z.string()),
17
+ title: z.string(),
18
+ type: AnthropicWebSearchResultType$inboundSchema,
19
+ url: z.string(),
20
+ }).transform((v) => {
21
+ return remap$(v, {
22
+ "encrypted_content": "encryptedContent",
23
+ "page_age": "pageAge",
24
+ });
25
+ });
26
+ export function anthropicWebSearchResultFromJSON(jsonString) {
27
+ return safeParse(jsonString, (x) => AnthropicWebSearchResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicWebSearchResult' from JSON`);
28
+ }
29
+ //# sourceMappingURL=anthropicwebsearchresult.js.map
@@ -0,0 +1,20 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AnthropicCaller } from "./anthropiccaller.js";
4
+ import { AnthropicWebSearchResult } from "./anthropicwebsearchresult.js";
5
+ import { AnthropicWebSearchToolResultError } from "./anthropicwebsearchtoolresulterror.js";
6
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
7
+ export type AnthropicWebSearchToolResultContent = AnthropicWebSearchToolResultError | Array<AnthropicWebSearchResult>;
8
+ export type AnthropicWebSearchToolResult = {
9
+ caller: AnthropicCaller;
10
+ content: AnthropicWebSearchToolResultError | Array<AnthropicWebSearchResult>;
11
+ toolUseId: string;
12
+ type: "web_search_tool_result";
13
+ };
14
+ /** @internal */
15
+ export declare const AnthropicWebSearchToolResultContent$inboundSchema: z.ZodType<AnthropicWebSearchToolResultContent, unknown>;
16
+ export declare function anthropicWebSearchToolResultContentFromJSON(jsonString: string): SafeParseResult<AnthropicWebSearchToolResultContent, SDKValidationError>;
17
+ /** @internal */
18
+ export declare const AnthropicWebSearchToolResult$inboundSchema: z.ZodType<AnthropicWebSearchToolResult, unknown>;
19
+ export declare function anthropicWebSearchToolResultFromJSON(jsonString: string): SafeParseResult<AnthropicWebSearchToolResult, SDKValidationError>;
20
+ //# sourceMappingURL=anthropicwebsearchtoolresult.d.ts.map
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ba1707269043
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 { AnthropicCaller$inboundSchema, } from "./anthropiccaller.js";
9
+ import { AnthropicWebSearchResult$inboundSchema, } from "./anthropicwebsearchresult.js";
10
+ import { AnthropicWebSearchToolResultError$inboundSchema, } from "./anthropicwebsearchtoolresulterror.js";
11
+ /** @internal */
12
+ export const AnthropicWebSearchToolResultContent$inboundSchema = z.union([
13
+ AnthropicWebSearchToolResultError$inboundSchema,
14
+ z.array(AnthropicWebSearchResult$inboundSchema),
15
+ ]);
16
+ export function anthropicWebSearchToolResultContentFromJSON(jsonString) {
17
+ return safeParse(jsonString, (x) => AnthropicWebSearchToolResultContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicWebSearchToolResultContent' from JSON`);
18
+ }
19
+ /** @internal */
20
+ export const AnthropicWebSearchToolResult$inboundSchema = z.object({
21
+ caller: AnthropicCaller$inboundSchema,
22
+ content: z.union([
23
+ AnthropicWebSearchToolResultError$inboundSchema,
24
+ z.array(AnthropicWebSearchResult$inboundSchema),
25
+ ]),
26
+ tool_use_id: z.string(),
27
+ type: z.literal("web_search_tool_result"),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "tool_use_id": "toolUseId",
31
+ });
32
+ });
33
+ export function anthropicWebSearchToolResultFromJSON(jsonString) {
34
+ return safeParse(jsonString, (x) => AnthropicWebSearchToolResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicWebSearchToolResult' from JSON`);
35
+ }
36
+ //# sourceMappingURL=anthropicwebsearchtoolresult.js.map
@@ -0,0 +1,29 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export declare const AnthropicWebSearchToolResultErrorErrorCode: {
6
+ readonly InvalidToolInput: "invalid_tool_input";
7
+ readonly Unavailable: "unavailable";
8
+ readonly MaxUsesExceeded: "max_uses_exceeded";
9
+ readonly TooManyRequests: "too_many_requests";
10
+ readonly QueryTooLong: "query_too_long";
11
+ readonly RequestTooLarge: "request_too_large";
12
+ };
13
+ export type AnthropicWebSearchToolResultErrorErrorCode = OpenEnum<typeof AnthropicWebSearchToolResultErrorErrorCode>;
14
+ export declare const AnthropicWebSearchToolResultErrorType: {
15
+ readonly WebSearchToolResultError: "web_search_tool_result_error";
16
+ };
17
+ export type AnthropicWebSearchToolResultErrorType = ClosedEnum<typeof AnthropicWebSearchToolResultErrorType>;
18
+ export type AnthropicWebSearchToolResultError = {
19
+ errorCode: AnthropicWebSearchToolResultErrorErrorCode;
20
+ type: AnthropicWebSearchToolResultErrorType;
21
+ };
22
+ /** @internal */
23
+ export declare const AnthropicWebSearchToolResultErrorErrorCode$inboundSchema: z.ZodType<AnthropicWebSearchToolResultErrorErrorCode, unknown>;
24
+ /** @internal */
25
+ export declare const AnthropicWebSearchToolResultErrorType$inboundSchema: z.ZodEnum<typeof AnthropicWebSearchToolResultErrorType>;
26
+ /** @internal */
27
+ export declare const AnthropicWebSearchToolResultError$inboundSchema: z.ZodType<AnthropicWebSearchToolResultError, unknown>;
28
+ export declare function anthropicWebSearchToolResultErrorFromJSON(jsonString: string): SafeParseResult<AnthropicWebSearchToolResultError, SDKValidationError>;
29
+ //# sourceMappingURL=anthropicwebsearchtoolresulterror.d.ts.map