@sync.so/sdk 0.1.8 → 0.1.9
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/README.md +2 -2
- package/api/resources/generations/client/Client.d.ts +4 -4
- package/api/resources/generations/client/Client.js +8 -8
- package/dist/api/resources/generations/client/Client.d.ts +4 -4
- package/dist/api/resources/generations/client/Client.js +8 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/README.md
CHANGED
|
@@ -31,11 +31,11 @@ await client.generations.create({
|
|
|
31
31
|
input: [
|
|
32
32
|
{
|
|
33
33
|
type: "video",
|
|
34
|
-
url: "https://
|
|
34
|
+
url: "https://assets.sync.so/docs/example-video.mp4",
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
type: "audio",
|
|
38
|
-
url: "https://
|
|
38
|
+
url: "https://assets.sync.so/docs/example-audio.wav",
|
|
39
39
|
},
|
|
40
40
|
],
|
|
41
41
|
model: "lipsync-2",
|
|
@@ -38,10 +38,10 @@ export declare class Generations {
|
|
|
38
38
|
* await client.generations.create({
|
|
39
39
|
* input: [{
|
|
40
40
|
* type: "video",
|
|
41
|
-
* url: "https://
|
|
41
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
42
42
|
* }, {
|
|
43
43
|
* type: "audio",
|
|
44
|
-
* url: "https://
|
|
44
|
+
* url: "https://assets.sync.so/docs/example-audio.wav"
|
|
45
45
|
* }],
|
|
46
46
|
* model: "lipsync-2",
|
|
47
47
|
* options: {
|
|
@@ -87,10 +87,10 @@ export declare class Generations {
|
|
|
87
87
|
* await client.generations.estimateCost({
|
|
88
88
|
* input: [{
|
|
89
89
|
* type: "video",
|
|
90
|
-
* url: "https://
|
|
90
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
91
91
|
* }, {
|
|
92
92
|
* type: "audio",
|
|
93
|
-
* url: "https://
|
|
93
|
+
* url: "https://assets.sync.so/docs/example-audio.wav"
|
|
94
94
|
* }],
|
|
95
95
|
* model: "lipsync-2",
|
|
96
96
|
* options: {
|
|
@@ -70,10 +70,10 @@ class Generations {
|
|
|
70
70
|
* await client.generations.create({
|
|
71
71
|
* input: [{
|
|
72
72
|
* type: "video",
|
|
73
|
-
* url: "https://
|
|
73
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
74
74
|
* }, {
|
|
75
75
|
* type: "audio",
|
|
76
|
-
* url: "https://
|
|
76
|
+
* url: "https://assets.sync.so/docs/example-audio.wav"
|
|
77
77
|
* }],
|
|
78
78
|
* model: "lipsync-2",
|
|
79
79
|
* options: {
|
|
@@ -90,7 +90,7 @@ class Generations {
|
|
|
90
90
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
91
91
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, "/v2/generate"),
|
|
92
92
|
method: "POST",
|
|
93
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.
|
|
93
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@sync.so/sdk/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
requestType: "json",
|
|
96
96
|
body: request,
|
|
@@ -154,7 +154,7 @@ class Generations {
|
|
|
154
154
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
155
155
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, `/v2/generate/${encodeURIComponent(id)}`),
|
|
156
156
|
method: "GET",
|
|
157
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.
|
|
157
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@sync.so/sdk/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
158
158
|
contentType: "application/json",
|
|
159
159
|
requestType: "json",
|
|
160
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -221,7 +221,7 @@ class Generations {
|
|
|
221
221
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
222
222
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, "/v2/generations"),
|
|
223
223
|
method: "GET",
|
|
224
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.
|
|
224
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@sync.so/sdk/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
225
225
|
contentType: "application/json",
|
|
226
226
|
queryParameters: _queryParams,
|
|
227
227
|
requestType: "json",
|
|
@@ -274,10 +274,10 @@ class Generations {
|
|
|
274
274
|
* await client.generations.estimateCost({
|
|
275
275
|
* input: [{
|
|
276
276
|
* type: "video",
|
|
277
|
-
* url: "https://
|
|
277
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
278
278
|
* }, {
|
|
279
279
|
* type: "audio",
|
|
280
|
-
* url: "https://
|
|
280
|
+
* url: "https://assets.sync.so/docs/example-audio.wav"
|
|
281
281
|
* }],
|
|
282
282
|
* model: "lipsync-2",
|
|
283
283
|
* options: {
|
|
@@ -294,7 +294,7 @@ class Generations {
|
|
|
294
294
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
295
295
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, "/v2/analyze/cost"),
|
|
296
296
|
method: "POST",
|
|
297
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.
|
|
297
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@sync.so/sdk/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
298
298
|
contentType: "application/json",
|
|
299
299
|
requestType: "json",
|
|
300
300
|
body: request,
|
|
@@ -38,10 +38,10 @@ export declare class Generations {
|
|
|
38
38
|
* await client.generations.create({
|
|
39
39
|
* input: [{
|
|
40
40
|
* type: "video",
|
|
41
|
-
* url: "https://
|
|
41
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
42
42
|
* }, {
|
|
43
43
|
* type: "audio",
|
|
44
|
-
* url: "https://
|
|
44
|
+
* url: "https://assets.sync.so/docs/example-audio.wav"
|
|
45
45
|
* }],
|
|
46
46
|
* model: "lipsync-2",
|
|
47
47
|
* options: {
|
|
@@ -87,10 +87,10 @@ export declare class Generations {
|
|
|
87
87
|
* await client.generations.estimateCost({
|
|
88
88
|
* input: [{
|
|
89
89
|
* type: "video",
|
|
90
|
-
* url: "https://
|
|
90
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
91
91
|
* }, {
|
|
92
92
|
* type: "audio",
|
|
93
|
-
* url: "https://
|
|
93
|
+
* url: "https://assets.sync.so/docs/example-audio.wav"
|
|
94
94
|
* }],
|
|
95
95
|
* model: "lipsync-2",
|
|
96
96
|
* options: {
|
|
@@ -70,10 +70,10 @@ class Generations {
|
|
|
70
70
|
* await client.generations.create({
|
|
71
71
|
* input: [{
|
|
72
72
|
* type: "video",
|
|
73
|
-
* url: "https://
|
|
73
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
74
74
|
* }, {
|
|
75
75
|
* type: "audio",
|
|
76
|
-
* url: "https://
|
|
76
|
+
* url: "https://assets.sync.so/docs/example-audio.wav"
|
|
77
77
|
* }],
|
|
78
78
|
* model: "lipsync-2",
|
|
79
79
|
* options: {
|
|
@@ -90,7 +90,7 @@ class Generations {
|
|
|
90
90
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
91
91
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, "/v2/generate"),
|
|
92
92
|
method: "POST",
|
|
93
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.
|
|
93
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@sync.so/sdk/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
requestType: "json",
|
|
96
96
|
body: request,
|
|
@@ -154,7 +154,7 @@ class Generations {
|
|
|
154
154
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
155
155
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, `/v2/generate/${encodeURIComponent(id)}`),
|
|
156
156
|
method: "GET",
|
|
157
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.
|
|
157
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@sync.so/sdk/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
158
158
|
contentType: "application/json",
|
|
159
159
|
requestType: "json",
|
|
160
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -221,7 +221,7 @@ class Generations {
|
|
|
221
221
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
222
222
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, "/v2/generations"),
|
|
223
223
|
method: "GET",
|
|
224
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.
|
|
224
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@sync.so/sdk/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
225
225
|
contentType: "application/json",
|
|
226
226
|
queryParameters: _queryParams,
|
|
227
227
|
requestType: "json",
|
|
@@ -274,10 +274,10 @@ class Generations {
|
|
|
274
274
|
* await client.generations.estimateCost({
|
|
275
275
|
* input: [{
|
|
276
276
|
* type: "video",
|
|
277
|
-
* url: "https://
|
|
277
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
278
278
|
* }, {
|
|
279
279
|
* type: "audio",
|
|
280
|
-
* url: "https://
|
|
280
|
+
* url: "https://assets.sync.so/docs/example-audio.wav"
|
|
281
281
|
* }],
|
|
282
282
|
* model: "lipsync-2",
|
|
283
283
|
* options: {
|
|
@@ -294,7 +294,7 @@ class Generations {
|
|
|
294
294
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
295
295
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, "/v2/analyze/cost"),
|
|
296
296
|
method: "POST",
|
|
297
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.
|
|
297
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@sync.so/sdk/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
298
298
|
contentType: "application/json",
|
|
299
299
|
requestType: "json",
|
|
300
300
|
body: request,
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.9";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -19,11 +19,11 @@ await client.generations.create({
|
|
|
19
19
|
input: [
|
|
20
20
|
{
|
|
21
21
|
type: "video",
|
|
22
|
-
url: "https://
|
|
22
|
+
url: "https://assets.sync.so/docs/example-video.mp4",
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
type: "audio",
|
|
26
|
-
url: "https://
|
|
26
|
+
url: "https://assets.sync.so/docs/example-audio.wav",
|
|
27
27
|
},
|
|
28
28
|
],
|
|
29
29
|
model: "lipsync-2",
|
|
@@ -178,11 +178,11 @@ await client.generations.estimateCost({
|
|
|
178
178
|
input: [
|
|
179
179
|
{
|
|
180
180
|
type: "video",
|
|
181
|
-
url: "https://
|
|
181
|
+
url: "https://assets.sync.so/docs/example-video.mp4",
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
type: "audio",
|
|
185
|
-
url: "https://
|
|
185
|
+
url: "https://assets.sync.so/docs/example-audio.wav",
|
|
186
186
|
},
|
|
187
187
|
],
|
|
188
188
|
model: "lipsync-2",
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.9";
|
package/version.js
CHANGED