@vidispine/api 25.4.1 → 25.4.3
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.d.ts +31 -0
- package/dist/index.js +45 -8
- package/dist/index.umd.cjs +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -33925,6 +33925,37 @@ declare const Storage_2: {
|
|
|
33925
33925
|
headers?: VidiCoreRequestHeaderConfig;
|
|
33926
33926
|
requestConfig?: AxiosRequestConfig;
|
|
33927
33927
|
}) => Promise<AxiosResponse<FileDocument>>;
|
|
33928
|
+
/**
|
|
33929
|
+
* `POST /API/storage/file/{fileId}/data-passkey`
|
|
33930
|
+
*
|
|
33931
|
+
* Upload Storage Raw File By Pass Key
|
|
33932
|
+
*
|
|
33933
|
+
*
|
|
33934
|
+
* - contentType: `application/octet-stream`
|
|
33935
|
+
* - accept: `application/json`
|
|
33936
|
+
*
|
|
33937
|
+
* @param {object} options
|
|
33938
|
+
* @param {object} options.pathParams - Path parameters
|
|
33939
|
+
* @param {string} options.pathParams.fileId
|
|
33940
|
+
* @param {object} [options.queryParams] - Query parameters
|
|
33941
|
+
* @param {string} [options.queryParams.transferId] - An id to assign the transfer to be able to refer to it.
|
|
33942
|
+
* @param {string} [options.queryParams.resourceTag] - New in version 25.4. The resource tag criteria used to select transcoders for the job. Boolean operators - AND, OR, NOT - are supported. Examples: resourceTag=location:stockholm, resourceTag=location:stockhom OR location:berlin, resourceTag=(location:stockhom OR location:berlin) AND (type:blue OR NOT type:red).
|
|
33943
|
+
* @param {AxiosRequestConfig} [options.requestConfig] - Use to override axios request configurations.
|
|
33944
|
+
* @param {VidiCoreRequestHeaderConfig} [options.headers] - Add headers to request
|
|
33945
|
+
* @returns {Promise<AxiosResponse<FileDocument>>} Promise<AxiosResponse<FileDocument>>
|
|
33946
|
+
*/
|
|
33947
|
+
uploadStorageRawFileByPasskey: ({ pathParams: { fileId }, queryParams, data, headers, requestConfig, }: {
|
|
33948
|
+
pathParams: {
|
|
33949
|
+
fileId: string;
|
|
33950
|
+
};
|
|
33951
|
+
queryParams?: {
|
|
33952
|
+
transferId?: string;
|
|
33953
|
+
resourceTag?: string;
|
|
33954
|
+
};
|
|
33955
|
+
data: string;
|
|
33956
|
+
headers?: VidiCoreRequestHeaderConfig;
|
|
33957
|
+
requestConfig?: AxiosRequestConfig;
|
|
33958
|
+
}) => Promise<AxiosResponse<FileDocument>>;
|
|
33928
33959
|
/**
|
|
33929
33960
|
* `GET /API/storage/file/{fileId}/deletion-lock`
|
|
33930
33961
|
*
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Buffer as u } from "buffer";
|
|
2
2
|
import m from "axios";
|
|
3
|
-
const d = (a) => typeof a == "object" && !Array.isArray(a) && a !== null, $ = (a) => u.from(a, "binary").toString("base64"),
|
|
3
|
+
const d = (a) => typeof a == "object" && !Array.isArray(a) && a !== null, $ = (a) => u.from(a, "binary").toString("base64"), T = ({
|
|
4
4
|
username: a,
|
|
5
5
|
password: e,
|
|
6
6
|
token: t,
|
|
@@ -26,7 +26,7 @@ const d = (a) => typeof a == "object" && !Array.isArray(a) && a !== null, $ = (a
|
|
|
26
26
|
default:
|
|
27
27
|
return a;
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, I = (a = {}) => {
|
|
30
30
|
const e = Object.entries(a).filter(([, o]) => !d(o)).map(
|
|
31
31
|
([o, r]) => `${h(o)}=${Array.isArray(r) ? r.map(encodeURIComponent).join(",") : encodeURIComponent(r)}`
|
|
32
32
|
), t = Object.entries(a).filter(([, o]) => d(o)).flatMap(([o, r]) => [
|
|
@@ -46,9 +46,9 @@ function i({
|
|
|
46
46
|
}) {
|
|
47
47
|
const r = {
|
|
48
48
|
params: a,
|
|
49
|
-
headers:
|
|
49
|
+
headers: T(e),
|
|
50
50
|
paramsSerializer: {
|
|
51
|
-
serialize:
|
|
51
|
+
serialize: I
|
|
52
52
|
},
|
|
53
53
|
...o
|
|
54
54
|
};
|
|
@@ -30193,7 +30193,7 @@ const y = {
|
|
|
30193
30193
|
queryParams: a,
|
|
30194
30194
|
...t
|
|
30195
30195
|
})
|
|
30196
|
-
},
|
|
30196
|
+
}, Ta = {
|
|
30197
30197
|
/**
|
|
30198
30198
|
* `GET /API/secret`
|
|
30199
30199
|
*
|
|
@@ -30371,7 +30371,7 @@ const y = {
|
|
|
30371
30371
|
data: t ?? "",
|
|
30372
30372
|
...r
|
|
30373
30373
|
})
|
|
30374
|
-
},
|
|
30374
|
+
}, Ia = {
|
|
30375
30375
|
/**
|
|
30376
30376
|
* `GET /API/selftest`
|
|
30377
30377
|
*
|
|
@@ -37612,6 +37612,43 @@ const y = {
|
|
|
37612
37612
|
data: t ?? "",
|
|
37613
37613
|
...r
|
|
37614
37614
|
}),
|
|
37615
|
+
/**
|
|
37616
|
+
* `POST /API/storage/file/{fileId}/data-passkey`
|
|
37617
|
+
*
|
|
37618
|
+
* Upload Storage Raw File By Pass Key
|
|
37619
|
+
*
|
|
37620
|
+
*
|
|
37621
|
+
* - contentType: `application/octet-stream`
|
|
37622
|
+
* - accept: `application/json`
|
|
37623
|
+
*
|
|
37624
|
+
* @param {object} options
|
|
37625
|
+
* @param {object} options.pathParams - Path parameters
|
|
37626
|
+
* @param {string} options.pathParams.fileId
|
|
37627
|
+
* @param {object} [options.queryParams] - Query parameters
|
|
37628
|
+
* @param {string} [options.queryParams.transferId] - An id to assign the transfer to be able to refer to it.
|
|
37629
|
+
* @param {string} [options.queryParams.resourceTag] - New in version 25.4. The resource tag criteria used to select transcoders for the job. Boolean operators - AND, OR, NOT - are supported. Examples: resourceTag=location:stockholm, resourceTag=location:stockhom OR location:berlin, resourceTag=(location:stockhom OR location:berlin) AND (type:blue OR NOT type:red).
|
|
37630
|
+
* @param {AxiosRequestConfig} [options.requestConfig] - Use to override axios request configurations.
|
|
37631
|
+
* @param {VidiCoreRequestHeaderConfig} [options.headers] - Add headers to request
|
|
37632
|
+
* @returns {Promise<AxiosResponse<FileDocument>>} Promise<AxiosResponse<FileDocument>>
|
|
37633
|
+
*/
|
|
37634
|
+
uploadStorageRawFileByPasskey: ({
|
|
37635
|
+
pathParams: { fileId: a },
|
|
37636
|
+
queryParams: e,
|
|
37637
|
+
data: t,
|
|
37638
|
+
headers: o,
|
|
37639
|
+
requestConfig: r
|
|
37640
|
+
}) => i({
|
|
37641
|
+
method: "POST",
|
|
37642
|
+
url: `/API/storage/file/${a}/data-passkey`,
|
|
37643
|
+
headers: {
|
|
37644
|
+
contentType: "application/octet-stream",
|
|
37645
|
+
accept: "application/json",
|
|
37646
|
+
...o ?? {}
|
|
37647
|
+
},
|
|
37648
|
+
queryParams: e,
|
|
37649
|
+
data: t ?? "",
|
|
37650
|
+
...r
|
|
37651
|
+
}),
|
|
37615
37652
|
/**
|
|
37616
37653
|
* `GET /API/storage/file/{fileId}/deletion-lock`
|
|
37617
37654
|
*
|
|
@@ -48844,8 +48881,8 @@ export {
|
|
|
48844
48881
|
Pa as ScheduledRequest,
|
|
48845
48882
|
ua as Schema,
|
|
48846
48883
|
$a as Search,
|
|
48847
|
-
|
|
48848
|
-
|
|
48884
|
+
Ta as Secret,
|
|
48885
|
+
Ia as Selftest,
|
|
48849
48886
|
Ea as Sequence,
|
|
48850
48887
|
Aa as Shape,
|
|
48851
48888
|
ga as ShapeTag,
|