@anthropic-ai/sdk 0.57.0 → 0.59.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +2 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +2 -2
  9. package/client.mjs.map +1 -1
  10. package/internal/constants.d.mts.map +1 -1
  11. package/internal/constants.d.ts.map +1 -1
  12. package/internal/constants.js +3 -0
  13. package/internal/constants.js.map +1 -1
  14. package/internal/constants.mjs +3 -0
  15. package/internal/constants.mjs.map +1 -1
  16. package/package.json +4 -5
  17. package/resources/beta/beta.d.mts +2 -2
  18. package/resources/beta/beta.d.mts.map +1 -1
  19. package/resources/beta/beta.d.ts +2 -2
  20. package/resources/beta/beta.d.ts.map +1 -1
  21. package/resources/beta/beta.js.map +1 -1
  22. package/resources/beta/beta.mjs.map +1 -1
  23. package/resources/beta/index.d.mts +1 -1
  24. package/resources/beta/index.d.mts.map +1 -1
  25. package/resources/beta/index.d.ts +1 -1
  26. package/resources/beta/index.d.ts.map +1 -1
  27. package/resources/beta/index.js.map +1 -1
  28. package/resources/beta/index.mjs.map +1 -1
  29. package/resources/beta/messages/index.d.mts +1 -1
  30. package/resources/beta/messages/index.d.mts.map +1 -1
  31. package/resources/beta/messages/index.d.ts +1 -1
  32. package/resources/beta/messages/index.d.ts.map +1 -1
  33. package/resources/beta/messages/index.js.map +1 -1
  34. package/resources/beta/messages/index.mjs.map +1 -1
  35. package/resources/beta/messages/messages.d.mts +24 -3
  36. package/resources/beta/messages/messages.d.mts.map +1 -1
  37. package/resources/beta/messages/messages.d.ts +24 -3
  38. package/resources/beta/messages/messages.d.ts.map +1 -1
  39. package/resources/beta/messages/messages.js.map +1 -1
  40. package/resources/beta/messages/messages.mjs.map +1 -1
  41. package/resources/index.d.mts +1 -1
  42. package/resources/index.d.mts.map +1 -1
  43. package/resources/index.d.ts +1 -1
  44. package/resources/index.d.ts.map +1 -1
  45. package/resources/index.js.map +1 -1
  46. package/resources/index.mjs.map +1 -1
  47. package/resources/messages/index.d.mts +1 -1
  48. package/resources/messages/index.d.mts.map +1 -1
  49. package/resources/messages/index.d.ts +1 -1
  50. package/resources/messages/index.d.ts.map +1 -1
  51. package/resources/messages/index.js.map +1 -1
  52. package/resources/messages/index.mjs.map +1 -1
  53. package/resources/messages/messages.d.mts +71 -38
  54. package/resources/messages/messages.d.mts.map +1 -1
  55. package/resources/messages/messages.d.ts +71 -38
  56. package/resources/messages/messages.d.ts.map +1 -1
  57. package/resources/messages/messages.js.map +1 -1
  58. package/resources/messages/messages.mjs.map +1 -1
  59. package/src/client.ts +12 -2
  60. package/src/internal/constants.ts +3 -0
  61. package/src/resources/beta/beta.ts +2 -0
  62. package/src/resources/beta/index.ts +1 -0
  63. package/src/resources/beta/messages/index.ts +1 -0
  64. package/src/resources/beta/messages/messages.ts +31 -0
  65. package/src/resources/index.ts +5 -0
  66. package/src/resources/messages/index.ts +5 -0
  67. package/src/resources/messages/messages.ts +111 -45
  68. package/src/version.ts +1 -1
  69. package/version.d.mts +1 -1
  70. package/version.d.ts +1 -1
  71. package/version.js +1 -1
  72. package/version.mjs +1 -1
