@anthropic-ai/sdk 0.65.0 → 0.67.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 (124) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/bin/cli +12 -5
  3. package/bin/migration-config.json +76 -1
  4. package/client.d.mts +5 -1
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +5 -1
  7. package/client.d.ts.map +1 -1
  8. package/client.js.map +1 -1
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +42 -0
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +42 -0
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +63 -1
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +60 -0
  17. package/core/pagination.mjs.map +1 -1
  18. package/internal/to-file.d.mts +1 -1
  19. package/internal/to-file.d.ts +1 -1
  20. package/internal/to-file.js +1 -1
  21. package/internal/to-file.mjs +1 -1
  22. package/lib/tools/BetaToolRunner.d.mts.map +1 -1
  23. package/lib/tools/BetaToolRunner.d.ts.map +1 -1
  24. package/lib/tools/BetaToolRunner.js +3 -0
  25. package/lib/tools/BetaToolRunner.js.map +1 -1
  26. package/lib/tools/BetaToolRunner.mjs +3 -0
  27. package/lib/tools/BetaToolRunner.mjs.map +1 -1
  28. package/lib/tools/ToolRunner.d.mts.map +1 -1
  29. package/lib/tools/ToolRunner.d.ts.map +1 -1
  30. package/lib/tools/ToolRunner.js +3 -0
  31. package/lib/tools/ToolRunner.js.map +1 -1
  32. package/lib/tools/ToolRunner.mjs +3 -0
  33. package/lib/tools/ToolRunner.mjs.map +1 -1
  34. package/package.json +1 -1
  35. package/resources/beta/beta.d.mts +7 -3
  36. package/resources/beta/beta.d.mts.map +1 -1
  37. package/resources/beta/beta.d.ts +7 -3
  38. package/resources/beta/beta.d.ts.map +1 -1
  39. package/resources/beta/beta.js +4 -0
  40. package/resources/beta/beta.js.map +1 -1
  41. package/resources/beta/beta.mjs +4 -0
  42. package/resources/beta/beta.mjs.map +1 -1
  43. package/resources/beta/index.d.mts +2 -1
  44. package/resources/beta/index.d.mts.map +1 -1
  45. package/resources/beta/index.d.ts +2 -1
  46. package/resources/beta/index.d.ts.map +1 -1
  47. package/resources/beta/index.js +3 -1
  48. package/resources/beta/index.js.map +1 -1
  49. package/resources/beta/index.mjs +1 -0
  50. package/resources/beta/index.mjs.map +1 -1
  51. package/resources/beta/messages/index.d.mts +1 -1
  52. package/resources/beta/messages/index.d.mts.map +1 -1
  53. package/resources/beta/messages/index.d.ts +1 -1
  54. package/resources/beta/messages/index.d.ts.map +1 -1
  55. package/resources/beta/messages/index.js.map +1 -1
  56. package/resources/beta/messages/index.mjs.map +1 -1
  57. package/resources/beta/messages/messages.d.mts +90 -43
  58. package/resources/beta/messages/messages.d.mts.map +1 -1
  59. package/resources/beta/messages/messages.d.ts +90 -43
  60. package/resources/beta/messages/messages.d.ts.map +1 -1
  61. package/resources/beta/messages/messages.js.map +1 -1
  62. package/resources/beta/messages/messages.mjs.map +1 -1
  63. package/resources/beta/skills/index.d.mts +3 -0
  64. package/resources/beta/skills/index.d.mts.map +1 -0
  65. package/resources/beta/skills/index.d.ts +3 -0
  66. package/resources/beta/skills/index.d.ts.map +1 -0
  67. package/resources/beta/skills/index.js +9 -0
  68. package/resources/beta/skills/index.js.map +1 -0
  69. package/resources/beta/skills/index.mjs +4 -0
  70. package/resources/beta/skills/index.mjs.map +1 -0
  71. package/resources/beta/skills/skills.d.mts +249 -0
  72. package/resources/beta/skills/skills.d.mts.map +1 -0
  73. package/resources/beta/skills/skills.d.ts +249 -0
  74. package/resources/beta/skills/skills.d.ts.map +1 -0
  75. package/resources/beta/skills/skills.js +98 -0
  76. package/resources/beta/skills/skills.js.map +1 -0
  77. package/resources/beta/skills/skills.mjs +93 -0
  78. package/resources/beta/skills/skills.mjs.map +1 -0
  79. package/resources/beta/skills/versions.d.mts +257 -0
  80. package/resources/beta/skills/versions.d.mts.map +1 -0
  81. package/resources/beta/skills/versions.d.ts +257 -0
  82. package/resources/beta/skills/versions.d.ts.map +1 -0
  83. package/resources/beta/skills/versions.js +100 -0
  84. package/resources/beta/skills/versions.js.map +1 -0
  85. package/resources/beta/skills/versions.mjs +96 -0
  86. package/resources/beta/skills/versions.mjs.map +1 -0
  87. package/resources/beta/skills.d.mts +2 -0
  88. package/resources/beta/skills.d.mts.map +1 -0
  89. package/resources/beta/skills.d.ts +2 -0
  90. package/resources/beta/skills.d.ts.map +1 -0
  91. package/resources/beta/skills.js +6 -0
  92. package/resources/beta/skills.js.map +1 -0
  93. package/resources/beta/skills.mjs +3 -0
  94. package/resources/beta/skills.mjs.map +1 -0
  95. package/resources/completions.d.mts +8 -9
  96. package/resources/completions.d.mts.map +1 -1
  97. package/resources/completions.d.ts +8 -9
  98. package/resources/completions.d.ts.map +1 -1
  99. package/resources/messages/messages.d.mts +27 -30
  100. package/resources/messages/messages.d.mts.map +1 -1
  101. package/resources/messages/messages.d.ts +27 -30
  102. package/resources/messages/messages.d.ts.map +1 -1
  103. package/resources/messages/messages.js.map +1 -1
  104. package/resources/messages/messages.mjs.map +1 -1
  105. package/src/client.ts +14 -1
  106. package/src/core/pagination.ts +130 -0
  107. package/src/internal/to-file.ts +1 -1
  108. package/src/lib/tools/BetaToolRunner.ts +3 -0
  109. package/src/lib/tools/ToolRunner.ts +3 -0
  110. package/src/resources/beta/beta.ts +38 -1
  111. package/src/resources/beta/index.ts +15 -0
  112. package/src/resources/beta/messages/index.ts +3 -0
  113. package/src/resources/beta/messages/messages.ts +101 -42
  114. package/src/resources/beta/skills/index.ts +26 -0
  115. package/src/resources/beta/skills/skills.ts +383 -0
  116. package/src/resources/beta/skills/versions.ts +374 -0
  117. package/src/resources/beta/skills.ts +3 -0
  118. package/src/resources/completions.ts +8 -9
  119. package/src/resources/messages/messages.ts +28 -36
  120. package/src/version.ts +1 -1
  121. package/version.d.mts +1 -1
  122. package/version.d.ts +1 -1
  123. package/version.js +1 -1
  124. package/version.mjs +1 -1
