@spaciv/sdk 0.1.20 → 0.1.22

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 (236) hide show
  1. package/.openapi-generator/FILES +27 -1
  2. package/README.md +2 -2
  3. package/dist/apis/LogicLayersApi.d.ts +279 -0
  4. package/dist/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +72 -62
  5. package/dist/apis/ObjectGroupsApi.d.ts +28 -1
  6. package/dist/apis/ObjectGroupsApi.js +40 -0
  7. package/dist/apis/PropertiesApi.d.ts +16 -16
  8. package/dist/apis/PropertiesApi.js +8 -8
  9. package/dist/apis/ScenariosApi.d.ts +4 -4
  10. package/dist/apis/ScenariosApi.js +2 -2
  11. package/dist/apis/ScriptsApi.d.ts +57 -1
  12. package/dist/apis/ScriptsApi.js +82 -0
  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/LogicLayersApi.d.ts +279 -0
  20. package/dist/esm/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +70 -60
  21. package/dist/esm/apis/ObjectGroupsApi.d.ts +28 -1
  22. package/dist/esm/apis/ObjectGroupsApi.js +41 -1
  23. package/dist/esm/apis/PropertiesApi.d.ts +16 -16
  24. package/dist/esm/apis/PropertiesApi.js +8 -8
  25. package/dist/esm/apis/ScenariosApi.d.ts +4 -4
  26. package/dist/esm/apis/ScenariosApi.js +2 -2
  27. package/dist/esm/apis/ScriptsApi.d.ts +57 -1
  28. package/dist/esm/apis/ScriptsApi.js +83 -1
  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/CalcCompare.d.ts +45 -0
  36. package/dist/esm/models/CalcCompare.js +52 -0
  37. package/dist/esm/models/CalcCondition.d.ts +46 -0
  38. package/dist/esm/models/CalcCondition.js +53 -0
  39. package/dist/esm/models/CalcHasNode.d.ts +44 -0
  40. package/dist/esm/models/CalcHasNode.js +51 -0
  41. package/dist/esm/models/CalcIsObject.d.ts +32 -0
  42. package/dist/esm/models/CalcIsObject.js +43 -0
  43. package/dist/esm/models/CalcRuleRef.d.ts +2 -1
  44. package/dist/esm/models/CalcRuleRef.js +7 -0
  45. package/dist/esm/models/CalcRuleRefOneOf2.d.ts +3 -2
  46. package/dist/esm/models/CalcRuleRefOneOf2.js +4 -3
  47. package/dist/esm/models/CalcRuleRefOneOf3.d.ts +2 -3
  48. package/dist/esm/models/CalcRuleRefOneOf3.js +3 -4
  49. package/dist/esm/models/CalcRuleRefOneOf4.d.ts +3 -3
  50. package/dist/esm/models/CalcRuleRefOneOf4.js +4 -4
  51. package/dist/esm/models/CalcRuleRefOneOf5.d.ts +3 -2
  52. package/dist/esm/models/CalcRuleRefOneOf5.js +4 -3
  53. package/dist/esm/models/CalcRuleRefOneOf6.d.ts +32 -0
  54. package/dist/esm/models/CalcRuleRefOneOf6.js +43 -0
  55. package/dist/esm/models/CalcTest.d.ts +24 -0
  56. package/dist/esm/models/CalcTest.js +58 -0
  57. package/dist/esm/models/CalcTestOneOf.d.ts +33 -0
  58. package/dist/esm/models/CalcTestOneOf.js +44 -0
  59. package/dist/esm/models/CalcTestOneOf1.d.ts +33 -0
  60. package/dist/esm/models/CalcTestOneOf1.js +44 -0
  61. package/dist/esm/models/CalcTestOneOf2.d.ts +33 -0
  62. package/dist/esm/models/CalcTestOneOf2.js +44 -0
  63. package/dist/esm/models/Group.d.ts +45 -0
  64. package/dist/esm/models/Group.js +52 -0
  65. package/dist/esm/models/LayerVariablesRes.d.ts +1 -1
  66. package/dist/esm/models/LogicAssignment.d.ts +23 -0
  67. package/dist/esm/models/LogicAssignment.js +51 -0
  68. package/dist/esm/models/LogicAssignmentOneOf.d.ts +32 -0
  69. package/dist/esm/models/LogicAssignmentOneOf.js +43 -0
  70. package/dist/esm/models/LogicAssignmentOneOf1.d.ts +32 -0
  71. package/dist/esm/models/LogicAssignmentOneOf1.js +43 -0
  72. package/dist/esm/models/LogicDemand.d.ts +40 -0
  73. package/dist/esm/models/LogicDemand.js +49 -0
  74. package/dist/esm/models/LogicLayerConfig.d.ts +39 -0
  75. package/dist/esm/models/LogicLayerConfig.js +48 -0
  76. package/dist/esm/models/LogicPer.d.ts +45 -0
  77. package/dist/esm/models/LogicPer.js +52 -0
  78. package/dist/esm/models/LogicRule.d.ts +66 -0
  79. package/dist/esm/models/LogicRule.js +67 -0
  80. package/dist/esm/models/LogicSupply.d.ts +48 -0
  81. package/dist/esm/models/LogicSupply.js +54 -0
  82. package/dist/esm/models/LogicSupplyWeight.d.ts +32 -0
  83. package/dist/esm/models/LogicSupplyWeight.js +43 -0
  84. package/dist/esm/models/MaybeVarInt.d.ts +2 -2
  85. package/dist/esm/models/MaybeVarInt.js +5 -5
  86. package/dist/esm/models/MaybeVarProp.d.ts +2 -2
  87. package/dist/esm/models/MaybeVarProp.js +5 -5
  88. package/dist/esm/models/MaybeVarStr.d.ts +2 -2
  89. package/dist/esm/models/MaybeVarStr.js +5 -5
  90. package/dist/esm/models/ModelObject.d.ts +38 -0
  91. package/dist/esm/models/ModelObject.js +47 -0
  92. package/dist/esm/models/ObjectGroupListEntry.d.ts +0 -6
  93. package/dist/esm/models/ObjectGroupListEntry.js +0 -4
  94. package/dist/esm/models/ScratchpadOutput.d.ts +69 -0
  95. package/dist/esm/models/ScratchpadOutput.js +64 -0
  96. package/dist/esm/models/ScratchpadOutputFile.d.ts +44 -0
  97. package/dist/esm/models/ScratchpadOutputFile.js +49 -0
  98. package/dist/esm/models/ScratchpadRun.d.ts +127 -0
  99. package/dist/esm/models/ScratchpadRun.js +91 -0
  100. package/dist/esm/models/ScratchpadRunPostReqBody.d.ts +58 -0
  101. package/dist/esm/models/ScratchpadRunPostReqBody.js +53 -0
  102. package/dist/esm/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
  103. package/dist/esm/models/SelectObjectsParamsWrapperBody.js +44 -0
  104. package/dist/esm/models/Selection.d.ts +39 -0
  105. package/dist/esm/models/Selection.js +48 -0
  106. package/dist/esm/models/SpaceRuleSetJSON.d.ts +3 -2
  107. package/dist/esm/models/SpaceRuleSetJSON.js +3 -2
  108. package/dist/esm/models/SpaceRulesetCreate.d.ts +1 -1
  109. package/dist/esm/models/index.d.ts +26 -0
  110. package/dist/esm/models/index.js +26 -0
  111. package/dist/models/CalcCompare.d.ts +45 -0
  112. package/dist/models/CalcCompare.js +59 -0
  113. package/dist/models/CalcCondition.d.ts +46 -0
  114. package/dist/models/CalcCondition.js +60 -0
  115. package/dist/models/CalcHasNode.d.ts +44 -0
  116. package/dist/models/CalcHasNode.js +58 -0
  117. package/dist/models/CalcIsObject.d.ts +32 -0
  118. package/dist/models/CalcIsObject.js +50 -0
  119. package/dist/models/CalcRuleRef.d.ts +2 -1
  120. package/dist/models/CalcRuleRef.js +7 -0
  121. package/dist/models/CalcRuleRefOneOf2.d.ts +3 -2
  122. package/dist/models/CalcRuleRefOneOf2.js +4 -3
  123. package/dist/models/CalcRuleRefOneOf3.d.ts +2 -3
  124. package/dist/models/CalcRuleRefOneOf3.js +3 -4
  125. package/dist/models/CalcRuleRefOneOf4.d.ts +3 -3
  126. package/dist/models/CalcRuleRefOneOf4.js +4 -4
  127. package/dist/models/CalcRuleRefOneOf5.d.ts +3 -2
  128. package/dist/models/CalcRuleRefOneOf5.js +4 -3
  129. package/dist/models/CalcRuleRefOneOf6.d.ts +32 -0
  130. package/dist/models/CalcRuleRefOneOf6.js +50 -0
  131. package/dist/models/CalcTest.d.ts +24 -0
  132. package/dist/models/CalcTest.js +64 -0
  133. package/dist/models/CalcTestOneOf.d.ts +33 -0
  134. package/dist/models/CalcTestOneOf.js +51 -0
  135. package/dist/models/CalcTestOneOf1.d.ts +33 -0
  136. package/dist/models/CalcTestOneOf1.js +51 -0
  137. package/dist/models/CalcTestOneOf2.d.ts +33 -0
  138. package/dist/models/CalcTestOneOf2.js +51 -0
  139. package/dist/models/Group.d.ts +45 -0
  140. package/dist/models/Group.js +59 -0
  141. package/dist/models/LayerVariablesRes.d.ts +1 -1
  142. package/dist/models/LogicAssignment.d.ts +23 -0
  143. package/dist/models/LogicAssignment.js +57 -0
  144. package/dist/models/LogicAssignmentOneOf.d.ts +32 -0
  145. package/dist/models/LogicAssignmentOneOf.js +50 -0
  146. package/dist/models/LogicAssignmentOneOf1.d.ts +32 -0
  147. package/dist/models/LogicAssignmentOneOf1.js +50 -0
  148. package/dist/models/LogicDemand.d.ts +40 -0
  149. package/dist/models/LogicDemand.js +56 -0
  150. package/dist/models/LogicLayerConfig.d.ts +39 -0
  151. package/dist/models/LogicLayerConfig.js +55 -0
  152. package/dist/models/LogicPer.d.ts +45 -0
  153. package/dist/models/LogicPer.js +59 -0
  154. package/dist/models/LogicRule.d.ts +66 -0
  155. package/dist/models/LogicRule.js +74 -0
  156. package/dist/models/LogicSupply.d.ts +48 -0
  157. package/dist/models/LogicSupply.js +61 -0
  158. package/dist/models/LogicSupplyWeight.d.ts +32 -0
  159. package/dist/models/LogicSupplyWeight.js +50 -0
  160. package/dist/models/MaybeVarInt.d.ts +2 -2
  161. package/dist/models/MaybeVarInt.js +5 -5
  162. package/dist/models/MaybeVarProp.d.ts +2 -2
  163. package/dist/models/MaybeVarProp.js +5 -5
  164. package/dist/models/MaybeVarStr.d.ts +2 -2
  165. package/dist/models/MaybeVarStr.js +5 -5
  166. package/dist/models/ModelObject.d.ts +38 -0
  167. package/dist/models/ModelObject.js +54 -0
  168. package/dist/models/ObjectGroupListEntry.d.ts +0 -6
  169. package/dist/models/ObjectGroupListEntry.js +0 -4
  170. package/dist/models/ScratchpadOutput.d.ts +69 -0
  171. package/dist/models/ScratchpadOutput.js +71 -0
  172. package/dist/models/ScratchpadOutputFile.d.ts +44 -0
  173. package/dist/models/ScratchpadOutputFile.js +56 -0
  174. package/dist/models/ScratchpadRun.d.ts +127 -0
  175. package/dist/models/ScratchpadRun.js +99 -0
  176. package/dist/models/ScratchpadRunPostReqBody.d.ts +58 -0
  177. package/dist/models/ScratchpadRunPostReqBody.js +60 -0
  178. package/dist/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
  179. package/dist/models/SelectObjectsParamsWrapperBody.js +51 -0
  180. package/dist/models/Selection.d.ts +39 -0
  181. package/dist/models/Selection.js +55 -0
  182. package/dist/models/SpaceRuleSetJSON.d.ts +3 -2
  183. package/dist/models/SpaceRuleSetJSON.js +3 -2
  184. package/dist/models/SpaceRulesetCreate.d.ts +1 -1
  185. package/dist/models/index.d.ts +26 -0
  186. package/dist/models/index.js +26 -0
  187. package/package.json +1 -1
  188. package/src/apis/{SpaceRulesetsApi.ts → LogicLayersApi.ts} +136 -121
  189. package/src/apis/ObjectGroupsApi.ts +75 -0
  190. package/src/apis/PropertiesApi.ts +16 -16
  191. package/src/apis/ScenariosApi.ts +4 -4
  192. package/src/apis/ScriptsApi.ts +148 -0
  193. package/src/apis/TopDownModelsApi.ts +4 -4
  194. package/src/apis/VariablesApi.ts +4 -4
  195. package/src/apis/index.ts +1 -1
  196. package/src/models/CalcCompare.ts +92 -0
  197. package/src/models/CalcCondition.ts +99 -0
  198. package/src/models/CalcHasNode.ts +84 -0
  199. package/src/models/CalcIsObject.ts +66 -0
  200. package/src/models/CalcRuleRef.ts +14 -1
  201. package/src/models/CalcRuleRefOneOf2.ts +13 -5
  202. package/src/models/CalcRuleRefOneOf3.ts +5 -13
  203. package/src/models/CalcRuleRefOneOf4.ts +11 -11
  204. package/src/models/CalcRuleRefOneOf5.ts +13 -5
  205. package/src/models/CalcRuleRefOneOf6.ts +66 -0
  206. package/src/models/CalcTest.ts +89 -0
  207. package/src/models/CalcTestOneOf.ts +74 -0
  208. package/src/models/CalcTestOneOf1.ts +74 -0
  209. package/src/models/CalcTestOneOf2.ts +74 -0
  210. package/src/models/Group.ts +92 -0
  211. package/src/models/LayerVariablesRes.ts +1 -1
  212. package/src/models/LogicAssignment.ts +76 -0
  213. package/src/models/LogicAssignmentOneOf.ts +66 -0
  214. package/src/models/LogicAssignmentOneOf1.ts +66 -0
  215. package/src/models/LogicDemand.ts +90 -0
  216. package/src/models/LogicLayerConfig.ts +83 -0
  217. package/src/models/LogicPer.ts +92 -0
  218. package/src/models/LogicRule.ts +140 -0
  219. package/src/models/LogicSupply.ts +99 -0
  220. package/src/models/LogicSupplyWeight.ts +66 -0
  221. package/src/models/MaybeVarInt.ts +11 -11
  222. package/src/models/MaybeVarProp.ts +11 -11
  223. package/src/models/MaybeVarStr.ts +11 -11
  224. package/src/models/ModelObject.ts +75 -0
  225. package/src/models/ObjectGroupListEntry.ts +0 -9
  226. package/src/models/ScratchpadOutput.ts +126 -0
  227. package/src/models/ScratchpadOutputFile.ts +83 -0
  228. package/src/models/ScratchpadRun.ts +203 -0
  229. package/src/models/ScratchpadRunPostReqBody.ts +99 -0
  230. package/src/models/SelectObjectsParamsWrapperBody.ts +74 -0
  231. package/src/models/Selection.ts +83 -0
  232. package/src/models/SpaceRuleSetJSON.ts +12 -4
  233. package/src/models/SpaceRulesetCreate.ts +1 -1
  234. package/src/models/index.ts +26 -0
  235. package/dist/apis/SpaceRulesetsApi.d.ts +0 -269
  236. package/dist/esm/apis/SpaceRulesetsApi.d.ts +0 -269
