@spaciv/sdk 0.1.21 → 0.1.23

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.
Files changed (224) hide show
  1. package/.openapi-generator/FILES +24 -1
  2. package/README.md +2 -2
  3. package/dist/apis/FilesApi.d.ts +28 -1
  4. package/dist/apis/FilesApi.js +40 -0
  5. package/dist/apis/LogicLayersApi.d.ts +279 -0
  6. package/dist/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +72 -62
  7. package/dist/apis/ObjectGroupsApi.d.ts +28 -1
  8. package/dist/apis/ObjectGroupsApi.js +40 -0
  9. package/dist/apis/PropertiesApi.d.ts +16 -16
  10. package/dist/apis/PropertiesApi.js +8 -8
  11. package/dist/apis/ScenariosApi.d.ts +4 -4
  12. package/dist/apis/ScenariosApi.js +2 -2
  13. package/dist/apis/TopDownModelsApi.d.ts +4 -4
  14. package/dist/apis/TopDownModelsApi.js +2 -2
  15. package/dist/apis/VariablesApi.d.ts +4 -4
  16. package/dist/apis/VariablesApi.js +2 -2
  17. package/dist/apis/index.d.ts +1 -1
  18. package/dist/apis/index.js +1 -1
  19. package/dist/esm/apis/FilesApi.d.ts +28 -1
  20. package/dist/esm/apis/FilesApi.js +41 -1
  21. package/dist/esm/apis/LogicLayersApi.d.ts +279 -0
  22. package/dist/esm/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +70 -60
  23. package/dist/esm/apis/ObjectGroupsApi.d.ts +28 -1
  24. package/dist/esm/apis/ObjectGroupsApi.js +41 -1
  25. package/dist/esm/apis/PropertiesApi.d.ts +16 -16
  26. package/dist/esm/apis/PropertiesApi.js +8 -8
  27. package/dist/esm/apis/ScenariosApi.d.ts +4 -4
  28. package/dist/esm/apis/ScenariosApi.js +2 -2
  29. package/dist/esm/apis/TopDownModelsApi.d.ts +4 -4
  30. package/dist/esm/apis/TopDownModelsApi.js +2 -2
  31. package/dist/esm/apis/VariablesApi.d.ts +4 -4
  32. package/dist/esm/apis/VariablesApi.js +2 -2
  33. package/dist/esm/apis/index.d.ts +1 -1
  34. package/dist/esm/apis/index.js +1 -1
  35. package/dist/esm/models/AccountTextFilePostBody.d.ts +38 -0
  36. package/dist/esm/models/AccountTextFilePostBody.js +45 -0
  37. package/dist/esm/models/CalcCompare.d.ts +45 -0
  38. package/dist/esm/models/CalcCompare.js +52 -0
  39. package/dist/esm/models/CalcCondition.d.ts +46 -0
  40. package/dist/esm/models/CalcCondition.js +53 -0
  41. package/dist/esm/models/CalcHasNode.d.ts +44 -0
  42. package/dist/esm/models/CalcHasNode.js +51 -0
  43. package/dist/esm/models/CalcIsObject.d.ts +32 -0
  44. package/dist/esm/models/CalcIsObject.js +43 -0
  45. package/dist/esm/models/CalcRuleRef.d.ts +2 -1
  46. package/dist/esm/models/CalcRuleRef.js +7 -0
  47. package/dist/esm/models/CalcRuleRefOneOf2.d.ts +3 -2
  48. package/dist/esm/models/CalcRuleRefOneOf2.js +4 -3
  49. package/dist/esm/models/CalcRuleRefOneOf3.d.ts +2 -3
  50. package/dist/esm/models/CalcRuleRefOneOf3.js +3 -4
  51. package/dist/esm/models/CalcRuleRefOneOf4.d.ts +3 -3
  52. package/dist/esm/models/CalcRuleRefOneOf4.js +4 -4
  53. package/dist/esm/models/CalcRuleRefOneOf5.d.ts +3 -2
  54. package/dist/esm/models/CalcRuleRefOneOf5.js +4 -3
  55. package/dist/esm/models/CalcRuleRefOneOf6.d.ts +32 -0
  56. package/dist/esm/models/CalcRuleRefOneOf6.js +43 -0
  57. package/dist/esm/models/CalcTest.d.ts +24 -0
  58. package/dist/esm/models/CalcTest.js +58 -0
  59. package/dist/esm/models/CalcTestOneOf.d.ts +33 -0
  60. package/dist/esm/models/CalcTestOneOf.js +44 -0
  61. package/dist/esm/models/CalcTestOneOf1.d.ts +33 -0
  62. package/dist/esm/models/CalcTestOneOf1.js +44 -0
  63. package/dist/esm/models/CalcTestOneOf2.d.ts +33 -0
  64. package/dist/esm/models/CalcTestOneOf2.js +44 -0
  65. package/dist/esm/models/Group.d.ts +45 -0
  66. package/dist/esm/models/Group.js +52 -0
  67. package/dist/esm/models/LayerVariablesRes.d.ts +1 -1
  68. package/dist/esm/models/LogicAssignment.d.ts +23 -0
  69. package/dist/esm/models/LogicAssignment.js +51 -0
  70. package/dist/esm/models/LogicAssignmentOneOf.d.ts +32 -0
  71. package/dist/esm/models/LogicAssignmentOneOf.js +43 -0
  72. package/dist/esm/models/LogicAssignmentOneOf1.d.ts +32 -0
  73. package/dist/esm/models/LogicAssignmentOneOf1.js +43 -0
  74. package/dist/esm/models/LogicDemand.d.ts +40 -0
  75. package/dist/esm/models/LogicDemand.js +49 -0
  76. package/dist/esm/models/LogicLayerConfig.d.ts +39 -0
  77. package/dist/esm/models/LogicLayerConfig.js +48 -0
  78. package/dist/esm/models/LogicPer.d.ts +45 -0
  79. package/dist/esm/models/LogicPer.js +52 -0
  80. package/dist/esm/models/LogicRule.d.ts +66 -0
  81. package/dist/esm/models/LogicRule.js +67 -0
  82. package/dist/esm/models/LogicSupply.d.ts +48 -0
  83. package/dist/esm/models/LogicSupply.js +54 -0
  84. package/dist/esm/models/LogicSupplyWeight.d.ts +32 -0
  85. package/dist/esm/models/LogicSupplyWeight.js +43 -0
  86. package/dist/esm/models/MaybeVarInt.d.ts +2 -2
  87. package/dist/esm/models/MaybeVarInt.js +5 -5
  88. package/dist/esm/models/MaybeVarProp.d.ts +2 -2
  89. package/dist/esm/models/MaybeVarProp.js +5 -5
  90. package/dist/esm/models/MaybeVarStr.d.ts +2 -2
  91. package/dist/esm/models/MaybeVarStr.js +5 -5
  92. package/dist/esm/models/ModelObject.d.ts +38 -0
  93. package/dist/esm/models/ModelObject.js +47 -0
  94. package/dist/esm/models/ModelRecord.d.ts +1 -1
  95. package/dist/esm/models/ObjectGroupListEntry.d.ts +0 -6
  96. package/dist/esm/models/ObjectGroupListEntry.js +0 -4
  97. package/dist/esm/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
  98. package/dist/esm/models/SelectObjectsParamsWrapperBody.js +44 -0
  99. package/dist/esm/models/Selection.d.ts +39 -0
  100. package/dist/esm/models/Selection.js +48 -0
  101. package/dist/esm/models/SpaceRuleSetJSON.d.ts +3 -2
  102. package/dist/esm/models/SpaceRuleSetJSON.js +3 -2
  103. package/dist/esm/models/SpaceRulesetCreate.d.ts +1 -1
  104. package/dist/esm/models/index.d.ts +23 -0
  105. package/dist/esm/models/index.js +23 -0
  106. package/dist/models/AccountTextFilePostBody.d.ts +38 -0
  107. package/dist/models/AccountTextFilePostBody.js +52 -0
  108. package/dist/models/CalcCompare.d.ts +45 -0
  109. package/dist/models/CalcCompare.js +59 -0
  110. package/dist/models/CalcCondition.d.ts +46 -0
  111. package/dist/models/CalcCondition.js +60 -0
  112. package/dist/models/CalcHasNode.d.ts +44 -0
  113. package/dist/models/CalcHasNode.js +58 -0
  114. package/dist/models/CalcIsObject.d.ts +32 -0
  115. package/dist/models/CalcIsObject.js +50 -0
  116. package/dist/models/CalcRuleRef.d.ts +2 -1
  117. package/dist/models/CalcRuleRef.js +7 -0
  118. package/dist/models/CalcRuleRefOneOf2.d.ts +3 -2
  119. package/dist/models/CalcRuleRefOneOf2.js +4 -3
  120. package/dist/models/CalcRuleRefOneOf3.d.ts +2 -3
  121. package/dist/models/CalcRuleRefOneOf3.js +3 -4
  122. package/dist/models/CalcRuleRefOneOf4.d.ts +3 -3
  123. package/dist/models/CalcRuleRefOneOf4.js +4 -4
  124. package/dist/models/CalcRuleRefOneOf5.d.ts +3 -2
  125. package/dist/models/CalcRuleRefOneOf5.js +4 -3
  126. package/dist/models/CalcRuleRefOneOf6.d.ts +32 -0
  127. package/dist/models/CalcRuleRefOneOf6.js +50 -0
  128. package/dist/models/CalcTest.d.ts +24 -0
  129. package/dist/models/CalcTest.js +64 -0
  130. package/dist/models/CalcTestOneOf.d.ts +33 -0
  131. package/dist/models/CalcTestOneOf.js +51 -0
  132. package/dist/models/CalcTestOneOf1.d.ts +33 -0
  133. package/dist/models/CalcTestOneOf1.js +51 -0
  134. package/dist/models/CalcTestOneOf2.d.ts +33 -0
  135. package/dist/models/CalcTestOneOf2.js +51 -0
  136. package/dist/models/Group.d.ts +45 -0
  137. package/dist/models/Group.js +59 -0
  138. package/dist/models/LayerVariablesRes.d.ts +1 -1
  139. package/dist/models/LogicAssignment.d.ts +23 -0
  140. package/dist/models/LogicAssignment.js +57 -0
  141. package/dist/models/LogicAssignmentOneOf.d.ts +32 -0
  142. package/dist/models/LogicAssignmentOneOf.js +50 -0
  143. package/dist/models/LogicAssignmentOneOf1.d.ts +32 -0
  144. package/dist/models/LogicAssignmentOneOf1.js +50 -0
  145. package/dist/models/LogicDemand.d.ts +40 -0
  146. package/dist/models/LogicDemand.js +56 -0
  147. package/dist/models/LogicLayerConfig.d.ts +39 -0
  148. package/dist/models/LogicLayerConfig.js +55 -0
  149. package/dist/models/LogicPer.d.ts +45 -0
  150. package/dist/models/LogicPer.js +59 -0
  151. package/dist/models/LogicRule.d.ts +66 -0
  152. package/dist/models/LogicRule.js +74 -0
  153. package/dist/models/LogicSupply.d.ts +48 -0
  154. package/dist/models/LogicSupply.js +61 -0
  155. package/dist/models/LogicSupplyWeight.d.ts +32 -0
  156. package/dist/models/LogicSupplyWeight.js +50 -0
  157. package/dist/models/MaybeVarInt.d.ts +2 -2
  158. package/dist/models/MaybeVarInt.js +5 -5
  159. package/dist/models/MaybeVarProp.d.ts +2 -2
  160. package/dist/models/MaybeVarProp.js +5 -5
  161. package/dist/models/MaybeVarStr.d.ts +2 -2
  162. package/dist/models/MaybeVarStr.js +5 -5
  163. package/dist/models/ModelObject.d.ts +38 -0
  164. package/dist/models/ModelObject.js +54 -0
  165. package/dist/models/ModelRecord.d.ts +1 -1
  166. package/dist/models/ObjectGroupListEntry.d.ts +0 -6
  167. package/dist/models/ObjectGroupListEntry.js +0 -4
  168. package/dist/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
  169. package/dist/models/SelectObjectsParamsWrapperBody.js +51 -0
  170. package/dist/models/Selection.d.ts +39 -0
  171. package/dist/models/Selection.js +55 -0
  172. package/dist/models/SpaceRuleSetJSON.d.ts +3 -2
  173. package/dist/models/SpaceRuleSetJSON.js +3 -2
  174. package/dist/models/SpaceRulesetCreate.d.ts +1 -1
  175. package/dist/models/index.d.ts +23 -0
  176. package/dist/models/index.js +23 -0
  177. package/package.json +1 -1
  178. package/src/apis/FilesApi.ts +72 -0
  179. package/src/apis/{SpaceRulesetsApi.ts → LogicLayersApi.ts} +136 -121
  180. package/src/apis/ObjectGroupsApi.ts +75 -0
  181. package/src/apis/PropertiesApi.ts +16 -16
  182. package/src/apis/ScenariosApi.ts +4 -4
  183. package/src/apis/TopDownModelsApi.ts +4 -4
  184. package/src/apis/VariablesApi.ts +4 -4
  185. package/src/apis/index.ts +1 -1
  186. package/src/models/AccountTextFilePostBody.ts +74 -0
  187. package/src/models/CalcCompare.ts +92 -0
  188. package/src/models/CalcCondition.ts +99 -0
  189. package/src/models/CalcHasNode.ts +84 -0
  190. package/src/models/CalcIsObject.ts +66 -0
  191. package/src/models/CalcRuleRef.ts +14 -1
  192. package/src/models/CalcRuleRefOneOf2.ts +13 -5
  193. package/src/models/CalcRuleRefOneOf3.ts +5 -13
  194. package/src/models/CalcRuleRefOneOf4.ts +11 -11
  195. package/src/models/CalcRuleRefOneOf5.ts +13 -5
  196. package/src/models/CalcRuleRefOneOf6.ts +66 -0
  197. package/src/models/CalcTest.ts +89 -0
  198. package/src/models/CalcTestOneOf.ts +74 -0
  199. package/src/models/CalcTestOneOf1.ts +74 -0
  200. package/src/models/CalcTestOneOf2.ts +74 -0
  201. package/src/models/Group.ts +92 -0
  202. package/src/models/LayerVariablesRes.ts +1 -1
  203. package/src/models/LogicAssignment.ts +76 -0
  204. package/src/models/LogicAssignmentOneOf.ts +66 -0
  205. package/src/models/LogicAssignmentOneOf1.ts +66 -0
  206. package/src/models/LogicDemand.ts +90 -0
  207. package/src/models/LogicLayerConfig.ts +83 -0
  208. package/src/models/LogicPer.ts +92 -0
  209. package/src/models/LogicRule.ts +140 -0
  210. package/src/models/LogicSupply.ts +99 -0
  211. package/src/models/LogicSupplyWeight.ts +66 -0
  212. package/src/models/MaybeVarInt.ts +11 -11
  213. package/src/models/MaybeVarProp.ts +11 -11
  214. package/src/models/MaybeVarStr.ts +11 -11
  215. package/src/models/ModelObject.ts +75 -0
  216. package/src/models/ModelRecord.ts +1 -1
  217. package/src/models/ObjectGroupListEntry.ts +0 -9
  218. package/src/models/SelectObjectsParamsWrapperBody.ts +74 -0
  219. package/src/models/Selection.ts +83 -0
  220. package/src/models/SpaceRuleSetJSON.ts +12 -4
  221. package/src/models/SpaceRulesetCreate.ts +1 -1
  222. package/src/models/index.ts +23 -0
  223. package/dist/apis/SpaceRulesetsApi.d.ts +0 -269
  224. package/dist/esm/apis/SpaceRulesetsApi.d.ts +0 -269
