@shapediver/sdk.geometry-api-sdk-v2 3.7.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/UtilsApi.d.ts +19 -29
- package/dist/UtilsApi.d.ts.map +1 -1
- package/dist/UtilsApi.js +140 -135
- package/dist/UtilsApi.js.map +1 -1
- package/dist/base.d.ts +2 -5
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +30 -36
- package/dist/base.js.map +1 -1
- package/dist/client/apis/AnalyticsApi.d.ts +38 -0
- package/dist/client/apis/AnalyticsApi.d.ts.map +1 -0
- package/dist/client/apis/AnalyticsApi.js +245 -0
- package/dist/client/apis/AnalyticsApi.js.map +1 -0
- package/dist/client/apis/ArSceneApi.d.ts +23 -0
- package/dist/client/apis/ArSceneApi.d.ts.map +1 -0
- package/dist/client/apis/ArSceneApi.js +140 -0
- package/dist/client/apis/ArSceneApi.js.map +1 -0
- package/dist/client/apis/AssetsApi.d.ts +54 -0
- package/dist/client/apis/AssetsApi.d.ts.map +1 -0
- package/dist/client/apis/AssetsApi.js +329 -0
- package/dist/client/apis/AssetsApi.js.map +1 -0
- package/dist/client/apis/AuthApi.d.ts +8 -0
- package/dist/client/apis/AuthApi.d.ts.map +1 -0
- package/dist/client/apis/AuthApi.js +77 -0
- package/dist/client/apis/AuthApi.js.map +1 -0
- package/dist/client/apis/AuthGroupApi.d.ts +12 -0
- package/dist/client/apis/AuthGroupApi.d.ts.map +1 -0
- package/dist/client/apis/AuthGroupApi.js +89 -0
- package/dist/client/apis/AuthGroupApi.js.map +1 -0
- package/dist/client/apis/ExportApi.d.ts +38 -0
- package/dist/client/apis/ExportApi.d.ts.map +1 -0
- package/dist/client/apis/ExportApi.js +230 -0
- package/dist/client/apis/ExportApi.js.map +1 -0
- package/dist/client/apis/FileApi.d.ts +45 -0
- package/dist/client/apis/FileApi.d.ts.map +1 -0
- package/dist/client/apis/FileApi.js +271 -0
- package/dist/client/apis/FileApi.js.map +1 -0
- package/dist/client/apis/GltfApi.d.ts +14 -0
- package/dist/client/apis/GltfApi.d.ts.map +1 -0
- package/dist/client/apis/GltfApi.js +96 -0
- package/dist/client/apis/GltfApi.js.map +1 -0
- package/dist/client/apis/LogApi.d.ts +13 -0
- package/dist/client/apis/LogApi.d.ts.map +1 -0
- package/dist/client/apis/LogApi.js +93 -0
- package/dist/client/apis/LogApi.js.map +1 -0
- package/dist/client/apis/ModelApi.d.ts +129 -0
- package/dist/client/apis/ModelApi.d.ts.map +1 -0
- package/dist/client/apis/ModelApi.js +762 -0
- package/dist/client/apis/ModelApi.js.map +1 -0
- package/dist/client/apis/ModelStateApi.d.ts +57 -0
- package/dist/client/apis/ModelStateApi.d.ts.map +1 -0
- package/dist/client/apis/ModelStateApi.js +328 -0
- package/dist/client/apis/ModelStateApi.js.map +1 -0
- package/dist/client/apis/OutputApi.d.ts +38 -0
- package/dist/client/apis/OutputApi.d.ts.map +1 -0
- package/dist/client/apis/OutputApi.js +230 -0
- package/dist/client/apis/OutputApi.js.map +1 -0
- package/dist/client/apis/ScriptApi.d.ts +17 -0
- package/dist/client/apis/ScriptApi.d.ts.map +1 -0
- package/dist/client/apis/ScriptApi.js +127 -0
- package/dist/client/apis/ScriptApi.js.map +1 -0
- package/dist/client/apis/SdtfApi.d.ts +37 -0
- package/dist/client/apis/SdtfApi.d.ts.map +1 -0
- package/dist/client/apis/SdtfApi.js +227 -0
- package/dist/client/apis/SdtfApi.js.map +1 -0
- package/dist/client/apis/SessionApi.d.ts +51 -0
- package/dist/client/apis/SessionApi.d.ts.map +1 -0
- package/dist/client/apis/SessionApi.js +300 -0
- package/dist/client/apis/SessionApi.js.map +1 -0
- package/dist/client/apis/SystemApi.d.ts +28 -0
- package/dist/client/apis/SystemApi.d.ts.map +1 -0
- package/dist/client/apis/SystemApi.js +235 -0
- package/dist/client/apis/SystemApi.js.map +1 -0
- package/dist/client/apis/TextureApi.d.ts +13 -0
- package/dist/client/apis/TextureApi.d.ts.map +1 -0
- package/dist/client/apis/TextureApi.js +91 -0
- package/dist/client/apis/TextureApi.js.map +1 -0
- package/dist/client/apis/index.d.ts +18 -0
- package/dist/client/apis/index.d.ts.map +1 -0
- package/dist/client/apis/index.js +34 -0
- package/dist/client/apis/index.js.map +1 -0
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/models/index.d.ts +1671 -0
- package/dist/client/models/index.d.ts.map +1 -0
- package/dist/client/models/index.js +239 -0
- package/dist/client/models/index.js.map +1 -0
- package/dist/client/runtime.d.ts +154 -0
- package/dist/client/runtime.d.ts.map +1 -0
- package/dist/client/runtime.js +323 -0
- package/dist/client/runtime.js.map +1 -0
- package/dist/configuration.d.ts +2 -7
- package/dist/configuration.d.ts.map +1 -1
- package/dist/configuration.js +21 -16
- package/dist/configuration.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/utils.d.ts +2 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +16 -13
- package/dist/utils.js.map +1 -1
- package/package.json +3 -9
- package/src/UtilsApi.ts +265 -318
- package/src/base.ts +48 -46
- package/src/client/apis/AnalyticsApi.ts +347 -0
- package/src/client/apis/ArSceneApi.ts +172 -0
- package/src/client/apis/AssetsApi.ts +474 -0
- package/src/client/apis/AuthApi.ts +63 -0
- package/src/client/apis/AuthGroupApi.ts +89 -0
- package/src/client/apis/ExportApi.ts +332 -0
- package/src/client/apis/FileApi.ts +401 -0
- package/src/client/apis/GltfApi.ts +101 -0
- package/src/client/apis/LogApi.ts +96 -0
- package/src/client/apis/ModelApi.ts +1206 -0
- package/src/client/apis/ModelStateApi.ts +479 -0
- package/src/client/apis/OutputApi.ts +333 -0
- package/src/client/apis/ScriptApi.ts +142 -0
- package/src/client/apis/SdtfApi.ts +327 -0
- package/src/client/apis/SessionApi.ts +435 -0
- package/src/client/apis/SystemApi.ts +301 -0
- package/src/client/apis/TextureApi.ts +91 -0
- package/src/client/apis/index.ts +19 -0
- package/src/client/index.ts +3 -16
- package/src/client/models/index.ts +7367 -0
- package/src/client/runtime.ts +442 -0
- package/src/configuration.ts +31 -38
- package/src/error.ts +2 -2
- package/src/index.ts +2 -1
- package/src/utils.ts +53 -25
- package/dist/client/api.d.ts +0 -2111
- package/dist/client/api.d.ts.map +0 -1
- package/dist/client/api.js +0 -3576
- package/dist/client/api.js.map +0 -1
- package/dist/client/base.d.ts +0 -32
- package/dist/client/base.d.ts.map +0 -1
- package/dist/client/base.js +0 -37
- package/dist/client/base.js.map +0 -1
- package/dist/client/common.d.ts +0 -15
- package/dist/client/common.d.ts.map +0 -1
- package/dist/client/common.js +0 -117
- package/dist/client/common.js.map +0 -1
- package/dist/client/configuration.d.ts +0 -37
- package/dist/client/configuration.d.ts.map +0 -1
- package/dist/client/configuration.js +0 -23
- package/dist/client/configuration.js.map +0 -1
- package/src/client/api.ts +0 -11052
- package/src/client/base.ts +0 -62
- package/src/client/common.ts +0 -127
- package/src/client/configuration.ts +0 -121
|
@@ -0,0 +1,1671 @@
|
|
|
1
|
+
export interface CommmonsParameterAsset {
|
|
2
|
+
id: string;
|
|
3
|
+
chunk?: CommonsParameterChunk;
|
|
4
|
+
}
|
|
5
|
+
export type CommonsBasicParameter = boolean | number | string;
|
|
6
|
+
export declare const CommonsComputationStatus: {
|
|
7
|
+
readonly SUCCESS: "success";
|
|
8
|
+
readonly TIMEOUT: "timeout";
|
|
9
|
+
readonly CHECK_CONFIRMED: "checkconfirmed";
|
|
10
|
+
readonly CHECK_DENIED: "checkdenied";
|
|
11
|
+
readonly CHECK_PENDING: "checkpending";
|
|
12
|
+
readonly MAX_COMBINED_ASSET_SIZE_EXCEEDED: "maxcombinedassetsizeexceeded";
|
|
13
|
+
readonly MAX_DB_SIZE_PER_OUTPUT_EXCEEDED: "maxdbsizeperoutputexceeded";
|
|
14
|
+
readonly MAX_PARTS_PER_OUTPUT_EXCEEDED: "maxpartsperoutputexceeded";
|
|
15
|
+
readonly MAX_ASSET_PARTS_PER_OUTPUT_EXCEEDED: "maxassetpartsperoutputexceeded";
|
|
16
|
+
readonly MAX_TRANSFORMATIONS_PER_OUTPUT_EXCEEDED: "maxtransformationsperoutputexceeded";
|
|
17
|
+
readonly MAX_PARTS_EXCEEDED: "maxpartsexceeded";
|
|
18
|
+
readonly MAX_ASSET_PARTS_EXCEEDED: "maxassetpartsexceeded";
|
|
19
|
+
readonly RECOVERABLE_ERROR: "recoverableerror";
|
|
20
|
+
readonly UNRECOVERABLE_ERROR: "unrecoverableerror";
|
|
21
|
+
readonly NO_OUTPUT_DATA_FOR_DEFAULT_PARAMETER_VALUES: "nooutputdatafordefaultparametervalues";
|
|
22
|
+
readonly MODEL_WITHOUT_GEOMETRY_OUTPUT: "modelwithoutgeometryoutput";
|
|
23
|
+
readonly UNKNOWN: "unknown";
|
|
24
|
+
};
|
|
25
|
+
export type CommonsComputationStatus = typeof CommonsComputationStatus[keyof typeof CommonsComputationStatus];
|
|
26
|
+
export interface CommonsGroup {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
}
|
|
30
|
+
export interface CommonsModelBlockingReasons {
|
|
31
|
+
creditLimit?: boolean;
|
|
32
|
+
owner?: boolean;
|
|
33
|
+
backendPermission?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const CommonsModelStatus: {
|
|
36
|
+
readonly UNKNOWN: "unknown";
|
|
37
|
+
readonly NOT_UPLOADED: "not_uploaded";
|
|
38
|
+
readonly UPLOADED: "uploaded";
|
|
39
|
+
readonly PENDING: "pending";
|
|
40
|
+
readonly CONFIRMED: "confirmed";
|
|
41
|
+
readonly DENIED: "denied";
|
|
42
|
+
readonly DELETED: "deleted";
|
|
43
|
+
};
|
|
44
|
+
export type CommonsModelStatus = typeof CommonsModelStatus[keyof typeof CommonsModelStatus];
|
|
45
|
+
export interface CommonsParameterChunk {
|
|
46
|
+
id?: string;
|
|
47
|
+
name?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface CommonsStypeParameter {
|
|
50
|
+
value?: string;
|
|
51
|
+
asset?: CommmonsParameterAsset;
|
|
52
|
+
}
|
|
53
|
+
export interface CommonsTicket {
|
|
54
|
+
accessdomains?: Array<string>;
|
|
55
|
+
author?: boolean;
|
|
56
|
+
pub: boolean;
|
|
57
|
+
until: string;
|
|
58
|
+
use_id2?: boolean;
|
|
59
|
+
}
|
|
60
|
+
export declare const CommonsTicketType: {
|
|
61
|
+
readonly BACKEND: "backend";
|
|
62
|
+
readonly NONE: "";
|
|
63
|
+
};
|
|
64
|
+
export type CommonsTicketType = typeof CommonsTicketType[keyof typeof CommonsTicketType];
|
|
65
|
+
export interface NullObj {
|
|
66
|
+
nullObj: boolean;
|
|
67
|
+
}
|
|
68
|
+
export declare const QueryComputationStatisticsStatus: {
|
|
69
|
+
readonly SUCCESS: "success";
|
|
70
|
+
readonly TIMEOUT: "timeout";
|
|
71
|
+
readonly OTHER: "other";
|
|
72
|
+
readonly ALL: "*";
|
|
73
|
+
};
|
|
74
|
+
export type QueryComputationStatisticsStatus = typeof QueryComputationStatisticsStatus[keyof typeof QueryComputationStatisticsStatus];
|
|
75
|
+
export declare const QueryComputationStatus: {
|
|
76
|
+
readonly SUCCESS: "success";
|
|
77
|
+
readonly TIMEOUT: "timeout";
|
|
78
|
+
readonly CHECK_CONFIRMED: "checkconfirmed";
|
|
79
|
+
readonly CHECK_DENIED: "checkdenied";
|
|
80
|
+
readonly CHECK_PENDING: "checkpending";
|
|
81
|
+
readonly MAX_COMBINED_ASSET_SIZE_EXCEEDED: "maxcombinedassetsizeexceeded";
|
|
82
|
+
readonly MAX_DB_SIZE_PER_OUTPUT_EXCEEDED: "maxdbsizeperoutputexceeded";
|
|
83
|
+
readonly MAX_PARTS_PER_OUTPUT_EXCEEDED: "maxpartsperoutputexceeded";
|
|
84
|
+
readonly MAX_ASSET_PARTS_PER_OUTPUT_EXCEEDED: "maxassetpartsperoutputexceeded";
|
|
85
|
+
readonly MAX_TRANSFORMATIONS_PER_OUTPUT_EXCEEDED: "maxtransformationsperoutputexceeded";
|
|
86
|
+
readonly MAX_PARTS_EXCEEDED: "maxpartsexceeded";
|
|
87
|
+
readonly MAX_ASSET_PARTS_EXCEEDED: "maxassetpartsexceeded";
|
|
88
|
+
readonly RECOVERABLE_ERROR: "recoverableerror";
|
|
89
|
+
readonly UNRECOVERABLE_ERROR: "unrecoverableerror";
|
|
90
|
+
readonly NO_OUTPUT_DATA_FOR_DEFAULT_PARAMETER_VALUES: "nooutputdatafordefaultparametervalues";
|
|
91
|
+
readonly MODEL_WITHOUT_GEOMETRY_OUTPUT: "modelwithoutgeometryoutput";
|
|
92
|
+
readonly UNKNOWN: "unknown";
|
|
93
|
+
};
|
|
94
|
+
export type QueryComputationStatus = typeof QueryComputationStatus[keyof typeof QueryComputationStatus];
|
|
95
|
+
export declare const QueryComputationType: {
|
|
96
|
+
readonly COMPUTATION: "computation";
|
|
97
|
+
readonly EXPORT: "export";
|
|
98
|
+
readonly LOAD: "load";
|
|
99
|
+
readonly ALL: "*";
|
|
100
|
+
};
|
|
101
|
+
export type QueryComputationType = typeof QueryComputationType[keyof typeof QueryComputationType];
|
|
102
|
+
export declare const QueryGltfConversion: {
|
|
103
|
+
readonly NONE: "none";
|
|
104
|
+
readonly SCENE: "scene";
|
|
105
|
+
readonly USDZ: "usdz";
|
|
106
|
+
};
|
|
107
|
+
export type QueryGltfConversion = typeof QueryGltfConversion[keyof typeof QueryGltfConversion];
|
|
108
|
+
export declare const QueryModelStatus: {
|
|
109
|
+
readonly UNKNOWN: "unknown";
|
|
110
|
+
readonly NOT_UPLOADED: "not_uploaded";
|
|
111
|
+
readonly UPLOADED: "uploaded";
|
|
112
|
+
readonly PENDING: "pending";
|
|
113
|
+
readonly CONFIRMED: "confirmed";
|
|
114
|
+
readonly DENIED: "denied";
|
|
115
|
+
readonly DELETED: "deleted";
|
|
116
|
+
};
|
|
117
|
+
export type QueryModelStatus = typeof QueryModelStatus[keyof typeof QueryModelStatus];
|
|
118
|
+
export declare const QueryOrder: {
|
|
119
|
+
readonly ASC: "asc";
|
|
120
|
+
readonly DESC: "desc";
|
|
121
|
+
};
|
|
122
|
+
export type QueryOrder = typeof QueryOrder[keyof typeof QueryOrder];
|
|
123
|
+
export type ReqAnyCreditMetricId = ReqModelCreditMetricId | ReqModelOrganizationCreditMetricId | ReqModelUserCreditMetricId | ReqOrganizationCreditMetricId | ReqSystemCreditMetricId | ReqUserCreditMetricId;
|
|
124
|
+
export interface ReqAuthorizationGroup {
|
|
125
|
+
models?: Array<string>;
|
|
126
|
+
users?: Array<string>;
|
|
127
|
+
organizations?: Array<string>;
|
|
128
|
+
}
|
|
129
|
+
export type ReqBasicParameter = boolean | number | string;
|
|
130
|
+
export interface ReqCache {
|
|
131
|
+
[key: string]: string;
|
|
132
|
+
}
|
|
133
|
+
export interface ReqConfigure {
|
|
134
|
+
[key: string]: any;
|
|
135
|
+
}
|
|
136
|
+
export interface ReqCreditMetric {
|
|
137
|
+
id: ReqAnyCreditMetricId;
|
|
138
|
+
timestamp?: Array<string>;
|
|
139
|
+
timestamp_from?: string;
|
|
140
|
+
timestamp_to?: string;
|
|
141
|
+
}
|
|
142
|
+
export interface ReqCreditMetrics {
|
|
143
|
+
parameters: Array<ReqCreditMetric>;
|
|
144
|
+
}
|
|
145
|
+
export interface ReqCustomization {
|
|
146
|
+
[key: string]: ReqParameterValue;
|
|
147
|
+
}
|
|
148
|
+
export type ReqCustomizationOrCache = ReqCache | ReqCustomization;
|
|
149
|
+
export type ReqCustomizationOrExport = ReqCustomization | ReqExport;
|
|
150
|
+
export interface ReqExport {
|
|
151
|
+
parameters: ReqCustomization;
|
|
152
|
+
exports: Array<string>;
|
|
153
|
+
outputs?: Array<string>;
|
|
154
|
+
max_wait_time?: number;
|
|
155
|
+
}
|
|
156
|
+
export interface ReqExportDefinition {
|
|
157
|
+
displayname?: string;
|
|
158
|
+
group?: ReqExportDefinitionGroup;
|
|
159
|
+
hidden?: boolean;
|
|
160
|
+
order?: number;
|
|
161
|
+
tooltip?: string;
|
|
162
|
+
}
|
|
163
|
+
export type ReqExportDefinitionGroup = NullObj | ReqGroup;
|
|
164
|
+
export interface ReqExportDefinitions {
|
|
165
|
+
[key: string]: ReqExportDefinition;
|
|
166
|
+
}
|
|
167
|
+
export type ReqExportOrCache = ReqCache | ReqExport;
|
|
168
|
+
export interface ReqFileDefinition {
|
|
169
|
+
filename?: string;
|
|
170
|
+
format: string;
|
|
171
|
+
size: number;
|
|
172
|
+
}
|
|
173
|
+
export interface ReqFileUpload {
|
|
174
|
+
[key: string]: ReqFileDefinition;
|
|
175
|
+
}
|
|
176
|
+
export interface ReqGroup {
|
|
177
|
+
id: string;
|
|
178
|
+
name: string;
|
|
179
|
+
}
|
|
180
|
+
export declare const ReqLogLevel: {
|
|
181
|
+
readonly INFO: "0";
|
|
182
|
+
readonly WARN: "1";
|
|
183
|
+
readonly ERROR: "2";
|
|
184
|
+
};
|
|
185
|
+
export type ReqLogLevel = typeof ReqLogLevel[keyof typeof ReqLogLevel];
|
|
186
|
+
export interface ReqLogMessage {
|
|
187
|
+
level: ReqLogLevel;
|
|
188
|
+
message: string;
|
|
189
|
+
}
|
|
190
|
+
export interface ReqModel {
|
|
191
|
+
accessdomains?: Array<string>;
|
|
192
|
+
allowed_libraries?: Array<string>;
|
|
193
|
+
auth_groups?: Array<string>;
|
|
194
|
+
backendaccess?: boolean;
|
|
195
|
+
blockingReasons?: ReqModelBlockingReasons;
|
|
196
|
+
filename?: string;
|
|
197
|
+
ftype?: ReqModelFileType;
|
|
198
|
+
initial_warmup?: boolean;
|
|
199
|
+
id2?: string;
|
|
200
|
+
max_comp_time?: number;
|
|
201
|
+
max_export_size?: number;
|
|
202
|
+
max_idle_minutes?: number;
|
|
203
|
+
max_model_size?: number;
|
|
204
|
+
max_output_size?: number;
|
|
205
|
+
max_texture_size?: number;
|
|
206
|
+
max_wait_time?: number;
|
|
207
|
+
name?: string;
|
|
208
|
+
num_loaded_max?: number;
|
|
209
|
+
num_loaded_min?: number;
|
|
210
|
+
num_preloaded_min?: number;
|
|
211
|
+
org_id?: string;
|
|
212
|
+
prev_id?: string;
|
|
213
|
+
with_repo?: boolean;
|
|
214
|
+
pub?: boolean;
|
|
215
|
+
require_iframe?: boolean;
|
|
216
|
+
require_token?: boolean;
|
|
217
|
+
session_rate_limit?: number;
|
|
218
|
+
trust?: ReqTrustLevel;
|
|
219
|
+
use_cdn?: boolean;
|
|
220
|
+
user_id?: string;
|
|
221
|
+
webhook_url?: string;
|
|
222
|
+
webhook_token?: string;
|
|
223
|
+
deny_scripts?: boolean;
|
|
224
|
+
}
|
|
225
|
+
export interface ReqModelBlockingReasons {
|
|
226
|
+
creditLimit?: boolean;
|
|
227
|
+
owner?: boolean;
|
|
228
|
+
backendPermission?: boolean;
|
|
229
|
+
}
|
|
230
|
+
export interface ReqModelCreditMetricId {
|
|
231
|
+
modelIds: Array<string>;
|
|
232
|
+
}
|
|
233
|
+
export declare const ReqModelFileType: {
|
|
234
|
+
readonly GRASSHOPPER_BINARY: "gh";
|
|
235
|
+
readonly GRASSHOPPER_XML: "ghx";
|
|
236
|
+
};
|
|
237
|
+
export type ReqModelFileType = typeof ReqModelFileType[keyof typeof ReqModelFileType];
|
|
238
|
+
export interface ReqModelOrganizationCreditMetricId {
|
|
239
|
+
modelIds: Array<string>;
|
|
240
|
+
orgIds: Array<string>;
|
|
241
|
+
}
|
|
242
|
+
export interface ReqModelState {
|
|
243
|
+
parameters: ReqCustomization;
|
|
244
|
+
data?: {
|
|
245
|
+
[key: string]: any;
|
|
246
|
+
};
|
|
247
|
+
image?: ReqFileDefinition;
|
|
248
|
+
arSceneId?: string;
|
|
249
|
+
}
|
|
250
|
+
export interface ReqModelUserCreditMetricId {
|
|
251
|
+
modelIds: Array<string>;
|
|
252
|
+
userIds: Array<string>;
|
|
253
|
+
}
|
|
254
|
+
export interface ReqOrganizationCreditMetricId {
|
|
255
|
+
orgIds: Array<string>;
|
|
256
|
+
}
|
|
257
|
+
export interface ReqOutputDefinition {
|
|
258
|
+
displayname?: string;
|
|
259
|
+
group?: ReqOutputDefinitionGroup;
|
|
260
|
+
hidden?: boolean;
|
|
261
|
+
order?: number;
|
|
262
|
+
tooltip?: string;
|
|
263
|
+
chunks?: Array<ReqOutputDefinitionChunk>;
|
|
264
|
+
}
|
|
265
|
+
export interface ReqOutputDefinitionChunk {
|
|
266
|
+
id: string;
|
|
267
|
+
displayname?: string;
|
|
268
|
+
hidden?: boolean;
|
|
269
|
+
}
|
|
270
|
+
export type ReqOutputDefinitionGroup = NullObj | ReqGroup;
|
|
271
|
+
export interface ReqOutputDefinitions {
|
|
272
|
+
[key: string]: ReqOutputDefinition;
|
|
273
|
+
}
|
|
274
|
+
export interface ReqParameterDefinition {
|
|
275
|
+
displayname?: string;
|
|
276
|
+
group?: ReqParameterDefinitionGroup;
|
|
277
|
+
hidden?: boolean;
|
|
278
|
+
order?: number;
|
|
279
|
+
tooltip?: string;
|
|
280
|
+
settings?: object;
|
|
281
|
+
}
|
|
282
|
+
export type ReqParameterDefinitionGroup = NullObj | ReqGroup;
|
|
283
|
+
export interface ReqParameterDefinitions {
|
|
284
|
+
[key: string]: ReqParameterDefinition;
|
|
285
|
+
}
|
|
286
|
+
export type ReqParameterValue = ReqBasicParameter | ReqStypeParameter;
|
|
287
|
+
export interface ReqSdtfDefinition {
|
|
288
|
+
content_encoding?: string;
|
|
289
|
+
content_length: number;
|
|
290
|
+
content_type: ReqSdtfType;
|
|
291
|
+
namespace: string;
|
|
292
|
+
}
|
|
293
|
+
export declare const ReqSdtfType: {
|
|
294
|
+
readonly MODEL_SDTF: "model/vnd.sdtf";
|
|
295
|
+
};
|
|
296
|
+
export type ReqSdtfType = typeof ReqSdtfType[keyof typeof ReqSdtfType];
|
|
297
|
+
export interface ReqStypeParameter {
|
|
298
|
+
value?: string;
|
|
299
|
+
asset?: CommmonsParameterAsset;
|
|
300
|
+
}
|
|
301
|
+
export interface ReqSystemCreditMetricId {
|
|
302
|
+
systems: boolean;
|
|
303
|
+
}
|
|
304
|
+
export interface ReqTicket {
|
|
305
|
+
accessdomains?: Array<string>;
|
|
306
|
+
author?: boolean;
|
|
307
|
+
pub: boolean;
|
|
308
|
+
until: string;
|
|
309
|
+
use_id2?: boolean;
|
|
310
|
+
type: ReqTicketType;
|
|
311
|
+
}
|
|
312
|
+
export declare const ReqTicketType: {
|
|
313
|
+
readonly BACKEND: "backend";
|
|
314
|
+
readonly NONE: "";
|
|
315
|
+
};
|
|
316
|
+
export type ReqTicketType = typeof ReqTicketType[keyof typeof ReqTicketType];
|
|
317
|
+
export declare const ReqTrustLevel: {
|
|
318
|
+
readonly UNDEFINED: "";
|
|
319
|
+
readonly NONE: "none";
|
|
320
|
+
readonly FULL: "full";
|
|
321
|
+
};
|
|
322
|
+
export type ReqTrustLevel = typeof ReqTrustLevel[keyof typeof ReqTrustLevel];
|
|
323
|
+
export interface ReqUserCreditMetricId {
|
|
324
|
+
userIds: Array<string>;
|
|
325
|
+
}
|
|
326
|
+
export interface ResAction {
|
|
327
|
+
name: string;
|
|
328
|
+
title: string;
|
|
329
|
+
href: string;
|
|
330
|
+
method: string;
|
|
331
|
+
template?: string;
|
|
332
|
+
}
|
|
333
|
+
export interface ResAllowedWorkerPlugin {
|
|
334
|
+
id: string;
|
|
335
|
+
name: string;
|
|
336
|
+
minVersion: string;
|
|
337
|
+
maxVersion: string;
|
|
338
|
+
authorName?: string;
|
|
339
|
+
description?: string;
|
|
340
|
+
href?: string;
|
|
341
|
+
allowFallbackToAssemblyVersion: boolean;
|
|
342
|
+
checkMajorMinorVersionOnly: boolean;
|
|
343
|
+
checkIfInstalled: boolean;
|
|
344
|
+
previousIds: Array<string>;
|
|
345
|
+
allowedComponents: Array<ResWorkerPluginComponent>;
|
|
346
|
+
disallowedComponents: Array<ResWorkerPluginComponent>;
|
|
347
|
+
}
|
|
348
|
+
export interface ResAnalytics {
|
|
349
|
+
creditMetrics: Array<ResAnyCreditMetric>;
|
|
350
|
+
}
|
|
351
|
+
export type ResAnyCreditMetric = ResModelCreditMetric | ResModelOrganizationCreditMetric | ResModelUserCreditMetric | ResOrganizationCreditMetric | ResSystemCreditMetric | ResUserCreditMetric;
|
|
352
|
+
export interface ResArCreditMetric {
|
|
353
|
+
credits: number;
|
|
354
|
+
}
|
|
355
|
+
export interface ResAsset {
|
|
356
|
+
file?: {
|
|
357
|
+
[key: string]: ResAssetDefinition;
|
|
358
|
+
};
|
|
359
|
+
sdtf?: Array<ResAssetDefinition>;
|
|
360
|
+
modelState?: ResAssetDefinition;
|
|
361
|
+
}
|
|
362
|
+
export interface ResAssetDefinition {
|
|
363
|
+
id: string;
|
|
364
|
+
href: string;
|
|
365
|
+
headers: ResAssetUploadHeaders;
|
|
366
|
+
}
|
|
367
|
+
export interface ResAssetUploadHeaders {
|
|
368
|
+
contentDisposition?: string;
|
|
369
|
+
contentType: string;
|
|
370
|
+
}
|
|
371
|
+
export interface ResAuthorizationSettings {
|
|
372
|
+
ticket?: ResTicketAuthorization;
|
|
373
|
+
token?: ResTokenAuthorization;
|
|
374
|
+
}
|
|
375
|
+
export interface ResBase {
|
|
376
|
+
asset?: ResAsset;
|
|
377
|
+
list?: ResList;
|
|
378
|
+
modelState?: ResModelStateOrData;
|
|
379
|
+
system?: ResSystem;
|
|
380
|
+
actions?: Array<ResAction>;
|
|
381
|
+
analytics?: ResAnalytics;
|
|
382
|
+
auth_group?: string;
|
|
383
|
+
cleanup?: Array<ResModelCleanupProcess>;
|
|
384
|
+
decryptedTicket?: ResTicket;
|
|
385
|
+
exports?: {
|
|
386
|
+
[key: string]: ResExportOrDefinition;
|
|
387
|
+
};
|
|
388
|
+
file?: ResFile;
|
|
389
|
+
gltf?: ResGltfUpload;
|
|
390
|
+
message?: string;
|
|
391
|
+
model?: ResModel;
|
|
392
|
+
computations?: Array<ResModelComputation>;
|
|
393
|
+
outputs?: {
|
|
394
|
+
[key: string]: ResOutputOrDefinition;
|
|
395
|
+
};
|
|
396
|
+
pagination?: ResPagination;
|
|
397
|
+
parameters?: {
|
|
398
|
+
[key: string]: ResParameter;
|
|
399
|
+
};
|
|
400
|
+
plugins?: ResPlugins;
|
|
401
|
+
sessionId?: string;
|
|
402
|
+
setting?: ResSettings;
|
|
403
|
+
statistic?: ResStatistic;
|
|
404
|
+
templates?: Array<ResTemplate>;
|
|
405
|
+
ticket?: string;
|
|
406
|
+
version: string;
|
|
407
|
+
viewer?: ResViewer;
|
|
408
|
+
viewerSettingsVersion?: string;
|
|
409
|
+
warnings?: Array<string>;
|
|
410
|
+
}
|
|
411
|
+
export interface ResBaseAsset {
|
|
412
|
+
asset?: ResAsset;
|
|
413
|
+
}
|
|
414
|
+
export interface ResBaseCreditMetric {
|
|
415
|
+
timestamp: string;
|
|
416
|
+
isCompilationDone: boolean;
|
|
417
|
+
ar: ResArCreditMetric;
|
|
418
|
+
loading: ResLoadingCreditMetric;
|
|
419
|
+
limited: ResLimitedCreditMetric;
|
|
420
|
+
_default: ResDefaultCreditMetric;
|
|
421
|
+
}
|
|
422
|
+
export interface ResBaseList {
|
|
423
|
+
list?: ResList;
|
|
424
|
+
}
|
|
425
|
+
export interface ResBaseModelState {
|
|
426
|
+
modelState?: ResModelStateOrData;
|
|
427
|
+
}
|
|
428
|
+
export interface ResBaseSystem {
|
|
429
|
+
system?: ResSystem;
|
|
430
|
+
}
|
|
431
|
+
export type ResBasicParameter = boolean | number | string;
|
|
432
|
+
export interface ResCleanupExports {
|
|
433
|
+
version: string;
|
|
434
|
+
}
|
|
435
|
+
export interface ResCleanupOutputs {
|
|
436
|
+
version: string;
|
|
437
|
+
}
|
|
438
|
+
export interface ResCleanupTextures {
|
|
439
|
+
version: string;
|
|
440
|
+
}
|
|
441
|
+
export interface ResCloseSession {
|
|
442
|
+
version: string;
|
|
443
|
+
}
|
|
444
|
+
export interface ResComputationComponent {
|
|
445
|
+
computed: Array<ResComputedComponent>;
|
|
446
|
+
computing: Array<ResComputingComponent>;
|
|
447
|
+
errors: Array<ResErrorComponent>;
|
|
448
|
+
warnings: Array<ResWarningComponent>;
|
|
449
|
+
}
|
|
450
|
+
export interface ResComputationComponents {
|
|
451
|
+
components: ResComputationComponent;
|
|
452
|
+
count_success?: number;
|
|
453
|
+
count_timeout?: number;
|
|
454
|
+
changes?: Array<string>;
|
|
455
|
+
}
|
|
456
|
+
export interface ResComputationLimits {
|
|
457
|
+
max_comp_time: number;
|
|
458
|
+
max_output_size: number;
|
|
459
|
+
max_export_size: number;
|
|
460
|
+
}
|
|
461
|
+
export declare const ResComputationStatus: {
|
|
462
|
+
readonly SUCCESS: "success";
|
|
463
|
+
readonly TIMEOUT: "timeout";
|
|
464
|
+
readonly CHECK_CONFIRMED: "checkconfirmed";
|
|
465
|
+
readonly CHECK_DENIED: "checkdenied";
|
|
466
|
+
readonly CHECK_PENDING: "checkpending";
|
|
467
|
+
readonly MAX_COMBINED_ASSET_SIZE_EXCEEDED: "maxcombinedassetsizeexceeded";
|
|
468
|
+
readonly MAX_DB_SIZE_PER_OUTPUT_EXCEEDED: "maxdbsizeperoutputexceeded";
|
|
469
|
+
readonly MAX_PARTS_PER_OUTPUT_EXCEEDED: "maxpartsperoutputexceeded";
|
|
470
|
+
readonly MAX_ASSET_PARTS_PER_OUTPUT_EXCEEDED: "maxassetpartsperoutputexceeded";
|
|
471
|
+
readonly MAX_TRANSFORMATIONS_PER_OUTPUT_EXCEEDED: "maxtransformationsperoutputexceeded";
|
|
472
|
+
readonly MAX_PARTS_EXCEEDED: "maxpartsexceeded";
|
|
473
|
+
readonly MAX_ASSET_PARTS_EXCEEDED: "maxassetpartsexceeded";
|
|
474
|
+
readonly RECOVERABLE_ERROR: "recoverableerror";
|
|
475
|
+
readonly UNRECOVERABLE_ERROR: "unrecoverableerror";
|
|
476
|
+
readonly NO_OUTPUT_DATA_FOR_DEFAULT_PARAMETER_VALUES: "nooutputdatafordefaultparametervalues";
|
|
477
|
+
readonly MODEL_WITHOUT_GEOMETRY_OUTPUT: "modelwithoutgeometryoutput";
|
|
478
|
+
readonly UNKNOWN: "unknown";
|
|
479
|
+
};
|
|
480
|
+
export type ResComputationStatus = typeof ResComputationStatus[keyof typeof ResComputationStatus];
|
|
481
|
+
export interface ResComputeExports {
|
|
482
|
+
actions?: Array<ResAction>;
|
|
483
|
+
exports?: {
|
|
484
|
+
[key: string]: ResExportOrDefinition;
|
|
485
|
+
};
|
|
486
|
+
message?: string;
|
|
487
|
+
outputs?: {
|
|
488
|
+
[key: string]: ResOutputOrDefinition;
|
|
489
|
+
};
|
|
490
|
+
templates?: Array<ResTemplate>;
|
|
491
|
+
version: string;
|
|
492
|
+
}
|
|
493
|
+
export interface ResComputeOutputs {
|
|
494
|
+
actions?: Array<ResAction>;
|
|
495
|
+
message?: string;
|
|
496
|
+
outputs?: {
|
|
497
|
+
[key: string]: ResOutputOrDefinition;
|
|
498
|
+
};
|
|
499
|
+
templates?: Array<ResTemplate>;
|
|
500
|
+
version: string;
|
|
501
|
+
}
|
|
502
|
+
export interface ResComputeSettings {
|
|
503
|
+
deny_scripts: boolean;
|
|
504
|
+
ftype: string;
|
|
505
|
+
initial_warmup: boolean;
|
|
506
|
+
max_comp_time: number;
|
|
507
|
+
max_export_size: number;
|
|
508
|
+
max_idle_minutes: number;
|
|
509
|
+
max_model_size?: number;
|
|
510
|
+
max_output_size: number;
|
|
511
|
+
max_texture_size?: number;
|
|
512
|
+
max_wait_time: number;
|
|
513
|
+
num_loaded_max: number;
|
|
514
|
+
num_loaded_min: number;
|
|
515
|
+
num_preloaded_min: number;
|
|
516
|
+
session_rate_limit?: number;
|
|
517
|
+
trust: string;
|
|
518
|
+
}
|
|
519
|
+
export interface ResComputedComponent {
|
|
520
|
+
instance: string;
|
|
521
|
+
component: string;
|
|
522
|
+
name: string;
|
|
523
|
+
nick_name: string;
|
|
524
|
+
time: number;
|
|
525
|
+
}
|
|
526
|
+
export interface ResComputingComponent {
|
|
527
|
+
instance: string;
|
|
528
|
+
component: string;
|
|
529
|
+
name: string;
|
|
530
|
+
nick_name: string;
|
|
531
|
+
}
|
|
532
|
+
export interface ResCreateAuthorizationGroup {
|
|
533
|
+
auth_group: string;
|
|
534
|
+
message?: string;
|
|
535
|
+
version: string;
|
|
536
|
+
}
|
|
537
|
+
export interface ResCreateModel {
|
|
538
|
+
file: ResFile;
|
|
539
|
+
message?: string;
|
|
540
|
+
model: ResModel;
|
|
541
|
+
setting: ResSettings;
|
|
542
|
+
statistic: ResStatistic;
|
|
543
|
+
version: string;
|
|
544
|
+
}
|
|
545
|
+
export interface ResCreateModelConfig {
|
|
546
|
+
version: string;
|
|
547
|
+
}
|
|
548
|
+
export interface ResCreateModelState {
|
|
549
|
+
modelState: ResModelState;
|
|
550
|
+
version: string;
|
|
551
|
+
asset?: ResModelStateAsset;
|
|
552
|
+
}
|
|
553
|
+
export interface ResCreateSessionByModel {
|
|
554
|
+
actions: Array<ResAction>;
|
|
555
|
+
exports?: {
|
|
556
|
+
[key: string]: ResExportOrDefinition;
|
|
557
|
+
};
|
|
558
|
+
file: ResFile;
|
|
559
|
+
message?: string;
|
|
560
|
+
model: ResModel;
|
|
561
|
+
modelState?: ResModelStateData;
|
|
562
|
+
outputs?: {
|
|
563
|
+
[key: string]: ResOutputOrDefinition;
|
|
564
|
+
};
|
|
565
|
+
parameters?: {
|
|
566
|
+
[key: string]: ResParameter;
|
|
567
|
+
};
|
|
568
|
+
sessionId: string;
|
|
569
|
+
setting: ResSettings;
|
|
570
|
+
statistic: ResStatistic;
|
|
571
|
+
templates: Array<ResTemplate>;
|
|
572
|
+
version: string;
|
|
573
|
+
viewer: ResViewer;
|
|
574
|
+
viewerSettingsVersion: string;
|
|
575
|
+
warnings?: Array<string>;
|
|
576
|
+
}
|
|
577
|
+
export interface ResCreateSessionByTicket {
|
|
578
|
+
actions: Array<ResAction>;
|
|
579
|
+
exports?: {
|
|
580
|
+
[key: string]: ResExportOrDefinition;
|
|
581
|
+
};
|
|
582
|
+
file: ResFile;
|
|
583
|
+
message?: string;
|
|
584
|
+
model: ResModel;
|
|
585
|
+
modelState?: ResModelStateData;
|
|
586
|
+
outputs?: {
|
|
587
|
+
[key: string]: ResOutputOrDefinition;
|
|
588
|
+
};
|
|
589
|
+
parameters?: {
|
|
590
|
+
[key: string]: ResParameter;
|
|
591
|
+
};
|
|
592
|
+
sessionId: string;
|
|
593
|
+
setting: ResSettings;
|
|
594
|
+
statistic: ResStatistic;
|
|
595
|
+
templates: Array<ResTemplate>;
|
|
596
|
+
version: string;
|
|
597
|
+
viewer: ResViewer;
|
|
598
|
+
viewerSettingsVersion: string;
|
|
599
|
+
warnings?: Array<string>;
|
|
600
|
+
}
|
|
601
|
+
export interface ResCreateTicket {
|
|
602
|
+
file: ResFile;
|
|
603
|
+
model: ResModel;
|
|
604
|
+
setting: ResSettings;
|
|
605
|
+
statistic: ResStatistic;
|
|
606
|
+
ticket: string;
|
|
607
|
+
version: string;
|
|
608
|
+
}
|
|
609
|
+
export interface ResDecryptTicket {
|
|
610
|
+
decryptedTicket: ResTicket;
|
|
611
|
+
version: string;
|
|
612
|
+
}
|
|
613
|
+
export interface ResDefaultCombinedMetric {
|
|
614
|
+
credits: number;
|
|
615
|
+
}
|
|
616
|
+
export interface ResDefaultComputationMetric {
|
|
617
|
+
count: number;
|
|
618
|
+
credits: number;
|
|
619
|
+
duration: number;
|
|
620
|
+
countPerChunks: {
|
|
621
|
+
[key: string]: number;
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
export interface ResDefaultCreditMetric {
|
|
625
|
+
outputs: ResDefaultOutputMetric;
|
|
626
|
+
exports: ResDefaultExportMetric;
|
|
627
|
+
combined: ResDefaultCombinedMetric;
|
|
628
|
+
sessions: ResDefaultSessionMetric;
|
|
629
|
+
computations: ResDefaultComputationMetric;
|
|
630
|
+
}
|
|
631
|
+
export interface ResDefaultExportMetric {
|
|
632
|
+
credits: number;
|
|
633
|
+
}
|
|
634
|
+
export interface ResDefaultOutputMetric {
|
|
635
|
+
credits: number;
|
|
636
|
+
}
|
|
637
|
+
export interface ResDefaultSessionMetric {
|
|
638
|
+
count: number;
|
|
639
|
+
duration: number;
|
|
640
|
+
}
|
|
641
|
+
export interface ResDeleteFile {
|
|
642
|
+
version: string;
|
|
643
|
+
}
|
|
644
|
+
export interface ResDeleteModel {
|
|
645
|
+
version: string;
|
|
646
|
+
}
|
|
647
|
+
export interface ResDeleteModelState {
|
|
648
|
+
version: string;
|
|
649
|
+
}
|
|
650
|
+
export interface ResDeleteSdtf {
|
|
651
|
+
version: string;
|
|
652
|
+
}
|
|
653
|
+
export interface ResError {
|
|
654
|
+
error: ResErrorType;
|
|
655
|
+
desc: string;
|
|
656
|
+
message?: string;
|
|
657
|
+
}
|
|
658
|
+
export interface ResErrorComponent {
|
|
659
|
+
component: string;
|
|
660
|
+
errors: Array<string>;
|
|
661
|
+
instance: string;
|
|
662
|
+
name: string;
|
|
663
|
+
nick_name: string;
|
|
664
|
+
warnings: Array<string>;
|
|
665
|
+
}
|
|
666
|
+
export declare const ResErrorType: {
|
|
667
|
+
readonly ASSERTION_ERROR: "SdAssertionError";
|
|
668
|
+
readonly CACHE_ERROR_GENERIC: "SdCacheErrorGeneric";
|
|
669
|
+
readonly CONNECTOR_ERROR: "SdConnectorError";
|
|
670
|
+
readonly DATABASE_ERROR_GENERIC: "SdDatabaseErrorGeneric";
|
|
671
|
+
readonly EMAILING_ERROR: "SdEmailingError";
|
|
672
|
+
readonly ERROR_ENTITY_NOT_FOUND: "SdErrorEntityNotFound";
|
|
673
|
+
readonly ERROR_FORBIDDEN: "SdErrorForbidden";
|
|
674
|
+
readonly ERROR_GENERIC_CLIENT: "SdErrorGenericClient";
|
|
675
|
+
readonly ERROR_GENERIC_INTERNAL: "SdErrorGenericInternal";
|
|
676
|
+
readonly ERROR_UNAUTHORIZED: "SdErrorUnauthorized";
|
|
677
|
+
readonly ILLEGAL_ARGUMENT_ERROR: "SdIllegalArgumentError";
|
|
678
|
+
readonly JWT_VALIDATION_ERROR: "SdJwtValidationError";
|
|
679
|
+
readonly METHOD_NOT_ALLOWED_ERROR: "SdMethodNotAllowedError";
|
|
680
|
+
readonly MODEL_VALIDATION_ERROR: "SdModelValidationError";
|
|
681
|
+
readonly NOT_ACCEPTABLE: "SdNotAcceptable";
|
|
682
|
+
readonly NOT_FOUND_ERROR: "SdNotFoundError";
|
|
683
|
+
readonly PARAMETER_VALIDATION_ERROR: "SdParameterValidationError";
|
|
684
|
+
readonly RATE_LIMIT_ERROR_GENERIC: "SdRateLimitErrorGeneric";
|
|
685
|
+
readonly REQUEST_TIMEOUT: "SdRequestTimeout";
|
|
686
|
+
readonly REQUEST_VALIDATION_ERROR: "SdRequestValidationError";
|
|
687
|
+
readonly RESOURCE_GONE_ERROR: "SdResourceGoneError";
|
|
688
|
+
readonly SESSION_GONE_ERROR: "SdSessionGoneError";
|
|
689
|
+
readonly SESSION_VALIDATION_ERROR: "SdSessionValidationError";
|
|
690
|
+
readonly STORAGE_ERROR_GENERIC: "SdStorageErrorGeneric";
|
|
691
|
+
readonly TEXTURE_URL_ERROR: "SdTextureUrlError";
|
|
692
|
+
readonly TICKET_VALIDATION_ERROR: "SdTicketValidationError";
|
|
693
|
+
readonly TOKEN_MISSING_ERROR: "SdTokenMissingError";
|
|
694
|
+
readonly TRANSFORM_CONTENT_ARRAY_ERROR: "SdTransformContentArrayError";
|
|
695
|
+
readonly UNCONFIRMED_MODEL_ERROR: "SdUnconfirmedModelError";
|
|
696
|
+
readonly UNKNOWN: "";
|
|
697
|
+
};
|
|
698
|
+
export type ResErrorType = typeof ResErrorType[keyof typeof ResErrorType];
|
|
699
|
+
export interface ResExport {
|
|
700
|
+
id: string;
|
|
701
|
+
uid?: string;
|
|
702
|
+
name: string;
|
|
703
|
+
type: ResExportDefinitionType;
|
|
704
|
+
dependency: Array<string>;
|
|
705
|
+
group?: CommonsGroup;
|
|
706
|
+
order?: number;
|
|
707
|
+
tooltip?: string;
|
|
708
|
+
displayname?: string;
|
|
709
|
+
hidden: boolean;
|
|
710
|
+
typeId?: string;
|
|
711
|
+
typeName?: string;
|
|
712
|
+
version: string;
|
|
713
|
+
delay?: number;
|
|
714
|
+
content?: Array<ResExportContent>;
|
|
715
|
+
msg?: string;
|
|
716
|
+
filename?: string;
|
|
717
|
+
result?: ResExportResult;
|
|
718
|
+
status_computation?: ResComputationStatus;
|
|
719
|
+
status_collect?: ResComputationStatus;
|
|
720
|
+
}
|
|
721
|
+
export interface ResExportContent {
|
|
722
|
+
format: string;
|
|
723
|
+
href: string;
|
|
724
|
+
size?: number;
|
|
725
|
+
contentType?: string;
|
|
726
|
+
}
|
|
727
|
+
export interface ResExportDefinition {
|
|
728
|
+
id: string;
|
|
729
|
+
uid?: string;
|
|
730
|
+
name: string;
|
|
731
|
+
type: ResExportDefinitionType;
|
|
732
|
+
dependency: Array<string>;
|
|
733
|
+
group?: CommonsGroup;
|
|
734
|
+
order?: number;
|
|
735
|
+
tooltip?: string;
|
|
736
|
+
displayname?: string;
|
|
737
|
+
hidden: boolean;
|
|
738
|
+
typeId?: string;
|
|
739
|
+
typeName?: string;
|
|
740
|
+
version?: boolean | null;
|
|
741
|
+
}
|
|
742
|
+
export declare const ResExportDefinitionType: {
|
|
743
|
+
readonly UNKNOWN: "unknown";
|
|
744
|
+
readonly DOWNLOAD: "download";
|
|
745
|
+
readonly EMAIL: "email";
|
|
746
|
+
readonly SHAPEWAYS: "shapeways";
|
|
747
|
+
};
|
|
748
|
+
export type ResExportDefinitionType = typeof ResExportDefinitionType[keyof typeof ResExportDefinitionType];
|
|
749
|
+
export interface ResExportList {
|
|
750
|
+
file?: Array<ResFileInfo>;
|
|
751
|
+
sdtf?: Array<ResSdtfInfo>;
|
|
752
|
+
model?: Array<ResModel>;
|
|
753
|
+
modelState?: Array<ResModelStateInfo>;
|
|
754
|
+
output?: Array<ResOutput>;
|
|
755
|
+
export: Array<ResExport>;
|
|
756
|
+
texture?: Array<ResTexture>;
|
|
757
|
+
}
|
|
758
|
+
export type ResExportOrDefinition = ResExport | ResExportDefinition;
|
|
759
|
+
export interface ResExportResult {
|
|
760
|
+
msg?: string;
|
|
761
|
+
err?: string;
|
|
762
|
+
href?: string;
|
|
763
|
+
modelId?: string;
|
|
764
|
+
}
|
|
765
|
+
export interface ResFile {
|
|
766
|
+
upload?: string;
|
|
767
|
+
download?: string;
|
|
768
|
+
}
|
|
769
|
+
export interface ResFileAsset {
|
|
770
|
+
file: {
|
|
771
|
+
[key: string]: ResAssetDefinition;
|
|
772
|
+
};
|
|
773
|
+
sdtf?: Array<ResAssetDefinition>;
|
|
774
|
+
modelState?: ResAssetDefinition;
|
|
775
|
+
}
|
|
776
|
+
export interface ResFileInfo {
|
|
777
|
+
id: string;
|
|
778
|
+
parameterId: string;
|
|
779
|
+
size: number;
|
|
780
|
+
filename?: string;
|
|
781
|
+
}
|
|
782
|
+
export interface ResFileList {
|
|
783
|
+
file: Array<ResFileInfo>;
|
|
784
|
+
sdtf?: Array<ResSdtfInfo>;
|
|
785
|
+
model?: Array<ResModel>;
|
|
786
|
+
modelState?: Array<ResModelStateInfo>;
|
|
787
|
+
output?: Array<ResOutput>;
|
|
788
|
+
export?: Array<ResExport>;
|
|
789
|
+
texture?: Array<ResTexture>;
|
|
790
|
+
}
|
|
791
|
+
export interface ResGetCachedExports {
|
|
792
|
+
actions?: Array<ResAction>;
|
|
793
|
+
exports?: {
|
|
794
|
+
[key: string]: ResExportOrDefinition;
|
|
795
|
+
};
|
|
796
|
+
message?: string;
|
|
797
|
+
outputs?: {
|
|
798
|
+
[key: string]: ResOutputOrDefinition;
|
|
799
|
+
};
|
|
800
|
+
templates?: Array<ResTemplate>;
|
|
801
|
+
version: string;
|
|
802
|
+
}
|
|
803
|
+
export interface ResGetCachedOutputs {
|
|
804
|
+
actions?: Array<ResAction>;
|
|
805
|
+
message?: string;
|
|
806
|
+
outputs?: {
|
|
807
|
+
[key: string]: ResOutputOrDefinition;
|
|
808
|
+
};
|
|
809
|
+
templates?: Array<ResTemplate>;
|
|
810
|
+
version: string;
|
|
811
|
+
}
|
|
812
|
+
export interface ResGetCleanupStatus {
|
|
813
|
+
cleanup: Array<ResModelCleanupProcess>;
|
|
814
|
+
version: string;
|
|
815
|
+
}
|
|
816
|
+
export interface ResGetCreditMetrics {
|
|
817
|
+
analytics: ResAnalytics;
|
|
818
|
+
message?: string;
|
|
819
|
+
version: string;
|
|
820
|
+
}
|
|
821
|
+
export interface ResGetMinionsInfo {
|
|
822
|
+
version: string;
|
|
823
|
+
system: ResMinionSystem;
|
|
824
|
+
}
|
|
825
|
+
export interface ResGetModel {
|
|
826
|
+
exports?: {
|
|
827
|
+
[key: string]: ResExportOrDefinition;
|
|
828
|
+
};
|
|
829
|
+
file: ResFile;
|
|
830
|
+
message?: string;
|
|
831
|
+
model: ResModel;
|
|
832
|
+
outputs?: {
|
|
833
|
+
[key: string]: ResOutputOrDefinition;
|
|
834
|
+
};
|
|
835
|
+
parameters?: {
|
|
836
|
+
[key: string]: ResParameter;
|
|
837
|
+
};
|
|
838
|
+
plugins?: ResPlugins;
|
|
839
|
+
setting: ResSettings;
|
|
840
|
+
statistic: ResStatistic;
|
|
841
|
+
version: string;
|
|
842
|
+
}
|
|
843
|
+
export interface ResGetModelComputations {
|
|
844
|
+
computations: Array<ResModelComputation>;
|
|
845
|
+
pagination: ResPagination;
|
|
846
|
+
version: string;
|
|
847
|
+
}
|
|
848
|
+
export interface ResGetModelConfig {
|
|
849
|
+
message?: string;
|
|
850
|
+
version: string;
|
|
851
|
+
viewer: ResViewer;
|
|
852
|
+
}
|
|
853
|
+
export interface ResGetModelOrganizationCreditMetrics {
|
|
854
|
+
analytics: ResAnalytics;
|
|
855
|
+
version: string;
|
|
856
|
+
}
|
|
857
|
+
export interface ResGetModelState {
|
|
858
|
+
modelState: ResModelState;
|
|
859
|
+
version: string;
|
|
860
|
+
}
|
|
861
|
+
export interface ResGetModelStateData {
|
|
862
|
+
modelState: ResModelStateData;
|
|
863
|
+
version: string;
|
|
864
|
+
}
|
|
865
|
+
export interface ResGetModelUserCreditMetrics {
|
|
866
|
+
analytics: ResAnalytics;
|
|
867
|
+
version: string;
|
|
868
|
+
}
|
|
869
|
+
export interface ResGetOrganizationCreditMetrics {
|
|
870
|
+
analytics: ResAnalytics;
|
|
871
|
+
version: string;
|
|
872
|
+
}
|
|
873
|
+
export interface ResGetScaleInCandidate {
|
|
874
|
+
version: string;
|
|
875
|
+
system: ResScaleInCandidate;
|
|
876
|
+
}
|
|
877
|
+
export interface ResGetSessionDefaults {
|
|
878
|
+
actions: Array<ResAction>;
|
|
879
|
+
exports?: {
|
|
880
|
+
[key: string]: ResExportOrDefinition;
|
|
881
|
+
};
|
|
882
|
+
message?: string;
|
|
883
|
+
model: ResModel;
|
|
884
|
+
outputs?: {
|
|
885
|
+
[key: string]: ResOutputOrDefinition;
|
|
886
|
+
};
|
|
887
|
+
parameters?: {
|
|
888
|
+
[key: string]: ResParameter;
|
|
889
|
+
};
|
|
890
|
+
sessionId: string;
|
|
891
|
+
statistic: ResStatistic;
|
|
892
|
+
templates: Array<ResTemplate>;
|
|
893
|
+
version: string;
|
|
894
|
+
viewer: ResViewer;
|
|
895
|
+
viewerSettingsVersion: string;
|
|
896
|
+
}
|
|
897
|
+
export interface ResGetUserCreditMetrics {
|
|
898
|
+
analytics: ResAnalytics;
|
|
899
|
+
version: string;
|
|
900
|
+
}
|
|
901
|
+
export interface ResGetWorkersInfo {
|
|
902
|
+
version: string;
|
|
903
|
+
system: ResWorkerSystem;
|
|
904
|
+
}
|
|
905
|
+
export interface ResGltfUpload {
|
|
906
|
+
href: string;
|
|
907
|
+
sceneId?: string;
|
|
908
|
+
}
|
|
909
|
+
export interface ResInstalledWorkerPlugin {
|
|
910
|
+
id: string;
|
|
911
|
+
name: string;
|
|
912
|
+
version: string;
|
|
913
|
+
authorName: string;
|
|
914
|
+
authorContact: string;
|
|
915
|
+
description: string;
|
|
916
|
+
assemblyVersion: string;
|
|
917
|
+
assemblyFullName: string;
|
|
918
|
+
isCoreLibrary: boolean;
|
|
919
|
+
license: number;
|
|
920
|
+
loadingMechanism: number;
|
|
921
|
+
location: string;
|
|
922
|
+
}
|
|
923
|
+
export interface ResLimitedCreditMetric {
|
|
924
|
+
outputs: ResRateLimitedOutputMetric;
|
|
925
|
+
exports: ResRateLimitedExportMetric;
|
|
926
|
+
combined: ResRateLimitedCombinedMetric;
|
|
927
|
+
sessions: ResRateLimitedSessionMetric;
|
|
928
|
+
computations: ResRateLimitedComputationMetric;
|
|
929
|
+
}
|
|
930
|
+
export interface ResList {
|
|
931
|
+
file?: Array<ResFileInfo>;
|
|
932
|
+
sdtf?: Array<ResSdtfInfo>;
|
|
933
|
+
model?: Array<ResModel>;
|
|
934
|
+
modelState?: Array<ResModelStateInfo>;
|
|
935
|
+
output?: Array<ResOutput>;
|
|
936
|
+
export?: Array<ResExport>;
|
|
937
|
+
texture?: Array<ResTexture>;
|
|
938
|
+
}
|
|
939
|
+
export interface ResListExportVersions {
|
|
940
|
+
pagination: ResPagination;
|
|
941
|
+
version: string;
|
|
942
|
+
list: ResExportList;
|
|
943
|
+
}
|
|
944
|
+
export interface ResListFiles {
|
|
945
|
+
message?: string;
|
|
946
|
+
pagination: ResPagination;
|
|
947
|
+
version: string;
|
|
948
|
+
list: ResFileList;
|
|
949
|
+
}
|
|
950
|
+
export interface ResListModelStates {
|
|
951
|
+
pagination: ResPagination;
|
|
952
|
+
version: string;
|
|
953
|
+
list: ResModelStateList;
|
|
954
|
+
}
|
|
955
|
+
export interface ResListModels {
|
|
956
|
+
pagination: ResPagination;
|
|
957
|
+
version: string;
|
|
958
|
+
list: ResModelList;
|
|
959
|
+
}
|
|
960
|
+
export interface ResListOutputVersions {
|
|
961
|
+
pagination: ResPagination;
|
|
962
|
+
version: string;
|
|
963
|
+
list: ResOutputList;
|
|
964
|
+
}
|
|
965
|
+
export interface ResListSdtfs {
|
|
966
|
+
message?: string;
|
|
967
|
+
pagination: ResPagination;
|
|
968
|
+
version: string;
|
|
969
|
+
list: ResSdtfList;
|
|
970
|
+
}
|
|
971
|
+
export interface ResListTextures {
|
|
972
|
+
pagination: ResPagination;
|
|
973
|
+
version: string;
|
|
974
|
+
list: ResTextureList;
|
|
975
|
+
}
|
|
976
|
+
export interface ResLoadingCreditMetric {
|
|
977
|
+
credits: number;
|
|
978
|
+
count: number;
|
|
979
|
+
}
|
|
980
|
+
export interface ResLogMessage {
|
|
981
|
+
version: string;
|
|
982
|
+
}
|
|
983
|
+
export interface ResMinionInfo {
|
|
984
|
+
instances: {
|
|
985
|
+
[key: string]: ResMinionProcess;
|
|
986
|
+
};
|
|
987
|
+
tasks: {
|
|
988
|
+
[key: string]: ResMinionTask;
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
export interface ResMinionProcess {
|
|
992
|
+
tasks: {
|
|
993
|
+
[key: string]: ResMinionTask;
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
export interface ResMinionSystem {
|
|
997
|
+
minions: ResMinionInfo;
|
|
998
|
+
workers?: ResWorkerInfo;
|
|
999
|
+
scaleInCandidate?: ResWorkerScaleInCandidate;
|
|
1000
|
+
}
|
|
1001
|
+
export interface ResMinionTask {
|
|
1002
|
+
avgDuration: number;
|
|
1003
|
+
maxDuration: number;
|
|
1004
|
+
avgIntervalDiff: number;
|
|
1005
|
+
maxIntervalDiff: number;
|
|
1006
|
+
interval: number;
|
|
1007
|
+
latest: string;
|
|
1008
|
+
count: number;
|
|
1009
|
+
}
|
|
1010
|
+
export interface ResModel {
|
|
1011
|
+
allowed_libraries?: Array<string>;
|
|
1012
|
+
backlinkurl?: string;
|
|
1013
|
+
checkurl?: string;
|
|
1014
|
+
createdate?: string;
|
|
1015
|
+
documentid?: string;
|
|
1016
|
+
filename?: string;
|
|
1017
|
+
id: string;
|
|
1018
|
+
id2?: string;
|
|
1019
|
+
msg?: string;
|
|
1020
|
+
name?: string;
|
|
1021
|
+
org_id?: string;
|
|
1022
|
+
stat: ResModelStatus;
|
|
1023
|
+
user_id?: string;
|
|
1024
|
+
webhook_url?: string;
|
|
1025
|
+
webhook_token?: string;
|
|
1026
|
+
}
|
|
1027
|
+
export interface ResModelBlockingReasons {
|
|
1028
|
+
creditLimit: boolean;
|
|
1029
|
+
owner: boolean;
|
|
1030
|
+
backendPermission: boolean;
|
|
1031
|
+
pluginPermission: boolean;
|
|
1032
|
+
}
|
|
1033
|
+
export interface ResModelCleanupProcess {
|
|
1034
|
+
type: ResModelCleanupProcessType;
|
|
1035
|
+
timestamp_enqueued: string;
|
|
1036
|
+
total?: number;
|
|
1037
|
+
deleted?: number;
|
|
1038
|
+
}
|
|
1039
|
+
export declare const ResModelCleanupProcessType: {
|
|
1040
|
+
readonly DELETE_EXPORT_VERSION: "delete_export_version";
|
|
1041
|
+
readonly DELETE_MODEL_TEXTURE: "delete_model_texture";
|
|
1042
|
+
readonly DELETE_OUTPUT_VERSION: "delete_output_version";
|
|
1043
|
+
};
|
|
1044
|
+
export type ResModelCleanupProcessType = typeof ResModelCleanupProcessType[keyof typeof ResModelCleanupProcessType];
|
|
1045
|
+
export interface ResModelComputation {
|
|
1046
|
+
id: string;
|
|
1047
|
+
timestamp: number;
|
|
1048
|
+
timestamp_str: string;
|
|
1049
|
+
compute_request_id: string;
|
|
1050
|
+
exports: {
|
|
1051
|
+
[key: string]: string;
|
|
1052
|
+
};
|
|
1053
|
+
outputs: {
|
|
1054
|
+
[key: string]: string;
|
|
1055
|
+
};
|
|
1056
|
+
params: object;
|
|
1057
|
+
stats: ResModelComputationStats;
|
|
1058
|
+
status: ResComputationStatus;
|
|
1059
|
+
timestamp_fin: string;
|
|
1060
|
+
timestamp_req: string;
|
|
1061
|
+
timestamp_req_iso: string;
|
|
1062
|
+
timestamp_resp: string;
|
|
1063
|
+
msg?: string;
|
|
1064
|
+
limit?: ResComputationLimits;
|
|
1065
|
+
credits?: number;
|
|
1066
|
+
}
|
|
1067
|
+
export interface ResModelComputationStats {
|
|
1068
|
+
size_assets?: number;
|
|
1069
|
+
size_assets_storage?: number;
|
|
1070
|
+
time_completion: number;
|
|
1071
|
+
time_model_download: number;
|
|
1072
|
+
time_model_open: number;
|
|
1073
|
+
time_processing: number;
|
|
1074
|
+
time_check_stored: number;
|
|
1075
|
+
time_check_loaded: number;
|
|
1076
|
+
time_storage?: number;
|
|
1077
|
+
time_solver: number;
|
|
1078
|
+
time_solver_collect?: number;
|
|
1079
|
+
time_solver_ext: number;
|
|
1080
|
+
time_wait: number;
|
|
1081
|
+
time_cache_outputs?: number;
|
|
1082
|
+
model?: ResComputationComponents;
|
|
1083
|
+
cpu_time_check_stored?: number;
|
|
1084
|
+
cpu_time_check_loaded?: number;
|
|
1085
|
+
cpu_time_storage?: number;
|
|
1086
|
+
cpu_time_model_download?: number;
|
|
1087
|
+
cpu_time_model_open?: number;
|
|
1088
|
+
cpu_time_solver?: number;
|
|
1089
|
+
cpu_time_solver_collect?: number;
|
|
1090
|
+
cpu_time_solver_ext?: number;
|
|
1091
|
+
cpu_time_cache_outputs?: number;
|
|
1092
|
+
time_model_prepare?: number;
|
|
1093
|
+
cpu_time_model_prepare?: number;
|
|
1094
|
+
}
|
|
1095
|
+
export interface ResModelCreditMetric {
|
|
1096
|
+
timestamp: string;
|
|
1097
|
+
isCompilationDone: boolean;
|
|
1098
|
+
ar: ResArCreditMetric;
|
|
1099
|
+
loading: ResLoadingCreditMetric;
|
|
1100
|
+
limited: ResLimitedCreditMetric;
|
|
1101
|
+
_default: ResDefaultCreditMetric;
|
|
1102
|
+
modelId: string;
|
|
1103
|
+
userId?: boolean | null;
|
|
1104
|
+
orgId?: boolean | null;
|
|
1105
|
+
}
|
|
1106
|
+
export interface ResModelList {
|
|
1107
|
+
file?: Array<ResFileInfo>;
|
|
1108
|
+
sdtf?: Array<ResSdtfInfo>;
|
|
1109
|
+
model: Array<ResModel>;
|
|
1110
|
+
modelState?: Array<ResModelStateInfo>;
|
|
1111
|
+
output?: Array<ResOutput>;
|
|
1112
|
+
export?: Array<ResExport>;
|
|
1113
|
+
texture?: Array<ResTexture>;
|
|
1114
|
+
}
|
|
1115
|
+
export interface ResModelOrganizationCreditMetric {
|
|
1116
|
+
timestamp: string;
|
|
1117
|
+
isCompilationDone: boolean;
|
|
1118
|
+
ar: ResArCreditMetric;
|
|
1119
|
+
loading: ResLoadingCreditMetric;
|
|
1120
|
+
limited: ResLimitedCreditMetric;
|
|
1121
|
+
_default: ResDefaultCreditMetric;
|
|
1122
|
+
modelId: string;
|
|
1123
|
+
orgId: string;
|
|
1124
|
+
}
|
|
1125
|
+
export interface ResModelSettings {
|
|
1126
|
+
use_cdn?: boolean;
|
|
1127
|
+
cdn_supported?: boolean;
|
|
1128
|
+
blockingReasons?: ResModelBlockingReasons;
|
|
1129
|
+
}
|
|
1130
|
+
export interface ResModelState {
|
|
1131
|
+
parameters: {
|
|
1132
|
+
[key: string]: ResParameterValue;
|
|
1133
|
+
};
|
|
1134
|
+
data?: {
|
|
1135
|
+
[key: string]: any;
|
|
1136
|
+
};
|
|
1137
|
+
id: string;
|
|
1138
|
+
modelId: string;
|
|
1139
|
+
createdate: string;
|
|
1140
|
+
imageUrl?: string;
|
|
1141
|
+
}
|
|
1142
|
+
export interface ResModelStateAsset {
|
|
1143
|
+
file?: {
|
|
1144
|
+
[key: string]: ResAssetDefinition;
|
|
1145
|
+
};
|
|
1146
|
+
sdtf?: Array<ResAssetDefinition>;
|
|
1147
|
+
modelState: ResAssetDefinition;
|
|
1148
|
+
}
|
|
1149
|
+
export interface ResModelStateData {
|
|
1150
|
+
parameters: {
|
|
1151
|
+
[key: string]: ResParameterValue;
|
|
1152
|
+
};
|
|
1153
|
+
data?: {
|
|
1154
|
+
[key: string]: any;
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
export interface ResModelStateInfo {
|
|
1158
|
+
id: string;
|
|
1159
|
+
parameters: {
|
|
1160
|
+
[key: string]: ResParameterValue;
|
|
1161
|
+
};
|
|
1162
|
+
hasImage: boolean;
|
|
1163
|
+
hasGltf: boolean;
|
|
1164
|
+
hasUsdz: boolean;
|
|
1165
|
+
}
|
|
1166
|
+
export interface ResModelStateList {
|
|
1167
|
+
file?: Array<ResFileInfo>;
|
|
1168
|
+
sdtf?: Array<ResSdtfInfo>;
|
|
1169
|
+
model?: Array<ResModel>;
|
|
1170
|
+
modelState: Array<ResModelStateInfo>;
|
|
1171
|
+
output?: Array<ResOutput>;
|
|
1172
|
+
export?: Array<ResExport>;
|
|
1173
|
+
texture?: Array<ResTexture>;
|
|
1174
|
+
}
|
|
1175
|
+
export type ResModelStateOrData = ResModelState | ResModelStateData;
|
|
1176
|
+
export declare const ResModelStatus: {
|
|
1177
|
+
readonly UNKNOWN: "unknown";
|
|
1178
|
+
readonly NOT_UPLOADED: "not_uploaded";
|
|
1179
|
+
readonly UPLOADED: "uploaded";
|
|
1180
|
+
readonly PENDING: "pending";
|
|
1181
|
+
readonly CONFIRMED: "confirmed";
|
|
1182
|
+
readonly DENIED: "denied";
|
|
1183
|
+
readonly DELETED: "deleted";
|
|
1184
|
+
};
|
|
1185
|
+
export type ResModelStatus = typeof ResModelStatus[keyof typeof ResModelStatus];
|
|
1186
|
+
export interface ResModelUserCreditMetric {
|
|
1187
|
+
timestamp: string;
|
|
1188
|
+
isCompilationDone: boolean;
|
|
1189
|
+
ar: ResArCreditMetric;
|
|
1190
|
+
loading: ResLoadingCreditMetric;
|
|
1191
|
+
limited: ResLimitedCreditMetric;
|
|
1192
|
+
_default: ResDefaultCreditMetric;
|
|
1193
|
+
modelId: string;
|
|
1194
|
+
userId: string;
|
|
1195
|
+
}
|
|
1196
|
+
export interface ResOrganizationCreditMetric {
|
|
1197
|
+
timestamp: string;
|
|
1198
|
+
isCompilationDone: boolean;
|
|
1199
|
+
ar: ResArCreditMetric;
|
|
1200
|
+
loading: ResLoadingCreditMetric;
|
|
1201
|
+
limited: ResLimitedCreditMetric;
|
|
1202
|
+
_default: ResDefaultCreditMetric;
|
|
1203
|
+
modelId?: boolean | null;
|
|
1204
|
+
orgId: string;
|
|
1205
|
+
}
|
|
1206
|
+
export interface ResOutput {
|
|
1207
|
+
id: string;
|
|
1208
|
+
uid?: string;
|
|
1209
|
+
name: string;
|
|
1210
|
+
material?: string;
|
|
1211
|
+
chunks?: Array<ResOutputChunk>;
|
|
1212
|
+
dependency: Array<string>;
|
|
1213
|
+
group?: CommonsGroup;
|
|
1214
|
+
order?: number;
|
|
1215
|
+
tooltip?: string;
|
|
1216
|
+
displayname?: string;
|
|
1217
|
+
hidden: boolean;
|
|
1218
|
+
typeId?: string;
|
|
1219
|
+
typeName?: string;
|
|
1220
|
+
version: string;
|
|
1221
|
+
delay?: number;
|
|
1222
|
+
content?: Array<ResOutputContent>;
|
|
1223
|
+
bbmin?: Array<number>;
|
|
1224
|
+
bbmax?: Array<number>;
|
|
1225
|
+
msg?: string;
|
|
1226
|
+
status_computation?: ResComputationStatus;
|
|
1227
|
+
status_collect?: ResComputationStatus;
|
|
1228
|
+
}
|
|
1229
|
+
export interface ResOutputChunk {
|
|
1230
|
+
id: string;
|
|
1231
|
+
name: string;
|
|
1232
|
+
typeHint: string;
|
|
1233
|
+
tooltip?: string;
|
|
1234
|
+
displayname: string;
|
|
1235
|
+
hidden: boolean;
|
|
1236
|
+
}
|
|
1237
|
+
export interface ResOutputContent {
|
|
1238
|
+
href?: string;
|
|
1239
|
+
size?: number;
|
|
1240
|
+
name?: string;
|
|
1241
|
+
transformations?: Array<Array<number>>;
|
|
1242
|
+
format: string;
|
|
1243
|
+
msg?: string;
|
|
1244
|
+
data?: any | null;
|
|
1245
|
+
contentType?: string;
|
|
1246
|
+
}
|
|
1247
|
+
export interface ResOutputDefinition {
|
|
1248
|
+
id: string;
|
|
1249
|
+
uid?: string;
|
|
1250
|
+
name: string;
|
|
1251
|
+
material?: string;
|
|
1252
|
+
chunks?: Array<ResOutputChunk>;
|
|
1253
|
+
dependency: Array<string>;
|
|
1254
|
+
group?: CommonsGroup;
|
|
1255
|
+
order?: number;
|
|
1256
|
+
tooltip?: string;
|
|
1257
|
+
displayname?: string;
|
|
1258
|
+
hidden: boolean;
|
|
1259
|
+
typeId?: string;
|
|
1260
|
+
typeName?: string;
|
|
1261
|
+
version?: boolean | null;
|
|
1262
|
+
}
|
|
1263
|
+
export interface ResOutputList {
|
|
1264
|
+
file?: Array<ResFileInfo>;
|
|
1265
|
+
sdtf?: Array<ResSdtfInfo>;
|
|
1266
|
+
model?: Array<ResModel>;
|
|
1267
|
+
modelState?: Array<ResModelStateInfo>;
|
|
1268
|
+
output: Array<ResOutput>;
|
|
1269
|
+
export?: Array<ResExport>;
|
|
1270
|
+
texture?: Array<ResTexture>;
|
|
1271
|
+
}
|
|
1272
|
+
export type ResOutputOrDefinition = ResOutput | ResOutputDefinition;
|
|
1273
|
+
export interface ResPagination {
|
|
1274
|
+
limit: number;
|
|
1275
|
+
next_offset?: string;
|
|
1276
|
+
}
|
|
1277
|
+
export interface ResParameter {
|
|
1278
|
+
id: string;
|
|
1279
|
+
choices?: Array<string>;
|
|
1280
|
+
decimalplaces?: number;
|
|
1281
|
+
defval?: string;
|
|
1282
|
+
expression?: string;
|
|
1283
|
+
format?: Array<string>;
|
|
1284
|
+
min?: number;
|
|
1285
|
+
max?: number;
|
|
1286
|
+
umin?: number;
|
|
1287
|
+
umax?: number;
|
|
1288
|
+
vmin?: number;
|
|
1289
|
+
vmax?: number;
|
|
1290
|
+
interval?: number;
|
|
1291
|
+
name: string;
|
|
1292
|
+
type: ResParameterType;
|
|
1293
|
+
visualization?: ResVisualizationType;
|
|
1294
|
+
structure?: ResStructureType;
|
|
1295
|
+
group?: CommonsGroup;
|
|
1296
|
+
hint?: string;
|
|
1297
|
+
order?: number;
|
|
1298
|
+
tooltip?: string;
|
|
1299
|
+
displayname?: string;
|
|
1300
|
+
hidden: boolean;
|
|
1301
|
+
settings?: object;
|
|
1302
|
+
}
|
|
1303
|
+
export declare const ResParameterType: {
|
|
1304
|
+
readonly S_BITMAP: "sBitmap";
|
|
1305
|
+
readonly S_BOOL: "sBool";
|
|
1306
|
+
readonly S_BOX: "sBox";
|
|
1307
|
+
readonly S_BREP: "sBrep";
|
|
1308
|
+
readonly S_CIRCLE: "sCircle";
|
|
1309
|
+
readonly S_COLOR: "sColor";
|
|
1310
|
+
readonly S_CURVE: "sCurve";
|
|
1311
|
+
readonly S_DOMAIN: "sDomain";
|
|
1312
|
+
readonly S_DOMAIN_2D: "sDomain2D";
|
|
1313
|
+
readonly S_INTEGER: "sInteger";
|
|
1314
|
+
readonly S_LINE: "sLine";
|
|
1315
|
+
readonly S_MESH: "sMesh";
|
|
1316
|
+
readonly S_NUMBER: "sNumber";
|
|
1317
|
+
readonly S_PLANE: "sPlane";
|
|
1318
|
+
readonly S_POINT: "sPoint";
|
|
1319
|
+
readonly S_RECTANGLE: "sRectangle";
|
|
1320
|
+
readonly S_STRING: "sString";
|
|
1321
|
+
readonly S_SUBDIV: "sSubdiv";
|
|
1322
|
+
readonly S_SURFACE: "sSurface";
|
|
1323
|
+
readonly S_TIME: "sTime";
|
|
1324
|
+
readonly S_VECTOR: "sVector";
|
|
1325
|
+
readonly BOOL: "Bool";
|
|
1326
|
+
readonly COLOR: "Color";
|
|
1327
|
+
readonly DRAWING: "Drawing";
|
|
1328
|
+
readonly EVEN: "Even";
|
|
1329
|
+
readonly FILE: "File";
|
|
1330
|
+
readonly FLOAT: "Float";
|
|
1331
|
+
readonly INT: "Int";
|
|
1332
|
+
readonly INTERACTION: "Interaction";
|
|
1333
|
+
readonly ODD: "Odd";
|
|
1334
|
+
readonly STRING: "String";
|
|
1335
|
+
readonly STRINGLIST: "StringList";
|
|
1336
|
+
readonly TIME: "Time";
|
|
1337
|
+
readonly UNKNOWN: "unknown";
|
|
1338
|
+
};
|
|
1339
|
+
export type ResParameterType = typeof ResParameterType[keyof typeof ResParameterType];
|
|
1340
|
+
export type ResParameterValue = ResBasicParameter | ResStypeParameter;
|
|
1341
|
+
export interface ResPartActions {
|
|
1342
|
+
actions?: Array<ResAction>;
|
|
1343
|
+
}
|
|
1344
|
+
export interface ResPartAnalytics {
|
|
1345
|
+
analytics?: ResAnalytics;
|
|
1346
|
+
}
|
|
1347
|
+
export interface ResPartAuthorizationGroup {
|
|
1348
|
+
auth_group?: string;
|
|
1349
|
+
}
|
|
1350
|
+
export interface ResPartCleanup {
|
|
1351
|
+
cleanup?: Array<ResModelCleanupProcess>;
|
|
1352
|
+
}
|
|
1353
|
+
export interface ResPartDecryptedTicket {
|
|
1354
|
+
decryptedTicket?: ResTicket;
|
|
1355
|
+
}
|
|
1356
|
+
export interface ResPartExports {
|
|
1357
|
+
exports?: {
|
|
1358
|
+
[key: string]: ResExportOrDefinition;
|
|
1359
|
+
};
|
|
1360
|
+
}
|
|
1361
|
+
export interface ResPartFile {
|
|
1362
|
+
file?: ResFile;
|
|
1363
|
+
}
|
|
1364
|
+
export interface ResPartGltfUpload {
|
|
1365
|
+
gltf?: ResGltfUpload;
|
|
1366
|
+
}
|
|
1367
|
+
export interface ResPartMessage {
|
|
1368
|
+
message?: string;
|
|
1369
|
+
}
|
|
1370
|
+
export interface ResPartModel {
|
|
1371
|
+
model?: ResModel;
|
|
1372
|
+
}
|
|
1373
|
+
export interface ResPartModelComputation {
|
|
1374
|
+
computations?: Array<ResModelComputation>;
|
|
1375
|
+
}
|
|
1376
|
+
export interface ResPartModelState {
|
|
1377
|
+
modelState?: ResModelState;
|
|
1378
|
+
}
|
|
1379
|
+
export interface ResPartModelStateData {
|
|
1380
|
+
modelState?: ResModelStateData;
|
|
1381
|
+
}
|
|
1382
|
+
export interface ResPartOutputs {
|
|
1383
|
+
outputs?: {
|
|
1384
|
+
[key: string]: ResOutputOrDefinition;
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
export interface ResPartPagination {
|
|
1388
|
+
pagination?: ResPagination;
|
|
1389
|
+
}
|
|
1390
|
+
export interface ResPartParameters {
|
|
1391
|
+
parameters?: {
|
|
1392
|
+
[key: string]: ResParameter;
|
|
1393
|
+
};
|
|
1394
|
+
}
|
|
1395
|
+
export interface ResPartPlugins {
|
|
1396
|
+
plugins?: ResPlugins;
|
|
1397
|
+
}
|
|
1398
|
+
export interface ResPartSessionId {
|
|
1399
|
+
sessionId?: string;
|
|
1400
|
+
}
|
|
1401
|
+
export interface ResPartSetting {
|
|
1402
|
+
setting?: ResSettings;
|
|
1403
|
+
}
|
|
1404
|
+
export interface ResPartStatistic {
|
|
1405
|
+
statistic?: ResStatistic;
|
|
1406
|
+
}
|
|
1407
|
+
export interface ResPartTemplates {
|
|
1408
|
+
templates?: Array<ResTemplate>;
|
|
1409
|
+
}
|
|
1410
|
+
export interface ResPartTicket {
|
|
1411
|
+
ticket?: string;
|
|
1412
|
+
}
|
|
1413
|
+
export interface ResPartVersion {
|
|
1414
|
+
version?: string;
|
|
1415
|
+
}
|
|
1416
|
+
export interface ResPartViewer {
|
|
1417
|
+
viewer?: ResViewer;
|
|
1418
|
+
}
|
|
1419
|
+
export interface ResPartViewerSettingsVersion {
|
|
1420
|
+
viewerSettingsVersion?: string;
|
|
1421
|
+
}
|
|
1422
|
+
export interface ResPartWarnings {
|
|
1423
|
+
warnings?: Array<string>;
|
|
1424
|
+
}
|
|
1425
|
+
export interface ResPlugins {
|
|
1426
|
+
libraries?: Array<ResPluginsLibrary>;
|
|
1427
|
+
}
|
|
1428
|
+
export interface ResPluginsLibrary {
|
|
1429
|
+
id: string;
|
|
1430
|
+
version: string;
|
|
1431
|
+
name: string;
|
|
1432
|
+
author: string;
|
|
1433
|
+
assemblyFullName?: string;
|
|
1434
|
+
assemblyVersion?: string;
|
|
1435
|
+
}
|
|
1436
|
+
export interface ResRateLimitedCombinedMetric {
|
|
1437
|
+
credits: number;
|
|
1438
|
+
}
|
|
1439
|
+
export interface ResRateLimitedComputationMetric {
|
|
1440
|
+
count: number;
|
|
1441
|
+
credits: number;
|
|
1442
|
+
duration: number;
|
|
1443
|
+
countPerChunks: {
|
|
1444
|
+
[key: string]: number;
|
|
1445
|
+
};
|
|
1446
|
+
}
|
|
1447
|
+
export interface ResRateLimitedExportMetric {
|
|
1448
|
+
credits: number;
|
|
1449
|
+
}
|
|
1450
|
+
export interface ResRateLimitedOutputMetric {
|
|
1451
|
+
count: number;
|
|
1452
|
+
}
|
|
1453
|
+
export interface ResRateLimitedSessionMetric {
|
|
1454
|
+
count: number;
|
|
1455
|
+
credits: number;
|
|
1456
|
+
duration: number;
|
|
1457
|
+
}
|
|
1458
|
+
export interface ResScaleInCandidate {
|
|
1459
|
+
minions?: ResMinionInfo;
|
|
1460
|
+
workers?: ResWorkerInfo;
|
|
1461
|
+
scaleInCandidate: ResWorkerScaleInCandidate;
|
|
1462
|
+
}
|
|
1463
|
+
export interface ResSdtfAsset {
|
|
1464
|
+
file?: {
|
|
1465
|
+
[key: string]: ResAssetDefinition;
|
|
1466
|
+
};
|
|
1467
|
+
sdtf: Array<ResAssetDefinition>;
|
|
1468
|
+
modelState?: ResAssetDefinition;
|
|
1469
|
+
}
|
|
1470
|
+
export interface ResSdtfInfo {
|
|
1471
|
+
id: string;
|
|
1472
|
+
namespace: string;
|
|
1473
|
+
size: number;
|
|
1474
|
+
}
|
|
1475
|
+
export interface ResSdtfList {
|
|
1476
|
+
file?: Array<ResFileInfo>;
|
|
1477
|
+
sdtf: Array<ResSdtfInfo>;
|
|
1478
|
+
model?: Array<ResModel>;
|
|
1479
|
+
modelState?: Array<ResModelStateInfo>;
|
|
1480
|
+
output?: Array<ResOutput>;
|
|
1481
|
+
export?: Array<ResExport>;
|
|
1482
|
+
texture?: Array<ResTexture>;
|
|
1483
|
+
}
|
|
1484
|
+
export interface ResSettings {
|
|
1485
|
+
auth?: ResAuthorizationSettings;
|
|
1486
|
+
compute?: ResComputeSettings;
|
|
1487
|
+
model?: ResModelSettings;
|
|
1488
|
+
}
|
|
1489
|
+
export interface ResStatistic {
|
|
1490
|
+
comptime?: number;
|
|
1491
|
+
lastsession?: string;
|
|
1492
|
+
lastview?: string;
|
|
1493
|
+
memUsage?: number;
|
|
1494
|
+
numcomp?: number;
|
|
1495
|
+
numsessions?: number;
|
|
1496
|
+
requesttime?: number;
|
|
1497
|
+
size?: number;
|
|
1498
|
+
}
|
|
1499
|
+
export declare const ResStructureType: {
|
|
1500
|
+
readonly ITEM: "item";
|
|
1501
|
+
readonly LIST: "list";
|
|
1502
|
+
readonly TREE: "tree";
|
|
1503
|
+
};
|
|
1504
|
+
export type ResStructureType = typeof ResStructureType[keyof typeof ResStructureType];
|
|
1505
|
+
export interface ResStypeParameter {
|
|
1506
|
+
value?: string;
|
|
1507
|
+
asset?: CommmonsParameterAsset;
|
|
1508
|
+
}
|
|
1509
|
+
export interface ResSystem {
|
|
1510
|
+
minions?: ResMinionInfo;
|
|
1511
|
+
workers?: ResWorkerInfo;
|
|
1512
|
+
scaleInCandidate?: ResWorkerScaleInCandidate;
|
|
1513
|
+
}
|
|
1514
|
+
export interface ResSystemCreditMetric {
|
|
1515
|
+
timestamp: string;
|
|
1516
|
+
isCompilationDone: boolean;
|
|
1517
|
+
ar: ResArCreditMetric;
|
|
1518
|
+
loading: ResLoadingCreditMetric;
|
|
1519
|
+
limited: ResLimitedCreditMetric;
|
|
1520
|
+
_default: ResDefaultCreditMetric;
|
|
1521
|
+
system: boolean;
|
|
1522
|
+
}
|
|
1523
|
+
export interface ResTemplate {
|
|
1524
|
+
name: string;
|
|
1525
|
+
title: string;
|
|
1526
|
+
data: object;
|
|
1527
|
+
}
|
|
1528
|
+
export interface ResTexture {
|
|
1529
|
+
modelId: string;
|
|
1530
|
+
textureId: string;
|
|
1531
|
+
url?: string;
|
|
1532
|
+
width?: number;
|
|
1533
|
+
height?: number;
|
|
1534
|
+
isAssetAvailable: boolean;
|
|
1535
|
+
}
|
|
1536
|
+
export interface ResTextureList {
|
|
1537
|
+
file?: Array<ResFileInfo>;
|
|
1538
|
+
sdtf?: Array<ResSdtfInfo>;
|
|
1539
|
+
model?: Array<ResModel>;
|
|
1540
|
+
modelState?: Array<ResModelStateInfo>;
|
|
1541
|
+
output?: Array<ResOutput>;
|
|
1542
|
+
export?: Array<ResExport>;
|
|
1543
|
+
texture: Array<ResTexture>;
|
|
1544
|
+
}
|
|
1545
|
+
export interface ResTicket {
|
|
1546
|
+
accessdomains: Array<string>;
|
|
1547
|
+
author: boolean;
|
|
1548
|
+
pub: boolean;
|
|
1549
|
+
until: string;
|
|
1550
|
+
use_id2: boolean;
|
|
1551
|
+
type: ResTicketType;
|
|
1552
|
+
model_id: string;
|
|
1553
|
+
}
|
|
1554
|
+
export interface ResTicketAuthorization {
|
|
1555
|
+
accessdomains: Array<string>;
|
|
1556
|
+
backendaccess: boolean;
|
|
1557
|
+
pub: boolean;
|
|
1558
|
+
}
|
|
1559
|
+
export declare const ResTicketType: {
|
|
1560
|
+
readonly BACKEND: "backend";
|
|
1561
|
+
readonly NONE: "";
|
|
1562
|
+
};
|
|
1563
|
+
export type ResTicketType = typeof ResTicketType[keyof typeof ResTicketType];
|
|
1564
|
+
export interface ResTokenAuthorization {
|
|
1565
|
+
auth_groups?: Array<string>;
|
|
1566
|
+
require_iframe?: boolean;
|
|
1567
|
+
require_token?: boolean;
|
|
1568
|
+
}
|
|
1569
|
+
export interface ResUpdateExportDefinitions {
|
|
1570
|
+
version: string;
|
|
1571
|
+
}
|
|
1572
|
+
export interface ResUpdateModel {
|
|
1573
|
+
file: ResFile;
|
|
1574
|
+
message?: string;
|
|
1575
|
+
model: ResModel;
|
|
1576
|
+
setting: ResSettings;
|
|
1577
|
+
statistic: ResStatistic;
|
|
1578
|
+
version: string;
|
|
1579
|
+
}
|
|
1580
|
+
export interface ResUpdateModelConfig {
|
|
1581
|
+
version: string;
|
|
1582
|
+
}
|
|
1583
|
+
export interface ResUpdateOutputDefinitions {
|
|
1584
|
+
version: string;
|
|
1585
|
+
}
|
|
1586
|
+
export interface ResUpdateParameterDefaultValues {
|
|
1587
|
+
version: string;
|
|
1588
|
+
}
|
|
1589
|
+
export interface ResUpdateParameterDefinitions {
|
|
1590
|
+
version: string;
|
|
1591
|
+
}
|
|
1592
|
+
export interface ResUploadFile {
|
|
1593
|
+
message?: string;
|
|
1594
|
+
version: string;
|
|
1595
|
+
asset: ResFileAsset;
|
|
1596
|
+
}
|
|
1597
|
+
export interface ResUploadGltf {
|
|
1598
|
+
gltf: ResGltfUpload;
|
|
1599
|
+
version: string;
|
|
1600
|
+
}
|
|
1601
|
+
export interface ResUploadSdtf {
|
|
1602
|
+
message?: string;
|
|
1603
|
+
version: string;
|
|
1604
|
+
asset: ResSdtfAsset;
|
|
1605
|
+
}
|
|
1606
|
+
export interface ResUserCreditMetric {
|
|
1607
|
+
timestamp: string;
|
|
1608
|
+
isCompilationDone: boolean;
|
|
1609
|
+
ar: ResArCreditMetric;
|
|
1610
|
+
loading: ResLoadingCreditMetric;
|
|
1611
|
+
limited: ResLimitedCreditMetric;
|
|
1612
|
+
_default: ResDefaultCreditMetric;
|
|
1613
|
+
modelId?: boolean | null;
|
|
1614
|
+
userId: string;
|
|
1615
|
+
}
|
|
1616
|
+
export interface ResViewer {
|
|
1617
|
+
config: {
|
|
1618
|
+
[key: string]: any;
|
|
1619
|
+
};
|
|
1620
|
+
}
|
|
1621
|
+
export declare const ResVisualizationType: {
|
|
1622
|
+
readonly UNKNOWN: "unknown";
|
|
1623
|
+
readonly BUTTON: "button";
|
|
1624
|
+
readonly CALENDAR: "calendar";
|
|
1625
|
+
readonly CHECKLIST: "checklist";
|
|
1626
|
+
readonly CLOCK: "clock";
|
|
1627
|
+
readonly CYCLE: "cycle";
|
|
1628
|
+
readonly DIAL: "dial";
|
|
1629
|
+
readonly DROPDOWN: "dropdown";
|
|
1630
|
+
readonly GEOMETRY: "geometry";
|
|
1631
|
+
readonly IMAGE: "image";
|
|
1632
|
+
readonly SEQUENCE: "sequence";
|
|
1633
|
+
readonly SLIDER: "slider";
|
|
1634
|
+
readonly SWATCH: "swatch";
|
|
1635
|
+
readonly TEXT: "text";
|
|
1636
|
+
readonly TOGGLE: "toggle";
|
|
1637
|
+
};
|
|
1638
|
+
export type ResVisualizationType = typeof ResVisualizationType[keyof typeof ResVisualizationType];
|
|
1639
|
+
export interface ResWarningComponent {
|
|
1640
|
+
component?: string;
|
|
1641
|
+
instance: string;
|
|
1642
|
+
name: string;
|
|
1643
|
+
nick_name: string;
|
|
1644
|
+
warnings: Array<string>;
|
|
1645
|
+
}
|
|
1646
|
+
export interface ResWorkerInfo {
|
|
1647
|
+
grasshopperVersion: string;
|
|
1648
|
+
plugins: ResWorkerPlugins;
|
|
1649
|
+
rhinoVersion: string;
|
|
1650
|
+
shapeDiverVersion: string;
|
|
1651
|
+
}
|
|
1652
|
+
export interface ResWorkerPluginComponent {
|
|
1653
|
+
id: string;
|
|
1654
|
+
name: string;
|
|
1655
|
+
isScriptComponent?: boolean;
|
|
1656
|
+
}
|
|
1657
|
+
export interface ResWorkerPlugins {
|
|
1658
|
+
installed: Array<ResInstalledWorkerPlugin>;
|
|
1659
|
+
allowed: Array<ResAllowedWorkerPlugin>;
|
|
1660
|
+
inconsistent: Array<string>;
|
|
1661
|
+
}
|
|
1662
|
+
export interface ResWorkerScaleInCandidate {
|
|
1663
|
+
success: boolean;
|
|
1664
|
+
instanceId?: string;
|
|
1665
|
+
}
|
|
1666
|
+
export interface ResWorkerSystem {
|
|
1667
|
+
minions?: ResMinionInfo;
|
|
1668
|
+
workers: ResWorkerInfo;
|
|
1669
|
+
scaleInCandidate?: ResWorkerScaleInCandidate;
|
|
1670
|
+
}
|
|
1671
|
+
//# sourceMappingURL=index.d.ts.map
|