@shapediver/sdk.geometry-api-sdk-v2 2.2.0 → 2.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.
@@ -6,7 +6,7 @@ export interface ConfigurationParameters extends Pick<ClientConfigParams, 'acces
6
6
  maxRetries?: number;
7
7
  }
8
8
  export declare class Configuration extends ClientConfig {
9
- protected readonly sdkVersion = "2.2.0";
9
+ protected readonly sdkVersion = "2.3.0";
10
10
  readonly useCustomAxios: boolean;
11
11
  readonly maxRetries: number;
12
12
  constructor(param?: ConfigurationParameters);
@@ -6,7 +6,7 @@ class Configuration extends configuration_1.Configuration {
6
6
  constructor(param = {}) {
7
7
  var _a, _b, _c, _d;
8
8
  super(param);
9
- this.sdkVersion = '2.2.0';
9
+ this.sdkVersion = '2.3.0';
10
10
  this.useCustomAxios = (_a = param.useCustomAxios) !== null && _a !== void 0 ? _a : true;
11
11
  this.maxRetries = (_b = param.maxRetries) !== null && _b !== void 0 ? _b : 5;
12
12
  this.baseOptions = (_c = this.baseOptions) !== null && _c !== void 0 ? _c : {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapediver/sdk.geometry-api-sdk-v2",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "SDK to communicate with the Geometry API version 2",
5
5
  "keywords": [
6
6
  "shapediver",
package/src/client/api.ts CHANGED
@@ -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: 1.6.1
7
+ * The version of the OpenAPI document: 1.7.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -98,6 +98,25 @@ export interface CommonsGroup {
98
98
  */
99
99
  'name': string;
100
100
  }
101
+ /**
102
+ * Reasons why the model may be blocked.
103
+ * @export
104
+ * @interface CommonsModelBlockingReasons
105
+ */
106
+ export interface CommonsModelBlockingReasons {
107
+ /**
108
+ * The model owner\'s credit limit has been exceeded.
109
+ * @type {boolean}
110
+ * @memberof CommonsModelBlockingReasons
111
+ */
112
+ 'creditLimit'?: boolean;
113
+ /**
114
+ * The model has been blocked explicitly by its owner.
115
+ * @type {boolean}
116
+ * @memberof CommonsModelBlockingReasons
117
+ */
118
+ 'owner'?: boolean;
119
+ }
101
120
  /**
102
121
  * Status of a model.
103
122
  * @export
@@ -360,6 +379,13 @@ export interface ReqAuthorizationGroup {
360
379
  */
361
380
  'organizations'?: Array<string>;
362
381
  }
382
+ /**
383
+ * @type ReqBasicParameter
384
+ * Definition of a basic ShapeDiver parameter.
385
+ * @export
386
+ */
387
+ export type ReqBasicParameter = boolean | number | string;
388
+
363
389
  /**
364
390
  * Body of an export or output cache request. A directory of export-/output-IDs and version-IDs.
365
391
  * @export
@@ -423,7 +449,7 @@ export interface ReqCreditMetrics {
423
449
  'parameters': Array<ReqCreditMetric>;
424
450
  }
425
451
  /**
426
- * A directory of parameter keys and values. Supported parameter keys are as follows, whereby the parameter resolution is done in the same order as the keys are listed: * `id` * `name` * `displayname` Supported parameter values are: * Basic parameter (`CommonsBasicParameter`) * S-type parameter (`CommonsStypeParameter`)
452
+ * A directory of parameter keys and values. Supported parameter keys are as follows, whereby the parameter resolution is done in the same order as the keys are listed: * `id` * `name` * `displayname` Supported parameter values are: * Basic parameter (`ReqBasicParameter`) * S-type parameter (`ReqStypeParameter`)
427
453
  * @export
428
454
  * @interface ReqCustomization
429
455
  */
@@ -654,6 +680,12 @@ export interface ReqModel {
654
680
  * @memberof ReqModel
655
681
  */
656
682
  'backendaccess'?: boolean;
683
+ /**
684
+ *
685
+ * @type {ReqModelBlockingReasons}
686
+ * @memberof ReqModel
687
+ */
688
+ 'blockingReasons'?: ReqModelBlockingReasons;
657
689
  /**
658
690
  * Original name of the model\'s grasshopper file.
659
691
  * @type {string}
@@ -819,6 +851,25 @@ export interface ReqModel {
819
851
  }
820
852
 
821
853
 
854
+ /**
855
+ * Reasons why the model may be blocked.
856
+ * @export
857
+ * @interface ReqModelBlockingReasons
858
+ */
859
+ export interface ReqModelBlockingReasons {
860
+ /**
861
+ * The model owner\'s credit limit has been exceeded.
862
+ * @type {boolean}
863
+ * @memberof ReqModelBlockingReasons
864
+ */
865
+ 'creditLimit'?: boolean;
866
+ /**
867
+ * The model has been blocked explicitly by its owner.
868
+ * @type {boolean}
869
+ * @memberof ReqModelBlockingReasons
870
+ */
871
+ 'owner'?: boolean;
872
+ }
822
873
  /**
823
874
  * Model metrics
824
875
  * @export
@@ -1120,7 +1171,7 @@ export interface ReqParameterDefinitions {
1120
1171
  * The value of a single model parameter.
1121
1172
  * @export
1122
1173
  */
1123
- export type ReqParameterValue = CommonsBasicParameter | CommonsStypeParameter;
1174
+ export type ReqParameterValue = ReqBasicParameter | ReqStypeParameter;
1124
1175
 
1125
1176
  /**
1126
1177
  * Data for a single sdTF parameter.
@@ -1168,6 +1219,25 @@ export const ReqSdtfType = {
1168
1219
  export type ReqSdtfType = typeof ReqSdtfType[keyof typeof ReqSdtfType];
1169
1220
 
1170
1221
 
1222
+ /**
1223
+ * Definition of the value to use for s-type parameters.
1224
+ * @export
1225
+ * @interface ReqStypeParameter
1226
+ */
1227
+ export interface ReqStypeParameter {
1228
+ /**
1229
+ * Optional embedded value. If this is set the asset is ignored.
1230
+ * @type {string}
1231
+ * @memberof ReqStypeParameter
1232
+ */
1233
+ 'value'?: string;
1234
+ /**
1235
+ *
1236
+ * @type {CommmonsParameterAsset}
1237
+ * @memberof ReqStypeParameter
1238
+ */
1239
+ 'asset'?: CommmonsParameterAsset;
1240
+ }
1171
1241
  /**
1172
1242
  * System-wide metrics
1173
1243
  * @export
@@ -1787,6 +1857,13 @@ export interface ResBaseSystem {
1787
1857
  */
1788
1858
  'system'?: ResSystem;
1789
1859
  }
1860
+ /**
1861
+ * @type ResBasicParameter
1862
+ * Definition of a basic ShapeDiver parameter.
1863
+ * @export
1864
+ */
1865
+ export type ResBasicParameter = boolean | number | string;
1866
+
1790
1867
  /**
1791
1868
  *
1792
1869
  * @export
@@ -4352,6 +4429,12 @@ export interface ResModel {
4352
4429
  * @memberof ResModel
4353
4430
  */
4354
4431
  'backlinkurl'?: string;
4432
+ /**
4433
+ *
4434
+ * @type {ResModelBlockingReasons}
4435
+ * @memberof ResModel
4436
+ */
4437
+ 'blockingReasons'?: ResModelBlockingReasons;
4355
4438
  /**
4356
4439
  * Link to continue the checking process of the model on the ShapeDiver Platform.
4357
4440
  * @type {string}
@@ -4433,6 +4516,31 @@ export interface ResModel {
4433
4516
  }
4434
4517
 
4435
4518
 
4519
+ /**
4520
+ *
4521
+ * @export
4522
+ * @interface ResModelBlockingReasons
4523
+ */
4524
+ export interface ResModelBlockingReasons {
4525
+ /**
4526
+ * The model owner\'s credit limit has been exceeded.
4527
+ * @type {boolean}
4528
+ * @memberof ResModelBlockingReasons
4529
+ */
4530
+ 'creditLimit': boolean;
4531
+ /**
4532
+ * The model has been blocked explicitly by its owner.
4533
+ * @type {boolean}
4534
+ * @memberof ResModelBlockingReasons
4535
+ */
4536
+ 'owner': boolean;
4537
+ /**
4538
+ * The model uses a Grasshopper plugin that is not allowed for the owner.
4539
+ * @type {boolean}
4540
+ * @memberof ResModelBlockingReasons
4541
+ */
4542
+ 'pluginPermission': boolean;
4543
+ }
4436
4544
  /**
4437
4545
  * Information about a model cleanup process.
4438
4546
  * @export
@@ -6043,10 +6151,10 @@ export type ResParameterType = typeof ResParameterType[keyof typeof ResParameter
6043
6151
 
6044
6152
  /**
6045
6153
  * @type ResParameterValue
6046
- * The value of a single model parameter. Supported parameter values are: * Basic parameter (`CommonsBasicParameter`) * S-type parameter (`CommonsStypeParameter`)
6154
+ * The value of a single model parameter. Supported parameter values are: * Basic parameter (`ResBasicParameter`) * S-type parameter (`ResStypeParameter`)
6047
6155
  * @export
6048
6156
  */
6049
- export type ResParameterValue = CommonsBasicParameter | CommonsStypeParameter;
6157
+ export type ResParameterValue = ResBasicParameter | ResStypeParameter;
6050
6158
 
6051
6159
  /**
6052
6160
  *
@@ -6731,6 +6839,25 @@ export const ResStructureType = {
6731
6839
  export type ResStructureType = typeof ResStructureType[keyof typeof ResStructureType];
6732
6840
 
6733
6841
 
6842
+ /**
6843
+ * Definition of the value to use for s-type parameters.
6844
+ * @export
6845
+ * @interface ResStypeParameter
6846
+ */
6847
+ export interface ResStypeParameter {
6848
+ /**
6849
+ * Optional embedded value. If this is set the asset is ignored.
6850
+ * @type {string}
6851
+ * @memberof ResStypeParameter
6852
+ */
6853
+ 'value'?: string;
6854
+ /**
6855
+ *
6856
+ * @type {CommmonsParameterAsset}
6857
+ * @memberof ResStypeParameter
6858
+ */
6859
+ 'asset'?: CommmonsParameterAsset;
6860
+ }
6734
6861
  /**
6735
6862
  * ShapeDiver API response of system-request.
6736
6863
  * @export
@@ -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: 1.6.1
7
+ * The version of the OpenAPI document: 1.7.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: 1.6.1
7
+ * The version of the OpenAPI document: 1.7.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: 1.6.1
7
+ * The version of the OpenAPI document: 1.7.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: 1.6.1
7
+ * The version of the OpenAPI document: 1.7.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,7 +34,7 @@ export interface ConfigurationParameters
34
34
  }
35
35
 
36
36
  export class Configuration extends ClientConfig {
37
- protected readonly sdkVersion = '2.2.0'; // WARNING: This value is updated automatically!
37
+ protected readonly sdkVersion = '2.3.0'; // WARNING: This value is updated automatically!
38
38
 
39
39
  public readonly useCustomAxios: boolean;
40
40
  public readonly maxRetries: number;