Skip to content

Commit 27a850e

Browse files
feat(api): add keys field to computer action types
1 parent 8491eb6 commit 27a850e

2 files changed

Lines changed: 52 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 151
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-0fea07225431c8d0cf5fc1a70c9363a91d259f7a169f410717e162de1b24e489.yml
3-
openapi_spec_hash: 41b34c1678ec0e95daf62ca4cd52c8f8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-13599f99dceef322e19171dcc63d90f638d225a445999442249e1ed7a4924c43.yml
3+
openapi_spec_hash: aac8cf8ec3c7dc6d14ecf5dbb289ee7c
44
config_hash: 96fbf82cf74a44ccd513f5acf0956ffd

src/resources/responses/responses.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,22 @@ export namespace ComputerAction {
310310
* The y-coordinate where the click occurred.
311311
*/
312312
y: number;
313+
314+
/**
315+
* The keys being held while clicking.
316+
*/
317+
keys?: Array<string> | null;
313318
}
314319

315320
/**
316321
* A double click action.
317322
*/
318323
export interface DoubleClick {
324+
/**
325+
* The keys being held while double-clicking.
326+
*/
327+
keys: Array<string> | null;
328+
319329
/**
320330
* Specifies the event type. For a double click action, this property is always set
321331
* to `double_click`.
@@ -355,6 +365,11 @@ export namespace ComputerAction {
355365
* `drag`.
356366
*/
357367
type: 'drag';
368+
369+
/**
370+
* The keys being held while dragging the mouse.
371+
*/
372+
keys?: Array<string> | null;
358373
}
359374

360375
export namespace Drag {
@@ -410,6 +425,11 @@ export namespace ComputerAction {
410425
* The y-coordinate to move to.
411426
*/
412427
y: number;
428+
429+
/**
430+
* The keys being held while moving the mouse.
431+
*/
432+
keys?: Array<string> | null;
413433
}
414434

415435
/**
@@ -452,6 +472,11 @@ export namespace ComputerAction {
452472
* The y-coordinate where the scroll occurred.
453473
*/
454474
y: number;
475+
476+
/**
477+
* The keys being held while scrolling.
478+
*/
479+
keys?: Array<string> | null;
455480
}
456481

457482
/**
@@ -1771,12 +1796,22 @@ export namespace ResponseComputerToolCall {
17711796
* The y-coordinate where the click occurred.
17721797
*/
17731798
y: number;
1799+
1800+
/**
1801+
* The keys being held while clicking.
1802+
*/
1803+
keys?: Array<string> | null;
17741804
}
17751805

17761806
/**
17771807
* A double click action.
17781808
*/
17791809
export interface DoubleClick {
1810+
/**
1811+
* The keys being held while double-clicking.
1812+
*/
1813+
keys: Array<string> | null;
1814+
17801815
/**
17811816
* Specifies the event type. For a double click action, this property is always set
17821817
* to `double_click`.
@@ -1816,6 +1851,11 @@ export namespace ResponseComputerToolCall {
18161851
* `drag`.
18171852
*/
18181853
type: 'drag';
1854+
1855+
/**
1856+
* The keys being held while dragging the mouse.
1857+
*/
1858+
keys?: Array<string> | null;
18191859
}
18201860

18211861
export namespace Drag {
@@ -1871,6 +1911,11 @@ export namespace ResponseComputerToolCall {
18711911
* The y-coordinate to move to.
18721912
*/
18731913
y: number;
1914+
1915+
/**
1916+
* The keys being held while moving the mouse.
1917+
*/
1918+
keys?: Array<string> | null;
18741919
}
18751920

18761921
/**
@@ -1913,6 +1958,11 @@ export namespace ResponseComputerToolCall {
19131958
* The y-coordinate where the scroll occurred.
19141959
*/
19151960
y: number;
1961+
1962+
/**
1963+
* The keys being held while scrolling.
1964+
*/
1965+
keys?: Array<string> | null;
19161966
}
19171967

19181968
/**

0 commit comments

Comments
 (0)