Skip to content

Commit aba07e3

Browse files
chore(api): update spec version (#607)
1 parent 1542a5a commit aba07e3

5 files changed

Lines changed: 9 additions & 2 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 10
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-fe4fbf0720b4ea03b05ff5225d36c94e06ab7aadbc4b227d0d35c4522b60bdb7.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-cf96271afd65b396dc71c4e897d1d55a9526c122e3890bc87b5ff33316c93853.yml

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Types:
44

55
- <code><a href="./src/resources/messages.ts">ContentBlock</a></code>
66
- <code><a href="./src/resources/messages.ts">ContentBlockDeltaEvent</a></code>
7+
- <code><a href="./src/resources/messages.ts">ContentBlockParam</a></code>
78
- <code><a href="./src/resources/messages.ts">ContentBlockStartEvent</a></code>
89
- <code><a href="./src/resources/messages.ts">ContentBlockStopEvent</a></code>
910
- <code><a href="./src/resources/messages.ts">ImageBlockParam</a></code>

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
import {
1818
ContentBlock,
1919
ContentBlockDeltaEvent,
20+
ContentBlockParam,
2021
ContentBlockStartEvent,
2122
ContentBlockStopEvent,
2223
ImageBlockParam,
@@ -309,6 +310,7 @@ export declare namespace Anthropic {
309310
Messages as Messages,
310311
type ContentBlock as ContentBlock,
311312
type ContentBlockDeltaEvent as ContentBlockDeltaEvent,
313+
type ContentBlockParam as ContentBlockParam,
312314
type ContentBlockStartEvent as ContentBlockStartEvent,
313315
type ContentBlockStopEvent as ContentBlockStopEvent,
314316
type ImageBlockParam as ImageBlockParam,

src/resources/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export {
2424
Messages,
2525
type ContentBlock,
2626
type ContentBlockDeltaEvent,
27+
type ContentBlockParam,
2728
type ContentBlockStartEvent,
2829
type ContentBlockStopEvent,
2930
type ImageBlockParam,

src/resources/messages.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export type ContentBlock = TextBlock | ToolUseBlock;
4040

4141
export type ContentBlockDeltaEvent = RawContentBlockDeltaEvent;
4242

43+
export type ContentBlockParam = TextBlockParam | ImageBlockParam | ToolUseBlockParam | ToolResultBlockParam;
44+
4345
export type ContentBlockStartEvent = RawContentBlockStartEvent;
4446

4547
export type ContentBlockStopEvent = RawContentBlockStopEvent;
@@ -181,7 +183,7 @@ export interface MessageDeltaUsage {
181183
}
182184

183185
export interface MessageParam {
184-
content: string | Array<TextBlockParam | ImageBlockParam | ToolUseBlockParam | ToolResultBlockParam>;
186+
content: string | Array<ContentBlockParam>;
185187

186188
role: 'user' | 'assistant';
187189
}
@@ -740,6 +742,7 @@ export declare namespace Messages {
740742
export {
741743
type ContentBlock as ContentBlock,
742744
type ContentBlockDeltaEvent as ContentBlockDeltaEvent,
745+
type ContentBlockParam as ContentBlockParam,
743746
type ContentBlockStartEvent as ContentBlockStartEvent,
744747
type ContentBlockStopEvent as ContentBlockStopEvent,
745748
type ImageBlockParam as ImageBlockParam,

0 commit comments

Comments
 (0)