@discomedia/utils 1.0.40 → 1.0.42
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 +2 -15
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +2 -15
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +42 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +42 -50
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +6 -6
- package/dist/test.js +114 -126
- package/dist/test.js.map +1 -1
- package/dist/types/alpaca-market-data-api.d.ts +7 -7
- package/dist/types/alpaca-market-data-api.d.ts.map +1 -1
- package/dist/types/types/alpaca-types.d.ts +16 -0
- package/dist/types/types/alpaca-types.d.ts.map +1 -1
- package/dist/types-frontend/alpaca-market-data-api.d.ts +7 -7
- package/dist/types-frontend/alpaca-market-data-api.d.ts.map +1 -1
- package/dist/types-frontend/types/alpaca-types.d.ts +16 -0
- package/dist/types-frontend/types/alpaca-types.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index-frontend.mjs
CHANGED
|
@@ -253,7 +253,7 @@ const safeJSON = (text) => {
|
|
|
253
253
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
254
254
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
255
255
|
|
|
256
|
-
const VERSION = '6.
|
|
256
|
+
const VERSION = '6.5.0'; // x-release-please-version
|
|
257
257
|
|
|
258
258
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
259
259
|
const isRunningInBrowser = () => {
|
|
@@ -3808,19 +3808,6 @@ class ChatKit extends APIResource {
|
|
|
3808
3808
|
this.sessions = new Sessions(this._client);
|
|
3809
3809
|
this.threads = new Threads$1(this._client);
|
|
3810
3810
|
}
|
|
3811
|
-
/**
|
|
3812
|
-
* Upload a ChatKit file
|
|
3813
|
-
*
|
|
3814
|
-
* @example
|
|
3815
|
-
* ```ts
|
|
3816
|
-
* const response = await client.beta.chatkit.uploadFile({
|
|
3817
|
-
* file: fs.createReadStream('path/to/file'),
|
|
3818
|
-
* });
|
|
3819
|
-
* ```
|
|
3820
|
-
*/
|
|
3821
|
-
uploadFile(body, options) {
|
|
3822
|
-
return this._client.post('/chatkit/files', maybeMultipartFormRequestOptions({ body, ...options, headers: buildHeaders([{ 'OpenAI-Beta': 'chatkit_beta=v1' }, options?.headers]) }, this._client));
|
|
3823
|
-
}
|
|
3824
3811
|
}
|
|
3825
3812
|
ChatKit.Sessions = Sessions;
|
|
3826
3813
|
ChatKit.Threads = Threads$1;
|
|
@@ -5142,7 +5129,7 @@ let Files$1 = class Files extends APIResource {
|
|
|
5142
5129
|
return this._client.getAPIList('/files', (CursorPage), { query, ...options });
|
|
5143
5130
|
}
|
|
5144
5131
|
/**
|
|
5145
|
-
* Delete a file.
|
|
5132
|
+
* Delete a file and remove it from all vector stores.
|
|
5146
5133
|
*/
|
|
5147
5134
|
delete(fileID, options) {
|
|
5148
5135
|
return this._client.delete(path `/files/${fileID}`, options);
|