@shapediver/sdk.geometry-api-sdk-v2 3.7.0 → 4.0.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 +16 -29
- package/dist/UtilsApi.d.ts.map +1 -1
- package/dist/UtilsApi.js +133 -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 +252 -324
- 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,474 @@
|
|
|
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
|
+
} from '../models/index';
|
|
20
|
+
|
|
21
|
+
export interface DownloadAssetRequest {
|
|
22
|
+
assetDataEncrypted: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface DownloadExportRequest {
|
|
26
|
+
sessionId: string;
|
|
27
|
+
assetDataEncrypted: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface DownloadGltfRequest {
|
|
31
|
+
sessionId: string;
|
|
32
|
+
assetDataEncrypted: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface DownloadImageRequest {
|
|
36
|
+
sessionId: string;
|
|
37
|
+
url: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface DownloadOutputRequest {
|
|
41
|
+
sessionId: string;
|
|
42
|
+
assetDataEncrypted: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface DownloadTextureRequest {
|
|
46
|
+
sessionId: string;
|
|
47
|
+
assetDataEncrypted: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface DownloadUsdzRequest {
|
|
51
|
+
sessionId: string;
|
|
52
|
+
assetDataEncrypted: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
export class AssetsApi extends BaseAPI {
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Creates request options for downloadAsset without sending the request
|
|
62
|
+
*/
|
|
63
|
+
async downloadAssetRequestOpts(requestParameters: DownloadAssetRequest): Promise<runtime.RequestOpts> {
|
|
64
|
+
if (requestParameters['assetDataEncrypted'] == null) {
|
|
65
|
+
throw new runtime.RequiredError(
|
|
66
|
+
'assetDataEncrypted',
|
|
67
|
+
'Required parameter "assetDataEncrypted" was null or undefined when calling downloadAsset().'
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const queryParameters: any = {};
|
|
72
|
+
|
|
73
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
let urlPath = `/api/v2/download/{assetDataEncrypted}`;
|
|
77
|
+
urlPath = urlPath.replace('{assetDataEncrypted}', encodeURIComponent(String(requestParameters['assetDataEncrypted'])));
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
path: urlPath,
|
|
81
|
+
method: 'GET',
|
|
82
|
+
headers: headerParameters,
|
|
83
|
+
query: queryParameters,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Download an asset without a session (can be used via an URL in an email).
|
|
89
|
+
*/
|
|
90
|
+
async downloadAssetRaw(requestParameters: DownloadAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
91
|
+
const requestOptions = await this.downloadAssetRequestOpts(requestParameters);
|
|
92
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
93
|
+
|
|
94
|
+
return new runtime.BlobApiResponse(response);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Download an asset without a session (can be used via an URL in an email).
|
|
99
|
+
*/
|
|
100
|
+
async downloadAsset(assetDataEncrypted: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
101
|
+
const response = await this.downloadAssetRaw({ assetDataEncrypted: assetDataEncrypted }, initOverrides);
|
|
102
|
+
return await response.value();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Creates request options for downloadExport without sending the request
|
|
107
|
+
*/
|
|
108
|
+
async downloadExportRequestOpts(requestParameters: DownloadExportRequest): Promise<runtime.RequestOpts> {
|
|
109
|
+
if (requestParameters['sessionId'] == null) {
|
|
110
|
+
throw new runtime.RequiredError(
|
|
111
|
+
'sessionId',
|
|
112
|
+
'Required parameter "sessionId" was null or undefined when calling downloadExport().'
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (requestParameters['assetDataEncrypted'] == null) {
|
|
117
|
+
throw new runtime.RequiredError(
|
|
118
|
+
'assetDataEncrypted',
|
|
119
|
+
'Required parameter "assetDataEncrypted" was null or undefined when calling downloadExport().'
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const queryParameters: any = {};
|
|
124
|
+
|
|
125
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
126
|
+
|
|
127
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
128
|
+
const token = this.configuration.accessToken;
|
|
129
|
+
const tokenString = await token("JwtAuth", []);
|
|
130
|
+
|
|
131
|
+
if (tokenString) {
|
|
132
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
let urlPath = `/api/v2/session/{sessionId}/export/{assetDataEncrypted}`;
|
|
137
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
138
|
+
urlPath = urlPath.replace('{assetDataEncrypted}', encodeURIComponent(String(requestParameters['assetDataEncrypted'])));
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
path: urlPath,
|
|
142
|
+
method: 'GET',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Download a single export.
|
|
150
|
+
*/
|
|
151
|
+
async downloadExportRaw(requestParameters: DownloadExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
152
|
+
const requestOptions = await this.downloadExportRequestOpts(requestParameters);
|
|
153
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
154
|
+
|
|
155
|
+
return new runtime.BlobApiResponse(response);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Download a single export.
|
|
160
|
+
*/
|
|
161
|
+
async downloadExport(sessionId: string, assetDataEncrypted: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
162
|
+
const response = await this.downloadExportRaw({ sessionId: sessionId, assetDataEncrypted: assetDataEncrypted }, initOverrides);
|
|
163
|
+
return await response.value();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Creates request options for downloadGltf without sending the request
|
|
168
|
+
*/
|
|
169
|
+
async downloadGltfRequestOpts(requestParameters: DownloadGltfRequest): Promise<runtime.RequestOpts> {
|
|
170
|
+
if (requestParameters['sessionId'] == null) {
|
|
171
|
+
throw new runtime.RequiredError(
|
|
172
|
+
'sessionId',
|
|
173
|
+
'Required parameter "sessionId" was null or undefined when calling downloadGltf().'
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (requestParameters['assetDataEncrypted'] == null) {
|
|
178
|
+
throw new runtime.RequiredError(
|
|
179
|
+
'assetDataEncrypted',
|
|
180
|
+
'Required parameter "assetDataEncrypted" was null or undefined when calling downloadGltf().'
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
const queryParameters: any = {};
|
|
185
|
+
|
|
186
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
187
|
+
|
|
188
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
189
|
+
const token = this.configuration.accessToken;
|
|
190
|
+
const tokenString = await token("JwtAuth", []);
|
|
191
|
+
|
|
192
|
+
if (tokenString) {
|
|
193
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
let urlPath = `/api/v2/session/{sessionId}/gltf/{assetDataEncrypted}`;
|
|
198
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
199
|
+
urlPath = urlPath.replace('{assetDataEncrypted}', encodeURIComponent(String(requestParameters['assetDataEncrypted'])));
|
|
200
|
+
|
|
201
|
+
return {
|
|
202
|
+
path: urlPath,
|
|
203
|
+
method: 'GET',
|
|
204
|
+
headers: headerParameters,
|
|
205
|
+
query: queryParameters,
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Download a glTF file.
|
|
211
|
+
*/
|
|
212
|
+
async downloadGltfRaw(requestParameters: DownloadGltfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
213
|
+
const requestOptions = await this.downloadGltfRequestOpts(requestParameters);
|
|
214
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
215
|
+
|
|
216
|
+
return new runtime.BlobApiResponse(response);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Download a glTF file.
|
|
221
|
+
*/
|
|
222
|
+
async downloadGltf(sessionId: string, assetDataEncrypted: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
223
|
+
const response = await this.downloadGltfRaw({ sessionId: sessionId, assetDataEncrypted: assetDataEncrypted }, initOverrides);
|
|
224
|
+
return await response.value();
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Creates request options for downloadImage without sending the request
|
|
229
|
+
*/
|
|
230
|
+
async downloadImageRequestOpts(requestParameters: DownloadImageRequest): Promise<runtime.RequestOpts> {
|
|
231
|
+
if (requestParameters['sessionId'] == null) {
|
|
232
|
+
throw new runtime.RequiredError(
|
|
233
|
+
'sessionId',
|
|
234
|
+
'Required parameter "sessionId" was null or undefined when calling downloadImage().'
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (requestParameters['url'] == null) {
|
|
239
|
+
throw new runtime.RequiredError(
|
|
240
|
+
'url',
|
|
241
|
+
'Required parameter "url" was null or undefined when calling downloadImage().'
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
const queryParameters: any = {};
|
|
246
|
+
|
|
247
|
+
if (requestParameters['url'] != null) {
|
|
248
|
+
queryParameters['url'] = requestParameters['url'];
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
252
|
+
|
|
253
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
254
|
+
const token = this.configuration.accessToken;
|
|
255
|
+
const tokenString = await token("JwtAuth", []);
|
|
256
|
+
|
|
257
|
+
if (tokenString) {
|
|
258
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
let urlPath = `/api/v2/session/{sessionId}/image`;
|
|
263
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
264
|
+
|
|
265
|
+
return {
|
|
266
|
+
path: urlPath,
|
|
267
|
+
method: 'GET',
|
|
268
|
+
headers: headerParameters,
|
|
269
|
+
query: queryParameters,
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Download an image.
|
|
275
|
+
*/
|
|
276
|
+
async downloadImageRaw(requestParameters: DownloadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
277
|
+
const requestOptions = await this.downloadImageRequestOpts(requestParameters);
|
|
278
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
279
|
+
|
|
280
|
+
return new runtime.BlobApiResponse(response);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Download an image.
|
|
285
|
+
*/
|
|
286
|
+
async downloadImage(sessionId: string, url: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
287
|
+
const response = await this.downloadImageRaw({ sessionId: sessionId, url: url }, initOverrides);
|
|
288
|
+
return await response.value();
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Creates request options for downloadOutput without sending the request
|
|
293
|
+
*/
|
|
294
|
+
async downloadOutputRequestOpts(requestParameters: DownloadOutputRequest): Promise<runtime.RequestOpts> {
|
|
295
|
+
if (requestParameters['sessionId'] == null) {
|
|
296
|
+
throw new runtime.RequiredError(
|
|
297
|
+
'sessionId',
|
|
298
|
+
'Required parameter "sessionId" was null or undefined when calling downloadOutput().'
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (requestParameters['assetDataEncrypted'] == null) {
|
|
303
|
+
throw new runtime.RequiredError(
|
|
304
|
+
'assetDataEncrypted',
|
|
305
|
+
'Required parameter "assetDataEncrypted" was null or undefined when calling downloadOutput().'
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
const queryParameters: any = {};
|
|
310
|
+
|
|
311
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
312
|
+
|
|
313
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
314
|
+
const token = this.configuration.accessToken;
|
|
315
|
+
const tokenString = await token("JwtAuth", []);
|
|
316
|
+
|
|
317
|
+
if (tokenString) {
|
|
318
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
let urlPath = `/api/v2/session/{sessionId}/output/{assetDataEncrypted}`;
|
|
323
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
324
|
+
urlPath = urlPath.replace('{assetDataEncrypted}', encodeURIComponent(String(requestParameters['assetDataEncrypted'])));
|
|
325
|
+
|
|
326
|
+
return {
|
|
327
|
+
path: urlPath,
|
|
328
|
+
method: 'GET',
|
|
329
|
+
headers: headerParameters,
|
|
330
|
+
query: queryParameters,
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Download a single output.
|
|
336
|
+
*/
|
|
337
|
+
async downloadOutputRaw(requestParameters: DownloadOutputRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
338
|
+
const requestOptions = await this.downloadOutputRequestOpts(requestParameters);
|
|
339
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
340
|
+
|
|
341
|
+
return new runtime.BlobApiResponse(response);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Download a single output.
|
|
346
|
+
*/
|
|
347
|
+
async downloadOutput(sessionId: string, assetDataEncrypted: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
348
|
+
const response = await this.downloadOutputRaw({ sessionId: sessionId, assetDataEncrypted: assetDataEncrypted }, initOverrides);
|
|
349
|
+
return await response.value();
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Creates request options for downloadTexture without sending the request
|
|
354
|
+
*/
|
|
355
|
+
async downloadTextureRequestOpts(requestParameters: DownloadTextureRequest): Promise<runtime.RequestOpts> {
|
|
356
|
+
if (requestParameters['sessionId'] == null) {
|
|
357
|
+
throw new runtime.RequiredError(
|
|
358
|
+
'sessionId',
|
|
359
|
+
'Required parameter "sessionId" was null or undefined when calling downloadTexture().'
|
|
360
|
+
);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if (requestParameters['assetDataEncrypted'] == null) {
|
|
364
|
+
throw new runtime.RequiredError(
|
|
365
|
+
'assetDataEncrypted',
|
|
366
|
+
'Required parameter "assetDataEncrypted" was null or undefined when calling downloadTexture().'
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
const queryParameters: any = {};
|
|
371
|
+
|
|
372
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
373
|
+
|
|
374
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
375
|
+
const token = this.configuration.accessToken;
|
|
376
|
+
const tokenString = await token("JwtAuth", []);
|
|
377
|
+
|
|
378
|
+
if (tokenString) {
|
|
379
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
let urlPath = `/api/v2/session/{sessionId}/texture/{assetDataEncrypted}`;
|
|
384
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
385
|
+
urlPath = urlPath.replace('{assetDataEncrypted}', encodeURIComponent(String(requestParameters['assetDataEncrypted'])));
|
|
386
|
+
|
|
387
|
+
return {
|
|
388
|
+
path: urlPath,
|
|
389
|
+
method: 'GET',
|
|
390
|
+
headers: headerParameters,
|
|
391
|
+
query: queryParameters,
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Download a single texture.
|
|
397
|
+
*/
|
|
398
|
+
async downloadTextureRaw(requestParameters: DownloadTextureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
399
|
+
const requestOptions = await this.downloadTextureRequestOpts(requestParameters);
|
|
400
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
401
|
+
|
|
402
|
+
return new runtime.BlobApiResponse(response);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Download a single texture.
|
|
407
|
+
*/
|
|
408
|
+
async downloadTexture(sessionId: string, assetDataEncrypted: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
409
|
+
const response = await this.downloadTextureRaw({ sessionId: sessionId, assetDataEncrypted: assetDataEncrypted }, initOverrides);
|
|
410
|
+
return await response.value();
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Creates request options for downloadUsdz without sending the request
|
|
415
|
+
*/
|
|
416
|
+
async downloadUsdzRequestOpts(requestParameters: DownloadUsdzRequest): Promise<runtime.RequestOpts> {
|
|
417
|
+
if (requestParameters['sessionId'] == null) {
|
|
418
|
+
throw new runtime.RequiredError(
|
|
419
|
+
'sessionId',
|
|
420
|
+
'Required parameter "sessionId" was null or undefined when calling downloadUsdz().'
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
if (requestParameters['assetDataEncrypted'] == null) {
|
|
425
|
+
throw new runtime.RequiredError(
|
|
426
|
+
'assetDataEncrypted',
|
|
427
|
+
'Required parameter "assetDataEncrypted" was null or undefined when calling downloadUsdz().'
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
const queryParameters: any = {};
|
|
432
|
+
|
|
433
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
434
|
+
|
|
435
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
436
|
+
const token = this.configuration.accessToken;
|
|
437
|
+
const tokenString = await token("JwtAuth", []);
|
|
438
|
+
|
|
439
|
+
if (tokenString) {
|
|
440
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
let urlPath = `/api/v2/session/{sessionId}/usdz/{assetDataEncrypted}`;
|
|
445
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
446
|
+
urlPath = urlPath.replace('{assetDataEncrypted}', encodeURIComponent(String(requestParameters['assetDataEncrypted'])));
|
|
447
|
+
|
|
448
|
+
return {
|
|
449
|
+
path: urlPath,
|
|
450
|
+
method: 'GET',
|
|
451
|
+
headers: headerParameters,
|
|
452
|
+
query: queryParameters,
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Download a USDZ file.
|
|
458
|
+
*/
|
|
459
|
+
async downloadUsdzRaw(requestParameters: DownloadUsdzRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResError>> {
|
|
460
|
+
const requestOptions = await this.downloadUsdzRequestOpts(requestParameters);
|
|
461
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
462
|
+
|
|
463
|
+
return new runtime.JSONApiResponse(response);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Download a USDZ file.
|
|
468
|
+
*/
|
|
469
|
+
async downloadUsdz(sessionId: string, assetDataEncrypted: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResError> {
|
|
470
|
+
const response = await this.downloadUsdzRaw({ sessionId: sessionId, assetDataEncrypted: assetDataEncrypted }, initOverrides);
|
|
471
|
+
return await response.value();
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
} from '../models/index';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export class AuthApi extends BaseAPI {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Creates request options for getJsonWebKeySets without sending the request
|
|
28
|
+
*/
|
|
29
|
+
async getJsonWebKeySetsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
30
|
+
const queryParameters: any = {};
|
|
31
|
+
|
|
32
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
let urlPath = `/.well-known/jwks.json`;
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
path: urlPath,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
headers: headerParameters,
|
|
41
|
+
query: queryParameters,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Get the public keys of the JSON Web Key Set.
|
|
47
|
+
*/
|
|
48
|
+
async getJsonWebKeySetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
|
|
49
|
+
const requestOptions = await this.getJsonWebKeySetsRequestOpts();
|
|
50
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
51
|
+
|
|
52
|
+
return new runtime.JSONApiResponse<any>(response);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Get the public keys of the JSON Web Key Set.
|
|
57
|
+
*/
|
|
58
|
+
async getJsonWebKeySets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
|
|
59
|
+
const response = await this.getJsonWebKeySetsRaw(initOverrides);
|
|
60
|
+
return await response.value();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
ReqAuthorizationGroup,
|
|
19
|
+
ResCreateAuthorizationGroup,
|
|
20
|
+
ResError,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
|
|
23
|
+
export interface CreateAuthorizationGroupRequest {
|
|
24
|
+
reqAuthorizationGroup: ReqAuthorizationGroup;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export class AuthGroupApi extends BaseAPI {
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for createAuthorizationGroup without sending the request
|
|
34
|
+
*/
|
|
35
|
+
async createAuthorizationGroupRequestOpts(requestParameters: CreateAuthorizationGroupRequest): Promise<runtime.RequestOpts> {
|
|
36
|
+
if (requestParameters['reqAuthorizationGroup'] == null) {
|
|
37
|
+
throw new runtime.RequiredError(
|
|
38
|
+
'reqAuthorizationGroup',
|
|
39
|
+
'Required parameter "reqAuthorizationGroup" was null or undefined when calling createAuthorizationGroup().'
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const queryParameters: any = {};
|
|
44
|
+
|
|
45
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
46
|
+
|
|
47
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
48
|
+
|
|
49
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
50
|
+
const token = this.configuration.accessToken;
|
|
51
|
+
const tokenString = await token("JwtAuth", []);
|
|
52
|
+
|
|
53
|
+
if (tokenString) {
|
|
54
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
let urlPath = `/api/v2/auth_group`;
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
path: urlPath,
|
|
62
|
+
method: 'POST',
|
|
63
|
+
headers: headerParameters,
|
|
64
|
+
query: queryParameters,
|
|
65
|
+
body: requestParameters['reqAuthorizationGroup'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Subject-Restriction: __backend__. Permissions: * `auth_group.create` - __required__.
|
|
71
|
+
* Create new authorization group.
|
|
72
|
+
*/
|
|
73
|
+
async createAuthorizationGroupRaw(requestParameters: CreateAuthorizationGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResCreateAuthorizationGroup>> {
|
|
74
|
+
const requestOptions = await this.createAuthorizationGroupRequestOpts(requestParameters);
|
|
75
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
76
|
+
|
|
77
|
+
return new runtime.JSONApiResponse(response);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Subject-Restriction: __backend__. Permissions: * `auth_group.create` - __required__.
|
|
82
|
+
* Create new authorization group.
|
|
83
|
+
*/
|
|
84
|
+
async createAuthorizationGroup(reqAuthorizationGroup: ReqAuthorizationGroup, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResCreateAuthorizationGroup> {
|
|
85
|
+
const response = await this.createAuthorizationGroupRaw({ reqAuthorizationGroup: reqAuthorizationGroup }, initOverrides);
|
|
86
|
+
return await response.value();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
}
|