@vidispine/api 25.4.2 → 25.4.4

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 CHANGED
@@ -33925,6 +33925,36 @@ 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&lt;AxiosResponse&lt;FileDocument&gt;&gt;
33946
+ */
33947
+ uploadStorageRawFileByPasskey: ({ pathParams: { fileId }, queryParams, headers, requestConfig, }: {
33948
+ pathParams: {
33949
+ fileId: string;
33950
+ };
33951
+ queryParams?: {
33952
+ transferId?: string;
33953
+ resourceTag?: string;
33954
+ };
33955
+ headers?: VidiCoreRequestHeaderConfig;
33956
+ requestConfig?: AxiosRequestConfig;
33957
+ }) => Promise<AxiosResponse<FileDocument>>;
33928
33958
  /**
33929
33959
  * `GET /API/storage/file/{fileId}/deletion-lock`
33930
33960
  *
@@ -35843,8 +35873,10 @@ declare const Storage_2: {
35843
35873
  range?: string;
35844
35874
  state?: string;
35845
35875
  uri?: string;
35876
+ generateFilename?: boolean;
35877
+ extension?: string;
35846
35878
  };
35847
- data: FileDocument;
35879
+ data?: FileDocument;
35848
35880
  headers?: VidiCoreRequestHeaderConfig;
35849
35881
  requestConfig?: AxiosRequestConfig;
35850
35882
  }) => Promise<AxiosResponse<FileDocument>>;
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"), I = ({
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
- }, T = (a = {}) => {
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: I(e),
49
+ headers: T(e),
50
50
  paramsSerializer: {
51
- serialize: T
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
- }, Ia = {
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
- }, Ta = {
30374
+ }, Ia = {
30375
30375
  /**
30376
30376
  * `GET /API/selftest`
30377
30377
  *
@@ -37612,6 +37612,41 @@ 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&lt;AxiosResponse&lt;FileDocument&gt;&gt;
37633
+ */
37634
+ uploadStorageRawFileByPasskey: ({
37635
+ pathParams: { fileId: a },
37636
+ queryParams: e,
37637
+ headers: t,
37638
+ requestConfig: o
37639
+ }) => i({
37640
+ method: "POST",
37641
+ url: `/API/storage/file/${a}/data-passkey`,
37642
+ headers: {
37643
+ contentType: "application/octet-stream",
37644
+ accept: "application/json",
37645
+ ...t ?? {}
37646
+ },
37647
+ queryParams: e,
37648
+ ...o
37649
+ }),
37615
37650
  /**
37616
37651
  * `GET /API/storage/file/{fileId}/deletion-lock`
37617
37652
  *
@@ -48844,8 +48879,8 @@ export {
48844
48879
  Pa as ScheduledRequest,
48845
48880
  ua as Schema,
48846
48881
  $a as Search,
48847
- Ia as Secret,
48848
- Ta as Selftest,
48882
+ Ta as Secret,
48883
+ Ia as Selftest,
48849
48884
  Ea as Sequence,
48850
48885
  Aa as Shape,
48851
48886
  ga as ShapeTag,