@hautechai/sdk 0.3.24 → 0.3.25

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.
@@ -1432,6 +1432,32 @@ export interface GetUrlsForImagesParamsDto {
1432
1432
  */
1433
1433
  'ids': Array<string>;
1434
1434
  }
1435
+ /**
1436
+ *
1437
+ * @export
1438
+ * @interface GetVideoParamsDto
1439
+ */
1440
+ export interface GetVideoParamsDto {
1441
+ /**
1442
+ *
1443
+ * @type {string}
1444
+ * @memberof GetVideoParamsDto
1445
+ */
1446
+ 'id': string;
1447
+ }
1448
+ /**
1449
+ *
1450
+ * @export
1451
+ * @interface GetVideosParamsDto
1452
+ */
1453
+ export interface GetVideosParamsDto {
1454
+ /**
1455
+ *
1456
+ * @type {Array<string>}
1457
+ * @memberof GetVideosParamsDto
1458
+ */
1459
+ 'ids': Array<string>;
1460
+ }
1435
1461
  /**
1436
1462
  *
1437
1463
  * @export
@@ -4942,6 +4968,25 @@ export declare const VideoEntityKindEnum: {
4942
4968
  readonly Pipeline: "pipeline";
4943
4969
  };
4944
4970
  export type VideoEntityKindEnum = typeof VideoEntityKindEnum[keyof typeof VideoEntityKindEnum];
4971
+ /**
4972
+ *
4973
+ * @export
4974
+ * @interface VideoUrlResponseDto
4975
+ */
4976
+ export interface VideoUrlResponseDto {
4977
+ /**
4978
+ *
4979
+ * @type {string}
4980
+ * @memberof VideoUrlResponseDto
4981
+ */
4982
+ 'id': string;
4983
+ /**
4984
+ *
4985
+ * @type {string}
4986
+ * @memberof VideoUrlResponseDto
4987
+ */
4988
+ 'url': string;
4989
+ }
4945
4990
  /**
4946
4991
  *
4947
4992
  * @export
@@ -5998,6 +6043,20 @@ export declare const CallApiAxiosParamCreator: (configuration?: Configuration) =
5998
6043
  * @throws {RequiredError}
5999
6044
  */
