@hautechai/sdk 0.3.11 → 0.3.12

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.
@@ -545,6 +545,139 @@ export interface CreateStorageRecordParamsDto {
545
545
  */
546
546
  'value': object;
547
547
  }
548
+ /**
549
+ *
550
+ * @export
551
+ * @interface CropV1Input
552
+ */
553
+ export interface CropV1Input {
554
+ /**
555
+ *
556
+ * @type {string}
557
+ * @memberof CropV1Input
558
+ */
559
+ 'imageId': string;
560
+ /**
561
+ *
562
+ * @type {number}
563
+ * @memberof CropV1Input
564
+ */
565
+ 'left': number;
566
+ /**
567
+ *
568
+ * @type {number}
569
+ * @memberof CropV1Input
570
+ */
571
+ 'top': number;
572
+ /**
573
+ *
574
+ * @type {number}
575
+ * @memberof CropV1Input
576
+ */
577
+ 'width': number;
578
+ /**
579
+ *
580
+ * @type {number}
581
+ * @memberof CropV1Input
582
+ */
583
+ 'height': number;
584
+ }
585
+ /**
586
+ *
587
+ * @export
588
+ * @interface CropV1Request
589
+ */
590
+ export interface CropV1Request {
591
+ /**
592
+ *
593
+ * @type {CropV1Input}
594
+ * @memberof CropV1Request
595
+ */
596
+ 'input': CropV1Input;
597
+ /**
598
+ *
599
+ * @type {object}
600
+ * @memberof CropV1Request
601
+ */
602
+ 'metadata'?: object;
603
+ }
604
+ /**
605
+ *
606
+ * @export
607
+ * @interface CropV1Response
608
+ */
609
+ export interface CropV1Response {
610
+ /**
611
+ *
612
+ * @type {string}
613
+ * @memberof CropV1Response
614
+ */
615
+ 'kind': CropV1ResponseKindEnum;
616
+ /**
617
+ *
618
+ * @type {OperationOutputImageSingle}
619
+ * @memberof CropV1Response
620
+ */
621
+ 'output': OperationOutputImageSingle | null;
622
+ /**
623
+ *
624
+ * @type {object}
625
+ * @memberof CropV1Response
626
+ */
627
+ 'input': object;
628
+ /**
629
+ *
630
+ * @type {string}
631
+ * @memberof CropV1Response
632
+ */
633
+ 'status': CropV1ResponseStatusEnum;
634
+ /**
635
+ *
636
+ * @type {string}
637
+ * @memberof CropV1Response
638
+ */
639
+ 'type': string;
640
+ /**
641
+ *
642
+ * @type {string}
643
+ * @memberof CropV1Response
644
+ */
645
+ 'id': string;
646
+ /**
647
+ *
648
+ * @type {string}
649
+ * @memberof CropV1Response
650
+ */
651
+ 'creatorId': string;
652
+ /**
653
+ *
654
+ * @type {object}
655
+ * @memberof CropV1Response
656
+ */
657
+ 'metadata': object;
658
+ /**
659
+ *
660
+ * @type {string}
661
+ * @memberof CropV1Response
662
+ */
663
+ 'createdAt': string;
664
+ /**
665
+ *
666
+ * @type {string}
667
+ * @memberof CropV1Response
668
+ */
669
+ 'updatedAt': string;
670
+ }
671
+ export declare const CropV1ResponseKindEnum: {
672
+ readonly Operation: "operation";
673
+ };
674
+ export type CropV1ResponseKindEnum = typeof CropV1ResponseKindEnum[keyof typeof CropV1ResponseKindEnum];
675
+ export declare const CropV1ResponseStatusEnum: {
676
+ readonly Pending: "pending";
677
+ readonly Finished: "finished";
678
+ readonly Failed: "failed";
679
+ };
680
+ export type CropV1ResponseStatusEnum = typeof CropV1ResponseStatusEnum[keyof typeof CropV1ResponseStatusEnum];
548
681
  /**
549
682
  *
550
683
  * @export
@@ -4506,6 +4639,13 @@ export declare const CallApiAxiosParamCreator: (configuration?: Configuration) =
4506
4639
  * @throws {RequiredError}
4507
4640
  */
