ogx-client 1.0.2 → 1.1.1
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.
- package/.github/workflows/ci.yml +7 -7
- package/.github/workflows/release-doctor.yml +1 -1
- package/.release-please-manifest.json +1 -1
- package/.stats.yml +2 -2
- package/CHANGELOG.md +20 -0
- package/dist/CHANGELOG.md +20 -0
- package/dist/package.json +1 -1
- package/dist/resources/conversations/conversations.d.ts +41 -2
- package/dist/resources/conversations/conversations.d.ts.map +1 -1
- package/dist/resources/conversations/conversations.js.map +1 -1
- package/dist/resources/conversations/conversations.mjs.map +1 -1
- package/dist/resources/conversations/items.d.ts +164 -8
- package/dist/resources/conversations/items.d.ts.map +1 -1
- package/dist/resources/conversations/items.js.map +1 -1
- package/dist/resources/conversations/items.mjs.map +1 -1
- package/dist/resources/responses/input-items.d.ts +41 -2
- package/dist/resources/responses/input-items.d.ts.map +1 -1
- package/dist/resources/responses/responses.d.ts +547 -24
- package/dist/resources/responses/responses.d.ts.map +1 -1
- package/dist/resources/responses/responses.js.map +1 -1
- package/dist/resources/responses/responses.mjs.map +1 -1
- package/dist/src/resources/conversations/conversations.ts +57 -2
- package/dist/src/resources/conversations/items.ts +228 -8
- package/dist/src/resources/responses/input-items.ts +57 -2
- package/dist/src/resources/responses/responses.ts +746 -22
- package/dist/src/version.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
- package/src/resources/conversations/conversations.ts +57 -2
- package/src/resources/conversations/items.ts +228 -8
- package/src/resources/responses/input-items.ts +57 -2
- package/src/resources/responses/responses.ts +746 -22
- package/src/version.ts +1 -1
- package/tests/api-resources/responses/responses.test.ts +39 -4
|
@@ -103,7 +103,7 @@ export interface ItemCreateResponse {
|
|
|
103
103
|
*/
|
|
104
104
|
data: Array<
|
|
105
105
|
| ItemCreateResponse.OpenAIResponseMessageOutput
|
|
106
|
-
| ItemCreateResponse.
|
|
106
|
+
| ItemCreateResponse.OpenAIResponseOutputMessageWebSearchToolCallOutput
|
|
107
107
|
| ItemCreateResponse.OpenAIResponseOutputMessageFileSearchToolCall
|
|
108
108
|
| ItemCreateResponse.OpenAIResponseOutputMessageFunctionToolCall
|
|
109
109
|
| ItemCreateResponse.OpenAIResponseInputFunctionToolCallOutput
|
|
@@ -340,14 +340,69 @@ export namespace ItemCreateResponse {
|
|
|
340
340
|
/**
|
|
341
341
|
* Web search tool call output message for OpenAI responses.
|
|
342
342
|
*/
|
|
343
|
-
export interface
|
|
343
|
+
export interface OpenAIResponseOutputMessageWebSearchToolCallOutput {
|
|
344
344
|
id: string;
|
|
345
345
|
|
|
346
346
|
status: string;
|
|
347
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Web search action: performs a search query.
|
|
350
|
+
*/
|
|
351
|
+
action?:
|
|
352
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionSearch
|
|
353
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionOpenPage
|
|
354
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionFind
|
|
355
|
+
| null;
|
|
356
|
+
|
|
348
357
|
type?: 'web_search_call';
|
|
349
358
|
}
|
|
350
359
|
|
|
360
|
+
export namespace OpenAIResponseOutputMessageWebSearchToolCallOutput {
|
|
361
|
+
/**
|
|
362
|
+
* Web search action: performs a search query.
|
|
363
|
+
*/
|
|
364
|
+
export interface WebSearchActionSearch {
|
|
365
|
+
query: string;
|
|
366
|
+
|
|
367
|
+
queries?: Array<string> | null;
|
|
368
|
+
|
|
369
|
+
sources?: Array<WebSearchActionSearch.Source> | null;
|
|
370
|
+
|
|
371
|
+
type?: 'search';
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export namespace WebSearchActionSearch {
|
|
375
|
+
/**
|
|
376
|
+
* A source URL returned by a web search action.
|
|
377
|
+
*/
|
|
378
|
+
export interface Source {
|
|
379
|
+
url: string;
|
|
380
|
+
|
|
381
|
+
type?: 'url';
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Web search action: opens a specific URL from search results.
|
|
387
|
+
*/
|
|
388
|
+
export interface WebSearchActionOpenPage {
|
|
389
|
+
type?: 'open_page';
|
|
390
|
+
|
|
391
|
+
url?: string | null;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Web search action: searches for a pattern within a loaded page.
|
|
396
|
+
*/
|
|
397
|
+
export interface WebSearchActionFind {
|
|
398
|
+
pattern: string;
|
|
399
|
+
|
|
400
|
+
url: string;
|
|
401
|
+
|
|
402
|
+
type?: 'find_in_page';
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
351
406
|
/**
|
|
352
407
|
* File search tool call output message for OpenAI responses.
|
|
353
408
|
*/
|
|
@@ -614,7 +669,7 @@ export namespace ItemCreateResponse {
|
|
|
614
669
|
*/
|
|
615
670
|
export type ItemListResponse =
|
|
616
671
|
| ItemListResponse.OpenAIResponseMessageOutput
|
|
617
|
-
| ItemListResponse.
|
|
672
|
+
| ItemListResponse.OpenAIResponseOutputMessageWebSearchToolCallOutput
|
|
618
673
|
| ItemListResponse.OpenAIResponseOutputMessageFileSearchToolCall
|
|
619
674
|
| ItemListResponse.OpenAIResponseOutputMessageFunctionToolCall
|
|
620
675
|
| ItemListResponse.OpenAIResponseInputFunctionToolCallOutput
|
|
@@ -829,14 +884,69 @@ export namespace ItemListResponse {
|
|
|
829
884
|
/**
|
|
830
885
|
* Web search tool call output message for OpenAI responses.
|
|
831
886
|
*/
|
|
832
|
-
export interface
|
|
887
|
+
export interface OpenAIResponseOutputMessageWebSearchToolCallOutput {
|
|
833
888
|
id: string;
|
|
834
889
|
|
|
835
890
|
status: string;
|
|
836
891
|
|
|
892
|
+
/**
|
|
893
|
+
* Web search action: performs a search query.
|
|
894
|
+
*/
|
|
895
|
+
action?:
|
|
896
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionSearch
|
|
897
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionOpenPage
|
|
898
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionFind
|
|
899
|
+
| null;
|
|
900
|
+
|
|
837
901
|
type?: 'web_search_call';
|
|
838
902
|
}
|
|
839
903
|
|
|
904
|
+
export namespace OpenAIResponseOutputMessageWebSearchToolCallOutput {
|
|
905
|
+
/**
|
|
906
|
+
* Web search action: performs a search query.
|
|
907
|
+
*/
|
|
908
|
+
export interface WebSearchActionSearch {
|
|
909
|
+
query: string;
|
|
910
|
+
|
|
911
|
+
queries?: Array<string> | null;
|
|
912
|
+
|
|
913
|
+
sources?: Array<WebSearchActionSearch.Source> | null;
|
|
914
|
+
|
|
915
|
+
type?: 'search';
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export namespace WebSearchActionSearch {
|
|
919
|
+
/**
|
|
920
|
+
* A source URL returned by a web search action.
|
|
921
|
+
*/
|
|
922
|
+
export interface Source {
|
|
923
|
+
url: string;
|
|
924
|
+
|
|
925
|
+
type?: 'url';
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Web search action: opens a specific URL from search results.
|
|
931
|
+
*/
|
|
932
|
+
export interface WebSearchActionOpenPage {
|
|
933
|
+
type?: 'open_page';
|
|
934
|
+
|
|
935
|
+
url?: string | null;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Web search action: searches for a pattern within a loaded page.
|
|
940
|
+
*/
|
|
941
|
+
export interface WebSearchActionFind {
|
|
942
|
+
pattern: string;
|
|
943
|
+
|
|
944
|
+
url: string;
|
|
945
|
+
|
|
946
|
+
type?: 'find_in_page';
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
|
|
840
950
|
/**
|
|
841
951
|
* File search tool call output message for OpenAI responses.
|
|
842
952
|
*/
|
|
@@ -1103,7 +1213,7 @@ export namespace ItemListResponse {
|
|
|
1103
1213
|
*/
|
|
1104
1214
|
export type ItemGetResponse =
|
|
1105
1215
|
| ItemGetResponse.OpenAIResponseMessageOutput
|
|
1106
|
-
| ItemGetResponse.
|
|
1216
|
+
| ItemGetResponse.OpenAIResponseOutputMessageWebSearchToolCallOutput
|
|
1107
1217
|
| ItemGetResponse.OpenAIResponseOutputMessageFileSearchToolCall
|
|
1108
1218
|
| ItemGetResponse.OpenAIResponseOutputMessageFunctionToolCall
|
|
1109
1219
|
| ItemGetResponse.OpenAIResponseInputFunctionToolCallOutput
|
|
@@ -1318,14 +1428,69 @@ export namespace ItemGetResponse {
|
|
|
1318
1428
|
/**
|
|
1319
1429
|
* Web search tool call output message for OpenAI responses.
|
|
1320
1430
|
*/
|
|
1321
|
-
export interface
|
|
1431
|
+
export interface OpenAIResponseOutputMessageWebSearchToolCallOutput {
|
|
1322
1432
|
id: string;
|
|
1323
1433
|
|
|
1324
1434
|
status: string;
|
|
1325
1435
|
|
|
1436
|
+
/**
|
|
1437
|
+
* Web search action: performs a search query.
|
|
1438
|
+
*/
|
|
1439
|
+
action?:
|
|
1440
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionSearch
|
|
1441
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionOpenPage
|
|
1442
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionFind
|
|
1443
|
+
| null;
|
|
1444
|
+
|
|
1326
1445
|
type?: 'web_search_call';
|
|
1327
1446
|
}
|
|
1328
1447
|
|
|
1448
|
+
export namespace OpenAIResponseOutputMessageWebSearchToolCallOutput {
|
|
1449
|
+
/**
|
|
1450
|
+
* Web search action: performs a search query.
|
|
1451
|
+
*/
|
|
1452
|
+
export interface WebSearchActionSearch {
|
|
1453
|
+
query: string;
|
|
1454
|
+
|
|
1455
|
+
queries?: Array<string> | null;
|
|
1456
|
+
|
|
1457
|
+
sources?: Array<WebSearchActionSearch.Source> | null;
|
|
1458
|
+
|
|
1459
|
+
type?: 'search';
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
export namespace WebSearchActionSearch {
|
|
1463
|
+
/**
|
|
1464
|
+
* A source URL returned by a web search action.
|
|
1465
|
+
*/
|
|
1466
|
+
export interface Source {
|
|
1467
|
+
url: string;
|
|
1468
|
+
|
|
1469
|
+
type?: 'url';
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* Web search action: opens a specific URL from search results.
|
|
1475
|
+
*/
|
|
1476
|
+
export interface WebSearchActionOpenPage {
|
|
1477
|
+
type?: 'open_page';
|
|
1478
|
+
|
|
1479
|
+
url?: string | null;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* Web search action: searches for a pattern within a loaded page.
|
|
1484
|
+
*/
|
|
1485
|
+
export interface WebSearchActionFind {
|
|
1486
|
+
pattern: string;
|
|
1487
|
+
|
|
1488
|
+
url: string;
|
|
1489
|
+
|
|
1490
|
+
type?: 'find_in_page';
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1329
1494
|
/**
|
|
1330
1495
|
* File search tool call output message for OpenAI responses.
|
|
1331
1496
|
*/
|
|
@@ -1592,7 +1757,7 @@ export interface ItemCreateParams {
|
|
|
1592
1757
|
*/
|
|
1593
1758
|
items: Array<
|
|
1594
1759
|
| ItemCreateParams.OpenAIResponseMessageInput
|
|
1595
|
-
| ItemCreateParams.
|
|
1760
|
+
| ItemCreateParams.OpenAIResponseOutputMessageWebSearchToolCallInput
|
|
1596
1761
|
| ItemCreateParams.OpenAIResponseOutputMessageFileSearchToolCall
|
|
1597
1762
|
| ItemCreateParams.OpenAIResponseOutputMessageFunctionToolCall
|
|
1598
1763
|
| ItemCreateParams.OpenAIResponseInputFunctionToolCallOutput
|
|
@@ -1809,14 +1974,69 @@ export namespace ItemCreateParams {
|
|
|
1809
1974
|
/**
|
|
1810
1975
|
* Web search tool call output message for OpenAI responses.
|
|
1811
1976
|
*/
|
|
1812
|
-
export interface
|
|
1977
|
+
export interface OpenAIResponseOutputMessageWebSearchToolCallInput {
|
|
1813
1978
|
id: string;
|
|
1814
1979
|
|
|
1815
1980
|
status: string;
|
|
1816
1981
|
|
|
1982
|
+
/**
|
|
1983
|
+
* Web search action: performs a search query.
|
|
1984
|
+
*/
|
|
1985
|
+
action?:
|
|
1986
|
+
| OpenAIResponseOutputMessageWebSearchToolCallInput.WebSearchActionSearch
|
|
1987
|
+
| OpenAIResponseOutputMessageWebSearchToolCallInput.WebSearchActionOpenPage
|
|
1988
|
+
| OpenAIResponseOutputMessageWebSearchToolCallInput.WebSearchActionFind
|
|
1989
|
+
| null;
|
|
1990
|
+
|
|
1817
1991
|
type?: 'web_search_call';
|
|
1818
1992
|
}
|
|
1819
1993
|
|
|
1994
|
+
export namespace OpenAIResponseOutputMessageWebSearchToolCallInput {
|
|
1995
|
+
/**
|
|
1996
|
+
* Web search action: performs a search query.
|
|
1997
|
+
*/
|
|
1998
|
+
export interface WebSearchActionSearch {
|
|
1999
|
+
query: string;
|
|
2000
|
+
|
|
2001
|
+
queries?: Array<string> | null;
|
|
2002
|
+
|
|
2003
|
+
sources?: Array<WebSearchActionSearch.Source> | null;
|
|
2004
|
+
|
|
2005
|
+
type?: 'search';
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
export namespace WebSearchActionSearch {
|
|
2009
|
+
/**
|
|
2010
|
+
* A source URL returned by a web search action.
|
|
2011
|
+
*/
|
|
2012
|
+
export interface Source {
|
|
2013
|
+
url: string;
|
|
2014
|
+
|
|
2015
|
+
type?: 'url';
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* Web search action: opens a specific URL from search results.
|
|
2021
|
+
*/
|
|
2022
|
+
export interface WebSearchActionOpenPage {
|
|
2023
|
+
type?: 'open_page';
|
|
2024
|
+
|
|
2025
|
+
url?: string | null;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
/**
|
|
2029
|
+
* Web search action: searches for a pattern within a loaded page.
|
|
2030
|
+
*/
|
|
2031
|
+
export interface WebSearchActionFind {
|
|
2032
|
+
pattern: string;
|
|
2033
|
+
|
|
2034
|
+
url: string;
|
|
2035
|
+
|
|
2036
|
+
type?: 'find_in_page';
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
|
|
1820
2040
|
/**
|
|
1821
2041
|
* File search tool call output message for OpenAI responses.
|
|
1822
2042
|
*/
|
|
@@ -41,7 +41,7 @@ export class InputItems extends APIResource {
|
|
|
41
41
|
export interface InputItemListResponse {
|
|
42
42
|
data: Array<
|
|
43
43
|
| InputItemListResponse.OpenAIResponseMessageOutput
|
|
44
|
-
| InputItemListResponse.
|
|
44
|
+
| InputItemListResponse.OpenAIResponseOutputMessageWebSearchToolCallOutput
|
|
45
45
|
| InputItemListResponse.OpenAIResponseOutputMessageFileSearchToolCall
|
|
46
46
|
| InputItemListResponse.OpenAIResponseOutputMessageFunctionToolCall
|
|
47
47
|
| InputItemListResponse.OpenAIResponseOutputMessageMcpCall
|
|
@@ -260,14 +260,69 @@ export namespace InputItemListResponse {
|
|
|
260
260
|
/**
|
|
261
261
|
* Web search tool call output message for OpenAI responses.
|
|
262
262
|
*/
|
|
263
|
-
export interface
|
|
263
|
+
export interface OpenAIResponseOutputMessageWebSearchToolCallOutput {
|
|
264
264
|
id: string;
|
|
265
265
|
|
|
266
266
|
status: string;
|
|
267
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Web search action: performs a search query.
|
|
270
|
+
*/
|
|
271
|
+
action?:
|
|
272
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionSearch
|
|
273
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionOpenPage
|
|
274
|
+
| OpenAIResponseOutputMessageWebSearchToolCallOutput.WebSearchActionFind
|
|
275
|
+
| null;
|
|
276
|
+
|
|
268
277
|
type?: 'web_search_call';
|
|
269
278
|
}
|
|
270
279
|
|
|
280
|
+
export namespace OpenAIResponseOutputMessageWebSearchToolCallOutput {
|
|
281
|
+
/**
|
|
282
|
+
* Web search action: performs a search query.
|
|
283
|
+
*/
|
|
284
|
+
export interface WebSearchActionSearch {
|
|
285
|
+
query: string;
|
|
286
|
+
|
|
287
|
+
queries?: Array<string> | null;
|
|
288
|
+
|
|
289
|
+
sources?: Array<WebSearchActionSearch.Source> | null;
|
|
290
|
+
|
|
291
|
+
type?: 'search';
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export namespace WebSearchActionSearch {
|
|
295
|
+
/**
|
|
296
|
+
* A source URL returned by a web search action.
|
|
297
|
+
*/
|
|
298
|
+
export interface Source {
|
|
299
|
+
url: string;
|
|
300
|
+
|
|
301
|
+
type?: 'url';
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Web search action: opens a specific URL from search results.
|
|
307
|
+
*/
|
|
308
|
+
export interface WebSearchActionOpenPage {
|
|
309
|
+
type?: 'open_page';
|
|
310
|
+
|
|
311
|
+
url?: string | null;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Web search action: searches for a pattern within a loaded page.
|
|
316
|
+
*/
|
|
317
|
+
export interface WebSearchActionFind {
|
|
318
|
+
pattern: string;
|
|
319
|
+
|
|
320
|
+
url: string;
|
|
321
|
+
|
|
322
|
+
type?: 'find_in_page';
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
271
326
|
/**
|
|
272
327
|
* File search tool call output message for OpenAI responses.
|
|
273
328
|
*/
|