@discomedia/utils 1.0.63 → 1.0.64
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 +31 -5
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +31 -5
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +310 -208
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +310 -208
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/dist/test.js +310 -208
- package/dist/test.js.map +1 -1
- package/dist/types/alpaca-market-data-api.d.ts.map +1 -1
- package/dist/types/alpaca-trading-api.d.ts +8 -1
- package/dist/types/alpaca-trading-api.d.ts.map +1 -1
- package/dist/types/types/alpaca-types.d.ts +29 -0
- package/dist/types/types/alpaca-types.d.ts.map +1 -1
- package/dist/types-frontend/alpaca-market-data-api.d.ts.map +1 -1
- package/dist/types-frontend/alpaca-trading-api.d.ts +8 -1
- package/dist/types-frontend/alpaca-trading-api.d.ts.map +1 -1
- package/dist/types-frontend/types/alpaca-types.d.ts +29 -0
- package/dist/types-frontend/types/alpaca-types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index-frontend.cjs
CHANGED
|
@@ -262,7 +262,7 @@ const safeJSON = (text) => {
|
|
|
262
262
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
263
263
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
264
264
|
|
|
265
|
-
const VERSION = '6.
|
|
265
|
+
const VERSION = '6.31.0'; // x-release-please-version
|
|
266
266
|
|
|
267
267
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
268
268
|
const isRunningInBrowser = () => {
|
|
@@ -3506,7 +3506,7 @@ class Speech extends APIResource {
|
|
|
3506
3506
|
* const speech = await client.audio.speech.create({
|
|
3507
3507
|
* input: 'input',
|
|
3508
3508
|
* model: 'string',
|
|
3509
|
-
* voice: '
|
|
3509
|
+
* voice: 'string',
|
|
3510
3510
|
* });
|
|
3511
3511
|
*
|
|
3512
3512
|
* const content = await speech.blob();
|
|
@@ -6787,7 +6787,7 @@ class Videos extends APIResource {
|
|
|
6787
6787
|
* Create a new video generation job from a prompt and optional reference assets.
|
|
6788
6788
|
*/
|
|
6789
6789
|
create(body, options) {
|
|
6790
|
-
return this._client.post('/videos',
|
|
6790
|
+
return this._client.post('/videos', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
6791
6791
|
}
|
|
6792
6792
|
/**
|
|
6793
6793
|
* Fetch the latest metadata for a generated video.
|
|
@@ -6807,6 +6807,12 @@ class Videos extends APIResource {
|
|
|
6807
6807
|
delete(videoID, options) {
|
|
6808
6808
|
return this._client.delete(path `/videos/${videoID}`, options);
|
|
6809
6809
|
}
|
|
6810
|
+
/**
|
|
6811
|
+
* Create a character from an uploaded video.
|
|
6812
|
+
*/
|
|
6813
|
+
createCharacter(body, options) {
|
|
6814
|
+
return this._client.post('/videos/characters', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
6815
|
+
}
|
|
6810
6816
|
/**
|
|
6811
6817
|
* Download the generated video bytes or a derived preview asset.
|
|
6812
6818
|
*
|
|
@@ -6820,6 +6826,25 @@ class Videos extends APIResource {
|
|
|
6820
6826
|
__binaryResponse: true,
|
|
6821
6827
|
});
|
|
6822
6828
|
}
|
|
6829
|
+
/**
|
|
6830
|
+
* Create a new video generation job by editing a source video or existing
|
|
6831
|
+
* generated video.
|
|
6832
|
+
*/
|
|
6833
|
+
edit(body, options) {
|
|
6834
|
+
return this._client.post('/videos/edits', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
6835
|
+
}
|
|
6836
|
+
/**
|
|
6837
|
+
* Create an extension of a completed video.
|
|
6838
|
+
*/
|
|
6839
|
+
extend(body, options) {
|
|
6840
|
+
return this._client.post('/videos/extensions', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
6841
|
+
}
|
|
6842
|
+
/**
|
|
6843
|
+
* Fetch a character.
|
|
6844
|
+
*/
|
|
6845
|
+
getCharacter(characterID, options) {
|
|
6846
|
+
return this._client.get(path `/videos/characters/${characterID}`, options);
|
|
6847
|
+
}
|
|
6823
6848
|
/**
|
|
6824
6849
|
* Create a remix of a completed video using a refreshed prompt.
|
|
6825
6850
|
*/
|
|
@@ -7101,8 +7126,9 @@ class OpenAI {
|
|
|
7101
7126
|
new URL(path)
|
|
7102
7127
|
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
|
|
7103
7128
|
const defaultQuery = this.defaultQuery();
|
|
7104
|
-
|
|
7105
|
-
|
|
7129
|
+
const pathQuery = Object.fromEntries(url.searchParams);
|
|
7130
|
+
if (!isEmptyObj$1(defaultQuery) || !isEmptyObj$1(pathQuery)) {
|
|
7131
|
+
query = { ...pathQuery, ...defaultQuery, ...query };
|
|
7106
7132
|
}
|
|
7107
7133
|
if (typeof query === 'object' && query && !Array.isArray(query)) {
|
|
7108
7134
|
url.search = this.stringifyQuery(query);
|