@discomedia/utils 1.0.54 → 1.0.56
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/dist/index-frontend.cjs +8 -33
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +8 -33
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +145 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +145 -53
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +4 -4
- package/dist/test.js +923 -1652
- package/dist/test.js.map +1 -1
- package/dist/types/alpaca-market-data-api.d.ts +10 -0
- package/dist/types/alpaca-market-data-api.d.ts.map +1 -1
- package/dist/types/alpaca-trading-api.d.ts +3 -1
- package/dist/types/alpaca-trading-api.d.ts.map +1 -1
- package/dist/types-frontend/alpaca-market-data-api.d.ts +10 -0
- package/dist/types-frontend/alpaca-market-data-api.d.ts.map +1 -1
- package/dist/types-frontend/alpaca-trading-api.d.ts +3 -1
- package/dist/types-frontend/alpaca-trading-api.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index-frontend.cjs
CHANGED
|
@@ -260,7 +260,7 @@ const safeJSON = (text) => {
|
|
|
260
260
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
261
261
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
262
262
|
|
|
263
|
-
const VERSION = '6.
|
|
263
|
+
const VERSION = '6.17.0'; // x-release-please-version
|
|
264
264
|
|
|
265
265
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
266
266
|
const isRunningInBrowser = () => {
|
|
@@ -3553,12 +3553,7 @@ class Assistants extends APIResource {
|
|
|
3553
3553
|
/**
|
|
3554
3554
|
* Create an assistant with a model and instructions.
|
|
3555
3555
|
*
|
|
3556
|
-
* @
|
|
3557
|
-
* ```ts
|
|
3558
|
-
* const assistant = await client.beta.assistants.create({
|
|
3559
|
-
* model: 'gpt-4o',
|
|
3560
|
-
* });
|
|
3561
|
-
* ```
|
|
3556
|
+
* @deprecated
|
|
3562
3557
|
*/
|
|
3563
3558
|
create(body, options) {
|
|
3564
3559
|
return this._client.post('/assistants', {
|
|
@@ -3570,12 +3565,7 @@ class Assistants extends APIResource {
|
|
|
3570
3565
|
/**
|
|
3571
3566
|
* Retrieves an assistant.
|
|
3572
3567
|
*
|
|
3573
|
-
* @
|
|
3574
|
-
* ```ts
|
|
3575
|
-
* const assistant = await client.beta.assistants.retrieve(
|
|
3576
|
-
* 'assistant_id',
|
|
3577
|
-
* );
|
|
3578
|
-
* ```
|
|
3568
|
+
* @deprecated
|
|
3579
3569
|
*/
|
|
3580
3570
|
retrieve(assistantID, options) {
|
|
3581
3571
|
return this._client.get(path `/assistants/${assistantID}`, {
|
|
@@ -3586,12 +3576,7 @@ class Assistants extends APIResource {
|
|
|
3586
3576
|
/**
|
|
3587
3577
|
* Modifies an assistant.
|
|
3588
3578
|
*
|
|
3589
|
-
* @
|
|
3590
|
-
* ```ts
|
|
3591
|
-
* const assistant = await client.beta.assistants.update(
|
|
3592
|
-
* 'assistant_id',
|
|
3593
|
-
* );
|
|
3594
|
-
* ```
|
|
3579
|
+
* @deprecated
|
|
3595
3580
|
*/
|
|
3596
3581
|
update(assistantID, body, options) {
|
|
3597
3582
|
return this._client.post(path `/assistants/${assistantID}`, {
|
|
@@ -3603,13 +3588,7 @@ class Assistants extends APIResource {
|
|
|
3603
3588
|
/**
|
|
3604
3589
|
* Returns a list of assistants.
|
|
3605
3590
|
*
|
|
3606
|
-
* @
|
|
3607
|
-
* ```ts
|
|
3608
|
-
* // Automatically fetches more pages as needed.
|
|
3609
|
-
* for await (const assistant of client.beta.assistants.list()) {
|
|
3610
|
-
* // ...
|
|
3611
|
-
* }
|
|
3612
|
-
* ```
|
|
3591
|
+
* @deprecated
|
|
3613
3592
|
*/
|
|
3614
3593
|
list(query = {}, options) {
|
|
3615
3594
|
return this._client.getAPIList('/assistants', (CursorPage), {
|
|
@@ -3621,11 +3600,7 @@ class Assistants extends APIResource {
|
|
|
3621
3600
|
/**
|
|
3622
3601
|
* Delete an assistant.
|
|
3623
3602
|
*
|
|
3624
|
-
* @
|
|
3625
|
-
* ```ts
|
|
3626
|
-
* const assistantDeleted =
|
|
3627
|
-
* await client.beta.assistants.delete('assistant_id');
|
|
3628
|
-
* ```
|
|
3603
|
+
* @deprecated
|
|
3629
3604
|
*/
|
|
3630
3605
|
delete(assistantID, options) {
|
|
3631
3606
|
return this._client.delete(path `/assistants/${assistantID}`, {
|
|
@@ -5099,8 +5074,8 @@ Evals.Runs = Runs;
|
|
|
5099
5074
|
let Files$1 = class Files extends APIResource {
|
|
5100
5075
|
/**
|
|
5101
5076
|
* Upload a file that can be used across various endpoints. Individual files can be
|
|
5102
|
-
* up to 512 MB, and
|
|
5103
|
-
*
|
|
5077
|
+
* up to 512 MB, and each project can store up to 2.5 TB of files in total. There
|
|
5078
|
+
* is no organization-wide storage limit.
|
|
5104
5079
|
*
|
|
5105
5080
|
* - The Assistants API supports files up to 2 million tokens and of specific file
|
|
5106
5081
|
* types. See the
|