@@ -0,0 +1,374 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as BetaAPI from '../beta';
5
+ import { APIPromise } from '../../../core/api-promise';
6
+ import { PageCursor, type PageCursorParams, PagePromise } from '../../../core/pagination';
7
+ import { type Uploadable } from '../../../core/uploads';
8
+ import { buildHeaders } from '../../../internal/headers';
9
+ import { RequestOptions } from '../../../internal/request-options';
10
+ import { multipartFormRequestOptions } from '../../../internal/uploads';
11
+ import { path } from '../../../internal/utils/path';
12
+
13
+ export class Versions extends APIResource {
14
+ /**
15
+ * Create Skill Version
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const version = await client.beta.skills.versions.create(
20
+ * 'skill_id',
21
+ * );
22
+ * ```
23
+ */
24
+ create(
25
+ skillID: string,
26
+ params: VersionCreateParams | null | undefined = {},
27
+ options?: RequestOptions,
28
+ ): APIPromise<VersionCreateResponse> {
29
+ const { betas, ...body } = params ?? {};
30
+ return this._client.post(
31
+ path`/v1/skills/${skillID}/versions?beta=true`,
32
+ multipartFormRequestOptions(
33
+ {
34
+ body,
35
+ ...options,
36
+ headers: buildHeaders([
37
+ { 'anthropic-beta': [...(betas ?? []), 'skills-2025-10-02'].toString() },
38
+ options?.headers,
39
+ ]),
40
+ },
41
+ this._client,
42
+ ),
43
+ );
44
+ }
45
+
46
+ /**
47
+ * Get Skill Version
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * const version = await client.beta.skills.versions.retrieve(
52
+ * 'version',
53
+ * { skill_id: 'skill_id' },
54
+ * );
55
+ * ```
56
+ */
57
+ retrieve(
58
+ version: string,
59
+ params: VersionRetrieveParams,
60
+ options?: RequestOptions,
61
+ ): APIPromise<VersionRetrieveResponse> {
62
+ const { skill_id, betas } = params;
63
+ return this._client.get(path`/v1/skills/${skill_id}/versions/${version}?beta=true`, {
64
+ ...options,
65
+ headers: buildHeaders([
66
+ { 'anthropic-beta': [...(betas ?? []), 'skills-2025-10-02'].toString() },
67
+ options?.headers,
68
+ ]),
69
+ });
70
+ }
71
+
72
+ /**
73
+ * List Skill Versions
74
+ *
75
+ * @example
76
+ * ```ts
77
+ * // Automatically fetches more pages as needed.
78
+ * for await (const versionListResponse of client.beta.skills.versions.list(
79
+ * 'skill_id',
80
+ * )) {
81
+ * // ...
82
+ * }
83
+ * ```
84
+ */
85
+ list(
86
+ skillID: string,
87
+ params: VersionListParams | null | undefined = {},
88
+ options?: RequestOptions,
89
+ ): PagePromise<VersionListResponsesPageCursor, VersionListResponse> {
90
+ const { betas, ...query } = params ?? {};
91
+ return this._client.getAPIList(
92
+ path`/v1/skills/${skillID}/versions?beta=true`,
93
+ PageCursor<VersionListResponse>,
94
+ {
95
+ query,
96
+ ...options,
97
+ headers: buildHeaders([
98
+ { 'anthropic-beta': [...(betas ?? []), 'skills-2025-10-02'].toString() },
99
+ options?.headers,
100
+ ]),
101
+ },
102
+ );
103
+ }
104
+
105
+ /**
106
+ * Delete Skill Version
107
+ *
108
+ * @example
109
+ * ```ts
110
+ * const version = await client.beta.skills.versions.delete(
111
+ * 'version',
112
+ * { skill_id: 'skill_id' },
113
+ * );
114
+ * ```
115
+ */
116
+ delete(
117
+ version: string,
118
+ params: VersionDeleteParams,
119
+ options?: RequestOptions,
120
+ ): APIPromise<VersionDeleteResponse> {
121
+ const { skill_id, betas } = params;
122
+ return this._client.delete(path`/v1/skills/${skill_id}/versions/${version}?beta=true`, {
123
+ ...options,
124
+ headers: buildHeaders([
125
+ { 'anthropic-beta': [...(betas ?? []), 'skills-2025-10-02'].toString() },
126
+ options?.headers,
127
+ ]),
128
+ });
129
+ }
130
+ }
131
+
132
+ export type VersionListResponsesPageCursor = PageCursor<VersionListResponse>;
133
+
134
+ export interface VersionCreateResponse {
135
+ /**
136
+ * Unique identifier for the skill version.
137
+ *
138
+ * The format and length of IDs may change over time.
139
+ */
140
+ id: string;
141
+
142
+ /**
143
+ * ISO 8601 timestamp of when the skill version was created.
144
+ */
145
+ created_at: string;
146
+
147
+ /**
148
+ * Description of the skill version.
149
+ *
150
+ * This is extracted from the SKILL.md file in the skill upload.
151
+ */
152
+ description: string;
153
+
154
+ /**
155
+ * Directory name of the skill version.
156
+ *
157
+ * This is the top-level directory name that was extracted from the uploaded files.
158
+ */
159
+ directory: string;
160
+
161
+ /**
162
+ * Human-readable name of the skill version.
163
+ *
164
+ * This is extracted from the SKILL.md file in the skill upload.
165
+ */
166
+ name: string;
167
+
168
+ /**
169
+ * Identifier for the skill that this version belongs to.
170
+ */
171
+ skill_id: string;
172
+
173
+ /**
174
+ * Object type.
175
+ *
176
+ * For Skill Versions, this is always `"skill_version"`.
177
+ */
178
+ type: string;
179
+
180
+ /**
181
+ * Version identifier for the skill.
182
+ *
183
+ * Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
184
+ */
185
+ version: string;
186
+ }
187
+
188
+ export interface VersionRetrieveResponse {
189
+ /**
190
+ * Unique identifier for the skill version.
191
+ *
192
+ * The format and length of IDs may change over time.
193
+ */
194
+ id: string;
195
+
196
+ /**
197
+ * ISO 8601 timestamp of when the skill version was created.
198
+ */
199
+ created_at: string;
200
+
201
+ /**
202
+ * Description of the skill version.
203
+ *
204
+ * This is extracted from the SKILL.md file in the skill upload.
205
+ */
206
+ description: string;
207
+
208
+ /**
209
+ * Directory name of the skill version.
210
+ *
211
+ * This is the top-level directory name that was extracted from the uploaded files.
212
+ */
213
+ directory: string;
214
+
215
+ /**
216
+ * Human-readable name of the skill version.
217
+ *
218
+ * This is extracted from the SKILL.md file in the skill upload.
219
+ */
220
+ name: string;
221
+
222
+ /**
223
+ * Identifier for the skill that this version belongs to.
224
+ */
225
+ skill_id: string;
226
+
227
+ /**
228
+ * Object type.
229
+ *
230
+ * For Skill Versions, this is always `"skill_version"`.
231
+ */
232
+ type: string;
233
+
234
+ /**
235
+ * Version identifier for the skill.
236
+ *
237
+ * Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
238
+ */
239
+ version: string;
240
+ }
241
+
242
+ export interface VersionListResponse {
243
+ /**
244
+ * Unique identifier for the skill version.
245
+ *
246
+ * The format and length of IDs may change over time.
247
+ */
248
+ id: string;
249
+
250
+ /**
251
+ * ISO 8601 timestamp of when the skill version was created.
252
+ */
253
+ created_at: string;
254
+
255
+ /**
256
+ * Description of the skill version.
257
+ *
258
+ * This is extracted from the SKILL.md file in the skill upload.
259
+ */
260
+ description: string;
261
+
262
+ /**
263
+ * Directory name of the skill version.
264
+ *
265
+ * This is the top-level directory name that was extracted from the uploaded files.
266
+ */
267
+ directory: string;
268
+
269
+ /**
270
+ * Human-readable name of the skill version.
271
+ *
272
+ * This is extracted from the SKILL.md file in the skill upload.
273
+ */
274
+ name: string;
275
+
276
+ /**
277
+ * Identifier for the skill that this version belongs to.
278
+ */
279
+ skill_id: string;
280
+
281
+ /**
282
+ * Object type.
283
+ *
284
+ * For Skill Versions, this is always `"skill_version"`.
285
+ */
286
+ type: string;
287
+
288
+ /**
289
+ * Version identifier for the skill.
290
+ *
291
+ * Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
292
+ */
293
+ version: string;
294
+ }
295
+
296
+ export interface VersionDeleteResponse {
297
+ /**
298
+ * Version identifier for the skill.
299
+ *
300
+ * Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
301
+ */
302
+ id: string;
303
+
304
+ /**
305
+ * Deleted object type.
306
+ *
307
+ * For Skill Versions, this is always `"skill_version_deleted"`.
308
+ */
309
+ type: string;
310
+ }
311
+
312
+ export interface VersionCreateParams {
313
+ /**
314
+ * Body param: Files to upload for the skill.
315
+ *
316
+ * All files must be in the same top-level directory and must include a SKILL.md
317
+ * file at the root of that directory.
318
+ */
319
+ files?: Array<Uploadable> | null;
320
+
321
+ /**
322
+ * Header param: Optional header to specify the beta version(s) you want to use.
323
+ */
324
+ betas?: Array<BetaAPI.AnthropicBeta>;
325
+ }
326
+
327
+ export interface VersionRetrieveParams {
328
+ /**
329
+ * Path param: Unique identifier for the skill.
330
+ *
331
+ * The format and length of IDs may change over time.
332
+ */
333
+ skill_id: string;
334
+
335
+ /**
336
+ * Header param: Optional header to specify the beta version(s) you want to use.
337
+ */
338
+ betas?: Array<BetaAPI.AnthropicBeta>;
339
+ }
340
+
341
+ export interface VersionListParams extends PageCursorParams {
342
+ /**
343
+ * Header param: Optional header to specify the beta version(s) you want to use.
344
+ */
345
+ betas?: Array<BetaAPI.AnthropicBeta>;
346
+ }
347
+
348
+ export interface VersionDeleteParams {
349
+ /**
350
+ * Path param: Unique identifier for the skill.
351
+ *
352
+ * The format and length of IDs may change over time.
353
+ */
354
+ skill_id: string;
355
+
356
+ /**
357
+ * Header param: Optional header to specify the beta version(s) you want to use.
358
+ */
359
+ betas?: Array<BetaAPI.AnthropicBeta>;
360
+ }
361
+
362
+ export declare namespace Versions {
363
+ export {
364
+ type VersionCreateResponse as VersionCreateResponse,
365
+ type VersionRetrieveResponse as VersionRetrieveResponse,
366
+ type VersionListResponse as VersionListResponse,
367
+ type VersionDeleteResponse as VersionDeleteResponse,
368
+ type VersionListResponsesPageCursor as VersionListResponsesPageCursor,
369
+ type VersionCreateParams as VersionCreateParams,
370
+ type VersionRetrieveParams as VersionRetrieveParams,
371
+ type VersionListParams as VersionListParams,
372
+ type VersionDeleteParams as VersionDeleteParams,
373
+ };
374
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './skills/index';
@@ -14,10 +14,10 @@ export class Completions extends APIResource {
14
14
  * [Legacy] Create a Text Completion.
15
15
  *
16
16
  * The Text Completions API is a legacy API. We recommend using the
17
- * [Messages API](https://docs.anthropic.com/en/api/messages) going forward.
17
+ * [Messages API](https://docs.claude.com/en/api/messages) going forward.
18
18
  *
19
19
  * Future models and features will not be compatible with Text Completions. See our
20
- * [migration guide](https://docs.anthropic.com/en/api/migrating-from-text-completions-to-messages)
20
+ * [migration guide](https://docs.claude.com/en/api/migrating-from-text-completions-to-messages)
21
21
  * for guidance in migrating from Text Completions to Messages.
22
22
  *
23
23
  * @example
@@ -120,10 +120,9 @@ export interface CompletionCreateParamsBase {
120
120
  * "\n\nHuman: {userQuestion}\n\nAssistant:"
121
121
  * ```
122
122
  *
123
- * See [prompt validation](https://docs.anthropic.com/en/api/prompt-validation) and
124
- * our guide to
125
- * [prompt design](https://docs.anthropic.com/en/docs/intro-to-prompting) for more
126
- * details.
123
+ * See [prompt validation](https://docs.claude.com/en/api/prompt-validation) and
124
+ * our guide to [prompt design](https://docs.claude.com/en/docs/intro-to-prompting)
125
+ * for more details.
127
126
  */
128
127
  prompt: string;
129
128
 
@@ -145,7 +144,7 @@ export interface CompletionCreateParamsBase {
145
144
  * Body param: Whether to incrementally stream the response using server-sent
146
145
  * events.
147
146
  *
148
- * See [streaming](https://docs.anthropic.com/en/api/streaming) for details.
147
+ * See [streaming](https://docs.claude.com/en/api/streaming) for details.
149
148
  */
150
149
  stream?: boolean;
151
150
 
@@ -206,7 +205,7 @@ export interface CompletionCreateParamsNonStreaming extends CompletionCreatePara
206
205
  * Body param: Whether to incrementally stream the response using server-sent
207
206
  * events.
208
207
  *
209
- * See [streaming](https://docs.anthropic.com/en/api/streaming) for details.
208
+ * See [streaming](https://docs.claude.com/en/api/streaming) for details.
210
209
  */
211
210
  stream?: false;
212
211
  }
@@ -216,7 +215,7 @@ export interface CompletionCreateParamsStreaming extends CompletionCreateParamsB
216
215
  * Body param: Whether to incrementally stream the response using server-sent
217
216
  * events.
218
217
  *
219
- * See [streaming](https://docs.anthropic.com/en/api/streaming) for details.
218
+ * See [streaming](https://docs.claude.com/en/api/streaming) for details.
220
219
  */
221
220
  stream: true;
222
221
  }
@@ -561,6 +561,8 @@ export type Model =
561
561
  | 'claude-3-7-sonnet-20250219'
562
562
  | 'claude-3-5-haiku-latest'
563
563
  | 'claude-3-5-haiku-20241022'
564
+ | 'claude-haiku-4-5'
565
+ | 'claude-haiku-4-5-20251001'
564
566
  | 'claude-sonnet-4-20250514'
565
567
  | 'claude-sonnet-4-0'
566
568
  | 'claude-4-sonnet-20250514'
@@ -755,14 +757,7 @@ export interface SignatureDelta {
755
757
  type: 'signature_delta';
756
758
  }
757
759
 
758
- export type StopReason =
759
- | 'end_turn'
760
- | 'max_tokens'
761
- | 'stop_sequence'
762
- | 'tool_use'
763
- | 'pause_turn'
764
- | 'refusal'
765
- | 'model_context_window_exceeded';
760
+ export type StopReason = 'end_turn' | 'max_tokens' | 'stop_sequence' | 'tool_use' | 'pause_turn' | 'refusal';
766
761
 
767
762
  export interface TextBlock {
768
763
  /**
@@ -841,7 +836,7 @@ export interface ThinkingConfigEnabled {
841
836
  * Must be ≥1024 and less than `max_tokens`.
842
837
  *
843
838
  * See
844
- * [extended thinking](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking)
839
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
845
840
  * for details.
846
841
  */
847
842
  budget_tokens: number;
@@ -857,7 +852,7 @@ export interface ThinkingConfigEnabled {
857
852
  * tokens and counts towards your `max_tokens` limit.
858
853
  *
859
854
  * See
860
- * [extended thinking](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking)
855
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
861
856
  * for details.
862
857
  */
863
858
  export type ThinkingConfigParam = ThinkingConfigEnabled | ThinkingConfigDisabled;
@@ -1318,7 +1313,7 @@ export interface MessageCreateParamsBase {
1318
1313
  * only specifies the absolute maximum number of tokens to generate.
1319
1314
  *
1320
1315
  * Different models have different maximum values for this parameter. See
1321
- * [models](https://docs.anthropic.com/en/docs/models-overview) for details.
1316
+ * [models](https://docs.claude.com/en/docs/models-overview) for details.
1322
1317
  */
1323
1318
  max_tokens: number;
1324
1319
 
@@ -1380,12 +1375,12 @@ export interface MessageCreateParamsBase {
1380
1375
  * { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
1381
1376
  * ```
1382
1377
  *
1383
- * See [input examples](https://docs.anthropic.com/en/api/messages-examples).
1378
+ * See [input examples](https://docs.claude.com/en/api/messages-examples).
1384
1379
  *
1385
1380
  * Note that if you want to include a
1386
- * [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use
1387
- * the top-level `system` parameter — there is no `"system"` role for input
1388
- * messages in the Messages API.
1381
+ * [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
1382
+ * top-level `system` parameter — there is no `"system"` role for input messages in
1383
+ * the Messages API.
1389
1384
  *
1390
1385
  * There is a limit of 100,000 messages in a single request.
1391
1386
  */
@@ -1408,7 +1403,7 @@ export interface MessageCreateParamsBase {
1408
1403
  * for this request.
1409
1404
  *
1410
1405
  * Anthropic offers different levels of service for your API requests. See
1411
- * [service-tiers](https://docs.anthropic.com/en/api/service-tiers) for details.
1406
+ * [service-tiers](https://docs.claude.com/en/api/service-tiers) for details.
1412
1407
  */
1413
1408
  service_tier?: 'auto' | 'standard_only';
1414
1409
 
@@ -1428,8 +1423,7 @@ export interface MessageCreateParamsBase {
1428
1423
  /**
1429
1424
  * Whether to incrementally stream the response using server-sent events.
1430
1425
  *
1431
- * See [streaming](https://docs.anthropic.com/en/api/messages-streaming) for
1432
- * details.
1426
+ * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
1433
1427
  */
1434
1428
  stream?: boolean;
1435
1429
 
@@ -1438,7 +1432,7 @@ export interface MessageCreateParamsBase {
1438
1432
  *
1439
1433
  * A system prompt is a way of providing context and instructions to Claude, such
1440
1434
  * as specifying a particular goal or role. See our
1441
- * [guide to system prompts](https://docs.anthropic.com/en/docs/system-prompts).
1435
+ * [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
1442
1436
  */
1443
1437
  system?: string | Array<TextBlockParam>;
1444
1438
 
@@ -1462,7 +1456,7 @@ export interface MessageCreateParamsBase {
1462
1456
  * tokens and counts towards your `max_tokens` limit.
1463
1457
  *
1464
1458
  * See
1465
- * [extended thinking](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking)
1459
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
1466
1460
  * for details.
1467
1461
  */
1468
1462
  thinking?: ThinkingConfigParam;
@@ -1483,9 +1477,9 @@ export interface MessageCreateParamsBase {
1483
1477
  *
1484
1478
  * There are two types of tools: **client tools** and **server tools**. The
1485
1479
  * behavior described below applies to client tools. For
1486
- * [server tools](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
1480
+ * [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
1487
1481
  * see their individual documentation as each has its own behavior (e.g., the
1488
- * [web search tool](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
1482
+ * [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
1489
1483
  *
1490
1484
  * Each tool definition includes:
1491
1485
  *
@@ -1548,7 +1542,7 @@ export interface MessageCreateParamsBase {
1548
1542
  * functions, or more generally whenever you want the model to produce a particular
1549
1543
  * JSON structure of output.
1550
1544
  *
1551
- * See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details.
1545
+ * See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
1552
1546
  */
1553
1547
  tools?: Array<ToolUnion>;
1554
1548
 
@@ -1586,8 +1580,7 @@ export interface MessageCreateParamsNonStreaming extends MessageCreateParamsBase
1586
1580
  /**
1587
1581
  * Whether to incrementally stream the response using server-sent events.
1588
1582
  *
1589
- * See [streaming](https://docs.anthropic.com/en/api/messages-streaming) for
1590
- * details.
1583
+ * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
1591
1584
  */
1592
1585
  stream?: false;
1593
1586
  }
@@ -1596,8 +1589,7 @@ export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
1596
1589
  /**
1597
1590
  * Whether to incrementally stream the response using server-sent events.
1598
1591
  *
1599
- * See [streaming](https://docs.anthropic.com/en/api/messages-streaming) for
1600
- * details.
1592
+ * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
1601
1593
  */
1602
1594
  stream: true;
1603
1595
  }
@@ -1663,12 +1655,12 @@ export interface MessageCountTokensParams {
1663
1655
  * { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
1664
1656
  * ```
1665
1657
  *
1666
- * See [input examples](https://docs.anthropic.com/en/api/messages-examples).
1658
+ * See [input examples](https://docs.claude.com/en/api/messages-examples).
1667
1659
  *
1668
1660
  * Note that if you want to include a
1669
- * [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use
1670
- * the top-level `system` parameter — there is no `"system"` role for input
1671
- * messages in the Messages API.
1661
+ * [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
1662
+ * top-level `system` parameter — there is no `"system"` role for input messages in
1663
+ * the Messages API.
1672
1664
  *
1673
1665
  * There is a limit of 100,000 messages in a single request.
1674
1666
  */
@@ -1686,7 +1678,7 @@ export interface MessageCountTokensParams {
1686
1678
  *
1687
1679
  * A system prompt is a way of providing context and instructions to Claude, such
1688
1680
  * as specifying a particular goal or role. See our
1689
- * [guide to system prompts](https://docs.anthropic.com/en/docs/system-prompts).
1681
+ * [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
1690
1682
  */
1691
1683
  system?: string | Array<TextBlockParam>;
1692
1684
 
@@ -1698,7 +1690,7 @@ export interface MessageCountTokensParams {
1698
1690
  * tokens and counts towards your `max_tokens` limit.
1699
1691
  *
1700
1692
  * See
1701
- * [extended thinking](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking)
1693
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
1702
1694
  * for details.
1703
1695
  */
1704
1696
  thinking?: ThinkingConfigParam;
@@ -1719,9 +1711,9 @@ export interface MessageCountTokensParams {
1719
1711
  *
1720
1712
  * There are two types of tools: **client tools** and **server tools**. The
1721
1713
  * behavior described below applies to client tools. For
1722
- * [server tools](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
1714
+ * [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
1723
1715
  * see their individual documentation as each has its own behavior (e.g., the
1724
- * [web search tool](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
1716
+ * [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
1725
1717
  *
1726
1718
  * Each tool definition includes:
1727
1719
  *
@@ -1784,7 +1776,7 @@ export interface MessageCountTokensParams {
1784
1776
  * functions, or more generally whenever you want the model to produce a particular
1785
1777
  * JSON structure of output.
1786
1778
  *
1787
- * See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details.
1779
+ * See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
1788
1780
  */
1789
1781
  tools?: Array<MessageCountTokensTool>;
1790
1782
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.65.0'; // x-release-please-version
1
+ export const VERSION = '0.67.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.65.0";
1
+ export declare const VERSION = "0.67.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.65.0";
1
+ export declare const VERSION = "0.67.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.65.0'; // x-release-please-version
4
+ exports.VERSION = '0.67.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.65.0'; // x-release-please-version
1
+ export const VERSION = '0.67.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map