@hautechai/sdk 0.3.31 → 0.3.33
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/.github/workflows/main.yml +0 -2
- package/.github/workflows/test.yml +1 -2
- package/dist/autogenerated/api.d.ts +192 -0
- package/dist/autogenerated/api.js +134 -0
- package/dist/sdk/index.d.ts +36 -0
- package/dist/sdk/index.js +4 -1
- package/dist/sdk/operations/index.d.ts +9 -1
- package/dist/sdk/operations/index.js +5 -0
- package/dist/sdk/pipelines/index.d.ts +28 -0
- package/dist/sdk/pipelines/index.js +6 -1
- package/package.json +1 -1
- package/scripts/generate.sh +14 -1
|
@@ -4679,6 +4679,121 @@ export interface StorageRecordsResultDto {
|
|
|
4679
4679
|
*/
|
|
4680
4680
|
'value': object;
|
|
4681
4681
|
}
|
|
4682
|
+
/**
|
|
4683
|
+
*
|
|
4684
|
+
* @export
|
|
4685
|
+
* @interface StringsTemplateV1Input
|
|
4686
|
+
*/
|
|
4687
|
+
export interface StringsTemplateV1Input {
|
|
4688
|
+
/**
|
|
4689
|
+
*
|
|
4690
|
+
* @type {string}
|
|
4691
|
+
* @memberof StringsTemplateV1Input
|
|
4692
|
+
*/
|
|
4693
|
+
'template': string;
|
|
4694
|
+
/**
|
|
4695
|
+
*
|
|
4696
|
+
* @type {Array<VariableDto>}
|
|
4697
|
+
* @memberof StringsTemplateV1Input
|
|
4698
|
+
*/
|
|
4699
|
+
'variables': Array<VariableDto>;
|
|
4700
|
+
}
|
|
4701
|
+
/**
|
|
4702
|
+
*
|
|
4703
|
+
* @export
|
|
4704
|
+
* @interface StringsTemplateV1Request
|
|
4705
|
+
*/
|
|
4706
|
+
export interface StringsTemplateV1Request {
|
|
4707
|
+
/**
|
|
4708
|
+
*
|
|
4709
|
+
* @type {StringsTemplateV1Input}
|
|
4710
|
+
* @memberof StringsTemplateV1Request
|
|
4711
|
+
*/
|
|
4712
|
+
'input': StringsTemplateV1Input;
|
|
4713
|
+
/**
|
|
4714
|
+
*
|
|
4715
|
+
* @type {object}
|
|
4716
|
+
* @memberof StringsTemplateV1Request
|
|
4717
|
+
*/
|
|
4718
|
+
'metadata'?: object;
|
|
4719
|
+
}
|
|
4720
|
+
/**
|
|
4721
|
+
*
|
|
4722
|
+
* @export
|
|
4723
|
+
* @interface StringsTemplateV1Response
|
|
4724
|
+
*/
|
|
4725
|
+
export interface StringsTemplateV1Response {
|
|
4726
|
+
/**
|
|
4727
|
+
*
|
|
4728
|
+
* @type {string}
|
|
4729
|
+
* @memberof StringsTemplateV1Response
|
|
4730
|
+
*/
|
|
4731
|
+
'kind': StringsTemplateV1ResponseKindEnum;
|
|
4732
|
+
/**
|
|
4733
|
+
*
|
|
4734
|
+
* @type {OperationOutputTextSingle}
|
|
4735
|
+
* @memberof StringsTemplateV1Response
|
|
4736
|
+
*/
|
|
4737
|
+
'output': OperationOutputTextSingle;
|
|
4738
|
+
/**
|
|
4739
|
+
*
|
|
4740
|
+
* @type {object}
|
|
4741
|
+
* @memberof StringsTemplateV1Response
|
|
4742
|
+
*/
|
|
4743
|
+
'input': object;
|
|
4744
|
+
/**
|
|
4745
|
+
*
|
|
4746
|
+
* @type {string}
|
|
4747
|
+
* @memberof StringsTemplateV1Response
|
|
4748
|
+
*/
|
|
4749
|
+
'status': StringsTemplateV1ResponseStatusEnum;
|
|
4750
|
+
/**
|
|
4751
|
+
*
|
|
4752
|
+
* @type {string}
|
|
4753
|
+
* @memberof StringsTemplateV1Response
|
|
4754
|
+
*/
|
|
4755
|
+
'type': string;
|
|
4756
|
+
/**
|
|
4757
|
+
*
|
|
4758
|
+
* @type {string}
|
|
4759
|
+
* @memberof StringsTemplateV1Response
|
|
4760
|
+
*/
|
|
4761
|
+
'id': string;
|
|
4762
|
+
/**
|
|
4763
|
+
*
|
|
4764
|
+
* @type {string}
|
|
4765
|
+
* @memberof StringsTemplateV1Response
|
|
4766
|
+
*/
|
|
4767
|
+
'creatorId': string;
|
|
4768
|
+
/**
|
|
4769
|
+
*
|
|
4770
|
+
* @type {object}
|
|
4771
|
+
* @memberof StringsTemplateV1Response
|
|
4772
|
+
*/
|
|
4773
|
+
'metadata': object;
|
|
4774
|
+
/**
|
|
4775
|
+
*
|
|
4776
|
+
* @type {string}
|
|
4777
|
+
* @memberof StringsTemplateV1Response
|
|
4778
|
+
*/
|
|
4779
|
+
'createdAt': string;
|
|
4780
|
+
/**
|
|
4781
|
+
*
|
|
4782
|
+
* @type {string}
|
|
4783
|
+
* @memberof StringsTemplateV1Response
|
|
4784
|
+
*/
|
|
4785
|
+
'updatedAt': string;
|
|
4786
|
+
}
|
|
4787
|
+
export declare const StringsTemplateV1ResponseKindEnum: {
|
|
4788
|
+
readonly Operation: "operation";
|
|
4789
|
+
};
|
|
4790
|
+
export type StringsTemplateV1ResponseKindEnum = typeof StringsTemplateV1ResponseKindEnum[keyof typeof StringsTemplateV1ResponseKindEnum];
|
|
4791
|
+
export declare const StringsTemplateV1ResponseStatusEnum: {
|
|
4792
|
+
readonly Pending: "pending";
|
|
4793
|
+
readonly Finished: "finished";
|
|
4794
|
+
readonly Failed: "failed";
|
|
4795
|
+
};
|
|
4796
|
+
export type StringsTemplateV1ResponseStatusEnum = typeof StringsTemplateV1ResponseStatusEnum[keyof typeof StringsTemplateV1ResponseStatusEnum];
|
|
4682
4797
|
/**
|
|
4683
4798
|
*
|
|
4684
4799
|
* @export
|
|
@@ -4985,6 +5100,25 @@ export declare const UpscaleV1ResponseStatusEnum: {
|
|
|
4985
5100
|
readonly Failed: "failed";
|
|
4986
5101
|
};
|
|
4987
5102
|
export type UpscaleV1ResponseStatusEnum = typeof UpscaleV1ResponseStatusEnum[keyof typeof UpscaleV1ResponseStatusEnum];
|
|
5103
|
+
/**
|
|
5104
|
+
*
|
|
5105
|
+
* @export
|
|
5106
|
+
* @interface VariableDto
|
|
5107
|
+
*/
|
|
5108
|
+
export interface VariableDto {
|
|
5109
|
+
/**
|
|
5110
|
+
*
|
|
5111
|
+
* @type {string}
|
|
5112
|
+
* @memberof VariableDto
|
|
5113
|
+
*/
|
|
5114
|
+
'name': string;
|
|
5115
|
+
/**
|
|
5116
|
+
*
|
|
5117
|
+
* @type {string}
|
|
5118
|
+
* @memberof VariableDto
|
|
5119
|
+
*/
|
|
5120
|
+
'value': string;
|
|
5121
|
+
}
|
|
4988
5122
|
/**
|
|
4989
5123
|
*
|
|
4990
5124
|
* @export
|
|
@@ -6024,6 +6158,13 @@ export declare const CallApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
6024
6158
|
* @throws {RequiredError}
|
|
6025
6159
|
*/
|
|
6026
6160
|
callControllerCallOperationsRunSegmentAnythingMaskV1V1: (segmentAnythingMaskV1Request: SegmentAnythingMaskV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6161
|
+
/**
|
|
6162
|
+
*
|
|
6163
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
6164
|
+
* @param {*} [options] Override http request option.
|
|
6165
|
+
* @throws {RequiredError}
|
|
6166
|
+
*/
|
|
6167
|
+
callControllerCallOperationsRunStringsTemplateV1V1: (stringsTemplateV1Request: StringsTemplateV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6027
6168
|
/**
|
|
6028
6169
|
*
|
|
6029
6170
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -6499,6 +6640,13 @@ export declare const CallApiFp: (configuration?: Configuration) => {
|
|
|
6499
6640
|
* @throws {RequiredError}
|
|
6500
6641
|
*/
|
|
6501
6642
|
callControllerCallOperationsRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request: SegmentAnythingMaskV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SegmentAnythingMaskV1Response>>;
|
|
6643
|
+
/**
|
|
6644
|
+
*
|
|
6645
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
6646
|
+
* @param {*} [options] Override http request option.
|
|
6647
|
+
* @throws {RequiredError}
|
|
6648
|
+
*/
|
|
6649
|
+
callControllerCallOperationsRunStringsTemplateV1V1(stringsTemplateV1Request: StringsTemplateV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StringsTemplateV1Response>>;
|
|
6502
6650
|
/**
|
|
6503
6651
|
*
|
|
6504
6652
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -6974,6 +7122,13 @@ export declare const CallApiFactory: (configuration?: Configuration, basePath?:
|
|
|
6974
7122
|
* @throws {RequiredError}
|
|
6975
7123
|
*/
|
|
6976
7124
|
callControllerCallOperationsRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request: SegmentAnythingMaskV1Request, options?: RawAxiosRequestConfig): AxiosPromise<SegmentAnythingMaskV1Response>;
|
|
7125
|
+
/**
|
|
7126
|
+
*
|
|
7127
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
7128
|
+
* @param {*} [options] Override http request option.
|
|
7129
|
+
* @throws {RequiredError}
|
|
7130
|
+
*/
|
|
7131
|
+
callControllerCallOperationsRunStringsTemplateV1V1(stringsTemplateV1Request: StringsTemplateV1Request, options?: RawAxiosRequestConfig): AxiosPromise<StringsTemplateV1Response>;
|
|
6977
7132
|
/**
|
|
6978
7133
|
*
|
|
6979
7134
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -7498,6 +7653,14 @@ export declare class CallApi extends BaseAPI {
|
|
|
7498
7653
|
* @memberof CallApi
|
|
7499
7654
|
*/
|
|
7500
7655
|
callControllerCallOperationsRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request: SegmentAnythingMaskV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SegmentAnythingMaskV1Response, any>>;
|
|
7656
|
+
/**
|
|
7657
|
+
*
|
|
7658
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
7659
|
+
* @param {*} [options] Override http request option.
|
|
7660
|
+
* @throws {RequiredError}
|
|
7661
|
+
* @memberof CallApi
|
|
7662
|
+
*/
|
|
7663
|
+
callControllerCallOperationsRunStringsTemplateV1V1(stringsTemplateV1Request: StringsTemplateV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StringsTemplateV1Response, any>>;
|
|
7501
7664
|
/**
|
|
7502
7665
|
*
|
|
7503
7666
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -8465,6 +8628,13 @@ export declare const OperationsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
8465
8628
|
* @throws {RequiredError}
|
|
8466
8629
|
*/
|
|
8467
8630
|
operationsControllerRunSegmentAnythingMaskV1V1: (segmentAnythingMaskV1Request: SegmentAnythingMaskV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8631
|
+
/**
|
|
8632
|
+
*
|
|
8633
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
8634
|
+
* @param {*} [options] Override http request option.
|
|
8635
|
+
* @throws {RequiredError}
|
|
8636
|
+
*/
|
|
8637
|
+
operationsControllerRunStringsTemplateV1V1: (stringsTemplateV1Request: StringsTemplateV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8468
8638
|
/**
|
|
8469
8639
|
*
|
|
8470
8640
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -8656,6 +8826,13 @@ export declare const OperationsApiFp: (configuration?: Configuration) => {
|
|
|
8656
8826
|
* @throws {RequiredError}
|
|
8657
8827
|
*/
|
|
8658
8828
|
operationsControllerRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request: SegmentAnythingMaskV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SegmentAnythingMaskV1Response>>;
|
|
8829
|
+
/**
|
|
8830
|
+
*
|
|
8831
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
8832
|
+
* @param {*} [options] Override http request option.
|
|
8833
|
+
* @throws {RequiredError}
|
|
8834
|
+
*/
|
|
8835
|
+
operationsControllerRunStringsTemplateV1V1(stringsTemplateV1Request: StringsTemplateV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StringsTemplateV1Response>>;
|
|
8659
8836
|
/**
|
|
8660
8837
|
*
|
|
8661
8838
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -8847,6 +9024,13 @@ export declare const OperationsApiFactory: (configuration?: Configuration, baseP
|
|
|
8847
9024
|
* @throws {RequiredError}
|
|
8848
9025
|
*/
|
|
8849
9026
|
operationsControllerRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request: SegmentAnythingMaskV1Request, options?: RawAxiosRequestConfig): AxiosPromise<SegmentAnythingMaskV1Response>;
|
|
9027
|
+
/**
|
|
9028
|
+
*
|
|
9029
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
9030
|
+
* @param {*} [options] Override http request option.
|
|
9031
|
+
* @throws {RequiredError}
|
|
9032
|
+
*/
|
|
9033
|
+
operationsControllerRunStringsTemplateV1V1(stringsTemplateV1Request: StringsTemplateV1Request, options?: RawAxiosRequestConfig): AxiosPromise<StringsTemplateV1Response>;
|
|
8850
9034
|
/**
|
|
8851
9035
|
*
|
|
8852
9036
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -9062,6 +9246,14 @@ export declare class OperationsApi extends BaseAPI {
|
|
|
9062
9246
|
* @memberof OperationsApi
|
|
9063
9247
|
*/
|
|
9064
9248
|
operationsControllerRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request: SegmentAnythingMaskV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SegmentAnythingMaskV1Response, any>>;
|
|
9249
|
+
/**
|
|
9250
|
+
*
|
|
9251
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
9252
|
+
* @param {*} [options] Override http request option.
|
|
9253
|
+
* @throws {RequiredError}
|
|
9254
|
+
* @memberof OperationsApi
|
|
9255
|
+
*/
|
|
9256
|
+
operationsControllerRunStringsTemplateV1V1(stringsTemplateV1Request: StringsTemplateV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StringsTemplateV1Response, any>>;
|
|
9065
9257
|
/**
|
|
9066
9258
|
*
|
|
9067
9259
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -407,6 +407,14 @@ export const StackEntityKindEnum = {
|
|
|
407
407
|
export const StorageEntityKindEnum = {
|
|
408
408
|
Storage: 'storage'
|
|
409
409
|
};
|
|
410
|
+
export const StringsTemplateV1ResponseKindEnum = {
|
|
411
|
+
Operation: 'operation'
|
|
412
|
+
};
|
|
413
|
+
export const StringsTemplateV1ResponseStatusEnum = {
|
|
414
|
+
Pending: 'pending',
|
|
415
|
+
Finished: 'finished',
|
|
416
|
+
Failed: 'failed'
|
|
417
|
+
};
|
|
410
418
|
export const TranslateV1ResponseKindEnum = {
|
|
411
419
|
Operation: 'operation'
|
|
412
420
|
};
|
|
@@ -2911,6 +2919,38 @@ export const CallApiAxiosParamCreator = function (configuration) {
|
|
|
2911
2919
|
options: localVarRequestOptions,
|
|
2912
2920
|
};
|
|
2913
2921
|
},
|
|
2922
|
+
/**
|
|
2923
|
+
*
|
|
2924
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
2925
|
+
* @param {*} [options] Override http request option.
|
|
2926
|
+
* @throws {RequiredError}
|
|
2927
|
+
*/
|
|
2928
|
+
callControllerCallOperationsRunStringsTemplateV1V1: async (stringsTemplateV1Request, options = {}) => {
|
|
2929
|
+
// verify required parameter 'stringsTemplateV1Request' is not null or undefined
|
|
2930
|
+
assertParamExists('callControllerCallOperationsRunStringsTemplateV1V1', 'stringsTemplateV1Request', stringsTemplateV1Request);
|
|
2931
|
+
const localVarPath = `/v1/call/operations.run.strings.template.v1`;
|
|
2932
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2933
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2934
|
+
let baseOptions;
|
|
2935
|
+
if (configuration) {
|
|
2936
|
+
baseOptions = configuration.baseOptions;
|
|
2937
|
+
}
|
|
2938
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2939
|
+
const localVarHeaderParameter = {};
|
|
2940
|
+
const localVarQueryParameter = {};
|
|
2941
|
+
// authentication bearer required
|
|
2942
|
+
// http bearer authentication required
|
|
2943
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2944
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2945
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2946
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2947
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2948
|
+
localVarRequestOptions.data = serializeDataIfNeeded(stringsTemplateV1Request, localVarRequestOptions, configuration);
|
|
2949
|
+
return {
|
|
2950
|
+
url: toPathString(localVarUrlObj),
|
|
2951
|
+
options: localVarRequestOptions,
|
|
2952
|
+
};
|
|
2953
|
+
},
|
|
2914
2954
|
/**
|
|
2915
2955
|
*
|
|
2916
2956
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -4124,6 +4164,18 @@ export const CallApiFp = function (configuration) {
|
|
|
4124
4164
|
const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallOperationsRunSegmentAnythingMaskV1V1']?.[localVarOperationServerIndex]?.url;
|
|
4125
4165
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4126
4166
|
},
|
|
4167
|
+
/**
|
|
4168
|
+
*
|
|
4169
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
4170
|
+
* @param {*} [options] Override http request option.
|
|
4171
|
+
* @throws {RequiredError}
|
|
4172
|
+
*/
|
|
4173
|
+
async callControllerCallOperationsRunStringsTemplateV1V1(stringsTemplateV1Request, options) {
|
|
4174
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.callControllerCallOperationsRunStringsTemplateV1V1(stringsTemplateV1Request, options);
|
|
4175
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4176
|
+
const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallOperationsRunStringsTemplateV1V1']?.[localVarOperationServerIndex]?.url;
|
|
4177
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4178
|
+
},
|
|
4127
4179
|
/**
|
|
4128
4180
|
*
|
|
4129
4181
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -4796,6 +4848,15 @@ export const CallApiFactory = function (configuration, basePath, axios) {
|
|
|
4796
4848
|
callControllerCallOperationsRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request, options) {
|
|
4797
4849
|
return localVarFp.callControllerCallOperationsRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request, options).then((request) => request(axios, basePath));
|
|
4798
4850
|
},
|
|
4851
|
+
/**
|
|
4852
|
+
*
|
|
4853
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
4854
|
+
* @param {*} [options] Override http request option.
|
|
4855
|
+
* @throws {RequiredError}
|
|
4856
|
+
*/
|
|
4857
|
+
callControllerCallOperationsRunStringsTemplateV1V1(stringsTemplateV1Request, options) {
|
|
4858
|
+
return localVarFp.callControllerCallOperationsRunStringsTemplateV1V1(stringsTemplateV1Request, options).then((request) => request(axios, basePath));
|
|
4859
|
+
},
|
|
4799
4860
|
/**
|
|
4800
4861
|
*
|
|
4801
4862
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -5455,6 +5516,16 @@ export class CallApi extends BaseAPI {
|
|
|
5455
5516
|
callControllerCallOperationsRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request, options) {
|
|
5456
5517
|
return CallApiFp(this.configuration).callControllerCallOperationsRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
5457
5518
|
}
|
|
5519
|
+
/**
|
|
5520
|
+
*
|
|
5521
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
5522
|
+
* @param {*} [options] Override http request option.
|
|
5523
|
+
* @throws {RequiredError}
|
|
5524
|
+
* @memberof CallApi
|
|
5525
|
+
*/
|
|
5526
|
+
callControllerCallOperationsRunStringsTemplateV1V1(stringsTemplateV1Request, options) {
|
|
5527
|
+
return CallApiFp(this.configuration).callControllerCallOperationsRunStringsTemplateV1V1(stringsTemplateV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
5528
|
+
}
|
|
5458
5529
|
/**
|
|
5459
5530
|
*
|
|
5460
5531
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -7637,6 +7708,38 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
|
|
|
7637
7708
|
options: localVarRequestOptions,
|
|
7638
7709
|
};
|
|
7639
7710
|
},
|
|
7711
|
+
/**
|
|
7712
|
+
*
|
|
7713
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
7714
|
+
* @param {*} [options] Override http request option.
|
|
7715
|
+
* @throws {RequiredError}
|
|
7716
|
+
*/
|
|
7717
|
+
operationsControllerRunStringsTemplateV1V1: async (stringsTemplateV1Request, options = {}) => {
|
|
7718
|
+
// verify required parameter 'stringsTemplateV1Request' is not null or undefined
|
|
7719
|
+
assertParamExists('operationsControllerRunStringsTemplateV1V1', 'stringsTemplateV1Request', stringsTemplateV1Request);
|
|
7720
|
+
const localVarPath = `/v1/operations/run/strings.template.v1`;
|
|
7721
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7722
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7723
|
+
let baseOptions;
|
|
7724
|
+
if (configuration) {
|
|
7725
|
+
baseOptions = configuration.baseOptions;
|
|
7726
|
+
}
|
|
7727
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7728
|
+
const localVarHeaderParameter = {};
|
|
7729
|
+
const localVarQueryParameter = {};
|
|
7730
|
+
// authentication bearer required
|
|
7731
|
+
// http bearer authentication required
|
|
7732
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7733
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7734
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7735
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7736
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7737
|
+
localVarRequestOptions.data = serializeDataIfNeeded(stringsTemplateV1Request, localVarRequestOptions, configuration);
|
|
7738
|
+
return {
|
|
7739
|
+
url: toPathString(localVarUrlObj),
|
|
7740
|
+
options: localVarRequestOptions,
|
|
7741
|
+
};
|
|
7742
|
+
},
|
|
7640
7743
|
/**
|
|
7641
7744
|
*
|
|
7642
7745
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -8044,6 +8147,18 @@ export const OperationsApiFp = function (configuration) {
|
|
|
8044
8147
|
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunSegmentAnythingMaskV1V1']?.[localVarOperationServerIndex]?.url;
|
|
8045
8148
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8046
8149
|
},
|
|
8150
|
+
/**
|
|
8151
|
+
*
|
|
8152
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
8153
|
+
* @param {*} [options] Override http request option.
|
|
8154
|
+
* @throws {RequiredError}
|
|
8155
|
+
*/
|
|
8156
|
+
async operationsControllerRunStringsTemplateV1V1(stringsTemplateV1Request, options) {
|
|
8157
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunStringsTemplateV1V1(stringsTemplateV1Request, options);
|
|
8158
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8159
|
+
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunStringsTemplateV1V1']?.[localVarOperationServerIndex]?.url;
|
|
8160
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8161
|
+
},
|
|
8047
8162
|
/**
|
|
8048
8163
|
*
|
|
8049
8164
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -8302,6 +8417,15 @@ export const OperationsApiFactory = function (configuration, basePath, axios) {
|
|
|
8302
8417
|
operationsControllerRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request, options) {
|
|
8303
8418
|
return localVarFp.operationsControllerRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request, options).then((request) => request(axios, basePath));
|
|
8304
8419
|
},
|
|
8420
|
+
/**
|
|
8421
|
+
*
|
|
8422
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
8423
|
+
* @param {*} [options] Override http request option.
|
|
8424
|
+
* @throws {RequiredError}
|
|
8425
|
+
*/
|
|
8426
|
+
operationsControllerRunStringsTemplateV1V1(stringsTemplateV1Request, options) {
|
|
8427
|
+
return localVarFp.operationsControllerRunStringsTemplateV1V1(stringsTemplateV1Request, options).then((request) => request(axios, basePath));
|
|
8428
|
+
},
|
|
8305
8429
|
/**
|
|
8306
8430
|
*
|
|
8307
8431
|
* @param {TranslateV1Request} translateV1Request
|
|
@@ -8570,6 +8694,16 @@ export class OperationsApi extends BaseAPI {
|
|
|
8570
8694
|
operationsControllerRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request, options) {
|
|
8571
8695
|
return OperationsApiFp(this.configuration).operationsControllerRunSegmentAnythingMaskV1V1(segmentAnythingMaskV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
8572
8696
|
}
|
|
8697
|
+
/**
|
|
8698
|
+
*
|
|
8699
|
+
* @param {StringsTemplateV1Request} stringsTemplateV1Request
|
|
8700
|
+
* @param {*} [options] Override http request option.
|
|
8701
|
+
* @throws {RequiredError}
|
|
8702
|
+
* @memberof OperationsApi
|
|
8703
|
+
*/
|
|
8704
|
+
operationsControllerRunStringsTemplateV1V1(stringsTemplateV1Request, options) {
|
|
8705
|
+
return OperationsApiFp(this.configuration).operationsControllerRunStringsTemplateV1V1(stringsTemplateV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
8706
|
+
}
|
|
8573
8707
|
/**
|
|
8574
8708
|
*
|
|
8575
8709
|
* @param {TranslateV1Request} translateV1Request
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -249,6 +249,14 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
249
249
|
metadata?: any;
|
|
250
250
|
}) => Promise<import("../autogenerated").ResizeV1Response>;
|
|
251
251
|
};
|
|
252
|
+
strings: {
|
|
253
|
+
template: {
|
|
254
|
+
v1: (props: {
|
|
255
|
+
input: import("../autogenerated").StringsTemplateV1Input;
|
|
256
|
+
metadata?: any;
|
|
257
|
+
}) => Promise<import("../autogenerated").StringsTemplateV1Response>;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
252
260
|
};
|
|
253
261
|
get: (props: {
|
|
254
262
|
id: string;
|
|
@@ -499,6 +507,13 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
499
507
|
__taskOutput__?: never;
|
|
500
508
|
}) => Promise<import("../autogenerated").ResizeV1Response>;
|
|
501
509
|
};
|
|
510
|
+
strings: {
|
|
511
|
+
template: {
|
|
512
|
+
v1: (params: import("../autogenerated").StringsTemplateV1Request & {
|
|
513
|
+
__taskOutput__?: never;
|
|
514
|
+
}) => Promise<import("../autogenerated").StringsTemplateV1Response>;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
502
517
|
};
|
|
503
518
|
wait: (params: import("../autogenerated").WaitOperationParamsDto & {
|
|
504
519
|
__taskOutput__?: never;
|
|
@@ -762,6 +777,13 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
762
777
|
__taskOutput__?: never;
|
|
763
778
|
}) => Promise<import("../autogenerated").ResizeV1Response>;
|
|
764
779
|
};
|
|
780
|
+
strings: {
|
|
781
|
+
template: {
|
|
782
|
+
v1: (params: import("../autogenerated").StringsTemplateV1Request & {
|
|
783
|
+
__taskOutput__?: never;
|
|
784
|
+
}) => Promise<import("../autogenerated").StringsTemplateV1Response>;
|
|
785
|
+
};
|
|
786
|
+
};
|
|
765
787
|
};
|
|
766
788
|
wait: (params: import("../autogenerated").WaitOperationParamsDto & {
|
|
767
789
|
__taskOutput__?: never;
|
|
@@ -1025,6 +1047,13 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
1025
1047
|
__taskOutput__?: never;
|
|
1026
1048
|
}) => Promise<import("../autogenerated").ResizeV1Response>;
|
|
1027
1049
|
};
|
|
1050
|
+
strings: {
|
|
1051
|
+
template: {
|
|
1052
|
+
v1: (params: import("../autogenerated").StringsTemplateV1Request & {
|
|
1053
|
+
__taskOutput__?: never;
|
|
1054
|
+
}) => Promise<import("../autogenerated").StringsTemplateV1Response>;
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1028
1057
|
};
|
|
1029
1058
|
wait: (params: import("../autogenerated").WaitOperationParamsDto & {
|
|
1030
1059
|
__taskOutput__?: never;
|
|
@@ -1291,6 +1320,13 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
1291
1320
|
__taskOutput__?: never;
|
|
1292
1321
|
}) => Promise<import("../autogenerated").ResizeV1Response>;
|
|
1293
1322
|
};
|
|
1323
|
+
strings: {
|
|
1324
|
+
template: {
|
|
1325
|
+
v1: (params: import("../autogenerated").StringsTemplateV1Request & {
|
|
1326
|
+
__taskOutput__?: never;
|
|
1327
|
+
}) => Promise<import("../autogenerated").StringsTemplateV1Response>;
|
|
1328
|
+
};
|
|
1329
|
+
};
|
|
1294
1330
|
};
|
|
1295
1331
|
wait: (params: import("../autogenerated").WaitOperationParamsDto & {
|
|
1296
1332
|
__taskOutput__?: never;
|
package/dist/sdk/index.js
CHANGED
|
@@ -36,7 +36,10 @@ export const createSDK = (options) => {
|
|
|
36
36
|
const operationsListener = new OperationsListener({
|
|
37
37
|
ws: (options.useWebsocket ?? true)
|
|
38
38
|
? {
|
|
39
|
-
endpoint:
|
|
39
|
+
endpoint: (() => {
|
|
40
|
+
const baseUrl = getBaseUrl(options);
|
|
41
|
+
return replaceProtocol(baseUrl, baseUrl.startsWith('https') ? 'wss' : 'ws');
|
|
42
|
+
})(),
|
|
40
43
|
token: authToken,
|
|
41
44
|
}
|
|
42
45
|
: null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnimateKling16ProV1Input, AnimateKling16ProV1Response, CompositeV1Input, CompositeV1Response, ContrastV1Input, ContrastV1Response, CropV1Input, CropV1Response, CutV1Input, CutV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, NegateImageV1Input, NegateImageV1Response, NoiseV1Input, NoiseV1Response, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, OperationEntityStatusEnum, PoseEstimationV1Input, PoseEstimationV1Response, ResizeV1Input, ResizeV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, TranslateV1Input, TranslateV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
|
|
1
|
+
import { AnimateKling16ProV1Input, AnimateKling16ProV1Response, CompositeV1Input, CompositeV1Response, ContrastV1Input, ContrastV1Response, CropV1Input, CropV1Response, CutV1Input, CutV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, NegateImageV1Input, NegateImageV1Response, NoiseV1Input, NoiseV1Response, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, OperationEntityStatusEnum, PoseEstimationV1Input, PoseEstimationV1Response, ResizeV1Input, ResizeV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, StringsTemplateV1Input, StringsTemplateV1Response, TranslateV1Input, TranslateV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
|
|
2
2
|
import { ListProps, ListResponse, SDKOptions } from '../../types';
|
|
3
3
|
import { OperationMetadata } from '../index';
|
|
4
4
|
import { OperationsListener } from '../listeners';
|
|
@@ -148,6 +148,14 @@ declare const operations: (options: SDKOptions, operationsListener: OperationsLi
|
|
|
148
148
|
metadata?: any;
|
|
149
149
|
}) => Promise<ResizeV1Response>;
|
|
150
150
|
};
|
|
151
|
+
strings: {
|
|
152
|
+
template: {
|
|
153
|
+
v1: (props: {
|
|
154
|
+
input: StringsTemplateV1Input;
|
|
155
|
+
metadata?: any;
|
|
156
|
+
}) => Promise<StringsTemplateV1Response>;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
151
159
|
};
|
|
152
160
|
get: (props: {
|
|
153
161
|
id: string;
|
|
@@ -79,6 +79,11 @@ const operations = (options, operationsListener) => {
|
|
|
79
79
|
resize: {
|
|
80
80
|
v1: createOperation((methods, props) => methods.operationsControllerRunResizeV1V1(props)),
|
|
81
81
|
},
|
|
82
|
+
strings: {
|
|
83
|
+
template: {
|
|
84
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunStringsTemplateV1V1(props)),
|
|
85
|
+
},
|
|
86
|
+
},
|
|
82
87
|
},
|
|
83
88
|
get: (props) => api.callWithReturningUndefinedOn404({
|
|
84
89
|
run: (methods) => methods.operationsControllerGetOperationV1(props.id),
|
|
@@ -220,6 +220,13 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
220
220
|
__taskOutput__?: never;
|
|
221
221
|
}) => Promise<import("../../autogenerated").ResizeV1Response>;
|
|
222
222
|
};
|
|
223
|
+
strings: {
|
|
224
|
+
template: {
|
|
225
|
+
v1: (params: import("../../autogenerated").StringsTemplateV1Request & {
|
|
226
|
+
__taskOutput__?: never;
|
|
227
|
+
}) => Promise<import("../../autogenerated").StringsTemplateV1Response>;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
223
230
|
};
|
|
224
231
|
wait: (params: import("../../autogenerated").WaitOperationParamsDto & {
|
|
225
232
|
__taskOutput__?: never;
|
|
@@ -483,6 +490,13 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
483
490
|
__taskOutput__?: never;
|
|
484
491
|
}) => Promise<import("../../autogenerated").ResizeV1Response>;
|
|
485
492
|
};
|
|
493
|
+
strings: {
|
|
494
|
+
template: {
|
|
495
|
+
v1: (params: import("../../autogenerated").StringsTemplateV1Request & {
|
|
496
|
+
__taskOutput__?: never;
|
|
497
|
+
}) => Promise<import("../../autogenerated").StringsTemplateV1Response>;
|
|
498
|
+
};
|
|
499
|
+
};
|
|
486
500
|
};
|
|
487
501
|
wait: (params: import("../../autogenerated").WaitOperationParamsDto & {
|
|
488
502
|
__taskOutput__?: never;
|
|
@@ -746,6 +760,13 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
746
760
|
__taskOutput__?: never;
|
|
747
761
|
}) => Promise<import("../../autogenerated").ResizeV1Response>;
|
|
748
762
|
};
|
|
763
|
+
strings: {
|
|
764
|
+
template: {
|
|
765
|
+
v1: (params: import("../../autogenerated").StringsTemplateV1Request & {
|
|
766
|
+
__taskOutput__?: never;
|
|
767
|
+
}) => Promise<import("../../autogenerated").StringsTemplateV1Response>;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
749
770
|
};
|
|
750
771
|
wait: (params: import("../../autogenerated").WaitOperationParamsDto & {
|
|
751
772
|
__taskOutput__?: never;
|
|
@@ -1012,6 +1033,13 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
1012
1033
|
__taskOutput__?: never;
|
|
1013
1034
|
}) => Promise<import("../../autogenerated").ResizeV1Response>;
|
|
1014
1035
|
};
|
|
1036
|
+
strings: {
|
|
1037
|
+
template: {
|
|
1038
|
+
v1: (params: import("../../autogenerated").StringsTemplateV1Request & {
|
|
1039
|
+
__taskOutput__?: never;
|
|
1040
|
+
}) => Promise<import("../../autogenerated").StringsTemplateV1Response>;
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1015
1043
|
};
|
|
1016
1044
|
wait: (params: import("../../autogenerated").WaitOperationParamsDto & {
|
|
1017
1045
|
__taskOutput__?: never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Pipeline } from '@hautechai/pipelines';
|
|
2
|
-
import { CallApi, PipelinesApi } from '../../autogenerated';
|
|
2
|
+
import { CallApi, PipelinesApi, } from '../../autogenerated';
|
|
3
3
|
import { useAutogeneratedAPI } from '../api';
|
|
4
4
|
import { transformToListResponse } from '../transformers';
|
|
5
5
|
const pipelines = (options) => {
|
|
@@ -130,6 +130,11 @@ const pipelines = (options) => {
|
|
|
130
130
|
resize: {
|
|
131
131
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunResizeV1V1),
|
|
132
132
|
},
|
|
133
|
+
strings: {
|
|
134
|
+
template: {
|
|
135
|
+
v1: callMethod((methods) => methods.callControllerCallOperationsRunStringsTemplateV1V1),
|
|
136
|
+
},
|
|
137
|
+
},
|
|
133
138
|
},
|
|
134
139
|
wait: callMethod((methods) => methods.callControllerCallOperationsWaitV1),
|
|
135
140
|
},
|
package/package.json
CHANGED
package/scripts/generate.sh
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# This script generates TypeScript code from the Hautech API
|
|
4
|
+
#
|
|
5
|
+
# Usage:
|
|
6
|
+
# ./scripts/generate.sh [API_URL]
|
|
7
|
+
# npm run generate [-- API_URL]
|
|
8
|
+
#
|
|
9
|
+
# Examples:
|
|
10
|
+
# ./scripts/generate.sh # Uses default API URL
|
|
11
|
+
# ./scripts/generate.sh https://custom-api.com # Uses custom API URL
|
|
12
|
+
# npm run generate # Uses default API URL
|
|
13
|
+
# npm run generate -- https://custom-api.com # Uses custom API URL
|
|
14
|
+
#
|
|
15
|
+
# Use the first argument as API_URL if provided, otherwise use the default
|
|
16
|
+
API_URL=${1:-"https://api.hautech.ai"}
|
|
4
17
|
|
|
5
18
|
./node_modules/.bin/openapi-generator-cli generate -i $API_URL/swagger.json -g typescript-axios -o ./src/autogenerated
|
|
6
19
|
node ./scripts/generate-permissions.js $API_URL/v1/permissions/available ./src/autogenerated/permissions.ts
|