@@ -22,21 +22,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.SpaceRulesetsApi = void 0;
25
+ exports.LogicLayersApiGetSpaceRulesetsFormatEnum = exports.LogicLayersApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const index_1 = require("../models/index");
28
28
  /**
29
29
  *
30
30
  */
31
- class SpaceRulesetsApi extends runtime.BaseAPI {
31
+ class LogicLayersApi extends runtime.BaseAPI {
32
32
  /**
33
- * Creates a new space ruleset for the current account. Supply `preset` to copy an existing built-in preset as the starting configuration; the preset\'s space modules are cloned into the account\'s module library as needed. Omit `preset` to start with an empty configuration for the given `type`. Requires the *Edit space rule sets* permission.
34
- * Create a space ruleset
33
+ * Creates a new logic layer for the current account. Supply `preset` to copy an existing built-in preset as the starting configuration; the preset\'s space modules are cloned into the account\'s module library as needed. Omit `preset` to start with no rules. Requires the *Edit space rule sets* permission.
34
+ * Create a logic layer
35
35
  */
36
- createRaw(requestParameters, initOverrides) {
36
+ createSpaceRulesetsRaw(requestParameters, initOverrides) {
37
37
  return __awaiter(this, void 0, void 0, function* () {
38
38
  if (requestParameters['spaceRulesetCreate'] == null) {
39
- throw new runtime.RequiredError('spaceRulesetCreate', 'Required parameter "spaceRulesetCreate" was null or undefined when calling create().');
39
+ throw new runtime.RequiredError('spaceRulesetCreate', 'Required parameter "spaceRulesetCreate" was null or undefined when calling createSpaceRulesets().');
40
40
  }
41
41
  const queryParameters = {};
42
42
  const headerParameters = {};
@@ -60,12 +60,12 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
60
60
  });
61
61
  }
62
62
  /**
63
- * Creates a new space ruleset for the current account. Supply `preset` to copy an existing built-in preset as the starting configuration; the preset\'s space modules are cloned into the account\'s module library as needed. Omit `preset` to start with an empty configuration for the given `type`. Requires the *Edit space rule sets* permission.
64
- * Create a space ruleset
63
+ * Creates a new logic layer for the current account. Supply `preset` to copy an existing built-in preset as the starting configuration; the preset\'s space modules are cloned into the account\'s module library as needed. Omit `preset` to start with no rules. Requires the *Edit space rule sets* permission.
64
+ * Create a logic layer
65
65
  */
66
- create(requestParameters, initOverrides) {
66
+ createSpaceRulesets(requestParameters, initOverrides) {
67
67
  return __awaiter(this, void 0, void 0, function* () {
68
- const response = yield this.createRaw(requestParameters, initOverrides);
68
+ const response = yield this.createSpaceRulesetsRaw(requestParameters, initOverrides);
69
69
  return yield response.value();
70
70
  });
71
71
  }
@@ -73,10 +73,10 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
73
73
  * Uploads an illustrative image for a space ruleset. Send the file as `multipart/form-data` with the field key `file`. Accepted MIME types: `image/png`, `image/jpeg`, `image/gif`, `image/webp`, `image/svg+xml` (detected from file bytes). No larger than 4 MB. Replaces any previously uploaded image. Requires the *Edit space rule sets* permission.
74
74
  * Upload a space ruleset image
75
75
  */
76
- createImageRaw(requestParameters, initOverrides) {
76
+ createSpaceRulesetsImageRaw(requestParameters, initOverrides) {
77
77
  return __awaiter(this, void 0, void 0, function* () {
78
78
  if (requestParameters['id'] == null) {
79
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createImage().');
79
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createSpaceRulesetsImage().');
80
80
  }
81
81
  const queryParameters = {};
82
82
  const headerParameters = {};
@@ -124,20 +124,20 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
124
124
  * Uploads an illustrative image for a space ruleset. Send the file as `multipart/form-data` with the field key `file`. Accepted MIME types: `image/png`, `image/jpeg`, `image/gif`, `image/webp`, `image/svg+xml` (detected from file bytes). No larger than 4 MB. Replaces any previously uploaded image. Requires the *Edit space rule sets* permission.
125
125
  * Upload a space ruleset image
126
126
  */
127
- createImage(requestParameters, initOverrides) {
127
+ createSpaceRulesetsImage(requestParameters, initOverrides) {
128
128
  return __awaiter(this, void 0, void 0, function* () {
129
- const response = yield this.createImageRaw(requestParameters, initOverrides);
129
+ const response = yield this.createSpaceRulesetsImageRaw(requestParameters, initOverrides);
130
130
  return yield response.value();
131
131
  });
132
132
  }
133
133
  /**
134
- * Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
135
- * Delete a space ruleset
134
+ * Permanently deletes a logic layer from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the logic layer moves to its first remaining option. Requires the *Edit space rule set details* permission.
135
+ * Delete a logic layer
136
136
  */
137
- deleteRaw(requestParameters, initOverrides) {
137
+ deleteSpaceRulesetsRaw(requestParameters, initOverrides) {
138
138
  return __awaiter(this, void 0, void 0, function* () {
139
139
  if (requestParameters['id'] == null) {
140
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling delete().');
140
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteSpaceRulesets().');
141
141
  }
142
142
  const queryParameters = {};
143
143
  const headerParameters = {};
@@ -160,12 +160,12 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
160
160
  });
161
161
  }
162
162
  /**
163
- * Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
164
- * Delete a space ruleset
163
+ * Permanently deletes a logic layer from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the logic layer moves to its first remaining option. Requires the *Edit space rule set details* permission.
164
+ * Delete a logic layer
165
165
  */
166
- delete(requestParameters, initOverrides) {
166
+ deleteSpaceRulesets(requestParameters, initOverrides) {
167
167
  return __awaiter(this, void 0, void 0, function* () {
168
- const response = yield this.deleteRaw(requestParameters, initOverrides);
168
+ const response = yield this.deleteSpaceRulesetsRaw(requestParameters, initOverrides);
169
169
  return yield response.value();
170
170
  });
171
171
  }
@@ -173,10 +173,10 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
173
173
  * Removes the custom image for a space ruleset. After deletion, `GET /v1/space-rulesets/{id}/image` returns a generated default image unless `noFallback` is set. Requires the *Edit space rule sets* permission.
174
174
  * Delete a space ruleset image
175
175
  */
176
- deleteImageRaw(requestParameters, initOverrides) {
176
+ deleteSpaceRulesetsImageRaw(requestParameters, initOverrides) {
177
177
  return __awaiter(this, void 0, void 0, function* () {
178
178
  if (requestParameters['id'] == null) {
179
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteImage().');
179
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteSpaceRulesetsImage().');
180
180
  }
181
181
  const queryParameters = {};
182
182
  const headerParameters = {};
@@ -202,22 +202,25 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
202
202
  * Removes the custom image for a space ruleset. After deletion, `GET /v1/space-rulesets/{id}/image` returns a generated default image unless `noFallback` is set. Requires the *Edit space rule sets* permission.
203
203
  * Delete a space ruleset image
204
204
  */
205
- deleteImage(requestParameters, initOverrides) {
205
+ deleteSpaceRulesetsImage(requestParameters, initOverrides) {
206
206
  return __awaiter(this, void 0, void 0, function* () {
207
- const response = yield this.deleteImageRaw(requestParameters, initOverrides);
207
+ const response = yield this.deleteSpaceRulesetsImageRaw(requestParameters, initOverrides);
208
208
  return yield response.value();
209
209
  });
210
210
  }
211
211
  /**
212
- * Returns the full detail of a space ruleset including its calculation configuration. Requires the *View space rule set details* permission.
213
- * Get a space ruleset
212
+ * Returns the full detail of a logic layer, including its rules as a `LogicLayerConfig`. Each rule balances the supply objects its filters select against the demand objects its filters select, at a ratio of supply per demand or as a total spread over the demand. Configs saved by an app from before logic layers are returned as saved unless `format=logic` is set. Returns `404` if the logic layer does not exist. Requires the *View space rule set details* permission.
213
+ * Get a logic layer
214
214
  */
215
- getRaw(requestParameters, initOverrides) {
215
+ getSpaceRulesetsRaw(requestParameters, initOverrides) {
216
216
  return __awaiter(this, void 0, void 0, function* () {
217
217
  if (requestParameters['id'] == null) {
218
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling get().');
218
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSpaceRulesets().');
219
219
  }
220
220
  const queryParameters = {};
221
+ if (requestParameters['format'] != null) {
222
+ queryParameters['format'] = requestParameters['format'];
223
+ }
221
224
  const headerParameters = {};
222
225
  if (this.configuration && this.configuration.accessToken) {
223
226
  const token = this.configuration.accessToken;
@@ -238,12 +241,12 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
238
241
  });
239
242
  }
240
243
  /**
241
- * Returns the full detail of a space ruleset including its calculation configuration. Requires the *View space rule set details* permission.
242
- * Get a space ruleset
244
+ * Returns the full detail of a logic layer, including its rules as a `LogicLayerConfig`. Each rule balances the supply objects its filters select against the demand objects its filters select, at a ratio of supply per demand or as a total spread over the demand. Configs saved by an app from before logic layers are returned as saved unless `format=logic` is set. Returns `404` if the logic layer does not exist. Requires the *View space rule set details* permission.
245
+ * Get a logic layer
243
246
  */
244
- get(requestParameters, initOverrides) {
247
+ getSpaceRulesets(requestParameters, initOverrides) {
245
248
  return __awaiter(this, void 0, void 0, function* () {
246
- const response = yield this.getRaw(requestParameters, initOverrides);
249
+ const response = yield this.getSpaceRulesetsRaw(requestParameters, initOverrides);
247
250
  return yield response.value();
248
251
  });
249
252
  }
@@ -251,10 +254,10 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
251
254
  * Returns the illustrative image for a space ruleset. If no image has been uploaded and `noFallback` is not set, a default image is generated from the ruleset name. The response `Content-Type` header reflects the actual image format. Requires the *View space rule sets* permission. Returns `403` (`file quarantined: it matched a virus signature`) when a rescan found the stored image matches a virus signature; the bytes are kept for investigation.
252
255
  * Get a space ruleset image
253
256
  */
254
- getImageRaw(requestParameters, initOverrides) {
257
+ getSpaceRulesetsImageRaw(requestParameters, initOverrides) {
255
258
  return __awaiter(this, void 0, void 0, function* () {
256
259
  if (requestParameters['id'] == null) {
257
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getImage().');
260
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSpaceRulesetsImage().');
258
261
  }
259
262
  const queryParameters = {};
260
263
  if (requestParameters['noFallback'] != null) {
@@ -288,17 +291,17 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
288
291
  * Returns the illustrative image for a space ruleset. If no image has been uploaded and `noFallback` is not set, a default image is generated from the ruleset name. The response `Content-Type` header reflects the actual image format. Requires the *View space rule sets* permission. Returns `403` (`file quarantined: it matched a virus signature`) when a rescan found the stored image matches a virus signature; the bytes are kept for investigation.
289
292
  * Get a space ruleset image
290
293
  */
291
- getImage(requestParameters, initOverrides) {
294
+ getSpaceRulesetsImage(requestParameters, initOverrides) {
292
295
  return __awaiter(this, void 0, void 0, function* () {
293
- const response = yield this.getImageRaw(requestParameters, initOverrides);
296
+ const response = yield this.getSpaceRulesetsImageRaw(requestParameters, initOverrides);
294
297
  return yield response.value();
295
298
  });
296
299
  }
297
300
  /**
298
- * Returns all space rulesets belonging to the current account with summary fields. Use `GET /v1/space-rulesets/{id}` to retrieve the full configuration for a specific ruleset. Requires the *View space rule sets* permission.
299
- * List space rulesets
301
+ * Returns all logic layers belonging to the current account with summary fields. Use `GET /v1/space-rulesets/{id}` to retrieve the full configuration for a specific logic layer. Requires the *View space rule sets* permission.
302
+ * List logic layers
300
303
  */
301
- listRaw(initOverrides) {
304
+ listSpaceRulesetsRaw(initOverrides) {
302
305
  return __awaiter(this, void 0, void 0, function* () {
303
306
  const queryParameters = {};
304
307
  const headerParameters = {};
@@ -320,20 +323,20 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
320
323
  });
321
324
  }
322
325
  /**
323
- * Returns all space rulesets belonging to the current account with summary fields. Use `GET /v1/space-rulesets/{id}` to retrieve the full configuration for a specific ruleset. Requires the *View space rule sets* permission.
324
- * List space rulesets
326
+ * Returns all logic layers belonging to the current account with summary fields. Use `GET /v1/space-rulesets/{id}` to retrieve the full configuration for a specific logic layer. Requires the *View space rule sets* permission.
327
+ * List logic layers
325
328
  */
326
- list(initOverrides) {
329
+ listSpaceRulesets(initOverrides) {
327
330
  return __awaiter(this, void 0, void 0, function* () {
328
- const response = yield this.listRaw(initOverrides);
331
+ const response = yield this.listSpaceRulesetsRaw(initOverrides);
329
332
  return yield response.value();
330
333
  });
331
334
  }
332
335
  /**
333
- * Returns the spaciv-supplied preset space rulesets available to all accounts. Pass one of the returned IDs as `preset` when calling `POST /v1/space-rulesets` to create a copy in the current account. Requires the *View space rule sets* permission.
334
- * List preset space rulesets
336
+ * Returns the spaciv-supplied preset logic layers available to all accounts. Pass one of the returned IDs as `preset` when calling `POST /v1/space-rulesets` to create a copy in the current account. Requires the *View space rule sets* permission.
337
+ * List preset logic layers
335
338
  */
336
- listPresetsRaw(initOverrides) {
339
+ listSpaceRulesetsPresetsRaw(initOverrides) {
337
340
  return __awaiter(this, void 0, void 0, function* () {
338
341
  const queryParameters = {};
339
342
  const headerParameters = {};
@@ -355,26 +358,26 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
355
358
  });
356
359
  }
357
360
  /**
358
- * Returns the spaciv-supplied preset space rulesets available to all accounts. Pass one of the returned IDs as `preset` when calling `POST /v1/space-rulesets` to create a copy in the current account. Requires the *View space rule sets* permission.
359
- * List preset space rulesets
361
+ * Returns the spaciv-supplied preset logic layers available to all accounts. Pass one of the returned IDs as `preset` when calling `POST /v1/space-rulesets` to create a copy in the current account. Requires the *View space rule sets* permission.
362
+ * List preset logic layers
360
363
  */
361
- listPresets(initOverrides) {
364
+ listSpaceRulesetsPresets(initOverrides) {
362
365
  return __awaiter(this, void 0, void 0, function* () {
363
- const response = yield this.listPresetsRaw(initOverrides);
366
+ const response = yield this.listSpaceRulesetsPresetsRaw(initOverrides);
364
367
  return yield response.value();
365
368
  });
366
369
  }
367
370
  /**
368
- * Updates one or more fields of a space ruleset. Only fields present in the request body are changed; `modifiedAt` is always updated to the current time. Returns `404` if the ruleset does not exist. Requires the *Edit space rule set details* permission.
369
- * Update a space ruleset
371
+ * Updates one or more fields of a logic layer. Only fields present in the request body are changed; `modifiedAt` is always updated to the current time. `config` is a `LogicLayerConfig`; one in a space rule shape from before logic layers is checked to convert to a logic layer and stored as sent. Functions may use account number variables (`{\"var\": \"account:<id>\"}`), which needs the *Variable controls* feature. Returns `400` if `config` is not a valid logic layer or uses an unknown or non-number variable, and `404` if the logic layer does not exist. Requires the *Edit space rule set details* permission.
372
+ * Update a logic layer
370
373
  */
371
- updateRaw(requestParameters, initOverrides) {
374
+ updateSpaceRulesetsRaw(requestParameters, initOverrides) {
372
375
  return __awaiter(this, void 0, void 0, function* () {
373
376
  if (requestParameters['id'] == null) {
374
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling update().');
377
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateSpaceRulesets().');
375
378
  }
376
379
  if (requestParameters['spaceRulesetUpdate'] == null) {
377
- throw new runtime.RequiredError('spaceRulesetUpdate', 'Required parameter "spaceRulesetUpdate" was null or undefined when calling update().');
380
+ throw new runtime.RequiredError('spaceRulesetUpdate', 'Required parameter "spaceRulesetUpdate" was null or undefined when calling updateSpaceRulesets().');
378
381
  }
379
382
  const queryParameters = {};
380
383
  const headerParameters = {};
@@ -399,14 +402,21 @@ class SpaceRulesetsApi extends runtime.BaseAPI {
399
402
  });
400
403
  }
401
404
  /**
402
- * Updates one or more fields of a space ruleset. Only fields present in the request body are changed; `modifiedAt` is always updated to the current time. Returns `404` if the ruleset does not exist. Requires the *Edit space rule set details* permission.
403
- * Update a space ruleset
405
+ * Updates one or more fields of a logic layer. Only fields present in the request body are changed; `modifiedAt` is always updated to the current time. `config` is a `LogicLayerConfig`; one in a space rule shape from before logic layers is checked to convert to a logic layer and stored as sent. Functions may use account number variables (`{\"var\": \"account:<id>\"}`), which needs the *Variable controls* feature. Returns `400` if `config` is not a valid logic layer or uses an unknown or non-number variable, and `404` if the logic layer does not exist. Requires the *Edit space rule set details* permission.
406
+ * Update a logic layer
404
407
  */
405
- update(requestParameters, initOverrides) {
408
+ updateSpaceRulesets(requestParameters, initOverrides) {
406
409
  return __awaiter(this, void 0, void 0, function* () {
407
- const response = yield this.updateRaw(requestParameters, initOverrides);
410
+ const response = yield this.updateSpaceRulesetsRaw(requestParameters, initOverrides);
408
411
  return yield response.value();
409
412
  });
410
413
  }
411
414
  }
412
- exports.SpaceRulesetsApi = SpaceRulesetsApi;
415
+ exports.LogicLayersApi = LogicLayersApi;
416
+ /**
417
+ * @export
418
+ */
419
+ exports.LogicLayersApiGetSpaceRulesetsFormatEnum = {
420
+ Stored: 'stored',
421
+ Logic: 'logic'
422
+ };
@@ -10,10 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { EntryPatch, ObjectGroupChangelogBody, ObjectGroupEntriesRes, ObjectGroupEntrySearchRes, ObjectGroupEntryUpdate, ObjectGroupListRes } from '../models/index';
13
+ import type { EntryPatch, ObjectGroupChangelogBody, ObjectGroupEntriesRes, ObjectGroupEntrySearchRes, ObjectGroupEntryUpdate, ObjectGroupListRes, SelectObjectsParamsWrapperBody, Selection } from '../models/index';
14
14
  export interface ObjectGroupsApiCreateRequest {
15
15
  objectGroupChangelogBody?: ObjectGroupChangelogBody;
16
16
  }
17
+ export interface ObjectGroupsApiCreateSelectRequest {
18
+ selectObjectsParamsWrapperBody: SelectObjectsParamsWrapperBody;
19
+ }
17
20
  export interface ObjectGroupsApiDeleteRequest {
18
21
  id: string;
19
22
  action?: ObjectGroupsApiDeleteActionEnum;
@@ -100,6 +103,20 @@ export interface ObjectGroupsApiInterface {
100
103
  * Create an object group
101
104
  */
102
105
  create(requestParameters: ObjectGroupsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
106
+ /**
107
+ * Lists the objects in the account\'s active object groups that `filters` select, grouped by object group, both by name. Filters match as in a calculation: an object group\'s own properties apply to each of its entries, a tree node also selects the nodes below it, and a group\'s property (`og:<object group id>`) selects that group\'s entries. At most 500 objects are returned, with `truncated` set when more matched. Nothing is changed. Requires the *View objects* permission.
108
+ * @summary Select objects by filters
109
+ * @param {SelectObjectsParamsWrapperBody} selectObjectsParamsWrapperBody
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ * @memberof ObjectGroupsApiInterface
113
+ */
114
+ createSelectRaw(requestParameters: ObjectGroupsApiCreateSelectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Selection>>;
115
+ /**
116
+ * Lists the objects in the account\'s active object groups that `filters` select, grouped by object group, both by name. Filters match as in a calculation: an object group\'s own properties apply to each of its entries, a tree node also selects the nodes below it, and a group\'s property (`og:<object group id>`) selects that group\'s entries. At most 500 objects are returned, with `truncated` set when more matched. Nothing is changed. Requires the *View objects* permission.
117
+ * Select objects by filters
118
+ */
119
+ createSelect(requestParameters: ObjectGroupsApiCreateSelectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Selection>;
103
120
  /**
104
121
  * Permanently deletes the object group and all its entries, or transitions it to a different lifecycle state. Pass `action=archive` to archive it (recoverable via `action=restore`) or omit `action` to purge it immediately. Returns `409` if a purge keeps conflicting with concurrent writes, in which case only some entries may have been deleted; repeating the request finishes the purge. A completed purge clears the allowed `options` of object variables on the group. Requires the *Edit objects* permission.
105
122
  * @summary Delete or archive an object group
@@ -345,6 +362,16 @@ export declare class ObjectGroupsApi extends runtime.BaseAPI implements ObjectGr
345
362
  * Create an object group
346
363
  */
347
364
  create(requestParameters?: ObjectGroupsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
365
+ /**
366
+ * Lists the objects in the account\'s active object groups that `filters` select, grouped by object group, both by name. Filters match as in a calculation: an object group\'s own properties apply to each of its entries, a tree node also selects the nodes below it, and a group\'s property (`og:<object group id>`) selects that group\'s entries. At most 500 objects are returned, with `truncated` set when more matched. Nothing is changed. Requires the *View objects* permission.
367
+ * Select objects by filters
368
+ */
369
+ createSelectRaw(requestParameters: ObjectGroupsApiCreateSelectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Selection>>;
370
+ /**
371
+ * Lists the objects in the account\'s active object groups that `filters` select, grouped by object group, both by name. Filters match as in a calculation: an object group\'s own properties apply to each of its entries, a tree node also selects the nodes below it, and a group\'s property (`og:<object group id>`) selects that group\'s entries. At most 500 objects are returned, with `truncated` set when more matched. Nothing is changed. Requires the *View objects* permission.
372
+ * Select objects by filters
373
+ */
374
+ createSelect(requestParameters: ObjectGroupsApiCreateSelectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Selection>;
348
375
  /**
349
376
  * Permanently deletes the object group and all its entries, or transitions it to a different lifecycle state. Pass `action=archive` to archive it (recoverable via `action=restore`) or omit `action` to purge it immediately. Returns `409` if a purge keeps conflicting with concurrent writes, in which case only some entries may have been deleted; repeating the request finishes the purge. A completed purge clears the allowed `options` of object variables on the group. Requires the *Edit objects* permission.
350
377
  * Delete or archive an object group
@@ -71,6 +71,46 @@ class ObjectGroupsApi extends runtime.BaseAPI {
71
71
  return yield response.value();
72
72
  });
73
73
  }
74
+ /**
75
+ * Lists the objects in the account\'s active object groups that `filters` select, grouped by object group, both by name. Filters match as in a calculation: an object group\'s own properties apply to each of its entries, a tree node also selects the nodes below it, and a group\'s property (`og:<object group id>`) selects that group\'s entries. At most 500 objects are returned, with `truncated` set when more matched. Nothing is changed. Requires the *View objects* permission.
76
+ * Select objects by filters
77
+ */
78
+ createSelectRaw(requestParameters, initOverrides) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ if (requestParameters['selectObjectsParamsWrapperBody'] == null) {
81
+ throw new runtime.RequiredError('selectObjectsParamsWrapperBody', 'Required parameter "selectObjectsParamsWrapperBody" was null or undefined when calling createSelect().');
82
+ }
83
+ const queryParameters = {};
84
+ const headerParameters = {};
85
+ headerParameters['Content-Type'] = 'application/json';
86
+ if (this.configuration && this.configuration.accessToken) {
87
+ const token = this.configuration.accessToken;
88
+ const tokenString = yield token("accessToken", []);
89
+ if (tokenString) {
90
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
91
+ }
92
+ }
93
+ let urlPath = `/v1/object-groups/select`;
94
+ const response = yield this.request({
95
+ path: urlPath,
96
+ method: 'POST',
97
+ headers: headerParameters,
98
+ query: queryParameters,
99
+ body: (0, index_1.SelectObjectsParamsWrapperBodyToJSON)(requestParameters['selectObjectsParamsWrapperBody']),
100
+ }, initOverrides);
101
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SelectionFromJSON)(jsonValue));
102
+ });
103
+ }
104
+ /**
105
+ * Lists the objects in the account\'s active object groups that `filters` select, grouped by object group, both by name. Filters match as in a calculation: an object group\'s own properties apply to each of its entries, a tree node also selects the nodes below it, and a group\'s property (`og:<object group id>`) selects that group\'s entries. At most 500 objects are returned, with `truncated` set when more matched. Nothing is changed. Requires the *View objects* permission.
106
+ * Select objects by filters
107
+ */
108
+ createSelect(requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ const response = yield this.createSelectRaw(requestParameters, initOverrides);
111
+ return yield response.value();
112
+ });
113
+ }
74
114
  /**
75
115
  * Permanently deletes the object group and all its entries, or transitions it to a different lifecycle state. Pass `action=archive` to archive it (recoverable via `action=restore`) or omit `action` to purge it immediately. Returns `409` if a purge keeps conflicting with concurrent writes, in which case only some entries may have been deleted; repeating the request finishes the purge. A completed purge clears the allowed `options` of object variables on the group. Requires the *Edit objects* permission.
76
116
  * Delete or archive an object group
@@ -53,7 +53,7 @@ export interface PropertiesApiInterface {
53
53
  */
54
54
  create(requestParameters: PropertiesApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
55
55
  /**
56
- * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
56
+ * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties, including object group properties (id `og:<object group id>`), cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
57
57
  * @summary Delete a property
58
58
  * @param {string} id
59
59
  * @param {*} [options] Override http request option.
@@ -62,7 +62,7 @@ export interface PropertiesApiInterface {
62
62
  */
63
63
  deleteRaw(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
64
64
  /**
65
- * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
65
+ * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties, including object group properties (id `og:<object group id>`), cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
66
66
  * Delete a property
67
67
  */
68
68
  delete(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -81,7 +81,7 @@ export interface PropertiesApiInterface {
81
81
  */
82
82
  duplicate(requestParameters: PropertiesApiDuplicateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
83
83
  /**
84
- * Returns the full record for a single property, including its metadata and — for tree-type properties — the complete node hierarchy. Callers with only the *View public properties* permission receive a `403` if the property is not public. Built-in system properties (such as `count`, `module`, `consumer`) are always available to callers with either permission. Callers with *Edit properties* are treated as having full view access, since a caller trusted to modify a property must also be able to read it.
84
+ * Returns the full record for a single property, including its metadata and — for tree-type properties — the complete node hierarchy. Callers with only the *View public properties* permission receive a `403` if the property is not public. Built-in system properties (`count`, `growth`) are always available to callers with either permission. An object group property has the id `og:<object group id>`, is named after its object group, and its tree has one node per object in the group (node id = object id) under a `Root` node; it returns `404` when the object group does not exist, and `403` unless the caller can see the group\'s objects (*View objects* or *Edit objects*, or *View public objects* for a public group) and, for a private group, has full property access. Callers with *Edit properties* are treated as having full view access, since a caller trusted to modify a property must also be able to read it.
85
85
  * @summary Get a property
86
86
  * @param {string} id
87
87
  * @param {*} [options] Override http request option.
@@ -90,12 +90,12 @@ export interface PropertiesApiInterface {
90
90
  */
91
91
  getRaw(requestParameters: PropertiesApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PropertyRes>>;
92
92
  /**
93
- * Returns the full record for a single property, including its metadata and — for tree-type properties — the complete node hierarchy. Callers with only the *View public properties* permission receive a `403` if the property is not public. Built-in system properties (such as `count`, `module`, `consumer`) are always available to callers with either permission. Callers with *Edit properties* are treated as having full view access, since a caller trusted to modify a property must also be able to read it.
93
+ * Returns the full record for a single property, including its metadata and — for tree-type properties — the complete node hierarchy. Callers with only the *View public properties* permission receive a `403` if the property is not public. Built-in system properties (`count`, `growth`) are always available to callers with either permission. An object group property has the id `og:<object group id>`, is named after its object group, and its tree has one node per object in the group (node id = object id) under a `Root` node; it returns `404` when the object group does not exist, and `403` unless the caller can see the group\'s objects (*View objects* or *Edit objects*, or *View public objects* for a public group) and, for a private group, has full property access. Callers with *Edit properties* are treated as having full view access, since a caller trusted to modify a property must also be able to read it.
94
94
  * Get a property
95
95
  */
96
96
  get(requestParameters: PropertiesApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PropertyRes>;
97
97
  /**
98
- * Returns all properties available to the account, sorted alphabetically by name. Built-in system properties are always included. Callers with *View properties* or *Edit properties* see all properties; callers with only *View public properties* see only those marked public. Use `types` to restrict results to specific property types.
98
+ * Returns all properties available to the account, sorted alphabetically by name. Built-in system properties are included: `count` and `growth`, and one tree property per active object group, with the id `og:<object group id>`, named after the group, whose nodes are the group\'s objects. An object group property is listed only to callers who can see that group\'s objects (*View objects* or *Edit objects*, or *View public objects* for a public group), and is public when its group is. Callers with *View properties* or *Edit properties* see all properties; callers with only *View public properties* see only those marked public. Use `types` to restrict results to specific property types.
99
99
  * @summary List properties
100
100
  * @param {Array<number>} [types] Filter by property type. Pass one or more numeric type values (e.g. the integer values of the PropertyType enum). When omitted, all types are returned.
101
101
  * @param {Array<number>} [objectTypes]
@@ -105,12 +105,12 @@ export interface PropertiesApiInterface {
105
105
  */
106
106
  listRaw(requestParameters: PropertiesApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PropertyListRes>>;
107
107
  /**
108
- * Returns all properties available to the account, sorted alphabetically by name. Built-in system properties are always included. Callers with *View properties* or *Edit properties* see all properties; callers with only *View public properties* see only those marked public. Use `types` to restrict results to specific property types.
108
+ * Returns all properties available to the account, sorted alphabetically by name. Built-in system properties are included: `count` and `growth`, and one tree property per active object group, with the id `og:<object group id>`, named after the group, whose nodes are the group\'s objects. An object group property is listed only to callers who can see that group\'s objects (*View objects* or *Edit objects*, or *View public objects* for a public group), and is public when its group is. Callers with *View properties* or *Edit properties* see all properties; callers with only *View public properties* see only those marked public. Use `types` to restrict results to specific property types.
109
109
  * List properties
110
110
  */
111
111
  list(requestParameters: PropertiesApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PropertyListRes>;
112
112
  /**
113
- * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
113
+ * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for the built-in property ids `count` and `growth`, which are not backed by a real stored property and cannot hold node data. Any update to an object group property (id `og:<object group id>`) is rejected with a `400`: its name and nodes come from the object group. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
114
114
  * @summary Update a property
115
115
  * @param {string} id
116
116
  * @param {PropertyBody} [propertyBody]
@@ -120,7 +120,7 @@ export interface PropertiesApiInterface {
120
120
  */
121
121
  updateRaw(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
122
122
  /**
123
- * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
123
+ * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for the built-in property ids `count` and `growth`, which are not backed by a real stored property and cannot hold node data. Any update to an object group property (id `og:<object group id>`) is rejected with a `400`: its name and nodes come from the object group. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
124
124
  * Update a property
125
125
  */
126
126
  update(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -140,12 +140,12 @@ export declare class PropertiesApi extends runtime.BaseAPI implements Properties
140
140
  */
141
141
  create(requestParameters?: PropertiesApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
142
142
  /**
143
- * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
143
+ * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties, including object group properties (id `og:<object group id>`), cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
144
144
  * Delete a property
145
145
  */
146
146
  deleteRaw(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
147
147
  /**
148
- * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
148
+ * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties, including object group properties (id `og:<object group id>`), cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
149
149
  * Delete a property
150
150
  */
151
151
  delete(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -160,32 +160,32 @@ export declare class PropertiesApi extends runtime.BaseAPI implements Properties
160
160
  */
161
161
  duplicate(requestParameters: PropertiesApiDuplicateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
162
162
  /**
163
- * Returns the full record for a single property, including its metadata and — for tree-type properties — the complete node hierarchy. Callers with only the *View public properties* permission receive a `403` if the property is not public. Built-in system properties (such as `count`, `module`, `consumer`) are always available to callers with either permission. Callers with *Edit properties* are treated as having full view access, since a caller trusted to modify a property must also be able to read it.
163
+ * Returns the full record for a single property, including its metadata and — for tree-type properties — the complete node hierarchy. Callers with only the *View public properties* permission receive a `403` if the property is not public. Built-in system properties (`count`, `growth`) are always available to callers with either permission. An object group property has the id `og:<object group id>`, is named after its object group, and its tree has one node per object in the group (node id = object id) under a `Root` node; it returns `404` when the object group does not exist, and `403` unless the caller can see the group\'s objects (*View objects* or *Edit objects*, or *View public objects* for a public group) and, for a private group, has full property access. Callers with *Edit properties* are treated as having full view access, since a caller trusted to modify a property must also be able to read it.
164
164
  * Get a property
165
165
  */
166
166
  getRaw(requestParameters: PropertiesApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PropertyRes>>;
167
167
  /**
168
- * Returns the full record for a single property, including its metadata and — for tree-type properties — the complete node hierarchy. Callers with only the *View public properties* permission receive a `403` if the property is not public. Built-in system properties (such as `count`, `module`, `consumer`) are always available to callers with either permission. Callers with *Edit properties* are treated as having full view access, since a caller trusted to modify a property must also be able to read it.
168
+ * Returns the full record for a single property, including its metadata and — for tree-type properties — the complete node hierarchy. Callers with only the *View public properties* permission receive a `403` if the property is not public. Built-in system properties (`count`, `growth`) are always available to callers with either permission. An object group property has the id `og:<object group id>`, is named after its object group, and its tree has one node per object in the group (node id = object id) under a `Root` node; it returns `404` when the object group does not exist, and `403` unless the caller can see the group\'s objects (*View objects* or *Edit objects*, or *View public objects* for a public group) and, for a private group, has full property access. Callers with *Edit properties* are treated as having full view access, since a caller trusted to modify a property must also be able to read it.
169
169
  * Get a property
170
170
  */
171
171
  get(requestParameters: PropertiesApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PropertyRes>;
172
172
  /**
173
- * Returns all properties available to the account, sorted alphabetically by name. Built-in system properties are always included. Callers with *View properties* or *Edit properties* see all properties; callers with only *View public properties* see only those marked public. Use `types` to restrict results to specific property types.
173
+ * Returns all properties available to the account, sorted alphabetically by name. Built-in system properties are included: `count` and `growth`, and one tree property per active object group, with the id `og:<object group id>`, named after the group, whose nodes are the group\'s objects. An object group property is listed only to callers who can see that group\'s objects (*View objects* or *Edit objects*, or *View public objects* for a public group), and is public when its group is. Callers with *View properties* or *Edit properties* see all properties; callers with only *View public properties* see only those marked public. Use `types` to restrict results to specific property types.
174
174
  * List properties
175
175
  */
176
176
  listRaw(requestParameters: PropertiesApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PropertyListRes>>;
177
177
  /**
178
- * Returns all properties available to the account, sorted alphabetically by name. Built-in system properties are always included. Callers with *View properties* or *Edit properties* see all properties; callers with only *View public properties* see only those marked public. Use `types` to restrict results to specific property types.
178
+ * Returns all properties available to the account, sorted alphabetically by name. Built-in system properties are included: `count` and `growth`, and one tree property per active object group, with the id `og:<object group id>`, named after the group, whose nodes are the group\'s objects. An object group property is listed only to callers who can see that group\'s objects (*View objects* or *Edit objects*, or *View public objects* for a public group), and is public when its group is. Callers with *View properties* or *Edit properties* see all properties; callers with only *View public properties* see only those marked public. Use `types` to restrict results to specific property types.
179
179
  * List properties
180
180
  */
181
181
  list(requestParameters?: PropertiesApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PropertyListRes>;
182
182
  /**
183
- * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
183
+ * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for the built-in property ids `count` and `growth`, which are not backed by a real stored property and cannot hold node data. Any update to an object group property (id `og:<object group id>`) is rejected with a `400`: its name and nodes come from the object group. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
184
184
  * Update a property
185
185
  */
186
186
  updateRaw(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
187
187
  /**
188
- * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
188
+ * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for the built-in property ids `count` and `growth`, which are not backed by a real stored property and cannot hold node data. Any update to an object group property (id `og:<object group id>`) is rejected with a `400`: its name and nodes come from the object group. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
189
189
  * Update a property
190
190
  */
191
191
  update(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;