package/src/client.ts CHANGED
@@ -51,9 +51,11 @@ import {
51
51
  CitationContentBlockLocationParam,
52
52
  CitationPageLocation,
53
53
  CitationPageLocationParam,
54
+ CitationSearchResultLocationParam,
54
55
  CitationWebSearchResultLocationParam,
55
56
  CitationsConfigParam,
56
57
  CitationsDelta,
58
+ CitationsSearchResultLocation,
57
59
  CitationsWebSearchResultLocation,
58
60
  ContentBlock,
59
61
  ContentBlockDeltaEvent,
@@ -93,6 +95,7 @@ import {
93
95
  RawMessageStreamEvent,
94
96
  RedactedThinkingBlock,
95
97
  RedactedThinkingBlockParam,
98
+ SearchResultBlockParam,
96
99
  ServerToolUsage,
97
100
  ServerToolUseBlock,
98
101
  ServerToolUseBlockParam,
@@ -118,6 +121,8 @@ import {
118
121
  ToolChoiceTool,
119
122
  ToolResultBlockParam,
120
123
  ToolTextEditor20250124,
124
+ ToolTextEditor20250429,
125
+ ToolTextEditor20250728,
121
126
  ToolUnion,
122
127
  ToolUseBlock,
123
128
  ToolUseBlockParam,
@@ -441,7 +446,7 @@ export class BaseAnthropic {
441
446
  const expectedTimeout = (60 * 60 * maxTokens) / 128_000;
442
447
  if (expectedTimeout > defaultTimeout) {
443
448
  throw new Errors.AnthropicError(
444
- 'Streaming is strongly recommended for operations that may take longer than 10 minutes. ' +
449
+ 'Streaming is required for operations that may take longer than 10 minutes. ' +
445
450
  'See https://github.com/anthropics/anthropic-sdk-typescript#streaming-responses for more details',
446
451
  );
447
452
  }
@@ -802,7 +807,7 @@ export class BaseAnthropic {
802
807
  const expectedTime = (maxTime * maxTokens) / 128000;
803
808
  if (expectedTime > defaultTime || (maxNonstreamingTokens != null && maxTokens > maxNonstreamingTokens)) {
804
809
  throw new Errors.AnthropicError(
805
- 'Streaming is strongly recommended for operations that may token longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#long-requests for more details',
810
+ 'Streaming is required for operations that may take longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#long-requests for more details',
806
811
  );
807
812
  }
808
813
 
@@ -974,9 +979,11 @@ export declare namespace Anthropic {
974
979
  type CitationContentBlockLocationParam as CitationContentBlockLocationParam,
975
980
  type CitationPageLocation as CitationPageLocation,
976
981
  type CitationPageLocationParam as CitationPageLocationParam,
982
+ type CitationSearchResultLocationParam as CitationSearchResultLocationParam,
977
983
  type CitationWebSearchResultLocationParam as CitationWebSearchResultLocationParam,
978
984
  type CitationsConfigParam as CitationsConfigParam,
979
985
  type CitationsDelta as CitationsDelta,
986
+ type CitationsSearchResultLocation as CitationsSearchResultLocation,
980
987
  type CitationsWebSearchResultLocation as CitationsWebSearchResultLocation,
981
988
  type ContentBlock as ContentBlock,
982
989
  type ContentBlockDeltaEvent as ContentBlockDeltaEvent,
@@ -1010,6 +1017,7 @@ export declare namespace Anthropic {
1010
1017
  type RawMessageStreamEvent as RawMessageStreamEvent,
1011
1018
  type RedactedThinkingBlock as RedactedThinkingBlock,
1012
1019
  type RedactedThinkingBlockParam as RedactedThinkingBlockParam,
1020
+ type SearchResultBlockParam as SearchResultBlockParam,
1013
1021
  type ServerToolUsage as ServerToolUsage,
1014
1022
  type ServerToolUseBlock as ServerToolUseBlock,
1015
1023
  type ServerToolUseBlockParam as ServerToolUseBlockParam,
@@ -1035,6 +1043,8 @@ export declare namespace Anthropic {
1035
1043
  type ToolChoiceTool as ToolChoiceTool,
1036
1044
  type ToolResultBlockParam as ToolResultBlockParam,
1037
1045
  type ToolTextEditor20250124 as ToolTextEditor20250124,
1046
+ type ToolTextEditor20250429 as ToolTextEditor20250429,
1047
+ type ToolTextEditor20250728 as ToolTextEditor20250728,
1038
1048
  type ToolUnion as ToolUnion,
1039
1049
  type ToolUseBlock as ToolUseBlock,
1040
1050
  type ToolUseBlockParam as ToolUseBlockParam,
@@ -9,4 +9,7 @@ export const MODEL_NONSTREAMING_TOKENS: Record<string, number> = {
9
9
  'claude-4-opus-20250514': 8192,
10
10
  'anthropic.claude-opus-4-20250514-v1:0': 8192,
11
11
  'claude-opus-4@20250514': 8192,
12
+ 'claude-opus-4-1-20250805': 8192,
13
+ 'anthropic.claude-opus-4-1-20250805-v1:0': 8192,
14
+ 'claude-opus-4-1@20250805': 8192,
12
15
  };
@@ -111,6 +111,7 @@ import {
111
111
  BetaToolTextEditor20241022,
112
112
  BetaToolTextEditor20250124,
113
113
  BetaToolTextEditor20250429,
114
+ BetaToolTextEditor20250728,
114
115
  BetaToolUnion,
115
116
  BetaToolUseBlock,
116
117
  BetaToolUseBlockParam,
@@ -351,6 +352,7 @@ export declare namespace Beta {
351
352
  type BetaToolTextEditor20241022 as BetaToolTextEditor20241022,
352
353
  type BetaToolTextEditor20250124 as BetaToolTextEditor20250124,
353
354
  type BetaToolTextEditor20250429 as BetaToolTextEditor20250429,
355
+ type BetaToolTextEditor20250728 as BetaToolTextEditor20250728,
354
356
  type BetaToolUnion as BetaToolUnion,
355
357
  type BetaToolUseBlock as BetaToolUseBlock,
356
358
  type BetaToolUseBlockParam as BetaToolUseBlockParam,
@@ -121,6 +121,7 @@ export {
121
121
  type BetaToolTextEditor20241022,
122
122
  type BetaToolTextEditor20250124,
123
123
  type BetaToolTextEditor20250429,
124
+ type BetaToolTextEditor20250728,
124
125
  type BetaToolUnion,
125
126
  type BetaToolUseBlock,
126
127
  type BetaToolUseBlockParam,
@@ -114,6 +114,7 @@ export {
114
114
  type BetaToolTextEditor20241022,
115
115
  type BetaToolTextEditor20250124,
116
116
  type BetaToolTextEditor20250429,
117
+ type BetaToolTextEditor20250728,
117
118
  type BetaToolUnion,
118
119
  type BetaToolUseBlock,
119
120
  type BetaToolUseBlockParam,
@@ -203,6 +203,8 @@ export interface BetaCitationCharLocation {
203
203
 
204
204
  end_char_index: number;
205
205
 
206
+ file_id: string | null;
207
+
206
208
  start_char_index: number;
207
209
 
208
210
  type: 'char_location';
@@ -231,6 +233,8 @@ export interface BetaCitationContentBlockLocation {
231
233
 
232
234
  end_block_index: number;
233
235
 
236
+ file_id: string | null;
237
+
234
238
  start_block_index: number;
235
239
 
236
240
  type: 'content_block_location';
@@ -259,6 +263,8 @@ export interface BetaCitationPageLocation {
259
263
 
260
264
  end_page_number: number;
261
265
 
266
+ file_id: string | null;
267
+
262
268
  start_page_number: number;
263
269
 
264
270
  type: 'page_location';
@@ -1390,6 +1396,28 @@ export interface BetaToolTextEditor20250429 {
1390
1396
  cache_control?: BetaCacheControlEphemeral | null;
1391
1397
  }
1392
1398
 
1399
+ export interface BetaToolTextEditor20250728 {
1400
+ /**
1401
+ * Name of the tool.
1402
+ *
1403
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1404
+ */
1405
+ name: 'str_replace_based_edit_tool';
1406
+
1407
+ type: 'text_editor_20250728';
1408
+
1409
+ /**
1410
+ * Create a cache control breakpoint at this content block.
1411
+ */
1412
+ cache_control?: BetaCacheControlEphemeral | null;
1413
+
1414
+ /**
1415
+ * Maximum number of characters to display when viewing a file. If not specified,
1416
+ * defaults to displaying the full file.
1417
+ */
1418
+ max_characters?: number | null;
1419
+ }
1420
+
1393
1421
  export type BetaToolUnion =
1394
1422
  | BetaTool
1395
1423
  | BetaToolBash20241022
@@ -1400,6 +1428,7 @@ export type BetaToolUnion =
1400
1428
  | BetaToolTextEditor20241022
1401
1429
  | BetaToolTextEditor20250124
1402
1430
  | BetaToolTextEditor20250429
1431
+ | BetaToolTextEditor20250728
1403
1432
  | BetaWebSearchTool20250305;
1404
1433
 
1405
1434
  export interface BetaToolUseBlock {
@@ -2179,6 +2208,7 @@ export interface MessageCountTokensParams {
2179
2208
  | BetaToolTextEditor20241022
2180
2209
  | BetaToolTextEditor20250124
2181
2210
  | BetaToolTextEditor20250429
2211
+ | BetaToolTextEditor20250728
2182
2212
  | BetaWebSearchTool20250305
2183
2213
  >;
2184
2214
 
@@ -2285,6 +2315,7 @@ export declare namespace Messages {
2285
2315
  type BetaToolTextEditor20241022 as BetaToolTextEditor20241022,
2286
2316
  type BetaToolTextEditor20250124 as BetaToolTextEditor20250124,
2287
2317
  type BetaToolTextEditor20250429 as BetaToolTextEditor20250429,
2318
+ type BetaToolTextEditor20250728 as BetaToolTextEditor20250728,
2288
2319
  type BetaToolUnion as BetaToolUnion,
2289
2320
  type BetaToolUseBlock as BetaToolUseBlock,
2290
2321
  type BetaToolUseBlockParam as BetaToolUseBlockParam,
@@ -34,9 +34,11 @@ export {
34
34
  type CitationContentBlockLocationParam,
35
35
  type CitationPageLocation,
36
36
  type CitationPageLocationParam,
37
+ type CitationSearchResultLocationParam,
37
38
  type CitationWebSearchResultLocationParam,
38
39
  type CitationsConfigParam,
39
40
  type CitationsDelta,
41
+ type CitationsSearchResultLocation,
40
42
  type CitationsWebSearchResultLocation,
41
43
  type ContentBlock,
42
44
  type ContentBlockParam,
@@ -67,6 +69,7 @@ export {
67
69
  type RawMessageStreamEvent,
68
70
  type RedactedThinkingBlock,
69
71
  type RedactedThinkingBlockParam,
72
+ type SearchResultBlockParam,
70
73
  type ServerToolUsage,
71
74
  type ServerToolUseBlock,
72
75
  type ServerToolUseBlockParam,
@@ -92,6 +95,8 @@ export {
92
95
  type ToolChoiceTool,
93
96
  type ToolResultBlockParam,
94
97
  type ToolTextEditor20250124,
98
+ type ToolTextEditor20250429,
99
+ type ToolTextEditor20250728,
95
100
  type ToolUnion,
96
101
  type ToolUseBlock,
97
102
  type ToolUseBlockParam,
@@ -26,9 +26,11 @@ export {
26
26
  type CitationContentBlockLocationParam,
27
27
  type CitationPageLocation,
28
28
  type CitationPageLocationParam,
29
+ type CitationSearchResultLocationParam,
29
30
  type CitationWebSearchResultLocationParam,
30
31
  type CitationsConfigParam,
31
32
  type CitationsDelta,
33
+ type CitationsSearchResultLocation,
32
34
  type CitationsWebSearchResultLocation,
33
35
  type ContentBlock,
34
36
  type ContentBlockParam,
@@ -58,6 +60,7 @@ export {
58
60
  type RawMessageStreamEvent,
59
61
  type RedactedThinkingBlock,
60
62
  type RedactedThinkingBlockParam,
63
+ type SearchResultBlockParam,
61
64
  type ServerToolUsage,
62
65
  type ServerToolUseBlock,
63
66
  type ServerToolUseBlockParam,
@@ -83,6 +86,8 @@ export {
83
86
  type ToolChoiceTool,
84
87
  type ToolResultBlockParam,
85
88
  type ToolTextEditor20250124,
89
+ type ToolTextEditor20250429,
90
+ type ToolTextEditor20250728,
86
91
  type ToolUnion,
87
92
  type ToolUseBlock,
88
93
  type ToolUseBlockParam,
@@ -138,6 +138,8 @@ export interface CitationCharLocation {
138
138
 
139
139
  end_char_index: number;
140
140
 
141
+ file_id: string | null;
142
+
141
143
  start_char_index: number;
142
144
 
143
145
  type: 'char_location';
@@ -166,6 +168,8 @@ export interface CitationContentBlockLocation {
166
168
 
167
169
  end_block_index: number;
168
170
 
171
+ file_id: string | null;
172
+
169
173
  start_block_index: number;
170
174
 
171
175
  type: 'content_block_location';
@@ -194,6 +198,8 @@ export interface CitationPageLocation {
194
198
 
195
199
  end_page_number: number;
196
200
 
201
+ file_id: string | null;
202
+
197
203
  start_page_number: number;
198
204
 
199
205
  type: 'page_location';
@@ -213,6 +219,22 @@ export interface CitationPageLocationParam {
213
219
  type: 'page_location';
214
220
  }
215
221
 
222
+ export interface CitationSearchResultLocationParam {
223
+ cited_text: string;
224
+
225
+ end_block_index: number;
226
+
227
+ search_result_index: number;
228
+
229
+ source: string;
230
+
231
+ start_block_index: number;
232
+
233
+ title: string | null;
234
+
235
+ type: 'search_result_location';
236
+ }
237
+
216
238
  export interface CitationWebSearchResultLocationParam {
217
239
  cited_text: string;
218
240
 
@@ -234,11 +256,28 @@ export interface CitationsDelta {
234
256
  | CitationCharLocation
235
257
  | CitationPageLocation
236
258
  | CitationContentBlockLocation
237
- | CitationsWebSearchResultLocation;
259
+ | CitationsWebSearchResultLocation
260
+ | CitationsSearchResultLocation;
238
261
 
239
262
  type: 'citations_delta';
240
263
  }
241
264
 
265
+ export interface CitationsSearchResultLocation {
266
+ cited_text: string;
267
+
268
+ end_block_index: number;
269
+
270
+ search_result_index: number;
271
+
272
+ source: string;
273
+
274
+ start_block_index: number;
275
+
276
+ title: string | null;
277
+
278
+ type: 'search_result_location';
279
+ }
280
+
242
281
  export interface CitationsWebSearchResultLocation {
243
282
  cited_text: string;
244
283
 
@@ -266,6 +305,7 @@ export type ContentBlockParam =
266
305
  | TextBlockParam
267
306
  | ImageBlockParam
268
307
  | DocumentBlockParam
308
+ | SearchResultBlockParam
269
309
  | ThinkingBlockParam
270
310
  | RedactedThinkingBlockParam
271
311
  | ToolUseBlockParam
@@ -431,27 +471,10 @@ export type MessageCountTokensTool =
431
471
  | Tool
432
472
  | ToolBash20250124
433
473
  | ToolTextEditor20250124
434
- | MessageCountTokensTool.TextEditor20250429
474
+ | ToolTextEditor20250429
475
+ | ToolTextEditor20250728
435
476
  | WebSearchTool20250305;
436
477
 
437
- export namespace MessageCountTokensTool {
438
- export interface TextEditor20250429 {
439
- /**
440
- * Name of the tool.
441
- *
442
- * This is how the tool will be called by the model and in `tool_use` blocks.
443
- */
444
- name: 'str_replace_based_edit_tool';
445
-
446
- type: 'text_editor_20250429';
447
-
448
- /**
449
- * Create a cache control breakpoint at this content block.
450
- */
451
- cache_control?: MessagesAPI.CacheControlEphemeral | null;
452
- }
453
- }
454
-
455
478
  export interface MessageDeltaUsage {
456
479
  /**
457
480
  * The cumulative number of input tokens used to create the cache entry.
@@ -523,12 +546,10 @@ export type Model =
523
546
  | 'claude-opus-4-0'
524
547
  | 'claude-opus-4-20250514'
525
548
  | 'claude-4-opus-20250514'
549
+ | 'claude-opus-4-1-20250805'
526
550
  | 'claude-3-opus-latest'
527
551
  | 'claude-3-opus-20240229'
528
- | 'claude-3-sonnet-20240229'
529
552
  | 'claude-3-haiku-20240307'
530
- | 'claude-2.1'
531
- | 'claude-2.0'
532
553
  | (string & {});
533
554
 
534
555
  const DEPRECATED_MODELS: {
@@ -651,6 +672,23 @@ export interface RedactedThinkingBlockParam {
651
672
  type: 'redacted_thinking';
652
673
  }
653
674
 
675
+ export interface SearchResultBlockParam {
676
+ content: Array<TextBlockParam>;
677
+
678
+ source: string;
679
+
680
+ title: string;
681
+
682
+ type: 'search_result';
683
+
684
+ /**
685
+ * Create a cache control breakpoint at this content block.
686
+ */
687
+ cache_control?: CacheControlEphemeral | null;
688
+
689
+ citations?: CitationsConfigParam;
690
+ }
691
+
654
692
  export interface ServerToolUsage {
655
693
  /**
656
694
  * The number of web search tool requests.
@@ -723,13 +761,15 @@ export type TextCitation =
723
761
  | CitationCharLocation
724
762
  | CitationPageLocation
725
763
  | CitationContentBlockLocation
726
- | CitationsWebSearchResultLocation;
764
+ | CitationsWebSearchResultLocation
765
+ | CitationsSearchResultLocation;
727
766
 
728
767
  export type TextCitationParam =
729
768
  | CitationCharLocationParam
730
769
  | CitationPageLocationParam
731
770
  | CitationContentBlockLocationParam
732
- | CitationWebSearchResultLocationParam;
771
+ | CitationWebSearchResultLocationParam
772
+ | CitationSearchResultLocationParam;
733
773
 
734
774
  export interface TextDelta {
735
775
  text: string;
@@ -934,7 +974,7 @@ export interface ToolResultBlockParam {
934
974
  */
935
975
  cache_control?: CacheControlEphemeral | null;
936
976
 
937
- content?: string | Array<TextBlockParam | ImageBlockParam>;
977
+ content?: string | Array<TextBlockParam | ImageBlockParam | SearchResultBlockParam>;
938
978
 
939
979
  is_error?: boolean;
940
980
  }
@@ -955,31 +995,52 @@ export interface ToolTextEditor20250124 {
955
995
  cache_control?: CacheControlEphemeral | null;
956
996
  }
957
997
 
998
+ export interface ToolTextEditor20250429 {
999
+ /**
1000
+ * Name of the tool.
1001
+ *
1002
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1003
+ */
1004
+ name: 'str_replace_based_edit_tool';
1005
+
1006
+ type: 'text_editor_20250429';
1007
+
1008
+ /**
1009
+ * Create a cache control breakpoint at this content block.
1010
+ */
1011
+ cache_control?: CacheControlEphemeral | null;
1012
+ }
1013
+
1014
+ export interface ToolTextEditor20250728 {
1015
+ /**
1016
+ * Name of the tool.
1017
+ *
1018
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1019
+ */
1020
+ name: 'str_replace_based_edit_tool';
1021
+
1022
+ type: 'text_editor_20250728';
1023
+
1024
+ /**
1025
+ * Create a cache control breakpoint at this content block.
1026
+ */
1027
+ cache_control?: CacheControlEphemeral | null;
1028
+
1029
+ /**
1030
+ * Maximum number of characters to display when viewing a file. If not specified,
1031
+ * defaults to displaying the full file.
1032
+ */
1033
+ max_characters?: number | null;
1034
+ }
1035
+
958
1036
  export type ToolUnion =
959
1037
  | Tool
960
1038
  | ToolBash20250124
961
1039
  | ToolTextEditor20250124
962
- | ToolUnion.TextEditor20250429
1040
+ | ToolTextEditor20250429
1041
+ | ToolTextEditor20250728
963
1042
  | WebSearchTool20250305;
964
1043
 
965
- export namespace ToolUnion {
966
- export interface TextEditor20250429 {
967
- /**
968
- * Name of the tool.
969
- *
970
- * This is how the tool will be called by the model and in `tool_use` blocks.
971
- */
972
- name: 'str_replace_based_edit_tool';
973
-
974
- type: 'text_editor_20250429';
975
-
976
- /**
977
- * Create a cache control breakpoint at this content block.
978
- */
979
- cache_control?: MessagesAPI.CacheControlEphemeral | null;
980
- }
981
- }
982
-
983
1044
  export interface ToolUseBlock {
984
1045
  id: string;
985
1046
 
@@ -1747,9 +1808,11 @@ export declare namespace Messages {
1747
1808
  type CitationContentBlockLocationParam as CitationContentBlockLocationParam,
1748
1809
  type CitationPageLocation as CitationPageLocation,
1749
1810
  type CitationPageLocationParam as CitationPageLocationParam,
1811
+ type CitationSearchResultLocationParam as CitationSearchResultLocationParam,
1750
1812
  type CitationWebSearchResultLocationParam as CitationWebSearchResultLocationParam,
1751
1813
  type CitationsConfigParam as CitationsConfigParam,
1752
1814
  type CitationsDelta as CitationsDelta,
1815
+ type CitationsSearchResultLocation as CitationsSearchResultLocation,
1753
1816
  type CitationsWebSearchResultLocation as CitationsWebSearchResultLocation,
1754
1817
  type ContentBlock as ContentBlock,
1755
1818
  type ContentBlockParam as ContentBlockParam,
@@ -1779,6 +1842,7 @@ export declare namespace Messages {
1779
1842
  type RawMessageStreamEvent as RawMessageStreamEvent,
1780
1843
  type RedactedThinkingBlock as RedactedThinkingBlock,
1781
1844
  type RedactedThinkingBlockParam as RedactedThinkingBlockParam,
1845
+ type SearchResultBlockParam as SearchResultBlockParam,
1782
1846
  type ServerToolUsage as ServerToolUsage,
1783
1847
  type ServerToolUseBlock as ServerToolUseBlock,
1784
1848
  type ServerToolUseBlockParam as ServerToolUseBlockParam,
@@ -1804,6 +1868,8 @@ export declare namespace Messages {
1804
1868
  type ToolChoiceTool as ToolChoiceTool,
1805
1869
  type ToolResultBlockParam as ToolResultBlockParam,
1806
1870
  type ToolTextEditor20250124 as ToolTextEditor20250124,
1871
+ type ToolTextEditor20250429 as ToolTextEditor20250429,
1872
+ type ToolTextEditor20250728 as ToolTextEditor20250728,
1807
1873
  type ToolUnion as ToolUnion,
1808
1874
  type ToolUseBlock as ToolUseBlock,
1809
1875
  type ToolUseBlockParam as ToolUseBlockParam,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.57.0'; // x-release-please-version
1
+ export const VERSION = '0.59.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.57.0";
1
+ export declare const VERSION = "0.59.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.57.0";
1
+ export declare const VERSION = "0.59.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.57.0'; // x-release-please-version
4
+ exports.VERSION = '0.59.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.57.0'; // x-release-please-version
1
+ export const VERSION = '0.59.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map