4508
4641
  callControllerCallOperationsRunCompositeV1V1: (compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4642
+ /**
4643
+ *
4644
+ * @param {CropV1Request} cropV1Request
4645
+ * @param {*} [options] Override http request option.
4646
+ * @throws {RequiredError}
4647
+ */
4648
+ callControllerCallOperationsRunCropV1V1: (cropV1Request: CropV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4509
4649
  /**
4510
4650
  *
4511
4651
  * @param {CutV1Request} cutV1Request
@@ -4904,6 +5044,13 @@ export declare const CallApiFp: (configuration?: Configuration) => {
4904
5044
  * @throws {RequiredError}
4905
5045
  */
4906
5046
  callControllerCallOperationsRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompositeV1Response>>;
5047
+ /**
5048
+ *
5049
+ * @param {CropV1Request} cropV1Request
5050
+ * @param {*} [options] Override http request option.
5051
+ * @throws {RequiredError}
5052
+ */
5053
+ callControllerCallOperationsRunCropV1V1(cropV1Request: CropV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CropV1Response>>;
4907
5054
  /**
4908
5055
  *
4909
5056
  * @param {CutV1Request} cutV1Request
@@ -5302,6 +5449,13 @@ export declare const CallApiFactory: (configuration?: Configuration, basePath?:
5302
5449
  * @throws {RequiredError}
5303
5450
  */
5304
5451
  callControllerCallOperationsRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): AxiosPromise<CompositeV1Response>;
5452
+ /**
5453
+ *
5454
+ * @param {CropV1Request} cropV1Request
5455
+ * @param {*} [options] Override http request option.
5456
+ * @throws {RequiredError}
5457
+ */
5458
+ callControllerCallOperationsRunCropV1V1(cropV1Request: CropV1Request, options?: RawAxiosRequestConfig): AxiosPromise<CropV1Response>;
5305
5459
  /**
5306
5460
  *
5307
5461
  * @param {CutV1Request} cutV1Request
@@ -5729,6 +5883,14 @@ export declare class CallApi extends BaseAPI {
5729
5883
  * @memberof CallApi
5730
5884
  */
5731
5885
  callControllerCallOperationsRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompositeV1Response, any>>;
5886
+ /**
5887
+ *
5888
+ * @param {CropV1Request} cropV1Request
5889
+ * @param {*} [options] Override http request option.
5890
+ * @throws {RequiredError}
5891
+ * @memberof CallApi
5892
+ */
5893
+ callControllerCallOperationsRunCropV1V1(cropV1Request: CropV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CropV1Response, any>>;
5732
5894
  /**
5733
5895
  *
5734
5896
  * @param {CutV1Request} cutV1Request
@@ -6641,6 +6803,13 @@ export declare const OperationsApiAxiosParamCreator: (configuration?: Configurat
6641
6803
  * @throws {RequiredError}
6642
6804
  */
6643
6805
  operationsControllerRunCompositeV1V1: (compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6806
+ /**
6807
+ *
6808
+ * @param {CropV1Request} cropV1Request
6809
+ * @param {*} [options] Override http request option.
6810
+ * @throws {RequiredError}
6811
+ */
6812
+ operationsControllerRunCropV1V1: (cropV1Request: CropV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6644
6813
  /**
6645
6814
  *
6646
6815
  * @param {CutV1Request} cutV1Request
@@ -6776,6 +6945,13 @@ export declare const OperationsApiFp: (configuration?: Configuration) => {
6776
6945
  * @throws {RequiredError}
6777
6946
  */
6778
6947
  operationsControllerRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompositeV1Response>>;
6948
+ /**
6949
+ *
6950
+ * @param {CropV1Request} cropV1Request
6951
+ * @param {*} [options] Override http request option.
6952
+ * @throws {RequiredError}
6953
+ */
6954
+ operationsControllerRunCropV1V1(cropV1Request: CropV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CropV1Response>>;
6779
6955
  /**
6780
6956
  *
6781
6957
  * @param {CutV1Request} cutV1Request
@@ -6911,6 +7087,13 @@ export declare const OperationsApiFactory: (configuration?: Configuration, baseP
6911
7087
  * @throws {RequiredError}
6912
7088
  */
6913
7089
  operationsControllerRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): AxiosPromise<CompositeV1Response>;
7090
+ /**
7091
+ *
7092
+ * @param {CropV1Request} cropV1Request
7093
+ * @param {*} [options] Override http request option.
7094
+ * @throws {RequiredError}
7095
+ */
7096
+ operationsControllerRunCropV1V1(cropV1Request: CropV1Request, options?: RawAxiosRequestConfig): AxiosPromise<CropV1Response>;
6914
7097
  /**
6915
7098
  *
6916
7099
  * @param {CutV1Request} cutV1Request
@@ -7052,6 +7235,14 @@ export declare class OperationsApi extends BaseAPI {
7052
7235
  * @memberof OperationsApi
7053
7236
  */
7054
7237
  operationsControllerRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompositeV1Response, any>>;
7238
+ /**
7239
+ *
7240
+ * @param {CropV1Request} cropV1Request
7241
+ * @param {*} [options] Override http request option.
7242
+ * @throws {RequiredError}
7243
+ * @memberof OperationsApi
7244
+ */
7245
+ operationsControllerRunCropV1V1(cropV1Request: CropV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CropV1Response, any>>;
7055
7246
  /**
7056
7247
  *
7057
7248
  * @param {CutV1Request} cutV1Request
@@ -46,6 +46,14 @@ export const CompositeV1ResponseStatusEnum = {
46
46
  Finished: 'finished',
47
47
  Failed: 'failed'
48
48
  };
49
+ export const CropV1ResponseKindEnum = {
50
+ Operation: 'operation'
51
+ };
52
+ export const CropV1ResponseStatusEnum = {
53
+ Pending: 'pending',
54
+ Finished: 'finished',
55
+ Failed: 'failed'
56
+ };
49
57
  export const CutV1ResponseKindEnum = {
50
58
  Operation: 'operation'
51
59
  };
@@ -2155,6 +2163,38 @@ export const CallApiAxiosParamCreator = function (configuration) {
2155
2163
  options: localVarRequestOptions,
2156
2164
  };
2157
2165
  },
2166
+ /**
2167
+ *
2168
+ * @param {CropV1Request} cropV1Request
2169
+ * @param {*} [options] Override http request option.
2170
+ * @throws {RequiredError}
2171
+ */
2172
+ callControllerCallOperationsRunCropV1V1: async (cropV1Request, options = {}) => {
2173
+ // verify required parameter 'cropV1Request' is not null or undefined
2174
+ assertParamExists('callControllerCallOperationsRunCropV1V1', 'cropV1Request', cropV1Request);
2175
+ const localVarPath = `/v1/call/operations.run.crop.v1`;
2176
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2177
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2178
+ let baseOptions;
2179
+ if (configuration) {
2180
+ baseOptions = configuration.baseOptions;
2181
+ }
2182
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2183
+ const localVarHeaderParameter = {};
2184
+ const localVarQueryParameter = {};
2185
+ // authentication bearer required
2186
+ // http bearer authentication required
2187
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2188
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2189
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2190
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2191
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2192
+ localVarRequestOptions.data = serializeDataIfNeeded(cropV1Request, localVarRequestOptions, configuration);
2193
+ return {
2194
+ url: toPathString(localVarUrlObj),
2195
+ options: localVarRequestOptions,
2196
+ };
2197
+ },
2158
2198
  /**
2159
2199
  *
2160
2200
  * @param {CutV1Request} cutV1Request
@@ -3416,6 +3456,18 @@ export const CallApiFp = function (configuration) {
3416
3456
  const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallOperationsRunCompositeV1V1']?.[localVarOperationServerIndex]?.url;
3417
3457
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3418
3458
  },
3459
+ /**
3460
+ *
3461
+ * @param {CropV1Request} cropV1Request
3462
+ * @param {*} [options] Override http request option.
3463
+ * @throws {RequiredError}
3464
+ */
3465
+ async callControllerCallOperationsRunCropV1V1(cropV1Request, options) {
3466
+ const localVarAxiosArgs = await localVarAxiosParamCreator.callControllerCallOperationsRunCropV1V1(cropV1Request, options);
3467
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3468
+ const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallOperationsRunCropV1V1']?.[localVarOperationServerIndex]?.url;
3469
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3470
+ },
3419
3471
  /**
3420
3472
  *
3421
3473
  * @param {CutV1Request} cutV1Request
@@ -4016,6 +4068,15 @@ export const CallApiFactory = function (configuration, basePath, axios) {
4016
4068
  callControllerCallOperationsRunCompositeV1V1(compositeV1Request, options) {
4017
4069
  return localVarFp.callControllerCallOperationsRunCompositeV1V1(compositeV1Request, options).then((request) => request(axios, basePath));
4018
4070
  },
4071
+ /**
4072
+ *
4073
+ * @param {CropV1Request} cropV1Request
4074
+ * @param {*} [options] Override http request option.
4075
+ * @throws {RequiredError}
4076
+ */
4077
+ callControllerCallOperationsRunCropV1V1(cropV1Request, options) {
4078
+ return localVarFp.callControllerCallOperationsRunCropV1V1(cropV1Request, options).then((request) => request(axios, basePath));
4079
+ },
4019
4080
  /**
4020
4081
  *
4021
4082
  * @param {CutV1Request} cutV1Request
@@ -4556,6 +4617,16 @@ export class CallApi extends BaseAPI {
4556
4617
  callControllerCallOperationsRunCompositeV1V1(compositeV1Request, options) {
4557
4618
  return CallApiFp(this.configuration).callControllerCallOperationsRunCompositeV1V1(compositeV1Request, options).then((request) => request(this.axios, this.basePath));
4558
4619
  }
4620
+ /**
4621
+ *
4622
+ * @param {CropV1Request} cropV1Request
4623
+ * @param {*} [options] Override http request option.
4624
+ * @throws {RequiredError}
4625
+ * @memberof CallApi
4626
+ */
4627
+ callControllerCallOperationsRunCropV1V1(cropV1Request, options) {
4628
+ return CallApiFp(this.configuration).callControllerCallOperationsRunCropV1V1(cropV1Request, options).then((request) => request(this.axios, this.basePath));
4629
+ }
4559
4630
  /**
4560
4631
  *
4561
4632
  * @param {CutV1Request} cutV1Request
@@ -6251,6 +6322,38 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
6251
6322
  options: localVarRequestOptions,
6252
6323
  };
6253
6324
  },
6325
+ /**
6326
+ *
6327
+ * @param {CropV1Request} cropV1Request
6328
+ * @param {*} [options] Override http request option.
6329
+ * @throws {RequiredError}
6330
+ */
6331
+ operationsControllerRunCropV1V1: async (cropV1Request, options = {}) => {
6332
+ // verify required parameter 'cropV1Request' is not null or undefined
6333
+ assertParamExists('operationsControllerRunCropV1V1', 'cropV1Request', cropV1Request);
6334
+ const localVarPath = `/v1/operations/run/crop.v1`;
6335
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6336
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6337
+ let baseOptions;
6338
+ if (configuration) {
6339
+ baseOptions = configuration.baseOptions;
6340
+ }
6341
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6342
+ const localVarHeaderParameter = {};
6343
+ const localVarQueryParameter = {};
6344
+ // authentication bearer required
6345
+ // http bearer authentication required
6346
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
6347
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6348
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6349
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6350
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6351
+ localVarRequestOptions.data = serializeDataIfNeeded(cropV1Request, localVarRequestOptions, configuration);
6352
+ return {
6353
+ url: toPathString(localVarUrlObj),
6354
+ options: localVarRequestOptions,
6355
+ };
6356
+ },
6254
6357
  /**
6255
6358
  *
6256
6359
  * @param {CutV1Request} cutV1Request
@@ -6762,6 +6865,18 @@ export const OperationsApiFp = function (configuration) {
6762
6865
  const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunCompositeV1V1']?.[localVarOperationServerIndex]?.url;
6763
6866
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6764
6867
  },
6868
+ /**
6869
+ *
6870
+ * @param {CropV1Request} cropV1Request
6871
+ * @param {*} [options] Override http request option.
6872
+ * @throws {RequiredError}
6873
+ */
6874
+ async operationsControllerRunCropV1V1(cropV1Request, options) {
6875
+ const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunCropV1V1(cropV1Request, options);
6876
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6877
+ const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunCropV1V1']?.[localVarOperationServerIndex]?.url;
6878
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6879
+ },
6765
6880
  /**
6766
6881
  *
6767
6882
  * @param {CutV1Request} cutV1Request
@@ -6978,6 +7093,15 @@ export const OperationsApiFactory = function (configuration, basePath, axios) {
6978
7093
  operationsControllerRunCompositeV1V1(compositeV1Request, options) {
6979
7094
  return localVarFp.operationsControllerRunCompositeV1V1(compositeV1Request, options).then((request) => request(axios, basePath));
6980
7095
  },
7096
+ /**
7097
+ *
7098
+ * @param {CropV1Request} cropV1Request
7099
+ * @param {*} [options] Override http request option.
7100
+ * @throws {RequiredError}
7101
+ */
7102
+ operationsControllerRunCropV1V1(cropV1Request, options) {
7103
+ return localVarFp.operationsControllerRunCropV1V1(cropV1Request, options).then((request) => request(axios, basePath));
7104
+ },
6981
7105
  /**
6982
7106
  *
6983
7107
  * @param {CutV1Request} cutV1Request
@@ -7156,6 +7280,16 @@ export class OperationsApi extends BaseAPI {
7156
7280
  operationsControllerRunCompositeV1V1(compositeV1Request, options) {
7157
7281
  return OperationsApiFp(this.configuration).operationsControllerRunCompositeV1V1(compositeV1Request, options).then((request) => request(this.axios, this.basePath));
7158
7282
  }
7283
+ /**
7284
+ *
7285
+ * @param {CropV1Request} cropV1Request
7286
+ * @param {*} [options] Override http request option.
7287
+ * @throws {RequiredError}
7288
+ * @memberof OperationsApi
7289
+ */
7290
+ operationsControllerRunCropV1V1(cropV1Request, options) {
7291
+ return OperationsApiFp(this.configuration).operationsControllerRunCropV1V1(cropV1Request, options).then((request) => request(this.axios, this.basePath));
7292
+ }
7159
7293
  /**
7160
7294
  *
7161
7295
  * @param {CutV1Request} cutV1Request
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {