@shapediver/sdk.geometry-api-sdk-v2 1.12.2 → 2.0.1
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/README.md +160 -60
- package/dist/UtilsApi.d.ts +20 -0
- package/dist/UtilsApi.d.ts.map +1 -0
- package/dist/UtilsApi.js +185 -0
- package/dist/UtilsApi.js.map +1 -0
- package/dist/client/api.d.ts +2117 -0
- package/dist/client/api.d.ts.map +1 -0
- package/dist/client/api.js +3473 -0
- package/dist/client/api.js.map +1 -0
- package/dist/client/base.d.ts +32 -0
- package/dist/client/base.d.ts.map +1 -0
- package/dist/client/base.js +37 -0
- package/dist/client/base.js.map +1 -0
- package/dist/client/common.d.ts +14 -0
- package/dist/client/common.d.ts.map +1 -0
- package/dist/client/common.js +108 -0
- package/dist/client/common.js.map +1 -0
- package/dist/client/configuration.d.ts +23 -0
- package/dist/client/configuration.d.ts.map +1 -0
- package/dist/client/configuration.js +21 -0
- package/dist/client/configuration.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +19 -0
- package/dist/client/index.js.map +1 -0
- package/dist/configuration.d.ts +8 -0
- package/dist/configuration.d.ts.map +1 -0
- package/dist/configuration.js +22 -0
- package/dist/configuration.js.map +1 -0
- package/dist/error.d.ts +22 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +48 -0
- package/dist/error.js.map +1 -0
- package/dist/index.d.ts +5 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -17
- package/dist/index.js.map +1 -1
- package/dist/utils.d.ts +12 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +93 -0
- package/dist/utils.js.map +1 -0
- package/package.json +55 -57
- package/src/UtilsApi.ts +393 -0
- package/src/client/api.ts +14084 -0
- package/src/client/base.ts +86 -0
- package/src/client/common.ts +150 -0
- package/src/client/configuration.ts +110 -0
- package/src/client/index.ts +18 -0
- package/src/configuration.ts +27 -0
- package/src/error.ts +92 -0
- package/src/index.ts +5 -17
- package/src/utils.ts +126 -0
- package/dist/ShapeDiverErrors.d.ts +0 -10
- package/dist/ShapeDiverErrors.d.ts.map +0 -1
- package/dist/ShapeDiverErrors.js +0 -18
- package/dist/ShapeDiverErrors.js.map +0 -1
- package/dist/ShapeDiverSdk.d.ts +0 -48
- package/dist/ShapeDiverSdk.d.ts.map +0 -1
- package/dist/ShapeDiverSdk.js +0 -87
- package/dist/ShapeDiverSdk.js.map +0 -1
- package/dist/resources/ShapeDiverAnalyticsApi.d.ts +0 -12
- package/dist/resources/ShapeDiverAnalyticsApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverAnalyticsApi.js +0 -63
- package/dist/resources/ShapeDiverAnalyticsApi.js.map +0 -1
- package/dist/resources/ShapeDiverArSceneApi.d.ts +0 -8
- package/dist/resources/ShapeDiverArSceneApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverArSceneApi.js +0 -63
- package/dist/resources/ShapeDiverArSceneApi.js.map +0 -1
- package/dist/resources/ShapeDiverAssetApi.d.ts +0 -13
- package/dist/resources/ShapeDiverAssetApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverAssetApi.js +0 -131
- package/dist/resources/ShapeDiverAssetApi.js.map +0 -1
- package/dist/resources/ShapeDiverExportApi.d.ts +0 -10
- package/dist/resources/ShapeDiverExportApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverExportApi.js +0 -49
- package/dist/resources/ShapeDiverExportApi.js.map +0 -1
- package/dist/resources/ShapeDiverFileApi.d.ts +0 -15
- package/dist/resources/ShapeDiverFileApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverFileApi.js +0 -67
- package/dist/resources/ShapeDiverFileApi.js.map +0 -1
- package/dist/resources/ShapeDiverGltfApi.d.ts +0 -7
- package/dist/resources/ShapeDiverGltfApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverGltfApi.js +0 -32
- package/dist/resources/ShapeDiverGltfApi.js.map +0 -1
- package/dist/resources/ShapeDiverModelApi.d.ts +0 -22
- package/dist/resources/ShapeDiverModelApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverModelApi.js +0 -156
- package/dist/resources/ShapeDiverModelApi.js.map +0 -1
- package/dist/resources/ShapeDiverModelStateApi.d.ts +0 -14
- package/dist/resources/ShapeDiverModelStateApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverModelStateApi.js +0 -104
- package/dist/resources/ShapeDiverModelStateApi.js.map +0 -1
- package/dist/resources/ShapeDiverOutputApi.d.ts +0 -10
- package/dist/resources/ShapeDiverOutputApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverOutputApi.js +0 -52
- package/dist/resources/ShapeDiverOutputApi.js.map +0 -1
- package/dist/resources/ShapeDiverSdtfApi.d.ts +0 -10
- package/dist/resources/ShapeDiverSdtfApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverSdtfApi.js +0 -52
- package/dist/resources/ShapeDiverSdtfApi.js.map +0 -1
- package/dist/resources/ShapeDiverSessionApi.d.ts +0 -11
- package/dist/resources/ShapeDiverSessionApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverSessionApi.js +0 -66
- package/dist/resources/ShapeDiverSessionApi.js.map +0 -1
- package/dist/resources/ShapeDiverSystemApi.d.ts +0 -12
- package/dist/resources/ShapeDiverSystemApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverSystemApi.js +0 -63
- package/dist/resources/ShapeDiverSystemApi.js.map +0 -1
- package/dist/resources/ShapeDiverTextureApi.d.ts +0 -7
- package/dist/resources/ShapeDiverTextureApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverTextureApi.js +0 -31
- package/dist/resources/ShapeDiverTextureApi.js.map +0 -1
- package/dist/resources/ShapeDiverUtilsApi.d.ts +0 -18
- package/dist/resources/ShapeDiverUtilsApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverUtilsApi.js +0 -146
- package/dist/resources/ShapeDiverUtilsApi.js.map +0 -1
- package/dist/utils/utils.d.ts +0 -12
- package/dist/utils/utils.d.ts.map +0 -1
- package/dist/utils/utils.js +0 -109
- package/dist/utils/utils.js.map +0 -1
- package/src/ShapeDiverErrors.ts +0 -34
- package/src/ShapeDiverSdk.ts +0 -121
- package/src/resources/ShapeDiverAnalyticsApi.ts +0 -108
- package/src/resources/ShapeDiverArSceneApi.ts +0 -77
- package/src/resources/ShapeDiverAssetApi.ts +0 -241
- package/src/resources/ShapeDiverExportApi.ts +0 -103
- package/src/resources/ShapeDiverFileApi.ts +0 -150
- package/src/resources/ShapeDiverGltfApi.ts +0 -46
- package/src/resources/ShapeDiverModelApi.ts +0 -374
- package/src/resources/ShapeDiverModelStateApi.ts +0 -163
- package/src/resources/ShapeDiverOutputApi.ts +0 -109
- package/src/resources/ShapeDiverSdtfApi.ts +0 -103
- package/src/resources/ShapeDiverSessionApi.ts +0 -142
- package/src/resources/ShapeDiverSystemApi.ts +0 -118
- package/src/resources/ShapeDiverTextureApi.ts +0 -36
- package/src/resources/ShapeDiverUtilsApi.ts +0 -318
- package/src/utils/utils.ts +0 -135
|
@@ -0,0 +1,3473 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.ExportApi = exports.ExportApiFactory = exports.ExportApiFp = exports.ExportApiAxiosParamCreator = exports.AuthGroupApi = exports.AuthGroupApiFactory = exports.AuthGroupApiFp = exports.AuthGroupApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AssetsApi = exports.AssetsApiFactory = exports.AssetsApiFp = exports.AssetsApiAxiosParamCreator = exports.ArSceneApi = exports.ArSceneApiFactory = exports.ArSceneApiFp = exports.ArSceneApiAxiosParamCreator = exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = exports.ResVisualizationType = exports.ResTicketType = exports.ResStructureType = exports.ResParameterType = exports.ResModelStatus = exports.ResModelCleanupProcessType = exports.ResExportDefinitionType = exports.ResErrorType = exports.ResComputationStatus = exports.ReqTrustLevel = exports.ReqTicketType = exports.ReqSdtfType = exports.ReqModelFileType = exports.ReqLogLevel = exports.QueryOrder = exports.QueryModelStatus = exports.QueryGltfConversion = exports.QueryComputationType = exports.QueryComputationStatus = exports.QueryComputationStatisticsStatus = exports.CommonsTicketType = exports.CommonsModelStatus = exports.CommonsComputationStatus = void 0;
|
|
16
|
+
exports.TextureApi = exports.TextureApiFactory = exports.TextureApiFp = exports.TextureApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SessionApi = exports.SessionApiFactory = exports.SessionApiFp = exports.SessionApiAxiosParamCreator = exports.SdtfApi = exports.SdtfApiFactory = exports.SdtfApiFp = exports.SdtfApiAxiosParamCreator = exports.ScriptApi = exports.ScriptApiFactory = exports.ScriptApiFp = exports.ScriptApiAxiosParamCreator = exports.OutputApi = exports.OutputApiFactory = exports.OutputApiFp = exports.OutputApiAxiosParamCreator = exports.ModelStateApi = exports.ModelStateApiFactory = exports.ModelStateApiFp = exports.ModelStateApiAxiosParamCreator = exports.ModelApi = exports.ModelApiFactory = exports.ModelApiFp = exports.ModelApiAxiosParamCreator = exports.LogApi = exports.LogApiFactory = exports.LogApiFp = exports.LogApiAxiosParamCreator = exports.GltfApi = exports.GltfApiFactory = exports.GltfApiFp = exports.GltfApiAxiosParamCreator = exports.FileApi = void 0;
|
|
17
|
+
const axios_1 = __importDefault(require("axios"));
|
|
18
|
+
const common_1 = require("./common");
|
|
19
|
+
const base_1 = require("./base");
|
|
20
|
+
exports.CommonsComputationStatus = {
|
|
21
|
+
SUCCESS: 'success',
|
|
22
|
+
TIMEOUT: 'timeout',
|
|
23
|
+
CHECK_CONFIRMED: 'checkconfirmed',
|
|
24
|
+
CHECK_DENIED: 'checkdenied',
|
|
25
|
+
CHECK_PENDING: 'checkpending',
|
|
26
|
+
MAX_COMBINED_ASSET_SIZE_EXCEEDED: 'maxcombinedassetsizeexceeded',
|
|
27
|
+
MAX_DB_SIZE_PER_OUTPUT_EXCEEDED: 'maxdbsizeperoutputexceeded',
|
|
28
|
+
MAX_PARTS_PER_OUTPUT_EXCEEDED: 'maxpartsperoutputexceeded',
|
|
29
|
+
MAX_ASSET_PARTS_PER_OUTPUT_EXCEEDED: 'maxassetpartsperoutputexceeded',
|
|
30
|
+
MAX_TRANSFORMATIONS_PER_OUTPUT_EXCEEDED: 'maxtransformationsperoutputexceeded',
|
|
31
|
+
MAX_PARTS_EXCEEDED: 'maxpartsexceeded',
|
|
32
|
+
MAX_ASSET_PARTS_EXCEEDED: 'maxassetpartsexceeded',
|
|
33
|
+
RECOVERABLE_ERROR: 'recoverableerror',
|
|
34
|
+
UNRECOVERABLE_ERROR: 'unrecoverableerror',
|
|
35
|
+
NO_OUTPUT_DATA_FOR_DEFAULT_PARAMETER_VALUES: 'nooutputdatafordefaultparametervalues',
|
|
36
|
+
MODEL_WITHOUT_GEOMETRY_OUTPUT: 'modelwithoutgeometryoutput',
|
|
37
|
+
UNKNOWN: 'unknown'
|
|
38
|
+
};
|
|
39
|
+
exports.CommonsModelStatus = {
|
|
40
|
+
UNKNOWN: 'unknown',
|
|
41
|
+
NOT_UPLOADED: 'not_uploaded',
|
|
42
|
+
UPLOADED: 'uploaded',
|
|
43
|
+
PENDING: 'pending',
|
|
44
|
+
CONFIRMED: 'confirmed',
|
|
45
|
+
DENIED: 'denied',
|
|
46
|
+
DELETED: 'deleted'
|
|
47
|
+
};
|
|
48
|
+
exports.CommonsTicketType = {
|
|
49
|
+
BACKEND: 'backend',
|
|
50
|
+
NONE: ''
|
|
51
|
+
};
|
|
52
|
+
exports.QueryComputationStatisticsStatus = {
|
|
53
|
+
SUCCESS: 'success',
|
|
54
|
+
TIMEOUT: 'timeout',
|
|
55
|
+
OTHER: 'other',
|
|
56
|
+
ALL: '*'
|
|
57
|
+
};
|
|
58
|
+
exports.QueryComputationStatus = {
|
|
59
|
+
SUCCESS: 'success',
|
|
60
|
+
TIMEOUT: 'timeout',
|
|
61
|
+
CHECK_CONFIRMED: 'checkconfirmed',
|
|
62
|
+
CHECK_DENIED: 'checkdenied',
|
|
63
|
+
CHECK_PENDING: 'checkpending',
|
|
64
|
+
MAX_COMBINED_ASSET_SIZE_EXCEEDED: 'maxcombinedassetsizeexceeded',
|
|
65
|
+
MAX_DB_SIZE_PER_OUTPUT_EXCEEDED: 'maxdbsizeperoutputexceeded',
|
|
66
|
+
MAX_PARTS_PER_OUTPUT_EXCEEDED: 'maxpartsperoutputexceeded',
|
|
67
|
+
MAX_ASSET_PARTS_PER_OUTPUT_EXCEEDED: 'maxassetpartsperoutputexceeded',
|
|
68
|
+
MAX_TRANSFORMATIONS_PER_OUTPUT_EXCEEDED: 'maxtransformationsperoutputexceeded',
|
|
69
|
+
MAX_PARTS_EXCEEDED: 'maxpartsexceeded',
|
|
70
|
+
MAX_ASSET_PARTS_EXCEEDED: 'maxassetpartsexceeded',
|
|
71
|
+
RECOVERABLE_ERROR: 'recoverableerror',
|
|
72
|
+
UNRECOVERABLE_ERROR: 'unrecoverableerror',
|
|
73
|
+
NO_OUTPUT_DATA_FOR_DEFAULT_PARAMETER_VALUES: 'nooutputdatafordefaultparametervalues',
|
|
74
|
+
MODEL_WITHOUT_GEOMETRY_OUTPUT: 'modelwithoutgeometryoutput',
|
|
75
|
+
UNKNOWN: 'unknown'
|
|
76
|
+
};
|
|
77
|
+
exports.QueryComputationType = {
|
|
78
|
+
COMPUTATION: 'computation',
|
|
79
|
+
EXPORT: 'export',
|
|
80
|
+
LOAD: 'load',
|
|
81
|
+
ALL: '*'
|
|
82
|
+
};
|
|
83
|
+
exports.QueryGltfConversion = {
|
|
84
|
+
NONE: 'none',
|
|
85
|
+
SCENE: 'scene',
|
|
86
|
+
USDZ: 'usdz'
|
|
87
|
+
};
|
|
88
|
+
exports.QueryModelStatus = {
|
|
89
|
+
UNKNOWN: 'unknown',
|
|
90
|
+
NOT_UPLOADED: 'not_uploaded',
|
|
91
|
+
UPLOADED: 'uploaded',
|
|
92
|
+
PENDING: 'pending',
|
|
93
|
+
CONFIRMED: 'confirmed',
|
|
94
|
+
DENIED: 'denied',
|
|
95
|
+
DELETED: 'deleted'
|
|
96
|
+
};
|
|
97
|
+
exports.QueryOrder = {
|
|
98
|
+
ASC: 'asc',
|
|
99
|
+
DESC: 'desc'
|
|
100
|
+
};
|
|
101
|
+
exports.ReqLogLevel = {
|
|
102
|
+
INFO: '0',
|
|
103
|
+
WARN: '1',
|
|
104
|
+
ERROR: '2'
|
|
105
|
+
};
|
|
106
|
+
exports.ReqModelFileType = {
|
|
107
|
+
GRASSHOPPER_BINARY: 'gh',
|
|
108
|
+
GRASSHOPPER_XML: 'ghx'
|
|
109
|
+
};
|
|
110
|
+
exports.ReqSdtfType = {
|
|
111
|
+
MODEL_SDTF: 'model/vnd.sdtf'
|
|
112
|
+
};
|
|
113
|
+
exports.ReqTicketType = {
|
|
114
|
+
BACKEND: 'backend',
|
|
115
|
+
NONE: ''
|
|
116
|
+
};
|
|
117
|
+
exports.ReqTrustLevel = {
|
|
118
|
+
UNDEFINED: '',
|
|
119
|
+
NONE: 'none',
|
|
120
|
+
FULL: 'full'
|
|
121
|
+
};
|
|
122
|
+
exports.ResComputationStatus = {
|
|
123
|
+
SUCCESS: 'success',
|
|
124
|
+
TIMEOUT: 'timeout',
|
|
125
|
+
CHECK_CONFIRMED: 'checkconfirmed',
|
|
126
|
+
CHECK_DENIED: 'checkdenied',
|
|
127
|
+
CHECK_PENDING: 'checkpending',
|
|
128
|
+
MAX_COMBINED_ASSET_SIZE_EXCEEDED: 'maxcombinedassetsizeexceeded',
|
|
129
|
+
MAX_DB_SIZE_PER_OUTPUT_EXCEEDED: 'maxdbsizeperoutputexceeded',
|
|
130
|
+
MAX_PARTS_PER_OUTPUT_EXCEEDED: 'maxpartsperoutputexceeded',
|
|
131
|
+
MAX_ASSET_PARTS_PER_OUTPUT_EXCEEDED: 'maxassetpartsperoutputexceeded',
|
|
132
|
+
MAX_TRANSFORMATIONS_PER_OUTPUT_EXCEEDED: 'maxtransformationsperoutputexceeded',
|
|
133
|
+
MAX_PARTS_EXCEEDED: 'maxpartsexceeded',
|
|
134
|
+
MAX_ASSET_PARTS_EXCEEDED: 'maxassetpartsexceeded',
|
|
135
|
+
RECOVERABLE_ERROR: 'recoverableerror',
|
|
136
|
+
UNRECOVERABLE_ERROR: 'unrecoverableerror',
|
|
137
|
+
NO_OUTPUT_DATA_FOR_DEFAULT_PARAMETER_VALUES: 'nooutputdatafordefaultparametervalues',
|
|
138
|
+
MODEL_WITHOUT_GEOMETRY_OUTPUT: 'modelwithoutgeometryoutput',
|
|
139
|
+
UNKNOWN: 'unknown'
|
|
140
|
+
};
|
|
141
|
+
exports.ResErrorType = {
|
|
142
|
+
ASSERTION_ERROR: 'SdAssertionError',
|
|
143
|
+
CACHE_ERROR_GENERIC: 'SdCacheErrorGeneric',
|
|
144
|
+
CONNECTOR_ERROR: 'SdConnectorError',
|
|
145
|
+
DATABASE_ERROR_GENERIC: 'SdDatabaseErrorGeneric',
|
|
146
|
+
EMAILING_ERROR: 'SdEmailingError',
|
|
147
|
+
ERROR_ENTITY_NOT_FOUND: 'SdErrorEntityNotFound',
|
|
148
|
+
ERROR_FORBIDDEN: 'SdErrorForbidden',
|
|
149
|
+
ERROR_GENERIC_CLIENT: 'SdErrorGenericClient',
|
|
150
|
+
ERROR_GENERIC_INTERNAL: 'SdErrorGenericInternal',
|
|
151
|
+
ERROR_UNAUTHORIZED: 'SdErrorUnauthorized',
|
|
152
|
+
ILLEGAL_ARGUMENT_ERROR: 'SdIllegalArgumentError',
|
|
153
|
+
JWT_VALIDATION_ERROR: 'SdJwtValidationError',
|
|
154
|
+
METHOD_NOT_ALLOWED_ERROR: 'SdMethodNotAllowedError',
|
|
155
|
+
MODEL_VALIDATION_ERROR: 'SdModelValidationError',
|
|
156
|
+
NOT_ACCEPTABLE: 'SdNotAcceptable',
|
|
157
|
+
NOT_FOUND_ERROR: 'SdNotFoundError',
|
|
158
|
+
PARAMETER_VALIDATION_ERROR: 'SdParameterValidationError',
|
|
159
|
+
RATE_LIMIT_ERROR_GENERIC: 'SdRateLimitErrorGeneric',
|
|
160
|
+
REQUEST_TIMEOUT: 'SdRequestTimeout',
|
|
161
|
+
REQUEST_VALIDATION_ERROR: 'SdRequestValidationError',
|
|
162
|
+
RESOURCE_GONE_ERROR: 'SdResourceGoneError',
|
|
163
|
+
SESSION_GONE_ERROR: 'SdSessionGoneError',
|
|
164
|
+
SESSION_VALIDATION_ERROR: 'SdSessionValidationError',
|
|
165
|
+
STORAGE_ERROR_GENERIC: 'SdStorageErrorGeneric',
|
|
166
|
+
TEXTURE_URL_ERROR: 'SdTextureUrlError',
|
|
167
|
+
TICKET_VALIDATION_ERROR: 'SdTicketValidationError',
|
|
168
|
+
TOKEN_MISSING_ERROR: 'SdTokenMissingError',
|
|
169
|
+
TRANSFORM_CONTENT_ARRAY_ERROR: 'SdTransformContentArrayError',
|
|
170
|
+
UNCONFIRMED_MODEL_ERROR: 'SdUnconfirmedModelError',
|
|
171
|
+
UNKNOWN: ''
|
|
172
|
+
};
|
|
173
|
+
exports.ResExportDefinitionType = {
|
|
174
|
+
UNKNOWN: 'unknown',
|
|
175
|
+
DOWNLOAD: 'download',
|
|
176
|
+
EMAIL: 'email',
|
|
177
|
+
SHAPEWAYS: 'shapeways'
|
|
178
|
+
};
|
|
179
|
+
exports.ResModelCleanupProcessType = {
|
|
180
|
+
DELETE_EXPORT_VERSION: 'delete_export_version',
|
|
181
|
+
DELETE_MODEL_TEXTURE: 'delete_model_texture',
|
|
182
|
+
DELETE_OUTPUT_VERSION: 'delete_output_version'
|
|
183
|
+
};
|
|
184
|
+
exports.ResModelStatus = {
|
|
185
|
+
UNKNOWN: 'unknown',
|
|
186
|
+
NOT_UPLOADED: 'not_uploaded',
|
|
187
|
+
UPLOADED: 'uploaded',
|
|
188
|
+
PENDING: 'pending',
|
|
189
|
+
CONFIRMED: 'confirmed',
|
|
190
|
+
DENIED: 'denied',
|
|
191
|
+
DELETED: 'deleted'
|
|
192
|
+
};
|
|
193
|
+
exports.ResParameterType = {
|
|
194
|
+
S_BITMAP: 'sBitmap',
|
|
195
|
+
S_BOOL: 'sBool',
|
|
196
|
+
S_BOX: 'sBox',
|
|
197
|
+
S_BREP: 'sBrep',
|
|
198
|
+
S_CIRCLE: 'sCircle',
|
|
199
|
+
S_COLOR: 'sColor',
|
|
200
|
+
S_CURVE: 'sCurve',
|
|
201
|
+
S_DOMAIN: 'sDomain',
|
|
202
|
+
S_DOMAIN_2D: 'sDomain2D',
|
|
203
|
+
S_INTEGER: 'sInteger',
|
|
204
|
+
S_LINE: 'sLine',
|
|
205
|
+
S_MESH: 'sMesh',
|
|
206
|
+
S_NUMBER: 'sNumber',
|
|
207
|
+
S_PLANE: 'sPlane',
|
|
208
|
+
S_POINT: 'sPoint',
|
|
209
|
+
S_RECTANGLE: 'sRectangle',
|
|
210
|
+
S_STRING: 'sString',
|
|
211
|
+
S_SUBDIV: 'sSubdiv',
|
|
212
|
+
S_SURFACE: 'sSurface',
|
|
213
|
+
S_TIME: 'sTime',
|
|
214
|
+
S_VECTOR: 'sVector',
|
|
215
|
+
BOOL: 'Bool',
|
|
216
|
+
COLOR: 'Color',
|
|
217
|
+
DRAWING: 'Drawing',
|
|
218
|
+
EVEN: 'Even',
|
|
219
|
+
FILE: 'File',
|
|
220
|
+
FLOAT: 'Float',
|
|
221
|
+
INT: 'Int',
|
|
222
|
+
INTERACTION: 'Interaction',
|
|
223
|
+
ODD: 'Odd',
|
|
224
|
+
STRING: 'String',
|
|
225
|
+
STRINGLIST: 'StringList',
|
|
226
|
+
TIME: 'Time',
|
|
227
|
+
UNKNOWN: 'unknown'
|
|
228
|
+
};
|
|
229
|
+
exports.ResStructureType = {
|
|
230
|
+
ITEM: 'item',
|
|
231
|
+
LIST: 'list',
|
|
232
|
+
TREE: 'tree'
|
|
233
|
+
};
|
|
234
|
+
exports.ResTicketType = {
|
|
235
|
+
BACKEND: 'backend',
|
|
236
|
+
NONE: ''
|
|
237
|
+
};
|
|
238
|
+
exports.ResVisualizationType = {
|
|
239
|
+
UNKNOWN: 'unknown',
|
|
240
|
+
BUTTON: 'button',
|
|
241
|
+
CALENDAR: 'calendar',
|
|
242
|
+
CHECKLIST: 'checklist',
|
|
243
|
+
CLOCK: 'clock',
|
|
244
|
+
CYCLE: 'cycle',
|
|
245
|
+
DIAL: 'dial',
|
|
246
|
+
DROPDOWN: 'dropdown',
|
|
247
|
+
GEOMETRY: 'geometry',
|
|
248
|
+
IMAGE: 'image',
|
|
249
|
+
SEQUENCE: 'sequence',
|
|
250
|
+
SLIDER: 'slider',
|
|
251
|
+
SWATCH: 'swatch',
|
|
252
|
+
TEXT: 'text',
|
|
253
|
+
TOGGLE: 'toggle'
|
|
254
|
+
};
|
|
255
|
+
const AnalyticsApiAxiosParamCreator = function (configuration) {
|
|
256
|
+
return {
|
|
257
|
+
getCreditMetrics: (reqCreditMetrics_1, ...args_1) => __awaiter(this, [reqCreditMetrics_1, ...args_1], void 0, function* (reqCreditMetrics, options = {}) {
|
|
258
|
+
(0, common_1.assertParamExists)('getCreditMetrics', 'reqCreditMetrics', reqCreditMetrics);
|
|
259
|
+
const localVarPath = `/api/v2/analytics/credit-metrics`;
|
|
260
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
261
|
+
let baseOptions;
|
|
262
|
+
if (configuration) {
|
|
263
|
+
baseOptions = configuration.baseOptions;
|
|
264
|
+
}
|
|
265
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
266
|
+
const localVarHeaderParameter = {};
|
|
267
|
+
const localVarQueryParameter = {};
|
|
268
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
269
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
270
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
271
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
272
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
273
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCreditMetrics, localVarRequestOptions, configuration);
|
|
274
|
+
return {
|
|
275
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
276
|
+
options: localVarRequestOptions,
|
|
277
|
+
};
|
|
278
|
+
}),
|
|
279
|
+
getModelOrganizationCreditMetrics: (timestamp_1, orgId_1, ...args_1) => __awaiter(this, [timestamp_1, orgId_1, ...args_1], void 0, function* (timestamp, orgId, options = {}) {
|
|
280
|
+
(0, common_1.assertParamExists)('getModelOrganizationCreditMetrics', 'timestamp', timestamp);
|
|
281
|
+
(0, common_1.assertParamExists)('getModelOrganizationCreditMetrics', 'orgId', orgId);
|
|
282
|
+
const localVarPath = `/api/v2/analytics/credit-metrics/timestamp/{timestamp}/org/{orgId}`
|
|
283
|
+
.replace(`{${"timestamp"}}`, encodeURIComponent(String(timestamp)))
|
|
284
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
285
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
286
|
+
let baseOptions;
|
|
287
|
+
if (configuration) {
|
|
288
|
+
baseOptions = configuration.baseOptions;
|
|
289
|
+
}
|
|
290
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
291
|
+
const localVarHeaderParameter = {};
|
|
292
|
+
const localVarQueryParameter = {};
|
|
293
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
294
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
297
|
+
return {
|
|
298
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
299
|
+
options: localVarRequestOptions,
|
|
300
|
+
};
|
|
301
|
+
}),
|
|
302
|
+
getModelStatistics: (reqModelStatistics_1, ...args_1) => __awaiter(this, [reqModelStatistics_1, ...args_1], void 0, function* (reqModelStatistics, options = {}) {
|
|
303
|
+
(0, common_1.assertParamExists)('getModelStatistics', 'reqModelStatistics', reqModelStatistics);
|
|
304
|
+
const localVarPath = `/api/v2/analytics/session/model`;
|
|
305
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
306
|
+
let baseOptions;
|
|
307
|
+
if (configuration) {
|
|
308
|
+
baseOptions = configuration.baseOptions;
|
|
309
|
+
}
|
|
310
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
311
|
+
const localVarHeaderParameter = {};
|
|
312
|
+
const localVarQueryParameter = {};
|
|
313
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
314
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
315
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
316
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
317
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
318
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqModelStatistics, localVarRequestOptions, configuration);
|
|
319
|
+
return {
|
|
320
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
321
|
+
options: localVarRequestOptions,
|
|
322
|
+
};
|
|
323
|
+
}),
|
|
324
|
+
getModelUserCreditMetrics: (timestamp_1, userId_1, ...args_1) => __awaiter(this, [timestamp_1, userId_1, ...args_1], void 0, function* (timestamp, userId, options = {}) {
|
|
325
|
+
(0, common_1.assertParamExists)('getModelUserCreditMetrics', 'timestamp', timestamp);
|
|
326
|
+
(0, common_1.assertParamExists)('getModelUserCreditMetrics', 'userId', userId);
|
|
327
|
+
const localVarPath = `/api/v2/analytics/credit-metrics/timestamp/{timestamp}/user/{userId}`
|
|
328
|
+
.replace(`{${"timestamp"}}`, encodeURIComponent(String(timestamp)))
|
|
329
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
330
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
331
|
+
let baseOptions;
|
|
332
|
+
if (configuration) {
|
|
333
|
+
baseOptions = configuration.baseOptions;
|
|
334
|
+
}
|
|
335
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
336
|
+
const localVarHeaderParameter = {};
|
|
337
|
+
const localVarQueryParameter = {};
|
|
338
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
339
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
340
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
341
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
342
|
+
return {
|
|
343
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
344
|
+
options: localVarRequestOptions,
|
|
345
|
+
};
|
|
346
|
+
}),
|
|
347
|
+
getOrganizationCreditMetrics: (timestamp_1, ...args_1) => __awaiter(this, [timestamp_1, ...args_1], void 0, function* (timestamp, options = {}) {
|
|
348
|
+
(0, common_1.assertParamExists)('getOrganizationCreditMetrics', 'timestamp', timestamp);
|
|
349
|
+
const localVarPath = `/api/v2/analytics/credit-metrics/timestamp/{timestamp}/org`
|
|
350
|
+
.replace(`{${"timestamp"}}`, encodeURIComponent(String(timestamp)));
|
|
351
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
352
|
+
let baseOptions;
|
|
353
|
+
if (configuration) {
|
|
354
|
+
baseOptions = configuration.baseOptions;
|
|
355
|
+
}
|
|
356
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
357
|
+
const localVarHeaderParameter = {};
|
|
358
|
+
const localVarQueryParameter = {};
|
|
359
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
360
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
361
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
362
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
363
|
+
return {
|
|
364
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
365
|
+
options: localVarRequestOptions,
|
|
366
|
+
};
|
|
367
|
+
}),
|
|
368
|
+
getUserCreditMetrics: (timestamp_1, ...args_1) => __awaiter(this, [timestamp_1, ...args_1], void 0, function* (timestamp, options = {}) {
|
|
369
|
+
(0, common_1.assertParamExists)('getUserCreditMetrics', 'timestamp', timestamp);
|
|
370
|
+
const localVarPath = `/api/v2/analytics/credit-metrics/timestamp/{timestamp}/user`
|
|
371
|
+
.replace(`{${"timestamp"}}`, encodeURIComponent(String(timestamp)));
|
|
372
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
373
|
+
let baseOptions;
|
|
374
|
+
if (configuration) {
|
|
375
|
+
baseOptions = configuration.baseOptions;
|
|
376
|
+
}
|
|
377
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
378
|
+
const localVarHeaderParameter = {};
|
|
379
|
+
const localVarQueryParameter = {};
|
|
380
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
381
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
382
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
383
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
384
|
+
return {
|
|
385
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
386
|
+
options: localVarRequestOptions,
|
|
387
|
+
};
|
|
388
|
+
}),
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
exports.AnalyticsApiAxiosParamCreator = AnalyticsApiAxiosParamCreator;
|
|
392
|
+
const AnalyticsApiFp = function (configuration) {
|
|
393
|
+
const localVarAxiosParamCreator = (0, exports.AnalyticsApiAxiosParamCreator)(configuration);
|
|
394
|
+
return {
|
|
395
|
+
getCreditMetrics(reqCreditMetrics, options) {
|
|
396
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
397
|
+
var _a, _b, _c;
|
|
398
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCreditMetrics(reqCreditMetrics, options);
|
|
399
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
400
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getCreditMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
401
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
402
|
+
});
|
|
403
|
+
},
|
|
404
|
+
getModelOrganizationCreditMetrics(timestamp, orgId, options) {
|
|
405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
406
|
+
var _a, _b, _c;
|
|
407
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelOrganizationCreditMetrics(timestamp, orgId, options);
|
|
408
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
409
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getModelOrganizationCreditMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
410
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
411
|
+
});
|
|
412
|
+
},
|
|
413
|
+
getModelStatistics(reqModelStatistics, options) {
|
|
414
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
415
|
+
var _a, _b, _c;
|
|
416
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelStatistics(reqModelStatistics, options);
|
|
417
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
418
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getModelStatistics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
419
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
420
|
+
});
|
|
421
|
+
},
|
|
422
|
+
getModelUserCreditMetrics(timestamp, userId, options) {
|
|
423
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
424
|
+
var _a, _b, _c;
|
|
425
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelUserCreditMetrics(timestamp, userId, options);
|
|
426
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
427
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getModelUserCreditMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
428
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
429
|
+
});
|
|
430
|
+
},
|
|
431
|
+
getOrganizationCreditMetrics(timestamp, options) {
|
|
432
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
433
|
+
var _a, _b, _c;
|
|
434
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationCreditMetrics(timestamp, options);
|
|
435
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
436
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getOrganizationCreditMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
437
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
438
|
+
});
|
|
439
|
+
},
|
|
440
|
+
getUserCreditMetrics(timestamp, options) {
|
|
441
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
442
|
+
var _a, _b, _c;
|
|
443
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserCreditMetrics(timestamp, options);
|
|
444
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
445
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getUserCreditMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
446
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
447
|
+
});
|
|
448
|
+
},
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
exports.AnalyticsApiFp = AnalyticsApiFp;
|
|
452
|
+
const AnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
453
|
+
const localVarFp = (0, exports.AnalyticsApiFp)(configuration);
|
|
454
|
+
return {
|
|
455
|
+
getCreditMetrics(reqCreditMetrics, options) {
|
|
456
|
+
return localVarFp.getCreditMetrics(reqCreditMetrics, options).then((request) => request(axios, basePath));
|
|
457
|
+
},
|
|
458
|
+
getModelOrganizationCreditMetrics(timestamp, orgId, options) {
|
|
459
|
+
return localVarFp.getModelOrganizationCreditMetrics(timestamp, orgId, options).then((request) => request(axios, basePath));
|
|
460
|
+
},
|
|
461
|
+
getModelStatistics(reqModelStatistics, options) {
|
|
462
|
+
return localVarFp.getModelStatistics(reqModelStatistics, options).then((request) => request(axios, basePath));
|
|
463
|
+
},
|
|
464
|
+
getModelUserCreditMetrics(timestamp, userId, options) {
|
|
465
|
+
return localVarFp.getModelUserCreditMetrics(timestamp, userId, options).then((request) => request(axios, basePath));
|
|
466
|
+
},
|
|
467
|
+
getOrganizationCreditMetrics(timestamp, options) {
|
|
468
|
+
return localVarFp.getOrganizationCreditMetrics(timestamp, options).then((request) => request(axios, basePath));
|
|
469
|
+
},
|
|
470
|
+
getUserCreditMetrics(timestamp, options) {
|
|
471
|
+
return localVarFp.getUserCreditMetrics(timestamp, options).then((request) => request(axios, basePath));
|
|
472
|
+
},
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
exports.AnalyticsApiFactory = AnalyticsApiFactory;
|
|
476
|
+
class AnalyticsApi extends base_1.BaseAPI {
|
|
477
|
+
getCreditMetrics(reqCreditMetrics, options) {
|
|
478
|
+
return (0, exports.AnalyticsApiFp)(this.configuration).getCreditMetrics(reqCreditMetrics, options).then((request) => request(this.axios, this.basePath));
|
|
479
|
+
}
|
|
480
|
+
getModelOrganizationCreditMetrics(timestamp, orgId, options) {
|
|
481
|
+
return (0, exports.AnalyticsApiFp)(this.configuration).getModelOrganizationCreditMetrics(timestamp, orgId, options).then((request) => request(this.axios, this.basePath));
|
|
482
|
+
}
|
|
483
|
+
getModelStatistics(reqModelStatistics, options) {
|
|
484
|
+
return (0, exports.AnalyticsApiFp)(this.configuration).getModelStatistics(reqModelStatistics, options).then((request) => request(this.axios, this.basePath));
|
|
485
|
+
}
|
|
486
|
+
getModelUserCreditMetrics(timestamp, userId, options) {
|
|
487
|
+
return (0, exports.AnalyticsApiFp)(this.configuration).getModelUserCreditMetrics(timestamp, userId, options).then((request) => request(this.axios, this.basePath));
|
|
488
|
+
}
|
|
489
|
+
getOrganizationCreditMetrics(timestamp, options) {
|
|
490
|
+
return (0, exports.AnalyticsApiFp)(this.configuration).getOrganizationCreditMetrics(timestamp, options).then((request) => request(this.axios, this.basePath));
|
|
491
|
+
}
|
|
492
|
+
getUserCreditMetrics(timestamp, options) {
|
|
493
|
+
return (0, exports.AnalyticsApiFp)(this.configuration).getUserCreditMetrics(timestamp, options).then((request) => request(this.axios, this.basePath));
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
exports.AnalyticsApi = AnalyticsApi;
|
|
497
|
+
const ArSceneApiAxiosParamCreator = function (configuration) {
|
|
498
|
+
return {
|
|
499
|
+
downloadArSceneGltf: (sceneId_1, ...args_1) => __awaiter(this, [sceneId_1, ...args_1], void 0, function* (sceneId, options = {}) {
|
|
500
|
+
(0, common_1.assertParamExists)('downloadArSceneGltf', 'sceneId', sceneId);
|
|
501
|
+
const localVarPath = `/api/v2/ar-scene/{sceneId}/gltf`
|
|
502
|
+
.replace(`{${"sceneId"}}`, encodeURIComponent(String(sceneId)));
|
|
503
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
504
|
+
let baseOptions;
|
|
505
|
+
if (configuration) {
|
|
506
|
+
baseOptions = configuration.baseOptions;
|
|
507
|
+
}
|
|
508
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
509
|
+
const localVarHeaderParameter = {};
|
|
510
|
+
const localVarQueryParameter = {};
|
|
511
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
512
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
513
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
514
|
+
return {
|
|
515
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
516
|
+
options: localVarRequestOptions,
|
|
517
|
+
};
|
|
518
|
+
}),
|
|
519
|
+
downloadArSceneUsdz: (sceneId_1, ...args_1) => __awaiter(this, [sceneId_1, ...args_1], void 0, function* (sceneId, options = {}) {
|
|
520
|
+
(0, common_1.assertParamExists)('downloadArSceneUsdz', 'sceneId', sceneId);
|
|
521
|
+
const localVarPath = `/api/v2/ar-scene/{sceneId}/usdz`
|
|
522
|
+
.replace(`{${"sceneId"}}`, encodeURIComponent(String(sceneId)));
|
|
523
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
524
|
+
let baseOptions;
|
|
525
|
+
if (configuration) {
|
|
526
|
+
baseOptions = configuration.baseOptions;
|
|
527
|
+
}
|
|
528
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
529
|
+
const localVarHeaderParameter = {};
|
|
530
|
+
const localVarQueryParameter = {};
|
|
531
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
532
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
533
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
534
|
+
return {
|
|
535
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
536
|
+
options: localVarRequestOptions,
|
|
537
|
+
};
|
|
538
|
+
}),
|
|
539
|
+
getArSceneMetadata: (sceneId_1, ...args_1) => __awaiter(this, [sceneId_1, ...args_1], void 0, function* (sceneId, options = {}) {
|
|
540
|
+
(0, common_1.assertParamExists)('getArSceneMetadata', 'sceneId', sceneId);
|
|
541
|
+
const localVarPath = `/api/v2/ar-scene/{sceneId}`
|
|
542
|
+
.replace(`{${"sceneId"}}`, encodeURIComponent(String(sceneId)));
|
|
543
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
544
|
+
let baseOptions;
|
|
545
|
+
if (configuration) {
|
|
546
|
+
baseOptions = configuration.baseOptions;
|
|
547
|
+
}
|
|
548
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
|
|
549
|
+
const localVarHeaderParameter = {};
|
|
550
|
+
const localVarQueryParameter = {};
|
|
551
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
552
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
553
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
554
|
+
return {
|
|
555
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
556
|
+
options: localVarRequestOptions,
|
|
557
|
+
};
|
|
558
|
+
}),
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
exports.ArSceneApiAxiosParamCreator = ArSceneApiAxiosParamCreator;
|
|
562
|
+
const ArSceneApiFp = function (configuration) {
|
|
563
|
+
const localVarAxiosParamCreator = (0, exports.ArSceneApiAxiosParamCreator)(configuration);
|
|
564
|
+
return {
|
|
565
|
+
downloadArSceneGltf(sceneId, options) {
|
|
566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
567
|
+
var _a, _b, _c;
|
|
568
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadArSceneGltf(sceneId, options);
|
|
569
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
570
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ArSceneApi.downloadArSceneGltf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
571
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
572
|
+
});
|
|
573
|
+
},
|
|
574
|
+
downloadArSceneUsdz(sceneId, options) {
|
|
575
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
576
|
+
var _a, _b, _c;
|
|
577
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadArSceneUsdz(sceneId, options);
|
|
578
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
579
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ArSceneApi.downloadArSceneUsdz']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
580
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
581
|
+
});
|
|
582
|
+
},
|
|
583
|
+
getArSceneMetadata(sceneId, options) {
|
|
584
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
585
|
+
var _a, _b, _c;
|
|
586
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getArSceneMetadata(sceneId, options);
|
|
587
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
588
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ArSceneApi.getArSceneMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
589
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
590
|
+
});
|
|
591
|
+
},
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
exports.ArSceneApiFp = ArSceneApiFp;
|
|
595
|
+
const ArSceneApiFactory = function (configuration, basePath, axios) {
|
|
596
|
+
const localVarFp = (0, exports.ArSceneApiFp)(configuration);
|
|
597
|
+
return {
|
|
598
|
+
downloadArSceneGltf(sceneId, options) {
|
|
599
|
+
return localVarFp.downloadArSceneGltf(sceneId, options).then((request) => request(axios, basePath));
|
|
600
|
+
},
|
|
601
|
+
downloadArSceneUsdz(sceneId, options) {
|
|
602
|
+
return localVarFp.downloadArSceneUsdz(sceneId, options).then((request) => request(axios, basePath));
|
|
603
|
+
},
|
|
604
|
+
getArSceneMetadata(sceneId, options) {
|
|
605
|
+
return localVarFp.getArSceneMetadata(sceneId, options).then((request) => request(axios, basePath));
|
|
606
|
+
},
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
exports.ArSceneApiFactory = ArSceneApiFactory;
|
|
610
|
+
class ArSceneApi extends base_1.BaseAPI {
|
|
611
|
+
downloadArSceneGltf(sceneId, options) {
|
|
612
|
+
return (0, exports.ArSceneApiFp)(this.configuration).downloadArSceneGltf(sceneId, options).then((request) => request(this.axios, this.basePath));
|
|
613
|
+
}
|
|
614
|
+
downloadArSceneUsdz(sceneId, options) {
|
|
615
|
+
return (0, exports.ArSceneApiFp)(this.configuration).downloadArSceneUsdz(sceneId, options).then((request) => request(this.axios, this.basePath));
|
|
616
|
+
}
|
|
617
|
+
getArSceneMetadata(sceneId, options) {
|
|
618
|
+
return (0, exports.ArSceneApiFp)(this.configuration).getArSceneMetadata(sceneId, options).then((request) => request(this.axios, this.basePath));
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
exports.ArSceneApi = ArSceneApi;
|
|
622
|
+
const AssetsApiAxiosParamCreator = function (configuration) {
|
|
623
|
+
return {
|
|
624
|
+
downloadAsset: (assetDataEncrypted_1, ...args_1) => __awaiter(this, [assetDataEncrypted_1, ...args_1], void 0, function* (assetDataEncrypted, options = {}) {
|
|
625
|
+
(0, common_1.assertParamExists)('downloadAsset', 'assetDataEncrypted', assetDataEncrypted);
|
|
626
|
+
const localVarPath = `/api/v2/download/{assetDataEncrypted}`
|
|
627
|
+
.replace(`{${"assetDataEncrypted"}}`, encodeURIComponent(String(assetDataEncrypted)));
|
|
628
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
629
|
+
let baseOptions;
|
|
630
|
+
if (configuration) {
|
|
631
|
+
baseOptions = configuration.baseOptions;
|
|
632
|
+
}
|
|
633
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
634
|
+
const localVarHeaderParameter = {};
|
|
635
|
+
const localVarQueryParameter = {};
|
|
636
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
637
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
638
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
639
|
+
return {
|
|
640
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
641
|
+
options: localVarRequestOptions,
|
|
642
|
+
};
|
|
643
|
+
}),
|
|
644
|
+
downloadExport: (sessionId_1, assetDataEncrypted_1, ...args_1) => __awaiter(this, [sessionId_1, assetDataEncrypted_1, ...args_1], void 0, function* (sessionId, assetDataEncrypted, options = {}) {
|
|
645
|
+
(0, common_1.assertParamExists)('downloadExport', 'sessionId', sessionId);
|
|
646
|
+
(0, common_1.assertParamExists)('downloadExport', 'assetDataEncrypted', assetDataEncrypted);
|
|
647
|
+
const localVarPath = `/api/v2/session/{sessionId}/export/{assetDataEncrypted}`
|
|
648
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
649
|
+
.replace(`{${"assetDataEncrypted"}}`, encodeURIComponent(String(assetDataEncrypted)));
|
|
650
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
651
|
+
let baseOptions;
|
|
652
|
+
if (configuration) {
|
|
653
|
+
baseOptions = configuration.baseOptions;
|
|
654
|
+
}
|
|
655
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
656
|
+
const localVarHeaderParameter = {};
|
|
657
|
+
const localVarQueryParameter = {};
|
|
658
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
659
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
660
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
661
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
662
|
+
return {
|
|
663
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
664
|
+
options: localVarRequestOptions,
|
|
665
|
+
};
|
|
666
|
+
}),
|
|
667
|
+
downloadGltf: (sessionId_1, assetDataEncrypted_1, ...args_1) => __awaiter(this, [sessionId_1, assetDataEncrypted_1, ...args_1], void 0, function* (sessionId, assetDataEncrypted, options = {}) {
|
|
668
|
+
(0, common_1.assertParamExists)('downloadGltf', 'sessionId', sessionId);
|
|
669
|
+
(0, common_1.assertParamExists)('downloadGltf', 'assetDataEncrypted', assetDataEncrypted);
|
|
670
|
+
const localVarPath = `/api/v2/session/{sessionId}/gltf/{assetDataEncrypted}`
|
|
671
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
672
|
+
.replace(`{${"assetDataEncrypted"}}`, encodeURIComponent(String(assetDataEncrypted)));
|
|
673
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
674
|
+
let baseOptions;
|
|
675
|
+
if (configuration) {
|
|
676
|
+
baseOptions = configuration.baseOptions;
|
|
677
|
+
}
|
|
678
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
679
|
+
const localVarHeaderParameter = {};
|
|
680
|
+
const localVarQueryParameter = {};
|
|
681
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
682
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
684
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
685
|
+
return {
|
|
686
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
687
|
+
options: localVarRequestOptions,
|
|
688
|
+
};
|
|
689
|
+
}),
|
|
690
|
+
downloadImage: (sessionId_1, url_1, ...args_1) => __awaiter(this, [sessionId_1, url_1, ...args_1], void 0, function* (sessionId, url, options = {}) {
|
|
691
|
+
(0, common_1.assertParamExists)('downloadImage', 'sessionId', sessionId);
|
|
692
|
+
(0, common_1.assertParamExists)('downloadImage', 'url', url);
|
|
693
|
+
const localVarPath = `/api/v2/session/{sessionId}/image`
|
|
694
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
695
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
696
|
+
let baseOptions;
|
|
697
|
+
if (configuration) {
|
|
698
|
+
baseOptions = configuration.baseOptions;
|
|
699
|
+
}
|
|
700
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
701
|
+
const localVarHeaderParameter = {};
|
|
702
|
+
const localVarQueryParameter = {};
|
|
703
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
704
|
+
if (url !== undefined) {
|
|
705
|
+
localVarQueryParameter['url'] = url;
|
|
706
|
+
}
|
|
707
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
708
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
709
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
710
|
+
return {
|
|
711
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
712
|
+
options: localVarRequestOptions,
|
|
713
|
+
};
|
|
714
|
+
}),
|
|
715
|
+
downloadOutput: (sessionId_1, assetDataEncrypted_1, ...args_1) => __awaiter(this, [sessionId_1, assetDataEncrypted_1, ...args_1], void 0, function* (sessionId, assetDataEncrypted, options = {}) {
|
|
716
|
+
(0, common_1.assertParamExists)('downloadOutput', 'sessionId', sessionId);
|
|
717
|
+
(0, common_1.assertParamExists)('downloadOutput', 'assetDataEncrypted', assetDataEncrypted);
|
|
718
|
+
const localVarPath = `/api/v2/session/{sessionId}/output/{assetDataEncrypted}`
|
|
719
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
720
|
+
.replace(`{${"assetDataEncrypted"}}`, encodeURIComponent(String(assetDataEncrypted)));
|
|
721
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
722
|
+
let baseOptions;
|
|
723
|
+
if (configuration) {
|
|
724
|
+
baseOptions = configuration.baseOptions;
|
|
725
|
+
}
|
|
726
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
727
|
+
const localVarHeaderParameter = {};
|
|
728
|
+
const localVarQueryParameter = {};
|
|
729
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
730
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
731
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
732
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
733
|
+
return {
|
|
734
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
735
|
+
options: localVarRequestOptions,
|
|
736
|
+
};
|
|
737
|
+
}),
|
|
738
|
+
downloadTexture: (sessionId_1, assetDataEncrypted_1, ...args_1) => __awaiter(this, [sessionId_1, assetDataEncrypted_1, ...args_1], void 0, function* (sessionId, assetDataEncrypted, options = {}) {
|
|
739
|
+
(0, common_1.assertParamExists)('downloadTexture', 'sessionId', sessionId);
|
|
740
|
+
(0, common_1.assertParamExists)('downloadTexture', 'assetDataEncrypted', assetDataEncrypted);
|
|
741
|
+
const localVarPath = `/api/v2/session/{sessionId}/texture/{assetDataEncrypted}`
|
|
742
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
743
|
+
.replace(`{${"assetDataEncrypted"}}`, encodeURIComponent(String(assetDataEncrypted)));
|
|
744
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
745
|
+
let baseOptions;
|
|
746
|
+
if (configuration) {
|
|
747
|
+
baseOptions = configuration.baseOptions;
|
|
748
|
+
}
|
|
749
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
750
|
+
const localVarHeaderParameter = {};
|
|
751
|
+
const localVarQueryParameter = {};
|
|
752
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
753
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
754
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
755
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
756
|
+
return {
|
|
757
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
758
|
+
options: localVarRequestOptions,
|
|
759
|
+
};
|
|
760
|
+
}),
|
|
761
|
+
downloadUsdz: (sessionId_1, assetDataEncrypted_1, ...args_1) => __awaiter(this, [sessionId_1, assetDataEncrypted_1, ...args_1], void 0, function* (sessionId, assetDataEncrypted, options = {}) {
|
|
762
|
+
(0, common_1.assertParamExists)('downloadUsdz', 'sessionId', sessionId);
|
|
763
|
+
(0, common_1.assertParamExists)('downloadUsdz', 'assetDataEncrypted', assetDataEncrypted);
|
|
764
|
+
const localVarPath = `/api/v2/session/{sessionId}/usdz/{assetDataEncrypted}`
|
|
765
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
766
|
+
.replace(`{${"assetDataEncrypted"}}`, encodeURIComponent(String(assetDataEncrypted)));
|
|
767
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
768
|
+
let baseOptions;
|
|
769
|
+
if (configuration) {
|
|
770
|
+
baseOptions = configuration.baseOptions;
|
|
771
|
+
}
|
|
772
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
773
|
+
const localVarHeaderParameter = {};
|
|
774
|
+
const localVarQueryParameter = {};
|
|
775
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
776
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
777
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
778
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
779
|
+
return {
|
|
780
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
781
|
+
options: localVarRequestOptions,
|
|
782
|
+
};
|
|
783
|
+
}),
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
exports.AssetsApiAxiosParamCreator = AssetsApiAxiosParamCreator;
|
|
787
|
+
const AssetsApiFp = function (configuration) {
|
|
788
|
+
const localVarAxiosParamCreator = (0, exports.AssetsApiAxiosParamCreator)(configuration);
|
|
789
|
+
return {
|
|
790
|
+
downloadAsset(assetDataEncrypted, options) {
|
|
791
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
792
|
+
var _a, _b, _c;
|
|
793
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadAsset(assetDataEncrypted, options);
|
|
794
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
795
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadAsset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
796
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
797
|
+
});
|
|
798
|
+
},
|
|
799
|
+
downloadExport(sessionId, assetDataEncrypted, options) {
|
|
800
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
801
|
+
var _a, _b, _c;
|
|
802
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadExport(sessionId, assetDataEncrypted, options);
|
|
803
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
804
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadExport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
805
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
806
|
+
});
|
|
807
|
+
},
|
|
808
|
+
downloadGltf(sessionId, assetDataEncrypted, options) {
|
|
809
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
810
|
+
var _a, _b, _c;
|
|
811
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadGltf(sessionId, assetDataEncrypted, options);
|
|
812
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
813
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadGltf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
814
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
815
|
+
});
|
|
816
|
+
},
|
|
817
|
+
downloadImage(sessionId, url, options) {
|
|
818
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
819
|
+
var _a, _b, _c;
|
|
820
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadImage(sessionId, url, options);
|
|
821
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
822
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
823
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
824
|
+
});
|
|
825
|
+
},
|
|
826
|
+
downloadOutput(sessionId, assetDataEncrypted, options) {
|
|
827
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
828
|
+
var _a, _b, _c;
|
|
829
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadOutput(sessionId, assetDataEncrypted, options);
|
|
830
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
831
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadOutput']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
832
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
833
|
+
});
|
|
834
|
+
},
|
|
835
|
+
downloadTexture(sessionId, assetDataEncrypted, options) {
|
|
836
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
837
|
+
var _a, _b, _c;
|
|
838
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadTexture(sessionId, assetDataEncrypted, options);
|
|
839
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
840
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadTexture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
841
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
842
|
+
});
|
|
843
|
+
},
|
|
844
|
+
downloadUsdz(sessionId, assetDataEncrypted, options) {
|
|
845
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
846
|
+
var _a, _b, _c;
|
|
847
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadUsdz(sessionId, assetDataEncrypted, options);
|
|
848
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
849
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadUsdz']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
850
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
851
|
+
});
|
|
852
|
+
},
|
|
853
|
+
};
|
|
854
|
+
};
|
|
855
|
+
exports.AssetsApiFp = AssetsApiFp;
|
|
856
|
+
const AssetsApiFactory = function (configuration, basePath, axios) {
|
|
857
|
+
const localVarFp = (0, exports.AssetsApiFp)(configuration);
|
|
858
|
+
return {
|
|
859
|
+
downloadAsset(assetDataEncrypted, options) {
|
|
860
|
+
return localVarFp.downloadAsset(assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
861
|
+
},
|
|
862
|
+
downloadExport(sessionId, assetDataEncrypted, options) {
|
|
863
|
+
return localVarFp.downloadExport(sessionId, assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
864
|
+
},
|
|
865
|
+
downloadGltf(sessionId, assetDataEncrypted, options) {
|
|
866
|
+
return localVarFp.downloadGltf(sessionId, assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
867
|
+
},
|
|
868
|
+
downloadImage(sessionId, url, options) {
|
|
869
|
+
return localVarFp.downloadImage(sessionId, url, options).then((request) => request(axios, basePath));
|
|
870
|
+
},
|
|
871
|
+
downloadOutput(sessionId, assetDataEncrypted, options) {
|
|
872
|
+
return localVarFp.downloadOutput(sessionId, assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
873
|
+
},
|
|
874
|
+
downloadTexture(sessionId, assetDataEncrypted, options) {
|
|
875
|
+
return localVarFp.downloadTexture(sessionId, assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
876
|
+
},
|
|
877
|
+
downloadUsdz(sessionId, assetDataEncrypted, options) {
|
|
878
|
+
return localVarFp.downloadUsdz(sessionId, assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
879
|
+
},
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
exports.AssetsApiFactory = AssetsApiFactory;
|
|
883
|
+
class AssetsApi extends base_1.BaseAPI {
|
|
884
|
+
downloadAsset(assetDataEncrypted, options) {
|
|
885
|
+
return (0, exports.AssetsApiFp)(this.configuration).downloadAsset(assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
886
|
+
}
|
|
887
|
+
downloadExport(sessionId, assetDataEncrypted, options) {
|
|
888
|
+
return (0, exports.AssetsApiFp)(this.configuration).downloadExport(sessionId, assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
889
|
+
}
|
|
890
|
+
downloadGltf(sessionId, assetDataEncrypted, options) {
|
|
891
|
+
return (0, exports.AssetsApiFp)(this.configuration).downloadGltf(sessionId, assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
892
|
+
}
|
|
893
|
+
downloadImage(sessionId, url, options) {
|
|
894
|
+
return (0, exports.AssetsApiFp)(this.configuration).downloadImage(sessionId, url, options).then((request) => request(this.axios, this.basePath));
|
|
895
|
+
}
|
|
896
|
+
downloadOutput(sessionId, assetDataEncrypted, options) {
|
|
897
|
+
return (0, exports.AssetsApiFp)(this.configuration).downloadOutput(sessionId, assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
898
|
+
}
|
|
899
|
+
downloadTexture(sessionId, assetDataEncrypted, options) {
|
|
900
|
+
return (0, exports.AssetsApiFp)(this.configuration).downloadTexture(sessionId, assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
901
|
+
}
|
|
902
|
+
downloadUsdz(sessionId, assetDataEncrypted, options) {
|
|
903
|
+
return (0, exports.AssetsApiFp)(this.configuration).downloadUsdz(sessionId, assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
exports.AssetsApi = AssetsApi;
|
|
907
|
+
const AuthApiAxiosParamCreator = function (configuration) {
|
|
908
|
+
return {
|
|
909
|
+
getJsonWebKeySets: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
910
|
+
const localVarPath = `/.well-known/jwks.json`;
|
|
911
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
912
|
+
let baseOptions;
|
|
913
|
+
if (configuration) {
|
|
914
|
+
baseOptions = configuration.baseOptions;
|
|
915
|
+
}
|
|
916
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
917
|
+
const localVarHeaderParameter = {};
|
|
918
|
+
const localVarQueryParameter = {};
|
|
919
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
920
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
921
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
922
|
+
return {
|
|
923
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
924
|
+
options: localVarRequestOptions,
|
|
925
|
+
};
|
|
926
|
+
}),
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
930
|
+
const AuthApiFp = function (configuration) {
|
|
931
|
+
const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration);
|
|
932
|
+
return {
|
|
933
|
+
getJsonWebKeySets(options) {
|
|
934
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
935
|
+
var _a, _b, _c;
|
|
936
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJsonWebKeySets(options);
|
|
937
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
938
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.getJsonWebKeySets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
939
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
940
|
+
});
|
|
941
|
+
},
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
exports.AuthApiFp = AuthApiFp;
|
|
945
|
+
const AuthApiFactory = function (configuration, basePath, axios) {
|
|
946
|
+
const localVarFp = (0, exports.AuthApiFp)(configuration);
|
|
947
|
+
return {
|
|
948
|
+
getJsonWebKeySets(options) {
|
|
949
|
+
return localVarFp.getJsonWebKeySets(options).then((request) => request(axios, basePath));
|
|
950
|
+
},
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
exports.AuthApiFactory = AuthApiFactory;
|
|
954
|
+
class AuthApi extends base_1.BaseAPI {
|
|
955
|
+
getJsonWebKeySets(options) {
|
|
956
|
+
return (0, exports.AuthApiFp)(this.configuration).getJsonWebKeySets(options).then((request) => request(this.axios, this.basePath));
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
exports.AuthApi = AuthApi;
|
|
960
|
+
const AuthGroupApiAxiosParamCreator = function (configuration) {
|
|
961
|
+
return {
|
|
962
|
+
createAuthorizationGroup: (reqAuthorizationGroup_1, ...args_1) => __awaiter(this, [reqAuthorizationGroup_1, ...args_1], void 0, function* (reqAuthorizationGroup, options = {}) {
|
|
963
|
+
(0, common_1.assertParamExists)('createAuthorizationGroup', 'reqAuthorizationGroup', reqAuthorizationGroup);
|
|
964
|
+
const localVarPath = `/api/v2/auth_group`;
|
|
965
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
966
|
+
let baseOptions;
|
|
967
|
+
if (configuration) {
|
|
968
|
+
baseOptions = configuration.baseOptions;
|
|
969
|
+
}
|
|
970
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
971
|
+
const localVarHeaderParameter = {};
|
|
972
|
+
const localVarQueryParameter = {};
|
|
973
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
974
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
975
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
976
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
977
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
978
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqAuthorizationGroup, localVarRequestOptions, configuration);
|
|
979
|
+
return {
|
|
980
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
981
|
+
options: localVarRequestOptions,
|
|
982
|
+
};
|
|
983
|
+
}),
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
exports.AuthGroupApiAxiosParamCreator = AuthGroupApiAxiosParamCreator;
|
|
987
|
+
const AuthGroupApiFp = function (configuration) {
|
|
988
|
+
const localVarAxiosParamCreator = (0, exports.AuthGroupApiAxiosParamCreator)(configuration);
|
|
989
|
+
return {
|
|
990
|
+
createAuthorizationGroup(reqAuthorizationGroup, options) {
|
|
991
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
992
|
+
var _a, _b, _c;
|
|
993
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAuthorizationGroup(reqAuthorizationGroup, options);
|
|
994
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
995
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthGroupApi.createAuthorizationGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
996
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
997
|
+
});
|
|
998
|
+
},
|
|
999
|
+
};
|
|
1000
|
+
};
|
|
1001
|
+
exports.AuthGroupApiFp = AuthGroupApiFp;
|
|
1002
|
+
const AuthGroupApiFactory = function (configuration, basePath, axios) {
|
|
1003
|
+
const localVarFp = (0, exports.AuthGroupApiFp)(configuration);
|
|
1004
|
+
return {
|
|
1005
|
+
createAuthorizationGroup(reqAuthorizationGroup, options) {
|
|
1006
|
+
return localVarFp.createAuthorizationGroup(reqAuthorizationGroup, options).then((request) => request(axios, basePath));
|
|
1007
|
+
},
|
|
1008
|
+
};
|
|
1009
|
+
};
|
|
1010
|
+
exports.AuthGroupApiFactory = AuthGroupApiFactory;
|
|
1011
|
+
class AuthGroupApi extends base_1.BaseAPI {
|
|
1012
|
+
createAuthorizationGroup(reqAuthorizationGroup, options) {
|
|
1013
|
+
return (0, exports.AuthGroupApiFp)(this.configuration).createAuthorizationGroup(reqAuthorizationGroup, options).then((request) => request(this.axios, this.basePath));
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
exports.AuthGroupApi = AuthGroupApi;
|
|
1017
|
+
const ExportApiAxiosParamCreator = function (configuration) {
|
|
1018
|
+
return {
|
|
1019
|
+
computeExports: (sessionId_1, reqExport_1, ...args_1) => __awaiter(this, [sessionId_1, reqExport_1, ...args_1], void 0, function* (sessionId, reqExport, options = {}) {
|
|
1020
|
+
(0, common_1.assertParamExists)('computeExports', 'sessionId', sessionId);
|
|
1021
|
+
(0, common_1.assertParamExists)('computeExports', 'reqExport', reqExport);
|
|
1022
|
+
const localVarPath = `/api/v2/session/{sessionId}/export`
|
|
1023
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
1024
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1025
|
+
let baseOptions;
|
|
1026
|
+
if (configuration) {
|
|
1027
|
+
baseOptions = configuration.baseOptions;
|
|
1028
|
+
}
|
|
1029
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1030
|
+
const localVarHeaderParameter = {};
|
|
1031
|
+
const localVarQueryParameter = {};
|
|
1032
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1033
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1034
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1036
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1037
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqExport, localVarRequestOptions, configuration);
|
|
1038
|
+
return {
|
|
1039
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1040
|
+
options: localVarRequestOptions,
|
|
1041
|
+
};
|
|
1042
|
+
}),
|
|
1043
|
+
getCachedExports: (sessionId_1, reqExportOrCache_1, ...args_1) => __awaiter(this, [sessionId_1, reqExportOrCache_1, ...args_1], void 0, function* (sessionId, reqExportOrCache, options = {}) {
|
|
1044
|
+
(0, common_1.assertParamExists)('getCachedExports', 'sessionId', sessionId);
|
|
1045
|
+
(0, common_1.assertParamExists)('getCachedExports', 'reqExportOrCache', reqExportOrCache);
|
|
1046
|
+
const localVarPath = `/api/v2/session/{sessionId}/export/cache`
|
|
1047
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
1048
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1049
|
+
let baseOptions;
|
|
1050
|
+
if (configuration) {
|
|
1051
|
+
baseOptions = configuration.baseOptions;
|
|
1052
|
+
}
|
|
1053
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1054
|
+
const localVarHeaderParameter = {};
|
|
1055
|
+
const localVarQueryParameter = {};
|
|
1056
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1057
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1058
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1059
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1060
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1061
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqExportOrCache, localVarRequestOptions, configuration);
|
|
1062
|
+
return {
|
|
1063
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1064
|
+
options: localVarRequestOptions,
|
|
1065
|
+
};
|
|
1066
|
+
}),
|
|
1067
|
+
listExportVersions: (sessionId_1, exportId_1, statusComputation_1, statusCollect_1, offset_1, ...args_1) => __awaiter(this, [sessionId_1, exportId_1, statusComputation_1, statusCollect_1, offset_1, ...args_1], void 0, function* (sessionId, exportId, statusComputation, statusCollect, offset, options = {}) {
|
|
1068
|
+
(0, common_1.assertParamExists)('listExportVersions', 'sessionId', sessionId);
|
|
1069
|
+
(0, common_1.assertParamExists)('listExportVersions', 'exportId', exportId);
|
|
1070
|
+
const localVarPath = `/api/v2/session/{sessionId}/export/{exportId}/list`
|
|
1071
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
1072
|
+
.replace(`{${"exportId"}}`, encodeURIComponent(String(exportId)));
|
|
1073
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1074
|
+
let baseOptions;
|
|
1075
|
+
if (configuration) {
|
|
1076
|
+
baseOptions = configuration.baseOptions;
|
|
1077
|
+
}
|
|
1078
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1079
|
+
const localVarHeaderParameter = {};
|
|
1080
|
+
const localVarQueryParameter = {};
|
|
1081
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1082
|
+
if (statusComputation !== undefined) {
|
|
1083
|
+
localVarQueryParameter['statusComputation'] = statusComputation;
|
|
1084
|
+
}
|
|
1085
|
+
if (statusCollect !== undefined) {
|
|
1086
|
+
localVarQueryParameter['statusCollect'] = statusCollect;
|
|
1087
|
+
}
|
|
1088
|
+
if (offset !== undefined) {
|
|
1089
|
+
localVarQueryParameter['offset'] = offset;
|
|
1090
|
+
}
|
|
1091
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1092
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1093
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1094
|
+
return {
|
|
1095
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1096
|
+
options: localVarRequestOptions,
|
|
1097
|
+
};
|
|
1098
|
+
}),
|
|
1099
|
+
updateExportDefinitions: (modelId_1, reqExportDefinitions_1, ...args_1) => __awaiter(this, [modelId_1, reqExportDefinitions_1, ...args_1], void 0, function* (modelId, reqExportDefinitions, options = {}) {
|
|
1100
|
+
(0, common_1.assertParamExists)('updateExportDefinitions', 'modelId', modelId);
|
|
1101
|
+
(0, common_1.assertParamExists)('updateExportDefinitions', 'reqExportDefinitions', reqExportDefinitions);
|
|
1102
|
+
const localVarPath = `/api/v2/model/{modelId}/export`
|
|
1103
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1104
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1105
|
+
let baseOptions;
|
|
1106
|
+
if (configuration) {
|
|
1107
|
+
baseOptions = configuration.baseOptions;
|
|
1108
|
+
}
|
|
1109
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1110
|
+
const localVarHeaderParameter = {};
|
|
1111
|
+
const localVarQueryParameter = {};
|
|
1112
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1113
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1114
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1115
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1116
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1117
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqExportDefinitions, localVarRequestOptions, configuration);
|
|
1118
|
+
return {
|
|
1119
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1120
|
+
options: localVarRequestOptions,
|
|
1121
|
+
};
|
|
1122
|
+
}),
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
exports.ExportApiAxiosParamCreator = ExportApiAxiosParamCreator;
|
|
1126
|
+
const ExportApiFp = function (configuration) {
|
|
1127
|
+
const localVarAxiosParamCreator = (0, exports.ExportApiAxiosParamCreator)(configuration);
|
|
1128
|
+
return {
|
|
1129
|
+
computeExports(sessionId, reqExport, options) {
|
|
1130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1131
|
+
var _a, _b, _c;
|
|
1132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.computeExports(sessionId, reqExport, options);
|
|
1133
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1134
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExportApi.computeExports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1135
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1136
|
+
});
|
|
1137
|
+
},
|
|
1138
|
+
getCachedExports(sessionId, reqExportOrCache, options) {
|
|
1139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1140
|
+
var _a, _b, _c;
|
|
1141
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCachedExports(sessionId, reqExportOrCache, options);
|
|
1142
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1143
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExportApi.getCachedExports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1144
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1145
|
+
});
|
|
1146
|
+
},
|
|
1147
|
+
listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options) {
|
|
1148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1149
|
+
var _a, _b, _c;
|
|
1150
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options);
|
|
1151
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1152
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExportApi.listExportVersions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1153
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1154
|
+
});
|
|
1155
|
+
},
|
|
1156
|
+
updateExportDefinitions(modelId, reqExportDefinitions, options) {
|
|
1157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1158
|
+
var _a, _b, _c;
|
|
1159
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateExportDefinitions(modelId, reqExportDefinitions, options);
|
|
1160
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1161
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExportApi.updateExportDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1162
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1163
|
+
});
|
|
1164
|
+
},
|
|
1165
|
+
};
|
|
1166
|
+
};
|
|
1167
|
+
exports.ExportApiFp = ExportApiFp;
|
|
1168
|
+
const ExportApiFactory = function (configuration, basePath, axios) {
|
|
1169
|
+
const localVarFp = (0, exports.ExportApiFp)(configuration);
|
|
1170
|
+
return {
|
|
1171
|
+
computeExports(sessionId, reqExport, options) {
|
|
1172
|
+
return localVarFp.computeExports(sessionId, reqExport, options).then((request) => request(axios, basePath));
|
|
1173
|
+
},
|
|
1174
|
+
getCachedExports(sessionId, reqExportOrCache, options) {
|
|
1175
|
+
return localVarFp.getCachedExports(sessionId, reqExportOrCache, options).then((request) => request(axios, basePath));
|
|
1176
|
+
},
|
|
1177
|
+
listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options) {
|
|
1178
|
+
return localVarFp.listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options).then((request) => request(axios, basePath));
|
|
1179
|
+
},
|
|
1180
|
+
updateExportDefinitions(modelId, reqExportDefinitions, options) {
|
|
1181
|
+
return localVarFp.updateExportDefinitions(modelId, reqExportDefinitions, options).then((request) => request(axios, basePath));
|
|
1182
|
+
},
|
|
1183
|
+
};
|
|
1184
|
+
};
|
|
1185
|
+
exports.ExportApiFactory = ExportApiFactory;
|
|
1186
|
+
class ExportApi extends base_1.BaseAPI {
|
|
1187
|
+
computeExports(sessionId, reqExport, options) {
|
|
1188
|
+
return (0, exports.ExportApiFp)(this.configuration).computeExports(sessionId, reqExport, options).then((request) => request(this.axios, this.basePath));
|
|
1189
|
+
}
|
|
1190
|
+
getCachedExports(sessionId, reqExportOrCache, options) {
|
|
1191
|
+
return (0, exports.ExportApiFp)(this.configuration).getCachedExports(sessionId, reqExportOrCache, options).then((request) => request(this.axios, this.basePath));
|
|
1192
|
+
}
|
|
1193
|
+
listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options) {
|
|
1194
|
+
return (0, exports.ExportApiFp)(this.configuration).listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options).then((request) => request(this.axios, this.basePath));
|
|
1195
|
+
}
|
|
1196
|
+
updateExportDefinitions(modelId, reqExportDefinitions, options) {
|
|
1197
|
+
return (0, exports.ExportApiFp)(this.configuration).updateExportDefinitions(modelId, reqExportDefinitions, options).then((request) => request(this.axios, this.basePath));
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
exports.ExportApi = ExportApi;
|
|
1201
|
+
const FileApiAxiosParamCreator = function (configuration) {
|
|
1202
|
+
return {
|
|
1203
|
+
deleteFile: (sessionId_1, paramId_1, fileId_1, ...args_1) => __awaiter(this, [sessionId_1, paramId_1, fileId_1, ...args_1], void 0, function* (sessionId, paramId, fileId, options = {}) {
|
|
1204
|
+
(0, common_1.assertParamExists)('deleteFile', 'sessionId', sessionId);
|
|
1205
|
+
(0, common_1.assertParamExists)('deleteFile', 'paramId', paramId);
|
|
1206
|
+
(0, common_1.assertParamExists)('deleteFile', 'fileId', fileId);
|
|
1207
|
+
const localVarPath = `/api/v2/session/{sessionId}/file/{paramId}/{fileId}`
|
|
1208
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
1209
|
+
.replace(`{${"paramId"}}`, encodeURIComponent(String(paramId)))
|
|
1210
|
+
.replace(`{${"fileId"}}`, encodeURIComponent(String(fileId)));
|
|
1211
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1212
|
+
let baseOptions;
|
|
1213
|
+
if (configuration) {
|
|
1214
|
+
baseOptions = configuration.baseOptions;
|
|
1215
|
+
}
|
|
1216
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1217
|
+
const localVarHeaderParameter = {};
|
|
1218
|
+
const localVarQueryParameter = {};
|
|
1219
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1220
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1221
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1222
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1223
|
+
return {
|
|
1224
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1225
|
+
options: localVarRequestOptions,
|
|
1226
|
+
};
|
|
1227
|
+
}),
|
|
1228
|
+
downloadFile: (sessionId_1, paramId_1, fileId_1, ...args_1) => __awaiter(this, [sessionId_1, paramId_1, fileId_1, ...args_1], void 0, function* (sessionId, paramId, fileId, options = {}) {
|
|
1229
|
+
(0, common_1.assertParamExists)('downloadFile', 'sessionId', sessionId);
|
|
1230
|
+
(0, common_1.assertParamExists)('downloadFile', 'paramId', paramId);
|
|
1231
|
+
(0, common_1.assertParamExists)('downloadFile', 'fileId', fileId);
|
|
1232
|
+
const localVarPath = `/api/v2/session/{sessionId}/file/{paramId}/{fileId}`
|
|
1233
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
1234
|
+
.replace(`{${"paramId"}}`, encodeURIComponent(String(paramId)))
|
|
1235
|
+
.replace(`{${"fileId"}}`, encodeURIComponent(String(fileId)));
|
|
1236
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1237
|
+
let baseOptions;
|
|
1238
|
+
if (configuration) {
|
|
1239
|
+
baseOptions = configuration.baseOptions;
|
|
1240
|
+
}
|
|
1241
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1242
|
+
const localVarHeaderParameter = {};
|
|
1243
|
+
const localVarQueryParameter = {};
|
|
1244
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1245
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1247
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1248
|
+
return {
|
|
1249
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1250
|
+
options: localVarRequestOptions,
|
|
1251
|
+
};
|
|
1252
|
+
}),
|
|
1253
|
+
getFileMetadata: (sessionId_1, paramId_1, fileId_1, ...args_1) => __awaiter(this, [sessionId_1, paramId_1, fileId_1, ...args_1], void 0, function* (sessionId, paramId, fileId, options = {}) {
|
|
1254
|
+
(0, common_1.assertParamExists)('getFileMetadata', 'sessionId', sessionId);
|
|
1255
|
+
(0, common_1.assertParamExists)('getFileMetadata', 'paramId', paramId);
|
|
1256
|
+
(0, common_1.assertParamExists)('getFileMetadata', 'fileId', fileId);
|
|
1257
|
+
const localVarPath = `/api/v2/session/{sessionId}/file/{paramId}/{fileId}`
|
|
1258
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
1259
|
+
.replace(`{${"paramId"}}`, encodeURIComponent(String(paramId)))
|
|
1260
|
+
.replace(`{${"fileId"}}`, encodeURIComponent(String(fileId)));
|
|
1261
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1262
|
+
let baseOptions;
|
|
1263
|
+
if (configuration) {
|
|
1264
|
+
baseOptions = configuration.baseOptions;
|
|
1265
|
+
}
|
|
1266
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
|
|
1267
|
+
const localVarHeaderParameter = {};
|
|
1268
|
+
const localVarQueryParameter = {};
|
|
1269
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1270
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1271
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1272
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1273
|
+
return {
|
|
1274
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1275
|
+
options: localVarRequestOptions,
|
|
1276
|
+
};
|
|
1277
|
+
}),
|
|
1278
|
+
listFiles: (sessionId_1, paramId_1, offset_1, ...args_1) => __awaiter(this, [sessionId_1, paramId_1, offset_1, ...args_1], void 0, function* (sessionId, paramId, offset, options = {}) {
|
|
1279
|
+
(0, common_1.assertParamExists)('listFiles', 'sessionId', sessionId);
|
|
1280
|
+
(0, common_1.assertParamExists)('listFiles', 'paramId', paramId);
|
|
1281
|
+
const localVarPath = `/api/v2/session/{sessionId}/file/{paramId}/list`
|
|
1282
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
1283
|
+
.replace(`{${"paramId"}}`, encodeURIComponent(String(paramId)));
|
|
1284
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1285
|
+
let baseOptions;
|
|
1286
|
+
if (configuration) {
|
|
1287
|
+
baseOptions = configuration.baseOptions;
|
|
1288
|
+
}
|
|
1289
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1290
|
+
const localVarHeaderParameter = {};
|
|
1291
|
+
const localVarQueryParameter = {};
|
|
1292
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1293
|
+
if (offset !== undefined) {
|
|
1294
|
+
localVarQueryParameter['offset'] = offset;
|
|
1295
|
+
}
|
|
1296
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1297
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1298
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1299
|
+
return {
|
|
1300
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1301
|
+
options: localVarRequestOptions,
|
|
1302
|
+
};
|
|
1303
|
+
}),
|
|
1304
|
+
uploadFile: (sessionId_1, reqFileUpload_1, ...args_1) => __awaiter(this, [sessionId_1, reqFileUpload_1, ...args_1], void 0, function* (sessionId, reqFileUpload, options = {}) {
|
|
1305
|
+
(0, common_1.assertParamExists)('uploadFile', 'sessionId', sessionId);
|
|
1306
|
+
(0, common_1.assertParamExists)('uploadFile', 'reqFileUpload', reqFileUpload);
|
|
1307
|
+
const localVarPath = `/api/v2/session/{sessionId}/file/upload`
|
|
1308
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
1309
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1310
|
+
let baseOptions;
|
|
1311
|
+
if (configuration) {
|
|
1312
|
+
baseOptions = configuration.baseOptions;
|
|
1313
|
+
}
|
|
1314
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1315
|
+
const localVarHeaderParameter = {};
|
|
1316
|
+
const localVarQueryParameter = {};
|
|
1317
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1318
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1319
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1321
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1322
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqFileUpload, localVarRequestOptions, configuration);
|
|
1323
|
+
return {
|
|
1324
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1325
|
+
options: localVarRequestOptions,
|
|
1326
|
+
};
|
|
1327
|
+
}),
|
|
1328
|
+
};
|
|
1329
|
+
};
|
|
1330
|
+
exports.FileApiAxiosParamCreator = FileApiAxiosParamCreator;
|
|
1331
|
+
const FileApiFp = function (configuration) {
|
|
1332
|
+
const localVarAxiosParamCreator = (0, exports.FileApiAxiosParamCreator)(configuration);
|
|
1333
|
+
return {
|
|
1334
|
+
deleteFile(sessionId, paramId, fileId, options) {
|
|
1335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1336
|
+
var _a, _b, _c;
|
|
1337
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteFile(sessionId, paramId, fileId, options);
|
|
1338
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1339
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileApi.deleteFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1340
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1341
|
+
});
|
|
1342
|
+
},
|
|
1343
|
+
downloadFile(sessionId, paramId, fileId, options) {
|
|
1344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1345
|
+
var _a, _b, _c;
|
|
1346
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadFile(sessionId, paramId, fileId, options);
|
|
1347
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1348
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileApi.downloadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1349
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1350
|
+
});
|
|
1351
|
+
},
|
|
1352
|
+
getFileMetadata(sessionId, paramId, fileId, options) {
|
|
1353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1354
|
+
var _a, _b, _c;
|
|
1355
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFileMetadata(sessionId, paramId, fileId, options);
|
|
1356
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1357
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileApi.getFileMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1358
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1359
|
+
});
|
|
1360
|
+
},
|
|
1361
|
+
listFiles(sessionId, paramId, offset, options) {
|
|
1362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1363
|
+
var _a, _b, _c;
|
|
1364
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFiles(sessionId, paramId, offset, options);
|
|
1365
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1366
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileApi.listFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1367
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1368
|
+
});
|
|
1369
|
+
},
|
|
1370
|
+
uploadFile(sessionId, reqFileUpload, options) {
|
|
1371
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1372
|
+
var _a, _b, _c;
|
|
1373
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(sessionId, reqFileUpload, options);
|
|
1374
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1375
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileApi.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1376
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1377
|
+
});
|
|
1378
|
+
},
|
|
1379
|
+
};
|
|
1380
|
+
};
|
|
1381
|
+
exports.FileApiFp = FileApiFp;
|
|
1382
|
+
const FileApiFactory = function (configuration, basePath, axios) {
|
|
1383
|
+
const localVarFp = (0, exports.FileApiFp)(configuration);
|
|
1384
|
+
return {
|
|
1385
|
+
deleteFile(sessionId, paramId, fileId, options) {
|
|
1386
|
+
return localVarFp.deleteFile(sessionId, paramId, fileId, options).then((request) => request(axios, basePath));
|
|
1387
|
+
},
|
|
1388
|
+
downloadFile(sessionId, paramId, fileId, options) {
|
|
1389
|
+
return localVarFp.downloadFile(sessionId, paramId, fileId, options).then((request) => request(axios, basePath));
|
|
1390
|
+
},
|
|
1391
|
+
getFileMetadata(sessionId, paramId, fileId, options) {
|
|
1392
|
+
return localVarFp.getFileMetadata(sessionId, paramId, fileId, options).then((request) => request(axios, basePath));
|
|
1393
|
+
},
|
|
1394
|
+
listFiles(sessionId, paramId, offset, options) {
|
|
1395
|
+
return localVarFp.listFiles(sessionId, paramId, offset, options).then((request) => request(axios, basePath));
|
|
1396
|
+
},
|
|
1397
|
+
uploadFile(sessionId, reqFileUpload, options) {
|
|
1398
|
+
return localVarFp.uploadFile(sessionId, reqFileUpload, options).then((request) => request(axios, basePath));
|
|
1399
|
+
},
|
|
1400
|
+
};
|
|
1401
|
+
};
|
|
1402
|
+
exports.FileApiFactory = FileApiFactory;
|
|
1403
|
+
class FileApi extends base_1.BaseAPI {
|
|
1404
|
+
deleteFile(sessionId, paramId, fileId, options) {
|
|
1405
|
+
return (0, exports.FileApiFp)(this.configuration).deleteFile(sessionId, paramId, fileId, options).then((request) => request(this.axios, this.basePath));
|
|
1406
|
+
}
|
|
1407
|
+
downloadFile(sessionId, paramId, fileId, options) {
|
|
1408
|
+
return (0, exports.FileApiFp)(this.configuration).downloadFile(sessionId, paramId, fileId, options).then((request) => request(this.axios, this.basePath));
|
|
1409
|
+
}
|
|
1410
|
+
getFileMetadata(sessionId, paramId, fileId, options) {
|
|
1411
|
+
return (0, exports.FileApiFp)(this.configuration).getFileMetadata(sessionId, paramId, fileId, options).then((request) => request(this.axios, this.basePath));
|
|
1412
|
+
}
|
|
1413
|
+
listFiles(sessionId, paramId, offset, options) {
|
|
1414
|
+
return (0, exports.FileApiFp)(this.configuration).listFiles(sessionId, paramId, offset, options).then((request) => request(this.axios, this.basePath));
|
|
1415
|
+
}
|
|
1416
|
+
uploadFile(sessionId, reqFileUpload, options) {
|
|
1417
|
+
return (0, exports.FileApiFp)(this.configuration).uploadFile(sessionId, reqFileUpload, options).then((request) => request(this.axios, this.basePath));
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
exports.FileApi = FileApi;
|
|
1421
|
+
const GltfApiAxiosParamCreator = function (configuration) {
|
|
1422
|
+
return {
|
|
1423
|
+
uploadGltf: (sessionId_1, body_1, conversion_1, ...args_1) => __awaiter(this, [sessionId_1, body_1, conversion_1, ...args_1], void 0, function* (sessionId, body, conversion, options = {}) {
|
|
1424
|
+
(0, common_1.assertParamExists)('uploadGltf', 'sessionId', sessionId);
|
|
1425
|
+
(0, common_1.assertParamExists)('uploadGltf', 'body', body);
|
|
1426
|
+
const localVarPath = `/api/v2/session/{sessionId}/gltf`
|
|
1427
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
1428
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1429
|
+
let baseOptions;
|
|
1430
|
+
if (configuration) {
|
|
1431
|
+
baseOptions = configuration.baseOptions;
|
|
1432
|
+
}
|
|
1433
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1434
|
+
const localVarHeaderParameter = {};
|
|
1435
|
+
const localVarQueryParameter = {};
|
|
1436
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1437
|
+
if (conversion !== undefined) {
|
|
1438
|
+
localVarQueryParameter['conversion'] = conversion;
|
|
1439
|
+
}
|
|
1440
|
+
localVarHeaderParameter['Content-Type'] = 'model/gltf-binary';
|
|
1441
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1442
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1443
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1444
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1445
|
+
return {
|
|
1446
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1447
|
+
options: localVarRequestOptions,
|
|
1448
|
+
};
|
|
1449
|
+
}),
|
|
1450
|
+
};
|
|
1451
|
+
};
|
|
1452
|
+
exports.GltfApiAxiosParamCreator = GltfApiAxiosParamCreator;
|
|
1453
|
+
const GltfApiFp = function (configuration) {
|
|
1454
|
+
const localVarAxiosParamCreator = (0, exports.GltfApiAxiosParamCreator)(configuration);
|
|
1455
|
+
return {
|
|
1456
|
+
uploadGltf(sessionId, body, conversion, options) {
|
|
1457
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1458
|
+
var _a, _b, _c;
|
|
1459
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadGltf(sessionId, body, conversion, options);
|
|
1460
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1461
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GltfApi.uploadGltf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1462
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1463
|
+
});
|
|
1464
|
+
},
|
|
1465
|
+
};
|
|
1466
|
+
};
|
|
1467
|
+
exports.GltfApiFp = GltfApiFp;
|
|
1468
|
+
const GltfApiFactory = function (configuration, basePath, axios) {
|
|
1469
|
+
const localVarFp = (0, exports.GltfApiFp)(configuration);
|
|
1470
|
+
return {
|
|
1471
|
+
uploadGltf(sessionId, body, conversion, options) {
|
|
1472
|
+
return localVarFp.uploadGltf(sessionId, body, conversion, options).then((request) => request(axios, basePath));
|
|
1473
|
+
},
|
|
1474
|
+
};
|
|
1475
|
+
};
|
|
1476
|
+
exports.GltfApiFactory = GltfApiFactory;
|
|
1477
|
+
class GltfApi extends base_1.BaseAPI {
|
|
1478
|
+
uploadGltf(sessionId, body, conversion, options) {
|
|
1479
|
+
return (0, exports.GltfApiFp)(this.configuration).uploadGltf(sessionId, body, conversion, options).then((request) => request(this.axios, this.basePath));
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
exports.GltfApi = GltfApi;
|
|
1483
|
+
const LogApiAxiosParamCreator = function (configuration) {
|
|
1484
|
+
return {
|
|
1485
|
+
logMessage: (sessionId_1, reqLogMessage_1, ...args_1) => __awaiter(this, [sessionId_1, reqLogMessage_1, ...args_1], void 0, function* (sessionId, reqLogMessage, options = {}) {
|
|
1486
|
+
(0, common_1.assertParamExists)('logMessage', 'sessionId', sessionId);
|
|
1487
|
+
(0, common_1.assertParamExists)('logMessage', 'reqLogMessage', reqLogMessage);
|
|
1488
|
+
const localVarPath = `/api/v2/session/{sessionId}/log/message`
|
|
1489
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
1490
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1491
|
+
let baseOptions;
|
|
1492
|
+
if (configuration) {
|
|
1493
|
+
baseOptions = configuration.baseOptions;
|
|
1494
|
+
}
|
|
1495
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1496
|
+
const localVarHeaderParameter = {};
|
|
1497
|
+
const localVarQueryParameter = {};
|
|
1498
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1499
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1500
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1501
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1502
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1503
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqLogMessage, localVarRequestOptions, configuration);
|
|
1504
|
+
return {
|
|
1505
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1506
|
+
options: localVarRequestOptions,
|
|
1507
|
+
};
|
|
1508
|
+
}),
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
exports.LogApiAxiosParamCreator = LogApiAxiosParamCreator;
|
|
1512
|
+
const LogApiFp = function (configuration) {
|
|
1513
|
+
const localVarAxiosParamCreator = (0, exports.LogApiAxiosParamCreator)(configuration);
|
|
1514
|
+
return {
|
|
1515
|
+
logMessage(sessionId, reqLogMessage, options) {
|
|
1516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1517
|
+
var _a, _b, _c;
|
|
1518
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.logMessage(sessionId, reqLogMessage, options);
|
|
1519
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1520
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LogApi.logMessage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1521
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1522
|
+
});
|
|
1523
|
+
},
|
|
1524
|
+
};
|
|
1525
|
+
};
|
|
1526
|
+
exports.LogApiFp = LogApiFp;
|
|
1527
|
+
const LogApiFactory = function (configuration, basePath, axios) {
|
|
1528
|
+
const localVarFp = (0, exports.LogApiFp)(configuration);
|
|
1529
|
+
return {
|
|
1530
|
+
logMessage(sessionId, reqLogMessage, options) {
|
|
1531
|
+
return localVarFp.logMessage(sessionId, reqLogMessage, options).then((request) => request(axios, basePath));
|
|
1532
|
+
},
|
|
1533
|
+
};
|
|
1534
|
+
};
|
|
1535
|
+
exports.LogApiFactory = LogApiFactory;
|
|
1536
|
+
class LogApi extends base_1.BaseAPI {
|
|
1537
|
+
logMessage(sessionId, reqLogMessage, options) {
|
|
1538
|
+
return (0, exports.LogApiFp)(this.configuration).logMessage(sessionId, reqLogMessage, options).then((request) => request(this.axios, this.basePath));
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
exports.LogApi = LogApi;
|
|
1542
|
+
const ModelApiAxiosParamCreator = function (configuration) {
|
|
1543
|
+
return {
|
|
1544
|
+
cleanupExports: (modelId_1, untilLastSeen_1, ...args_1) => __awaiter(this, [modelId_1, untilLastSeen_1, ...args_1], void 0, function* (modelId, untilLastSeen, options = {}) {
|
|
1545
|
+
(0, common_1.assertParamExists)('cleanupExports', 'modelId', modelId);
|
|
1546
|
+
(0, common_1.assertParamExists)('cleanupExports', 'untilLastSeen', untilLastSeen);
|
|
1547
|
+
const localVarPath = `/api/v2/model/{modelId}/cleanup/export`
|
|
1548
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1549
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1550
|
+
let baseOptions;
|
|
1551
|
+
if (configuration) {
|
|
1552
|
+
baseOptions = configuration.baseOptions;
|
|
1553
|
+
}
|
|
1554
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1555
|
+
const localVarHeaderParameter = {};
|
|
1556
|
+
const localVarQueryParameter = {};
|
|
1557
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1558
|
+
if (untilLastSeen !== undefined) {
|
|
1559
|
+
localVarQueryParameter['untilLastSeen'] = untilLastSeen;
|
|
1560
|
+
}
|
|
1561
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1562
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1563
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1564
|
+
return {
|
|
1565
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1566
|
+
options: localVarRequestOptions,
|
|
1567
|
+
};
|
|
1568
|
+
}),
|
|
1569
|
+
cleanupOutputs: (modelId_1, untilLastSeen_1, ...args_1) => __awaiter(this, [modelId_1, untilLastSeen_1, ...args_1], void 0, function* (modelId, untilLastSeen, options = {}) {
|
|
1570
|
+
(0, common_1.assertParamExists)('cleanupOutputs', 'modelId', modelId);
|
|
1571
|
+
(0, common_1.assertParamExists)('cleanupOutputs', 'untilLastSeen', untilLastSeen);
|
|
1572
|
+
const localVarPath = `/api/v2/model/{modelId}/cleanup/output`
|
|
1573
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1574
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1575
|
+
let baseOptions;
|
|
1576
|
+
if (configuration) {
|
|
1577
|
+
baseOptions = configuration.baseOptions;
|
|
1578
|
+
}
|
|
1579
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1580
|
+
const localVarHeaderParameter = {};
|
|
1581
|
+
const localVarQueryParameter = {};
|
|
1582
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1583
|
+
if (untilLastSeen !== undefined) {
|
|
1584
|
+
localVarQueryParameter['untilLastSeen'] = untilLastSeen;
|
|
1585
|
+
}
|
|
1586
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1587
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1588
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1589
|
+
return {
|
|
1590
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1591
|
+
options: localVarRequestOptions,
|
|
1592
|
+
};
|
|
1593
|
+
}),
|
|
1594
|
+
cleanupTextures: (modelId_1, untilLastSeen_1, ...args_1) => __awaiter(this, [modelId_1, untilLastSeen_1, ...args_1], void 0, function* (modelId, untilLastSeen, options = {}) {
|
|
1595
|
+
(0, common_1.assertParamExists)('cleanupTextures', 'modelId', modelId);
|
|
1596
|
+
(0, common_1.assertParamExists)('cleanupTextures', 'untilLastSeen', untilLastSeen);
|
|
1597
|
+
const localVarPath = `/api/v2/model/{modelId}/cleanup/texture`
|
|
1598
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1599
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1600
|
+
let baseOptions;
|
|
1601
|
+
if (configuration) {
|
|
1602
|
+
baseOptions = configuration.baseOptions;
|
|
1603
|
+
}
|
|
1604
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1605
|
+
const localVarHeaderParameter = {};
|
|
1606
|
+
const localVarQueryParameter = {};
|
|
1607
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1608
|
+
if (untilLastSeen !== undefined) {
|
|
1609
|
+
localVarQueryParameter['untilLastSeen'] = untilLastSeen;
|
|
1610
|
+
}
|
|
1611
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1612
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1613
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1614
|
+
return {
|
|
1615
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1616
|
+
options: localVarRequestOptions,
|
|
1617
|
+
};
|
|
1618
|
+
}),
|
|
1619
|
+
createModel: (reqModel_1, ...args_1) => __awaiter(this, [reqModel_1, ...args_1], void 0, function* (reqModel, options = {}) {
|
|
1620
|
+
(0, common_1.assertParamExists)('createModel', 'reqModel', reqModel);
|
|
1621
|
+
const localVarPath = `/api/v2/model`;
|
|
1622
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1623
|
+
let baseOptions;
|
|
1624
|
+
if (configuration) {
|
|
1625
|
+
baseOptions = configuration.baseOptions;
|
|
1626
|
+
}
|
|
1627
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1628
|
+
const localVarHeaderParameter = {};
|
|
1629
|
+
const localVarQueryParameter = {};
|
|
1630
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1631
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1632
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1633
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1634
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1635
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqModel, localVarRequestOptions, configuration);
|
|
1636
|
+
return {
|
|
1637
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1638
|
+
options: localVarRequestOptions,
|
|
1639
|
+
};
|
|
1640
|
+
}),
|
|
1641
|
+
createModelConfig: (modelId_1, reqConfigure_1, ...args_1) => __awaiter(this, [modelId_1, reqConfigure_1, ...args_1], void 0, function* (modelId, reqConfigure, options = {}) {
|
|
1642
|
+
(0, common_1.assertParamExists)('createModelConfig', 'modelId', modelId);
|
|
1643
|
+
(0, common_1.assertParamExists)('createModelConfig', 'reqConfigure', reqConfigure);
|
|
1644
|
+
const localVarPath = `/api/v2/model/{modelId}/config`
|
|
1645
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1646
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1647
|
+
let baseOptions;
|
|
1648
|
+
if (configuration) {
|
|
1649
|
+
baseOptions = configuration.baseOptions;
|
|
1650
|
+
}
|
|
1651
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1652
|
+
const localVarHeaderParameter = {};
|
|
1653
|
+
const localVarQueryParameter = {};
|
|
1654
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1655
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1656
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1657
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1658
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1659
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqConfigure, localVarRequestOptions, configuration);
|
|
1660
|
+
return {
|
|
1661
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1662
|
+
options: localVarRequestOptions,
|
|
1663
|
+
};
|
|
1664
|
+
}),
|
|
1665
|
+
deleteModel: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1666
|
+
(0, common_1.assertParamExists)('deleteModel', 'modelId', modelId);
|
|
1667
|
+
const localVarPath = `/api/v2/model/{modelId}`
|
|
1668
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1669
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1670
|
+
let baseOptions;
|
|
1671
|
+
if (configuration) {
|
|
1672
|
+
baseOptions = configuration.baseOptions;
|
|
1673
|
+
}
|
|
1674
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1675
|
+
const localVarHeaderParameter = {};
|
|
1676
|
+
const localVarQueryParameter = {};
|
|
1677
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1678
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1679
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1680
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1681
|
+
return {
|
|
1682
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1683
|
+
options: localVarRequestOptions,
|
|
1684
|
+
};
|
|
1685
|
+
}),
|
|
1686
|
+
downloadModelFile: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1687
|
+
(0, common_1.assertParamExists)('downloadModelFile', 'modelId', modelId);
|
|
1688
|
+
const localVarPath = `/api/v2/model/{modelId}/file/download`
|
|
1689
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1690
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1691
|
+
let baseOptions;
|
|
1692
|
+
if (configuration) {
|
|
1693
|
+
baseOptions = configuration.baseOptions;
|
|
1694
|
+
}
|
|
1695
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1696
|
+
const localVarHeaderParameter = {};
|
|
1697
|
+
const localVarQueryParameter = {};
|
|
1698
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1699
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1700
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1701
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1702
|
+
return {
|
|
1703
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1704
|
+
options: localVarRequestOptions,
|
|
1705
|
+
};
|
|
1706
|
+
}),
|
|
1707
|
+
getCleanupStatus: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1708
|
+
(0, common_1.assertParamExists)('getCleanupStatus', 'modelId', modelId);
|
|
1709
|
+
const localVarPath = `/api/v2/model/{modelId}/cleanup/status`
|
|
1710
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1711
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1712
|
+
let baseOptions;
|
|
1713
|
+
if (configuration) {
|
|
1714
|
+
baseOptions = configuration.baseOptions;
|
|
1715
|
+
}
|
|
1716
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1717
|
+
const localVarHeaderParameter = {};
|
|
1718
|
+
const localVarQueryParameter = {};
|
|
1719
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1720
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1721
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1722
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1723
|
+
return {
|
|
1724
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1725
|
+
options: localVarRequestOptions,
|
|
1726
|
+
};
|
|
1727
|
+
}),
|
|
1728
|
+
getModel: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1729
|
+
(0, common_1.assertParamExists)('getModel', 'modelId', modelId);
|
|
1730
|
+
const localVarPath = `/api/v2/model/{modelId}`
|
|
1731
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1732
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1733
|
+
let baseOptions;
|
|
1734
|
+
if (configuration) {
|
|
1735
|
+
baseOptions = configuration.baseOptions;
|
|
1736
|
+
}
|
|
1737
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1738
|
+
const localVarHeaderParameter = {};
|
|
1739
|
+
const localVarQueryParameter = {};
|
|
1740
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1741
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1742
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1743
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1744
|
+
return {
|
|
1745
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1746
|
+
options: localVarRequestOptions,
|
|
1747
|
+
};
|
|
1748
|
+
}),
|
|
1749
|
+
getModelComputations: (modelId_1, order_1, timestampFrom_1, timestampTo_1, status_1, type_1, limit_1, strictLimit_1, offset_1, ...args_1) => __awaiter(this, [modelId_1, order_1, timestampFrom_1, timestampTo_1, status_1, type_1, limit_1, strictLimit_1, offset_1, ...args_1], void 0, function* (modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options = {}) {
|
|
1750
|
+
(0, common_1.assertParamExists)('getModelComputations', 'modelId', modelId);
|
|
1751
|
+
const localVarPath = `/api/v2/model/{modelId}/computations`
|
|
1752
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1753
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1754
|
+
let baseOptions;
|
|
1755
|
+
if (configuration) {
|
|
1756
|
+
baseOptions = configuration.baseOptions;
|
|
1757
|
+
}
|
|
1758
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1759
|
+
const localVarHeaderParameter = {};
|
|
1760
|
+
const localVarQueryParameter = {};
|
|
1761
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1762
|
+
if (order !== undefined) {
|
|
1763
|
+
localVarQueryParameter['order'] = order;
|
|
1764
|
+
}
|
|
1765
|
+
if (timestampFrom !== undefined) {
|
|
1766
|
+
localVarQueryParameter['timestamp_from'] = timestampFrom;
|
|
1767
|
+
}
|
|
1768
|
+
if (timestampTo !== undefined) {
|
|
1769
|
+
localVarQueryParameter['timestamp_to'] = timestampTo;
|
|
1770
|
+
}
|
|
1771
|
+
if (status !== undefined) {
|
|
1772
|
+
localVarQueryParameter['status'] = status;
|
|
1773
|
+
}
|
|
1774
|
+
if (type !== undefined) {
|
|
1775
|
+
localVarQueryParameter['type'] = type;
|
|
1776
|
+
}
|
|
1777
|
+
if (limit !== undefined) {
|
|
1778
|
+
localVarQueryParameter['limit'] = limit;
|
|
1779
|
+
}
|
|
1780
|
+
if (strictLimit !== undefined) {
|
|
1781
|
+
localVarQueryParameter['strict_limit'] = strictLimit;
|
|
1782
|
+
}
|
|
1783
|
+
if (offset !== undefined) {
|
|
1784
|
+
localVarQueryParameter['offset'] = offset;
|
|
1785
|
+
}
|
|
1786
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1787
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1788
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1789
|
+
return {
|
|
1790
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1791
|
+
options: localVarRequestOptions,
|
|
1792
|
+
};
|
|
1793
|
+
}),
|
|
1794
|
+
getModelConfig: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1795
|
+
(0, common_1.assertParamExists)('getModelConfig', 'modelId', modelId);
|
|
1796
|
+
const localVarPath = `/api/v2/model/{modelId}/config`
|
|
1797
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1798
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1799
|
+
let baseOptions;
|
|
1800
|
+
if (configuration) {
|
|
1801
|
+
baseOptions = configuration.baseOptions;
|
|
1802
|
+
}
|
|
1803
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1804
|
+
const localVarHeaderParameter = {};
|
|
1805
|
+
const localVarQueryParameter = {};
|
|
1806
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1807
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1808
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1809
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1810
|
+
return {
|
|
1811
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1812
|
+
options: localVarRequestOptions,
|
|
1813
|
+
};
|
|
1814
|
+
}),
|
|
1815
|
+
listModels: (modelStatus_1, offset_1, ...args_1) => __awaiter(this, [modelStatus_1, offset_1, ...args_1], void 0, function* (modelStatus, offset, options = {}) {
|
|
1816
|
+
const localVarPath = `/api/v2/model/list`;
|
|
1817
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1818
|
+
let baseOptions;
|
|
1819
|
+
if (configuration) {
|
|
1820
|
+
baseOptions = configuration.baseOptions;
|
|
1821
|
+
}
|
|
1822
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1823
|
+
const localVarHeaderParameter = {};
|
|
1824
|
+
const localVarQueryParameter = {};
|
|
1825
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1826
|
+
if (modelStatus !== undefined) {
|
|
1827
|
+
localVarQueryParameter['modelStatus'] = modelStatus;
|
|
1828
|
+
}
|
|
1829
|
+
if (offset !== undefined) {
|
|
1830
|
+
localVarQueryParameter['offset'] = offset;
|
|
1831
|
+
}
|
|
1832
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1833
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1834
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1835
|
+
return {
|
|
1836
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1837
|
+
options: localVarRequestOptions,
|
|
1838
|
+
};
|
|
1839
|
+
}),
|
|
1840
|
+
restoreModel: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1841
|
+
(0, common_1.assertParamExists)('restoreModel', 'modelId', modelId);
|
|
1842
|
+
const localVarPath = `/api/v2/model/{modelId}/restore`
|
|
1843
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1844
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1845
|
+
let baseOptions;
|
|
1846
|
+
if (configuration) {
|
|
1847
|
+
baseOptions = configuration.baseOptions;
|
|
1848
|
+
}
|
|
1849
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1850
|
+
const localVarHeaderParameter = {};
|
|
1851
|
+
const localVarQueryParameter = {};
|
|
1852
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1853
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1854
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1855
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1856
|
+
return {
|
|
1857
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1858
|
+
options: localVarRequestOptions,
|
|
1859
|
+
};
|
|
1860
|
+
}),
|
|
1861
|
+
updateModel: (modelId_1, reqModel_1, ...args_1) => __awaiter(this, [modelId_1, reqModel_1, ...args_1], void 0, function* (modelId, reqModel, options = {}) {
|
|
1862
|
+
(0, common_1.assertParamExists)('updateModel', 'modelId', modelId);
|
|
1863
|
+
(0, common_1.assertParamExists)('updateModel', 'reqModel', reqModel);
|
|
1864
|
+
const localVarPath = `/api/v2/model/{modelId}`
|
|
1865
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1866
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1867
|
+
let baseOptions;
|
|
1868
|
+
if (configuration) {
|
|
1869
|
+
baseOptions = configuration.baseOptions;
|
|
1870
|
+
}
|
|
1871
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1872
|
+
const localVarHeaderParameter = {};
|
|
1873
|
+
const localVarQueryParameter = {};
|
|
1874
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1875
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1876
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1877
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1878
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1879
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqModel, localVarRequestOptions, configuration);
|
|
1880
|
+
return {
|
|
1881
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1882
|
+
options: localVarRequestOptions,
|
|
1883
|
+
};
|
|
1884
|
+
}),
|
|
1885
|
+
updateModelConfig: (modelId_1, reqConfigure_1, ...args_1) => __awaiter(this, [modelId_1, reqConfigure_1, ...args_1], void 0, function* (modelId, reqConfigure, options = {}) {
|
|
1886
|
+
(0, common_1.assertParamExists)('updateModelConfig', 'modelId', modelId);
|
|
1887
|
+
(0, common_1.assertParamExists)('updateModelConfig', 'reqConfigure', reqConfigure);
|
|
1888
|
+
const localVarPath = `/api/v2/model/{modelId}/config`
|
|
1889
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1890
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1891
|
+
let baseOptions;
|
|
1892
|
+
if (configuration) {
|
|
1893
|
+
baseOptions = configuration.baseOptions;
|
|
1894
|
+
}
|
|
1895
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1896
|
+
const localVarHeaderParameter = {};
|
|
1897
|
+
const localVarQueryParameter = {};
|
|
1898
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1899
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1900
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1901
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1902
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1903
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqConfigure, localVarRequestOptions, configuration);
|
|
1904
|
+
return {
|
|
1905
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1906
|
+
options: localVarRequestOptions,
|
|
1907
|
+
};
|
|
1908
|
+
}),
|
|
1909
|
+
updateParameterDefaultValues: (modelId_1, reqCustomization_1, ...args_1) => __awaiter(this, [modelId_1, reqCustomization_1, ...args_1], void 0, function* (modelId, reqCustomization, options = {}) {
|
|
1910
|
+
(0, common_1.assertParamExists)('updateParameterDefaultValues', 'modelId', modelId);
|
|
1911
|
+
(0, common_1.assertParamExists)('updateParameterDefaultValues', 'reqCustomization', reqCustomization);
|
|
1912
|
+
const localVarPath = `/api/v2/model/{modelId}/parameter/defval`
|
|
1913
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1914
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1915
|
+
let baseOptions;
|
|
1916
|
+
if (configuration) {
|
|
1917
|
+
baseOptions = configuration.baseOptions;
|
|
1918
|
+
}
|
|
1919
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1920
|
+
const localVarHeaderParameter = {};
|
|
1921
|
+
const localVarQueryParameter = {};
|
|
1922
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1923
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1924
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1925
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1926
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1927
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCustomization, localVarRequestOptions, configuration);
|
|
1928
|
+
return {
|
|
1929
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1930
|
+
options: localVarRequestOptions,
|
|
1931
|
+
};
|
|
1932
|
+
}),
|
|
1933
|
+
updateParameterDefinitions: (modelId_1, reqParameterDefinitions_1, ...args_1) => __awaiter(this, [modelId_1, reqParameterDefinitions_1, ...args_1], void 0, function* (modelId, reqParameterDefinitions, options = {}) {
|
|
1934
|
+
(0, common_1.assertParamExists)('updateParameterDefinitions', 'modelId', modelId);
|
|
1935
|
+
(0, common_1.assertParamExists)('updateParameterDefinitions', 'reqParameterDefinitions', reqParameterDefinitions);
|
|
1936
|
+
const localVarPath = `/api/v2/model/{modelId}/parameter`
|
|
1937
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
1938
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1939
|
+
let baseOptions;
|
|
1940
|
+
if (configuration) {
|
|
1941
|
+
baseOptions = configuration.baseOptions;
|
|
1942
|
+
}
|
|
1943
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1944
|
+
const localVarHeaderParameter = {};
|
|
1945
|
+
const localVarQueryParameter = {};
|
|
1946
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1947
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1948
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1949
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1950
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1951
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqParameterDefinitions, localVarRequestOptions, configuration);
|
|
1952
|
+
return {
|
|
1953
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1954
|
+
options: localVarRequestOptions,
|
|
1955
|
+
};
|
|
1956
|
+
}),
|
|
1957
|
+
};
|
|
1958
|
+
};
|
|
1959
|
+
exports.ModelApiAxiosParamCreator = ModelApiAxiosParamCreator;
|
|
1960
|
+
const ModelApiFp = function (configuration) {
|
|
1961
|
+
const localVarAxiosParamCreator = (0, exports.ModelApiAxiosParamCreator)(configuration);
|
|
1962
|
+
return {
|
|
1963
|
+
cleanupExports(modelId, untilLastSeen, options) {
|
|
1964
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1965
|
+
var _a, _b, _c;
|
|
1966
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanupExports(modelId, untilLastSeen, options);
|
|
1967
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1968
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.cleanupExports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1969
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1970
|
+
});
|
|
1971
|
+
},
|
|
1972
|
+
cleanupOutputs(modelId, untilLastSeen, options) {
|
|
1973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1974
|
+
var _a, _b, _c;
|
|
1975
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanupOutputs(modelId, untilLastSeen, options);
|
|
1976
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1977
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.cleanupOutputs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1978
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1979
|
+
});
|
|
1980
|
+
},
|
|
1981
|
+
cleanupTextures(modelId, untilLastSeen, options) {
|
|
1982
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1983
|
+
var _a, _b, _c;
|
|
1984
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanupTextures(modelId, untilLastSeen, options);
|
|
1985
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1986
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.cleanupTextures']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1987
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1988
|
+
});
|
|
1989
|
+
},
|
|
1990
|
+
createModel(reqModel, options) {
|
|
1991
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1992
|
+
var _a, _b, _c;
|
|
1993
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createModel(reqModel, options);
|
|
1994
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1995
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.createModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1996
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1997
|
+
});
|
|
1998
|
+
},
|
|
1999
|
+
createModelConfig(modelId, reqConfigure, options) {
|
|
2000
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2001
|
+
var _a, _b, _c;
|
|
2002
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createModelConfig(modelId, reqConfigure, options);
|
|
2003
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2004
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.createModelConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2005
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2006
|
+
});
|
|
2007
|
+
},
|
|
2008
|
+
deleteModel(modelId, options) {
|
|
2009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2010
|
+
var _a, _b, _c;
|
|
2011
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteModel(modelId, options);
|
|
2012
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2013
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.deleteModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2014
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2015
|
+
});
|
|
2016
|
+
},
|
|
2017
|
+
downloadModelFile(modelId, options) {
|
|
2018
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2019
|
+
var _a, _b, _c;
|
|
2020
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadModelFile(modelId, options);
|
|
2021
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2022
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.downloadModelFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2023
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2024
|
+
});
|
|
2025
|
+
},
|
|
2026
|
+
getCleanupStatus(modelId, options) {
|
|
2027
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2028
|
+
var _a, _b, _c;
|
|
2029
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCleanupStatus(modelId, options);
|
|
2030
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2031
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.getCleanupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2032
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2033
|
+
});
|
|
2034
|
+
},
|
|
2035
|
+
getModel(modelId, options) {
|
|
2036
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2037
|
+
var _a, _b, _c;
|
|
2038
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModel(modelId, options);
|
|
2039
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2040
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.getModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2041
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2042
|
+
});
|
|
2043
|
+
},
|
|
2044
|
+
getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options) {
|
|
2045
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2046
|
+
var _a, _b, _c;
|
|
2047
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options);
|
|
2048
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2049
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.getModelComputations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2050
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2051
|
+
});
|
|
2052
|
+
},
|
|
2053
|
+
getModelConfig(modelId, options) {
|
|
2054
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2055
|
+
var _a, _b, _c;
|
|
2056
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelConfig(modelId, options);
|
|
2057
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2058
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.getModelConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2059
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2060
|
+
});
|
|
2061
|
+
},
|
|
2062
|
+
listModels(modelStatus, offset, options) {
|
|
2063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2064
|
+
var _a, _b, _c;
|
|
2065
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listModels(modelStatus, offset, options);
|
|
2066
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2067
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.listModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2068
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2069
|
+
});
|
|
2070
|
+
},
|
|
2071
|
+
restoreModel(modelId, options) {
|
|
2072
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2073
|
+
var _a, _b, _c;
|
|
2074
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreModel(modelId, options);
|
|
2075
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2076
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.restoreModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2077
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2078
|
+
});
|
|
2079
|
+
},
|
|
2080
|
+
updateModel(modelId, reqModel, options) {
|
|
2081
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2082
|
+
var _a, _b, _c;
|
|
2083
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateModel(modelId, reqModel, options);
|
|
2084
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2085
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.updateModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2086
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2087
|
+
});
|
|
2088
|
+
},
|
|
2089
|
+
updateModelConfig(modelId, reqConfigure, options) {
|
|
2090
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2091
|
+
var _a, _b, _c;
|
|
2092
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateModelConfig(modelId, reqConfigure, options);
|
|
2093
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2094
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.updateModelConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2095
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2096
|
+
});
|
|
2097
|
+
},
|
|
2098
|
+
updateParameterDefaultValues(modelId, reqCustomization, options) {
|
|
2099
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2100
|
+
var _a, _b, _c;
|
|
2101
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateParameterDefaultValues(modelId, reqCustomization, options);
|
|
2102
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2103
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.updateParameterDefaultValues']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2104
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2105
|
+
});
|
|
2106
|
+
},
|
|
2107
|
+
updateParameterDefinitions(modelId, reqParameterDefinitions, options) {
|
|
2108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2109
|
+
var _a, _b, _c;
|
|
2110
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateParameterDefinitions(modelId, reqParameterDefinitions, options);
|
|
2111
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2112
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.updateParameterDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2113
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2114
|
+
});
|
|
2115
|
+
},
|
|
2116
|
+
};
|
|
2117
|
+
};
|
|
2118
|
+
exports.ModelApiFp = ModelApiFp;
|
|
2119
|
+
const ModelApiFactory = function (configuration, basePath, axios) {
|
|
2120
|
+
const localVarFp = (0, exports.ModelApiFp)(configuration);
|
|
2121
|
+
return {
|
|
2122
|
+
cleanupExports(modelId, untilLastSeen, options) {
|
|
2123
|
+
return localVarFp.cleanupExports(modelId, untilLastSeen, options).then((request) => request(axios, basePath));
|
|
2124
|
+
},
|
|
2125
|
+
cleanupOutputs(modelId, untilLastSeen, options) {
|
|
2126
|
+
return localVarFp.cleanupOutputs(modelId, untilLastSeen, options).then((request) => request(axios, basePath));
|
|
2127
|
+
},
|
|
2128
|
+
cleanupTextures(modelId, untilLastSeen, options) {
|
|
2129
|
+
return localVarFp.cleanupTextures(modelId, untilLastSeen, options).then((request) => request(axios, basePath));
|
|
2130
|
+
},
|
|
2131
|
+
createModel(reqModel, options) {
|
|
2132
|
+
return localVarFp.createModel(reqModel, options).then((request) => request(axios, basePath));
|
|
2133
|
+
},
|
|
2134
|
+
createModelConfig(modelId, reqConfigure, options) {
|
|
2135
|
+
return localVarFp.createModelConfig(modelId, reqConfigure, options).then((request) => request(axios, basePath));
|
|
2136
|
+
},
|
|
2137
|
+
deleteModel(modelId, options) {
|
|
2138
|
+
return localVarFp.deleteModel(modelId, options).then((request) => request(axios, basePath));
|
|
2139
|
+
},
|
|
2140
|
+
downloadModelFile(modelId, options) {
|
|
2141
|
+
return localVarFp.downloadModelFile(modelId, options).then((request) => request(axios, basePath));
|
|
2142
|
+
},
|
|
2143
|
+
getCleanupStatus(modelId, options) {
|
|
2144
|
+
return localVarFp.getCleanupStatus(modelId, options).then((request) => request(axios, basePath));
|
|
2145
|
+
},
|
|
2146
|
+
getModel(modelId, options) {
|
|
2147
|
+
return localVarFp.getModel(modelId, options).then((request) => request(axios, basePath));
|
|
2148
|
+
},
|
|
2149
|
+
getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options) {
|
|
2150
|
+
return localVarFp.getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options).then((request) => request(axios, basePath));
|
|
2151
|
+
},
|
|
2152
|
+
getModelConfig(modelId, options) {
|
|
2153
|
+
return localVarFp.getModelConfig(modelId, options).then((request) => request(axios, basePath));
|
|
2154
|
+
},
|
|
2155
|
+
listModels(modelStatus, offset, options) {
|
|
2156
|
+
return localVarFp.listModels(modelStatus, offset, options).then((request) => request(axios, basePath));
|
|
2157
|
+
},
|
|
2158
|
+
restoreModel(modelId, options) {
|
|
2159
|
+
return localVarFp.restoreModel(modelId, options).then((request) => request(axios, basePath));
|
|
2160
|
+
},
|
|
2161
|
+
updateModel(modelId, reqModel, options) {
|
|
2162
|
+
return localVarFp.updateModel(modelId, reqModel, options).then((request) => request(axios, basePath));
|
|
2163
|
+
},
|
|
2164
|
+
updateModelConfig(modelId, reqConfigure, options) {
|
|
2165
|
+
return localVarFp.updateModelConfig(modelId, reqConfigure, options).then((request) => request(axios, basePath));
|
|
2166
|
+
},
|
|
2167
|
+
updateParameterDefaultValues(modelId, reqCustomization, options) {
|
|
2168
|
+
return localVarFp.updateParameterDefaultValues(modelId, reqCustomization, options).then((request) => request(axios, basePath));
|
|
2169
|
+
},
|
|
2170
|
+
updateParameterDefinitions(modelId, reqParameterDefinitions, options) {
|
|
2171
|
+
return localVarFp.updateParameterDefinitions(modelId, reqParameterDefinitions, options).then((request) => request(axios, basePath));
|
|
2172
|
+
},
|
|
2173
|
+
};
|
|
2174
|
+
};
|
|
2175
|
+
exports.ModelApiFactory = ModelApiFactory;
|
|
2176
|
+
class ModelApi extends base_1.BaseAPI {
|
|
2177
|
+
cleanupExports(modelId, untilLastSeen, options) {
|
|
2178
|
+
return (0, exports.ModelApiFp)(this.configuration).cleanupExports(modelId, untilLastSeen, options).then((request) => request(this.axios, this.basePath));
|
|
2179
|
+
}
|
|
2180
|
+
cleanupOutputs(modelId, untilLastSeen, options) {
|
|
2181
|
+
return (0, exports.ModelApiFp)(this.configuration).cleanupOutputs(modelId, untilLastSeen, options).then((request) => request(this.axios, this.basePath));
|
|
2182
|
+
}
|
|
2183
|
+
cleanupTextures(modelId, untilLastSeen, options) {
|
|
2184
|
+
return (0, exports.ModelApiFp)(this.configuration).cleanupTextures(modelId, untilLastSeen, options).then((request) => request(this.axios, this.basePath));
|
|
2185
|
+
}
|
|
2186
|
+
createModel(reqModel, options) {
|
|
2187
|
+
return (0, exports.ModelApiFp)(this.configuration).createModel(reqModel, options).then((request) => request(this.axios, this.basePath));
|
|
2188
|
+
}
|
|
2189
|
+
createModelConfig(modelId, reqConfigure, options) {
|
|
2190
|
+
return (0, exports.ModelApiFp)(this.configuration).createModelConfig(modelId, reqConfigure, options).then((request) => request(this.axios, this.basePath));
|
|
2191
|
+
}
|
|
2192
|
+
deleteModel(modelId, options) {
|
|
2193
|
+
return (0, exports.ModelApiFp)(this.configuration).deleteModel(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2194
|
+
}
|
|
2195
|
+
downloadModelFile(modelId, options) {
|
|
2196
|
+
return (0, exports.ModelApiFp)(this.configuration).downloadModelFile(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2197
|
+
}
|
|
2198
|
+
getCleanupStatus(modelId, options) {
|
|
2199
|
+
return (0, exports.ModelApiFp)(this.configuration).getCleanupStatus(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2200
|
+
}
|
|
2201
|
+
getModel(modelId, options) {
|
|
2202
|
+
return (0, exports.ModelApiFp)(this.configuration).getModel(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2203
|
+
}
|
|
2204
|
+
getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options) {
|
|
2205
|
+
return (0, exports.ModelApiFp)(this.configuration).getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
2206
|
+
}
|
|
2207
|
+
getModelConfig(modelId, options) {
|
|
2208
|
+
return (0, exports.ModelApiFp)(this.configuration).getModelConfig(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2209
|
+
}
|
|
2210
|
+
listModels(modelStatus, offset, options) {
|
|
2211
|
+
return (0, exports.ModelApiFp)(this.configuration).listModels(modelStatus, offset, options).then((request) => request(this.axios, this.basePath));
|
|
2212
|
+
}
|
|
2213
|
+
restoreModel(modelId, options) {
|
|
2214
|
+
return (0, exports.ModelApiFp)(this.configuration).restoreModel(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2215
|
+
}
|
|
2216
|
+
updateModel(modelId, reqModel, options) {
|
|
2217
|
+
return (0, exports.ModelApiFp)(this.configuration).updateModel(modelId, reqModel, options).then((request) => request(this.axios, this.basePath));
|
|
2218
|
+
}
|
|
2219
|
+
updateModelConfig(modelId, reqConfigure, options) {
|
|
2220
|
+
return (0, exports.ModelApiFp)(this.configuration).updateModelConfig(modelId, reqConfigure, options).then((request) => request(this.axios, this.basePath));
|
|
2221
|
+
}
|
|
2222
|
+
updateParameterDefaultValues(modelId, reqCustomization, options) {
|
|
2223
|
+
return (0, exports.ModelApiFp)(this.configuration).updateParameterDefaultValues(modelId, reqCustomization, options).then((request) => request(this.axios, this.basePath));
|
|
2224
|
+
}
|
|
2225
|
+
updateParameterDefinitions(modelId, reqParameterDefinitions, options) {
|
|
2226
|
+
return (0, exports.ModelApiFp)(this.configuration).updateParameterDefinitions(modelId, reqParameterDefinitions, options).then((request) => request(this.axios, this.basePath));
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
exports.ModelApi = ModelApi;
|
|
2230
|
+
const ModelStateApiAxiosParamCreator = function (configuration) {
|
|
2231
|
+
return {
|
|
2232
|
+
createModelState: (sessionId_1, reqModelState_1, ...args_1) => __awaiter(this, [sessionId_1, reqModelState_1, ...args_1], void 0, function* (sessionId, reqModelState, options = {}) {
|
|
2233
|
+
(0, common_1.assertParamExists)('createModelState', 'sessionId', sessionId);
|
|
2234
|
+
(0, common_1.assertParamExists)('createModelState', 'reqModelState', reqModelState);
|
|
2235
|
+
const localVarPath = `/api/v2/session/{sessionId}/model-state`
|
|
2236
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
2237
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2238
|
+
let baseOptions;
|
|
2239
|
+
if (configuration) {
|
|
2240
|
+
baseOptions = configuration.baseOptions;
|
|
2241
|
+
}
|
|
2242
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2243
|
+
const localVarHeaderParameter = {};
|
|
2244
|
+
const localVarQueryParameter = {};
|
|
2245
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2246
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2247
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2248
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2249
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2250
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqModelState, localVarRequestOptions, configuration);
|
|
2251
|
+
return {
|
|
2252
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2253
|
+
options: localVarRequestOptions,
|
|
2254
|
+
};
|
|
2255
|
+
}),
|
|
2256
|
+
deleteModelState: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2257
|
+
(0, common_1.assertParamExists)('deleteModelState', 'modelStateId', modelStateId);
|
|
2258
|
+
const localVarPath = `/api/v2/model-state/{modelStateId}`
|
|
2259
|
+
.replace(`{${"modelStateId"}}`, encodeURIComponent(String(modelStateId)));
|
|
2260
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2261
|
+
let baseOptions;
|
|
2262
|
+
if (configuration) {
|
|
2263
|
+
baseOptions = configuration.baseOptions;
|
|
2264
|
+
}
|
|
2265
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2266
|
+
const localVarHeaderParameter = {};
|
|
2267
|
+
const localVarQueryParameter = {};
|
|
2268
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2269
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2270
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2271
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2272
|
+
return {
|
|
2273
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2274
|
+
options: localVarRequestOptions,
|
|
2275
|
+
};
|
|
2276
|
+
}),
|
|
2277
|
+
downloadModelStateImage: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2278
|
+
(0, common_1.assertParamExists)('downloadModelStateImage', 'modelStateId', modelStateId);
|
|
2279
|
+
const localVarPath = `/api/v2/model-state/{modelStateId}/image`
|
|
2280
|
+
.replace(`{${"modelStateId"}}`, encodeURIComponent(String(modelStateId)));
|
|
2281
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2282
|
+
let baseOptions;
|
|
2283
|
+
if (configuration) {
|
|
2284
|
+
baseOptions = configuration.baseOptions;
|
|
2285
|
+
}
|
|
2286
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2287
|
+
const localVarHeaderParameter = {};
|
|
2288
|
+
const localVarQueryParameter = {};
|
|
2289
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2290
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2291
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2292
|
+
return {
|
|
2293
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2294
|
+
options: localVarRequestOptions,
|
|
2295
|
+
};
|
|
2296
|
+
}),
|
|
2297
|
+
getModelState: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2298
|
+
(0, common_1.assertParamExists)('getModelState', 'modelStateId', modelStateId);
|
|
2299
|
+
const localVarPath = `/api/v2/model-state/{modelStateId}`
|
|
2300
|
+
.replace(`{${"modelStateId"}}`, encodeURIComponent(String(modelStateId)));
|
|
2301
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2302
|
+
let baseOptions;
|
|
2303
|
+
if (configuration) {
|
|
2304
|
+
baseOptions = configuration.baseOptions;
|
|
2305
|
+
}
|
|
2306
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2307
|
+
const localVarHeaderParameter = {};
|
|
2308
|
+
const localVarQueryParameter = {};
|
|
2309
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2310
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2311
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2312
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2313
|
+
return {
|
|
2314
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2315
|
+
options: localVarRequestOptions,
|
|
2316
|
+
};
|
|
2317
|
+
}),
|
|
2318
|
+
getModelStateData: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2319
|
+
(0, common_1.assertParamExists)('getModelStateData', 'modelStateId', modelStateId);
|
|
2320
|
+
const localVarPath = `/api/v2/model-state/{modelStateId}/data`
|
|
2321
|
+
.replace(`{${"modelStateId"}}`, encodeURIComponent(String(modelStateId)));
|
|
2322
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2323
|
+
let baseOptions;
|
|
2324
|
+
if (configuration) {
|
|
2325
|
+
baseOptions = configuration.baseOptions;
|
|
2326
|
+
}
|
|
2327
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2328
|
+
const localVarHeaderParameter = {};
|
|
2329
|
+
const localVarQueryParameter = {};
|
|
2330
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2331
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2332
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2333
|
+
return {
|
|
2334
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2335
|
+
options: localVarRequestOptions,
|
|
2336
|
+
};
|
|
2337
|
+
}),
|
|
2338
|
+
getModelStateImageMetadata: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2339
|
+
(0, common_1.assertParamExists)('getModelStateImageMetadata', 'modelStateId', modelStateId);
|
|
2340
|
+
const localVarPath = `/api/v2/model-state/{modelStateId}/image`
|
|
2341
|
+
.replace(`{${"modelStateId"}}`, encodeURIComponent(String(modelStateId)));
|
|
2342
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2343
|
+
let baseOptions;
|
|
2344
|
+
if (configuration) {
|
|
2345
|
+
baseOptions = configuration.baseOptions;
|
|
2346
|
+
}
|
|
2347
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
|
|
2348
|
+
const localVarHeaderParameter = {};
|
|
2349
|
+
const localVarQueryParameter = {};
|
|
2350
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2351
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2352
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2353
|
+
return {
|
|
2354
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2355
|
+
options: localVarRequestOptions,
|
|
2356
|
+
};
|
|
2357
|
+
}),
|
|
2358
|
+
getModelStateMetadata: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2359
|
+
(0, common_1.assertParamExists)('getModelStateMetadata', 'modelStateId', modelStateId);
|
|
2360
|
+
const localVarPath = `/api/v2/model-state/{modelStateId}`
|
|
2361
|
+
.replace(`{${"modelStateId"}}`, encodeURIComponent(String(modelStateId)));
|
|
2362
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2363
|
+
let baseOptions;
|
|
2364
|
+
if (configuration) {
|
|
2365
|
+
baseOptions = configuration.baseOptions;
|
|
2366
|
+
}
|
|
2367
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
|
|
2368
|
+
const localVarHeaderParameter = {};
|
|
2369
|
+
const localVarQueryParameter = {};
|
|
2370
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2372
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2373
|
+
return {
|
|
2374
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2375
|
+
options: localVarRequestOptions,
|
|
2376
|
+
};
|
|
2377
|
+
}),
|
|
2378
|
+
listModelStates: (modelId_1, offset_1, ...args_1) => __awaiter(this, [modelId_1, offset_1, ...args_1], void 0, function* (modelId, offset, options = {}) {
|
|
2379
|
+
(0, common_1.assertParamExists)('listModelStates', 'modelId', modelId);
|
|
2380
|
+
const localVarPath = `/api/v2/model-state/model/{modelId}/list`
|
|
2381
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
2382
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2383
|
+
let baseOptions;
|
|
2384
|
+
if (configuration) {
|
|
2385
|
+
baseOptions = configuration.baseOptions;
|
|
2386
|
+
}
|
|
2387
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2388
|
+
const localVarHeaderParameter = {};
|
|
2389
|
+
const localVarQueryParameter = {};
|
|
2390
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2391
|
+
if (offset !== undefined) {
|
|
2392
|
+
localVarQueryParameter['offset'] = offset;
|
|
2393
|
+
}
|
|
2394
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2395
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2396
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2397
|
+
return {
|
|
2398
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2399
|
+
options: localVarRequestOptions,
|
|
2400
|
+
};
|
|
2401
|
+
}),
|
|
2402
|
+
};
|
|
2403
|
+
};
|
|
2404
|
+
exports.ModelStateApiAxiosParamCreator = ModelStateApiAxiosParamCreator;
|
|
2405
|
+
const ModelStateApiFp = function (configuration) {
|
|
2406
|
+
const localVarAxiosParamCreator = (0, exports.ModelStateApiAxiosParamCreator)(configuration);
|
|
2407
|
+
return {
|
|
2408
|
+
createModelState(sessionId, reqModelState, options) {
|
|
2409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2410
|
+
var _a, _b, _c;
|
|
2411
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createModelState(sessionId, reqModelState, options);
|
|
2412
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2413
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.createModelState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2414
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2415
|
+
});
|
|
2416
|
+
},
|
|
2417
|
+
deleteModelState(modelStateId, options) {
|
|
2418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2419
|
+
var _a, _b, _c;
|
|
2420
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteModelState(modelStateId, options);
|
|
2421
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2422
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.deleteModelState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2423
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2424
|
+
});
|
|
2425
|
+
},
|
|
2426
|
+
downloadModelStateImage(modelStateId, options) {
|
|
2427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2428
|
+
var _a, _b, _c;
|
|
2429
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadModelStateImage(modelStateId, options);
|
|
2430
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2431
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.downloadModelStateImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2432
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2433
|
+
});
|
|
2434
|
+
},
|
|
2435
|
+
getModelState(modelStateId, options) {
|
|
2436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2437
|
+
var _a, _b, _c;
|
|
2438
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelState(modelStateId, options);
|
|
2439
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2440
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.getModelState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2441
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2442
|
+
});
|
|
2443
|
+
},
|
|
2444
|
+
getModelStateData(modelStateId, options) {
|
|
2445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2446
|
+
var _a, _b, _c;
|
|
2447
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelStateData(modelStateId, options);
|
|
2448
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2449
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.getModelStateData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2450
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2451
|
+
});
|
|
2452
|
+
},
|
|
2453
|
+
getModelStateImageMetadata(modelStateId, options) {
|
|
2454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2455
|
+
var _a, _b, _c;
|
|
2456
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelStateImageMetadata(modelStateId, options);
|
|
2457
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2458
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.getModelStateImageMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2459
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2460
|
+
});
|
|
2461
|
+
},
|
|
2462
|
+
getModelStateMetadata(modelStateId, options) {
|
|
2463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2464
|
+
var _a, _b, _c;
|
|
2465
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelStateMetadata(modelStateId, options);
|
|
2466
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2467
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.getModelStateMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2468
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2469
|
+
});
|
|
2470
|
+
},
|
|
2471
|
+
listModelStates(modelId, offset, options) {
|
|
2472
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2473
|
+
var _a, _b, _c;
|
|
2474
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listModelStates(modelId, offset, options);
|
|
2475
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2476
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.listModelStates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2477
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2478
|
+
});
|
|
2479
|
+
},
|
|
2480
|
+
};
|
|
2481
|
+
};
|
|
2482
|
+
exports.ModelStateApiFp = ModelStateApiFp;
|
|
2483
|
+
const ModelStateApiFactory = function (configuration, basePath, axios) {
|
|
2484
|
+
const localVarFp = (0, exports.ModelStateApiFp)(configuration);
|
|
2485
|
+
return {
|
|
2486
|
+
createModelState(sessionId, reqModelState, options) {
|
|
2487
|
+
return localVarFp.createModelState(sessionId, reqModelState, options).then((request) => request(axios, basePath));
|
|
2488
|
+
},
|
|
2489
|
+
deleteModelState(modelStateId, options) {
|
|
2490
|
+
return localVarFp.deleteModelState(modelStateId, options).then((request) => request(axios, basePath));
|
|
2491
|
+
},
|
|
2492
|
+
downloadModelStateImage(modelStateId, options) {
|
|
2493
|
+
return localVarFp.downloadModelStateImage(modelStateId, options).then((request) => request(axios, basePath));
|
|
2494
|
+
},
|
|
2495
|
+
getModelState(modelStateId, options) {
|
|
2496
|
+
return localVarFp.getModelState(modelStateId, options).then((request) => request(axios, basePath));
|
|
2497
|
+
},
|
|
2498
|
+
getModelStateData(modelStateId, options) {
|
|
2499
|
+
return localVarFp.getModelStateData(modelStateId, options).then((request) => request(axios, basePath));
|
|
2500
|
+
},
|
|
2501
|
+
getModelStateImageMetadata(modelStateId, options) {
|
|
2502
|
+
return localVarFp.getModelStateImageMetadata(modelStateId, options).then((request) => request(axios, basePath));
|
|
2503
|
+
},
|
|
2504
|
+
getModelStateMetadata(modelStateId, options) {
|
|
2505
|
+
return localVarFp.getModelStateMetadata(modelStateId, options).then((request) => request(axios, basePath));
|
|
2506
|
+
},
|
|
2507
|
+
listModelStates(modelId, offset, options) {
|
|
2508
|
+
return localVarFp.listModelStates(modelId, offset, options).then((request) => request(axios, basePath));
|
|
2509
|
+
},
|
|
2510
|
+
};
|
|
2511
|
+
};
|
|
2512
|
+
exports.ModelStateApiFactory = ModelStateApiFactory;
|
|
2513
|
+
class ModelStateApi extends base_1.BaseAPI {
|
|
2514
|
+
createModelState(sessionId, reqModelState, options) {
|
|
2515
|
+
return (0, exports.ModelStateApiFp)(this.configuration).createModelState(sessionId, reqModelState, options).then((request) => request(this.axios, this.basePath));
|
|
2516
|
+
}
|
|
2517
|
+
deleteModelState(modelStateId, options) {
|
|
2518
|
+
return (0, exports.ModelStateApiFp)(this.configuration).deleteModelState(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2519
|
+
}
|
|
2520
|
+
downloadModelStateImage(modelStateId, options) {
|
|
2521
|
+
return (0, exports.ModelStateApiFp)(this.configuration).downloadModelStateImage(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2522
|
+
}
|
|
2523
|
+
getModelState(modelStateId, options) {
|
|
2524
|
+
return (0, exports.ModelStateApiFp)(this.configuration).getModelState(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2525
|
+
}
|
|
2526
|
+
getModelStateData(modelStateId, options) {
|
|
2527
|
+
return (0, exports.ModelStateApiFp)(this.configuration).getModelStateData(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2528
|
+
}
|
|
2529
|
+
getModelStateImageMetadata(modelStateId, options) {
|
|
2530
|
+
return (0, exports.ModelStateApiFp)(this.configuration).getModelStateImageMetadata(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2531
|
+
}
|
|
2532
|
+
getModelStateMetadata(modelStateId, options) {
|
|
2533
|
+
return (0, exports.ModelStateApiFp)(this.configuration).getModelStateMetadata(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2534
|
+
}
|
|
2535
|
+
listModelStates(modelId, offset, options) {
|
|
2536
|
+
return (0, exports.ModelStateApiFp)(this.configuration).listModelStates(modelId, offset, options).then((request) => request(this.axios, this.basePath));
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
exports.ModelStateApi = ModelStateApi;
|
|
2540
|
+
const OutputApiAxiosParamCreator = function (configuration) {
|
|
2541
|
+
return {
|
|
2542
|
+
computeOutputs: (sessionId_1, reqCustomization_1, ...args_1) => __awaiter(this, [sessionId_1, reqCustomization_1, ...args_1], void 0, function* (sessionId, reqCustomization, options = {}) {
|
|
2543
|
+
(0, common_1.assertParamExists)('computeOutputs', 'sessionId', sessionId);
|
|
2544
|
+
(0, common_1.assertParamExists)('computeOutputs', 'reqCustomization', reqCustomization);
|
|
2545
|
+
const localVarPath = `/api/v2/session/{sessionId}/output`
|
|
2546
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
2547
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2548
|
+
let baseOptions;
|
|
2549
|
+
if (configuration) {
|
|
2550
|
+
baseOptions = configuration.baseOptions;
|
|
2551
|
+
}
|
|
2552
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2553
|
+
const localVarHeaderParameter = {};
|
|
2554
|
+
const localVarQueryParameter = {};
|
|
2555
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2556
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2557
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2558
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2559
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2560
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCustomization, localVarRequestOptions, configuration);
|
|
2561
|
+
return {
|
|
2562
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2563
|
+
options: localVarRequestOptions,
|
|
2564
|
+
};
|
|
2565
|
+
}),
|
|
2566
|
+
getCachedOutputs: (sessionId_1, reqCacheReqCustomization_1, ...args_1) => __awaiter(this, [sessionId_1, reqCacheReqCustomization_1, ...args_1], void 0, function* (sessionId, reqCacheReqCustomization, options = {}) {
|
|
2567
|
+
(0, common_1.assertParamExists)('getCachedOutputs', 'sessionId', sessionId);
|
|
2568
|
+
(0, common_1.assertParamExists)('getCachedOutputs', 'reqCacheReqCustomization', reqCacheReqCustomization);
|
|
2569
|
+
const localVarPath = `/api/v2/session/{sessionId}/output/cache`
|
|
2570
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
2571
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2572
|
+
let baseOptions;
|
|
2573
|
+
if (configuration) {
|
|
2574
|
+
baseOptions = configuration.baseOptions;
|
|
2575
|
+
}
|
|
2576
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2577
|
+
const localVarHeaderParameter = {};
|
|
2578
|
+
const localVarQueryParameter = {};
|
|
2579
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2580
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2581
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2582
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2583
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2584
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCacheReqCustomization, localVarRequestOptions, configuration);
|
|
2585
|
+
return {
|
|
2586
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2587
|
+
options: localVarRequestOptions,
|
|
2588
|
+
};
|
|
2589
|
+
}),
|
|
2590
|
+
listOutputVersions: (sessionId_1, outputId_1, statusComputation_1, statusCollect_1, offset_1, ...args_1) => __awaiter(this, [sessionId_1, outputId_1, statusComputation_1, statusCollect_1, offset_1, ...args_1], void 0, function* (sessionId, outputId, statusComputation, statusCollect, offset, options = {}) {
|
|
2591
|
+
(0, common_1.assertParamExists)('listOutputVersions', 'sessionId', sessionId);
|
|
2592
|
+
(0, common_1.assertParamExists)('listOutputVersions', 'outputId', outputId);
|
|
2593
|
+
const localVarPath = `/api/v2/session/{sessionId}/output/{outputId}/list`
|
|
2594
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
2595
|
+
.replace(`{${"outputId"}}`, encodeURIComponent(String(outputId)));
|
|
2596
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2597
|
+
let baseOptions;
|
|
2598
|
+
if (configuration) {
|
|
2599
|
+
baseOptions = configuration.baseOptions;
|
|
2600
|
+
}
|
|
2601
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2602
|
+
const localVarHeaderParameter = {};
|
|
2603
|
+
const localVarQueryParameter = {};
|
|
2604
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2605
|
+
if (statusComputation !== undefined) {
|
|
2606
|
+
localVarQueryParameter['statusComputation'] = statusComputation;
|
|
2607
|
+
}
|
|
2608
|
+
if (statusCollect !== undefined) {
|
|
2609
|
+
localVarQueryParameter['statusCollect'] = statusCollect;
|
|
2610
|
+
}
|
|
2611
|
+
if (offset !== undefined) {
|
|
2612
|
+
localVarQueryParameter['offset'] = offset;
|
|
2613
|
+
}
|
|
2614
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2615
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2616
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2617
|
+
return {
|
|
2618
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2619
|
+
options: localVarRequestOptions,
|
|
2620
|
+
};
|
|
2621
|
+
}),
|
|
2622
|
+
updateOutputDefinitions: (modelId_1, reqOutputDefinitions_1, ...args_1) => __awaiter(this, [modelId_1, reqOutputDefinitions_1, ...args_1], void 0, function* (modelId, reqOutputDefinitions, options = {}) {
|
|
2623
|
+
(0, common_1.assertParamExists)('updateOutputDefinitions', 'modelId', modelId);
|
|
2624
|
+
(0, common_1.assertParamExists)('updateOutputDefinitions', 'reqOutputDefinitions', reqOutputDefinitions);
|
|
2625
|
+
const localVarPath = `/api/v2/model/{modelId}/output`
|
|
2626
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
2627
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2628
|
+
let baseOptions;
|
|
2629
|
+
if (configuration) {
|
|
2630
|
+
baseOptions = configuration.baseOptions;
|
|
2631
|
+
}
|
|
2632
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2633
|
+
const localVarHeaderParameter = {};
|
|
2634
|
+
const localVarQueryParameter = {};
|
|
2635
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2636
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2637
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2638
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2639
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2640
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqOutputDefinitions, localVarRequestOptions, configuration);
|
|
2641
|
+
return {
|
|
2642
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2643
|
+
options: localVarRequestOptions,
|
|
2644
|
+
};
|
|
2645
|
+
}),
|
|
2646
|
+
};
|
|
2647
|
+
};
|
|
2648
|
+
exports.OutputApiAxiosParamCreator = OutputApiAxiosParamCreator;
|
|
2649
|
+
const OutputApiFp = function (configuration) {
|
|
2650
|
+
const localVarAxiosParamCreator = (0, exports.OutputApiAxiosParamCreator)(configuration);
|
|
2651
|
+
return {
|
|
2652
|
+
computeOutputs(sessionId, reqCustomization, options) {
|
|
2653
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2654
|
+
var _a, _b, _c;
|
|
2655
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.computeOutputs(sessionId, reqCustomization, options);
|
|
2656
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2657
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OutputApi.computeOutputs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2658
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2659
|
+
});
|
|
2660
|
+
},
|
|
2661
|
+
getCachedOutputs(sessionId, reqCacheReqCustomization, options) {
|
|
2662
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2663
|
+
var _a, _b, _c;
|
|
2664
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCachedOutputs(sessionId, reqCacheReqCustomization, options);
|
|
2665
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2666
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OutputApi.getCachedOutputs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2667
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2668
|
+
});
|
|
2669
|
+
},
|
|
2670
|
+
listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options) {
|
|
2671
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2672
|
+
var _a, _b, _c;
|
|
2673
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options);
|
|
2674
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2675
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OutputApi.listOutputVersions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2676
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2677
|
+
});
|
|
2678
|
+
},
|
|
2679
|
+
updateOutputDefinitions(modelId, reqOutputDefinitions, options) {
|
|
2680
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2681
|
+
var _a, _b, _c;
|
|
2682
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOutputDefinitions(modelId, reqOutputDefinitions, options);
|
|
2683
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2684
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OutputApi.updateOutputDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2685
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2686
|
+
});
|
|
2687
|
+
},
|
|
2688
|
+
};
|
|
2689
|
+
};
|
|
2690
|
+
exports.OutputApiFp = OutputApiFp;
|
|
2691
|
+
const OutputApiFactory = function (configuration, basePath, axios) {
|
|
2692
|
+
const localVarFp = (0, exports.OutputApiFp)(configuration);
|
|
2693
|
+
return {
|
|
2694
|
+
computeOutputs(sessionId, reqCustomization, options) {
|
|
2695
|
+
return localVarFp.computeOutputs(sessionId, reqCustomization, options).then((request) => request(axios, basePath));
|
|
2696
|
+
},
|
|
2697
|
+
getCachedOutputs(sessionId, reqCacheReqCustomization, options) {
|
|
2698
|
+
return localVarFp.getCachedOutputs(sessionId, reqCacheReqCustomization, options).then((request) => request(axios, basePath));
|
|
2699
|
+
},
|
|
2700
|
+
listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options) {
|
|
2701
|
+
return localVarFp.listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options).then((request) => request(axios, basePath));
|
|
2702
|
+
},
|
|
2703
|
+
updateOutputDefinitions(modelId, reqOutputDefinitions, options) {
|
|
2704
|
+
return localVarFp.updateOutputDefinitions(modelId, reqOutputDefinitions, options).then((request) => request(axios, basePath));
|
|
2705
|
+
},
|
|
2706
|
+
};
|
|
2707
|
+
};
|
|
2708
|
+
exports.OutputApiFactory = OutputApiFactory;
|
|
2709
|
+
class OutputApi extends base_1.BaseAPI {
|
|
2710
|
+
computeOutputs(sessionId, reqCustomization, options) {
|
|
2711
|
+
return (0, exports.OutputApiFp)(this.configuration).computeOutputs(sessionId, reqCustomization, options).then((request) => request(this.axios, this.basePath));
|
|
2712
|
+
}
|
|
2713
|
+
getCachedOutputs(sessionId, reqCacheReqCustomization, options) {
|
|
2714
|
+
return (0, exports.OutputApiFp)(this.configuration).getCachedOutputs(sessionId, reqCacheReqCustomization, options).then((request) => request(this.axios, this.basePath));
|
|
2715
|
+
}
|
|
2716
|
+
listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options) {
|
|
2717
|
+
return (0, exports.OutputApiFp)(this.configuration).listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options).then((request) => request(this.axios, this.basePath));
|
|
2718
|
+
}
|
|
2719
|
+
updateOutputDefinitions(modelId, reqOutputDefinitions, options) {
|
|
2720
|
+
return (0, exports.OutputApiFp)(this.configuration).updateOutputDefinitions(modelId, reqOutputDefinitions, options).then((request) => request(this.axios, this.basePath));
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
exports.OutputApi = OutputApi;
|
|
2724
|
+
const ScriptApiAxiosParamCreator = function (configuration) {
|
|
2725
|
+
return {
|
|
2726
|
+
confirmScript: (scriptId_1, ...args_1) => __awaiter(this, [scriptId_1, ...args_1], void 0, function* (scriptId, options = {}) {
|
|
2727
|
+
(0, common_1.assertParamExists)('confirmScript', 'scriptId', scriptId);
|
|
2728
|
+
const localVarPath = `/api/v2/script/{scriptId}/confirm`
|
|
2729
|
+
.replace(`{${"scriptId"}}`, encodeURIComponent(String(scriptId)));
|
|
2730
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2731
|
+
let baseOptions;
|
|
2732
|
+
if (configuration) {
|
|
2733
|
+
baseOptions = configuration.baseOptions;
|
|
2734
|
+
}
|
|
2735
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2736
|
+
const localVarHeaderParameter = {};
|
|
2737
|
+
const localVarQueryParameter = {};
|
|
2738
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
2739
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2740
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2741
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2742
|
+
return {
|
|
2743
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2744
|
+
options: localVarRequestOptions,
|
|
2745
|
+
};
|
|
2746
|
+
}),
|
|
2747
|
+
denyScript: (scriptId_1, ...args_1) => __awaiter(this, [scriptId_1, ...args_1], void 0, function* (scriptId, options = {}) {
|
|
2748
|
+
(0, common_1.assertParamExists)('denyScript', 'scriptId', scriptId);
|
|
2749
|
+
const localVarPath = `/api/v2/script/{scriptId}/deny`
|
|
2750
|
+
.replace(`{${"scriptId"}}`, encodeURIComponent(String(scriptId)));
|
|
2751
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2752
|
+
let baseOptions;
|
|
2753
|
+
if (configuration) {
|
|
2754
|
+
baseOptions = configuration.baseOptions;
|
|
2755
|
+
}
|
|
2756
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2757
|
+
const localVarHeaderParameter = {};
|
|
2758
|
+
const localVarQueryParameter = {};
|
|
2759
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
2760
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2761
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2762
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2763
|
+
return {
|
|
2764
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2765
|
+
options: localVarRequestOptions,
|
|
2766
|
+
};
|
|
2767
|
+
}),
|
|
2768
|
+
};
|
|
2769
|
+
};
|
|
2770
|
+
exports.ScriptApiAxiosParamCreator = ScriptApiAxiosParamCreator;
|
|
2771
|
+
const ScriptApiFp = function (configuration) {
|
|
2772
|
+
const localVarAxiosParamCreator = (0, exports.ScriptApiAxiosParamCreator)(configuration);
|
|
2773
|
+
return {
|
|
2774
|
+
confirmScript(scriptId, options) {
|
|
2775
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2776
|
+
var _a, _b, _c;
|
|
2777
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmScript(scriptId, options);
|
|
2778
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2779
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScriptApi.confirmScript']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2780
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2781
|
+
});
|
|
2782
|
+
},
|
|
2783
|
+
denyScript(scriptId, options) {
|
|
2784
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2785
|
+
var _a, _b, _c;
|
|
2786
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.denyScript(scriptId, options);
|
|
2787
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2788
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScriptApi.denyScript']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2789
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2790
|
+
});
|
|
2791
|
+
},
|
|
2792
|
+
};
|
|
2793
|
+
};
|
|
2794
|
+
exports.ScriptApiFp = ScriptApiFp;
|
|
2795
|
+
const ScriptApiFactory = function (configuration, basePath, axios) {
|
|
2796
|
+
const localVarFp = (0, exports.ScriptApiFp)(configuration);
|
|
2797
|
+
return {
|
|
2798
|
+
confirmScript(scriptId, options) {
|
|
2799
|
+
return localVarFp.confirmScript(scriptId, options).then((request) => request(axios, basePath));
|
|
2800
|
+
},
|
|
2801
|
+
denyScript(scriptId, options) {
|
|
2802
|
+
return localVarFp.denyScript(scriptId, options).then((request) => request(axios, basePath));
|
|
2803
|
+
},
|
|
2804
|
+
};
|
|
2805
|
+
};
|
|
2806
|
+
exports.ScriptApiFactory = ScriptApiFactory;
|
|
2807
|
+
class ScriptApi extends base_1.BaseAPI {
|
|
2808
|
+
confirmScript(scriptId, options) {
|
|
2809
|
+
return (0, exports.ScriptApiFp)(this.configuration).confirmScript(scriptId, options).then((request) => request(this.axios, this.basePath));
|
|
2810
|
+
}
|
|
2811
|
+
denyScript(scriptId, options) {
|
|
2812
|
+
return (0, exports.ScriptApiFp)(this.configuration).denyScript(scriptId, options).then((request) => request(this.axios, this.basePath));
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
exports.ScriptApi = ScriptApi;
|
|
2816
|
+
const SdtfApiAxiosParamCreator = function (configuration) {
|
|
2817
|
+
return {
|
|
2818
|
+
deleteSdtf: (sessionId_1, namespace_1, sdtfId_1, ...args_1) => __awaiter(this, [sessionId_1, namespace_1, sdtfId_1, ...args_1], void 0, function* (sessionId, namespace, sdtfId, options = {}) {
|
|
2819
|
+
(0, common_1.assertParamExists)('deleteSdtf', 'sessionId', sessionId);
|
|
2820
|
+
(0, common_1.assertParamExists)('deleteSdtf', 'namespace', namespace);
|
|
2821
|
+
(0, common_1.assertParamExists)('deleteSdtf', 'sdtfId', sdtfId);
|
|
2822
|
+
const localVarPath = `/api/v2/session/{sessionId}/sdtf/{namespace}/{sdtfId}`
|
|
2823
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
2824
|
+
.replace(`{${"namespace"}}`, encodeURIComponent(String(namespace)))
|
|
2825
|
+
.replace(`{${"sdtfId"}}`, encodeURIComponent(String(sdtfId)));
|
|
2826
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2827
|
+
let baseOptions;
|
|
2828
|
+
if (configuration) {
|
|
2829
|
+
baseOptions = configuration.baseOptions;
|
|
2830
|
+
}
|
|
2831
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2832
|
+
const localVarHeaderParameter = {};
|
|
2833
|
+
const localVarQueryParameter = {};
|
|
2834
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2835
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2836
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2837
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2838
|
+
return {
|
|
2839
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2840
|
+
options: localVarRequestOptions,
|
|
2841
|
+
};
|
|
2842
|
+
}),
|
|
2843
|
+
downloadSdtf: (sessionId_1, namespace_1, sdtfId_1, ...args_1) => __awaiter(this, [sessionId_1, namespace_1, sdtfId_1, ...args_1], void 0, function* (sessionId, namespace, sdtfId, options = {}) {
|
|
2844
|
+
(0, common_1.assertParamExists)('downloadSdtf', 'sessionId', sessionId);
|
|
2845
|
+
(0, common_1.assertParamExists)('downloadSdtf', 'namespace', namespace);
|
|
2846
|
+
(0, common_1.assertParamExists)('downloadSdtf', 'sdtfId', sdtfId);
|
|
2847
|
+
const localVarPath = `/api/v2/session/{sessionId}/sdtf/{namespace}/{sdtfId}`
|
|
2848
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
2849
|
+
.replace(`{${"namespace"}}`, encodeURIComponent(String(namespace)))
|
|
2850
|
+
.replace(`{${"sdtfId"}}`, encodeURIComponent(String(sdtfId)));
|
|
2851
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2852
|
+
let baseOptions;
|
|
2853
|
+
if (configuration) {
|
|
2854
|
+
baseOptions = configuration.baseOptions;
|
|
2855
|
+
}
|
|
2856
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2857
|
+
const localVarHeaderParameter = {};
|
|
2858
|
+
const localVarQueryParameter = {};
|
|
2859
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2860
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2861
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2862
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2863
|
+
return {
|
|
2864
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2865
|
+
options: localVarRequestOptions,
|
|
2866
|
+
};
|
|
2867
|
+
}),
|
|
2868
|
+
listSdtfs: (sessionId_1, namespace_1, offset_1, ...args_1) => __awaiter(this, [sessionId_1, namespace_1, offset_1, ...args_1], void 0, function* (sessionId, namespace, offset, options = {}) {
|
|
2869
|
+
(0, common_1.assertParamExists)('listSdtfs', 'sessionId', sessionId);
|
|
2870
|
+
(0, common_1.assertParamExists)('listSdtfs', 'namespace', namespace);
|
|
2871
|
+
const localVarPath = `/api/v2/session/{sessionId}/sdtf/{namespace}/list`
|
|
2872
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
2873
|
+
.replace(`{${"namespace"}}`, encodeURIComponent(String(namespace)));
|
|
2874
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2875
|
+
let baseOptions;
|
|
2876
|
+
if (configuration) {
|
|
2877
|
+
baseOptions = configuration.baseOptions;
|
|
2878
|
+
}
|
|
2879
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2880
|
+
const localVarHeaderParameter = {};
|
|
2881
|
+
const localVarQueryParameter = {};
|
|
2882
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2883
|
+
if (offset !== undefined) {
|
|
2884
|
+
localVarQueryParameter['offset'] = offset;
|
|
2885
|
+
}
|
|
2886
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2887
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2888
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2889
|
+
return {
|
|
2890
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2891
|
+
options: localVarRequestOptions,
|
|
2892
|
+
};
|
|
2893
|
+
}),
|
|
2894
|
+
uploadSdtf: (sessionId_1, reqSdtfDefinition_1, ...args_1) => __awaiter(this, [sessionId_1, reqSdtfDefinition_1, ...args_1], void 0, function* (sessionId, reqSdtfDefinition, options = {}) {
|
|
2895
|
+
(0, common_1.assertParamExists)('uploadSdtf', 'sessionId', sessionId);
|
|
2896
|
+
(0, common_1.assertParamExists)('uploadSdtf', 'reqSdtfDefinition', reqSdtfDefinition);
|
|
2897
|
+
const localVarPath = `/api/v2/session/{sessionId}/sdtf/upload`
|
|
2898
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
2899
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2900
|
+
let baseOptions;
|
|
2901
|
+
if (configuration) {
|
|
2902
|
+
baseOptions = configuration.baseOptions;
|
|
2903
|
+
}
|
|
2904
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2905
|
+
const localVarHeaderParameter = {};
|
|
2906
|
+
const localVarQueryParameter = {};
|
|
2907
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2908
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2909
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2910
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2911
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2912
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqSdtfDefinition, localVarRequestOptions, configuration);
|
|
2913
|
+
return {
|
|
2914
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2915
|
+
options: localVarRequestOptions,
|
|
2916
|
+
};
|
|
2917
|
+
}),
|
|
2918
|
+
};
|
|
2919
|
+
};
|
|
2920
|
+
exports.SdtfApiAxiosParamCreator = SdtfApiAxiosParamCreator;
|
|
2921
|
+
const SdtfApiFp = function (configuration) {
|
|
2922
|
+
const localVarAxiosParamCreator = (0, exports.SdtfApiAxiosParamCreator)(configuration);
|
|
2923
|
+
return {
|
|
2924
|
+
deleteSdtf(sessionId, namespace, sdtfId, options) {
|
|
2925
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2926
|
+
var _a, _b, _c;
|
|
2927
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSdtf(sessionId, namespace, sdtfId, options);
|
|
2928
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2929
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SdtfApi.deleteSdtf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2930
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2931
|
+
});
|
|
2932
|
+
},
|
|
2933
|
+
downloadSdtf(sessionId, namespace, sdtfId, options) {
|
|
2934
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2935
|
+
var _a, _b, _c;
|
|
2936
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadSdtf(sessionId, namespace, sdtfId, options);
|
|
2937
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2938
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SdtfApi.downloadSdtf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2939
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2940
|
+
});
|
|
2941
|
+
},
|
|
2942
|
+
listSdtfs(sessionId, namespace, offset, options) {
|
|
2943
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2944
|
+
var _a, _b, _c;
|
|
2945
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSdtfs(sessionId, namespace, offset, options);
|
|
2946
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2947
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SdtfApi.listSdtfs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2948
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2949
|
+
});
|
|
2950
|
+
},
|
|
2951
|
+
uploadSdtf(sessionId, reqSdtfDefinition, options) {
|
|
2952
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2953
|
+
var _a, _b, _c;
|
|
2954
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadSdtf(sessionId, reqSdtfDefinition, options);
|
|
2955
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2956
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SdtfApi.uploadSdtf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2957
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2958
|
+
});
|
|
2959
|
+
},
|
|
2960
|
+
};
|
|
2961
|
+
};
|
|
2962
|
+
exports.SdtfApiFp = SdtfApiFp;
|
|
2963
|
+
const SdtfApiFactory = function (configuration, basePath, axios) {
|
|
2964
|
+
const localVarFp = (0, exports.SdtfApiFp)(configuration);
|
|
2965
|
+
return {
|
|
2966
|
+
deleteSdtf(sessionId, namespace, sdtfId, options) {
|
|
2967
|
+
return localVarFp.deleteSdtf(sessionId, namespace, sdtfId, options).then((request) => request(axios, basePath));
|
|
2968
|
+
},
|
|
2969
|
+
downloadSdtf(sessionId, namespace, sdtfId, options) {
|
|
2970
|
+
return localVarFp.downloadSdtf(sessionId, namespace, sdtfId, options).then((request) => request(axios, basePath));
|
|
2971
|
+
},
|
|
2972
|
+
listSdtfs(sessionId, namespace, offset, options) {
|
|
2973
|
+
return localVarFp.listSdtfs(sessionId, namespace, offset, options).then((request) => request(axios, basePath));
|
|
2974
|
+
},
|
|
2975
|
+
uploadSdtf(sessionId, reqSdtfDefinition, options) {
|
|
2976
|
+
return localVarFp.uploadSdtf(sessionId, reqSdtfDefinition, options).then((request) => request(axios, basePath));
|
|
2977
|
+
},
|
|
2978
|
+
};
|
|
2979
|
+
};
|
|
2980
|
+
exports.SdtfApiFactory = SdtfApiFactory;
|
|
2981
|
+
class SdtfApi extends base_1.BaseAPI {
|
|
2982
|
+
deleteSdtf(sessionId, namespace, sdtfId, options) {
|
|
2983
|
+
return (0, exports.SdtfApiFp)(this.configuration).deleteSdtf(sessionId, namespace, sdtfId, options).then((request) => request(this.axios, this.basePath));
|
|
2984
|
+
}
|
|
2985
|
+
downloadSdtf(sessionId, namespace, sdtfId, options) {
|
|
2986
|
+
return (0, exports.SdtfApiFp)(this.configuration).downloadSdtf(sessionId, namespace, sdtfId, options).then((request) => request(this.axios, this.basePath));
|
|
2987
|
+
}
|
|
2988
|
+
listSdtfs(sessionId, namespace, offset, options) {
|
|
2989
|
+
return (0, exports.SdtfApiFp)(this.configuration).listSdtfs(sessionId, namespace, offset, options).then((request) => request(this.axios, this.basePath));
|
|
2990
|
+
}
|
|
2991
|
+
uploadSdtf(sessionId, reqSdtfDefinition, options) {
|
|
2992
|
+
return (0, exports.SdtfApiFp)(this.configuration).uploadSdtf(sessionId, reqSdtfDefinition, options).then((request) => request(this.axios, this.basePath));
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
exports.SdtfApi = SdtfApi;
|
|
2996
|
+
const SessionApiAxiosParamCreator = function (configuration) {
|
|
2997
|
+
return {
|
|
2998
|
+
closeSession: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
2999
|
+
(0, common_1.assertParamExists)('closeSession', 'sessionId', sessionId);
|
|
3000
|
+
const localVarPath = `/api/v2/session/{sessionId}/close`
|
|
3001
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
3002
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3003
|
+
let baseOptions;
|
|
3004
|
+
if (configuration) {
|
|
3005
|
+
baseOptions = configuration.baseOptions;
|
|
3006
|
+
}
|
|
3007
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3008
|
+
const localVarHeaderParameter = {};
|
|
3009
|
+
const localVarQueryParameter = {};
|
|
3010
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3011
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3012
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3013
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3014
|
+
return {
|
|
3015
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3016
|
+
options: localVarRequestOptions,
|
|
3017
|
+
};
|
|
3018
|
+
}),
|
|
3019
|
+
createSessionByModel: (modelId_1, modelStateId_1, strictValidation_1, reqCustomizationOrExport_1, ...args_1) => __awaiter(this, [modelId_1, modelStateId_1, strictValidation_1, reqCustomizationOrExport_1, ...args_1], void 0, function* (modelId, modelStateId, strictValidation, reqCustomizationOrExport, options = {}) {
|
|
3020
|
+
(0, common_1.assertParamExists)('createSessionByModel', 'modelId', modelId);
|
|
3021
|
+
const localVarPath = `/api/v2/model/{modelId}/session`
|
|
3022
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
3023
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3024
|
+
let baseOptions;
|
|
3025
|
+
if (configuration) {
|
|
3026
|
+
baseOptions = configuration.baseOptions;
|
|
3027
|
+
}
|
|
3028
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3029
|
+
const localVarHeaderParameter = {};
|
|
3030
|
+
const localVarQueryParameter = {};
|
|
3031
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3032
|
+
if (modelStateId !== undefined) {
|
|
3033
|
+
localVarQueryParameter['modelStateId'] = modelStateId;
|
|
3034
|
+
}
|
|
3035
|
+
if (strictValidation !== undefined) {
|
|
3036
|
+
localVarQueryParameter['strictValidation'] = strictValidation;
|
|
3037
|
+
}
|
|
3038
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3039
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3040
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3041
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3042
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCustomizationOrExport, localVarRequestOptions, configuration);
|
|
3043
|
+
return {
|
|
3044
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3045
|
+
options: localVarRequestOptions,
|
|
3046
|
+
};
|
|
3047
|
+
}),
|
|
3048
|
+
createSessionByTicket: (ticketId_1, modelStateId_1, strictValidation_1, reqCustomizationOrExport_1, ...args_1) => __awaiter(this, [ticketId_1, modelStateId_1, strictValidation_1, reqCustomizationOrExport_1, ...args_1], void 0, function* (ticketId, modelStateId, strictValidation, reqCustomizationOrExport, options = {}) {
|
|
3049
|
+
(0, common_1.assertParamExists)('createSessionByTicket', 'ticketId', ticketId);
|
|
3050
|
+
const localVarPath = `/api/v2/ticket/{ticketId}`
|
|
3051
|
+
.replace(`{${"ticketId"}}`, encodeURIComponent(String(ticketId)));
|
|
3052
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3053
|
+
let baseOptions;
|
|
3054
|
+
if (configuration) {
|
|
3055
|
+
baseOptions = configuration.baseOptions;
|
|
3056
|
+
}
|
|
3057
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3058
|
+
const localVarHeaderParameter = {};
|
|
3059
|
+
const localVarQueryParameter = {};
|
|
3060
|
+
if (modelStateId !== undefined) {
|
|
3061
|
+
localVarQueryParameter['modelStateId'] = modelStateId;
|
|
3062
|
+
}
|
|
3063
|
+
if (strictValidation !== undefined) {
|
|
3064
|
+
localVarQueryParameter['strictValidation'] = strictValidation;
|
|
3065
|
+
}
|
|
3066
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3067
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3068
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3069
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3070
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCustomizationOrExport, localVarRequestOptions, configuration);
|
|
3071
|
+
return {
|
|
3072
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3073
|
+
options: localVarRequestOptions,
|
|
3074
|
+
};
|
|
3075
|
+
}),
|
|
3076
|
+
createTicket: (modelId_1, reqTicket_1, ...args_1) => __awaiter(this, [modelId_1, reqTicket_1, ...args_1], void 0, function* (modelId, reqTicket, options = {}) {
|
|
3077
|
+
(0, common_1.assertParamExists)('createTicket', 'modelId', modelId);
|
|
3078
|
+
(0, common_1.assertParamExists)('createTicket', 'reqTicket', reqTicket);
|
|
3079
|
+
const localVarPath = `/api/v2/model/{modelId}/ticket`
|
|
3080
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
3081
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3082
|
+
let baseOptions;
|
|
3083
|
+
if (configuration) {
|
|
3084
|
+
baseOptions = configuration.baseOptions;
|
|
3085
|
+
}
|
|
3086
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3087
|
+
const localVarHeaderParameter = {};
|
|
3088
|
+
const localVarQueryParameter = {};
|
|
3089
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3090
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3091
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3092
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3093
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3094
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqTicket, localVarRequestOptions, configuration);
|
|
3095
|
+
return {
|
|
3096
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3097
|
+
options: localVarRequestOptions,
|
|
3098
|
+
};
|
|
3099
|
+
}),
|
|
3100
|
+
decryptTicket: (ticketEncrypted_1, ...args_1) => __awaiter(this, [ticketEncrypted_1, ...args_1], void 0, function* (ticketEncrypted, options = {}) {
|
|
3101
|
+
(0, common_1.assertParamExists)('decryptTicket', 'ticketEncrypted', ticketEncrypted);
|
|
3102
|
+
const localVarPath = `/api/v2/ticket/{ticketEncrypted}`
|
|
3103
|
+
.replace(`{${"ticketEncrypted"}}`, encodeURIComponent(String(ticketEncrypted)));
|
|
3104
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3105
|
+
let baseOptions;
|
|
3106
|
+
if (configuration) {
|
|
3107
|
+
baseOptions = configuration.baseOptions;
|
|
3108
|
+
}
|
|
3109
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3110
|
+
const localVarHeaderParameter = {};
|
|
3111
|
+
const localVarQueryParameter = {};
|
|
3112
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3113
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3115
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3116
|
+
return {
|
|
3117
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3118
|
+
options: localVarRequestOptions,
|
|
3119
|
+
};
|
|
3120
|
+
}),
|
|
3121
|
+
getSessionDefaults: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
3122
|
+
(0, common_1.assertParamExists)('getSessionDefaults', 'sessionId', sessionId);
|
|
3123
|
+
const localVarPath = `/api/v2/session/{sessionId}/default`
|
|
3124
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
3125
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3126
|
+
let baseOptions;
|
|
3127
|
+
if (configuration) {
|
|
3128
|
+
baseOptions = configuration.baseOptions;
|
|
3129
|
+
}
|
|
3130
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3131
|
+
const localVarHeaderParameter = {};
|
|
3132
|
+
const localVarQueryParameter = {};
|
|
3133
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3134
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3136
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3137
|
+
return {
|
|
3138
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3139
|
+
options: localVarRequestOptions,
|
|
3140
|
+
};
|
|
3141
|
+
}),
|
|
3142
|
+
};
|
|
3143
|
+
};
|
|
3144
|
+
exports.SessionApiAxiosParamCreator = SessionApiAxiosParamCreator;
|
|
3145
|
+
const SessionApiFp = function (configuration) {
|
|
3146
|
+
const localVarAxiosParamCreator = (0, exports.SessionApiAxiosParamCreator)(configuration);
|
|
3147
|
+
return {
|
|
3148
|
+
closeSession(sessionId, options) {
|
|
3149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3150
|
+
var _a, _b, _c;
|
|
3151
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.closeSession(sessionId, options);
|
|
3152
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3153
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.closeSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3154
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3155
|
+
});
|
|
3156
|
+
},
|
|
3157
|
+
createSessionByModel(modelId, modelStateId, strictValidation, reqCustomizationOrExport, options) {
|
|
3158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3159
|
+
var _a, _b, _c;
|
|
3160
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSessionByModel(modelId, modelStateId, strictValidation, reqCustomizationOrExport, options);
|
|
3161
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3162
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.createSessionByModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3163
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3164
|
+
});
|
|
3165
|
+
},
|
|
3166
|
+
createSessionByTicket(ticketId, modelStateId, strictValidation, reqCustomizationOrExport, options) {
|
|
3167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3168
|
+
var _a, _b, _c;
|
|
3169
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSessionByTicket(ticketId, modelStateId, strictValidation, reqCustomizationOrExport, options);
|
|
3170
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3171
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.createSessionByTicket']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3172
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3173
|
+
});
|
|
3174
|
+
},
|
|
3175
|
+
createTicket(modelId, reqTicket, options) {
|
|
3176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3177
|
+
var _a, _b, _c;
|
|
3178
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createTicket(modelId, reqTicket, options);
|
|
3179
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3180
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.createTicket']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3181
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3182
|
+
});
|
|
3183
|
+
},
|
|
3184
|
+
decryptTicket(ticketEncrypted, options) {
|
|
3185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3186
|
+
var _a, _b, _c;
|
|
3187
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.decryptTicket(ticketEncrypted, options);
|
|
3188
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3189
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.decryptTicket']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3190
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3191
|
+
});
|
|
3192
|
+
},
|
|
3193
|
+
getSessionDefaults(sessionId, options) {
|
|
3194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3195
|
+
var _a, _b, _c;
|
|
3196
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSessionDefaults(sessionId, options);
|
|
3197
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3198
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.getSessionDefaults']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3199
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3200
|
+
});
|
|
3201
|
+
},
|
|
3202
|
+
};
|
|
3203
|
+
};
|
|
3204
|
+
exports.SessionApiFp = SessionApiFp;
|
|
3205
|
+
const SessionApiFactory = function (configuration, basePath, axios) {
|
|
3206
|
+
const localVarFp = (0, exports.SessionApiFp)(configuration);
|
|
3207
|
+
return {
|
|
3208
|
+
closeSession(sessionId, options) {
|
|
3209
|
+
return localVarFp.closeSession(sessionId, options).then((request) => request(axios, basePath));
|
|
3210
|
+
},
|
|
3211
|
+
createSessionByModel(modelId, modelStateId, strictValidation, reqCustomizationOrExport, options) {
|
|
3212
|
+
return localVarFp.createSessionByModel(modelId, modelStateId, strictValidation, reqCustomizationOrExport, options).then((request) => request(axios, basePath));
|
|
3213
|
+
},
|
|
3214
|
+
createSessionByTicket(ticketId, modelStateId, strictValidation, reqCustomizationOrExport, options) {
|
|
3215
|
+
return localVarFp.createSessionByTicket(ticketId, modelStateId, strictValidation, reqCustomizationOrExport, options).then((request) => request(axios, basePath));
|
|
3216
|
+
},
|
|
3217
|
+
createTicket(modelId, reqTicket, options) {
|
|
3218
|
+
return localVarFp.createTicket(modelId, reqTicket, options).then((request) => request(axios, basePath));
|
|
3219
|
+
},
|
|
3220
|
+
decryptTicket(ticketEncrypted, options) {
|
|
3221
|
+
return localVarFp.decryptTicket(ticketEncrypted, options).then((request) => request(axios, basePath));
|
|
3222
|
+
},
|
|
3223
|
+
getSessionDefaults(sessionId, options) {
|
|
3224
|
+
return localVarFp.getSessionDefaults(sessionId, options).then((request) => request(axios, basePath));
|
|
3225
|
+
},
|
|
3226
|
+
};
|
|
3227
|
+
};
|
|
3228
|
+
exports.SessionApiFactory = SessionApiFactory;
|
|
3229
|
+
class SessionApi extends base_1.BaseAPI {
|
|
3230
|
+
closeSession(sessionId, options) {
|
|
3231
|
+
return (0, exports.SessionApiFp)(this.configuration).closeSession(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3232
|
+
}
|
|
3233
|
+
createSessionByModel(modelId, modelStateId, strictValidation, reqCustomizationOrExport, options) {
|
|
3234
|
+
return (0, exports.SessionApiFp)(this.configuration).createSessionByModel(modelId, modelStateId, strictValidation, reqCustomizationOrExport, options).then((request) => request(this.axios, this.basePath));
|
|
3235
|
+
}
|
|
3236
|
+
createSessionByTicket(ticketId, modelStateId, strictValidation, reqCustomizationOrExport, options) {
|
|
3237
|
+
return (0, exports.SessionApiFp)(this.configuration).createSessionByTicket(ticketId, modelStateId, strictValidation, reqCustomizationOrExport, options).then((request) => request(this.axios, this.basePath));
|
|
3238
|
+
}
|
|
3239
|
+
createTicket(modelId, reqTicket, options) {
|
|
3240
|
+
return (0, exports.SessionApiFp)(this.configuration).createTicket(modelId, reqTicket, options).then((request) => request(this.axios, this.basePath));
|
|
3241
|
+
}
|
|
3242
|
+
decryptTicket(ticketEncrypted, options) {
|
|
3243
|
+
return (0, exports.SessionApiFp)(this.configuration).decryptTicket(ticketEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
3244
|
+
}
|
|
3245
|
+
getSessionDefaults(sessionId, options) {
|
|
3246
|
+
return (0, exports.SessionApiFp)(this.configuration).getSessionDefaults(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3247
|
+
}
|
|
3248
|
+
}
|
|
3249
|
+
exports.SessionApi = SessionApi;
|
|
3250
|
+
const SystemApiAxiosParamCreator = function (configuration) {
|
|
3251
|
+
return {
|
|
3252
|
+
createSignedUrl: (endpoint_1, encodedUri_1, ...args_1) => __awaiter(this, [endpoint_1, encodedUri_1, ...args_1], void 0, function* (endpoint, encodedUri, options = {}) {
|
|
3253
|
+
(0, common_1.assertParamExists)('createSignedUrl', 'endpoint', endpoint);
|
|
3254
|
+
(0, common_1.assertParamExists)('createSignedUrl', 'encodedUri', encodedUri);
|
|
3255
|
+
const localVarPath = `/api/v2/system/sign/cdn/{endpoint}/{encodedUri}`
|
|
3256
|
+
.replace(`{${"endpoint"}}`, encodeURIComponent(String(endpoint)))
|
|
3257
|
+
.replace(`{${"encodedUri"}}`, encodeURIComponent(String(encodedUri)));
|
|
3258
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3259
|
+
let baseOptions;
|
|
3260
|
+
if (configuration) {
|
|
3261
|
+
baseOptions = configuration.baseOptions;
|
|
3262
|
+
}
|
|
3263
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3264
|
+
const localVarHeaderParameter = {};
|
|
3265
|
+
const localVarQueryParameter = {};
|
|
3266
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3267
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3268
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3269
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3270
|
+
return {
|
|
3271
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3272
|
+
options: localVarRequestOptions,
|
|
3273
|
+
};
|
|
3274
|
+
}),
|
|
3275
|
+
eraseModel: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
3276
|
+
(0, common_1.assertParamExists)('eraseModel', 'modelId', modelId);
|
|
3277
|
+
const localVarPath = `/api/v2/system/model/{modelId}`
|
|
3278
|
+
.replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
|
|
3279
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3280
|
+
let baseOptions;
|
|
3281
|
+
if (configuration) {
|
|
3282
|
+
baseOptions = configuration.baseOptions;
|
|
3283
|
+
}
|
|
3284
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3285
|
+
const localVarHeaderParameter = {};
|
|
3286
|
+
const localVarQueryParameter = {};
|
|
3287
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3288
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3290
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3291
|
+
return {
|
|
3292
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3293
|
+
options: localVarRequestOptions,
|
|
3294
|
+
};
|
|
3295
|
+
}),
|
|
3296
|
+
getMinionsInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3297
|
+
const localVarPath = `/api/v2/system/minions/info`;
|
|
3298
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3299
|
+
let baseOptions;
|
|
3300
|
+
if (configuration) {
|
|
3301
|
+
baseOptions = configuration.baseOptions;
|
|
3302
|
+
}
|
|
3303
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3304
|
+
const localVarHeaderParameter = {};
|
|
3305
|
+
const localVarQueryParameter = {};
|
|
3306
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3307
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
3308
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3309
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3310
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3311
|
+
return {
|
|
3312
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3313
|
+
options: localVarRequestOptions,
|
|
3314
|
+
};
|
|
3315
|
+
}),
|
|
3316
|
+
getWorkersInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3317
|
+
const localVarPath = `/api/v2/system/workers/info`;
|
|
3318
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3319
|
+
let baseOptions;
|
|
3320
|
+
if (configuration) {
|
|
3321
|
+
baseOptions = configuration.baseOptions;
|
|
3322
|
+
}
|
|
3323
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3324
|
+
const localVarHeaderParameter = {};
|
|
3325
|
+
const localVarQueryParameter = {};
|
|
3326
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3327
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
3328
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3330
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3331
|
+
return {
|
|
3332
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3333
|
+
options: localVarRequestOptions,
|
|
3334
|
+
};
|
|
3335
|
+
}),
|
|
3336
|
+
};
|
|
3337
|
+
};
|
|
3338
|
+
exports.SystemApiAxiosParamCreator = SystemApiAxiosParamCreator;
|
|
3339
|
+
const SystemApiFp = function (configuration) {
|
|
3340
|
+
const localVarAxiosParamCreator = (0, exports.SystemApiAxiosParamCreator)(configuration);
|
|
3341
|
+
return {
|
|
3342
|
+
createSignedUrl(endpoint, encodedUri, options) {
|
|
3343
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3344
|
+
var _a, _b, _c;
|
|
3345
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSignedUrl(endpoint, encodedUri, options);
|
|
3346
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3347
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SystemApi.createSignedUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3348
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3349
|
+
});
|
|
3350
|
+
},
|
|
3351
|
+
eraseModel(modelId, options) {
|
|
3352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3353
|
+
var _a, _b, _c;
|
|
3354
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.eraseModel(modelId, options);
|
|
3355
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3356
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SystemApi.eraseModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3357
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3358
|
+
});
|
|
3359
|
+
},
|
|
3360
|
+
getMinionsInfo(options) {
|
|
3361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3362
|
+
var _a, _b, _c;
|
|
3363
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMinionsInfo(options);
|
|
3364
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3365
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SystemApi.getMinionsInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3366
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3367
|
+
});
|
|
3368
|
+
},
|
|
3369
|
+
getWorkersInfo(options) {
|
|
3370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3371
|
+
var _a, _b, _c;
|
|
3372
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWorkersInfo(options);
|
|
3373
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3374
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SystemApi.getWorkersInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3375
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3376
|
+
});
|
|
3377
|
+
},
|
|
3378
|
+
};
|
|
3379
|
+
};
|
|
3380
|
+
exports.SystemApiFp = SystemApiFp;
|
|
3381
|
+
const SystemApiFactory = function (configuration, basePath, axios) {
|
|
3382
|
+
const localVarFp = (0, exports.SystemApiFp)(configuration);
|
|
3383
|
+
return {
|
|
3384
|
+
createSignedUrl(endpoint, encodedUri, options) {
|
|
3385
|
+
return localVarFp.createSignedUrl(endpoint, encodedUri, options).then((request) => request(axios, basePath));
|
|
3386
|
+
},
|
|
3387
|
+
eraseModel(modelId, options) {
|
|
3388
|
+
return localVarFp.eraseModel(modelId, options).then((request) => request(axios, basePath));
|
|
3389
|
+
},
|
|
3390
|
+
getMinionsInfo(options) {
|
|
3391
|
+
return localVarFp.getMinionsInfo(options).then((request) => request(axios, basePath));
|
|
3392
|
+
},
|
|
3393
|
+
getWorkersInfo(options) {
|
|
3394
|
+
return localVarFp.getWorkersInfo(options).then((request) => request(axios, basePath));
|
|
3395
|
+
},
|
|
3396
|
+
};
|
|
3397
|
+
};
|
|
3398
|
+
exports.SystemApiFactory = SystemApiFactory;
|
|
3399
|
+
class SystemApi extends base_1.BaseAPI {
|
|
3400
|
+
createSignedUrl(endpoint, encodedUri, options) {
|
|
3401
|
+
return (0, exports.SystemApiFp)(this.configuration).createSignedUrl(endpoint, encodedUri, options).then((request) => request(this.axios, this.basePath));
|
|
3402
|
+
}
|
|
3403
|
+
eraseModel(modelId, options) {
|
|
3404
|
+
return (0, exports.SystemApiFp)(this.configuration).eraseModel(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
3405
|
+
}
|
|
3406
|
+
getMinionsInfo(options) {
|
|
3407
|
+
return (0, exports.SystemApiFp)(this.configuration).getMinionsInfo(options).then((request) => request(this.axios, this.basePath));
|
|
3408
|
+
}
|
|
3409
|
+
getWorkersInfo(options) {
|
|
3410
|
+
return (0, exports.SystemApiFp)(this.configuration).getWorkersInfo(options).then((request) => request(this.axios, this.basePath));
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
exports.SystemApi = SystemApi;
|
|
3414
|
+
const TextureApiAxiosParamCreator = function (configuration) {
|
|
3415
|
+
return {
|
|
3416
|
+
listTextures: (sessionId_1, offset_1, ...args_1) => __awaiter(this, [sessionId_1, offset_1, ...args_1], void 0, function* (sessionId, offset, options = {}) {
|
|
3417
|
+
(0, common_1.assertParamExists)('listTextures', 'sessionId', sessionId);
|
|
3418
|
+
const localVarPath = `/api/v2/session/{sessionId}/texture/list`
|
|
3419
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
3420
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3421
|
+
let baseOptions;
|
|
3422
|
+
if (configuration) {
|
|
3423
|
+
baseOptions = configuration.baseOptions;
|
|
3424
|
+
}
|
|
3425
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3426
|
+
const localVarHeaderParameter = {};
|
|
3427
|
+
const localVarQueryParameter = {};
|
|
3428
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3429
|
+
if (offset !== undefined) {
|
|
3430
|
+
localVarQueryParameter['offset'] = offset;
|
|
3431
|
+
}
|
|
3432
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3433
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3434
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3435
|
+
return {
|
|
3436
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3437
|
+
options: localVarRequestOptions,
|
|
3438
|
+
};
|
|
3439
|
+
}),
|
|
3440
|
+
};
|
|
3441
|
+
};
|
|
3442
|
+
exports.TextureApiAxiosParamCreator = TextureApiAxiosParamCreator;
|
|
3443
|
+
const TextureApiFp = function (configuration) {
|
|
3444
|
+
const localVarAxiosParamCreator = (0, exports.TextureApiAxiosParamCreator)(configuration);
|
|
3445
|
+
return {
|
|
3446
|
+
listTextures(sessionId, offset, options) {
|
|
3447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3448
|
+
var _a, _b, _c;
|
|
3449
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTextures(sessionId, offset, options);
|
|
3450
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3451
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TextureApi.listTextures']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3452
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3453
|
+
});
|
|
3454
|
+
},
|
|
3455
|
+
};
|
|
3456
|
+
};
|
|
3457
|
+
exports.TextureApiFp = TextureApiFp;
|
|
3458
|
+
const TextureApiFactory = function (configuration, basePath, axios) {
|
|
3459
|
+
const localVarFp = (0, exports.TextureApiFp)(configuration);
|
|
3460
|
+
return {
|
|
3461
|
+
listTextures(sessionId, offset, options) {
|
|
3462
|
+
return localVarFp.listTextures(sessionId, offset, options).then((request) => request(axios, basePath));
|
|
3463
|
+
},
|
|
3464
|
+
};
|
|
3465
|
+
};
|
|
3466
|
+
exports.TextureApiFactory = TextureApiFactory;
|
|
3467
|
+
class TextureApi extends base_1.BaseAPI {
|
|
3468
|
+
listTextures(sessionId, offset, options) {
|
|
3469
|
+
return (0, exports.TextureApiFp)(this.configuration).listTextures(sessionId, offset, options).then((request) => request(this.axios, this.basePath));
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
exports.TextureApi = TextureApi;
|
|
3473
|
+
//# sourceMappingURL=api.js.map
|