Skip to content

Commit 06fc0f7

Browse files
stainless-botRobertCraigie
authored andcommitted
fix(types): correctly mark type as a required property in requests (#371)
1 parent cffc3f6 commit 06fc0f7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/bedrock-sdk/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@jridgewell/trace-mapping" "^0.3.9"
1717

1818
"@anthropic-ai/sdk@file:../../dist":
19-
version "0.19.1"
19+
version "0.19.2"
2020
dependencies:
2121
"@types/node" "^18.11.18"
2222
"@types/node-fetch" "^2.6.4"

packages/vertex-sdk/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@jridgewell/trace-mapping" "^0.3.9"
1717

1818
"@anthropic-ai/sdk@file:../../dist":
19-
version "0.19.1"
19+
version "0.19.2"
2020
dependencies:
2121
"@types/node" "^18.11.18"
2222
"@types/node-fetch" "^2.6.4"

src/resources/messages.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export interface ContentBlockStopEvent {
7878
export interface ImageBlockParam {
7979
source: ImageBlockParam.Source;
8080

81-
type?: 'image';
81+
type: 'image';
8282
}
8383

8484
export namespace ImageBlockParam {
@@ -87,7 +87,7 @@ export namespace ImageBlockParam {
8787

8888
media_type: 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp';
8989

90-
type?: 'base64';
90+
type: 'base64';
9191
}
9292
}
9393

@@ -260,7 +260,7 @@ export type MessageStreamEvent =
260260
export interface TextBlock {
261261
text: string;
262262

263-
type?: 'text';
263+
type: 'text';
264264
}
265265

266266
export interface TextDelta {

0 commit comments

Comments
 (0)