6000
6045
  callControllerCallStorageUpdateV1: (updateStorageRecordParamsDto: UpdateStorageRecordParamsDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6046
+ /**
6047
+ *
6048
+ * @param {GetVideosParamsDto} getVideosParamsDto
6049
+ * @param {*} [options] Override http request option.
6050
+ * @throws {RequiredError}
6051
+ */
6052
+ callControllerCallVideosGetManyV1: (getVideosParamsDto: GetVideosParamsDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6053
+ /**
6054
+ *
6055
+ * @param {GetVideoParamsDto} getVideoParamsDto
6056
+ * @param {*} [options] Override http request option.
6057
+ * @throws {RequiredError}
6058
+ */
6059
+ callControllerCallVideosGetV1: (getVideoParamsDto: GetVideoParamsDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6001
6060
  };
6002
6061
  /**
6003
6062
  * CallApi - functional programming interface
@@ -6459,6 +6518,20 @@ export declare const CallApiFp: (configuration?: Configuration) => {
6459
6518
  * @throws {RequiredError}
6460
6519
  */
6461
6520
  callControllerCallStorageUpdateV1(updateStorageRecordParamsDto: UpdateStorageRecordParamsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StorageEntity>>;
6521
+ /**
6522
+ *
6523
+ * @param {GetVideosParamsDto} getVideosParamsDto
6524
+ * @param {*} [options] Override http request option.
6525
+ * @throws {RequiredError}
6526
+ */
6527
+ callControllerCallVideosGetManyV1(getVideosParamsDto: GetVideosParamsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VideoUrlResponseDto>>>;
6528
+ /**
6529
+ *
6530
+ * @param {GetVideoParamsDto} getVideoParamsDto
6531
+ * @param {*} [options] Override http request option.
6532
+ * @throws {RequiredError}
6533
+ */
6534
+ callControllerCallVideosGetV1(getVideoParamsDto: GetVideoParamsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VideoEntity>>;
6462
6535
  };
6463
6536
  /**
6464
6537
  * CallApi - factory interface
@@ -6920,6 +6993,20 @@ export declare const CallApiFactory: (configuration?: Configuration, basePath?:
6920
6993
  * @throws {RequiredError}
6921
6994
  */
6922
6995
  callControllerCallStorageUpdateV1(updateStorageRecordParamsDto: UpdateStorageRecordParamsDto, options?: RawAxiosRequestConfig): AxiosPromise<StorageEntity>;
6996
+ /**
6997
+ *
6998
+ * @param {GetVideosParamsDto} getVideosParamsDto
6999
+ * @param {*} [options] Override http request option.
7000
+ * @throws {RequiredError}
7001
+ */
7002
+ callControllerCallVideosGetManyV1(getVideosParamsDto: GetVideosParamsDto, options?: RawAxiosRequestConfig): AxiosPromise<Array<VideoUrlResponseDto>>;
7003
+ /**
7004
+ *
7005
+ * @param {GetVideoParamsDto} getVideoParamsDto
7006
+ * @param {*} [options] Override http request option.
7007
+ * @throws {RequiredError}
7008
+ */
7009
+ callControllerCallVideosGetV1(getVideoParamsDto: GetVideoParamsDto, options?: RawAxiosRequestConfig): AxiosPromise<VideoEntity>;
6923
7010
  };
6924
7011
  /**
6925
7012
  * CallApi - object-oriented interface
@@ -7448,6 +7535,22 @@ export declare class CallApi extends BaseAPI {
7448
7535
  * @memberof CallApi
7449
7536
  */
7450
7537
  callControllerCallStorageUpdateV1(updateStorageRecordParamsDto: UpdateStorageRecordParamsDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StorageEntity, any>>;
7538
+ /**
7539
+ *
7540
+ * @param {GetVideosParamsDto} getVideosParamsDto
7541
+ * @param {*} [options] Override http request option.
7542
+ * @throws {RequiredError}
7543
+ * @memberof CallApi
7544
+ */
7545
+ callControllerCallVideosGetManyV1(getVideosParamsDto: GetVideosParamsDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VideoUrlResponseDto[], any>>;
7546
+ /**
7547
+ *
7548
+ * @param {GetVideoParamsDto} getVideoParamsDto
7549
+ * @param {*} [options] Override http request option.
7550
+ * @throws {RequiredError}
7551
+ * @memberof CallApi
7552
+ */
7553
+ callControllerCallVideosGetV1(getVideoParamsDto: GetVideoParamsDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VideoEntity, any>>;
7451
7554
  }
7452
7555
  /**
7453
7556
  * CollectionsApi - axios parameter creator
@@ -3476,6 +3476,70 @@ export const CallApiAxiosParamCreator = function (configuration) {
3476
3476
  options: localVarRequestOptions,
3477
3477
  };
3478
3478
  },
3479
+ /**
3480
+ *
3481
+ * @param {GetVideosParamsDto} getVideosParamsDto
3482
+ * @param {*} [options] Override http request option.
3483
+ * @throws {RequiredError}
3484
+ */
3485
+ callControllerCallVideosGetManyV1: async (getVideosParamsDto, options = {}) => {
3486
+ // verify required parameter 'getVideosParamsDto' is not null or undefined
3487
+ assertParamExists('callControllerCallVideosGetManyV1', 'getVideosParamsDto', getVideosParamsDto);
3488
+ const localVarPath = `/v1/call/videos.getMany`;
3489
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3490
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3491
+ let baseOptions;
3492
+ if (configuration) {
3493
+ baseOptions = configuration.baseOptions;
3494
+ }
3495
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3496
+ const localVarHeaderParameter = {};
3497
+ const localVarQueryParameter = {};
3498
+ // authentication bearer required
3499
+ // http bearer authentication required
3500
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3501
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3502
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3503
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3504
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3505
+ localVarRequestOptions.data = serializeDataIfNeeded(getVideosParamsDto, localVarRequestOptions, configuration);
3506
+ return {
3507
+ url: toPathString(localVarUrlObj),
3508
+ options: localVarRequestOptions,
3509
+ };
3510
+ },
3511
+ /**
3512
+ *
3513
+ * @param {GetVideoParamsDto} getVideoParamsDto
3514
+ * @param {*} [options] Override http request option.
3515
+ * @throws {RequiredError}
3516
+ */
3517
+ callControllerCallVideosGetV1: async (getVideoParamsDto, options = {}) => {
3518
+ // verify required parameter 'getVideoParamsDto' is not null or undefined
3519
+ assertParamExists('callControllerCallVideosGetV1', 'getVideoParamsDto', getVideoParamsDto);
3520
+ const localVarPath = `/v1/call/videos.get`;
3521
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3522
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3523
+ let baseOptions;
3524
+ if (configuration) {
3525
+ baseOptions = configuration.baseOptions;
3526
+ }
3527
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3528
+ const localVarHeaderParameter = {};
3529
+ const localVarQueryParameter = {};
3530
+ // authentication bearer required
3531
+ // http bearer authentication required
3532
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3533
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3534
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3535
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3536
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3537
+ localVarRequestOptions.data = serializeDataIfNeeded(getVideoParamsDto, localVarRequestOptions, configuration);
3538
+ return {
3539
+ url: toPathString(localVarUrlObj),
3540
+ options: localVarRequestOptions,
3541
+ };
3542
+ },
3479
3543
  };
3480
3544
  };
3481
3545
  /**
@@ -4265,6 +4329,30 @@ export const CallApiFp = function (configuration) {
4265
4329
  const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallStorageUpdateV1']?.[localVarOperationServerIndex]?.url;
4266
4330
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4267
4331
  },
4332
+ /**
4333
+ *
4334
+ * @param {GetVideosParamsDto} getVideosParamsDto
4335
+ * @param {*} [options] Override http request option.
4336
+ * @throws {RequiredError}
4337
+ */
4338
+ async callControllerCallVideosGetManyV1(getVideosParamsDto, options) {
4339
+ const localVarAxiosArgs = await localVarAxiosParamCreator.callControllerCallVideosGetManyV1(getVideosParamsDto, options);
4340
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4341
+ const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallVideosGetManyV1']?.[localVarOperationServerIndex]?.url;
4342
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4343
+ },
4344
+ /**
4345
+ *
4346
+ * @param {GetVideoParamsDto} getVideoParamsDto
4347
+ * @param {*} [options] Override http request option.
4348
+ * @throws {RequiredError}
4349
+ */
4350
+ async callControllerCallVideosGetV1(getVideoParamsDto, options) {
4351
+ const localVarAxiosArgs = await localVarAxiosParamCreator.callControllerCallVideosGetV1(getVideoParamsDto, options);
4352
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4353
+ const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallVideosGetV1']?.[localVarOperationServerIndex]?.url;
4354
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4355
+ },
4268
4356
  };
4269
4357
  };
4270
4358
  /**
@@ -4859,6 +4947,24 @@ export const CallApiFactory = function (configuration, basePath, axios) {
4859
4947
  callControllerCallStorageUpdateV1(updateStorageRecordParamsDto, options) {
4860
4948
  return localVarFp.callControllerCallStorageUpdateV1(updateStorageRecordParamsDto, options).then((request) => request(axios, basePath));
4861
4949
  },
4950
+ /**
4951
+ *
4952
+ * @param {GetVideosParamsDto} getVideosParamsDto
4953
+ * @param {*} [options] Override http request option.
4954
+ * @throws {RequiredError}
4955
+ */
4956
+ callControllerCallVideosGetManyV1(getVideosParamsDto, options) {
4957
+ return localVarFp.callControllerCallVideosGetManyV1(getVideosParamsDto, options).then((request) => request(axios, basePath));
4958
+ },
4959
+ /**
4960
+ *
4961
+ * @param {GetVideoParamsDto} getVideoParamsDto
4962
+ * @param {*} [options] Override http request option.
4963
+ * @throws {RequiredError}
4964
+ */
4965
+ callControllerCallVideosGetV1(getVideoParamsDto, options) {
4966
+ return localVarFp.callControllerCallVideosGetV1(getVideoParamsDto, options).then((request) => request(axios, basePath));
4967
+ },
4862
4968
  };
