@epilot/sdk 2.4.4 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/definitions/app.json +137 -58
  2. package/definitions/customer-portal-runtime.json +1 -1
  3. package/definitions/customer-portal.json +496 -24
  4. package/definitions/entity.json +185 -8
  5. package/definitions/integration-toolkit-runtime.json +1 -1
  6. package/definitions/integration-toolkit.json +480 -4
  7. package/definitions/metering-runtime.json +1 -1
  8. package/definitions/metering.json +728 -64
  9. package/definitions/webhooks-runtime.json +1 -1
  10. package/definitions/webhooks.json +134 -4
  11. package/dist/apis/access-token.cjs +6 -6
  12. package/dist/apis/access-token.js +1 -1
  13. package/dist/apis/address-suggestions.cjs +6 -6
  14. package/dist/apis/address-suggestions.js +1 -1
  15. package/dist/apis/address.cjs +6 -6
  16. package/dist/apis/address.js +1 -1
  17. package/dist/apis/ai-agents.cjs +6 -6
  18. package/dist/apis/ai-agents.js +1 -1
  19. package/dist/apis/app.cjs +8 -8
  20. package/dist/apis/app.d.cts +2 -2
  21. package/dist/apis/app.d.ts +2 -2
  22. package/dist/apis/app.js +2 -2
  23. package/dist/apis/audit-logs.cjs +6 -6
  24. package/dist/apis/audit-logs.js +1 -1
  25. package/dist/apis/automation.cjs +6 -6
  26. package/dist/apis/automation.js +1 -1
  27. package/dist/apis/billing.cjs +6 -6
  28. package/dist/apis/billing.js +1 -1
  29. package/dist/apis/blueprint-manifest.cjs +6 -6
  30. package/dist/apis/blueprint-manifest.js +1 -1
  31. package/dist/apis/calendar.cjs +6 -6
  32. package/dist/apis/calendar.js +1 -1
  33. package/dist/apis/configuration-hub.cjs +6 -6
  34. package/dist/apis/configuration-hub.js +1 -1
  35. package/dist/apis/consent.cjs +6 -6
  36. package/dist/apis/consent.js +1 -1
  37. package/dist/apis/customer-portal.cjs +8 -8
  38. package/dist/apis/customer-portal.d.cts +2 -2
  39. package/dist/apis/customer-portal.d.ts +2 -2
  40. package/dist/apis/customer-portal.js +2 -2
  41. package/dist/apis/dashboard.cjs +6 -6
  42. package/dist/apis/dashboard.js +1 -1
  43. package/dist/apis/data-governance.cjs +6 -6
  44. package/dist/apis/data-governance.js +1 -1
  45. package/dist/apis/deduplication.cjs +6 -6
  46. package/dist/apis/deduplication.js +1 -1
  47. package/dist/apis/design.cjs +6 -6
  48. package/dist/apis/design.js +1 -1
  49. package/dist/apis/document.cjs +6 -6
  50. package/dist/apis/document.js +1 -1
  51. package/dist/apis/email-settings.cjs +6 -6
  52. package/dist/apis/email-settings.js +1 -1
  53. package/dist/apis/email-template.cjs +6 -6
  54. package/dist/apis/email-template.js +1 -1
  55. package/dist/apis/entity-mapping.cjs +6 -6
  56. package/dist/apis/entity-mapping.js +1 -1
  57. package/dist/apis/entity.cjs +6 -6
  58. package/dist/apis/entity.d.cts +2 -2
  59. package/dist/apis/entity.d.ts +2 -2
  60. package/dist/apis/entity.js +1 -1
  61. package/dist/apis/environments.cjs +6 -6
  62. package/dist/apis/environments.js +1 -1
  63. package/dist/apis/event-catalog.cjs +6 -6
  64. package/dist/apis/event-catalog.js +1 -1
  65. package/dist/apis/file.cjs +6 -6
  66. package/dist/apis/file.js +1 -1
  67. package/dist/apis/iban.cjs +6 -6
  68. package/dist/apis/iban.js +1 -1
  69. package/dist/apis/integration-toolkit.cjs +8 -8
  70. package/dist/apis/integration-toolkit.d.cts +2 -2
  71. package/dist/apis/integration-toolkit.d.ts +2 -2
  72. package/dist/apis/integration-toolkit.js +2 -2
  73. package/dist/apis/journey.cjs +6 -6
  74. package/dist/apis/journey.js +1 -1
  75. package/dist/apis/kanban.cjs +6 -6
  76. package/dist/apis/kanban.js +1 -1
  77. package/dist/apis/message.cjs +6 -6
  78. package/dist/apis/message.js +1 -1
  79. package/dist/apis/metering.cjs +8 -8
  80. package/dist/apis/metering.d.cts +2 -2
  81. package/dist/apis/metering.d.ts +2 -2
  82. package/dist/apis/metering.js +2 -2
  83. package/dist/apis/notes.cjs +6 -6
  84. package/dist/apis/notes.d.cts +2 -2
  85. package/dist/apis/notes.d.ts +2 -2
  86. package/dist/apis/notes.js +1 -1
  87. package/dist/apis/notification.cjs +6 -6
  88. package/dist/apis/notification.js +1 -1
  89. package/dist/apis/organization.cjs +6 -6
  90. package/dist/apis/organization.js +1 -1
  91. package/dist/apis/partner-directory.cjs +6 -6
  92. package/dist/apis/partner-directory.js +1 -1
  93. package/dist/apis/permissions.cjs +6 -6
  94. package/dist/apis/permissions.js +1 -1
  95. package/dist/apis/pricing-tier.cjs +6 -6
  96. package/dist/apis/pricing-tier.js +1 -1
  97. package/dist/apis/pricing.cjs +6 -6
  98. package/dist/apis/pricing.js +1 -1
  99. package/dist/apis/purpose.cjs +6 -6
  100. package/dist/apis/purpose.js +1 -1
  101. package/dist/apis/query.cjs +6 -6
  102. package/dist/apis/query.js +1 -1
  103. package/dist/apis/sandbox.cjs +6 -6
  104. package/dist/apis/sandbox.js +1 -1
  105. package/dist/apis/sharing.cjs +6 -6
  106. package/dist/apis/sharing.js +1 -1
  107. package/dist/apis/submission.cjs +6 -6
  108. package/dist/apis/submission.js +1 -1
  109. package/dist/apis/target.cjs +6 -6
  110. package/dist/apis/target.js +1 -1
  111. package/dist/apis/targeting.cjs +6 -6
  112. package/dist/apis/targeting.js +1 -1
  113. package/dist/apis/template-variables.cjs +6 -6
  114. package/dist/apis/template-variables.js +1 -1
  115. package/dist/apis/user.cjs +6 -6
  116. package/dist/apis/user.js +1 -1
  117. package/dist/apis/validation-rules.cjs +6 -6
  118. package/dist/apis/validation-rules.js +1 -1
  119. package/dist/apis/webhooks.cjs +8 -8
  120. package/dist/apis/webhooks.d.cts +2 -2
  121. package/dist/apis/webhooks.d.ts +2 -2
  122. package/dist/apis/webhooks.js +2 -2
  123. package/dist/apis/workflow-definition.cjs +6 -6
  124. package/dist/apis/workflow-definition.js +1 -1
  125. package/dist/apis/workflow.cjs +6 -6
  126. package/dist/apis/workflow.js +1 -1
  127. package/dist/app-34OBBTA4.js +7 -0
  128. package/dist/app-SSF545U7.cjs +7 -0
  129. package/dist/app-runtime-AFNM67YN.cjs +5 -0
  130. package/dist/{app-runtime-U7RGV7KT.js → app-runtime-DBUXZL6E.js} +1 -1
  131. package/dist/{app.d-u7Dq42kU.d.cts → app.d--5n0FQQ4.d.cts} +377 -11
  132. package/dist/{app.d-u7Dq42kU.d.ts → app.d--5n0FQQ4.d.ts} +377 -11
  133. package/dist/bin/cli.js +1 -1
  134. package/dist/{chunk-JTFWOEZF.cjs → chunk-4FFGRWLS.cjs} +1 -1
  135. package/dist/chunk-56MMZJOD.js +14 -0
  136. package/dist/chunk-5OBMZHRL.cjs +14 -0
  137. package/dist/{chunk-L66IX6GX.cjs → chunk-KMVJYNLB.cjs} +1 -1
  138. package/dist/chunk-KYCVV2XE.cjs +14 -0
  139. package/dist/{chunk-TSV242UN.js → chunk-QNUU4TTU.js} +13 -13
  140. package/dist/chunk-RGO3LTAM.js +14 -0
  141. package/dist/{chunk-CD4OX2U6.cjs → chunk-SDIGGISZ.cjs} +13 -13
  142. package/dist/chunk-T6A22LSD.cjs +14 -0
  143. package/dist/chunk-WM74R3BD.js +14 -0
  144. package/dist/{chunk-LLZYRINH.js → chunk-Z4H2FZ2K.js} +1 -1
  145. package/dist/chunk-Z6HGUGXK.js +14 -0
  146. package/dist/customer-portal-5I7ZGQDU.cjs +7 -0
  147. package/dist/customer-portal-YL2YMPZL.js +7 -0
  148. package/dist/{customer-portal-runtime-PSM55KGU.js → customer-portal-runtime-N4NWQ67M.js} +1 -1
  149. package/dist/{customer-portal-runtime-DULJLR7F.cjs → customer-portal-runtime-OEXTSMSE.cjs} +2 -2
  150. package/dist/{customer-portal.d-DyZ2n2dW.d.cts → customer-portal.d-ChSEioI5.d.cts} +394 -9
  151. package/dist/{customer-portal.d-DyZ2n2dW.d.ts → customer-portal.d-ChSEioI5.d.ts} +394 -9
  152. package/dist/entity-SS36LQO6.cjs +7 -0
  153. package/dist/entity-Z4YWKDVG.js +7 -0
  154. package/dist/{entity.d-BHR9dEon.d.cts → entity.d-fospShiN.d.cts} +234 -169
  155. package/dist/{entity.d-BHR9dEon.d.ts → entity.d-fospShiN.d.ts} +234 -169
  156. package/dist/index.cjs +18 -18
  157. package/dist/index.d.cts +7 -7
  158. package/dist/index.d.ts +7 -7
  159. package/dist/index.js +6 -6
  160. package/dist/integration-toolkit-3I3IPVFN.cjs +7 -0
  161. package/dist/integration-toolkit-XAFQXNQY.js +7 -0
  162. package/dist/{integration-toolkit-runtime-5KG3LGXF.cjs → integration-toolkit-runtime-YHTU4X5J.cjs} +2 -2
  163. package/dist/{integration-toolkit-runtime-LYHFVIRW.js → integration-toolkit-runtime-YR4CIMKH.js} +1 -1
  164. package/dist/{integration-toolkit.d-Ry-KC9ow.d.cts → integration-toolkit.d-BstNqiJb.d.cts} +460 -20
  165. package/dist/{integration-toolkit.d-Ry-KC9ow.d.ts → integration-toolkit.d-BstNqiJb.d.ts} +460 -20
  166. package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
  167. package/dist/metering-3IUSYAGN.js +7 -0
  168. package/dist/metering-MHBFU7QH.cjs +7 -0
  169. package/dist/{webhooks-runtime-EBM4M3SU.cjs → metering-runtime-IUZJHBVS.cjs} +2 -2
  170. package/dist/{metering-runtime-NJ6NEUMB.js → metering-runtime-KZMJKKUZ.js} +1 -1
  171. package/dist/{metering.d-DvtPv7wk.d.ts → metering.d-CUICZDiL.d.cts} +718 -130
  172. package/dist/{metering.d-DvtPv7wk.d.cts → metering.d-CUICZDiL.d.ts} +718 -130
  173. package/dist/notes-K2IIFCX3.cjs +7 -0
  174. package/dist/notes-Q7JGS7O3.js +7 -0
  175. package/dist/{notes.d-BC-scR42.d.cts → notes.d-BcV_m5fe.d.cts} +33 -11
  176. package/dist/{notes.d-BC-scR42.d.ts → notes.d-BcV_m5fe.d.ts} +33 -11
  177. package/dist/{pricing-XAET4G7T.cjs → pricing-FODHQFCB.cjs} +1 -1
  178. package/dist/{pricing-G67CH3XH.js → pricing-XRIDVZFC.js} +1 -1
  179. package/dist/webhooks-NZ3TM3AY.cjs +7 -0
  180. package/dist/webhooks-XLBUXXCS.js +7 -0
  181. package/dist/{metering-runtime-HAIWXZXJ.cjs → webhooks-runtime-QVAFNBDW.cjs} +2 -2
  182. package/dist/{webhooks-runtime-XCQYIGQK.js → webhooks-runtime-UYTPQQVG.js} +1 -1
  183. package/dist/{webhooks.d-pLHIL_io.d.cts → webhooks.d-D79qib9f.d.cts} +115 -5
  184. package/dist/{webhooks.d-pLHIL_io.d.ts → webhooks.d-D79qib9f.d.ts} +115 -5
  185. package/docs/app.md +244 -9
  186. package/docs/customer-portal.md +340 -113
  187. package/docs/entity.md +65 -0
  188. package/docs/integration-toolkit.md +334 -19
  189. package/docs/metering.md +570 -48
  190. package/docs/notes.md +19 -12
  191. package/docs/pricing.md +3 -1
  192. package/docs/webhooks.md +49 -0
  193. package/package.json +1 -1
  194. package/dist/app-5KSVSKDU.js +0 -7
  195. package/dist/app-PL3IOROO.cjs +0 -7
  196. package/dist/app-runtime-SSNHSBR7.cjs +0 -5
  197. package/dist/chunk-265TE2OV.js +0 -14
  198. package/dist/chunk-2MMSXUOL.cjs +0 -14
  199. package/dist/chunk-4ZMLRFDX.cjs +0 -14
  200. package/dist/chunk-A7AAVJGM.js +0 -14
  201. package/dist/chunk-GVNT76UU.js +0 -14
  202. package/dist/chunk-HHMXS5NC.cjs +0 -14
  203. package/dist/chunk-U4PUHKZC.js +0 -14
  204. package/dist/customer-portal-5LMHNBMD.cjs +0 -7
  205. package/dist/customer-portal-RZACUF4N.js +0 -7
  206. package/dist/entity-H6ESUH3Y.js +0 -7
  207. package/dist/entity-ZVDKWQSF.cjs +0 -7
  208. package/dist/integration-toolkit-FRPFOYT2.js +0 -7
  209. package/dist/integration-toolkit-VNMDI55O.cjs +0 -7
  210. package/dist/metering-DZNZPPY6.cjs +0 -7
  211. package/dist/metering-KOSCPPKB.js +0 -7
  212. package/dist/notes-3AO5GXIT.js +0 -7
  213. package/dist/notes-MPWOQC5J.cjs +0 -7
  214. package/dist/webhooks-H3RT33BF.cjs +0 -7
  215. package/dist/webhooks-RTOU3MS5.js +0 -7
