@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,301 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Geometry Backend API v2
|
|
5
|
+
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
import { BaseAPI } from '../../base';
|
|
17
|
+
import type {
|
|
18
|
+
ResDeleteModel,
|
|
19
|
+
ResError,
|
|
20
|
+
ResGetMinionsInfo,
|
|
21
|
+
ResGetScaleInCandidate,
|
|
22
|
+
ResGetWorkersInfo,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface CreateSignedUrlRequest {
|
|
26
|
+
endpoint: string;
|
|
27
|
+
encodedUri: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface EraseModelRequest {
|
|
31
|
+
modelId: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export class SystemApi extends BaseAPI {
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Creates request options for createSignedUrl without sending the request
|
|
41
|
+
*/
|
|
42
|
+
async createSignedUrlRequestOpts(requestParameters: CreateSignedUrlRequest): Promise<runtime.RequestOpts> {
|
|
43
|
+
if (requestParameters['endpoint'] == null) {
|
|
44
|
+
throw new runtime.RequiredError(
|
|
45
|
+
'endpoint',
|
|
46
|
+
'Required parameter "endpoint" was null or undefined when calling createSignedUrl().'
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (requestParameters['encodedUri'] == null) {
|
|
51
|
+
throw new runtime.RequiredError(
|
|
52
|
+
'encodedUri',
|
|
53
|
+
'Required parameter "encodedUri" was null or undefined when calling createSignedUrl().'
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const queryParameters: any = {};
|
|
58
|
+
|
|
59
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
60
|
+
|
|
61
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
62
|
+
const token = this.configuration.accessToken;
|
|
63
|
+
const tokenString = await token("JwtAuth", []);
|
|
64
|
+
|
|
65
|
+
if (tokenString) {
|
|
66
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
let urlPath = `/api/v2/system/sign/cdn/{endpoint}/{encodedUri}`;
|
|
71
|
+
urlPath = urlPath.replace('{endpoint}', encodeURIComponent(String(requestParameters['endpoint'])));
|
|
72
|
+
urlPath = urlPath.replace('{encodedUri}', encodeURIComponent(String(requestParameters['encodedUri'])));
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
path: urlPath,
|
|
76
|
+
method: 'GET',
|
|
77
|
+
headers: headerParameters,
|
|
78
|
+
query: queryParameters,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Subject-Restriction: __backend__.
|
|
84
|
+
* Create a signed URL for the specified endpoint and target.
|
|
85
|
+
*/
|
|
86
|
+
async createSignedUrlRaw(requestParameters: CreateSignedUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
87
|
+
const requestOptions = await this.createSignedUrlRequestOpts(requestParameters);
|
|
88
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
89
|
+
|
|
90
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
91
|
+
return new runtime.JSONApiResponse<string>(response);
|
|
92
|
+
} else {
|
|
93
|
+
return new runtime.TextApiResponse(response) as any;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Subject-Restriction: __backend__.
|
|
99
|
+
* Create a signed URL for the specified endpoint and target.
|
|
100
|
+
*/
|
|
101
|
+
async createSignedUrl(endpoint: string, encodedUri: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
102
|
+
const response = await this.createSignedUrlRaw({ endpoint: endpoint, encodedUri: encodedUri }, initOverrides);
|
|
103
|
+
return await response.value();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Creates request options for eraseModel without sending the request
|
|
108
|
+
*/
|
|
109
|
+
async eraseModelRequestOpts(requestParameters: EraseModelRequest): Promise<runtime.RequestOpts> {
|
|
110
|
+
if (requestParameters['modelId'] == null) {
|
|
111
|
+
throw new runtime.RequiredError(
|
|
112
|
+
'modelId',
|
|
113
|
+
'Required parameter "modelId" was null or undefined when calling eraseModel().'
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const queryParameters: any = {};
|
|
118
|
+
|
|
119
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
120
|
+
|
|
121
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
122
|
+
const token = this.configuration.accessToken;
|
|
123
|
+
const tokenString = await token("JwtAuth", []);
|
|
124
|
+
|
|
125
|
+
if (tokenString) {
|
|
126
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
let urlPath = `/api/v2/system/model/{modelId}`;
|
|
131
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
path: urlPath,
|
|
135
|
+
method: 'DELETE',
|
|
136
|
+
headers: headerParameters,
|
|
137
|
+
query: queryParameters,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Subject-Restriction: __backend__. Permissions: * `delete.hard` - __required__.
|
|
143
|
+
* Delete model permanently.
|
|
144
|
+
*/
|
|
145
|
+
async eraseModelRaw(requestParameters: EraseModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResDeleteModel>> {
|
|
146
|
+
const requestOptions = await this.eraseModelRequestOpts(requestParameters);
|
|
147
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
148
|
+
|
|
149
|
+
return new runtime.JSONApiResponse(response);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Subject-Restriction: __backend__. Permissions: * `delete.hard` - __required__.
|
|
154
|
+
* Delete model permanently.
|
|
155
|
+
*/
|
|
156
|
+
async eraseModel(modelId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResDeleteModel> {
|
|
157
|
+
const response = await this.eraseModelRaw({ modelId: modelId }, initOverrides);
|
|
158
|
+
return await response.value();
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Creates request options for getMinionsInfo without sending the request
|
|
163
|
+
*/
|
|
164
|
+
async getMinionsInfoRequestOpts(): Promise<runtime.RequestOpts> {
|
|
165
|
+
const queryParameters: any = {};
|
|
166
|
+
|
|
167
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
|
+
|
|
169
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
170
|
+
const token = this.configuration.accessToken;
|
|
171
|
+
const tokenString = await token("JwtAuth", []);
|
|
172
|
+
|
|
173
|
+
if (tokenString) {
|
|
174
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
178
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
let urlPath = `/api/v2/system/minions/info`;
|
|
182
|
+
|
|
183
|
+
return {
|
|
184
|
+
path: urlPath,
|
|
185
|
+
method: 'GET',
|
|
186
|
+
headers: headerParameters,
|
|
187
|
+
query: queryParameters,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Subject-Restriction: __backend__.
|
|
193
|
+
* Get system information about the Geometry Minions.
|
|
194
|
+
*/
|
|
195
|
+
async getMinionsInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResGetMinionsInfo>> {
|
|
196
|
+
const requestOptions = await this.getMinionsInfoRequestOpts();
|
|
197
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
198
|
+
|
|
199
|
+
return new runtime.JSONApiResponse(response);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Subject-Restriction: __backend__.
|
|
204
|
+
* Get system information about the Geometry Minions.
|
|
205
|
+
*/
|
|
206
|
+
async getMinionsInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResGetMinionsInfo> {
|
|
207
|
+
const response = await this.getMinionsInfoRaw(initOverrides);
|
|
208
|
+
return await response.value();
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Creates request options for getScaleInCandidate without sending the request
|
|
213
|
+
*/
|
|
214
|
+
async getScaleInCandidateRequestOpts(): Promise<runtime.RequestOpts> {
|
|
215
|
+
const queryParameters: any = {};
|
|
216
|
+
|
|
217
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
218
|
+
|
|
219
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
220
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
let urlPath = `/api/v2/system/workers/scale-in-candidate`;
|
|
224
|
+
|
|
225
|
+
return {
|
|
226
|
+
path: urlPath,
|
|
227
|
+
method: 'GET',
|
|
228
|
+
headers: headerParameters,
|
|
229
|
+
query: queryParameters,
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Get a Geometry Worker that is a candidate for scaling in.
|
|
235
|
+
*/
|
|
236
|
+
async getScaleInCandidateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResGetScaleInCandidate>> {
|
|
237
|
+
const requestOptions = await this.getScaleInCandidateRequestOpts();
|
|
238
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
239
|
+
|
|
240
|
+
return new runtime.JSONApiResponse(response);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Get a Geometry Worker that is a candidate for scaling in.
|
|
245
|
+
*/
|
|
246
|
+
async getScaleInCandidate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResGetScaleInCandidate> {
|
|
247
|
+
const response = await this.getScaleInCandidateRaw(initOverrides);
|
|
248
|
+
return await response.value();
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Creates request options for getWorkersInfo without sending the request
|
|
253
|
+
*/
|
|
254
|
+
async getWorkersInfoRequestOpts(): Promise<runtime.RequestOpts> {
|
|
255
|
+
const queryParameters: any = {};
|
|
256
|
+
|
|
257
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
258
|
+
|
|
259
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
260
|
+
const token = this.configuration.accessToken;
|
|
261
|
+
const tokenString = await token("JwtAuth", []);
|
|
262
|
+
|
|
263
|
+
if (tokenString) {
|
|
264
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
268
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
let urlPath = `/api/v2/system/workers/info`;
|
|
272
|
+
|
|
273
|
+
return {
|
|
274
|
+
path: urlPath,
|
|
275
|
+
method: 'GET',
|
|
276
|
+
headers: headerParameters,
|
|
277
|
+
query: queryParameters,
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* A __backend__ subject adds `system.plugins.inconsistent`.
|
|
283
|
+
* Get system information about the Geometry Workers.
|
|
284
|
+
*/
|
|
285
|
+
async getWorkersInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResGetWorkersInfo>> {
|
|
286
|
+
const requestOptions = await this.getWorkersInfoRequestOpts();
|
|
287
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
288
|
+
|
|
289
|
+
return new runtime.JSONApiResponse(response);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* A __backend__ subject adds `system.plugins.inconsistent`.
|
|
294
|
+
* Get system information about the Geometry Workers.
|
|
295
|
+
*/
|
|
296
|
+
async getWorkersInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResGetWorkersInfo> {
|
|
297
|
+
const response = await this.getWorkersInfoRaw(initOverrides);
|
|
298
|
+
return await response.value();
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Geometry Backend API v2
|
|
5
|
+
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
import { BaseAPI } from '../../base';
|
|
17
|
+
import type {
|
|
18
|
+
ResError,
|
|
19
|
+
ResListTextures,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
|
|
22
|
+
export interface ListTexturesRequest {
|
|
23
|
+
sessionId: string;
|
|
24
|
+
offset?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export class TextureApi extends BaseAPI {
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for listTextures without sending the request
|
|
34
|
+
*/
|
|
35
|
+
async listTexturesRequestOpts(requestParameters: ListTexturesRequest): Promise<runtime.RequestOpts> {
|
|
36
|
+
if (requestParameters['sessionId'] == null) {
|
|
37
|
+
throw new runtime.RequiredError(
|
|
38
|
+
'sessionId',
|
|
39
|
+
'Required parameter "sessionId" was null or undefined when calling listTextures().'
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const queryParameters: any = {};
|
|
44
|
+
|
|
45
|
+
if (requestParameters['offset'] != null) {
|
|
46
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
50
|
+
|
|
51
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
52
|
+
const token = this.configuration.accessToken;
|
|
53
|
+
const tokenString = await token("JwtAuth", []);
|
|
54
|
+
|
|
55
|
+
if (tokenString) {
|
|
56
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
let urlPath = `/api/v2/session/{sessionId}/texture/list`;
|
|
61
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
path: urlPath,
|
|
65
|
+
method: 'GET',
|
|
66
|
+
headers: headerParameters,
|
|
67
|
+
query: queryParameters,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Permissions: * `cache.texture.list.*` - __required__.
|
|
73
|
+
* List model textures.
|
|
74
|
+
*/
|
|
75
|
+
async listTexturesRaw(requestParameters: ListTexturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResListTextures>> {
|
|
76
|
+
const requestOptions = await this.listTexturesRequestOpts(requestParameters);
|
|
77
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
78
|
+
|
|
79
|
+
return new runtime.JSONApiResponse(response);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Permissions: * `cache.texture.list.*` - __required__.
|
|
84
|
+
* List model textures.
|
|
85
|
+
*/
|
|
86
|
+
async listTextures(sessionId: string, offset?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResListTextures> {
|
|
87
|
+
const response = await this.listTexturesRaw({ sessionId: sessionId, offset: offset }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './AnalyticsApi';
|
|
4
|
+
export * from './ArSceneApi';
|
|
5
|
+
export * from './AssetsApi';
|
|
6
|
+
export * from './AuthApi';
|
|
7
|
+
export * from './AuthGroupApi';
|
|
8
|
+
export * from './ExportApi';
|
|
9
|
+
export * from './FileApi';
|
|
10
|
+
export * from './GltfApi';
|
|
11
|
+
export * from './LogApi';
|
|
12
|
+
export * from './ModelApi';
|
|
13
|
+
export * from './ModelStateApi';
|
|
14
|
+
export * from './OutputApi';
|
|
15
|
+
export * from './ScriptApi';
|
|
16
|
+
export * from './SdtfApi';
|
|
17
|
+
export * from './SessionApi';
|
|
18
|
+
export * from './SystemApi';
|
|
19
|
+
export * from './TextureApi';
|
package/src/client/index.ts
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2.5.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export * from "./api";
|
|
17
|
-
export * from "./configuration";
|
|
18
|
-
|
|
3
|
+
export * from './runtime';
|
|
4
|
+
export * from './apis/index';
|
|
5
|
+
export * from './models/index';
|