4863
4969
  };
4864
4970
  /**
@@ -5518,6 +5624,26 @@ export class CallApi extends BaseAPI {
5518
5624
  callControllerCallStorageUpdateV1(updateStorageRecordParamsDto, options) {
5519
5625
  return CallApiFp(this.configuration).callControllerCallStorageUpdateV1(updateStorageRecordParamsDto, options).then((request) => request(this.axios, this.basePath));
5520
5626
  }
5627
+ /**
5628
+ *
5629
+ * @param {GetVideosParamsDto} getVideosParamsDto
5630
+ * @param {*} [options] Override http request option.
5631
+ * @throws {RequiredError}
5632
+ * @memberof CallApi
5633
+ */
5634
+ callControllerCallVideosGetManyV1(getVideosParamsDto, options) {
5635
+ return CallApiFp(this.configuration).callControllerCallVideosGetManyV1(getVideosParamsDto, options).then((request) => request(this.axios, this.basePath));
5636
+ }
5637
+ /**
5638
+ *
5639
+ * @param {GetVideoParamsDto} getVideoParamsDto
5640
+ * @param {*} [options] Override http request option.
5641
+ * @throws {RequiredError}
5642
+ * @memberof CallApi
5643
+ */
5644
+ callControllerCallVideosGetV1(getVideoParamsDto, options) {
5645
+ return CallApiFp(this.configuration).callControllerCallVideosGetV1(getVideoParamsDto, options).then((request) => request(this.axios, this.basePath));
5646
+ }
5521
5647
  }