@@ -513,10 +513,8 @@ declare namespace Components {
513
513
  repeatable?: boolean;
514
514
  has_primary?: boolean;
515
515
  /**
516
- * Controls how updates to this attribute are handled.
517
- * - `direct` (default): update is applied immediately. No changeset created.
518
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
519
- * - `approval`: update creates a changeset, requires explicit human approval.
516
+ * Controls how updates to this attribute are handled. See the `EditMode`
517
+ * schema for the per-mode semantics. Defaults to `direct`.
520
518
  *
521
519
  */
522
520
  edit_mode?: "direct" | "external" | "approval";
@@ -733,10 +731,8 @@ declare namespace Components {
733
731
  repeatable?: boolean;
734
732
  has_primary?: boolean;
735
733
  /**
736
- * Controls how updates to this attribute are handled.
737
- * - `direct` (default): update is applied immediately. No changeset created.
738
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
739
- * - `approval`: update creates a changeset, requires explicit human approval.
734
+ * Controls how updates to this attribute are handled. See the `EditMode`
735
+ * schema for the per-mode semantics. Defaults to `direct`.
740
736
  *
741
737
  */
742
738
  edit_mode?: "direct" | "external" | "approval";
@@ -970,10 +966,8 @@ declare namespace Components {
970
966
  repeatable?: boolean;
971
967
  has_primary?: boolean;
972
968
  /**
973
- * Controls how updates to this attribute are handled.
974
- * - `direct` (default): update is applied immediately. No changeset created.
975
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
976
- * - `approval`: update creates a changeset, requires explicit human approval.
969
+ * Controls how updates to this attribute are handled. See the `EditMode`
970
+ * schema for the per-mode semantics. Defaults to `direct`.
977
971
  *
978
972
  */
979
973
  edit_mode?: "direct" | "external" | "approval";
@@ -1222,10 +1216,8 @@ declare namespace Components {
1222
1216
  repeatable?: boolean;
1223
1217
  has_primary?: boolean;
1224
1218
  /**
1225
- * Controls how updates to this attribute are handled.
1226
- * - `direct` (default): update is applied immediately. No changeset created.
1227
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
1228
- * - `approval`: update creates a changeset, requires explicit human approval.
1219
+ * Controls how updates to this attribute are handled. See the `EditMode`
1220
+ * schema for the per-mode semantics. Defaults to `direct`.
1229
1221
  *
1230
1222
  */
1231
1223
  edit_mode?: "direct" | "external" | "approval";
@@ -1344,8 +1336,12 @@ declare namespace Components {
1344
1336
  _manifest?: string /* uuid */[] | null;
1345
1337
  /**
1346
1338
  * Pending attribute changesets for attributes configured with external or approval edit mode.
1347
- * Read-only via normal entity PATCH/PUT operations — cannot be set directly.
1348
- * Use the changeset management endpoints to apply or dismiss changesets.
1339
+ *
1340
+ * The value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)
1341
+ * and is what `:apply` / `:dismiss` operate on.
1342
+ *
1343
+ * Read-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`
1344
+ * from request bodies. Use the changeset management endpoints to mutate this field.
1349
1345
  *
1350
1346
  */
1351
1347
  _changesets?: {
@@ -1510,10 +1506,8 @@ declare namespace Components {
1510
1506
  repeatable?: boolean;
1511
1507
  has_primary?: boolean;
1512
1508
  /**
1513
- * Controls how updates to this attribute are handled.
1514
- * - `direct` (default): update is applied immediately. No changeset created.
1515
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
1516
- * - `approval`: update creates a changeset, requires explicit human approval.
1509
+ * Controls how updates to this attribute are handled. See the `EditMode`
1510
+ * schema for the per-mode semantics. Defaults to `direct`.
1517
1511
  *
1518
1512
  */
1519
1513
  edit_mode?: "direct" | "external" | "approval";
@@ -1817,10 +1811,8 @@ declare namespace Components {
1817
1811
  repeatable?: boolean;
1818
1812
  has_primary?: boolean;
1819
1813
  /**
1820
- * Controls how updates to this attribute are handled.
1821
- * - `direct` (default): update is applied immediately. No changeset created.
1822
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
1823
- * - `approval`: update creates a changeset, requires explicit human approval.
1814
+ * Controls how updates to this attribute are handled. See the `EditMode`
1815
+ * schema for the per-mode semantics. Defaults to `direct`.
1824
1816
  *
1825
1817
  */
1826
1818
  edit_mode?: "direct" | "external" | "approval";
@@ -2020,10 +2012,8 @@ declare namespace Components {
2020
2012
  repeatable?: boolean;
2021
2013
  has_primary?: boolean;
2022
2014
  /**
2023
- * Controls how updates to this attribute are handled.
2024
- * - `direct` (default): update is applied immediately. No changeset created.
2025
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
2026
- * - `approval`: update creates a changeset, requires explicit human approval.
2015
+ * Controls how updates to this attribute are handled. See the `EditMode`
2016
+ * schema for the per-mode semantics. Defaults to `direct`.
2027
2017
  *
2028
2018
  */
2029
2019
  edit_mode?: "direct" | "external" | "approval";
@@ -2216,10 +2206,8 @@ declare namespace Components {
2216
2206
  repeatable?: boolean;
2217
2207
  has_primary?: boolean;
2218
2208
  /**
2219
- * Controls how updates to this attribute are handled.
2220
- * - `direct` (default): update is applied immediately. No changeset created.
2221
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
2222
- * - `approval`: update creates a changeset, requires explicit human approval.
2209
+ * Controls how updates to this attribute are handled. See the `EditMode`
2210
+ * schema for the per-mode semantics. Defaults to `direct`.
2223
2211
  *
2224
2212
  */
2225
2213
  edit_mode?: "direct" | "external" | "approval";
@@ -2410,10 +2398,8 @@ declare namespace Components {
2410
2398
  repeatable?: boolean;
2411
2399
  has_primary?: boolean;
2412
2400
  /**
2413
- * Controls how updates to this attribute are handled.
2414
- * - `direct` (default): update is applied immediately. No changeset created.
2415
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
2416
- * - `approval`: update creates a changeset, requires explicit human approval.
2401
+ * Controls how updates to this attribute are handled. See the `EditMode`
2402
+ * schema for the per-mode semantics. Defaults to `direct`.
2417
2403
  *
2418
2404
  */
2419
2405
  edit_mode?: "direct" | "external" | "approval";
@@ -2614,10 +2600,8 @@ declare namespace Components {
2614
2600
  repeatable?: boolean;
2615
2601
  has_primary?: boolean;
2616
2602
  /**
2617
- * Controls how updates to this attribute are handled.
2618
- * - `direct` (default): update is applied immediately. No changeset created.
2619
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
2620
- * - `approval`: update creates a changeset, requires explicit human approval.
2603
+ * Controls how updates to this attribute are handled. See the `EditMode`
2604
+ * schema for the per-mode semantics. Defaults to `direct`.
2621
2605
  *
2622
2606
  */
2623
2607
  edit_mode?: "direct" | "external" | "approval";
@@ -2690,6 +2674,19 @@ declare namespace Components {
2690
2674
  */
2691
2675
  cluster?: string;
2692
2676
  }
2677
+ /**
2678
+ * Controls whether a write goes through immediately or is held as a pending entry
2679
+ * on the parent entity's `_changesets` map.
2680
+ *
2681
+ * - `direct`: write applied immediately. No changeset created.
2682
+ * - `external`: write held as a pending changeset; auto-cleared on a matching direct/ERP write.
2683
+ * - `approval`: write held as a pending changeset; requires explicit human apply/dismiss.
2684
+ *
2685
+ * Used at two levels: per-attribute (entity-attribute changesets) and per-capability
2686
+ * (currently the `meter_readings` capability on the Meter schema, gating reading submissions).
2687
+ *
2688
+ */
2689
+ export type EditMode = "direct" | "external" | "approval";
2693
2690
  /**
2694
2691
  * Configuration for `edit_mode: external` auto-clear matching.
2695
2692
  * Fields here (`match_strategy`, `fuzzy_config`) only take effect when
@@ -2876,10 +2873,8 @@ declare namespace Components {
2876
2873
  repeatable?: boolean;
2877
2874
  has_primary?: boolean;
2878
2875
  /**
2879
- * Controls how updates to this attribute are handled.
2880
- * - `direct` (default): update is applied immediately. No changeset created.
2881
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
2882
- * - `approval`: update creates a changeset, requires explicit human approval.
2876
+ * Controls how updates to this attribute are handled. See the `EditMode`
2877
+ * schema for the per-mode semantics. Defaults to `direct`.
2883
2878
  *
2884
2879
  */
2885
2880
  edit_mode?: "direct" | "external" | "approval";
@@ -2999,8 +2994,12 @@ declare namespace Components {
2999
2994
  _manifest?: string /* uuid */[] | null;
3000
2995
  /**
3001
2996
  * Pending attribute changesets for attributes configured with external or approval edit mode.
3002
- * Read-only via normal entity PATCH/PUT operations — cannot be set directly.
3003
- * Use the changeset management endpoints to apply or dismiss changesets.
2997
+ *
2998
+ * The value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)
2999
+ * and is what `:apply` / `:dismiss` operate on.
3000
+ *
3001
+ * Read-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`
3002
+ * from request bodies. Use the changeset management endpoints to mutate this field.
3004
3003
  *
3005
3004
  */
3006
3005
  _changesets?: {
@@ -3503,8 +3502,12 @@ declare namespace Components {
3503
3502
  _manifest?: string /* uuid */[] | null;
3504
3503
  /**
3505
3504
  * Pending attribute changesets for attributes configured with external or approval edit mode.
3506
- * Read-only via normal entity PATCH/PUT operations — cannot be set directly.
3507
- * Use the changeset management endpoints to apply or dismiss changesets.
3505
+ *
3506
+ * The value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)
3507
+ * and is what `:apply` / `:dismiss` operate on.
3508
+ *
3509
+ * Read-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`
3510
+ * from request bodies. Use the changeset management endpoints to mutate this field.
3508
3511
  *
3509
3512
  */
3510
3513
  _changesets?: {
@@ -3794,8 +3797,12 @@ declare namespace Components {
3794
3797
  _manifest?: string /* uuid */[] | null;
3795
3798
  /**
3796
3799
  * Pending attribute changesets for attributes configured with external or approval edit mode.
3797
- * Read-only via normal entity PATCH/PUT operations — cannot be set directly.
3798
- * Use the changeset management endpoints to apply or dismiss changesets.
3800
+ *
3801
+ * The value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)
3802
+ * and is what `:apply` / `:dismiss` operate on.
3803
+ *
3804
+ * Read-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`
3805
+ * from request bodies. Use the changeset management endpoints to mutate this field.
3799
3806
  *
3800
3807
  */
3801
3808
  _changesets?: {
@@ -3887,8 +3894,12 @@ declare namespace Components {
3887
3894
  _manifest?: string /* uuid */[] | null;
3888
3895
  /**
3889
3896
  * Pending attribute changesets for attributes configured with external or approval edit mode.
3890
- * Read-only via normal entity PATCH/PUT operations — cannot be set directly.
3891
- * Use the changeset management endpoints to apply or dismiss changesets.
3897
+ *
3898
+ * The value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)
3899
+ * and is what `:apply` / `:dismiss` operate on.
3900
+ *
3901
+ * Read-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`
3902
+ * from request bodies. Use the changeset management endpoints to mutate this field.
3892
3903
  *
3893
3904
  */
3894
3905
  _changesets?: {
@@ -3979,8 +3990,12 @@ declare namespace Components {
3979
3990
  _manifest?: string /* uuid */[] | null;
3980
3991
  /**
3981
3992
  * Pending attribute changesets for attributes configured with external or approval edit mode.
3982
- * Read-only via normal entity PATCH/PUT operations — cannot be set directly.
3983
- * Use the changeset management endpoints to apply or dismiss changesets.
3993
+ *
3994
+ * The value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)
3995
+ * and is what `:apply` / `:dismiss` operate on.
3996
+ *
3997
+ * Read-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`
3998
+ * from request bodies. Use the changeset management endpoints to mutate this field.
3984
3999
  *
3985
4000
  */
3986
4001
  _changesets?: {
@@ -4071,8 +4086,12 @@ declare namespace Components {
4071
4086
  _manifest?: string /* uuid */[] | null;
4072
4087
  /**
4073
4088
  * Pending attribute changesets for attributes configured with external or approval edit mode.
4074
- * Read-only via normal entity PATCH/PUT operations — cannot be set directly.
4075
- * Use the changeset management endpoints to apply or dismiss changesets.
4089
+ *
4090
+ * The value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)
4091
+ * and is what `:apply` / `:dismiss` operate on.
4092
+ *
4093
+ * Read-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`
4094
+ * from request bodies. Use the changeset management endpoints to mutate this field.
4076
4095
  *
4077
4096
  */
4078
4097
  _changesets?: {
@@ -5412,10 +5431,8 @@ declare namespace Components {
5412
5431
  repeatable?: boolean;
5413
5432
  has_primary?: boolean;
5414
5433
  /**
5415
- * Controls how updates to this attribute are handled.
5416
- * - `direct` (default): update is applied immediately. No changeset created.
5417
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
5418
- * - `approval`: update creates a changeset, requires explicit human approval.
5434
+ * Controls how updates to this attribute are handled. See the `EditMode`
5435
+ * schema for the per-mode semantics. Defaults to `direct`.
5419
5436
  *
5420
5437
  */
5421
5438
  edit_mode?: "direct" | "external" | "approval";
@@ -6122,8 +6139,12 @@ declare namespace Components {
6122
6139
  _manifest?: string /* uuid */[] | null;
6123
6140
  /**
6124
6141
  * Pending attribute changesets for attributes configured with external or approval edit mode.
6125
- * Read-only via normal entity PATCH/PUT operations — cannot be set directly.
6126
- * Use the changeset management endpoints to apply or dismiss changesets.
6142
+ *
6143
+ * The value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)
6144
+ * and is what `:apply` / `:dismiss` operate on.
6145
+ *
6146
+ * Read-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`
6147
+ * from request bodies. Use the changeset management endpoints to mutate this field.
6127
6148
  *
6128
6149
  */
6129
6150
  _changesets?: {
@@ -6287,10 +6308,8 @@ declare namespace Components {
6287
6308
  repeatable?: boolean;
6288
6309
  has_primary?: boolean;
6289
6310
  /**
6290
- * Controls how updates to this attribute are handled.
6291
- * - `direct` (default): update is applied immediately. No changeset created.
6292
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
6293
- * - `approval`: update creates a changeset, requires explicit human approval.
6311
+ * Controls how updates to this attribute are handled. See the `EditMode`
6312
+ * schema for the per-mode semantics. Defaults to `direct`.
6294
6313
  *
6295
6314
  */
6296
6315
  edit_mode?: "direct" | "external" | "approval";
@@ -6481,10 +6500,8 @@ declare namespace Components {
6481
6500
  repeatable?: boolean;
6482
6501
  has_primary?: boolean;
6483
6502
  /**
6484
- * Controls how updates to this attribute are handled.
6485
- * - `direct` (default): update is applied immediately. No changeset created.
6486
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
6487
- * - `approval`: update creates a changeset, requires explicit human approval.
6503
+ * Controls how updates to this attribute are handled. See the `EditMode`
6504
+ * schema for the per-mode semantics. Defaults to `direct`.
6488
6505
  *
6489
6506
  */
6490
6507
  edit_mode?: "direct" | "external" | "approval";
@@ -6675,10 +6692,8 @@ declare namespace Components {
6675
6692
  repeatable?: boolean;
6676
6693
  has_primary?: boolean;
6677
6694
  /**
6678
- * Controls how updates to this attribute are handled.
6679
- * - `direct` (default): update is applied immediately. No changeset created.
6680
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
6681
- * - `approval`: update creates a changeset, requires explicit human approval.
6695
+ * Controls how updates to this attribute are handled. See the `EditMode`
6696
+ * schema for the per-mode semantics. Defaults to `direct`.
6682
6697
  *
6683
6698
  */
6684
6699
  edit_mode?: "direct" | "external" | "approval";
@@ -6877,10 +6892,8 @@ declare namespace Components {
6877
6892
  repeatable?: boolean;
6878
6893
  has_primary?: boolean;
6879
6894
  /**
6880
- * Controls how updates to this attribute are handled.
6881
- * - `direct` (default): update is applied immediately. No changeset created.
6882
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
6883
- * - `approval`: update creates a changeset, requires explicit human approval.
6895
+ * Controls how updates to this attribute are handled. See the `EditMode`
6896
+ * schema for the per-mode semantics. Defaults to `direct`.
6884
6897
  *
6885
6898
  */
6886
6899
  edit_mode?: "direct" | "external" | "approval";
@@ -7090,10 +7103,8 @@ declare namespace Components {
7090
7103
  repeatable?: boolean;
7091
7104
  has_primary?: boolean;
7092
7105
  /**
7093
- * Controls how updates to this attribute are handled.
7094
- * - `direct` (default): update is applied immediately. No changeset created.
7095
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
7096
- * - `approval`: update creates a changeset, requires explicit human approval.
7106
+ * Controls how updates to this attribute are handled. See the `EditMode`
7107
+ * schema for the per-mode semantics. Defaults to `direct`.
7097
7108
  *
7098
7109
  */
7099
7110
  edit_mode?: "direct" | "external" | "approval";
@@ -7133,6 +7144,90 @@ declare namespace Components {
7133
7144
  send_status?: string;
7134
7145
  email_type?: string;
7135
7146
  }
7147
+ /**
7148
+ * A meter readings changeset entry — service-managed by metering-api.
7149
+ * Stored on `Meter._meter_readings_changeset` array attribute. Each entry mirrors a
7150
+ * ClickHouse meter reading row plus a changeset metadata overlay.
7151
+ *
7152
+ * Note: `org_id` is NOT stored on the entry. The entries live on the Meter entity,
7153
+ * which is already org-scoped (`_org`). Round-tripping it would only invite drift;
7154
+ * downstream consumers receive the org from the meter / handler context.
7155
+ *
7156
+ */
7157
+ export interface MeterReadingChangesetEntry {
7158
+ value: number;
7159
+ direction?: "feed-in" | "feed-out";
7160
+ timestamp?: string; // date-time
7161
+ meter_id: string; // uuid
7162
+ counter_id: string; // uuid
7163
+ source?: string;
7164
+ reason?: string;
7165
+ read_by?: string;
7166
+ status?: "valid" | "in-validation" | "implausible";
7167
+ external_id?: string;
7168
+ remark?: string;
7169
+ metadata?: {
7170
+ [name: string]: string;
7171
+ };
7172
+ /**
7173
+ * Unique changeset identifier (UUID v4).
7174
+ */
7175
+ changeset_id: string;
7176
+ edit_mode: "external" | "approval";
7177
+ match_strategy?: "exact" | "fuzzy";
7178
+ /**
7179
+ * Slack on `reading.timestamp` when metering-api auto-clear matches an
7180
+ * incoming reading against this pending changeset.
7181
+ *
7182
+ * Variants:
7183
+ * - `'exact'`: strict millisecond equality.
7184
+ * - `{ type: 'same-day', timezone? }`: strip the time component and
7185
+ * compare year-month-day. Optional `timezone` is an IANA name
7186
+ * (e.g. `'Europe/Berlin'`); the day is bucketed in that zone.
7187
+ * Defaults to UTC when omitted.
7188
+ * - `{ type: 'within-seconds', seconds }`: symmetric ±N-second window.
7189
+ *
7190
+ */
7191
+ timestamp_tolerance?: /**
7192
+ * Slack on `reading.timestamp` when metering-api auto-clear matches an
7193
+ * incoming reading against this pending changeset.
7194
+ *
7195
+ * Variants:
7196
+ * - `'exact'`: strict millisecond equality.
7197
+ * - `{ type: 'same-day', timezone? }`: strip the time component and
7198
+ * compare year-month-day. Optional `timezone` is an IANA name
7199
+ * (e.g. `'Europe/Berlin'`); the day is bucketed in that zone.
7200
+ * Defaults to UTC when omitted.
7201
+ * - `{ type: 'within-seconds', seconds }`: symmetric ±N-second window.
7202
+ *
7203
+ */
7204
+ ("exact") | {
7205
+ type: "same-day";
7206
+ /**
7207
+ * IANA timezone identifier (e.g. `'Europe/Berlin'`, `'UTC'`).
7208
+ * When omitted, the day is bucketed in UTC.
7209
+ *
7210
+ */
7211
+ timezone?: string;
7212
+ } | {
7213
+ type: "within-seconds";
7214
+ /**
7215
+ * Tolerance in seconds. e.g. 60 = ±1 minute, 3600 = ±1 hour.
7216
+ */
7217
+ seconds: number;
7218
+ };
7219
+ fuzzy_config?: {
7220
+ percentage_threshold?: number;
7221
+ absolute_threshold?: number;
7222
+ };
7223
+ created_at: string; // date-time
7224
+ created_by?: /* Identifies the actor that created the changeset. */ ChangesetCreator;
7225
+ previous?: {
7226
+ value?: number;
7227
+ direction?: "feed-in" | "feed-out";
7228
+ timestamp?: string; // date-time
7229
+ };
7230
+ }
7136
7231
  /**
7137
7232
  * Multi Choice Selection
7138
7233
  */
@@ -7287,10 +7382,8 @@ declare namespace Components {
7287
7382
  repeatable?: boolean;
7288
7383
  has_primary?: boolean;
7289
7384
  /**
7290
- * Controls how updates to this attribute are handled.
7291
- * - `direct` (default): update is applied immediately. No changeset created.
7292
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
7293
- * - `approval`: update creates a changeset, requires explicit human approval.
7385
+ * Controls how updates to this attribute are handled. See the `EditMode`
7386
+ * schema for the per-mode semantics. Defaults to `direct`.
7294
7387
  *
7295
7388
  */
7296
7389
  edit_mode?: "direct" | "external" | "approval";
@@ -7426,8 +7519,12 @@ declare namespace Components {
7426
7519
  _manifest?: string /* uuid */[] | null;
7427
7520
  /**
7428
7521
  * Pending attribute changesets for attributes configured with external or approval edit mode.
7429
- * Read-only via normal entity PATCH/PUT operations — cannot be set directly.
7430
- * Use the changeset management endpoints to apply or dismiss changesets.
7522
+ *
7523
+ * The value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)
7524
+ * and is what `:apply` / `:dismiss` operate on.
7525
+ *
7526
+ * Read-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`
7527
+ * from request bodies. Use the changeset management endpoints to mutate this field.
7431
7528
  *
7432
7529
  */
7433
7530
  _changesets?: {
@@ -7588,10 +7685,8 @@ declare namespace Components {
7588
7685
  repeatable?: boolean;
7589
7686
  has_primary?: boolean;
7590
7687
  /**
7591
- * Controls how updates to this attribute are handled.
7592
- * - `direct` (default): update is applied immediately. No changeset created.
7593
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
7594
- * - `approval`: update creates a changeset, requires explicit human approval.
7688
+ * Controls how updates to this attribute are handled. See the `EditMode`
7689
+ * schema for the per-mode semantics. Defaults to `direct`.
7595
7690
  *
7596
7691
  */
7597
7692
  edit_mode?: "direct" | "external" | "approval";
@@ -7791,10 +7886,8 @@ declare namespace Components {
7791
7886
  repeatable?: boolean;
7792
7887
  has_primary?: boolean;
7793
7888
  /**
7794
- * Controls how updates to this attribute are handled.
7795
- * - `direct` (default): update is applied immediately. No changeset created.
7796
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
7797
- * - `approval`: update creates a changeset, requires explicit human approval.
7889
+ * Controls how updates to this attribute are handled. See the `EditMode`
7890
+ * schema for the per-mode semantics. Defaults to `direct`.
7798
7891
  *
7799
7892
  */
7800
7893
  edit_mode?: "direct" | "external" | "approval";
@@ -7985,10 +8078,8 @@ declare namespace Components {
7985
8078
  repeatable?: boolean;
7986
8079
  has_primary?: boolean;
7987
8080
  /**
7988
- * Controls how updates to this attribute are handled.
7989
- * - `direct` (default): update is applied immediately. No changeset created.
7990
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
7991
- * - `approval`: update creates a changeset, requires explicit human approval.
8081
+ * Controls how updates to this attribute are handled. See the `EditMode`
8082
+ * schema for the per-mode semantics. Defaults to `direct`.
7992
8083
  *
7993
8084
  */
7994
8085
  edit_mode?: "direct" | "external" | "approval";
@@ -8179,10 +8270,8 @@ declare namespace Components {
8179
8270
  repeatable?: boolean;
8180
8271
  has_primary?: boolean;
8181
8272
  /**
8182
- * Controls how updates to this attribute are handled.
8183
- * - `direct` (default): update is applied immediately. No changeset created.
8184
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
8185
- * - `approval`: update creates a changeset, requires explicit human approval.
8273
+ * Controls how updates to this attribute are handled. See the `EditMode`
8274
+ * schema for the per-mode semantics. Defaults to `direct`.
8186
8275
  *
8187
8276
  */
8188
8277
  edit_mode?: "direct" | "external" | "approval";
@@ -8373,10 +8462,8 @@ declare namespace Components {
8373
8462
  repeatable?: boolean;
8374
8463
  has_primary?: boolean;
8375
8464
  /**
8376
- * Controls how updates to this attribute are handled.
8377
- * - `direct` (default): update is applied immediately. No changeset created.
8378
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
8379
- * - `approval`: update creates a changeset, requires explicit human approval.
8465
+ * Controls how updates to this attribute are handled. See the `EditMode`
8466
+ * schema for the per-mode semantics. Defaults to `direct`.
8380
8467
  *
8381
8468
  */
8382
8469
  edit_mode?: "direct" | "external" | "approval";
@@ -8567,10 +8654,8 @@ declare namespace Components {
8567
8654
  repeatable?: boolean;
8568
8655
  has_primary?: boolean;
8569
8656
  /**
8570
- * Controls how updates to this attribute are handled.
8571
- * - `direct` (default): update is applied immediately. No changeset created.
8572
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
8573
- * - `approval`: update creates a changeset, requires explicit human approval.
8657
+ * Controls how updates to this attribute are handled. See the `EditMode`
8658
+ * schema for the per-mode semantics. Defaults to `direct`.
8574
8659
  *
8575
8660
  */
8576
8661
  edit_mode?: "direct" | "external" | "approval";
@@ -8761,10 +8846,8 @@ declare namespace Components {
8761
8846
  repeatable?: boolean;
8762
8847
  has_primary?: boolean;
8763
8848
  /**
8764
- * Controls how updates to this attribute are handled.
8765
- * - `direct` (default): update is applied immediately. No changeset created.
8766
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
8767
- * - `approval`: update creates a changeset, requires explicit human approval.
8849
+ * Controls how updates to this attribute are handled. See the `EditMode`
8850
+ * schema for the per-mode semantics. Defaults to `direct`.
8768
8851
  *
8769
8852
  */
8770
8853
  edit_mode?: "direct" | "external" | "approval";
@@ -8955,10 +9038,8 @@ declare namespace Components {
8955
9038
  repeatable?: boolean;
8956
9039
  has_primary?: boolean;
8957
9040
  /**
8958
- * Controls how updates to this attribute are handled.
8959
- * - `direct` (default): update is applied immediately. No changeset created.
8960
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
8961
- * - `approval`: update creates a changeset, requires explicit human approval.
9041
+ * Controls how updates to this attribute are handled. See the `EditMode`
9042
+ * schema for the per-mode semantics. Defaults to `direct`.
8962
9043
  *
8963
9044
  */
8964
9045
  edit_mode?: "direct" | "external" | "approval";
@@ -9149,10 +9230,8 @@ declare namespace Components {
9149
9230
  repeatable?: boolean;
9150
9231
  has_primary?: boolean;
9151
9232
  /**
9152
- * Controls how updates to this attribute are handled.
9153
- * - `direct` (default): update is applied immediately. No changeset created.
9154
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
9155
- * - `approval`: update creates a changeset, requires explicit human approval.
9233
+ * Controls how updates to this attribute are handled. See the `EditMode`
9234
+ * schema for the per-mode semantics. Defaults to `direct`.
9156
9235
  *
9157
9236
  */
9158
9237
  edit_mode?: "direct" | "external" | "approval";
@@ -9343,10 +9422,8 @@ declare namespace Components {
9343
9422
  repeatable?: boolean;
9344
9423
  has_primary?: boolean;
9345
9424
  /**
9346
- * Controls how updates to this attribute are handled.
9347
- * - `direct` (default): update is applied immediately. No changeset created.
9348
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
9349
- * - `approval`: update creates a changeset, requires explicit human approval.
9425
+ * Controls how updates to this attribute are handled. See the `EditMode`
9426
+ * schema for the per-mode semantics. Defaults to `direct`.
9350
9427
  *
9351
9428
  */
9352
9429
  edit_mode?: "direct" | "external" | "approval";
@@ -9552,10 +9629,8 @@ declare namespace Components {
9552
9629
  repeatable?: boolean;
9553
9630
  has_primary?: boolean;
9554
9631
  /**
9555
- * Controls how updates to this attribute are handled.
9556
- * - `direct` (default): update is applied immediately. No changeset created.
9557
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
9558
- * - `approval`: update creates a changeset, requires explicit human approval.
9632
+ * Controls how updates to this attribute are handled. See the `EditMode`
9633
+ * schema for the per-mode semantics. Defaults to `direct`.
9559
9634
  *
9560
9635
  */
9561
9636
  edit_mode?: "direct" | "external" | "approval" | "list-view";
@@ -9786,8 +9861,12 @@ declare namespace Components {
9786
9861
  _manifest?: string /* uuid */[] | null;
9787
9862
  /**
9788
9863
  * Pending attribute changesets for attributes configured with external or approval edit mode.
9789
- * Read-only via normal entity PATCH/PUT operations — cannot be set directly.
9790
- * Use the changeset management endpoints to apply or dismiss changesets.
9864
+ *
9865
+ * The value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)
9866
+ * and is what `:apply` / `:dismiss` operate on.
9867
+ *
9868
+ * Read-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`
9869
+ * from request bodies. Use the changeset management endpoints to mutate this field.
9791
9870
  *
9792
9871
  */
9793
9872
  _changesets?: {
@@ -9968,10 +10047,8 @@ declare namespace Components {
9968
10047
  repeatable?: boolean;
9969
10048
  has_primary?: boolean;
9970
10049
  /**
9971
- * Controls how updates to this attribute are handled.
9972
- * - `direct` (default): update is applied immediately. No changeset created.
9973
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
9974
- * - `approval`: update creates a changeset, requires explicit human approval.
10050
+ * Controls how updates to this attribute are handled. See the `EditMode`
10051
+ * schema for the per-mode semantics. Defaults to `direct`.
9975
10052
  *
9976
10053
  */
9977
10054
  edit_mode?: "direct" | "external" | "approval";
@@ -10566,10 +10643,8 @@ declare namespace Components {
10566
10643
  repeatable?: boolean;
10567
10644
  has_primary?: boolean;
10568
10645
  /**
10569
- * Controls how updates to this attribute are handled.
10570
- * - `direct` (default): update is applied immediately. No changeset created.
10571
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
10572
- * - `approval`: update creates a changeset, requires explicit human approval.
10646
+ * Controls how updates to this attribute are handled. See the `EditMode`
10647
+ * schema for the per-mode semantics. Defaults to `direct`.
10573
10648
  *
10574
10649
  */
10575
10650
  edit_mode?: "direct" | "external" | "approval";
@@ -10768,10 +10843,8 @@ declare namespace Components {
10768
10843
  repeatable?: boolean;
10769
10844
  has_primary?: boolean;
10770
10845
  /**
10771
- * Controls how updates to this attribute are handled.
10772
- * - `direct` (default): update is applied immediately. No changeset created.
10773
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
10774
- * - `approval`: update creates a changeset, requires explicit human approval.
10846
+ * Controls how updates to this attribute are handled. See the `EditMode`
10847
+ * schema for the per-mode semantics. Defaults to `direct`.
10775
10848
  *
10776
10849
  */
10777
10850
  edit_mode?: "direct" | "external" | "approval";
@@ -10979,10 +11052,8 @@ declare namespace Components {
10979
11052
  repeatable?: boolean;
10980
11053
  has_primary?: boolean;
10981
11054
  /**
10982
- * Controls how updates to this attribute are handled.
10983
- * - `direct` (default): update is applied immediately. No changeset created.
10984
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
10985
- * - `approval`: update creates a changeset, requires explicit human approval.
11055
+ * Controls how updates to this attribute are handled. See the `EditMode`
11056
+ * schema for the per-mode semantics. Defaults to `direct`.
10986
11057
  *
10987
11058
  */
10988
11059
  edit_mode?: "direct" | "external" | "approval";
@@ -11269,10 +11340,8 @@ declare namespace Components {
11269
11340
  repeatable?: boolean;
11270
11341
  has_primary?: boolean;
11271
11342
  /**
11272
- * Controls how updates to this attribute are handled.
11273
- * - `direct` (default): update is applied immediately. No changeset created.
11274
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
11275
- * - `approval`: update creates a changeset, requires explicit human approval.
11343
+ * Controls how updates to this attribute are handled. See the `EditMode`
11344
+ * schema for the per-mode semantics. Defaults to `direct`.
11276
11345
  *
11277
11346
  */
11278
11347
  edit_mode?: "direct" | "external" | "approval";
@@ -11519,10 +11588,8 @@ declare namespace Components {
11519
11588
  repeatable?: boolean;
11520
11589
  has_primary?: boolean;
11521
11590
  /**
11522
- * Controls how updates to this attribute are handled.
11523
- * - `direct` (default): update is applied immediately. No changeset created.
11524
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
11525
- * - `approval`: update creates a changeset, requires explicit human approval.
11591
+ * Controls how updates to this attribute are handled. See the `EditMode`
11592
+ * schema for the per-mode semantics. Defaults to `direct`.
11526
11593
  *
11527
11594
  */
11528
11595
  edit_mode?: "direct" | "external" | "approval";
@@ -11915,10 +11982,8 @@ declare namespace Components {
11915
11982
  repeatable?: boolean;
11916
11983
  has_primary?: boolean;
11917
11984
  /**
11918
- * Controls how updates to this attribute are handled.
11919
- * - `direct` (default): update is applied immediately. No changeset created.
11920
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
11921
- * - `approval`: update creates a changeset, requires explicit human approval.
11985
+ * Controls how updates to this attribute are handled. See the `EditMode`
11986
+ * schema for the per-mode semantics. Defaults to `direct`.
11922
11987
  *
11923
11988
  */
11924
11989
  edit_mode?: "direct" | "external" | "approval";
@@ -12122,10 +12187,8 @@ declare namespace Components {
12122
12187
  repeatable?: boolean;
12123
12188
  has_primary?: boolean;
12124
12189
  /**
12125
- * Controls how updates to this attribute are handled.
12126
- * - `direct` (default): update is applied immediately. No changeset created.
12127
- * - `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).
12128
- * - `approval`: update creates a changeset, requires explicit human approval.
12190
+ * Controls how updates to this attribute are handled. See the `EditMode`
12191
+ * schema for the per-mode semantics. Defaults to `direct`.
12129
12192
  *
12130
12193
  */
12131
12194
  edit_mode?: "direct" | "external" | "approval";
@@ -18366,6 +18429,7 @@ type CurrencyAttribute = Components.Schemas.CurrencyAttribute;
18366
18429
  type DateAttribute = Components.Schemas.DateAttribute;
18367
18430
  type DefaultAddressFields = Components.Schemas.DefaultAddressFields;
18368
18431
  type ESClusterAssignment = Components.Schemas.ESClusterAssignment;
18432
+ type EditMode = Components.Schemas.EditMode;
18369
18433
  type EditModeConfig = Components.Schemas.EditModeConfig;
18370
18434
  type EmailAttribute = Components.Schemas.EmailAttribute;
18371
18435
  type Entity = Components.Schemas.Entity;
@@ -18431,6 +18495,7 @@ type LinkAttribute = Components.Schemas.LinkAttribute;
18431
18495
  type ListSavedViewsResults = Components.Schemas.ListSavedViewsResults;
18432
18496
  type MatchStrategy = Components.Schemas.MatchStrategy;
18433
18497
  type MessageEmailAddressAttribute = Components.Schemas.MessageEmailAddressAttribute;
18498
+ type MeterReadingChangesetEntry = Components.Schemas.MeterReadingChangesetEntry;
18434
18499
  type MultiSelectAttribute = Components.Schemas.MultiSelectAttribute;
18435
18500
  type NullableEntity = Components.Schemas.NullableEntity;
18436
18501
  type NumberAttribute = Components.Schemas.NumberAttribute;
@@ -18476,4 +18541,4 @@ type TaxonomySlug = Components.Schemas.TaxonomySlug;
18476
18541
  type TextAttribute = Components.Schemas.TextAttribute;
18477
18542
  type UserRelationAttribute = Components.Schemas.UserRelationAttribute;
18478
18543
 
18479
- export { type EntitySchemaItem as $, type Activity as A, type BaseActivityItem as B, type Client as C, type DateAttribute as D, type DefaultAddressFields as E, type ESClusterAssignment as F, type EditModeConfig as G, type EmailAttribute as H, type Entity as I, type EntityAcl as J, type EntityAction as K, type EntityCapability as L, type EntityCapabilityWithCompositeID as M, type EntityDefaultCreate as N, type OperationMethods as O, Paths as P, type EntityDefaultEdit as Q, type EntityDefaultTable as R, type EntityId as S, type EntityImportParams as T, type EntityItem as U, type EntityListParams as V, type EntityOperation as W, type EntityOwner as X, type EntitySchema as Y, type EntitySchemaGroup as Z, type EntitySchemaGroupWithCompositeID as _, Components as a, type SavedViewId as a$, type EntitySearchIncludeDeletedParam as a0, type EntitySearchOptions as a1, type EntitySearchParams as a2, type EntitySearchResults as a3, type EntitySlug as a4, type EntityTableFilterOption as a5, type EntityTableFilterSearch as a6, type EntityValidationError as a7, type EntityValidationResult as a8, type EntityValidationResultError as a9, type InternalAttribute as aA, type InternalUserAttribute as aB, type InvitationEmailAttribute as aC, type IsTemplate as aD, type Language as aE, type LinkAttribute as aF, type ListSavedViewsResults as aG, type MatchStrategy as aH, type MessageEmailAddressAttribute as aI, type MultiSelectAttribute as aJ, type NullableEntity as aK, type NumberAttribute as aL, type OrderedListAttribute as aM, type PartnerOrganisationAttribute as aN, type PartnerStatusAttribute as aO, type PaymentAttribute as aP, type PaymentMethodRelationAttribute as aQ, type PhoneAttribute as aR, type PortalAccessAttribute as aS, type PriceComponentAttribute as aT, type PurposeAttribute as aU, type RedirectEntityView as aV, type RelationAttribute as aW, type RelationEntity as aX, type RelationItem as aY, type RepeatableAttribute as aZ, type SavedView as a_, type EntityValidationResultSuccess as aa, type EntityValidationV2Error as ab, type EntityValidationV2Result as ac, type EntityValidationV2ResultError as ad, type EntityValidationV2ResultSuccess as ae, type EntityViewDisabled as af, type ErrorObject as ag, type ExportJobId as ah, type FieldsParam as ai, type FileAttribute as aj, type FuzzyConfig as ak, type GenerateEntityTableAIFiltersRequest as al, type GenerateEntityTableAIFiltersResponse as am, GetRelatedEntitiesCount as an, type GetRelationsResp as ao, type GetRelationsRespWithPagination as ap, type GraphDefinition as aq, type GraphEdge as ar, type GraphNode as as, type GraphQueryRequest as at, type GraphQueryResponse as au, type GraphSeed as av, type GroupHeadline as aw, type GroupHeadlineWithCompositeID as ax, type HydratedEntity as ay, type HydratedEntityItem as az, type PathsDictionary as b, type SavedViewItem as b0, type SavedViewPartial as b1, type SchemaId as b2, type SearchFilter as b3, type SearchFilterValue as b4, type SearchMappings as b5, type SelectAttribute as b6, type SequenceAttribute as b7, type SettingFlag as b8, type StatusAttribute as b9, type SummaryAttribute as ba, type SummaryField as bb, type TableAttribute as bc, type TagsAttribute as bd, type Taxonomy as be, type TaxonomyBulkJob as bf, type TaxonomyBulkJobActionType as bg, type TaxonomyBulkJobStatus as bh, type TaxonomyBulkJobTriggerResponse as bi, type TaxonomyClassification as bj, type TaxonomyLocationId as bk, type TaxonomySearchIncludeArchivedParam as bl, type TaxonomySlug as bm, type TextAttribute as bn, type UserRelationAttribute as bo, type ActivityCallerContext as c, type ActivityId as d, type ActivityItem as e, type ActivityType as f, type AddressAttribute as g, type AddressRelationAttribute as h, type Attribute as i, type AttributeWithCompositeID as j, type AutomationAttribute as k, type BaseAttribute as l, type BaseEntity as m, type BlueprintEntityId as n, type BooleanAttribute as o, type Changeset as p, type ChangesetCreator as q, type ChangesetMap as r, type ClassificationId as s, type ClassificationIdOrPattern as t, type ClassificationSlug as u, type ClassificationsUpdate as v, type ComputedAttribute as w, type ConsentAttribute as x, type CountryAttribute as y, type CurrencyAttribute as z };
18544
+ export { type EntitySchemaGroupWithCompositeID as $, type Activity as A, type BaseActivityItem as B, type Client as C, type DateAttribute as D, type DefaultAddressFields as E, type ESClusterAssignment as F, type EditMode as G, type EditModeConfig as H, type EmailAttribute as I, type Entity as J, type EntityAcl as K, type EntityAction as L, type EntityCapability as M, type EntityCapabilityWithCompositeID as N, type OperationMethods as O, Paths as P, type EntityDefaultCreate as Q, type EntityDefaultEdit as R, type EntityDefaultTable as S, type EntityId as T, type EntityImportParams as U, type EntityItem as V, type EntityListParams as W, type EntityOperation as X, type EntityOwner as Y, type EntitySchema as Z, type EntitySchemaGroup as _, Components as a, type RepeatableAttribute as a$, type EntitySchemaItem as a0, type EntitySearchIncludeDeletedParam as a1, type EntitySearchOptions as a2, type EntitySearchParams as a3, type EntitySearchResults as a4, type EntitySlug as a5, type EntityTableFilterOption as a6, type EntityTableFilterSearch as a7, type EntityValidationError as a8, type EntityValidationResult as a9, type HydratedEntityItem as aA, type InternalAttribute as aB, type InternalUserAttribute as aC, type InvitationEmailAttribute as aD, type IsTemplate as aE, type Language as aF, type LinkAttribute as aG, type ListSavedViewsResults as aH, type MatchStrategy as aI, type MessageEmailAddressAttribute as aJ, type MeterReadingChangesetEntry as aK, type MultiSelectAttribute as aL, type NullableEntity as aM, type NumberAttribute as aN, type OrderedListAttribute as aO, type PartnerOrganisationAttribute as aP, type PartnerStatusAttribute as aQ, type PaymentAttribute as aR, type PaymentMethodRelationAttribute as aS, type PhoneAttribute as aT, type PortalAccessAttribute as aU, type PriceComponentAttribute as aV, type PurposeAttribute as aW, type RedirectEntityView as aX, type RelationAttribute as aY, type RelationEntity as aZ, type RelationItem as a_, type EntityValidationResultError as aa, type EntityValidationResultSuccess as ab, type EntityValidationV2Error as ac, type EntityValidationV2Result as ad, type EntityValidationV2ResultError as ae, type EntityValidationV2ResultSuccess as af, type EntityViewDisabled as ag, type ErrorObject as ah, type ExportJobId as ai, type FieldsParam as aj, type FileAttribute as ak, type FuzzyConfig as al, type GenerateEntityTableAIFiltersRequest as am, type GenerateEntityTableAIFiltersResponse as an, GetRelatedEntitiesCount as ao, type GetRelationsResp as ap, type GetRelationsRespWithPagination as aq, type GraphDefinition as ar, type GraphEdge as as, type GraphNode as at, type GraphQueryRequest as au, type GraphQueryResponse as av, type GraphSeed as aw, type GroupHeadline as ax, type GroupHeadlineWithCompositeID as ay, type HydratedEntity as az, type PathsDictionary as b, type SavedView as b0, type SavedViewId as b1, type SavedViewItem as b2, type SavedViewPartial as b3, type SchemaId as b4, type SearchFilter as b5, type SearchFilterValue as b6, type SearchMappings as b7, type SelectAttribute as b8, type SequenceAttribute as b9, type SettingFlag as ba, type StatusAttribute as bb, type SummaryAttribute as bc, type SummaryField as bd, type TableAttribute as be, type TagsAttribute as bf, type Taxonomy as bg, type TaxonomyBulkJob as bh, type TaxonomyBulkJobActionType as bi, type TaxonomyBulkJobStatus as bj, type TaxonomyBulkJobTriggerResponse as bk, type TaxonomyClassification as bl, type TaxonomyLocationId as bm, type TaxonomySearchIncludeArchivedParam as bn, type TaxonomySlug as bo, type TextAttribute as bp, type UserRelationAttribute as bq, type ActivityCallerContext as c, type ActivityId as d, type ActivityItem as e, type ActivityType as f, type AddressAttribute as g, type AddressRelationAttribute as h, type Attribute as i, type AttributeWithCompositeID as j, type AutomationAttribute as k, type BaseAttribute as l, type BaseEntity as m, type BlueprintEntityId as n, type BooleanAttribute as o, type Changeset as p, type ChangesetCreator as q, type ChangesetMap as r, type ClassificationId as s, type ClassificationIdOrPattern as t, type ClassificationSlug as u, type ClassificationsUpdate as v, type ComputedAttribute as w, type ConsentAttribute as x, type CountryAttribute as y, type CurrencyAttribute as z };