@@ -22,6 +22,8 @@ import type {
22
22
  ObjectGroupEntrySearchRes,
23
23
  ObjectGroupEntryUpdate,
24
24
  ObjectGroupListRes,
25
+ SelectObjectsParamsWrapperBody,
26
+ Selection,
25
27
  } from '../models/index';
26
28
  import {
27
29
  EntryPatchFromJSON,
@@ -38,12 +40,20 @@ import {
38
40
  ObjectGroupEntryUpdateToJSON,
39
41
  ObjectGroupListResFromJSON,
40
42
  ObjectGroupListResToJSON,
43
+ SelectObjectsParamsWrapperBodyFromJSON,
44
+ SelectObjectsParamsWrapperBodyToJSON,
45
+ SelectionFromJSON,
46
+ SelectionToJSON,
41
47
  } from '../models/index';
42
48
 
43
49
  export interface ObjectGroupsApiCreateRequest {
44
50
  objectGroupChangelogBody?: ObjectGroupChangelogBody;
45
51
  }
46
52
 
53
+ export interface ObjectGroupsApiCreateSelectRequest {
54
+ selectObjectsParamsWrapperBody: SelectObjectsParamsWrapperBody;
55
+ }
56
+
47
57
  export interface ObjectGroupsApiDeleteRequest {
48
58
  id: string;
49
59
  action?: ObjectGroupsApiDeleteActionEnum;
@@ -147,6 +157,22 @@ export interface ObjectGroupsApiInterface {
147
157
  */
148
158
  create(requestParameters: ObjectGroupsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
149
159
 
160
+ /**
161
+ * 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.
162
+ * @summary Select objects by filters
163
+ * @param {SelectObjectsParamsWrapperBody} selectObjectsParamsWrapperBody
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ * @memberof ObjectGroupsApiInterface
167
+ */
168
+ createSelectRaw(requestParameters: ObjectGroupsApiCreateSelectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Selection>>;
169
+
170
+ /**
171
+ * 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.
172
+ * Select objects by filters
173
+ */
174
+ createSelect(requestParameters: ObjectGroupsApiCreateSelectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Selection>;
175
+
150
176
  /**
151
177
  * 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.
152
178
  * @summary Delete or archive an object group
@@ -460,6 +486,55 @@ export class ObjectGroupsApi extends runtime.BaseAPI implements ObjectGroupsApiI
460
486
  return await response.value();
461
487
  }
462
488
 
489
+ /**
490
+ * 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.
491
+ * Select objects by filters
492
+ */
493
+ async createSelectRaw(requestParameters: ObjectGroupsApiCreateSelectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Selection>> {
494
+ if (requestParameters['selectObjectsParamsWrapperBody'] == null) {
495
+ throw new runtime.RequiredError(
496
+ 'selectObjectsParamsWrapperBody',
497
+ 'Required parameter "selectObjectsParamsWrapperBody" was null or undefined when calling createSelect().'
498
+ );
499
+ }
500
+
501
+ const queryParameters: any = {};
502
+
503
+ const headerParameters: runtime.HTTPHeaders = {};
504
+
505
+ headerParameters['Content-Type'] = 'application/json';
506
+
507
+ if (this.configuration && this.configuration.accessToken) {
508
+ const token = this.configuration.accessToken;
509
+ const tokenString = await token("accessToken", []);
510
+
511
+ if (tokenString) {
512
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
513
+ }
514
+ }
515
+
516
+ let urlPath = `/v1/object-groups/select`;
517
+
518
+ const response = await this.request({
519
+ path: urlPath,
520
+ method: 'POST',
521
+ headers: headerParameters,
522
+ query: queryParameters,
523
+ body: SelectObjectsParamsWrapperBodyToJSON(requestParameters['selectObjectsParamsWrapperBody']),
524
+ }, initOverrides);
525
+
526
+ return new runtime.JSONApiResponse(response, (jsonValue) => SelectionFromJSON(jsonValue));
527
+ }
528
+
529
+ /**
530
+ * 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.
531
+ * Select objects by filters
532
+ */
533
+ async createSelect(requestParameters: ObjectGroupsApiCreateSelectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Selection> {
534
+ const response = await this.createSelectRaw(requestParameters, initOverrides);
535
+ return await response.value();
536
+ }
537
+
463
538
  /**
464
539
  * 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.
465
540
  * Delete or archive an object group
@@ -81,7 +81,7 @@ export interface PropertiesApiInterface {
81
81
  create(requestParameters: PropertiesApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
82
82
 
83
83
  /**
84
- * 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.
84
+ * 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.
85
85
  * @summary Delete a property
86
86
  * @param {string} id
87
87
  * @param {*} [options] Override http request option.
@@ -91,7 +91,7 @@ export interface PropertiesApiInterface {
91
91
  deleteRaw(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
92
92
 
93
93
  /**
94
- * 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.
94
+ * 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.
95
95
  * Delete a property
96
96
  */
97
97
  delete(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -113,7 +113,7 @@ export interface PropertiesApiInterface {
113
113
  duplicate(requestParameters: PropertiesApiDuplicateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
114
114
 
115
115
  /**
116
- * 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.
116
+ * 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.
117
117
  * @summary Get a property
118
118
  * @param {string} id
119
119
  * @param {*} [options] Override http request option.
@@ -123,13 +123,13 @@ export interface PropertiesApiInterface {
123
123
  getRaw(requestParameters: PropertiesApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PropertyRes>>;
124
124
 
125
125
  /**
126
- * 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.
126
+ * 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.
127
127
  * Get a property
128
128
  */
129
129
  get(requestParameters: PropertiesApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PropertyRes>;
130
130
 
131
131
  /**
132
- * 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.
132
+ * 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.
133
133
  * @summary List properties
134
134
  * @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.
135
135
  * @param {Array<number>} [objectTypes]
@@ -140,13 +140,13 @@ export interface PropertiesApiInterface {
140
140
  listRaw(requestParameters: PropertiesApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PropertyListRes>>;
141
141
 
142
142
  /**
143
- * 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.
143
+ * 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.
144
144
  * List properties
145
145
  */
146
146
  list(requestParameters: PropertiesApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PropertyListRes>;
147
147
 
148
148
  /**
149
- * 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.
149
+ * 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.
150
150
  * @summary Update a property
151
151
  * @param {string} id
152
152
  * @param {PropertyBody} [propertyBody]
@@ -157,7 +157,7 @@ export interface PropertiesApiInterface {
157
157
  updateRaw(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
158
158
 
159
159
  /**
160
- * 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.
160
+ * 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.
161
161
  * Update a property
162
162
  */
163
163
  update(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -216,7 +216,7 @@ export class PropertiesApi extends runtime.BaseAPI implements PropertiesApiInter
216
216
  }
217
217
 
218
218
  /**
219
- * 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.
219
+ * 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.
220
220
  * Delete a property
221
221
  */
222
222
  async deleteRaw(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -254,7 +254,7 @@ export class PropertiesApi extends runtime.BaseAPI implements PropertiesApiInter
254
254
  }
255
255
 
256
256
  /**
257
- * 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.
257
+ * 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.
258
258
  * Delete a property
259
259
  */
260
260
  async delete(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -313,7 +313,7 @@ export class PropertiesApi extends runtime.BaseAPI implements PropertiesApiInter
313
313
  }
314
314
 
315
315
  /**
316
- * 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.
316
+ * 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.
317
317
  * Get a property
318
318
  */
319
319
  async getRaw(requestParameters: PropertiesApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PropertyRes>> {
@@ -351,7 +351,7 @@ export class PropertiesApi extends runtime.BaseAPI implements PropertiesApiInter
351
351
  }
352
352
 
353
353
  /**
354
- * 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.
354
+ * 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.
355
355
  * Get a property
356
356
  */
357
357
  async get(requestParameters: PropertiesApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PropertyRes> {
@@ -360,7 +360,7 @@ export class PropertiesApi extends runtime.BaseAPI implements PropertiesApiInter
360
360
  }
361
361
 
362
362
  /**
363
- * 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.
363
+ * 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.
364
364
  * List properties
365
365
  */
366
366
  async listRaw(requestParameters: PropertiesApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PropertyListRes>> {
@@ -398,7 +398,7 @@ export class PropertiesApi extends runtime.BaseAPI implements PropertiesApiInter
398
398
  }
399
399
 
400
400
  /**
401
- * 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.
401
+ * 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.
402
402
  * List properties
403
403
  */
404
404
  async list(requestParameters: PropertiesApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PropertyListRes> {
@@ -407,7 +407,7 @@ export class PropertiesApi extends runtime.BaseAPI implements PropertiesApiInter
407
407
  }
408
408
 
409
409
  /**
410
- * 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.
410
+ * 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.
411
411
  * Update a property
412
412
  */
413
413
  async updateRaw(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -448,7 +448,7 @@ export class PropertiesApi extends runtime.BaseAPI implements PropertiesApiInter
448
448
  }
449
449
 
450
450
  /**
451
- * 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.
451
+ * 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.
452
452
  * Update a property
453
453
  */
454
454
  async update(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -152,7 +152,7 @@ export interface ScenariosApiInterface {
152
152
  list(requestParameters: ScenariosApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScenarioListRes>;
153
153
 
154
154
  /**
155
- * Returns, per active scenario, the account variables that the modifier formulas of its layers reference, following stacked scenarios. Changing one of these variables recalculates every visualisation of that scenario. Scenarios whose layers use no account variables are omitted. Requires the *View projects* permission and the *Variable controls* feature.
155
+ * Returns, per active scenario, the account variables that the modifier formulas and logic layer functions of its layers reference, following stacked scenarios. Changing one of these variables recalculates every visualisation of that scenario. Scenarios whose layers use no account variables are omitted. Requires the *View projects* permission and the *Variable controls* feature.
156
156
  * @summary List account variables used by scenario layers
157
157
  * @param {*} [options] Override http request option.
158
158
  * @throws {RequiredError}
@@ -161,7 +161,7 @@ export interface ScenariosApiInterface {
161
161
  listLayerVariablesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LayerVariablesRes>>;
162
162
 
163
163
  /**
164
- * Returns, per active scenario, the account variables that the modifier formulas of its layers reference, following stacked scenarios. Changing one of these variables recalculates every visualisation of that scenario. Scenarios whose layers use no account variables are omitted. Requires the *View projects* permission and the *Variable controls* feature.
164
+ * Returns, per active scenario, the account variables that the modifier formulas and logic layer functions of its layers reference, following stacked scenarios. Changing one of these variables recalculates every visualisation of that scenario. Scenarios whose layers use no account variables are omitted. Requires the *View projects* permission and the *Variable controls* feature.
165
165
  * List account variables used by scenario layers
166
166
  */
167
167
  listLayerVariables(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LayerVariablesRes>;
@@ -429,7 +429,7 @@ export class ScenariosApi extends runtime.BaseAPI implements ScenariosApiInterfa
429
429
  }
430
430
 
431
431
  /**
432
- * Returns, per active scenario, the account variables that the modifier formulas of its layers reference, following stacked scenarios. Changing one of these variables recalculates every visualisation of that scenario. Scenarios whose layers use no account variables are omitted. Requires the *View projects* permission and the *Variable controls* feature.
432
+ * Returns, per active scenario, the account variables that the modifier formulas and logic layer functions of its layers reference, following stacked scenarios. Changing one of these variables recalculates every visualisation of that scenario. Scenarios whose layers use no account variables are omitted. Requires the *View projects* permission and the *Variable controls* feature.
433
433
  * List account variables used by scenario layers
434
434
  */
435
435
  async listLayerVariablesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LayerVariablesRes>> {
@@ -459,7 +459,7 @@ export class ScenariosApi extends runtime.BaseAPI implements ScenariosApiInterfa
459
459
  }
460
460
 
461
461
  /**
462
- * Returns, per active scenario, the account variables that the modifier formulas of its layers reference, following stacked scenarios. Changing one of these variables recalculates every visualisation of that scenario. Scenarios whose layers use no account variables are omitted. Requires the *View projects* permission and the *Variable controls* feature.
462
+ * Returns, per active scenario, the account variables that the modifier formulas and logic layer functions of its layers reference, following stacked scenarios. Changing one of these variables recalculates every visualisation of that scenario. Scenarios whose layers use no account variables are omitted. Requires the *View projects* permission and the *Variable controls* feature.
463
463
  * List account variables used by scenario layers
464
464
  */
465
465
  async listLayerVariables(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LayerVariablesRes> {
@@ -16,6 +16,8 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ErrorModel,
19
+ ScratchpadRun,
20
+ ScratchpadRunPostReqBody,
19
21
  ScriptAuditResBody,
20
22
  ScriptDetail,
21
23
  ScriptExportResBody,
@@ -34,6 +36,10 @@ import type {
34
36
  import {
35
37
  ErrorModelFromJSON,
36
38
  ErrorModelToJSON,
39
+ ScratchpadRunFromJSON,
40
+ ScratchpadRunToJSON,
41
+ ScratchpadRunPostReqBodyFromJSON,
42
+ ScratchpadRunPostReqBodyToJSON,
37
43
  ScriptAuditResBodyFromJSON,
38
44
  ScriptAuditResBodyToJSON,
39
45
  ScriptDetailFromJSON,
@@ -80,6 +86,10 @@ export interface ScriptsApiCreateSchedulePreviewRequest {
80
86
  scriptSchedulePreviewReqBody: ScriptSchedulePreviewReqBody;
81
87
  }
82
88
 
89
+ export interface ScriptsApiCreateScratchpadRunsRequest {
90
+ scratchpadRunPostReqBody: ScratchpadRunPostReqBody;
91
+ }
92
+
83
93
  export interface ScriptsApiDeleteRequest {
84
94
  id: string;
85
95
  }
@@ -94,6 +104,11 @@ export interface ScriptsApiGetAuditRequest {
94
104
  cursor?: string;
95
105
  }
96
106
 
107
+ export interface ScriptsApiGetScratchpadRunsRequest {
108
+ runId: string;
109
+ waitSeconds?: number;
110
+ }
111
+
97
112
  export interface ScriptsApiListRunsRequest {
98
113
  id: string;
99
114
  limit?: number;
@@ -186,6 +201,22 @@ export interface ScriptsApiInterface {
186
201
  */
187
202
  createSchedulePreview(requestParameters: ScriptsApiCreateSchedulePreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScriptSchedulePreviewResBody>;
188
203
 
204
+ /**
205
+ * Runs Python or JavaScript code once in a sandbox without saving it as a script, for working something out from the account\'s data. The handler is the one an integration script implements, with `input` as `event.input`; there is no build, so dependency manifests and Go are not supported. The code runs with a read-only access token scoped to the caller: only the caller\'s view permissions, in the caller\'s current project if there is one, for 5 minutes. `ctx.fetch` sends it to the Spaciv API. Files the handler writes to its output directory (`ctx.output_dir` in Python, `ctx.outputDir` in JavaScript) are returned with its stdout, stderr and return value. Limits: code up to 256 KiB in at most 50 files, `input` up to 1 MiB, and `timeoutSeconds` up to 120 (default 30). Of the output, stdout and stderr are kept up to 256 KiB each, the return value up to 256 KiB, and up to 20 output files totalling 2 MiB. Runs count towards the account\'s script credits and concurrent runs. The request waits up to `waitSeconds` for the run to finish; a run still in progress is returned without `output`, and can be read with `GET /v1/scripts/scratchpad/runs/{runId}`. A run is visible only to the user who started it, and is kept for 24 hours. Returns `422` when the language or code is not accepted, and `403` for a script\'s API key or a scratchpad run\'s own token. Requires the *AI assistant* permission.
206
+ * @summary Run scratchpad code
207
+ * @param {ScratchpadRunPostReqBody} scratchpadRunPostReqBody
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ * @memberof ScriptsApiInterface
211
+ */
212
+ createScratchpadRunsRaw(requestParameters: ScriptsApiCreateScratchpadRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScratchpadRun>>;
213
+
214
+ /**
215
+ * Runs Python or JavaScript code once in a sandbox without saving it as a script, for working something out from the account\'s data. The handler is the one an integration script implements, with `input` as `event.input`; there is no build, so dependency manifests and Go are not supported. The code runs with a read-only access token scoped to the caller: only the caller\'s view permissions, in the caller\'s current project if there is one, for 5 minutes. `ctx.fetch` sends it to the Spaciv API. Files the handler writes to its output directory (`ctx.output_dir` in Python, `ctx.outputDir` in JavaScript) are returned with its stdout, stderr and return value. Limits: code up to 256 KiB in at most 50 files, `input` up to 1 MiB, and `timeoutSeconds` up to 120 (default 30). Of the output, stdout and stderr are kept up to 256 KiB each, the return value up to 256 KiB, and up to 20 output files totalling 2 MiB. Runs count towards the account\'s script credits and concurrent runs. The request waits up to `waitSeconds` for the run to finish; a run still in progress is returned without `output`, and can be read with `GET /v1/scripts/scratchpad/runs/{runId}`. A run is visible only to the user who started it, and is kept for 24 hours. Returns `422` when the language or code is not accepted, and `403` for a script\'s API key or a scratchpad run\'s own token. Requires the *AI assistant* permission.
216
+ * Run scratchpad code
217
+ */
218
+ createScratchpadRuns(requestParameters: ScriptsApiCreateScratchpadRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScratchpadRun>;
219
+
189
220
  /**
190
221
  * Stops any active runs, deletes the script with its secrets and run history, and revokes its API keys. Requires the *Manage my account* permission.
191
222
  * @summary Delete a script
@@ -251,6 +282,23 @@ export interface ScriptsApiInterface {
251
282
  */
252
283
  getExport(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScriptExportResBody>;
253
284
 
285
+ /**
286
+ * Returns a scratchpad run the caller started, with its output once it has finished. Runs are kept for 24 hours. Returns `404` when the run does not exist, has expired or was started by someone else, and `403` for a script\'s API key or a scratchpad run\'s own token. Requires the *AI assistant* permission.
287
+ * @summary Get a scratchpad run
288
+ * @param {string} runId
289
+ * @param {number} [waitSeconds] Longest to wait for a run in progress to finish before responding. Defaults to 0, returning at once.
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ * @memberof ScriptsApiInterface
293
+ */
294
+ getScratchpadRunsRaw(requestParameters: ScriptsApiGetScratchpadRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScratchpadRun>>;
295
+
296
+ /**
297
+ * Returns a scratchpad run the caller started, with its output once it has finished. Runs are kept for 24 hours. Returns `404` when the run does not exist, has expired or was started by someone else, and `403` for a script\'s API key or a scratchpad run\'s own token. Requires the *AI assistant* permission.
298
+ * Get a scratchpad run
299
+ */
300
+ getScratchpadRuns(requestParameters: ScriptsApiGetScratchpadRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScratchpadRun>;
301
+
254
302
  /**
255
303
  * Returns the credits the account\'s script runs were charged this calendar month (UTC), against the account\'s monthly script credit limit and its other script limits, with how many runs each script made, failed and had refused. creditState is near from 80% of the monthly limit and reached once it is used, after which runs are recorded as quota_exceeded until the month ends. creditsUsed is the scripts figure of `GET /v1/account/usage/calculation-credits`. Run counts are added when runs end. Requires the *Manage my account* permission.
256
304
  * @summary Get script usage
@@ -549,6 +597,55 @@ export class ScriptsApi extends runtime.BaseAPI implements ScriptsApiInterface {
549
597
  return await response.value();
550
598
  }
551
599
 
600
+ /**
601
+ * Runs Python or JavaScript code once in a sandbox without saving it as a script, for working something out from the account\'s data. The handler is the one an integration script implements, with `input` as `event.input`; there is no build, so dependency manifests and Go are not supported. The code runs with a read-only access token scoped to the caller: only the caller\'s view permissions, in the caller\'s current project if there is one, for 5 minutes. `ctx.fetch` sends it to the Spaciv API. Files the handler writes to its output directory (`ctx.output_dir` in Python, `ctx.outputDir` in JavaScript) are returned with its stdout, stderr and return value. Limits: code up to 256 KiB in at most 50 files, `input` up to 1 MiB, and `timeoutSeconds` up to 120 (default 30). Of the output, stdout and stderr are kept up to 256 KiB each, the return value up to 256 KiB, and up to 20 output files totalling 2 MiB. Runs count towards the account\'s script credits and concurrent runs. The request waits up to `waitSeconds` for the run to finish; a run still in progress is returned without `output`, and can be read with `GET /v1/scripts/scratchpad/runs/{runId}`. A run is visible only to the user who started it, and is kept for 24 hours. Returns `422` when the language or code is not accepted, and `403` for a script\'s API key or a scratchpad run\'s own token. Requires the *AI assistant* permission.
602
+ * Run scratchpad code
603
+ */
604
+ async createScratchpadRunsRaw(requestParameters: ScriptsApiCreateScratchpadRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScratchpadRun>> {
605
+ if (requestParameters['scratchpadRunPostReqBody'] == null) {
606
+ throw new runtime.RequiredError(
607
+ 'scratchpadRunPostReqBody',
608
+ 'Required parameter "scratchpadRunPostReqBody" was null or undefined when calling createScratchpadRuns().'
609
+ );
610
+ }
611
+
612
+ const queryParameters: any = {};
613
+
614
+ const headerParameters: runtime.HTTPHeaders = {};
615
+
616
+ headerParameters['Content-Type'] = 'application/json';
617
+
618
+ if (this.configuration && this.configuration.accessToken) {
619
+ const token = this.configuration.accessToken;
620
+ const tokenString = await token("accessToken", []);
621
+
622
+ if (tokenString) {
623
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
624
+ }
625
+ }
626
+
627
+ let urlPath = `/v1/scripts/scratchpad/runs`;
628
+
629
+ const response = await this.request({
630
+ path: urlPath,
631
+ method: 'POST',
632
+ headers: headerParameters,
633
+ query: queryParameters,
634
+ body: ScratchpadRunPostReqBodyToJSON(requestParameters['scratchpadRunPostReqBody']),
635
+ }, initOverrides);
636
+
637
+ return new runtime.JSONApiResponse(response, (jsonValue) => ScratchpadRunFromJSON(jsonValue));
638
+ }
639
+
640
+ /**
641
+ * Runs Python or JavaScript code once in a sandbox without saving it as a script, for working something out from the account\'s data. The handler is the one an integration script implements, with `input` as `event.input`; there is no build, so dependency manifests and Go are not supported. The code runs with a read-only access token scoped to the caller: only the caller\'s view permissions, in the caller\'s current project if there is one, for 5 minutes. `ctx.fetch` sends it to the Spaciv API. Files the handler writes to its output directory (`ctx.output_dir` in Python, `ctx.outputDir` in JavaScript) are returned with its stdout, stderr and return value. Limits: code up to 256 KiB in at most 50 files, `input` up to 1 MiB, and `timeoutSeconds` up to 120 (default 30). Of the output, stdout and stderr are kept up to 256 KiB each, the return value up to 256 KiB, and up to 20 output files totalling 2 MiB. Runs count towards the account\'s script credits and concurrent runs. The request waits up to `waitSeconds` for the run to finish; a run still in progress is returned without `output`, and can be read with `GET /v1/scripts/scratchpad/runs/{runId}`. A run is visible only to the user who started it, and is kept for 24 hours. Returns `422` when the language or code is not accepted, and `403` for a script\'s API key or a scratchpad run\'s own token. Requires the *AI assistant* permission.
642
+ * Run scratchpad code
643
+ */
644
+ async createScratchpadRuns(requestParameters: ScriptsApiCreateScratchpadRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScratchpadRun> {
645
+ const response = await this.createScratchpadRunsRaw(requestParameters, initOverrides);
646
+ return await response.value();
647
+ }
648
+
552
649
  /**
553
650
  * Stops any active runs, deletes the script with its secrets and run history, and revokes its API keys. Requires the *Manage my account* permission.
554
651
  * Delete a script
@@ -736,6 +833,57 @@ export class ScriptsApi extends runtime.BaseAPI implements ScriptsApiInterface {
736
833
  return await response.value();
737
834
  }
738
835
 
836
+ /**
837
+ * Returns a scratchpad run the caller started, with its output once it has finished. Runs are kept for 24 hours. Returns `404` when the run does not exist, has expired or was started by someone else, and `403` for a script\'s API key or a scratchpad run\'s own token. Requires the *AI assistant* permission.
838
+ * Get a scratchpad run
839
+ */
840
+ async getScratchpadRunsRaw(requestParameters: ScriptsApiGetScratchpadRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScratchpadRun>> {
841
+ if (requestParameters['runId'] == null) {
842
+ throw new runtime.RequiredError(
843
+ 'runId',
844
+ 'Required parameter "runId" was null or undefined when calling getScratchpadRuns().'
845
+ );
846
+ }
847
+
848
+ const queryParameters: any = {};
849
+
850
+ if (requestParameters['waitSeconds'] != null) {
851
+ queryParameters['waitSeconds'] = requestParameters['waitSeconds'];
852
+ }
853
+
854
+ const headerParameters: runtime.HTTPHeaders = {};
855
+
856
+ if (this.configuration && this.configuration.accessToken) {
857
+ const token = this.configuration.accessToken;
858
+ const tokenString = await token("accessToken", []);
859
+
860
+ if (tokenString) {
861
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
862
+ }
863
+ }
864
+
865
+ let urlPath = `/v1/scripts/scratchpad/runs/{runId}`;
866
+ urlPath = urlPath.replace(`{${"runId"}}`, encodeURIComponent(String(requestParameters['runId'])));
867
+
868
+ const response = await this.request({
869
+ path: urlPath,
870
+ method: 'GET',
871
+ headers: headerParameters,
872
+ query: queryParameters,
873
+ }, initOverrides);
874
+
875
+ return new runtime.JSONApiResponse(response, (jsonValue) => ScratchpadRunFromJSON(jsonValue));
876
+ }
877
+
878
+ /**
879
+ * Returns a scratchpad run the caller started, with its output once it has finished. Runs are kept for 24 hours. Returns `404` when the run does not exist, has expired or was started by someone else, and `403` for a script\'s API key or a scratchpad run\'s own token. Requires the *AI assistant* permission.
880
+ * Get a scratchpad run
881
+ */
882
+ async getScratchpadRuns(requestParameters: ScriptsApiGetScratchpadRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScratchpadRun> {
883
+ const response = await this.getScratchpadRunsRaw(requestParameters, initOverrides);
884
+ return await response.value();
885
+ }
886
+
739
887
  /**
740
888
  * Returns the credits the account\'s script runs were charged this calendar month (UTC), against the account\'s monthly script credit limit and its other script limits, with how many runs each script made, failed and had refused. creditState is near from 80% of the monthly limit and reached once it is used, after which runs are recorded as quota_exceeded until the month ends. creditsUsed is the scripts figure of `GET /v1/account/usage/calculation-credits`. Run counts are added when runs end. Requires the *Manage my account* permission.
741
889
  * Get script usage
@@ -217,7 +217,7 @@ export interface TopDownModelsApiInterface {
217
217
  update(requestParameters: TopDownModelsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
218
218
 
219
219
  /**
220
- * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
220
+ * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references, the add, subtract, multiply and divide operators, and `condition` (if a comparison or a `has` test, then one expression, else another). With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
221
221
  * @summary Create or update a top-down model entry
222
222
  * @param {string} id
223
223
  * @param {TopDownModelEntryUpdate} [topDownModelEntryUpdate]
@@ -228,7 +228,7 @@ export interface TopDownModelsApiInterface {
228
228
  updateEntriesRaw(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
229
229
 
230
230
  /**
231
- * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
231
+ * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references, the add, subtract, multiply and divide operators, and `condition` (if a comparison or a `has` test, then one expression, else another). With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
232
232
  * Create or update a top-down model entry
233
233
  */
234
234
  updateEntries(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -638,7 +638,7 @@ export class TopDownModelsApi extends runtime.BaseAPI implements TopDownModelsAp
638
638
  }
639
639
 
640
640
  /**
641
- * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
641
+ * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references, the add, subtract, multiply and divide operators, and `condition` (if a comparison or a `has` test, then one expression, else another). With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
642
642
  * Create or update a top-down model entry
643
643
  */
644
644
  async updateEntriesRaw(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -679,7 +679,7 @@ export class TopDownModelsApi extends runtime.BaseAPI implements TopDownModelsAp
679
679
  }
680
680
 
681
681
  /**
682
- * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
682
+ * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references, the add, subtract, multiply and divide operators, and `condition` (if a comparison or a `has` test, then one expression, else another). With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
683
683
  * Create or update a top-down model entry
684
684
  */
685
685
  async updateEntries(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -129,7 +129,7 @@ export interface VariablesApiInterface {
129
129
  list(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VariableListRes>;
130
130
 
131
131
  /**
132
- * Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations and the modifier formulas of layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
132
+ * Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations, the modifier formulas of layers and the functions of logic layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
133
133
  * @summary List account variable references
134
134
  * @param {string} id Account variable ID, either qualified (account:&lt;id&gt;) or bare.
135
135
  * @param {*} [options] Override http request option.
@@ -139,7 +139,7 @@ export interface VariablesApiInterface {
139
139
  listReferencesRaw(requestParameters: VariablesApiListReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReferencesRes>>;
140
140
 
141
141
  /**
142
- * Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations and the modifier formulas of layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
142
+ * Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations, the modifier formulas of layers and the functions of logic layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
143
143
  * List account variable references
144
144
  */
145
145
  listReferences(requestParameters: VariablesApiListReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReferencesRes>;
@@ -347,7 +347,7 @@ export class VariablesApi extends runtime.BaseAPI implements VariablesApiInterfa
347
347
  }
348
348
 
349
349
  /**
350
- * Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations and the modifier formulas of layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
350
+ * Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations, the modifier formulas of layers and the functions of logic layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
351
351
  * List account variable references
352
352
  */
353
353
  async listReferencesRaw(requestParameters: VariablesApiListReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReferencesRes>> {
@@ -385,7 +385,7 @@ export class VariablesApi extends runtime.BaseAPI implements VariablesApiInterfa
385
385
  }
386
386
 
387
387
  /**
388
- * Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations and the modifier formulas of layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
388
+ * Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations, the modifier formulas of layers and the functions of logic layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
389
389
  * List account variable references
390
390
  */
391
391
  async listReferences(requestParameters: VariablesApiListReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReferencesRes> {