@anthropic-ai/sdk 0.53.0 → 0.54.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 +24 -0
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/lib/BetaMessageStream.d.mts.map +1 -1
- package/lib/BetaMessageStream.d.ts.map +1 -1
- package/lib/BetaMessageStream.js +7 -1
- package/lib/BetaMessageStream.js.map +1 -1
- package/lib/BetaMessageStream.mjs +7 -1
- package/lib/BetaMessageStream.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -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 +17 -13
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +17 -13
- 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/src/internal/uploads.ts +1 -1
- package/src/lib/BetaMessageStream.ts +8 -1
- package/src/resources/beta/beta.ts +3 -1
- package/src/resources/beta/index.ts +2 -1
- package/src/resources/beta/messages/index.ts +2 -1
- package/src/resources/beta/messages/messages.ts +30 -24
- 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
|
@@ -74,6 +74,7 @@ import {
|
|
|
74
74
|
BetaRawMessageStreamEvent,
|
|
75
75
|
BetaRedactedThinkingBlock,
|
|
76
76
|
BetaRedactedThinkingBlockParam,
|
|
77
|
+
BetaRequestDocumentBlock,
|
|
77
78
|
BetaRequestMCPServerToolConfiguration,
|
|
78
79
|
BetaRequestMCPServerURLDefinition,
|
|
79
80
|
BetaRequestMCPToolResultBlockParam,
|
|
@@ -255,7 +256,6 @@ export declare namespace Beta {
|
|
|
255
256
|
export {
|
|
256
257
|
Messages as Messages,
|
|
257
258
|
type BetaBase64ImageSource as BetaBase64ImageSource,
|
|
258
|
-
type BetaBase64PDFBlock as BetaBase64PDFBlock,
|
|
259
259
|
type BetaBase64PDFSource as BetaBase64PDFSource,
|
|
260
260
|
type BetaCacheControlEphemeral as BetaCacheControlEphemeral,
|
|
261
261
|
type BetaCacheCreation as BetaCacheCreation,
|
|
@@ -311,6 +311,7 @@ export declare namespace Beta {
|
|
|
311
311
|
type BetaRawMessageStreamEvent as BetaRawMessageStreamEvent,
|
|
312
312
|
type BetaRedactedThinkingBlock as BetaRedactedThinkingBlock,
|
|
313
313
|
type BetaRedactedThinkingBlockParam as BetaRedactedThinkingBlockParam,
|
|
314
|
+
type BetaRequestDocumentBlock as BetaRequestDocumentBlock,
|
|
314
315
|
type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration,
|
|
315
316
|
type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition,
|
|
316
317
|
type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam,
|
|
@@ -360,6 +361,7 @@ export declare namespace Beta {
|
|
|
360
361
|
type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent,
|
|
361
362
|
type BetaWebSearchToolResultError as BetaWebSearchToolResultError,
|
|
362
363
|
type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode,
|
|
364
|
+
type BetaBase64PDFBlock as BetaBase64PDFBlock,
|
|
363
365
|
type MessageCreateParams as MessageCreateParams,
|
|
364
366
|
type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming,
|
|
365
367
|
type MessageCreateParamsStreaming as MessageCreateParamsStreaming,
|
|
@@ -29,7 +29,6 @@ export {
|
|
|
29
29
|
export {
|
|
30
30
|
Messages,
|
|
31
31
|
type BetaBase64ImageSource,
|
|
32
|
-
type BetaBase64PDFBlock,
|
|
33
32
|
type BetaBase64PDFSource,
|
|
34
33
|
type BetaCacheControlEphemeral,
|
|
35
34
|
type BetaCacheCreation,
|
|
@@ -85,6 +84,7 @@ export {
|
|
|
85
84
|
type BetaRawMessageStreamEvent,
|
|
86
85
|
type BetaRedactedThinkingBlock,
|
|
87
86
|
type BetaRedactedThinkingBlockParam,
|
|
87
|
+
type BetaRequestDocumentBlock,
|
|
88
88
|
type BetaRequestMCPServerToolConfiguration,
|
|
89
89
|
type BetaRequestMCPServerURLDefinition,
|
|
90
90
|
type BetaRequestMCPToolResultBlockParam,
|
|
@@ -134,6 +134,7 @@ export {
|
|
|
134
134
|
type BetaWebSearchToolResultBlockParamContent,
|
|
135
135
|
type BetaWebSearchToolResultError,
|
|
136
136
|
type BetaWebSearchToolResultErrorCode,
|
|
137
|
+
type BetaBase64PDFBlock,
|
|
137
138
|
type MessageCreateParams,
|
|
138
139
|
type MessageCreateParamsNonStreaming,
|
|
139
140
|
type MessageCreateParamsStreaming,
|
|
@@ -22,7 +22,6 @@ export {
|
|
|
22
22
|
export {
|
|
23
23
|
Messages,
|
|
24
24
|
type BetaBase64ImageSource,
|
|
25
|
-
type BetaBase64PDFBlock,
|
|
26
25
|
type BetaBase64PDFSource,
|
|
27
26
|
type BetaCacheControlEphemeral,
|
|
28
27
|
type BetaCacheCreation,
|
|
@@ -78,6 +77,7 @@ export {
|
|
|
78
77
|
type BetaRawMessageStreamEvent,
|
|
79
78
|
type BetaRedactedThinkingBlock,
|
|
80
79
|
type BetaRedactedThinkingBlockParam,
|
|
80
|
+
type BetaRequestDocumentBlock,
|
|
81
81
|
type BetaRequestMCPServerToolConfiguration,
|
|
82
82
|
type BetaRequestMCPServerURLDefinition,
|
|
83
83
|
type BetaRequestMCPToolResultBlockParam,
|
|
@@ -127,6 +127,7 @@ export {
|
|
|
127
127
|
type BetaWebSearchToolResultBlockParamContent,
|
|
128
128
|
type BetaWebSearchToolResultError,
|
|
129
129
|
type BetaWebSearchToolResultErrorCode,
|
|
130
|
+
type BetaBase64PDFBlock,
|
|
130
131
|
type MessageCreateParams,
|
|
131
132
|
type MessageCreateParamsNonStreaming,
|
|
132
133
|
type MessageCreateParamsStreaming,
|
|
@@ -157,28 +157,6 @@ export interface BetaBase64ImageSource {
|
|
|
157
157
|
type: 'base64';
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
export interface BetaBase64PDFBlock {
|
|
161
|
-
source:
|
|
162
|
-
| BetaBase64PDFSource
|
|
163
|
-
| BetaPlainTextSource
|
|
164
|
-
| BetaContentBlockSource
|
|
165
|
-
| BetaURLPDFSource
|
|
166
|
-
| BetaFileDocumentSource;
|
|
167
|
-
|
|
168
|
-
type: 'document';
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Create a cache control breakpoint at this content block.
|
|
172
|
-
*/
|
|
173
|
-
cache_control?: BetaCacheControlEphemeral | null;
|
|
174
|
-
|
|
175
|
-
citations?: BetaCitationsConfigParam;
|
|
176
|
-
|
|
177
|
-
context?: string | null;
|
|
178
|
-
|
|
179
|
-
title?: string | null;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
160
|
export interface BetaBase64PDFSource {
|
|
183
161
|
data: string;
|
|
184
162
|
|
|
@@ -504,7 +482,7 @@ export type BetaContentBlockParam =
|
|
|
504
482
|
| BetaImageBlockParam
|
|
505
483
|
| BetaToolUseBlockParam
|
|
506
484
|
| BetaToolResultBlockParam
|
|
507
|
-
|
|
|
485
|
+
| BetaRequestDocumentBlock
|
|
508
486
|
| BetaThinkingBlockParam
|
|
509
487
|
| BetaRedactedThinkingBlockParam
|
|
510
488
|
| BetaContainerUploadBlockParam;
|
|
@@ -879,6 +857,28 @@ export interface BetaRedactedThinkingBlockParam {
|
|
|
879
857
|
type: 'redacted_thinking';
|
|
880
858
|
}
|
|
881
859
|
|
|
860
|
+
export interface BetaRequestDocumentBlock {
|
|
861
|
+
source:
|
|
862
|
+
| BetaBase64PDFSource
|
|
863
|
+
| BetaPlainTextSource
|
|
864
|
+
| BetaContentBlockSource
|
|
865
|
+
| BetaURLPDFSource
|
|
866
|
+
| BetaFileDocumentSource;
|
|
867
|
+
|
|
868
|
+
type: 'document';
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Create a cache control breakpoint at this content block.
|
|
872
|
+
*/
|
|
873
|
+
cache_control?: BetaCacheControlEphemeral | null;
|
|
874
|
+
|
|
875
|
+
citations?: BetaCitationsConfigParam;
|
|
876
|
+
|
|
877
|
+
context?: string | null;
|
|
878
|
+
|
|
879
|
+
title?: string | null;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
882
|
export interface BetaRequestMCPServerToolConfiguration {
|
|
883
883
|
allowed_tools?: Array<string> | null;
|
|
884
884
|
|
|
@@ -1561,6 +1561,11 @@ export type BetaWebSearchToolResultErrorCode =
|
|
|
1561
1561
|
| 'too_many_requests'
|
|
1562
1562
|
| 'query_too_long';
|
|
1563
1563
|
|
|
1564
|
+
/**
|
|
1565
|
+
* @deprecated BetaRequestDocumentBlock should be used insated
|
|
1566
|
+
*/
|
|
1567
|
+
export type BetaBase64PDFBlock = BetaRequestDocumentBlock;
|
|
1568
|
+
|
|
1564
1569
|
export type MessageCreateParams = MessageCreateParamsNonStreaming | MessageCreateParamsStreaming;
|
|
1565
1570
|
|
|
1566
1571
|
export interface MessageCreateParamsBase {
|
|
@@ -2118,7 +2123,6 @@ Messages.Batches = Batches;
|
|
|
2118
2123
|
export declare namespace Messages {
|
|
2119
2124
|
export {
|
|
2120
2125
|
type BetaBase64ImageSource as BetaBase64ImageSource,
|
|
2121
|
-
type BetaBase64PDFBlock as BetaBase64PDFBlock,
|
|
2122
2126
|
type BetaBase64PDFSource as BetaBase64PDFSource,
|
|
2123
2127
|
type BetaCacheControlEphemeral as BetaCacheControlEphemeral,
|
|
2124
2128
|
type BetaCacheCreation as BetaCacheCreation,
|
|
@@ -2174,6 +2178,7 @@ export declare namespace Messages {
|
|
|
2174
2178
|
type BetaRawMessageStreamEvent as BetaRawMessageStreamEvent,
|
|
2175
2179
|
type BetaRedactedThinkingBlock as BetaRedactedThinkingBlock,
|
|
2176
2180
|
type BetaRedactedThinkingBlockParam as BetaRedactedThinkingBlockParam,
|
|
2181
|
+
type BetaRequestDocumentBlock as BetaRequestDocumentBlock,
|
|
2177
2182
|
type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration,
|
|
2178
2183
|
type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition,
|
|
2179
2184
|
type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam,
|
|
@@ -2223,6 +2228,7 @@ export declare namespace Messages {
|
|
|
2223
2228
|
type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent,
|
|
2224
2229
|
type BetaWebSearchToolResultError as BetaWebSearchToolResultError,
|
|
2225
2230
|
type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode,
|
|
2231
|
+
type BetaBase64PDFBlock as BetaBase64PDFBlock,
|
|
2226
2232
|
type MessageCreateParams as MessageCreateParams,
|
|
2227
2233
|
type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming,
|
|
2228
2234
|
type MessageCreateParamsStreaming as MessageCreateParamsStreaming,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.54.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.54.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.54.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.54.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|