@hautechai/sdk 1.6.0 → 1.7.0
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.mts +345 -12
- package/dist/index.d.ts +345 -12
- package/dist/index.js +293 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +291 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -161,6 +161,8 @@ __export(index_exports, {
|
|
|
161
161
|
PipelineDtoKindEnum: () => PipelineDtoKindEnum,
|
|
162
162
|
PipelineDtoStateValueStatusEnum: () => PipelineDtoStateValueStatusEnum,
|
|
163
163
|
PipelineDtoStatusEnum: () => PipelineDtoStatusEnum,
|
|
164
|
+
PipelineMapV1ResponseKindEnum: () => PipelineMapV1ResponseKindEnum,
|
|
165
|
+
PipelineMapV1ResponseStatusEnum: () => PipelineMapV1ResponseStatusEnum,
|
|
164
166
|
PipelinePreviewDtoKindEnum: () => PipelinePreviewDtoKindEnum,
|
|
165
167
|
PipelinePreviewDtoStatusEnum: () => PipelinePreviewDtoStatusEnum,
|
|
166
168
|
PipelinesApi: () => PipelinesApi,
|
|
@@ -711,6 +713,14 @@ var PipelineDtoStateValueStatusEnum = {
|
|
|
711
713
|
Completed: "completed",
|
|
712
714
|
Failed: "failed"
|
|
713
715
|
};
|
|
716
|
+
var PipelineMapV1ResponseKindEnum = {
|
|
717
|
+
Operation: "operation"
|
|
718
|
+
};
|
|
719
|
+
var PipelineMapV1ResponseStatusEnum = {
|
|
720
|
+
Pending: "pending",
|
|
721
|
+
Finished: "finished",
|
|
722
|
+
Failed: "failed"
|
|
723
|
+
};
|
|
714
724
|
var PipelinePreviewDtoKindEnum = {
|
|
715
725
|
Pipeline: "pipeline"
|
|
716
726
|
};
|
|
@@ -3014,6 +3024,34 @@ var CallApiAxiosParamCreator = function(configuration) {
|
|
|
3014
3024
|
options: localVarRequestOptions
|
|
3015
3025
|
};
|
|
3016
3026
|
},
|
|
3027
|
+
/**
|
|
3028
|
+
*
|
|
3029
|
+
* @param {PipelineMapV1Request} pipelineMapV1Request
|
|
3030
|
+
* @param {*} [options] Override http request option.
|
|
3031
|
+
* @throws {RequiredError}
|
|
3032
|
+
*/
|
|
3033
|
+
callControllerCallOperationsRunPipelineMapV1V1: async (pipelineMapV1Request, options = {}) => {
|
|
3034
|
+
assertParamExists("callControllerCallOperationsRunPipelineMapV1V1", "pipelineMapV1Request", pipelineMapV1Request);
|
|
3035
|
+
const localVarPath = `/v1/call/operations.run.pipelineMap.v1`;
|
|
3036
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3037
|
+
let baseOptions;
|
|
3038
|
+
if (configuration) {
|
|
3039
|
+
baseOptions = configuration.baseOptions;
|
|
3040
|
+
}
|
|
3041
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3042
|
+
const localVarHeaderParameter = {};
|
|
3043
|
+
const localVarQueryParameter = {};
|
|
3044
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3045
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3046
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3047
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3048
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3049
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pipelineMapV1Request, localVarRequestOptions, configuration);
|
|
3050
|
+
return {
|
|
3051
|
+
url: toPathString(localVarUrlObj),
|
|
3052
|
+
options: localVarRequestOptions
|
|
3053
|
+
};
|
|
3054
|
+
},
|
|
3017
3055
|
/**
|
|
3018
3056
|
*
|
|
3019
3057
|
* @param {PoseEstimationV1Request} poseEstimationV1Request
|
|
@@ -4295,6 +4333,18 @@ var CallApiFp = function(configuration) {
|
|
|
4295
4333
|
const localVarOperationServerBasePath = operationServerMap["CallApi.callControllerCallOperationsRunOnecompilerV1V1"]?.[localVarOperationServerIndex]?.url;
|
|
4296
4334
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
4297
4335
|
},
|
|
4336
|
+
/**
|
|
4337
|
+
*
|
|
4338
|
+
* @param {PipelineMapV1Request} pipelineMapV1Request
|
|
4339
|
+
* @param {*} [options] Override http request option.
|
|
4340
|
+
* @throws {RequiredError}
|
|
4341
|
+
*/
|
|
4342
|
+
async callControllerCallOperationsRunPipelineMapV1V1(pipelineMapV1Request, options) {
|
|
4343
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.callControllerCallOperationsRunPipelineMapV1V1(pipelineMapV1Request, options);
|
|
4344
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4345
|
+
const localVarOperationServerBasePath = operationServerMap["CallApi.callControllerCallOperationsRunPipelineMapV1V1"]?.[localVarOperationServerIndex]?.url;
|
|
4346
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
4347
|
+
},
|
|
4298
4348
|
/**
|
|
4299
4349
|
*
|
|
4300
4350
|
* @param {PoseEstimationV1Request} poseEstimationV1Request
|
|
@@ -5032,6 +5082,15 @@ var CallApiFactory = function(configuration, basePath, axios2) {
|
|
|
5032
5082
|
callControllerCallOperationsRunOnecompilerV1V1(onecompilerV1Request, options) {
|
|
5033
5083
|
return localVarFp.callControllerCallOperationsRunOnecompilerV1V1(onecompilerV1Request, options).then((request) => request(axios2, basePath));
|
|
5034
5084
|
},
|
|
5085
|
+
/**
|
|
5086
|
+
*
|
|
5087
|
+
* @param {PipelineMapV1Request} pipelineMapV1Request
|
|
5088
|
+
* @param {*} [options] Override http request option.
|
|
5089
|
+
* @throws {RequiredError}
|
|
5090
|
+
*/
|
|
5091
|
+
callControllerCallOperationsRunPipelineMapV1V1(pipelineMapV1Request, options) {
|
|
5092
|
+
return localVarFp.callControllerCallOperationsRunPipelineMapV1V1(pipelineMapV1Request, options).then((request) => request(axios2, basePath));
|
|
5093
|
+
},
|
|
5035
5094
|
/**
|
|
5036
5095
|
*
|
|
5037
5096
|
* @param {PoseEstimationV1Request} poseEstimationV1Request
|
|
@@ -5740,6 +5799,16 @@ var CallApi = class extends BaseAPI {
|
|
|
5740
5799
|
callControllerCallOperationsRunOnecompilerV1V1(onecompilerV1Request, options) {
|
|
5741
5800
|
return CallApiFp(this.configuration).callControllerCallOperationsRunOnecompilerV1V1(onecompilerV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
5742
5801
|
}
|
|
5802
|
+
/**
|
|
5803
|
+
*
|
|
5804
|
+
* @param {PipelineMapV1Request} pipelineMapV1Request
|
|
5805
|
+
* @param {*} [options] Override http request option.
|
|
5806
|
+
* @throws {RequiredError}
|
|
5807
|
+
* @memberof CallApi
|
|
5808
|
+
*/
|
|
5809
|
+
callControllerCallOperationsRunPipelineMapV1V1(pipelineMapV1Request, options) {
|
|
5810
|
+
return CallApiFp(this.configuration).callControllerCallOperationsRunPipelineMapV1V1(pipelineMapV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
5811
|
+
}
|
|
5743
5812
|
/**
|
|
5744
5813
|
*
|
|
5745
5814
|
* @param {PoseEstimationV1Request} poseEstimationV1Request
|
|
@@ -7763,6 +7832,34 @@ var OperationsApiAxiosParamCreator = function(configuration) {
|
|
|
7763
7832
|
options: localVarRequestOptions
|
|
7764
7833
|
};
|
|
7765
7834
|
},
|
|
7835
|
+
/**
|
|
7836
|
+
*
|
|
7837
|
+
* @param {PipelineMapV1Request} pipelineMapV1Request
|
|
7838
|
+
* @param {*} [options] Override http request option.
|
|
7839
|
+
* @throws {RequiredError}
|
|
7840
|
+
*/
|
|
7841
|
+
operationsControllerRunPipelineMapV1V1: async (pipelineMapV1Request, options = {}) => {
|
|
7842
|
+
assertParamExists("operationsControllerRunPipelineMapV1V1", "pipelineMapV1Request", pipelineMapV1Request);
|
|
7843
|
+
const localVarPath = `/v1/operations/run/pipelineMap.v1`;
|
|
7844
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7845
|
+
let baseOptions;
|
|
7846
|
+
if (configuration) {
|
|
7847
|
+
baseOptions = configuration.baseOptions;
|
|
7848
|
+
}
|
|
7849
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
7850
|
+
const localVarHeaderParameter = {};
|
|
7851
|
+
const localVarQueryParameter = {};
|
|
7852
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7853
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
7854
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7855
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7856
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7857
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pipelineMapV1Request, localVarRequestOptions, configuration);
|
|
7858
|
+
return {
|
|
7859
|
+
url: toPathString(localVarUrlObj),
|
|
7860
|
+
options: localVarRequestOptions
|
|
7861
|
+
};
|
|
7862
|
+
},
|
|
7766
7863
|
/**
|
|
7767
7864
|
*
|
|
7768
7865
|
* @param {PoseEstimationV1Request} poseEstimationV1Request
|
|
@@ -8300,6 +8397,18 @@ var OperationsApiFp = function(configuration) {
|
|
|
8300
8397
|
const localVarOperationServerBasePath = operationServerMap["OperationsApi.operationsControllerRunOnecompilerV1V1"]?.[localVarOperationServerIndex]?.url;
|
|
8301
8398
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
8302
8399
|
},
|
|
8400
|
+
/**
|
|
8401
|
+
*
|
|
8402
|
+
* @param {PipelineMapV1Request} pipelineMapV1Request
|
|
8403
|
+
* @param {*} [options] Override http request option.
|
|
8404
|
+
* @throws {RequiredError}
|
|
8405
|
+
*/
|
|
8406
|
+
async operationsControllerRunPipelineMapV1V1(pipelineMapV1Request, options) {
|
|
8407
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunPipelineMapV1V1(pipelineMapV1Request, options);
|
|
8408
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8409
|
+
const localVarOperationServerBasePath = operationServerMap["OperationsApi.operationsControllerRunPipelineMapV1V1"]?.[localVarOperationServerIndex]?.url;
|
|
8410
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
8411
|
+
},
|
|
8303
8412
|
/**
|
|
8304
8413
|
*
|
|
8305
8414
|
* @param {PoseEstimationV1Request} poseEstimationV1Request
|
|
@@ -8623,6 +8732,15 @@ var OperationsApiFactory = function(configuration, basePath, axios2) {
|
|
|
8623
8732
|
operationsControllerRunOnecompilerV1V1(onecompilerV1Request, options) {
|
|
8624
8733
|
return localVarFp.operationsControllerRunOnecompilerV1V1(onecompilerV1Request, options).then((request) => request(axios2, basePath));
|
|
8625
8734
|
},
|
|
8735
|
+
/**
|
|
8736
|
+
*
|
|
8737
|
+
* @param {PipelineMapV1Request} pipelineMapV1Request
|
|
8738
|
+
* @param {*} [options] Override http request option.
|
|
8739
|
+
* @throws {RequiredError}
|
|
8740
|
+
*/
|
|
8741
|
+
operationsControllerRunPipelineMapV1V1(pipelineMapV1Request, options) {
|
|
8742
|
+
return localVarFp.operationsControllerRunPipelineMapV1V1(pipelineMapV1Request, options).then((request) => request(axios2, basePath));
|
|
8743
|
+
},
|
|
8626
8744
|
/**
|
|
8627
8745
|
*
|
|
8628
8746
|
* @param {PoseEstimationV1Request} poseEstimationV1Request
|
|
@@ -8940,6 +9058,16 @@ var OperationsApi = class extends BaseAPI {
|
|
|
8940
9058
|
operationsControllerRunOnecompilerV1V1(onecompilerV1Request, options) {
|
|
8941
9059
|
return OperationsApiFp(this.configuration).operationsControllerRunOnecompilerV1V1(onecompilerV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
8942
9060
|
}
|
|
9061
|
+
/**
|
|
9062
|
+
*
|
|
9063
|
+
* @param {PipelineMapV1Request} pipelineMapV1Request
|
|
9064
|
+
* @param {*} [options] Override http request option.
|
|
9065
|
+
* @throws {RequiredError}
|
|
9066
|
+
* @memberof OperationsApi
|
|
9067
|
+
*/
|
|
9068
|
+
operationsControllerRunPipelineMapV1V1(pipelineMapV1Request, options) {
|
|
9069
|
+
return OperationsApiFp(this.configuration).operationsControllerRunPipelineMapV1V1(pipelineMapV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
9070
|
+
}
|
|
8943
9071
|
/**
|
|
8944
9072
|
*
|
|
8945
9073
|
* @param {PoseEstimationV1Request} poseEstimationV1Request
|
|
@@ -9166,11 +9294,12 @@ var PipelinesApiAxiosParamCreator = function(configuration) {
|
|
|
9166
9294
|
*
|
|
9167
9295
|
* @param {PipelinesControllerListPipelinesV1OrderByEnum} [orderBy]
|
|
9168
9296
|
* @param {number} [limit]
|
|
9297
|
+
* @param {string} [parentOperationId]
|
|
9169
9298
|
* @param {string} [cursor]
|
|
9170
9299
|
* @param {*} [options] Override http request option.
|
|
9171
9300
|
* @throws {RequiredError}
|
|
9172
9301
|
*/
|
|
9173
|
-
pipelinesControllerListPipelinesV1: async (orderBy, limit, cursor, options = {}) => {
|
|
9302
|
+
pipelinesControllerListPipelinesV1: async (orderBy, limit, parentOperationId, cursor, options = {}) => {
|
|
9174
9303
|
const localVarPath = `/v1/pipelines`;
|
|
9175
9304
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9176
9305
|
let baseOptions;
|
|
@@ -9187,6 +9316,9 @@ var PipelinesApiAxiosParamCreator = function(configuration) {
|
|
|
9187
9316
|
if (limit !== void 0) {
|
|
9188
9317
|
localVarQueryParameter["limit"] = limit;
|
|
9189
9318
|
}
|
|
9319
|
+
if (parentOperationId !== void 0) {
|
|
9320
|
+
localVarQueryParameter["parentOperationId"] = parentOperationId;
|
|
9321
|
+
}
|
|
9190
9322
|
if (cursor !== void 0) {
|
|
9191
9323
|
localVarQueryParameter["cursor"] = cursor;
|
|
9192
9324
|
}
|
|
@@ -9231,12 +9363,13 @@ var PipelinesApiFp = function(configuration) {
|
|
|
9231
9363
|
*
|
|
9232
9364
|
* @param {PipelinesControllerListPipelinesV1OrderByEnum} [orderBy]
|
|
9233
9365
|
* @param {number} [limit]
|
|
9366
|
+
* @param {string} [parentOperationId]
|
|
9234
9367
|
* @param {string} [cursor]
|
|
9235
9368
|
* @param {*} [options] Override http request option.
|
|
9236
9369
|
* @throws {RequiredError}
|
|
9237
9370
|
*/
|
|
9238
|
-
async pipelinesControllerListPipelinesV1(orderBy, limit, cursor, options) {
|
|
9239
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.pipelinesControllerListPipelinesV1(orderBy, limit, cursor, options);
|
|
9371
|
+
async pipelinesControllerListPipelinesV1(orderBy, limit, parentOperationId, cursor, options) {
|
|
9372
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pipelinesControllerListPipelinesV1(orderBy, limit, parentOperationId, cursor, options);
|
|
9240
9373
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9241
9374
|
const localVarOperationServerBasePath = operationServerMap["PipelinesApi.pipelinesControllerListPipelinesV1"]?.[localVarOperationServerIndex]?.url;
|
|
9242
9375
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
@@ -9268,12 +9401,13 @@ var PipelinesApiFactory = function(configuration, basePath, axios2) {
|
|
|
9268
9401
|
*
|
|
9269
9402
|
* @param {PipelinesControllerListPipelinesV1OrderByEnum} [orderBy]
|
|
9270
9403
|
* @param {number} [limit]
|
|
9404
|
+
* @param {string} [parentOperationId]
|
|
9271
9405
|
* @param {string} [cursor]
|
|
9272
9406
|
* @param {*} [options] Override http request option.
|
|
9273
9407
|
* @throws {RequiredError}
|
|
9274
9408
|
*/
|
|
9275
|
-
pipelinesControllerListPipelinesV1(orderBy, limit, cursor, options) {
|
|
9276
|
-
return localVarFp.pipelinesControllerListPipelinesV1(orderBy, limit, cursor, options).then((request) => request(axios2, basePath));
|
|
9409
|
+
pipelinesControllerListPipelinesV1(orderBy, limit, parentOperationId, cursor, options) {
|
|
9410
|
+
return localVarFp.pipelinesControllerListPipelinesV1(orderBy, limit, parentOperationId, cursor, options).then((request) => request(axios2, basePath));
|
|
9277
9411
|
}
|
|
9278
9412
|
};
|
|
9279
9413
|
};
|
|
@@ -9302,13 +9436,14 @@ var PipelinesApi = class extends BaseAPI {
|
|
|
9302
9436
|
*
|
|
9303
9437
|
* @param {PipelinesControllerListPipelinesV1OrderByEnum} [orderBy]
|
|
9304
9438
|
* @param {number} [limit]
|
|
9439
|
+
* @param {string} [parentOperationId]
|
|
9305
9440
|
* @param {string} [cursor]
|
|
9306
9441
|
* @param {*} [options] Override http request option.
|
|
9307
9442
|
* @throws {RequiredError}
|
|
9308
9443
|
* @memberof PipelinesApi
|
|
9309
9444
|
*/
|
|
9310
|
-
pipelinesControllerListPipelinesV1(orderBy, limit, cursor, options) {
|
|
9311
|
-
return PipelinesApiFp(this.configuration).pipelinesControllerListPipelinesV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
9445
|
+
pipelinesControllerListPipelinesV1(orderBy, limit, parentOperationId, cursor, options) {
|
|
9446
|
+
return PipelinesApiFp(this.configuration).pipelinesControllerListPipelinesV1(orderBy, limit, parentOperationId, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
9312
9447
|
}
|
|
9313
9448
|
};
|
|
9314
9449
|
var PipelinesControllerListPipelinesV1OrderByEnum = {
|
|
@@ -10250,6 +10385,34 @@ var StorageApi = class extends BaseAPI {
|
|
|
10250
10385
|
};
|
|
10251
10386
|
var VideosApiAxiosParamCreator = function(configuration) {
|
|
10252
10387
|
return {
|
|
10388
|
+
/**
|
|
10389
|
+
*
|
|
10390
|
+
* @param {CreateVideoParamsDto} createVideoParamsDto
|
|
10391
|
+
* @param {*} [options] Override http request option.
|
|
10392
|
+
* @throws {RequiredError}
|
|
10393
|
+
*/
|
|
10394
|
+
videosControllerFinalizeUploadV1: async (createVideoParamsDto, options = {}) => {
|
|
10395
|
+
assertParamExists("videosControllerFinalizeUploadV1", "createVideoParamsDto", createVideoParamsDto);
|
|
10396
|
+
const localVarPath = `/v1/videos/upload/finalize`;
|
|
10397
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10398
|
+
let baseOptions;
|
|
10399
|
+
if (configuration) {
|
|
10400
|
+
baseOptions = configuration.baseOptions;
|
|
10401
|
+
}
|
|
10402
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
10403
|
+
const localVarHeaderParameter = {};
|
|
10404
|
+
const localVarQueryParameter = {};
|
|
10405
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10406
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
10407
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10408
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10409
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10410
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createVideoParamsDto, localVarRequestOptions, configuration);
|
|
10411
|
+
return {
|
|
10412
|
+
url: toPathString(localVarUrlObj),
|
|
10413
|
+
options: localVarRequestOptions
|
|
10414
|
+
};
|
|
10415
|
+
},
|
|
10253
10416
|
/**
|
|
10254
10417
|
*
|
|
10255
10418
|
* @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
|
|
@@ -10303,12 +10466,48 @@ var VideosApiAxiosParamCreator = function(configuration) {
|
|
|
10303
10466
|
url: toPathString(localVarUrlObj),
|
|
10304
10467
|
options: localVarRequestOptions
|
|
10305
10468
|
};
|
|
10469
|
+
},
|
|
10470
|
+
/**
|
|
10471
|
+
*
|
|
10472
|
+
* @param {*} [options] Override http request option.
|
|
10473
|
+
* @throws {RequiredError}
|
|
10474
|
+
*/
|
|
10475
|
+
videosControllerStartUploadV1: async (options = {}) => {
|
|
10476
|
+
const localVarPath = `/v1/videos/upload/initialize`;
|
|
10477
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10478
|
+
let baseOptions;
|
|
10479
|
+
if (configuration) {
|
|
10480
|
+
baseOptions = configuration.baseOptions;
|
|
10481
|
+
}
|
|
10482
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
10483
|
+
const localVarHeaderParameter = {};
|
|
10484
|
+
const localVarQueryParameter = {};
|
|
10485
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10486
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10487
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10488
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10489
|
+
return {
|
|
10490
|
+
url: toPathString(localVarUrlObj),
|
|
10491
|
+
options: localVarRequestOptions
|
|
10492
|
+
};
|
|
10306
10493
|
}
|
|
10307
10494
|
};
|
|
10308
10495
|
};
|
|
10309
10496
|
var VideosApiFp = function(configuration) {
|
|
10310
10497
|
const localVarAxiosParamCreator = VideosApiAxiosParamCreator(configuration);
|
|
10311
10498
|
return {
|
|
10499
|
+
/**
|
|
10500
|
+
*
|
|
10501
|
+
* @param {CreateVideoParamsDto} createVideoParamsDto
|
|
10502
|
+
* @param {*} [options] Override http request option.
|
|
10503
|
+
* @throws {RequiredError}
|
|
10504
|
+
*/
|
|
10505
|
+
async videosControllerFinalizeUploadV1(createVideoParamsDto, options) {
|
|
10506
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.videosControllerFinalizeUploadV1(createVideoParamsDto, options);
|
|
10507
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10508
|
+
const localVarOperationServerBasePath = operationServerMap["VideosApi.videosControllerFinalizeUploadV1"]?.[localVarOperationServerIndex]?.url;
|
|
10509
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
10510
|
+
},
|
|
10312
10511
|
/**
|
|
10313
10512
|
*
|
|
10314
10513
|
* @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
|
|
@@ -10332,12 +10531,32 @@ var VideosApiFp = function(configuration) {
|
|
|
10332
10531
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10333
10532
|
const localVarOperationServerBasePath = operationServerMap["VideosApi.videosControllerGetVideoV1"]?.[localVarOperationServerIndex]?.url;
|
|
10334
10533
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
10534
|
+
},
|
|
10535
|
+
/**
|
|
10536
|
+
*
|
|
10537
|
+
* @param {*} [options] Override http request option.
|
|
10538
|
+
* @throws {RequiredError}
|
|
10539
|
+
*/
|
|
10540
|
+
async videosControllerStartUploadV1(options) {
|
|
10541
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.videosControllerStartUploadV1(options);
|
|
10542
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10543
|
+
const localVarOperationServerBasePath = operationServerMap["VideosApi.videosControllerStartUploadV1"]?.[localVarOperationServerIndex]?.url;
|
|
10544
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
10335
10545
|
}
|
|
10336
10546
|
};
|
|
10337
10547
|
};
|
|
10338
10548
|
var VideosApiFactory = function(configuration, basePath, axios2) {
|
|
10339
10549
|
const localVarFp = VideosApiFp(configuration);
|
|
10340
10550
|
return {
|
|
10551
|
+
/**
|
|
10552
|
+
*
|
|
10553
|
+
* @param {CreateVideoParamsDto} createVideoParamsDto
|
|
10554
|
+
* @param {*} [options] Override http request option.
|
|
10555
|
+
* @throws {RequiredError}
|
|
10556
|
+
*/
|
|
10557
|
+
videosControllerFinalizeUploadV1(createVideoParamsDto, options) {
|
|
10558
|
+
return localVarFp.videosControllerFinalizeUploadV1(createVideoParamsDto, options).then((request) => request(axios2, basePath));
|
|
10559
|
+
},
|
|
10341
10560
|
/**
|
|
10342
10561
|
*
|
|
10343
10562
|
* @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
|
|
@@ -10355,10 +10574,28 @@ var VideosApiFactory = function(configuration, basePath, axios2) {
|
|
|
10355
10574
|
*/
|
|
10356
10575
|
videosControllerGetVideoV1(id, options) {
|
|
10357
10576
|
return localVarFp.videosControllerGetVideoV1(id, options).then((request) => request(axios2, basePath));
|
|
10577
|
+
},
|
|
10578
|
+
/**
|
|
10579
|
+
*
|
|
10580
|
+
* @param {*} [options] Override http request option.
|
|
10581
|
+
* @throws {RequiredError}
|
|
10582
|
+
*/
|
|
10583
|
+
videosControllerStartUploadV1(options) {
|
|
10584
|
+
return localVarFp.videosControllerStartUploadV1(options).then((request) => request(axios2, basePath));
|
|
10358
10585
|
}
|
|
10359
10586
|
};
|
|
10360
10587
|
};
|
|
10361
10588
|
var VideosApi = class extends BaseAPI {
|
|
10589
|
+
/**
|
|
10590
|
+
*
|
|
10591
|
+
* @param {CreateVideoParamsDto} createVideoParamsDto
|
|
10592
|
+
* @param {*} [options] Override http request option.
|
|
10593
|
+
* @throws {RequiredError}
|
|
10594
|
+
* @memberof VideosApi
|
|
10595
|
+
*/
|
|
10596
|
+
videosControllerFinalizeUploadV1(createVideoParamsDto, options) {
|
|
10597
|
+
return VideosApiFp(this.configuration).videosControllerFinalizeUploadV1(createVideoParamsDto, options).then((request) => request(this.axios, this.basePath));
|
|
10598
|
+
}
|
|
10362
10599
|
/**
|
|
10363
10600
|
*
|
|
10364
10601
|
* @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
|
|
@@ -10379,6 +10616,15 @@ var VideosApi = class extends BaseAPI {
|
|
|
10379
10616
|
videosControllerGetVideoV1(id, options) {
|
|
10380
10617
|
return VideosApiFp(this.configuration).videosControllerGetVideoV1(id, options).then((request) => request(this.axios, this.basePath));
|
|
10381
10618
|
}
|
|
10619
|
+
/**
|
|
10620
|
+
*
|
|
10621
|
+
* @param {*} [options] Override http request option.
|
|
10622
|
+
* @throws {RequiredError}
|
|
10623
|
+
* @memberof VideosApi
|
|
10624
|
+
*/
|
|
10625
|
+
videosControllerStartUploadV1(options) {
|
|
10626
|
+
return VideosApiFp(this.configuration).videosControllerStartUploadV1(options).then((request) => request(this.axios, this.basePath));
|
|
10627
|
+
}
|
|
10382
10628
|
};
|
|
10383
10629
|
var WebsocketApiAxiosParamCreator = function(configuration) {
|
|
10384
10630
|
return {
|
|
@@ -11341,6 +11587,9 @@ var operations = (options, operationsListener) => {
|
|
|
11341
11587
|
v1: createOperation(
|
|
11342
11588
|
(methods, props) => methods.operationsControllerRunOnecompilerV1V1(props)
|
|
11343
11589
|
)
|
|
11590
|
+
},
|
|
11591
|
+
pipelineMap: {
|
|
11592
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunPipelineMapV1V1(props))
|
|
11344
11593
|
}
|
|
11345
11594
|
},
|
|
11346
11595
|
get: (props) => api.callWithReturningUndefinedOn404({
|
|
@@ -11530,6 +11779,30 @@ var pipelines = (options) => {
|
|
|
11530
11779
|
},
|
|
11531
11780
|
onecompiler: {
|
|
11532
11781
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunOnecompilerV1V1)
|
|
11782
|
+
},
|
|
11783
|
+
pipelineMap: {
|
|
11784
|
+
v1: callMethod((methods) => methods.callControllerCallOperationsRunPipelineMapV1V1)
|
|
11785
|
+
// v1: (params: {
|
|
11786
|
+
// template: { tasks: any; outputRef: any };
|
|
11787
|
+
// input: Omit<PipelineMapV1Input, 'pipeline'> & { input: any };
|
|
11788
|
+
// metadata?: any;
|
|
11789
|
+
// }) => {
|
|
11790
|
+
// console.log(1111, params.template.tasks)
|
|
11791
|
+
// return callAPI.call({
|
|
11792
|
+
// run: (methods: CallApi) =>
|
|
11793
|
+
// methods.callControllerCallOperationsRunPipelineMapV1V1({
|
|
11794
|
+
// input: {
|
|
11795
|
+
// pipeline: JSON.stringify({
|
|
11796
|
+
// tasks: params.template.tasks,
|
|
11797
|
+
// outputRef: params.template.outputRef,
|
|
11798
|
+
// }),
|
|
11799
|
+
// ...params.input
|
|
11800
|
+
// },
|
|
11801
|
+
// metadata: params.metadata,
|
|
11802
|
+
// })
|
|
11803
|
+
// });
|
|
11804
|
+
// },
|
|
11805
|
+
// },
|
|
11533
11806
|
}
|
|
11534
11807
|
},
|
|
11535
11808
|
wait: callMethod((methods) => methods.callControllerCallOperationsWaitV1)
|
|
@@ -11556,19 +11829,23 @@ var pipelines = (options) => {
|
|
|
11556
11829
|
}
|
|
11557
11830
|
});
|
|
11558
11831
|
return {
|
|
11559
|
-
constructTemplate: (
|
|
11832
|
+
constructTemplate: (constructPipeline) => constructPipeline(createPipeline()),
|
|
11560
11833
|
create: async (props) => api.call({
|
|
11561
|
-
run: (methods) =>
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11834
|
+
run: (methods) => {
|
|
11835
|
+
return methods.pipelinesControllerCreatePipelineV1({
|
|
11836
|
+
metadata: props.metadata,
|
|
11837
|
+
tasks: props.template?.tasks ?? props.tasks,
|
|
11838
|
+
state: props.state,
|
|
11839
|
+
pipelineInput: props.template?.inputRef,
|
|
11840
|
+
outputRef: props.template?.outputRef
|
|
11841
|
+
});
|
|
11842
|
+
}
|
|
11566
11843
|
}),
|
|
11567
11844
|
get: async (props) => api.callWithReturningUndefinedOn404({
|
|
11568
11845
|
run: (methods) => methods.pipelinesControllerGetPipelineV1(props.id)
|
|
11569
11846
|
}),
|
|
11570
11847
|
list: (props = {}) => api.call({
|
|
11571
|
-
run: (methods) => methods.pipelinesControllerListPipelinesV1(props.orderBy, props.limit, props.cursor),
|
|
11848
|
+
run: (methods) => methods.pipelinesControllerListPipelinesV1(props.orderBy, props.limit, props.parentOperationId, props.cursor),
|
|
11572
11849
|
transform: transformToListResponse
|
|
11573
11850
|
}),
|
|
11574
11851
|
wait: async (props) => new Promise((resolve, reject) => {
|
|
@@ -12065,6 +12342,8 @@ var createTokenSigner = (options) => {
|
|
|
12065
12342
|
PipelineDtoKindEnum,
|
|
12066
12343
|
PipelineDtoStateValueStatusEnum,
|
|
12067
12344
|
PipelineDtoStatusEnum,
|
|
12345
|
+
PipelineMapV1ResponseKindEnum,
|
|
12346
|
+
PipelineMapV1ResponseStatusEnum,
|
|
12068
12347
|
PipelinePreviewDtoKindEnum,
|
|
12069
12348
|
PipelinePreviewDtoStatusEnum,
|
|
12070
12349
|
PipelinesApi,
|