5522
5648
  /**
5523
5649
  * CollectionsApi - axios parameter creator
@@ -360,6 +360,14 @@ export declare const createSDK: (options: SDKOptions) => {
360
360
  __taskOutput__?: never;
361
361
  }) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
362
362
  };
363
+ videos: {
364
+ get: (params: import("../autogenerated").GetVideoParamsDto & {
365
+ __taskOutput__?: never;
366
+ }) => Promise<import("../autogenerated").VideoEntity>;
367
+ getUrls: (params: import("../autogenerated").GetVideosParamsDto & {
368
+ __taskOutput__?: never;
369
+ }) => Promise<import("../autogenerated").VideoUrlResponseDto[]>;
370
+ };
363
371
  operations: {
364
372
  get: (params: import("../autogenerated").GetOperationParamsDto & {
365
373
  __taskOutput__?: never;
@@ -615,6 +623,14 @@ export declare const createSDK: (options: SDKOptions) => {
615
623
  __taskOutput__?: never;
616
624
  }) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
617
625
  };
626
+ videos: {
627
+ get: (params: import("../autogenerated").GetVideoParamsDto & {
628
+ __taskOutput__?: never;
629
+ }) => Promise<import("../autogenerated").VideoEntity>;
630
+ getUrls: (params: import("../autogenerated").GetVideosParamsDto & {
631
+ __taskOutput__?: never;
632
+ }) => Promise<import("../autogenerated").VideoUrlResponseDto[]>;
633
+ };
618
634
  operations: {
619
635
  get: (params: import("../autogenerated").GetOperationParamsDto & {
620
636
  __taskOutput__?: never;
@@ -870,6 +886,14 @@ export declare const createSDK: (options: SDKOptions) => {
870
886
  __taskOutput__?: never;
871
887
  }) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
872
888
  };
889
+ videos: {
890
+ get: (params: import("../autogenerated").GetVideoParamsDto & {
891
+ __taskOutput__?: never;
892
+ }) => Promise<import("../autogenerated").VideoEntity>;
893
+ getUrls: (params: import("../autogenerated").GetVideosParamsDto & {
894
+ __taskOutput__?: never;
895
+ }) => Promise<import("../autogenerated").VideoUrlResponseDto[]>;
896
+ };
873
897
  operations: {
874
898
  get: (params: import("../autogenerated").GetOperationParamsDto & {
875
899
  __taskOutput__?: never;
@@ -1128,6 +1152,14 @@ export declare const createSDK: (options: SDKOptions) => {
1128
1152
  __taskOutput__?: never;
1129
1153
  }) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
1130
1154
  };
1155
+ videos: {
1156
+ get: (params: import("../autogenerated").GetVideoParamsDto & {
1157
+ __taskOutput__?: never;
1158
+ }) => Promise<import("../autogenerated").VideoEntity>;
1159
+ getUrls: (params: import("../autogenerated").GetVideosParamsDto & {
1160
+ __taskOutput__?: never;
1161
+ }) => Promise<import("../autogenerated").VideoUrlResponseDto[]>;
1162
+ };
1131
1163
  operations: {
1132
1164
  get: (params: import("../autogenerated").GetOperationParamsDto & {
1133
1165
  __taskOutput__?: never;
@@ -88,6 +88,14 @@ declare const pipelines: (options: SDKOptions) => {
88
88
  __taskOutput__?: never;
89
89
  }) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
90
90
  };
91
+ videos: {
92
+ get: (params: import("../../autogenerated").GetVideoParamsDto & {
93
+ __taskOutput__?: never;
94
+ }) => Promise<import("../../autogenerated").VideoEntity>;
95
+ getUrls: (params: import("../../autogenerated").GetVideosParamsDto & {
96
+ __taskOutput__?: never;
97
+ }) => Promise<import("../../autogenerated").VideoUrlResponseDto[]>;
98
+ };
91
99
  operations: {
92
100
  get: (params: import("../../autogenerated").GetOperationParamsDto & {
93
101
  __taskOutput__?: never;
@@ -343,6 +351,14 @@ declare const pipelines: (options: SDKOptions) => {
343
351
  __taskOutput__?: never;
344
352
  }) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
345
353
  };
354
+ videos: {
355
+ get: (params: import("../../autogenerated").GetVideoParamsDto & {
356
+ __taskOutput__?: never;
357
+ }) => Promise<import("../../autogenerated").VideoEntity>;
358
+ getUrls: (params: import("../../autogenerated").GetVideosParamsDto & {
359
+ __taskOutput__?: never;
360
+ }) => Promise<import("../../autogenerated").VideoUrlResponseDto[]>;
361
+ };
346
362
  operations: {
347
363
  get: (params: import("../../autogenerated").GetOperationParamsDto & {
348
364
  __taskOutput__?: never;
@@ -598,6 +614,14 @@ declare const pipelines: (options: SDKOptions) => {
598
614
  __taskOutput__?: never;
599
615
  }) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
600
616
  };
617
+ videos: {
618
+ get: (params: import("../../autogenerated").GetVideoParamsDto & {
619
+ __taskOutput__?: never;
620
+ }) => Promise<import("../../autogenerated").VideoEntity>;
621
+ getUrls: (params: import("../../autogenerated").GetVideosParamsDto & {
622
+ __taskOutput__?: never;
623
+ }) => Promise<import("../../autogenerated").VideoUrlResponseDto[]>;
624
+ };
601
625
  operations: {
602
626
  get: (params: import("../../autogenerated").GetOperationParamsDto & {
603
627
  __taskOutput__?: never;
@@ -856,6 +880,14 @@ declare const pipelines: (options: SDKOptions) => {
856
880
  __taskOutput__?: never;
857
881
  }) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
858
882
  };
883
+ videos: {
884
+ get: (params: import("../../autogenerated").GetVideoParamsDto & {
885
+ __taskOutput__?: never;
886
+ }) => Promise<import("../../autogenerated").VideoEntity>;
887
+ getUrls: (params: import("../../autogenerated").GetVideosParamsDto & {
888
+ __taskOutput__?: never;
889
+ }) => Promise<import("../../autogenerated").VideoUrlResponseDto[]>;
890
+ };
859
891
  operations: {
860
892
  get: (params: import("../../autogenerated").GetOperationParamsDto & {
861
893
  __taskOutput__?: never;
@@ -49,6 +49,10 @@ const pipelines = (options) => {
49
49
  get: callMethod((methods) => methods.callControllerCallImagesGetV1),
50
50
  getUrls: callMethod((methods) => methods.callControllerCallImagesGetManyV1),
51
51
  },
52
+ videos: {
53
+ get: callMethod((methods) => methods.callControllerCallVideosGetV1),
54
+ getUrls: callMethod((methods) => methods.callControllerCallVideosGetManyV1),
55
+ },
52
56
  operations: {
53
57
  get: callMethod((methods) => methods.callControllerCallOperationsGetV1),
54
58
  list: callMethod((methods) => methods.callControllerCallOperationsListV1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.3.24",
3
+ "version": "0.3.25",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {