@openrouter/sdk 1.3.28 → 1.3.30
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.
- package/README.md +1 -1
- package/esm/funcs/batchCreateBatches.d.ts +19 -0
- package/esm/funcs/batchCreateBatches.js +98 -0
- package/esm/funcs/batchDelete.d.ts +19 -0
- package/esm/funcs/batchDelete.js +103 -0
- package/esm/funcs/batchGetBatches.d.ts +19 -0
- package/esm/funcs/batchGetBatches.js +103 -0
- package/esm/funcs/batchList.d.ts +21 -0
- package/esm/funcs/batchList.js +134 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/anthropicadvisortoolresult.d.ts +14 -0
- package/esm/models/anthropicadvisortoolresult.js +21 -0
- package/esm/models/anthropicbase64pdfsource.d.ts +17 -2
- package/esm/models/anthropicbase64pdfsource.js +25 -2
- package/esm/models/anthropicbashcodeexecutioncontent.d.ts +11 -0
- package/esm/models/anthropicbashcodeexecutioncontent.js +17 -0
- package/esm/models/anthropicbashcodeexecutionoutput.d.ts +18 -0
- package/esm/models/anthropicbashcodeexecutionoutput.js +25 -0
- package/esm/models/anthropicbashcodeexecutionresult.d.ts +15 -0
- package/esm/models/anthropicbashcodeexecutionresult.js +24 -0
- package/esm/models/anthropicbashcodeexecutiontoolresult.d.ts +13 -0
- package/esm/models/anthropicbashcodeexecutiontoolresult.js +22 -0
- package/esm/models/anthropicbashcodeexecutiontoolresulterror.d.ts +22 -0
- package/esm/models/anthropicbashcodeexecutiontoolresulterror.js +30 -0
- package/esm/models/anthropiccaller.d.ts +12 -0
- package/esm/models/anthropiccaller.js +19 -0
- package/esm/models/anthropiccitationcharlocation.d.ts +16 -0
- package/esm/models/anthropiccitationcharlocation.js +30 -0
- package/esm/models/anthropiccitationcontentblocklocation.d.ts +16 -0
- package/esm/models/anthropiccitationcontentblocklocation.js +30 -0
- package/esm/models/anthropiccitationpagelocation.d.ts +16 -0
- package/esm/models/anthropiccitationpagelocation.js +30 -0
- package/esm/models/anthropiccitationsconfig.d.ts +10 -0
- package/esm/models/anthropiccitationsconfig.js +14 -0
- package/esm/models/anthropiccitationsearchresultlocation.d.ts +16 -0
- package/esm/models/anthropiccitationsearchresultlocation.js +28 -0
- package/esm/models/anthropiccitationwebsearchresultlocation.d.ts +14 -0
- package/esm/models/anthropiccitationwebsearchresultlocation.js +24 -0
- package/esm/models/anthropiccodeexecution20250825caller.d.ts +11 -0
- package/esm/models/anthropiccodeexecution20250825caller.js +20 -0
- package/esm/models/anthropiccodeexecution20260120caller.d.ts +11 -0
- package/esm/models/anthropiccodeexecution20260120caller.js +20 -0
- package/esm/models/anthropiccodeexecutioncontent.d.ts +12 -0
- package/esm/models/anthropiccodeexecutioncontent.js +19 -0
- package/esm/models/anthropiccodeexecutionoutput.d.ts +18 -0
- package/esm/models/anthropiccodeexecutionoutput.js +25 -0
- package/esm/models/anthropiccodeexecutionresult.d.ts +15 -0
- package/esm/models/anthropiccodeexecutionresult.js +24 -0
- package/esm/models/anthropiccodeexecutiontoolresult.d.ts +13 -0
- package/esm/models/anthropiccodeexecutiontoolresult.js +22 -0
- package/esm/models/anthropiccodeexecutiontoolresulterror.d.ts +12 -0
- package/esm/models/anthropiccodeexecutiontoolresulterror.js +21 -0
- package/esm/models/anthropiccompactionblock.d.ts +12 -0
- package/esm/models/anthropiccompactionblock.js +21 -0
- package/esm/models/anthropiccontainer.d.ts +13 -0
- package/esm/models/anthropiccontainer.js +22 -0
- package/esm/models/anthropiccontainerskill.d.ts +20 -0
- package/esm/models/anthropiccontainerskill.js +28 -0
- package/esm/models/anthropiccontainerupload.d.ts +11 -0
- package/esm/models/anthropiccontainerupload.js +20 -0
- package/esm/models/anthropicdirectcaller.d.ts +10 -0
- package/esm/models/anthropicdirectcaller.js +14 -0
- package/esm/models/anthropicdocumentblock.d.ts +36 -0
- package/esm/models/anthropicdocumentblock.js +45 -0
- package/esm/models/anthropicdocumentblockparam.d.ts +20 -4
- package/esm/models/anthropicdocumentblockparam.js +4 -4
- package/esm/models/anthropicencryptedcodeexecutionresult.d.ts +15 -0
- package/esm/models/anthropicencryptedcodeexecutionresult.js +25 -0
- package/esm/models/anthropicinputtransformation.d.ts +18 -0
- package/esm/models/anthropicinputtransformation.js +16 -0
- package/esm/models/anthropicoutputtokensdetails.d.ts +10 -0
- package/esm/models/anthropicoutputtokensdetails.js +19 -0
- package/esm/models/anthropicplaintextsource.d.ts +17 -2
- package/esm/models/anthropicplaintextsource.js +25 -2
- package/esm/models/anthropicredactedthinkingblock.d.ts +11 -0
- package/esm/models/anthropicredactedthinkingblock.js +15 -0
- package/esm/models/anthropicrefusalstopdetails.d.ts +32 -0
- package/esm/models/anthropicrefusalstopdetails.js +31 -0
- package/esm/models/anthropicservertoolerrorcode.d.ts +12 -0
- package/esm/models/anthropicservertoolerrorcode.js +14 -0
- package/esm/models/anthropicservertoolusage.d.ts +11 -0
- package/esm/models/anthropicservertoolusage.js +21 -0
- package/esm/models/anthropicservicetier.d.ts +11 -0
- package/esm/models/anthropicservicetier.js +13 -0
- package/esm/models/anthropictextblock.d.ts +13 -0
- package/esm/models/anthropictextblock.js +17 -0
- package/esm/models/anthropictextcitation.d.ts +14 -0
- package/esm/models/anthropictextcitation.js +23 -0
- package/esm/models/anthropictexteditorcodeexecutioncontent.d.ts +13 -0
- package/esm/models/anthropictexteditorcodeexecutioncontent.js +21 -0
- package/esm/models/anthropictexteditorcodeexecutioncreateresult.d.ts +11 -0
- package/esm/models/anthropictexteditorcodeexecutioncreateresult.js +20 -0
- package/esm/models/anthropictexteditorcodeexecutionstrreplaceresult.d.ts +15 -0
- package/esm/models/anthropictexteditorcodeexecutionstrreplaceresult.js +28 -0
- package/esm/models/anthropictexteditorcodeexecutiontoolresult.d.ts +13 -0
- package/esm/models/anthropictexteditorcodeexecutiontoolresult.js +22 -0
- package/esm/models/anthropictexteditorcodeexecutiontoolresulterror.d.ts +23 -0
- package/esm/models/anthropictexteditorcodeexecutiontoolresulterror.js +33 -0
- package/esm/models/anthropictexteditorcodeexecutionviewresult.d.ts +24 -0
- package/esm/models/anthropictexteditorcodeexecutionviewresult.js +36 -0
- package/esm/models/anthropicthinkingblock.d.ts +12 -0
- package/esm/models/anthropicthinkingblock.js +16 -0
- package/esm/models/anthropictoolreference.d.ts +18 -0
- package/esm/models/anthropictoolreference.js +25 -0
- package/esm/models/anthropictoolsearchcontent.d.ts +11 -0
- package/esm/models/anthropictoolsearchcontent.js +17 -0
- package/esm/models/anthropictoolsearchresult.d.ts +12 -0
- package/esm/models/anthropictoolsearchresult.js +21 -0
- package/esm/models/anthropictoolsearchresulterror.d.ts +13 -0
- package/esm/models/anthropictoolsearchresulterror.js +23 -0
- package/esm/models/anthropictoolsearchtoolresult.d.ts +13 -0
- package/esm/models/anthropictoolsearchtoolresult.js +22 -0
- package/esm/models/anthropictooluseblock.d.ts +15 -0
- package/esm/models/anthropictooluseblock.js +19 -0
- package/esm/models/anthropicwebfetchblock.d.ts +14 -0
- package/esm/models/anthropicwebfetchblock.js +23 -0
- package/esm/models/anthropicwebfetchcontent.d.ts +11 -0
- package/esm/models/anthropicwebfetchcontent.js +17 -0
- package/esm/models/anthropicwebfetchtoolresult.d.ts +15 -0
- package/esm/models/anthropicwebfetchtoolresult.js +24 -0
- package/esm/models/anthropicwebfetchtoolresulterror.d.ts +25 -0
- package/esm/models/anthropicwebfetchtoolresulterror.js +33 -0
- package/esm/models/anthropicwebsearchresult.d.ts +21 -0
- package/esm/models/anthropicwebsearchresult.js +29 -0
- package/esm/models/anthropicwebsearchtoolresult.d.ts +20 -0
- package/esm/models/anthropicwebsearchtoolresult.js +36 -0
- package/esm/models/anthropicwebsearchtoolresulterror.d.ts +29 -0
- package/esm/models/anthropicwebsearchtoolresulterror.js +37 -0
- package/esm/models/batchdeletedobject.d.ts +26 -0
- package/esm/models/batchdeletedobject.js +22 -0
- package/esm/models/batchdeletionoutcome.d.ts +17 -0
- package/esm/models/batchdeletionoutcome.js +16 -0
- package/esm/models/batchdeletiontargets.d.ts +50 -0
- package/esm/models/batchdeletiontargets.js +32 -0
- package/esm/models/batcherrorresponse.d.ts +11 -0
- package/esm/models/batcherrorresponse.js +15 -0
- package/esm/models/batchlistitem.d.ts +181 -0
- package/esm/models/batchlistitem.js +159 -0
- package/esm/models/batchlistresponse.d.ts +25 -0
- package/esm/models/batchlistresponse.js +31 -0
- package/esm/models/batchliststatus.d.ts +20 -0
- package/esm/models/batchliststatus.js +19 -0
- package/esm/models/batchlisttimestamp.d.ts +12 -0
- package/esm/models/batchlisttimestamp.js +15 -0
- package/esm/models/batchobject.d.ts +750 -0
- package/esm/models/batchobject.js +810 -0
- package/esm/models/batchpaymentrequiredresponseerror.d.ts +159 -0
- package/esm/models/batchpaymentrequiredresponseerror.js +136 -0
- package/esm/models/batchproviderpreferences.d.ts +25 -0
- package/esm/models/batchproviderpreferences.js +20 -0
- package/esm/models/batchsubmitbody.d.ts +62 -0
- package/esm/models/batchsubmitbody.js +51 -0
- package/esm/models/debugevent.d.ts +12 -12
- package/esm/models/debugevent.js +11 -12
- package/esm/models/errors/batcherrorresponse.d.ts +19 -0
- package/esm/models/errors/batcherrorresponse.js +32 -0
- package/esm/models/errors/batchpaymentrequiredresponseerror.d.ts +53 -0
- package/esm/models/errors/batchpaymentrequiredresponseerror.js +64 -0
- package/esm/models/errors/index.d.ts +2 -0
- package/esm/models/errors/index.js +2 -0
- package/esm/models/finishreason.d.ts +13 -0
- package/esm/models/finishreason.js +15 -0
- package/esm/models/imagegenerationusage.d.ts +4 -4
- package/esm/models/imagegenerationusage.js +4 -6
- package/esm/models/index.d.ts +77 -0
- package/esm/models/index.js +77 -0
- package/esm/models/internchatchoice.d.ts +4 -4
- package/esm/models/internchatchoice.js +3 -3
- package/esm/models/messagesmessageparam.d.ts +8 -8
- package/esm/models/messagesmessageparam.js +6 -7
- package/esm/models/operations/createbatches.d.ts +59 -0
- package/esm/models/operations/createbatches.js +23 -0
- package/esm/models/operations/deletebatch.d.ts +58 -0
- package/esm/models/operations/deletebatch.js +21 -0
- package/esm/models/operations/getbatches.d.ts +58 -0
- package/esm/models/operations/getbatches.js +21 -0
- package/esm/models/operations/index.d.ts +4 -0
- package/esm/models/operations/index.js +4 -0
- package/esm/models/operations/listbatches.d.ts +87 -0
- package/esm/models/operations/listbatches.js +40 -0
- package/esm/models/oranthropicbashtoolresult.d.ts +43 -0
- package/esm/models/oranthropicbashtoolresult.js +49 -0
- package/esm/models/oranthropiccontentblock.d.ts +25 -0
- package/esm/models/oranthropiccontentblock.js +45 -0
- package/esm/models/oranthropicnullablecaller.d.ts +12 -0
- package/esm/models/oranthropicnullablecaller.js +19 -0
- package/esm/models/oranthropicservertooluseblock.d.ts +15 -0
- package/esm/models/oranthropicservertooluseblock.js +19 -0
- package/esm/models/oranthropicshelltoolresult.d.ts +43 -0
- package/esm/models/oranthropicshelltoolresult.js +50 -0
- package/esm/models/oranthropicstopreason.d.ts +16 -0
- package/esm/models/oranthropicstopreason.js +18 -0
- package/esm/models/outputfusionservertoolitem.d.ts +8 -8
- package/esm/models/outputfusionservertoolitem.js +8 -8
- package/esm/models/publicendpoint.d.ts +8 -0
- package/esm/models/publicendpoint.js +4 -0
- package/esm/models/speechinputreference.d.ts +4 -3
- package/esm/models/speechinputreference.js +2 -0
- package/esm/models/speechinputreferenceaudio.d.ts +1 -1
- package/esm/models/speechinputreferenceaudioinput.d.ts +8 -3
- package/esm/models/speechinputreferenceaudioinput.js +2 -1
- package/esm/models/speechinputreferenceimage.d.ts +21 -0
- package/esm/models/speechinputreferenceimage.js +20 -0
- package/esm/models/speechinputreferenceimageinput.d.ts +18 -0
- package/esm/models/speechinputreferenceimageinput.js +13 -0
- package/esm/models/speechinputreferencetext.d.ts +2 -2
- package/esm/models/speechrequest.d.ts +1 -1
- package/esm/models/submitgenerationfeedbackrequest.d.ts +4 -4
- package/esm/models/submitgenerationfeedbackrequest.js +3 -4
- package/esm/sdk/batch.d.ts +37 -0
- package/esm/sdk/batch.js +50 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +7 -7
|
@@ -4,16 +4,36 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
8
|
export const AnthropicBase64PdfSourceMediaType = {
|
|
8
9
|
ApplicationPdf: "application/pdf",
|
|
9
10
|
};
|
|
11
|
+
export const AnthropicBase64PdfSourceType = {
|
|
12
|
+
Base64: "base64",
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const AnthropicBase64PdfSourceMediaType$inboundSchema = z.enum(AnthropicBase64PdfSourceMediaType);
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const AnthropicBase64PdfSourceMediaType$outboundSchema = AnthropicBase64PdfSourceMediaType$inboundSchema;
|
|
10
18
|
/** @internal */
|
|
11
|
-
export const
|
|
19
|
+
export const AnthropicBase64PdfSourceType$inboundSchema = z.enum(AnthropicBase64PdfSourceType);
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const AnthropicBase64PdfSourceType$outboundSchema = AnthropicBase64PdfSourceType$inboundSchema;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const AnthropicBase64PdfSource$inboundSchema = z.object({
|
|
24
|
+
data: z.string(),
|
|
25
|
+
media_type: AnthropicBase64PdfSourceMediaType$inboundSchema,
|
|
26
|
+
type: AnthropicBase64PdfSourceType$inboundSchema,
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"media_type": "mediaType",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
12
32
|
/** @internal */
|
|
13
33
|
export const AnthropicBase64PdfSource$outboundSchema = z.object({
|
|
14
34
|
data: z.string(),
|
|
15
35
|
mediaType: AnthropicBase64PdfSourceMediaType$outboundSchema,
|
|
16
|
-
type:
|
|
36
|
+
type: AnthropicBase64PdfSourceType$outboundSchema,
|
|
17
37
|
}).transform((v) => {
|
|
18
38
|
return remap$(v, {
|
|
19
39
|
mediaType: "media_type",
|
|
@@ -22,4 +42,7 @@ export const AnthropicBase64PdfSource$outboundSchema = z.object({
|
|
|
22
42
|
export function anthropicBase64PdfSourceToJSON(anthropicBase64PdfSource) {
|
|
23
43
|
return JSON.stringify(AnthropicBase64PdfSource$outboundSchema.parse(anthropicBase64PdfSource));
|
|
24
44
|
}
|
|
45
|
+
export function anthropicBase64PdfSourceFromJSON(jsonString) {
|
|
46
|
+
return safeParse(jsonString, (x) => AnthropicBase64PdfSource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicBase64PdfSource' from JSON`);
|
|
47
|
+
}
|
|
25
48
|
//# sourceMappingURL=anthropicbase64pdfsource.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 { AnthropicBashCodeExecutionResult } from "./anthropicbashcodeexecutionresult.js";
|
|
5
|
+
import { AnthropicBashCodeExecutionToolResultError } from "./anthropicbashcodeexecutiontoolresulterror.js";
|
|
6
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
7
|
+
export type AnthropicBashCodeExecutionContent = AnthropicBashCodeExecutionResult | AnthropicBashCodeExecutionToolResultError | discriminatedUnionTypes.Unknown<"type">;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const AnthropicBashCodeExecutionContent$inboundSchema: z.ZodType<AnthropicBashCodeExecutionContent, unknown>;
|
|
10
|
+
export declare function anthropicBashCodeExecutionContentFromJSON(jsonString: string): SafeParseResult<AnthropicBashCodeExecutionContent, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=anthropicbashcodeexecutioncontent.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2cbd7b2f90c2
|
|
4
|
+
*/
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
import { discriminatedUnion } from "../types/discriminatedUnion.js";
|
|
7
|
+
import { AnthropicBashCodeExecutionResult$inboundSchema, } from "./anthropicbashcodeexecutionresult.js";
|
|
8
|
+
import { AnthropicBashCodeExecutionToolResultError$inboundSchema, } from "./anthropicbashcodeexecutiontoolresulterror.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const AnthropicBashCodeExecutionContent$inboundSchema = discriminatedUnion("type", {
|
|
11
|
+
bash_code_execution_result: AnthropicBashCodeExecutionResult$inboundSchema,
|
|
12
|
+
bash_code_execution_tool_result_error: AnthropicBashCodeExecutionToolResultError$inboundSchema,
|
|
13
|
+
});
|
|
14
|
+
export function anthropicBashCodeExecutionContentFromJSON(jsonString) {
|
|
15
|
+
return safeParse(jsonString, (x) => AnthropicBashCodeExecutionContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicBashCodeExecutionContent' from JSON`);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=anthropicbashcodeexecutioncontent.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 AnthropicBashCodeExecutionOutputType: {
|
|
6
|
+
readonly BashCodeExecutionOutput: "bash_code_execution_output";
|
|
7
|
+
};
|
|
8
|
+
export type AnthropicBashCodeExecutionOutputType = ClosedEnum<typeof AnthropicBashCodeExecutionOutputType>;
|
|
9
|
+
export type AnthropicBashCodeExecutionOutput = {
|
|
10
|
+
fileId: string;
|
|
11
|
+
type: AnthropicBashCodeExecutionOutputType;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const AnthropicBashCodeExecutionOutputType$inboundSchema: z.ZodEnum<typeof AnthropicBashCodeExecutionOutputType>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const AnthropicBashCodeExecutionOutput$inboundSchema: z.ZodType<AnthropicBashCodeExecutionOutput, unknown>;
|
|
17
|
+
export declare function anthropicBashCodeExecutionOutputFromJSON(jsonString: string): SafeParseResult<AnthropicBashCodeExecutionOutput, SDKValidationError>;
|
|
18
|
+
//# sourceMappingURL=anthropicbashcodeexecutionoutput.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 58a93663b57a
|
|
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 AnthropicBashCodeExecutionOutputType = {
|
|
9
|
+
BashCodeExecutionOutput: "bash_code_execution_output",
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const AnthropicBashCodeExecutionOutputType$inboundSchema = z.enum(AnthropicBashCodeExecutionOutputType);
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const AnthropicBashCodeExecutionOutput$inboundSchema = z.object({
|
|
15
|
+
file_id: z.string(),
|
|
16
|
+
type: AnthropicBashCodeExecutionOutputType$inboundSchema,
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
"file_id": "fileId",
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
export function anthropicBashCodeExecutionOutputFromJSON(jsonString) {
|
|
23
|
+
return safeParse(jsonString, (x) => AnthropicBashCodeExecutionOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicBashCodeExecutionOutput' from JSON`);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=anthropicbashcodeexecutionoutput.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { AnthropicBashCodeExecutionOutput } from "./anthropicbashcodeexecutionoutput.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export type AnthropicBashCodeExecutionResult = {
|
|
6
|
+
content: Array<AnthropicBashCodeExecutionOutput>;
|
|
7
|
+
returnCode: number;
|
|
8
|
+
stderr: string;
|
|
9
|
+
stdout: string;
|
|
10
|
+
type: "bash_code_execution_result";
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const AnthropicBashCodeExecutionResult$inboundSchema: z.ZodType<AnthropicBashCodeExecutionResult, unknown>;
|
|
14
|
+
export declare function anthropicBashCodeExecutionResultFromJSON(jsonString: string): SafeParseResult<AnthropicBashCodeExecutionResult, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=anthropicbashcodeexecutionresult.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 556789aa061d
|
|
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 { AnthropicBashCodeExecutionOutput$inboundSchema, } from "./anthropicbashcodeexecutionoutput.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const AnthropicBashCodeExecutionResult$inboundSchema = z.object({
|
|
11
|
+
content: z.array(AnthropicBashCodeExecutionOutput$inboundSchema),
|
|
12
|
+
return_code: z.int(),
|
|
13
|
+
stderr: z.string(),
|
|
14
|
+
stdout: z.string(),
|
|
15
|
+
type: z.literal("bash_code_execution_result"),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"return_code": "returnCode",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function anthropicBashCodeExecutionResultFromJSON(jsonString) {
|
|
22
|
+
return safeParse(jsonString, (x) => AnthropicBashCodeExecutionResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicBashCodeExecutionResult' from JSON`);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=anthropicbashcodeexecutionresult.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { AnthropicBashCodeExecutionContent } from "./anthropicbashcodeexecutioncontent.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export type AnthropicBashCodeExecutionToolResult = {
|
|
6
|
+
content: AnthropicBashCodeExecutionContent;
|
|
7
|
+
toolUseId: string;
|
|
8
|
+
type: "bash_code_execution_tool_result";
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const AnthropicBashCodeExecutionToolResult$inboundSchema: z.ZodType<AnthropicBashCodeExecutionToolResult, unknown>;
|
|
12
|
+
export declare function anthropicBashCodeExecutionToolResultFromJSON(jsonString: string): SafeParseResult<AnthropicBashCodeExecutionToolResult, SDKValidationError>;
|
|
13
|
+
//# sourceMappingURL=anthropicbashcodeexecutiontoolresult.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5d55d5213281
|
|
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 { AnthropicBashCodeExecutionContent$inboundSchema, } from "./anthropicbashcodeexecutioncontent.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const AnthropicBashCodeExecutionToolResult$inboundSchema = z.object({
|
|
11
|
+
content: AnthropicBashCodeExecutionContent$inboundSchema,
|
|
12
|
+
tool_use_id: z.string(),
|
|
13
|
+
type: z.literal("bash_code_execution_tool_result"),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
"tool_use_id": "toolUseId",
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export function anthropicBashCodeExecutionToolResultFromJSON(jsonString) {
|
|
20
|
+
return safeParse(jsonString, (x) => AnthropicBashCodeExecutionToolResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicBashCodeExecutionToolResult' from JSON`);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=anthropicbashcodeexecutiontoolresult.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
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 AnthropicBashCodeExecutionToolResultErrorErrorCode: {
|
|
6
|
+
readonly InvalidToolInput: "invalid_tool_input";
|
|
7
|
+
readonly Unavailable: "unavailable";
|
|
8
|
+
readonly TooManyRequests: "too_many_requests";
|
|
9
|
+
readonly ExecutionTimeExceeded: "execution_time_exceeded";
|
|
10
|
+
readonly OutputFileTooLarge: "output_file_too_large";
|
|
11
|
+
};
|
|
12
|
+
export type AnthropicBashCodeExecutionToolResultErrorErrorCode = OpenEnum<typeof AnthropicBashCodeExecutionToolResultErrorErrorCode>;
|
|
13
|
+
export type AnthropicBashCodeExecutionToolResultError = {
|
|
14
|
+
errorCode: AnthropicBashCodeExecutionToolResultErrorErrorCode;
|
|
15
|
+
type: "bash_code_execution_tool_result_error";
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const AnthropicBashCodeExecutionToolResultErrorErrorCode$inboundSchema: z.ZodType<AnthropicBashCodeExecutionToolResultErrorErrorCode, unknown>;
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const AnthropicBashCodeExecutionToolResultError$inboundSchema: z.ZodType<AnthropicBashCodeExecutionToolResultError, unknown>;
|
|
21
|
+
export declare function anthropicBashCodeExecutionToolResultErrorFromJSON(jsonString: string): SafeParseResult<AnthropicBashCodeExecutionToolResultError, SDKValidationError>;
|
|
22
|
+
//# sourceMappingURL=anthropicbashcodeexecutiontoolresulterror.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8028d67ee728
|
|
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 AnthropicBashCodeExecutionToolResultErrorErrorCode = {
|
|
10
|
+
InvalidToolInput: "invalid_tool_input",
|
|
11
|
+
Unavailable: "unavailable",
|
|
12
|
+
TooManyRequests: "too_many_requests",
|
|
13
|
+
ExecutionTimeExceeded: "execution_time_exceeded",
|
|
14
|
+
OutputFileTooLarge: "output_file_too_large",
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const AnthropicBashCodeExecutionToolResultErrorErrorCode$inboundSchema = openEnums.inboundSchema(AnthropicBashCodeExecutionToolResultErrorErrorCode);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const AnthropicBashCodeExecutionToolResultError$inboundSchema = z.object({
|
|
20
|
+
error_code: AnthropicBashCodeExecutionToolResultErrorErrorCode$inboundSchema,
|
|
21
|
+
type: z.literal("bash_code_execution_tool_result_error"),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"error_code": "errorCode",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export function anthropicBashCodeExecutionToolResultErrorFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => AnthropicBashCodeExecutionToolResultError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicBashCodeExecutionToolResultError' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=anthropicbashcodeexecutiontoolresulterror.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { AnthropicCodeExecution20250825Caller } from "./anthropiccodeexecution20250825caller.js";
|
|
5
|
+
import { AnthropicCodeExecution20260120Caller } from "./anthropiccodeexecution20260120caller.js";
|
|
6
|
+
import { AnthropicDirectCaller } from "./anthropicdirectcaller.js";
|
|
7
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
8
|
+
export type AnthropicCaller = AnthropicCodeExecution20250825Caller | AnthropicCodeExecution20260120Caller | AnthropicDirectCaller | discriminatedUnionTypes.Unknown<"type">;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const AnthropicCaller$inboundSchema: z.ZodType<AnthropicCaller, unknown>;
|
|
11
|
+
export declare function anthropicCallerFromJSON(jsonString: string): SafeParseResult<AnthropicCaller, SDKValidationError>;
|
|
12
|
+
//# sourceMappingURL=anthropiccaller.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: bc8afb0ba329
|
|
4
|
+
*/
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
import { discriminatedUnion } from "../types/discriminatedUnion.js";
|
|
7
|
+
import { AnthropicCodeExecution20250825Caller$inboundSchema, } from "./anthropiccodeexecution20250825caller.js";
|
|
8
|
+
import { AnthropicCodeExecution20260120Caller$inboundSchema, } from "./anthropiccodeexecution20260120caller.js";
|
|
9
|
+
import { AnthropicDirectCaller$inboundSchema, } from "./anthropicdirectcaller.js";
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const AnthropicCaller$inboundSchema = discriminatedUnion("type", {
|
|
12
|
+
code_execution_20250825: AnthropicCodeExecution20250825Caller$inboundSchema,
|
|
13
|
+
code_execution_20260120: AnthropicCodeExecution20260120Caller$inboundSchema,
|
|
14
|
+
direct: AnthropicDirectCaller$inboundSchema,
|
|
15
|
+
});
|
|
16
|
+
export function anthropicCallerFromJSON(jsonString) {
|
|
17
|
+
return safeParse(jsonString, (x) => AnthropicCaller$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicCaller' from JSON`);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=anthropiccaller.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
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 AnthropicCitationCharLocation = {
|
|
5
|
+
citedText: string;
|
|
6
|
+
documentIndex: number;
|
|
7
|
+
documentTitle: string | null;
|
|
8
|
+
endCharIndex: number;
|
|
9
|
+
fileId: string | null;
|
|
10
|
+
startCharIndex: number;
|
|
11
|
+
type: "char_location";
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const AnthropicCitationCharLocation$inboundSchema: z.ZodType<AnthropicCitationCharLocation, unknown>;
|
|
15
|
+
export declare function anthropicCitationCharLocationFromJSON(jsonString: string): SafeParseResult<AnthropicCitationCharLocation, SDKValidationError>;
|
|
16
|
+
//# sourceMappingURL=anthropiccitationcharlocation.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 49bb1c6c0a00
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const AnthropicCitationCharLocation$inboundSchema = z.object({
|
|
10
|
+
cited_text: z.string(),
|
|
11
|
+
document_index: z.int(),
|
|
12
|
+
document_title: z.nullable(z.string()),
|
|
13
|
+
end_char_index: z.int(),
|
|
14
|
+
file_id: z.nullable(z.string()),
|
|
15
|
+
start_char_index: z.int(),
|
|
16
|
+
type: z.literal("char_location"),
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
"cited_text": "citedText",
|
|
20
|
+
"document_index": "documentIndex",
|
|
21
|
+
"document_title": "documentTitle",
|
|
22
|
+
"end_char_index": "endCharIndex",
|
|
23
|
+
"file_id": "fileId",
|
|
24
|
+
"start_char_index": "startCharIndex",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export function anthropicCitationCharLocationFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => AnthropicCitationCharLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicCitationCharLocation' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=anthropiccitationcharlocation.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
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 AnthropicCitationContentBlockLocation = {
|
|
5
|
+
citedText: string;
|
|
6
|
+
documentIndex: number;
|
|
7
|
+
documentTitle: string | null;
|
|
8
|
+
endBlockIndex: number;
|
|
9
|
+
fileId: string | null;
|
|
10
|
+
startBlockIndex: number;
|
|
11
|
+
type: "content_block_location";
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const AnthropicCitationContentBlockLocation$inboundSchema: z.ZodType<AnthropicCitationContentBlockLocation, unknown>;
|
|
15
|
+
export declare function anthropicCitationContentBlockLocationFromJSON(jsonString: string): SafeParseResult<AnthropicCitationContentBlockLocation, SDKValidationError>;
|
|
16
|
+
//# sourceMappingURL=anthropiccitationcontentblocklocation.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2e23fb62209c
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const AnthropicCitationContentBlockLocation$inboundSchema = z.object({
|
|
10
|
+
cited_text: z.string(),
|
|
11
|
+
document_index: z.int(),
|
|
12
|
+
document_title: z.nullable(z.string()),
|
|
13
|
+
end_block_index: z.int(),
|
|
14
|
+
file_id: z.nullable(z.string()),
|
|
15
|
+
start_block_index: z.int(),
|
|
16
|
+
type: z.literal("content_block_location"),
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
"cited_text": "citedText",
|
|
20
|
+
"document_index": "documentIndex",
|
|
21
|
+
"document_title": "documentTitle",
|
|
22
|
+
"end_block_index": "endBlockIndex",
|
|
23
|
+
"file_id": "fileId",
|
|
24
|
+
"start_block_index": "startBlockIndex",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export function anthropicCitationContentBlockLocationFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => AnthropicCitationContentBlockLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicCitationContentBlockLocation' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=anthropiccitationcontentblocklocation.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
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 AnthropicCitationPageLocation = {
|
|
5
|
+
citedText: string;
|
|
6
|
+
documentIndex: number;
|
|
7
|
+
documentTitle: string | null;
|
|
8
|
+
endPageNumber: number;
|
|
9
|
+
fileId: string | null;
|
|
10
|
+
startPageNumber: number;
|
|
11
|
+
type: "page_location";
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const AnthropicCitationPageLocation$inboundSchema: z.ZodType<AnthropicCitationPageLocation, unknown>;
|
|
15
|
+
export declare function anthropicCitationPageLocationFromJSON(jsonString: string): SafeParseResult<AnthropicCitationPageLocation, SDKValidationError>;
|
|
16
|
+
//# sourceMappingURL=anthropiccitationpagelocation.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e9776d496704
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const AnthropicCitationPageLocation$inboundSchema = z.object({
|
|
10
|
+
cited_text: z.string(),
|
|
11
|
+
document_index: z.int(),
|
|
12
|
+
document_title: z.nullable(z.string()),
|
|
13
|
+
end_page_number: z.int(),
|
|
14
|
+
file_id: z.nullable(z.string()),
|
|
15
|
+
start_page_number: z.int(),
|
|
16
|
+
type: z.literal("page_location"),
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
"cited_text": "citedText",
|
|
20
|
+
"document_index": "documentIndex",
|
|
21
|
+
"document_title": "documentTitle",
|
|
22
|
+
"end_page_number": "endPageNumber",
|
|
23
|
+
"file_id": "fileId",
|
|
24
|
+
"start_page_number": "startPageNumber",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export function anthropicCitationPageLocationFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => AnthropicCitationPageLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicCitationPageLocation' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=anthropiccitationpagelocation.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
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 AnthropicCitationsConfig = {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const AnthropicCitationsConfig$inboundSchema: z.ZodType<AnthropicCitationsConfig, unknown>;
|
|
9
|
+
export declare function anthropicCitationsConfigFromJSON(jsonString: string): SafeParseResult<AnthropicCitationsConfig, SDKValidationError>;
|
|
10
|
+
//# sourceMappingURL=anthropiccitationsconfig.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 980808a865ed
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const AnthropicCitationsConfig$inboundSchema = z.object({
|
|
9
|
+
enabled: z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
export function anthropicCitationsConfigFromJSON(jsonString) {
|
|
12
|
+
return safeParse(jsonString, (x) => AnthropicCitationsConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicCitationsConfig' from JSON`);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=anthropiccitationsconfig.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
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 AnthropicCitationSearchResultLocation = {
|
|
5
|
+
citedText: string;
|
|
6
|
+
endBlockIndex: number;
|
|
7
|
+
searchResultIndex: number;
|
|
8
|
+
source: string;
|
|
9
|
+
startBlockIndex: number;
|
|
10
|
+
title: string | null;
|
|
11
|
+
type: "search_result_location";
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const AnthropicCitationSearchResultLocation$inboundSchema: z.ZodType<AnthropicCitationSearchResultLocation, unknown>;
|
|
15
|
+
export declare function anthropicCitationSearchResultLocationFromJSON(jsonString: string): SafeParseResult<AnthropicCitationSearchResultLocation, SDKValidationError>;
|
|
16
|
+
//# sourceMappingURL=anthropiccitationsearchresultlocation.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3e456a65667d
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const AnthropicCitationSearchResultLocation$inboundSchema = z.object({
|
|
10
|
+
cited_text: z.string(),
|
|
11
|
+
end_block_index: z.int(),
|
|
12
|
+
search_result_index: z.int(),
|
|
13
|
+
source: z.string(),
|
|
14
|
+
start_block_index: z.int(),
|
|
15
|
+
title: z.nullable(z.string()),
|
|
16
|
+
type: z.literal("search_result_location"),
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
"cited_text": "citedText",
|
|
20
|
+
"end_block_index": "endBlockIndex",
|
|
21
|
+
"search_result_index": "searchResultIndex",
|
|
22
|
+
"start_block_index": "startBlockIndex",
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
export function anthropicCitationSearchResultLocationFromJSON(jsonString) {
|
|
26
|
+
return safeParse(jsonString, (x) => AnthropicCitationSearchResultLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicCitationSearchResultLocation' from JSON`);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=anthropiccitationsearchresultlocation.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
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 AnthropicCitationWebSearchResultLocation = {
|
|
5
|
+
citedText: string;
|
|
6
|
+
encryptedIndex: string;
|
|
7
|
+
title: string | null;
|
|
8
|
+
type: "web_search_result_location";
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const AnthropicCitationWebSearchResultLocation$inboundSchema: z.ZodType<AnthropicCitationWebSearchResultLocation, unknown>;
|
|
13
|
+
export declare function anthropicCitationWebSearchResultLocationFromJSON(jsonString: string): SafeParseResult<AnthropicCitationWebSearchResultLocation, SDKValidationError>;
|
|
14
|
+
//# sourceMappingURL=anthropiccitationwebsearchresultlocation.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5c08200bb3d1
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const AnthropicCitationWebSearchResultLocation$inboundSchema = z.object({
|
|
10
|
+
cited_text: z.string(),
|
|
11
|
+
encrypted_index: z.string(),
|
|
12
|
+
title: z.nullable(z.string()),
|
|
13
|
+
type: z.literal("web_search_result_location"),
|
|
14
|
+
url: z.string(),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
"cited_text": "citedText",
|
|
18
|
+
"encrypted_index": "encryptedIndex",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function anthropicCitationWebSearchResultLocationFromJSON(jsonString) {
|
|
22
|
+
return safeParse(jsonString, (x) => AnthropicCitationWebSearchResultLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicCitationWebSearchResultLocation' from JSON`);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=anthropiccitationwebsearchresultlocation.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
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 AnthropicCodeExecution20250825Caller = {
|
|
5
|
+
toolId: string;
|
|
6
|
+
type: "code_execution_20250825";
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const AnthropicCodeExecution20250825Caller$inboundSchema: z.ZodType<AnthropicCodeExecution20250825Caller, unknown>;
|
|
10
|
+
export declare function anthropicCodeExecution20250825CallerFromJSON(jsonString: string): SafeParseResult<AnthropicCodeExecution20250825Caller, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=anthropiccodeexecution20250825caller.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1fe1afcb6365
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const AnthropicCodeExecution20250825Caller$inboundSchema = z.object({
|
|
10
|
+
tool_id: z.string(),
|
|
11
|
+
type: z.literal("code_execution_20250825"),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
"tool_id": "toolId",
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
export function anthropicCodeExecution20250825CallerFromJSON(jsonString) {
|
|
18
|
+
return safeParse(jsonString, (x) => AnthropicCodeExecution20250825Caller$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicCodeExecution20250825Caller' from JSON`);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=anthropiccodeexecution20250825caller.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
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 AnthropicCodeExecution20260120Caller = {
|
|
5
|
+
toolId: string;
|
|
6
|
+
type: "code_execution_20260120";
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const AnthropicCodeExecution20260120Caller$inboundSchema: z.ZodType<AnthropicCodeExecution20260120Caller, unknown>;
|
|
10
|
+
export declare function anthropicCodeExecution20260120CallerFromJSON(jsonString: string): SafeParseResult<AnthropicCodeExecution20260120Caller, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=anthropiccodeexecution20260120caller.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3cf51aa80659
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const AnthropicCodeExecution20260120Caller$inboundSchema = z.object({
|
|
10
|
+
tool_id: z.string(),
|
|
11
|
+
type: z.literal("code_execution_20260120"),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
"tool_id": "toolId",
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
export function anthropicCodeExecution20260120CallerFromJSON(jsonString) {
|
|
18
|
+
return safeParse(jsonString, (x) => AnthropicCodeExecution20260120Caller$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicCodeExecution20260120Caller' from JSON`);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=anthropiccodeexecution20260120caller.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { AnthropicCodeExecutionResult } from "./anthropiccodeexecutionresult.js";
|
|
5
|
+
import { AnthropicCodeExecutionToolResultError } from "./anthropiccodeexecutiontoolresulterror.js";
|
|
6
|
+
import { AnthropicEncryptedCodeExecutionResult } from "./anthropicencryptedcodeexecutionresult.js";
|
|
7
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
8
|
+
export type AnthropicCodeExecutionContent = AnthropicCodeExecutionResult | AnthropicCodeExecutionToolResultError | AnthropicEncryptedCodeExecutionResult | discriminatedUnionTypes.Unknown<"type">;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const AnthropicCodeExecutionContent$inboundSchema: z.ZodType<AnthropicCodeExecutionContent, unknown>;
|
|
11
|
+
export declare function anthropicCodeExecutionContentFromJSON(jsonString: string): SafeParseResult<AnthropicCodeExecutionContent, SDKValidationError>;
|
|
12
|
+
//# sourceMappingURL=anthropiccodeexecutioncontent.d.ts.map
|