@shapediver/sdk.geometry-api-sdk-v2 4.2.1 → 4.3.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/dist/UtilsApi.d.ts.map +1 -1
- package/dist/UtilsApi.js +0 -2
- package/dist/UtilsApi.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.js +1 -1
- package/package.json +1 -1
- package/src/UtilsApi.ts +0 -2
- 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 +1 -1
|
@@ -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
|
|
|
@@ -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).
|
|
@@ -27,26 +27,65 @@ import type {
|
|
|
27
27
|
} from '../models/index';
|
|
28
28
|
|
|
29
29
|
export interface ComputeExportsRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Session ID.
|
|
32
|
+
*/
|
|
30
33
|
sessionId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
31
37
|
reqExport: ReqExport;
|
|
38
|
+
/**
|
|
39
|
+
* Allow relaxed validation of parameter identifiers. When set to `true`, unrecognized
|
|
40
|
+
* parameters will be ignored rather than causing an error.
|
|
41
|
+
*
|
|
42
|
+
* Defaults to `false`.
|
|
43
|
+
*/
|
|
32
44
|
ignoreUnknownParams?: boolean;
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
export interface GetCachedExportsRequest {
|
|
48
|
+
/**
|
|
49
|
+
* Session ID.
|
|
50
|
+
*/
|
|
36
51
|
sessionId: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
37
55
|
reqExportOrCache: ReqExportOrCache;
|
|
38
56
|
}
|
|
39
57
|
|
|
40
58
|
export interface ListExportVersionsRequest {
|
|
59
|
+
/**
|
|
60
|
+
* Session ID.
|
|
61
|
+
*/
|
|
41
62
|
sessionId: string;
|
|
63
|
+
/**
|
|
64
|
+
* Export ID.
|
|
65
|
+
*/
|
|
42
66
|
exportId: string;
|
|
67
|
+
/**
|
|
68
|
+
* Filter export versions by `status_computation`.
|
|
69
|
+
*/
|
|
43
70
|
statusComputation?: QueryComputationStatus;
|
|
71
|
+
/**
|
|
72
|
+
* Filter export versions by `status_collect`.
|
|
73
|
+
*/
|
|
44
74
|
statusCollect?: QueryComputationStatus;
|
|
75
|
+
/**
|
|
76
|
+
* Continuation token for pagination.
|
|
77
|
+
*/
|
|
45
78
|
offset?: string;
|
|
46
79
|
}
|
|
47
80
|
|
|
48
81
|
export interface UpdateExportDefinitionsRequest {
|
|
82
|
+
/**
|
|
83
|
+
* Model ID.
|
|
84
|
+
*/
|
|
49
85
|
modelId: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
50
89
|
reqExportDefinitions: ReqExportDefinitions;
|
|
51
90
|
}
|
|
52
91
|
|
|
@@ -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).
|
|
@@ -23,31 +23,73 @@ import type {
|
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface DeleteFileRequest {
|
|
26
|
+
/**
|
|
27
|
+
* Session ID.
|
|
28
|
+
*/
|
|
26
29
|
sessionId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Parameter ID of the file asset.
|
|
32
|
+
*/
|
|
27
33
|
paramId: string;
|
|
34
|
+
/**
|
|
35
|
+
* ID of the file asset.
|
|
36
|
+
*/
|
|
28
37
|
fileId: string;
|
|
29
38
|
}
|
|
30
39
|
|
|
31
40
|
export interface DownloadFileRequest {
|
|
41
|
+
/**
|
|
42
|
+
* Session ID.
|
|
43
|
+
*/
|
|
32
44
|
sessionId: string;
|
|
45
|
+
/**
|
|
46
|
+
* Parameter ID of the file asset.
|
|
47
|
+
*/
|
|
33
48
|
paramId: string;
|
|
49
|
+
/**
|
|
50
|
+
* ID of the file asset.
|
|
51
|
+
*/
|
|
34
52
|
fileId: string;
|
|
35
53
|
}
|
|
36
54
|
|
|
37
55
|
export interface GetFileMetadataRequest {
|
|
56
|
+
/**
|
|
57
|
+
* Session ID.
|
|
58
|
+
*/
|
|
38
59
|
sessionId: string;
|
|
60
|
+
/**
|
|
61
|
+
* Parameter ID of the file asset.
|
|
62
|
+
*/
|
|
39
63
|
paramId: string;
|
|
64
|
+
/**
|
|
65
|
+
* ID of the file asset.
|
|
66
|
+
*/
|
|
40
67
|
fileId: string;
|
|
41
68
|
}
|
|
42
69
|
|
|
43
70
|
export interface ListFilesRequest {
|
|
71
|
+
/**
|
|
72
|
+
* Session ID.
|
|
73
|
+
*/
|
|
44
74
|
sessionId: string;
|
|
75
|
+
/**
|
|
76
|
+
* Parameter ID of the file asset.
|
|
77
|
+
*/
|
|
45
78
|
paramId: string;
|
|
79
|
+
/**
|
|
80
|
+
* Continuation token for pagination.
|
|
81
|
+
*/
|
|
46
82
|
offset?: string;
|
|
47
83
|
}
|
|
48
84
|
|
|
49
85
|
export interface UploadFileRequest {
|
|
86
|
+
/**
|
|
87
|
+
* Session ID.
|
|
88
|
+
*/
|
|
50
89
|
sessionId: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
51
93
|
reqFileUpload: ReqFileUpload;
|
|
52
94
|
}
|
|
53
95
|
|
|
@@ -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,8 +21,17 @@ import type {
|
|
|
21
21
|
} from '../models/index';
|
|
22
22
|
|
|
23
23
|
export interface UploadGltfRequest {
|
|
24
|
+
/**
|
|
25
|
+
* Session ID.
|
|
26
|
+
*/
|
|
24
27
|
sessionId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
25
31
|
body: Blob;
|
|
32
|
+
/**
|
|
33
|
+
* Specify to convert the uploaded glTF.
|
|
34
|
+
*/
|
|
26
35
|
conversion?: QueryGltfConversion;
|
|
27
36
|
}
|
|
28
37
|
|
|
@@ -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,7 +21,13 @@ import type {
|
|
|
21
21
|
} from '../models/index';
|
|
22
22
|
|
|
23
23
|
export interface LogMessageRequest {
|
|
24
|
+
/**
|
|
25
|
+
* Session ID.
|
|
26
|
+
*/
|
|
24
27
|
sessionId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
25
31
|
reqLogMessage: ReqLogMessage;
|
|
26
32
|
}
|
|
27
33
|
|
|
@@ -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).
|
|
@@ -34,6 +34,7 @@ import type {
|
|
|
34
34
|
ResGetModel,
|
|
35
35
|
ResGetModelComputations,
|
|
36
36
|
ResGetModelConfig,
|
|
37
|
+
ResGetModelSessionsAnalytics,
|
|
37
38
|
ResListModels,
|
|
38
39
|
ResUpdateModel,
|
|
39
40
|
ResUpdateModelConfig,
|
|
@@ -42,91 +43,257 @@ import type {
|
|
|
42
43
|
} from '../models/index';
|
|
43
44
|
|
|
44
45
|
export interface CleanupExportsRequest {
|
|
46
|
+
/**
|
|
47
|
+
* Model ID.
|
|
48
|
+
*/
|
|
45
49
|
modelId: string;
|
|
50
|
+
/**
|
|
51
|
+
* Delete all components that have been used last at or before this timestamp.
|
|
52
|
+
*/
|
|
46
53
|
untilLastSeen: string;
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
export interface CleanupOutputsRequest {
|
|
57
|
+
/**
|
|
58
|
+
* Model ID.
|
|
59
|
+
*/
|
|
50
60
|
modelId: string;
|
|
61
|
+
/**
|
|
62
|
+
* Delete all components that have been used last at or before this timestamp.
|
|
63
|
+
*/
|
|
51
64
|
untilLastSeen: string;
|
|
52
65
|
}
|
|
53
66
|
|
|
54
67
|
export interface CleanupTexturesRequest {
|
|
68
|
+
/**
|
|
69
|
+
* Model ID.
|
|
70
|
+
*/
|
|
55
71
|
modelId: string;
|
|
72
|
+
/**
|
|
73
|
+
* Delete all components that have been used last at or before this timestamp.
|
|
74
|
+
*/
|
|
56
75
|
untilLastSeen: string;
|
|
57
76
|
}
|
|
58
77
|
|
|
59
78
|
export interface CreateModelRequest {
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
60
82
|
reqModel: ReqModel;
|
|
61
83
|
}
|
|
62
84
|
|
|
63
85
|
export interface CreateModelConfigRequest {
|
|
86
|
+
/**
|
|
87
|
+
* Model ID.
|
|
88
|
+
*/
|
|
64
89
|
modelId: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
65
93
|
reqConfigure: ReqConfigure;
|
|
66
94
|
}
|
|
67
95
|
|
|
68
96
|
export interface DeleteModelRequest {
|
|
97
|
+
/**
|
|
98
|
+
* Model ID.
|
|
99
|
+
*/
|
|
69
100
|
modelId: string;
|
|
70
101
|
}
|
|
71
102
|
|
|
72
103
|
export interface DownloadModelFileRequest {
|
|
104
|
+
/**
|
|
105
|
+
* Model ID.
|
|
106
|
+
*/
|
|
73
107
|
modelId: string;
|
|
74
108
|
}
|
|
75
109
|
|
|
76
110
|
export interface GetCleanupStatusRequest {
|
|
111
|
+
/**
|
|
112
|
+
* Model ID.
|
|
113
|
+
*/
|
|
77
114
|
modelId: string;
|
|
78
115
|
}
|
|
79
116
|
|
|
80
117
|
export interface GetModelRequest {
|
|
118
|
+
/**
|
|
119
|
+
* Model ID.
|
|
120
|
+
*/
|
|
81
121
|
modelId: string;
|
|
82
122
|
}
|
|
83
123
|
|
|
84
124
|
export interface GetModelComputationsRequest {
|
|
125
|
+
/**
|
|
126
|
+
* Model ID.
|
|
127
|
+
*/
|
|
85
128
|
modelId: string;
|
|
129
|
+
/**
|
|
130
|
+
* Order in which to query computation stats items.
|
|
131
|
+
*
|
|
132
|
+
* _Default:_ `desc`
|
|
133
|
+
*/
|
|
86
134
|
order?: QueryOrder;
|
|
135
|
+
/**
|
|
136
|
+
* Timestamp to query from.
|
|
137
|
+
*
|
|
138
|
+
* _Default:_ `0`
|
|
139
|
+
*/
|
|
87
140
|
timestampFrom?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Timestamp to query to.
|
|
143
|
+
*
|
|
144
|
+
* _Default:_ `infinity`
|
|
145
|
+
*/
|
|
88
146
|
timestampTo?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Filter computations by the result status.
|
|
149
|
+
*
|
|
150
|
+
* _Default:_ `*`
|
|
151
|
+
*/
|
|
89
152
|
status?: QueryComputationStatisticsStatus;
|
|
153
|
+
/**
|
|
154
|
+
* Filter computations by type.
|
|
155
|
+
*
|
|
156
|
+
* _Default:_ `*`
|
|
157
|
+
*/
|
|
90
158
|
type?: QueryComputationType;
|
|
159
|
+
/**
|
|
160
|
+
* How many items to return at most.
|
|
161
|
+
*
|
|
162
|
+
* _Default:_ `100`
|
|
163
|
+
*/
|
|
91
164
|
limit?: number;
|
|
165
|
+
/**
|
|
166
|
+
* Whether the limit shall be attained (if there are enough items).
|
|
167
|
+
*
|
|
168
|
+
* _Default:_ `false`
|
|
169
|
+
*/
|
|
92
170
|
strictLimit?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Continuation token for pagination.
|
|
173
|
+
*/
|
|
93
174
|
offset?: string;
|
|
94
175
|
}
|
|
95
176
|
|
|
96
177
|
export interface GetModelConfigRequest {
|
|
178
|
+
/**
|
|
179
|
+
* Model ID.
|
|
180
|
+
*/
|
|
97
181
|
modelId: string;
|
|
182
|
+
/**
|
|
183
|
+
* When set to `true`, the config object is returned as stored, without any version conversion applied. [Priority: 1]
|
|
184
|
+
*/
|
|
98
185
|
xShapediverNoconvert?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* When set to `true`, the returned config version will be of the same version as when the config object has been created. In case the version number cannot be extracted from the config object, this header is ignored. [Priority: 2]
|
|
188
|
+
*/
|
|
99
189
|
xShapediverUseconfigversion?: string;
|
|
190
|
+
/**
|
|
191
|
+
* When specified, converts the requested config object to the provided target version. Otherwise, the config object is converted into the default version instead. [Priority: 3]
|
|
192
|
+
*/
|
|
100
193
|
xShapediverBuildversion?: string;
|
|
101
194
|
}
|
|
102
195
|
|
|
196
|
+
export interface GetModelSessionsAnalyticsRequest {
|
|
197
|
+
/**
|
|
198
|
+
* Model ID.
|
|
199
|
+
*/
|
|
200
|
+
modelId: string;
|
|
201
|
+
/**
|
|
202
|
+
* Order in which to query session analytics items.
|
|
203
|
+
*
|
|
204
|
+
* _Default:_ `desc`
|
|
205
|
+
*/
|
|
206
|
+
order?: QueryOrder;
|
|
207
|
+
/**
|
|
208
|
+
* Open timestamp to query from.
|
|
209
|
+
*
|
|
210
|
+
* _Default:_ `0`
|
|
211
|
+
*/
|
|
212
|
+
timestampFrom?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Open timestamp to query to.
|
|
215
|
+
*
|
|
216
|
+
* _Default:_ `infinity`
|
|
217
|
+
*/
|
|
218
|
+
timestampTo?: string;
|
|
219
|
+
/**
|
|
220
|
+
* How many items to return at most.
|
|
221
|
+
*
|
|
222
|
+
* _Default:_ `100`
|
|
223
|
+
*/
|
|
224
|
+
limit?: number;
|
|
225
|
+
/**
|
|
226
|
+
* Continuation token for pagination.
|
|
227
|
+
*/
|
|
228
|
+
offset?: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
103
231
|
export interface ListModelsRequest {
|
|
232
|
+
/**
|
|
233
|
+
* Filter models by `stat`.
|
|
234
|
+
*/
|
|
104
235
|
modelStatus?: QueryModelStatus;
|
|
236
|
+
/**
|
|
237
|
+
* Continuation token for pagination.
|
|
238
|
+
*/
|
|
105
239
|
offset?: string;
|
|
106
240
|
}
|
|
107
241
|
|
|
108
242
|
export interface RestoreModelRequest {
|
|
243
|
+
/**
|
|
244
|
+
* Model ID.
|
|
245
|
+
*/
|
|
109
246
|
modelId: string;
|
|
110
247
|
}
|
|
111
248
|
|
|
112
249
|
export interface UpdateModelRequest {
|
|
250
|
+
/**
|
|
251
|
+
* Model ID.
|
|
252
|
+
*/
|
|
113
253
|
modelId: string;
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
*/
|
|
114
257
|
reqModel: ReqModel;
|
|
115
258
|
}
|
|
116
259
|
|
|
117
260
|
export interface UpdateModelConfigRequest {
|
|
261
|
+
/**
|
|
262
|
+
* Model ID.
|
|
263
|
+
*/
|
|
118
264
|
modelId: string;
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
*/
|
|
119
268
|
reqConfigure: ReqConfigure;
|
|
120
269
|
}
|
|
121
270
|
|
|
122
271
|
export interface UpdateParameterDefaultValuesRequest {
|
|
272
|
+
/**
|
|
273
|
+
* Model ID.
|
|
274
|
+
*/
|
|
123
275
|
modelId: string;
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
*/
|
|
124
279
|
reqCustomization: ReqCustomization;
|
|
280
|
+
/**
|
|
281
|
+
* Allow relaxed validation of parameter identifiers. When set to `true`, unrecognized
|
|
282
|
+
* parameters will be ignored rather than causing an error.
|
|
283
|
+
*
|
|
284
|
+
* Defaults to `false`.
|
|
285
|
+
*/
|
|
125
286
|
ignoreUnknownParams?: boolean;
|
|
126
287
|
}
|
|
127
288
|
|
|
128
289
|
export interface UpdateParameterDefinitionsRequest {
|
|
290
|
+
/**
|
|
291
|
+
* Model ID.
|
|
292
|
+
*/
|
|
129
293
|
modelId: string;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
*/
|
|
130
297
|
reqParameterDefinitions: ReqParameterDefinitions;
|
|
131
298
|
}
|
|
132
299
|
|
|
@@ -829,6 +996,81 @@ export class ModelApi extends BaseAPI {
|
|
|
829
996
|
return await response.value();
|
|
830
997
|
}
|
|
831
998
|
|
|
999
|
+
/**
|
|
1000
|
+
* Creates request options for getModelSessionsAnalytics without sending the request
|
|
1001
|
+
*/
|
|
1002
|
+
async getModelSessionsAnalyticsRequestOpts(requestParameters: GetModelSessionsAnalyticsRequest): Promise<runtime.RequestOpts> {
|
|
1003
|
+
if (requestParameters['modelId'] == null) {
|
|
1004
|
+
throw new runtime.RequiredError(
|
|
1005
|
+
'modelId',
|
|
1006
|
+
'Required parameter "modelId" was null or undefined when calling getModelSessionsAnalytics().'
|
|
1007
|
+
);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
const queryParameters: any = {};
|
|
1011
|
+
|
|
1012
|
+
if (requestParameters['order'] != null) {
|
|
1013
|
+
queryParameters['order'] = requestParameters['order'];
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
if (requestParameters['timestampFrom'] != null) {
|
|
1017
|
+
queryParameters['timestamp_from'] = requestParameters['timestampFrom'];
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
if (requestParameters['timestampTo'] != null) {
|
|
1021
|
+
queryParameters['timestamp_to'] = requestParameters['timestampTo'];
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
if (requestParameters['limit'] != null) {
|
|
1025
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
if (requestParameters['offset'] != null) {
|
|
1029
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1033
|
+
|
|
1034
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1035
|
+
const token = this.configuration.accessToken;
|
|
1036
|
+
const tokenString = await token("JwtAuth", []);
|
|
1037
|
+
|
|
1038
|
+
if (tokenString) {
|
|
1039
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
let urlPath = `/api/v2/model/{modelId}/sessions`;
|
|
1044
|
+
urlPath = urlPath.replace('{modelId}', encodeURIComponent(String(requestParameters['modelId'])));
|
|
1045
|
+
|
|
1046
|
+
return {
|
|
1047
|
+
path: urlPath,
|
|
1048
|
+
method: 'GET',
|
|
1049
|
+
headers: headerParameters,
|
|
1050
|
+
query: queryParameters,
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Returns session analytics whose **open** timestamp falls in the requested time range. `statistics` is omitted until the session has been finalized. Permissions: * `analytics.model.get.*` - __required__.
|
|
1056
|
+
* Get model session analytics in a time range.
|
|
1057
|
+
*/
|
|
1058
|
+
async getModelSessionsAnalyticsRaw(requestParameters: GetModelSessionsAnalyticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResGetModelSessionsAnalytics>> {
|
|
1059
|
+
const requestOptions = await this.getModelSessionsAnalyticsRequestOpts(requestParameters);
|
|
1060
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1061
|
+
|
|
1062
|
+
return new runtime.JSONApiResponse(response);
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Returns session analytics whose **open** timestamp falls in the requested time range. `statistics` is omitted until the session has been finalized. Permissions: * `analytics.model.get.*` - __required__.
|
|
1067
|
+
* Get model session analytics in a time range.
|
|
1068
|
+
*/
|
|
1069
|
+
async getModelSessionsAnalytics(modelId: string, order?: QueryOrder, timestampFrom?: string, timestampTo?: string, limit?: number, offset?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResGetModelSessionsAnalytics> {
|
|
1070
|
+
const response = await this.getModelSessionsAnalyticsRaw({ modelId: modelId, order: order, timestampFrom: timestampFrom, timestampTo: timestampTo, limit: limit, offset: offset }, initOverrides);
|
|
1071
|
+
return await response.value();
|
|
1072
|
+
}
|
|
1073
|
+
|
|
832
1074
|
/**
|
|
833
1075
|
* Creates request options for listModels without sending the request
|
|
834
1076
|
*/
|