@anthropic-ai/sdk 0.60.0 → 0.62.0
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/CHANGELOG.md +33 -0
- package/client.d.mts +2 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -1
- package/client.d.ts.map +1 -1
- package/client.js +8 -7
- package/client.js.map +1 -1
- package/client.mjs +7 -6
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +3 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +3 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/messages/index.d.mts +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +234 -58
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +234 -58
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/messages/messages.d.mts +4 -50
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +4 -50
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/shared.d.mts +1 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +10 -6
- package/src/resources/beta/beta.ts +60 -0
- package/src/resources/beta/index.ts +29 -0
- package/src/resources/beta/messages/index.ts +29 -0
- package/src/resources/beta/messages/messages.ts +412 -53
- package/src/resources/messages/messages.ts +4 -50
- package/src/resources/shared.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -30,10 +30,19 @@ export {
|
|
|
30
30
|
Messages,
|
|
31
31
|
type BetaBase64ImageSource,
|
|
32
32
|
type BetaBase64PDFSource,
|
|
33
|
+
type BetaBashCodeExecutionOutputBlock,
|
|
34
|
+
type BetaBashCodeExecutionOutputBlockParam,
|
|
35
|
+
type BetaBashCodeExecutionResultBlock,
|
|
36
|
+
type BetaBashCodeExecutionResultBlockParam,
|
|
37
|
+
type BetaBashCodeExecutionToolResultBlock,
|
|
38
|
+
type BetaBashCodeExecutionToolResultBlockParam,
|
|
39
|
+
type BetaBashCodeExecutionToolResultError,
|
|
40
|
+
type BetaBashCodeExecutionToolResultErrorParam,
|
|
33
41
|
type BetaCacheControlEphemeral,
|
|
34
42
|
type BetaCacheCreation,
|
|
35
43
|
type BetaCitationCharLocation,
|
|
36
44
|
type BetaCitationCharLocationParam,
|
|
45
|
+
type BetaCitationConfig,
|
|
37
46
|
type BetaCitationContentBlockLocation,
|
|
38
47
|
type BetaCitationContentBlockLocationParam,
|
|
39
48
|
type BetaCitationPageLocation,
|
|
@@ -49,6 +58,7 @@ export {
|
|
|
49
58
|
type BetaCodeExecutionResultBlock,
|
|
50
59
|
type BetaCodeExecutionResultBlockParam,
|
|
51
60
|
type BetaCodeExecutionTool20250522,
|
|
61
|
+
type BetaCodeExecutionTool20250825,
|
|
52
62
|
type BetaCodeExecutionToolResultBlock,
|
|
53
63
|
type BetaCodeExecutionToolResultBlockContent,
|
|
54
64
|
type BetaCodeExecutionToolResultBlockParam,
|
|
@@ -63,6 +73,7 @@ export {
|
|
|
63
73
|
type BetaContentBlockParam,
|
|
64
74
|
type BetaContentBlockSource,
|
|
65
75
|
type BetaContentBlockSourceContent,
|
|
76
|
+
type BetaDocumentBlock,
|
|
66
77
|
type BetaFileDocumentSource,
|
|
67
78
|
type BetaFileImageSource,
|
|
68
79
|
type BetaImageBlockParam,
|
|
@@ -101,6 +112,16 @@ export {
|
|
|
101
112
|
type BetaTextCitation,
|
|
102
113
|
type BetaTextCitationParam,
|
|
103
114
|
type BetaTextDelta,
|
|
115
|
+
type BetaTextEditorCodeExecutionCreateResultBlock,
|
|
116
|
+
type BetaTextEditorCodeExecutionCreateResultBlockParam,
|
|
117
|
+
type BetaTextEditorCodeExecutionStrReplaceResultBlock,
|
|
118
|
+
type BetaTextEditorCodeExecutionStrReplaceResultBlockParam,
|
|
119
|
+
type BetaTextEditorCodeExecutionToolResultBlock,
|
|
120
|
+
type BetaTextEditorCodeExecutionToolResultBlockParam,
|
|
121
|
+
type BetaTextEditorCodeExecutionToolResultError,
|
|
122
|
+
type BetaTextEditorCodeExecutionToolResultErrorParam,
|
|
123
|
+
type BetaTextEditorCodeExecutionViewResultBlock,
|
|
124
|
+
type BetaTextEditorCodeExecutionViewResultBlockParam,
|
|
104
125
|
type BetaThinkingBlock,
|
|
105
126
|
type BetaThinkingBlockParam,
|
|
106
127
|
type BetaThinkingConfigDisabled,
|
|
@@ -128,6 +149,14 @@ export {
|
|
|
128
149
|
type BetaURLImageSource,
|
|
129
150
|
type BetaURLPDFSource,
|
|
130
151
|
type BetaUsage,
|
|
152
|
+
type BetaWebFetchBlock,
|
|
153
|
+
type BetaWebFetchBlockParam,
|
|
154
|
+
type BetaWebFetchTool20250910,
|
|
155
|
+
type BetaWebFetchToolResultBlock,
|
|
156
|
+
type BetaWebFetchToolResultBlockParam,
|
|
157
|
+
type BetaWebFetchToolResultErrorBlock,
|
|
158
|
+
type BetaWebFetchToolResultErrorBlockParam,
|
|
159
|
+
type BetaWebFetchToolResultErrorCode,
|
|
131
160
|
type BetaWebSearchResultBlock,
|
|
132
161
|
type BetaWebSearchResultBlockParam,
|
|
133
162
|
type BetaWebSearchTool20250305,
|
|
@@ -23,10 +23,19 @@ export {
|
|
|
23
23
|
Messages,
|
|
24
24
|
type BetaBase64ImageSource,
|
|
25
25
|
type BetaBase64PDFSource,
|
|
26
|
+
type BetaBashCodeExecutionOutputBlock,
|
|
27
|
+
type BetaBashCodeExecutionOutputBlockParam,
|
|
28
|
+
type BetaBashCodeExecutionResultBlock,
|
|
29
|
+
type BetaBashCodeExecutionResultBlockParam,
|
|
30
|
+
type BetaBashCodeExecutionToolResultBlock,
|
|
31
|
+
type BetaBashCodeExecutionToolResultBlockParam,
|
|
32
|
+
type BetaBashCodeExecutionToolResultError,
|
|
33
|
+
type BetaBashCodeExecutionToolResultErrorParam,
|
|
26
34
|
type BetaCacheControlEphemeral,
|
|
27
35
|
type BetaCacheCreation,
|
|
28
36
|
type BetaCitationCharLocation,
|
|
29
37
|
type BetaCitationCharLocationParam,
|
|
38
|
+
type BetaCitationConfig,
|
|
30
39
|
type BetaCitationContentBlockLocation,
|
|
31
40
|
type BetaCitationContentBlockLocationParam,
|
|
32
41
|
type BetaCitationPageLocation,
|
|
@@ -42,6 +51,7 @@ export {
|
|
|
42
51
|
type BetaCodeExecutionResultBlock,
|
|
43
52
|
type BetaCodeExecutionResultBlockParam,
|
|
44
53
|
type BetaCodeExecutionTool20250522,
|
|
54
|
+
type BetaCodeExecutionTool20250825,
|
|
45
55
|
type BetaCodeExecutionToolResultBlock,
|
|
46
56
|
type BetaCodeExecutionToolResultBlockContent,
|
|
47
57
|
type BetaCodeExecutionToolResultBlockParam,
|
|
@@ -56,6 +66,7 @@ export {
|
|
|
56
66
|
type BetaContentBlockParam,
|
|
57
67
|
type BetaContentBlockSource,
|
|
58
68
|
type BetaContentBlockSourceContent,
|
|
69
|
+
type BetaDocumentBlock,
|
|
59
70
|
type BetaFileDocumentSource,
|
|
60
71
|
type BetaFileImageSource,
|
|
61
72
|
type BetaImageBlockParam,
|
|
@@ -94,6 +105,16 @@ export {
|
|
|
94
105
|
type BetaTextCitation,
|
|
95
106
|
type BetaTextCitationParam,
|
|
96
107
|
type BetaTextDelta,
|
|
108
|
+
type BetaTextEditorCodeExecutionCreateResultBlock,
|
|
109
|
+
type BetaTextEditorCodeExecutionCreateResultBlockParam,
|
|
110
|
+
type BetaTextEditorCodeExecutionStrReplaceResultBlock,
|
|
111
|
+
type BetaTextEditorCodeExecutionStrReplaceResultBlockParam,
|
|
112
|
+
type BetaTextEditorCodeExecutionToolResultBlock,
|
|
113
|
+
type BetaTextEditorCodeExecutionToolResultBlockParam,
|
|
114
|
+
type BetaTextEditorCodeExecutionToolResultError,
|
|
115
|
+
type BetaTextEditorCodeExecutionToolResultErrorParam,
|
|
116
|
+
type BetaTextEditorCodeExecutionViewResultBlock,
|
|
117
|
+
type BetaTextEditorCodeExecutionViewResultBlockParam,
|
|
97
118
|
type BetaThinkingBlock,
|
|
98
119
|
type BetaThinkingBlockParam,
|
|
99
120
|
type BetaThinkingConfigDisabled,
|
|
@@ -121,6 +142,14 @@ export {
|
|
|
121
142
|
type BetaURLImageSource,
|
|
122
143
|
type BetaURLPDFSource,
|
|
123
144
|
type BetaUsage,
|
|
145
|
+
type BetaWebFetchBlock,
|
|
146
|
+
type BetaWebFetchBlockParam,
|
|
147
|
+
type BetaWebFetchTool20250910,
|
|
148
|
+
type BetaWebFetchToolResultBlock,
|
|
149
|
+
type BetaWebFetchToolResultBlockParam,
|
|
150
|
+
type BetaWebFetchToolResultErrorBlock,
|
|
151
|
+
type BetaWebFetchToolResultErrorBlockParam,
|
|
152
|
+
type BetaWebFetchToolResultErrorCode,
|
|
124
153
|
type BetaWebSearchResultBlock,
|
|
125
154
|
type BetaWebSearchResultBlockParam,
|
|
126
155
|
type BetaWebSearchTool20250305,
|