@shapediver/sdk.geometry-api-sdk-v2 4.2.2 → 4.4.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 +3 -2
- package/dist/UtilsApi.d.ts +3 -3
- package/dist/UtilsApi.d.ts.map +1 -1
- package/dist/UtilsApi.js +12 -15
- package/dist/UtilsApi.js.map +1 -1
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +3 -8
- package/dist/base.js.map +1 -1
- package/dist/client/apis/AnalyticsApi.d.ts.map +1 -1
- package/dist/client/apis/AnalyticsApi.js.map +1 -1
- package/dist/client/apis/ArSceneApi.d.ts.map +1 -1
- package/dist/client/apis/ArSceneApi.js.map +1 -1
- package/dist/client/apis/AssetsApi.d.ts.map +1 -1
- package/dist/client/apis/AssetsApi.js.map +1 -1
- package/dist/client/apis/AuthGroupApi.d.ts.map +1 -1
- package/dist/client/apis/AuthGroupApi.js.map +1 -1
- package/dist/client/apis/ExportApi.d.ts.map +1 -1
- package/dist/client/apis/ExportApi.js.map +1 -1
- package/dist/client/apis/FileApi.d.ts.map +1 -1
- package/dist/client/apis/FileApi.js.map +1 -1
- package/dist/client/apis/GltfApi.d.ts.map +1 -1
- package/dist/client/apis/GltfApi.js.map +1 -1
- package/dist/client/apis/LogApi.d.ts.map +1 -1
- package/dist/client/apis/LogApi.js.map +1 -1
- package/dist/client/apis/ModelApi.d.ts +12 -1
- package/dist/client/apis/ModelApi.d.ts.map +1 -1
- package/dist/client/apis/ModelApi.js +52 -0
- package/dist/client/apis/ModelApi.js.map +1 -1
- package/dist/client/apis/ModelStateApi.d.ts.map +1 -1
- package/dist/client/apis/ModelStateApi.js.map +1 -1
- package/dist/client/apis/OutputApi.d.ts.map +1 -1
- package/dist/client/apis/OutputApi.js.map +1 -1
- package/dist/client/apis/ScriptApi.d.ts.map +1 -1
- package/dist/client/apis/ScriptApi.js.map +1 -1
- package/dist/client/apis/SdtfApi.d.ts.map +1 -1
- package/dist/client/apis/SdtfApi.js.map +1 -1
- package/dist/client/apis/SessionApi.d.ts.map +1 -1
- package/dist/client/apis/SessionApi.js.map +1 -1
- package/dist/client/apis/SystemApi.d.ts.map +1 -1
- package/dist/client/apis/SystemApi.js.map +1 -1
- package/dist/client/apis/TextureApi.d.ts.map +1 -1
- package/dist/client/apis/TextureApi.js.map +1 -1
- package/dist/client/models/index.d.ts +43 -0
- package/dist/client/models/index.d.ts.map +1 -1
- package/dist/client/models/index.js +29 -24
- package/dist/client/models/index.js.map +1 -1
- package/dist/client/runtime.d.ts +1 -0
- package/dist/client/runtime.d.ts.map +1 -1
- package/dist/client/runtime.js +5 -1
- package/dist/client/runtime.js.map +1 -1
- package/dist/configuration.d.ts.map +1 -1
- package/dist/configuration.js +8 -10
- package/dist/configuration.js.map +1 -1
- package/dist/utils.d.ts +3 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +18 -7
- package/dist/utils.js.map +1 -1
- package/package.json +5 -6
- package/src/UtilsApi.ts +40 -41
- package/src/base.ts +9 -16
- package/src/client/apis/AnalyticsApi.ts +22 -1
- package/src/client/apis/ArSceneApi.ts +10 -1
- package/src/client/apis/AssetsApi.ts +40 -1
- package/src/client/apis/AuthApi.ts +1 -1
- package/src/client/apis/AuthGroupApi.ts +4 -1
- package/src/client/apis/ExportApi.ts +40 -1
- package/src/client/apis/FileApi.ts +43 -1
- package/src/client/apis/GltfApi.ts +10 -1
- package/src/client/apis/LogApi.ts +7 -1
- package/src/client/apis/ModelApi.ts +243 -1
- package/src/client/apis/ModelStateApi.ts +37 -1
- package/src/client/apis/OutputApi.ts +40 -1
- package/src/client/apis/ScriptApi.ts +7 -1
- package/src/client/apis/SdtfApi.ts +34 -1
- package/src/client/apis/SessionApi.ts +60 -1
- package/src/client/apis/SystemApi.ts +10 -1
- package/src/client/apis/TextureApi.ts +7 -1
- package/src/client/models/index.ts +179 -1777
- package/src/client/runtime.ts +14 -2
- package/src/configuration.ts +15 -18
- package/src/utils.ts +32 -32
package/dist/configuration.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Configuration = void 0;
|
|
4
4
|
const runtime_1 = require("./client/runtime");
|
|
5
|
-
const SDK_VERSION = '4.
|
|
5
|
+
const SDK_VERSION = '4.4.0';
|
|
6
6
|
class Configuration extends runtime_1.Configuration {
|
|
7
7
|
constructor(param = {}) {
|
|
8
8
|
var _a;
|
|
@@ -29,7 +29,7 @@ function createHeaders(headers) {
|
|
|
29
29
|
const result = {};
|
|
30
30
|
const normalizedHeaders = new Headers(headers);
|
|
31
31
|
const userAgent = `sd-sdk/typescript/${SDK_VERSION}`;
|
|
32
|
-
if (detectRuntime() ===
|
|
32
|
+
if (detectRuntime() === 'node' && !normalizedHeaders.has('User-Agent')) {
|
|
33
33
|
normalizedHeaders.set('User-Agent', userAgent);
|
|
34
34
|
}
|
|
35
35
|
else if (!normalizedHeaders.has('X-ShapeDiver-UserAgent')) {
|
|
@@ -43,16 +43,14 @@ function createHeaders(headers) {
|
|
|
43
43
|
function detectRuntime() {
|
|
44
44
|
var _a, _b;
|
|
45
45
|
const global = globalThis;
|
|
46
|
-
if (typeof ((_b = (_a = global.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node) ===
|
|
47
|
-
return
|
|
46
|
+
if (typeof ((_b = (_a = global.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node) === 'string') {
|
|
47
|
+
return 'node';
|
|
48
48
|
}
|
|
49
|
-
const isBrowserMainThread = global.window === globalThis &&
|
|
50
|
-
|
|
51
|
-
const isBrowserWorker = global.self === globalThis &&
|
|
52
|
-
typeof global.navigator !== "undefined";
|
|
49
|
+
const isBrowserMainThread = global.window === globalThis && typeof global.document !== 'undefined';
|
|
50
|
+
const isBrowserWorker = global.self === globalThis && typeof global.navigator !== 'undefined';
|
|
53
51
|
if (isBrowserMainThread || isBrowserWorker) {
|
|
54
|
-
return
|
|
52
|
+
return 'browser';
|
|
55
53
|
}
|
|
56
|
-
return
|
|
54
|
+
return 'unknown';
|
|
57
55
|
}
|
|
58
56
|
//# sourceMappingURL=configuration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":";;;AAAA,8CAG0B;AAE1B,MAAM,WAAW,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":";;;AAAA,8CAG0B;AAE1B,MAAM,WAAW,GAAG,OAAO,CAAC;AAgB5B,MAAa,aAAc,SAAQ,uBAAY;IAG3C,YAAY,QAAgD,EAAE;;QAC1D,MAAM,UAAU,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAC;QAElD,KAAK,iCACE,UAAU,KACb,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,IAC5C,CAAC;QAEH,IAAI,CAAC,UAAU,GAAG,MAAA,UAAU,CAAC,UAAU,mCAAI,CAAC,CAAC;IACjD,CAAC;CACJ;AAbD,sCAaC;AAGD,SAAS,uBAAuB,CAC5B,KAA6C;IAE7C,IAAI,CAAC,CAAC,KAAK,YAAY,uBAAY,CAAC;QAAE,OAAO,KAAK,CAAC;IAEnD,OAAO;QACH,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,oBAAoB,EAAE,KAAK,CAAC,oBAAoB;QAChD,UAAU,EAAE,KAAK,YAAY,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS;KAC5E,CAAC;AACN,CAAC;AAED,SAAS,aAAa,CAAC,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11 @@
|
|
|
1
1
|
import { RequestError, ResponseError } from './error';
|
|
2
|
-
|
|
2
|
+
interface SdErrorObject {
|
|
3
3
|
error: string;
|
|
4
4
|
desc: string;
|
|
5
5
|
message: string;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
export declare function sleep(ms: number): Promise<void>;
|
|
8
|
-
export declare function extractFileInfo(headers: Record<string,
|
|
8
|
+
export declare function extractFileInfo(headers: Record<string, string | null | undefined> | undefined): {
|
|
9
9
|
size: number | undefined;
|
|
10
10
|
filename: string | undefined;
|
|
11
11
|
};
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGtD,UAAU,aAAa;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB;AAGD,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C;AAmBD,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,SAAS,GAAG;IAC7F,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAYA;AAOD,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAavE;AAQD,wBAAgB,8BAA8B,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAmB7F;AAUD,wBAAsB,MAAM,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAQ9E;AAuCD,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAoB7F;AAWD,wBAAsB,YAAY,CAC9B,KAAK,EAAE,QAAQ,GAAG,KAAK,GACxB,OAAO,CAAC,KAAK,GAAG,YAAY,GAAG,aAAa,CAAC,CAgB/C"}
|
package/dist/utils.js
CHANGED
|
@@ -21,19 +21,29 @@ const error_1 = require("./error");
|
|
|
21
21
|
function sleep(ms) {
|
|
22
22
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
23
23
|
}
|
|
24
|
+
function headerValue(headers, ...names) {
|
|
25
|
+
for (const name of names) {
|
|
26
|
+
const value = headers[name];
|
|
27
|
+
if (typeof value === 'string' && value.length > 0)
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
24
32
|
function extractFileInfo(headers) {
|
|
25
33
|
if (!headers)
|
|
26
34
|
return { size: undefined, filename: undefined };
|
|
27
|
-
const contentLength = headers
|
|
28
|
-
const size = contentLength ? parseInt(contentLength) : undefined;
|
|
29
|
-
const contentDisposition = headers
|
|
35
|
+
const contentLength = headerValue(headers, 'Content-Length', 'content-length');
|
|
36
|
+
const size = contentLength ? parseInt(contentLength, 10) : undefined;
|
|
37
|
+
const contentDisposition = headerValue(headers, 'Content-Disposition', 'content-disposition');
|
|
30
38
|
const filename = contentDisposition
|
|
31
39
|
? filenameFromContentDisposition(contentDisposition)
|
|
32
40
|
: undefined;
|
|
33
41
|
return { size, filename };
|
|
34
42
|
}
|
|
35
43
|
function contentDispositionFromFilename(filename) {
|
|
36
|
-
const asciiName = filename.normalize('NFKD')
|
|
44
|
+
const asciiName = [...filename.normalize('NFKD')]
|
|
45
|
+
.filter((char) => char.charCodeAt(0) <= 0x7f)
|
|
46
|
+
.join('');
|
|
37
47
|
let header = `attachment; filename="${asciiName}"`;
|
|
38
48
|
if (asciiName !== filename) {
|
|
39
49
|
const quotedName = encodeURIComponent(filename);
|
|
@@ -61,8 +71,7 @@ function exists(apiCall) {
|
|
|
61
71
|
return apiCall()
|
|
62
72
|
.then(() => true)
|
|
63
73
|
.catch((error) => {
|
|
64
|
-
|
|
65
|
-
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 404)
|
|
74
|
+
if (error instanceof runtime_1.ResponseError && error.response.status === 404)
|
|
66
75
|
return false;
|
|
67
76
|
throw error;
|
|
68
77
|
});
|
|
@@ -127,7 +136,9 @@ function processError(error) {
|
|
|
127
136
|
if (error instanceof runtime_1.FetchError) {
|
|
128
137
|
return new error_1.RequestError(error.cause.message);
|
|
129
138
|
}
|
|
130
|
-
|
|
139
|
+
if (error instanceof Error)
|
|
140
|
+
return error;
|
|
141
|
+
return new Error('Unknown error');
|
|
131
142
|
});
|
|
132
143
|
}
|
|
133
144
|
function processResponseError(response, fallbackMessage) {
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;AAWA,sBAEC;AAmBD,0CAeC;AAOD,wEAaC;AAQD,wEAmBC;AAUD,wBAQC;AAuCD,sDAoBC;AAWD,oCAkBC;AAxMD,8CAAoF;AACpF,mCAAsD;AAUtD,SAAgB,KAAK,CAAC,EAAU;IAC5B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC7D,CAAC;AAED,SAAS,WAAW,CAChB,OAAkD,EAClD,GAAG,KAAe;IAElB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACvB,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,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Q,GAAG,MAAM,qBAAqB,CAAC,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;QAE5E,OAAO,QAAQ;YACX,CAAC,CAAC,IAAI,qBAAa,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC;YACrF,CAAC,CAAC,IAAI,qBAAa,CAAC,QAAQ,CAAC,MAAM,EAAE,eAAe,EAAE,+BAA+B,CAAC,CAAC;IAC/F,CAAC;CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/sdk.geometry-api-sdk-v2",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "SDK to communicate with the Geometry API version 2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shapediver",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"test": "bash ../../scripts/test.sh",
|
|
26
|
-
"check": "tsc --noEmit",
|
|
26
|
+
"check": "tsc -p tsconfig.check.json --noEmit",
|
|
27
27
|
"build": "bash ../../scripts/build.sh",
|
|
28
28
|
"build-dep": "bash ../../scripts/build-dep.sh",
|
|
29
29
|
"pre-publish": "bash ../../scripts/pre-publish.sh",
|
|
@@ -57,13 +57,12 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@types/uuid": "10.0.0",
|
|
61
60
|
"jest": "29.7.0",
|
|
62
61
|
"lerna": "9.0.7",
|
|
63
62
|
"typescript": "5.9.3",
|
|
64
|
-
"uuid": "14.0.
|
|
65
|
-
"webpack": "5.
|
|
63
|
+
"uuid": "14.0.2",
|
|
64
|
+
"webpack": "5.111.1",
|
|
66
65
|
"webpack-cli": "5.1.4",
|
|
67
|
-
"webpack-dev-server": "5.2.
|
|
66
|
+
"webpack-dev-server": "5.2.6"
|
|
68
67
|
}
|
|
69
68
|
}
|
package/src/UtilsApi.ts
CHANGED
|
@@ -59,7 +59,7 @@ export class UtilsApi extends BaseAPI {
|
|
|
59
59
|
*/
|
|
60
60
|
public upload(
|
|
61
61
|
url: string,
|
|
62
|
-
data:
|
|
62
|
+
data: BodyInit,
|
|
63
63
|
contentType: string,
|
|
64
64
|
filename?: string,
|
|
65
65
|
options: RequestInit = {}
|
|
@@ -81,7 +81,7 @@ export class UtilsApi extends BaseAPI {
|
|
|
81
81
|
'X-ShapeDiver-UserAgent',
|
|
82
82
|
];
|
|
83
83
|
|
|
84
|
-
return this.fetchRequest(
|
|
84
|
+
return this.fetchRequest('PUT', url, data, options, disableHeaders);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -95,7 +95,7 @@ export class UtilsApi extends BaseAPI {
|
|
|
95
95
|
*/
|
|
96
96
|
public uploadAsset(
|
|
97
97
|
url: string,
|
|
98
|
-
data:
|
|
98
|
+
data: BodyInit,
|
|
99
99
|
headers: ResAssetUploadHeaders,
|
|
100
100
|
options: RequestInit = {}
|
|
101
101
|
): Promise<Response> {
|
|
@@ -117,7 +117,7 @@ export class UtilsApi extends BaseAPI {
|
|
|
117
117
|
'X-ShapeDiver-UserAgent',
|
|
118
118
|
];
|
|
119
119
|
|
|
120
|
-
return this.fetchRequest(
|
|
120
|
+
return this.fetchRequest('PUT', url, data, options, disableHeaders);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/**
|
|
@@ -132,7 +132,7 @@ export class UtilsApi extends BaseAPI {
|
|
|
132
132
|
const disableHeaders: DisableHeaders = [];
|
|
133
133
|
this.disableAuthHeaderForShapeDiverUris(url, options, disableHeaders);
|
|
134
134
|
|
|
135
|
-
return await this.fetchRequest(
|
|
135
|
+
return await this.fetchRequest('GET', url, undefined, options, disableHeaders);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
/**
|
|
@@ -172,15 +172,11 @@ export class UtilsApi extends BaseAPI {
|
|
|
172
172
|
* @param url The URL of the image to download.
|
|
173
173
|
* @param [options] Override http request option and set response-type.
|
|
174
174
|
*/
|
|
175
|
+
public downloadImage(sessionId: string, url: string, options?: RequestInit): Promise<Blob>;
|
|
175
176
|
public downloadImage(
|
|
176
177
|
sessionId: string,
|
|
177
178
|
url: string,
|
|
178
|
-
options
|
|
179
|
-
): Promise<Blob>;
|
|
180
|
-
public downloadImage(
|
|
181
|
-
sessionId: string,
|
|
182
|
-
url: string,
|
|
183
|
-
options: RequestInit & { responseType: "arraybuffer" }
|
|
179
|
+
options: RequestInit & { responseType: 'arraybuffer' }
|
|
184
180
|
): Promise<{ data: ArrayBuffer; contentType: string }>;
|
|
185
181
|
public async downloadImage(
|
|
186
182
|
sessionId: string,
|
|
@@ -200,9 +196,9 @@ export class UtilsApi extends BaseAPI {
|
|
|
200
196
|
|
|
201
197
|
return responseType === 'arraybuffer'
|
|
202
198
|
? {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
199
|
+
data: await response.arrayBuffer(),
|
|
200
|
+
contentType: response.headers.get('Content-Type') ?? '',
|
|
201
|
+
}
|
|
206
202
|
: response.blob();
|
|
207
203
|
} else {
|
|
208
204
|
/* All other source URLs are called via the download-image endpoint */
|
|
@@ -211,10 +207,12 @@ export class UtilsApi extends BaseAPI {
|
|
|
211
207
|
const encodedUrl =
|
|
212
208
|
typeof window !== 'undefined' && window.btoa
|
|
213
209
|
? window.btoa(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
210
|
+
encodeURIComponent(url).replace(
|
|
211
|
+
/%([0-9A-F]{2})/g,
|
|
212
|
+
(_match: string, hex: string) =>
|
|
213
|
+
String.fromCharCode(parseInt(hex, 16))
|
|
214
|
+
)
|
|
215
|
+
)
|
|
218
216
|
: Buffer.from(url, 'utf-8').toString('base64');
|
|
219
217
|
|
|
220
218
|
// The server-side proxy authenticates with the session token. Do not forward
|
|
@@ -233,9 +231,9 @@ export class UtilsApi extends BaseAPI {
|
|
|
233
231
|
|
|
234
232
|
return responseType === 'arraybuffer'
|
|
235
233
|
? {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
234
|
+
data: await response.raw.arrayBuffer(),
|
|
235
|
+
contentType: response.raw.headers.get('Content-Type') ?? '',
|
|
236
|
+
}
|
|
239
237
|
: await response.value();
|
|
240
238
|
}
|
|
241
239
|
}
|
|
@@ -346,7 +344,7 @@ export class UtilsApi extends BaseAPI {
|
|
|
346
344
|
sessionId,
|
|
347
345
|
outputVersions,
|
|
348
346
|
options
|
|
349
|
-
)
|
|
347
|
+
);
|
|
350
348
|
delay = this.getMaxOutputDelay(dto);
|
|
351
349
|
}
|
|
352
350
|
|
|
@@ -387,7 +385,11 @@ export class UtilsApi extends BaseAPI {
|
|
|
387
385
|
await sleep(delay);
|
|
388
386
|
|
|
389
387
|
// Send cache request
|
|
390
|
-
dto = await new ExportApi(this.configuration).getCachedExports(
|
|
388
|
+
dto = await new ExportApi(this.configuration).getCachedExports(
|
|
389
|
+
sessionId,
|
|
390
|
+
body,
|
|
391
|
+
options
|
|
392
|
+
);
|
|
391
393
|
delay = this.getMaxExportDelay(body, dto);
|
|
392
394
|
}
|
|
393
395
|
|
|
@@ -431,9 +433,9 @@ export class UtilsApi extends BaseAPI {
|
|
|
431
433
|
}
|
|
432
434
|
|
|
433
435
|
/**
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
436
|
+
* Replacement for `runtime.BaseAPI.request`.
|
|
437
|
+
* Needed to call `createFetchParameters`.
|
|
438
|
+
*/
|
|
437
439
|
private async fetchRequest(
|
|
438
440
|
method: string,
|
|
439
441
|
url: string,
|
|
@@ -456,9 +458,9 @@ export class UtilsApi extends BaseAPI {
|
|
|
456
458
|
}
|
|
457
459
|
|
|
458
460
|
/**
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
461
|
+
* Replacement for `runtime.BaseAPI.createFetchParams`.
|
|
462
|
+
* Needed to allow dynamic basePath handling and proper header manipulation.
|
|
463
|
+
*/
|
|
462
464
|
private async createFetchParameters(
|
|
463
465
|
method: string,
|
|
464
466
|
url: string,
|
|
@@ -476,22 +478,19 @@ export class UtilsApi extends BaseAPI {
|
|
|
476
478
|
this.configuration.accessToken
|
|
477
479
|
) {
|
|
478
480
|
const token = this.configuration.accessToken;
|
|
479
|
-
const tokenString = await token(
|
|
481
|
+
const tokenString = await token('JwtAuth', []);
|
|
480
482
|
|
|
481
|
-
if (tokenString) authHeaders[
|
|
483
|
+
if (tokenString) authHeaders['Authorization'] = `Bearer ${tokenString}`;
|
|
482
484
|
}
|
|
483
485
|
|
|
484
486
|
const headers = new Headers(configuration.headers);
|
|
485
|
-
for (const source of [
|
|
486
|
-
authHeaders,
|
|
487
|
-
options.headers,
|
|
488
|
-
]) {
|
|
487
|
+
for (const source of [authHeaders, options.headers]) {
|
|
489
488
|
if (!source) continue;
|
|
490
489
|
new Headers(source).forEach((value, name) => headers.set(name, value));
|
|
491
490
|
}
|
|
492
491
|
|
|
493
492
|
// Remove all disabled headers.
|
|
494
|
-
disableHeaders.forEach(header => headers.delete(header));
|
|
493
|
+
disableHeaders.forEach((header) => headers.delete(header));
|
|
495
494
|
|
|
496
495
|
const init: RequestInit = {
|
|
497
496
|
...options,
|
|
@@ -502,16 +501,16 @@ export class UtilsApi extends BaseAPI {
|
|
|
502
501
|
|
|
503
502
|
return {
|
|
504
503
|
url: this.createFetchUrl(url),
|
|
505
|
-
init
|
|
504
|
+
init,
|
|
506
505
|
};
|
|
507
506
|
}
|
|
508
507
|
|
|
509
508
|
/** Prepends the base-path to `url` when the URL is relative. */
|
|
510
509
|
private createFetchUrl(url: string): string {
|
|
511
|
-
if (url.startsWith(
|
|
510
|
+
if (url.startsWith('http')) return url;
|
|
512
511
|
|
|
513
|
-
const basePath = this.configuration.basePath.replace(/\/+$/,
|
|
514
|
-
const path = url.replace(/^\/+/,
|
|
512
|
+
const basePath = this.configuration.basePath.replace(/\/+$/, '');
|
|
513
|
+
const path = url.replace(/^\/+/, '');
|
|
515
514
|
|
|
516
515
|
return `${basePath}/${path}`;
|
|
517
516
|
}
|
|
@@ -570,7 +569,7 @@ export class UtilsApi extends BaseAPI {
|
|
|
570
569
|
private disableAuthHeaderForShapeDiverUris(
|
|
571
570
|
url: string,
|
|
572
571
|
options: RequestInit,
|
|
573
|
-
disableHeaders: DisableHeaders
|
|
572
|
+
disableHeaders: DisableHeaders
|
|
574
573
|
): void {
|
|
575
574
|
const headers = new Headers(options.headers);
|
|
576
575
|
|
package/src/base.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
BaseAPI as ClientBaseAPI,
|
|
3
|
+
Configuration as ClientConfig,
|
|
4
|
+
FetchAPI,
|
|
5
|
+
} from './client/runtime';
|
|
2
6
|
import { Configuration } from './configuration';
|
|
3
7
|
|
|
4
8
|
/**
|
|
@@ -14,9 +18,7 @@ export class BaseAPI extends ClientBaseAPI {
|
|
|
14
18
|
super(config);
|
|
15
19
|
|
|
16
20
|
const maxRetries =
|
|
17
|
-
config instanceof Configuration
|
|
18
|
-
? config.maxRetries
|
|
19
|
-
: new Configuration().maxRetries;
|
|
21
|
+
config instanceof Configuration ? config.maxRetries : new Configuration().maxRetries;
|
|
20
22
|
|
|
21
23
|
// Wrap the generated pipeline rather than the raw Fetch implementation so that
|
|
22
24
|
// configured middleware still runs for every attempt.
|
|
@@ -31,29 +33,20 @@ export class BaseAPI extends ClientBaseAPI {
|
|
|
31
33
|
* perform its normal success/error conversion. Fetch transport failures are not
|
|
32
34
|
* retried here.
|
|
33
35
|
*/
|
|
34
|
-
function createRetryingFetch(
|
|
35
|
-
fetchApi: FetchAPI,
|
|
36
|
-
maxRetries = 5,
|
|
37
|
-
): FetchAPI {
|
|
36
|
+
function createRetryingFetch(fetchApi: FetchAPI, maxRetries = 5): FetchAPI {
|
|
38
37
|
return async (url, init) => {
|
|
39
38
|
let retries = 0;
|
|
40
39
|
|
|
41
40
|
while (true) {
|
|
42
41
|
const response = await fetchApi(url, init);
|
|
43
42
|
|
|
44
|
-
if (
|
|
45
|
-
(response.status !== 429 && response.status !== 502) ||
|
|
46
|
-
retries >= maxRetries
|
|
47
|
-
) {
|
|
43
|
+
if ((response.status !== 429 && response.status !== 502) || retries >= maxRetries) {
|
|
48
44
|
return response;
|
|
49
45
|
}
|
|
50
46
|
|
|
51
47
|
retries++;
|
|
52
48
|
|
|
53
|
-
const delay =
|
|
54
|
-
response.status === 429
|
|
55
|
-
? getRetryAfterDelay(response)
|
|
56
|
-
: 1000;
|
|
49
|
+
const delay = response.status === 429 ? getRetryAfterDelay(response) : 1000;
|
|
57
50
|
|
|
58
51
|
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
59
52
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Geometry Backend API v2
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.6.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,24 +25,45 @@ import type {
|
|
|
25
25
|
} from '../models/index';
|
|
26
26
|
|
|
27
27
|
export interface GetCreditMetricsRequest {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
28
31
|
reqCreditMetrics: ReqCreditMetrics;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
export interface GetModelOrganizationCreditMetricsRequest {
|
|
35
|
+
/**
|
|
36
|
+
* Timestamp of activity in format YYYY, YYYYMM, YYYYMMDD, or YYYYMMDDHH.
|
|
37
|
+
*/
|
|
32
38
|
timestamp: string;
|
|
39
|
+
/**
|
|
40
|
+
* ID of the organization.
|
|
41
|
+
*/
|
|
33
42
|
orgId: string;
|
|
34
43
|
}
|
|
35
44
|
|
|
36
45
|
export interface GetModelUserCreditMetricsRequest {
|
|
46
|
+
/**
|
|
47
|
+
* Timestamp of activity in format YYYY, YYYYMM, YYYYMMDD, or YYYYMMDDHH.
|
|
48
|
+
*/
|
|
37
49
|
timestamp: string;
|
|
50
|
+
/**
|
|
51
|
+
* ID of the user.
|
|
52
|
+
*/
|
|
38
53
|
userId: string;
|
|
39
54
|
}
|
|
40
55
|
|
|
41
56
|
export interface GetOrganizationCreditMetricsRequest {
|
|
57
|
+
/**
|
|
58
|
+
* Timestamp of activity in format YYYY, YYYYMM, YYYYMMDD, or YYYYMMDDHH.
|
|
59
|
+
*/
|
|
42
60
|
timestamp: string;
|
|
43
61
|
}
|
|
44
62
|
|
|
45
63
|
export interface GetUserCreditMetricsRequest {
|
|
64
|
+
/**
|
|
65
|
+
* Timestamp of activity in format YYYY, YYYYMM, YYYYMMDD, or YYYYMMDDHH.
|
|
66
|
+
*/
|
|
46
67
|
timestamp: string;
|
|
47
68
|
}
|
|
48
69
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Geometry Backend API v2
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.6.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,14 +19,23 @@ import type {
|
|
|
19
19
|
} from '../models/index';
|
|
20
20
|
|
|
21
21
|
export interface DownloadArSceneGltfRequest {
|
|
22
|
+
/**
|
|
23
|
+
* ID of the AR scene or Model-State.
|
|
24
|
+
*/
|
|
22
25
|
sceneId: string;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export interface DownloadArSceneUsdzRequest {
|
|
29
|
+
/**
|
|
30
|
+
* ID of the AR scene or Model-State.
|
|
31
|
+
*/
|
|
26
32
|
sceneId: string;
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
export interface GetArSceneMetadataRequest {
|
|
36
|
+
/**
|
|
37
|
+
* ID of the AR scene or Model-State.
|
|
38
|
+
*/
|
|
30
39
|
sceneId: string;
|
|
31
40
|
}
|
|
32
41
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Geometry Backend API v2
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.6.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,36 +19,75 @@ import type {
|
|
|
19
19
|
} from '../models/index';
|
|
20
20
|
|
|
21
21
|
export interface DownloadAssetRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Encrypted asset data information.
|
|
24
|
+
*/
|
|
22
25
|
assetDataEncrypted: string;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export interface DownloadExportRequest {
|
|
29
|
+
/**
|
|
30
|
+
* Session ID.
|
|
31
|
+
*/
|
|
26
32
|
sessionId: string;
|
|
33
|
+
/**
|
|
34
|
+
* Encrypted asset data information.
|
|
35
|
+
*/
|
|
27
36
|
assetDataEncrypted: string;
|
|
28
37
|
}
|
|
29
38
|
|
|
30
39
|
export interface DownloadGltfRequest {
|
|
40
|
+
/**
|
|
41
|
+
* Session ID.
|
|
42
|
+
*/
|
|
31
43
|
sessionId: string;
|
|
44
|
+
/**
|
|
45
|
+
* Encrypted asset data information.
|
|
46
|
+
*/
|
|
32
47
|
assetDataEncrypted: string;
|
|
33
48
|
}
|
|
34
49
|
|
|
35
50
|
export interface DownloadImageRequest {
|
|
51
|
+
/**
|
|
52
|
+
* Session ID.
|
|
53
|
+
*/
|
|
36
54
|
sessionId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Specify the Base64-encoded image URL.
|
|
57
|
+
*/
|
|
37
58
|
url: string;
|
|
38
59
|
}
|
|
39
60
|
|
|
40
61
|
export interface DownloadOutputRequest {
|
|
62
|
+
/**
|
|
63
|
+
* Session ID.
|
|
64
|
+
*/
|
|
41
65
|
sessionId: string;
|
|
66
|
+
/**
|
|
67
|
+
* Encrypted asset data information.
|
|
68
|
+
*/
|
|
42
69
|
assetDataEncrypted: string;
|
|
43
70
|
}
|
|
44
71
|
|
|
45
72
|
export interface DownloadTextureRequest {
|
|
73
|
+
/**
|
|
74
|
+
* Session ID.
|
|
75
|
+
*/
|
|
46
76
|
sessionId: string;
|
|
77
|
+
/**
|
|
78
|
+
* Encrypted asset data information.
|
|
79
|
+
*/
|
|
47
80
|
assetDataEncrypted: string;
|
|
48
81
|
}
|
|
49
82
|
|
|
50
83
|
export interface DownloadUsdzRequest {
|
|
84
|
+
/**
|
|
85
|
+
* Session ID.
|
|
86
|
+
*/
|
|
51
87
|
sessionId: string;
|
|
88
|
+
/**
|
|
89
|
+
* Encrypted asset data information.
|
|
90
|
+
*/
|
|
52
91
|
assetDataEncrypted: string;
|
|
53
92
|
}
|
|
54
93
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Geometry Backend API v2
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.6.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Geometry Backend API v2
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.6.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,6 +21,9 @@ import type {
|
|
|
21
21
|
} from '../models/index';
|
|
22
22
|
|
|
23
23
|
export interface CreateAuthorizationGroupRequest {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
24
27
|
reqAuthorizationGroup: ReqAuthorizationGroup;
|
|
25
28
|
}
|
|
26
29
|
|