@elementumai/edk 0.9.19 → 0.10.1

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 (240) hide show
  1. package/README.md +159 -7
  2. package/dist-sdk/src/catalog/factories.d.ts +33 -2
  3. package/dist-sdk/src/catalog/factories.js +40 -1
  4. package/dist-sdk/src/catalog/from-authoring.d.ts +13 -8
  5. package/dist-sdk/src/catalog/from-authoring.js +34 -9
  6. package/dist-sdk/src/catalog/index.d.ts +2 -2
  7. package/dist-sdk/src/catalog/index.js +2 -2
  8. package/dist-sdk/src/catalog/render.js +6 -6
  9. package/dist-sdk/src/catalog/token.js +11 -0
  10. package/dist-sdk/src/catalog/types.d.ts +40 -1
  11. package/dist-sdk/src/catalog/types.js +12 -0
  12. package/dist-sdk/src/core/triggers/on-demand.d.ts +40 -4
  13. package/dist-sdk/src/core/triggers/on-demand.js +17 -2
  14. package/dist-sdk/src/core/types/app.d.ts +2 -2
  15. package/dist-sdk/src/engine/build/context.d.ts +1 -1
  16. package/dist-sdk/src/engine/coverage-gaps.d.ts +86 -0
  17. package/dist-sdk/src/engine/coverage-gaps.js +156 -0
  18. package/dist-sdk/src/engine/ei/run.d.ts +169 -0
  19. package/dist-sdk/src/engine/ei/run.js +1219 -0
  20. package/dist-sdk/src/engine/logging.d.ts +17 -0
  21. package/dist-sdk/src/engine/logging.js +18 -0
  22. package/dist-sdk/src/engine/pull/catalog-ref.d.ts +16 -0
  23. package/dist-sdk/src/engine/pull/catalog-ref.js +24 -0
  24. package/dist-sdk/src/engine/pull/context.d.ts +68 -6
  25. package/dist-sdk/src/engine/pull/context.js +40 -1
  26. package/dist-sdk/src/engine/pull/procedure-refs.d.ts +8 -0
  27. package/dist-sdk/src/engine/pull/procedure-refs.js +28 -0
  28. package/dist-sdk/src/engine/pull/ref-only.d.ts +5 -0
  29. package/dist-sdk/src/engine/pull/ref-only.js +10 -7
  30. package/dist-sdk/src/engine/pull/result-output.d.ts +6 -0
  31. package/dist-sdk/src/engine/pull/result-output.js +113 -3
  32. package/dist-sdk/src/engine/tf/expr.js +1 -1
  33. package/dist-sdk/src/engine/tf/index.d.ts +2 -2
  34. package/dist-sdk/src/engine/tf/index.js +1 -1
  35. package/dist-sdk/src/engine/tf/labels.d.ts +28 -5
  36. package/dist-sdk/src/engine/tf/labels.js +54 -3
  37. package/dist-sdk/src/engine/tf/model.d.ts +22 -1
  38. package/dist-sdk/src/engine/tf/parse.js +93 -4
  39. package/dist-sdk/src/engine/tf/render.d.ts +4 -2
  40. package/dist-sdk/src/engine/tf/render.js +41 -7
  41. package/dist-sdk/src/engine/validation.d.ts +44 -0
  42. package/dist-sdk/src/engine/validation.js +95 -0
  43. package/dist-sdk/src/entities/access-policy/from-tf.js +38 -1
  44. package/dist-sdk/src/entities/access-policy/principal.d.ts +2 -0
  45. package/dist-sdk/src/entities/access-policy/to-tf.js +5 -2
  46. package/dist-sdk/src/entities/agent/build.d.ts +4 -16
  47. package/dist-sdk/src/entities/agent/build.js +40 -5
  48. package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +3 -0
  49. package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +46 -21
  50. package/dist-sdk/src/entities/agent/from-tf.js +11 -3
  51. package/dist-sdk/src/entities/agent/module.js +2 -0
  52. package/dist-sdk/src/entities/agent/to-tf.js +20 -6
  53. package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +10 -1
  54. package/dist-sdk/src/entities/agent-tool/from-tf.js +18 -6
  55. package/dist-sdk/src/entities/agent-tool/module.js +3 -0
  56. package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +2 -2
  57. package/dist-sdk/src/entities/agent-tool/to-tf.js +27 -5
  58. package/dist-sdk/src/entities/app/auto-share.d.ts +38 -0
  59. package/dist-sdk/src/entities/app/auto-share.js +49 -0
  60. package/dist-sdk/src/entities/app/build.d.ts +105 -22
  61. package/dist-sdk/src/entities/app/build.js +107 -10
  62. package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +22 -1
  63. package/dist-sdk/src/entities/app/from-tf.d.ts +1 -0
  64. package/dist-sdk/src/entities/app/from-tf.js +11 -2
  65. package/dist-sdk/src/entities/app/index.d.ts +7 -6
  66. package/dist-sdk/src/entities/app/index.js +2 -8
  67. package/dist-sdk/src/entities/app/module.js +5 -2
  68. package/dist-sdk/src/entities/app/to-tf.d.ts +6 -0
  69. package/dist-sdk/src/entities/app/to-tf.js +40 -13
  70. package/dist-sdk/src/entities/automation/build.d.ts +56 -6
  71. package/dist-sdk/src/entities/automation/build.js +230 -26
  72. package/dist-sdk/src/entities/automation/calculation-expression.d.ts +7 -7
  73. package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +41 -5
  74. package/dist-sdk/src/entities/automation/deserializer/print-automation.js +470 -58
  75. package/dist-sdk/src/entities/automation/from-tf.d.ts +37 -8
  76. package/dist-sdk/src/entities/automation/from-tf.js +791 -131
  77. package/dist-sdk/src/entities/automation/generated/task-output-contracts.d.ts +33 -0
  78. package/dist-sdk/src/entities/automation/generated/task-output-contracts.js +183 -0
  79. package/dist-sdk/src/entities/automation/index.d.ts +2 -2
  80. package/dist-sdk/src/entities/automation/index.js +1 -1
  81. package/dist-sdk/src/entities/automation/module.d.ts +3 -0
  82. package/dist-sdk/src/entities/automation/module.js +107 -15
  83. package/dist-sdk/src/entities/automation/output-field-types.d.ts +7 -0
  84. package/dist-sdk/src/entities/automation/output-field-types.js +36 -0
  85. package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +9 -0
  86. package/dist-sdk/src/entities/automation/output-key-wire-name.js +13 -0
  87. package/dist-sdk/src/entities/automation/script-code.d.ts +20 -0
  88. package/dist-sdk/src/entities/automation/script-code.js +109 -5
  89. package/dist-sdk/src/entities/automation/system-ref-name.js +4 -0
  90. package/dist-sdk/src/entities/automation/task-output-labels.d.ts +39 -0
  91. package/dist-sdk/src/entities/automation/task-output-labels.js +85 -0
  92. package/dist-sdk/src/entities/automation/tasks.d.ts +116 -22
  93. package/dist-sdk/src/entities/automation/tasks.js +86 -24
  94. package/dist-sdk/src/entities/automation/to-tf.d.ts +24 -3
  95. package/dist-sdk/src/entities/automation/to-tf.js +1082 -132
  96. package/dist-sdk/src/entities/automation/triggers.d.ts +12 -6
  97. package/dist-sdk/src/entities/automation/triggers.js +4 -0
  98. package/dist-sdk/src/entities/automation/types.d.ts +9 -0
  99. package/dist-sdk/src/entities/automation/types.js +19 -0
  100. package/dist-sdk/src/entities/automation/value-ref-tf.d.ts +1 -1
  101. package/dist-sdk/src/entities/automation/value-ref-tf.js +1 -1
  102. package/dist-sdk/src/entities/chart/from-tf.js +9 -1
  103. package/dist-sdk/src/entities/chart/to-tf.js +10 -3
  104. package/dist-sdk/src/entities/data-lookup/module.js +2 -0
  105. package/dist-sdk/src/entities/dynamic-layout/build.d.ts +24 -31
  106. package/dist-sdk/src/entities/dynamic-layout/to-tf.d.ts +1 -0
  107. package/dist-sdk/src/entities/dynamic-layout/to-tf.js +7 -5
  108. package/dist-sdk/src/entities/element/build.d.ts +28 -13
  109. package/dist-sdk/src/entities/element/build.js +5 -1
  110. package/dist-sdk/src/entities/element/from-tf.d.ts +11 -0
  111. package/dist-sdk/src/entities/element/from-tf.js +62 -1
  112. package/dist-sdk/src/entities/element/index.d.ts +5 -3
  113. package/dist-sdk/src/entities/element/index.js +1 -0
  114. package/dist-sdk/src/entities/element/module.js +9 -3
  115. package/dist-sdk/src/entities/element/to-tf.d.ts +1 -1
  116. package/dist-sdk/src/entities/element/to-tf.js +16 -16
  117. package/dist-sdk/src/entities/field/build.d.ts +17 -3
  118. package/dist-sdk/src/entities/field/build.js +3 -0
  119. package/dist-sdk/src/entities/field/calc.d.ts +7 -7
  120. package/dist-sdk/src/entities/field/from-tf.d.ts +5 -4
  121. package/dist-sdk/src/entities/field/from-tf.js +244 -49
  122. package/dist-sdk/src/entities/field/media-types.d.ts +6 -0
  123. package/dist-sdk/src/entities/field/media-types.js +30 -0
  124. package/dist-sdk/src/entities/field/module.js +2 -0
  125. package/dist-sdk/src/entities/field/options.js +6 -1
  126. package/dist-sdk/src/entities/field/to-tf.d.ts +26 -5
  127. package/dist-sdk/src/entities/field/to-tf.js +137 -15
  128. package/dist-sdk/src/entities/field/types.d.ts +2 -0
  129. package/dist-sdk/src/entities/field/types.js +27 -0
  130. package/dist-sdk/src/entities/file-reader/from-tf.js +14 -5
  131. package/dist-sdk/src/entities/file-reader/module.js +1 -0
  132. package/dist-sdk/src/entities/file-reader/types.d.ts +2 -0
  133. package/dist-sdk/src/entities/file-reader/types.js +1 -1
  134. package/dist-sdk/src/entities/portal/build.d.ts +26 -0
  135. package/dist-sdk/src/entities/portal/build.js +37 -0
  136. package/dist-sdk/src/entities/portal/from-tf.d.ts +27 -0
  137. package/dist-sdk/src/entities/portal/from-tf.js +75 -0
  138. package/dist-sdk/src/entities/portal/index.d.ts +1 -0
  139. package/dist-sdk/src/entities/portal/index.js +1 -0
  140. package/dist-sdk/src/entities/portal/module.d.ts +3 -0
  141. package/dist-sdk/src/entities/portal/module.js +28 -0
  142. package/dist-sdk/src/entities/portal/to-tf.d.ts +12 -0
  143. package/dist-sdk/src/entities/portal/to-tf.js +73 -0
  144. package/dist-sdk/src/entities/portal/types.d.ts +1 -0
  145. package/dist-sdk/src/entities/portal/types.js +1 -0
  146. package/dist-sdk/src/entities/relationship/module.js +2 -0
  147. package/dist-sdk/src/entities/relationship/pair-check.d.ts +7 -0
  148. package/dist-sdk/src/entities/relationship/pair-check.js +68 -0
  149. package/dist-sdk/src/entities/relationship/to-tf.d.ts +2 -0
  150. package/dist-sdk/src/entities/relationship/to-tf.js +12 -3
  151. package/dist-sdk/src/entities/role/from-tf.js +3 -3
  152. package/dist-sdk/src/entities/role/to-tf.d.ts +2 -0
  153. package/dist-sdk/src/entities/role/to-tf.js +12 -4
  154. package/dist-sdk/src/entities/search-table/module.js +1 -0
  155. package/dist-sdk/src/entities/search-table/to-tf.d.ts +1 -0
  156. package/dist-sdk/src/entities/search-table/to-tf.js +1 -1
  157. package/dist-sdk/src/entities/service-account/build.d.ts +15 -2
  158. package/dist-sdk/src/entities/service-account/from-tf.d.ts +2 -4
  159. package/dist-sdk/src/entities/service-account/from-tf.js +20 -8
  160. package/dist-sdk/src/entities/service-account/role-fidelity.d.ts +56 -0
  161. package/dist-sdk/src/entities/service-account/role-fidelity.js +243 -0
  162. package/dist-sdk/src/entities/service-account/to-tf.d.ts +14 -0
  163. package/dist-sdk/src/entities/service-account/to-tf.js +17 -0
  164. package/dist-sdk/src/entities/service-account/workspace-owner.d.ts +16 -0
  165. package/dist-sdk/src/entities/service-account/workspace-owner.js +22 -0
  166. package/dist-sdk/src/entities/shared/aspect-target-from-tf.d.ts +1 -1
  167. package/dist-sdk/src/entities/shared/aspect-target-from-tf.js +5 -2
  168. package/dist-sdk/src/entities/shared/filters/ast.d.ts +23 -1
  169. package/dist-sdk/src/entities/shared/filters/ast.js +2 -0
  170. package/dist-sdk/src/entities/shared/filters/index.d.ts +7 -0
  171. package/dist-sdk/src/entities/shared/filters/index.js +19 -4
  172. package/dist-sdk/src/entities/shared/filters/print.js +24 -3
  173. package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +7 -0
  174. package/dist-sdk/src/entities/shared/filters/tf-codec.js +46 -7
  175. package/dist-sdk/src/entities/shared/filters/types.d.ts +15 -2
  176. package/dist-sdk/src/entities/shared/ref.d.ts +5 -7
  177. package/dist-sdk/src/entities/shared/ref.js +5 -7
  178. package/dist-sdk/src/entities/shared/tool-field-ref.d.ts +9 -0
  179. package/dist-sdk/src/entities/shared/tool-field-ref.js +35 -2
  180. package/dist-sdk/src/entities/shared/types/field-types.d.ts +20 -5
  181. package/dist-sdk/src/entities/shared/types/field-types.js +8 -0
  182. package/dist-sdk/src/entities/skill/access-policy.js +3 -3
  183. package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +3 -0
  184. package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +14 -6
  185. package/dist-sdk/src/entities/skill/from-tf.js +70 -15
  186. package/dist-sdk/src/entities/skill/input-coverage.d.ts +7 -0
  187. package/dist-sdk/src/entities/skill/input-coverage.js +11 -0
  188. package/dist-sdk/src/entities/skill/module.js +2 -0
  189. package/dist-sdk/src/entities/skill/to-tf.js +14 -4
  190. package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +2 -0
  191. package/dist-sdk/src/entities/skill-tool/from-tf.js +49 -10
  192. package/dist-sdk/src/entities/skill-tool/module.js +3 -0
  193. package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +2 -8
  194. package/dist-sdk/src/entities/skill-tool/to-tf.js +49 -14
  195. package/dist-sdk/src/entities/table/catalog.d.ts +14 -0
  196. package/dist-sdk/src/entities/table/catalog.js +66 -0
  197. package/dist-sdk/src/entities/table/module.js +2 -1
  198. package/dist-sdk/src/entities/table/to-tf.js +2 -2
  199. package/dist-sdk/src/entities/task/build.d.ts +8 -0
  200. package/dist-sdk/src/entities/task/build.js +10 -1
  201. package/dist-sdk/src/entities/task/from-tf.d.ts +4 -2
  202. package/dist-sdk/src/entities/task/from-tf.js +7 -2
  203. package/dist-sdk/src/entities/task/module.js +2 -2
  204. package/dist-sdk/src/entities/task/to-tf.d.ts +8 -4
  205. package/dist-sdk/src/entities/task/to-tf.js +28 -1
  206. package/dist-sdk/src/entities/view/agent-view-layout-from-tf.d.ts +49 -9
  207. package/dist-sdk/src/entities/view/agent-view-layout-from-tf.js +71 -18
  208. package/dist-sdk/src/entities/view/agent-view-layout-to-tf.d.ts +19 -4
  209. package/dist-sdk/src/entities/view/agent-view-layout-to-tf.js +82 -10
  210. package/dist-sdk/src/entities/view/agent-view-layout.d.ts +53 -23
  211. package/dist-sdk/src/entities/view/agent-view-layout.js +1 -1
  212. package/dist-sdk/src/entities/view/from-tf.d.ts +3 -2
  213. package/dist-sdk/src/entities/view/from-tf.js +133 -13
  214. package/dist-sdk/src/entities/view/module.js +30 -3
  215. package/dist-sdk/src/entities/view/to-tf.d.ts +20 -8
  216. package/dist-sdk/src/entities/view/to-tf.js +86 -18
  217. package/dist-sdk/src/entities/view/types.d.ts +4 -15
  218. package/dist-sdk/src/entities/view/types.js +15 -15
  219. package/dist-sdk/src/entities/visual-flow/build.d.ts +16 -1
  220. package/dist-sdk/src/entities/visual-flow/build.js +9 -0
  221. package/dist-sdk/src/entities/visual-flow/from-tf.d.ts +14 -0
  222. package/dist-sdk/src/entities/visual-flow/from-tf.js +51 -3
  223. package/dist-sdk/src/entities/visual-flow/index.d.ts +1 -1
  224. package/dist-sdk/src/entities/visual-flow/index.js +1 -1
  225. package/dist-sdk/src/entities/visual-flow/printer.js +19 -0
  226. package/dist-sdk/src/entities/visual-flow/to-tf.js +87 -3
  227. package/dist-sdk/src/entities/widget/build.d.ts +16 -1
  228. package/dist-sdk/src/entities/widget/build.js +11 -1
  229. package/dist-sdk/src/entities/widget/from-tf.js +3 -3
  230. package/dist-sdk/src/entities/widget/to-tf.d.ts +2 -0
  231. package/dist-sdk/src/entities/widget/to-tf.js +41 -14
  232. package/dist-sdk/src/generated/ragnarok/ragnarok-spec.d.ts +148 -13
  233. package/dist-sdk/src/generated/ragnarok/ragnarok-spec.js +2 -2
  234. package/dist-sdk/src/graph/index.d.ts +12 -0
  235. package/dist-sdk/src/graph/index.js +21 -0
  236. package/dist-sdk/src/graph/modules.js +2 -0
  237. package/dist-sdk/src/graph/types.d.ts +83 -4
  238. package/dist-sdk/src/internal/sdk-package.d.ts +1 -1
  239. package/dist-sdk/src/internal/sdk-package.js +1 -0
  240. package/package.json +16 -3
@@ -5,13 +5,15 @@
5
5
  * than folding into `src/aspects/` (which still owns `app` and the
6
6
  * field/print internals genuinely shared between both aspect kinds).
7
7
  */
8
- export { element, type ElementCloudConnection, type ElementConfigured, type ElementRef, type ElementV2Options, } from "./build.js";
8
+ export { element, type ElementCloudConnection, type ElementConfigured, type ElementCustomView, type ElementRef, type ElementSystemFields, type ElementV2Options, } from "./build.js";
9
+ export { type ViewBlock, type ViewBlocksField, type ViewBlocksFilterRef, type ViewBlocksLayout, type ViewBlocksSource, } from "../view/agent-view-layout.js";
9
10
  export { type AppRecordCreateForm, type AppRecordCreateFormSection } from "../app/build.js";
10
11
  export { listViewDensity, managedViewSortAggregation, managedViewSortDirection, type ListViewDensity, type ManagedViewSort, type ManagedViewSortAggregation, type ManagedViewSortDirection, type ManagedViewSortField, type ManagedViewSortOrder, } from "../view/build.js";
11
12
  export { type AppRelationship, type AppRelationshipColumn } from "../relationship/build.js";
12
- export { type DynamicLayoutComponent, type DynamicLayoutCondition, type DynamicLayoutCssLength, type DynamicLayoutDependency, type DynamicLayoutFieldComponent, type DynamicLayoutFieldValidation, type DynamicLayoutSaveGroup, type DynamicLayoutStyle, type DynamicLayoutTypedValue, type DynamicLayoutValidationRule, type ElementDynamicLayout, dynamicLayout, } from "../dynamic-layout/build.js";
13
+ export { runAutomationParameterValue, type RunAutomationParameterValue } from "../widget/build.js";
14
+ export { type DynamicLayoutBlockCommon, type DynamicLayoutComponent, type DynamicLayoutCondition, type DynamicLayoutCssLength, type DynamicLayoutDependency, type DynamicLayoutFieldComponent, type DynamicLayoutFieldValidation, type DynamicLayoutSaveGroup, type DynamicLayoutStyle, type DynamicLayoutTypedValue, type DynamicLayoutValidationRule, type ElementDynamicLayout, dynamicLayout, } from "../dynamic-layout/build.js";
13
15
  export { dashboardChartWidget, dashboardRecordsWidget, dashboardWidgetSize, type DashboardChartWidget, type DashboardRecordsWidget, type DashboardWidget, type DashboardWidgetSize, } from "../dashboard/build.js";
14
- export { attachmentField, booleanField, calculatedField, dateField, dateTimeField, decimalField, dropdownDisplay, dropdownField, dropdownOption, dropdownValue, groupField, jsonField, multiSelectField, numberField, relationField, richTextField, textField, userField, type BaseFieldOptions, type CalculatedFieldOptions, type InferredCalculatedField, type NumericFieldFormat, type DropdownConfig, type DropdownDisplay, type DropdownFieldOptions, type DropdownOption, type DropdownParentValueRef, type DynamicDropdownConfig, type DynamicDropdownParent, type DynamicDropdownParentMapping, type MultiSelectFieldOptions, type NumericFieldOptions, type RelationFieldOptions, type QrFieldFormat, type TextFieldOptions, } from "../field/build.js";
16
+ export { attachmentField, booleanField, calculatedField, dateField, dateTimeField, decimalField, dropdownDisplay, dropdownField, dropdownOption, dropdownValue, groupField, jsonField, multiSelectField, numberField, relationField, richTextField, textField, userField, type AttachmentFieldOptions, type BaseFieldOptions, type CalculatedFieldOptions, type InferredCalculatedField, type NumericFieldFormat, type DropdownConfig, type DropdownDisplay, type DropdownFieldOptions, type DropdownOption, type DropdownParentValueRef, type DynamicDropdownConfig, type DynamicDropdownParent, type DynamicDropdownParentMapping, type MultiSelectFieldOptions, type NumericFieldOptions, type RelationFieldOptions, type QrFieldFormat, type TextFieldOptions, } from "../field/build.js";
15
17
  export { calc, dateDifUnit, dateTimeTruncPrecision, field, orderByDirection, predicateOp, weekdayMode, type ConcatExprType, type DateDifUnit, type DateTimeTruncPrecision, type Expr, type ExprType, type FieldRefExprType, type OrderByDirection, type Predicate, type PredicateOp, type StringAggOptions, type StringAggOrderBy, type WeekdayMode, } from "../field/calc.js";
16
18
  export { asc, desc, sortBy, type SortDirection, type SortOrder } from "../shared/types/common.js";
17
19
  export { groupId, userId, type AccessPolicyGroupRef, type AccessPolicyOptions, type AccessPolicyPrincipalRef, type AccessPolicyUserRef, type GroupId, type UserId } from "../access-policy/build.js";
@@ -7,6 +7,7 @@
7
7
  */
8
8
  export { element, } from "./build.js";
9
9
  export { listViewDensity, managedViewSortAggregation, managedViewSortDirection, } from "../view/build.js";
10
+ export { runAutomationParameterValue } from "../widget/build.js";
10
11
  export { dynamicLayout, } from "../dynamic-layout/build.js";
11
12
  export { dashboardChartWidget, dashboardRecordsWidget, dashboardWidgetSize, } from "../dashboard/build.js";
12
13
  export { attachmentField, booleanField, calculatedField, dateField, dateTimeField, decimalField, dropdownDisplay, dropdownField, dropdownOption, dropdownValue, groupField, jsonField, multiSelectField, numberField, relationField, richTextField, textField, userField, } from "../field/build.js";
@@ -5,8 +5,8 @@
5
5
  */
6
6
  import { NO_CATALOG, } from "../../graph/types.js";
7
7
  import { appendFieldLocals } from "../field/locals.js";
8
- import { CALENDAR_VIEW_RESOURCE_TYPE, DASHBOARD_VIEW_RESOURCE_TYPE, KANBAN_VIEW_RESOURCE_TYPE, LAYOUT_RESOURCE_TYPE, LIST_VIEW_RESOURCE_TYPE } from "../view/types.js";
9
- import { elementFromTf } from "./from-tf.js";
8
+ import { CALENDAR_VIEW_RESOURCE_TYPE, CUSTOM_VIEW_RESOURCE_TYPE, DASHBOARD_VIEW_RESOURCE_TYPE, KANBAN_VIEW_RESOURCE_TYPE, LAYOUT_RESOURCE_TYPE, LIST_VIEW_RESOURCE_TYPE } from "../view/types.js";
9
+ import { elementFromTf, referencesElementAuditFields } from "./from-tf.js";
10
10
  import { appendElementLocals } from "./locals.js";
11
11
  import { elementToTf } from "./to-tf.js";
12
12
  export const ELEMENT_RESOURCE_TYPE = "elementum_element";
@@ -23,6 +23,7 @@ function extractElementStreamRoot(stream, ctx) {
23
23
  const calendarViewBlocks = viewBlocks.filter((b) => b.type === CALENDAR_VIEW_RESOURCE_TYPE);
24
24
  const kanbanViewBlocks = viewBlocks.filter((b) => b.type === KANBAN_VIEW_RESOURCE_TYPE);
25
25
  const dashboardViewBlocks = viewBlocks.filter((b) => b.type === DASHBOARD_VIEW_RESOURCE_TYPE);
26
+ const customViewBlocks = viewBlocks.filter((b) => b.type === CUSTOM_VIEW_RESOURCE_TYPE);
26
27
  const managedViewOrderBlocks = stream.byKind.get("managed-view-order") ?? [];
27
28
  const recordCreateFormBlocks = stream.byKind.get("record-create-form") ?? [];
28
29
  const dynamicLayoutBlocks = stream.byKind.get("dynamic-layout") ?? [];
@@ -38,6 +39,7 @@ function extractElementStreamRoot(stream, ctx) {
38
39
  calendarViewBlocks,
39
40
  kanbanViewBlocks,
40
41
  dashboardViewBlocks,
42
+ customViewBlocks,
41
43
  managedViewOrderBlocks,
42
44
  recordCreateFormBlocks,
43
45
  dynamicLayoutBlocks,
@@ -46,8 +48,12 @@ function extractElementStreamRoot(stream, ctx) {
46
48
  dashboardWidgetBlocks,
47
49
  widgetBlocks,
48
50
  }, accessPolicyBlocks, roleBlocks);
51
+ // Automations are extracted separately, but their trigger outputs are the
52
+ // only audit reference some elements have.
53
+ const auditFields = element.auditFields === true ||
54
+ referencesElementAuditFields(elementBlocks[0].label ?? "", stream.allResources, new Set(element.fields.map(({ field }) => field.name.toLowerCase())));
49
55
  return {
50
- instance: element,
56
+ instance: auditFields && element.auditFields !== true ? { ...element, auditFields } : element,
51
57
  ...(cloudLinkHandle !== undefined && { cloudLinkHandle }),
52
58
  };
53
59
  }
@@ -3,7 +3,7 @@
3
3
  * field resources in ei's dialect. No status_options/stages (apps always
4
4
  * emit those; element captures do not).
5
5
  */
6
- import { type ToTfContext } from "../../engine/build/context.js";
6
+ import type { ToTfContext } from "../../engine/build/context.js";
7
7
  import { type DeployableEntity } from "../../engine/entity.js";
8
8
  import type { BuildFieldMetadata } from "../../graph/types.js";
9
9
  import { type TfBlock } from "../../engine/tf/index.js";
@@ -3,23 +3,23 @@
3
3
  * field resources in ei's dialect. No status_options/stages (apps always
4
4
  * emit those; element captures do not).
5
5
  */
6
- import { workspaceAspectKey } from "../../engine/build/context.js";
6
+ import { autoShareToTf } from "../app/auto-share.js";
7
7
  import { EntityTfError } from "../../engine/entity.js";
8
8
  import { expr, snakeSlug } from "../../engine/tf/index.js";
9
9
  import { accessPolicyToTf } from "../access-policy/to-tf.js";
10
10
  import { displayBlocksToLayoutSections } from "../app/display-blocks-to-layout.js";
11
- import { APP_RESOURCE_TYPE } from "../app/module.js";
12
11
  import { displayBlocksToRecordCreateFormSections } from "../app/display-blocks-to-record-create-form.js";
13
12
  import { dashboardsToTf } from "../dashboard/to-tf.js";
14
13
  import { dynamicLayoutsToTf } from "../dynamic-layout/to-tf.js";
15
14
  import { fieldMetadataFromEntries } from "../field/metadata.js";
16
- import { fieldToTf } from "../field/to-tf.js";
15
+ import { authoredFieldKeysFromPayload, claimFieldDisplayName, fieldToTf } from "../field/to-tf.js";
17
16
  import { CATEGORY_ORG_BAG } from "../org/category.js";
18
17
  import { categoryIdExpr, missingCategoryDiagnostic } from "../org/category-ref.js";
19
18
  import { CLOUD_LINK_ORG_BAG } from "../org/cloud-link.js";
20
19
  import { recordCreateFormToTf } from "../record-create-form/to-tf.js";
21
20
  import { relationshipsToTf } from "../relationship/to-tf.js";
22
21
  import { rolesToTf } from "../role/to-tf.js";
22
+ import { workspaceServiceAccountAppResolver } from "../service-account/workspace-owner.js";
23
23
  import { relationshipTargetsFromBag, widgetsToTf } from "../widget/to-tf.js";
24
24
  import { viewToTf } from "../view/to-tf.js";
25
25
  import { SYSTEM_FIELD_KEY_BY_TAG } from "../../core/system-fields.js";
@@ -53,6 +53,8 @@ export function elementToTf(entity, ctx) {
53
53
  // default) lets the platform's current value ride through unchanged.
54
54
  if (payload.commentsEnabled !== undefined)
55
55
  elementAttrs["comments_enabled"] = payload.commentsEnabled;
56
+ if (payload.autoShare !== undefined)
57
+ elementAttrs["auto_share"] = autoShareToTf(payload.autoShare);
56
58
  if (payload.namespace !== undefined)
57
59
  elementAttrs["namespace"] = payload.namespace;
58
60
  if (payload.handle !== undefined)
@@ -129,9 +131,11 @@ export function elementToTf(entity, ctx) {
129
131
  }
130
132
  const blocks = [];
131
133
  const fieldAddresses = new Map();
134
+ const fieldOwnership = authoredFieldKeysFromPayload(payload);
132
135
  const fieldNames = new Map();
133
136
  const fieldMetadata = fieldMetadataFromEntries(payload.fields);
134
137
  const objectId = expr.resourceAttr(ELEMENT_RESOURCE_TYPE, ctx.appTfLabel, ["id"]);
138
+ const fieldDisplayNames = new Map();
135
139
  for (const fieldEntry of payload.fields ?? []) {
136
140
  const typeKey = Object.keys(fieldEntry)[0];
137
141
  if (typeKey === undefined)
@@ -179,9 +183,11 @@ export function elementToTf(entity, ctx) {
179
183
  diagnostics: ctx.diagnostics,
180
184
  orgRefs: ctx.orgRefs,
181
185
  workspaceAspects: ctx.workspaceAspects,
186
+ fieldOwnership,
182
187
  });
183
188
  if (field === undefined)
184
189
  continue;
190
+ claimFieldDisplayName(fieldDisplayNames, field);
185
191
  blocks.push(field.block);
186
192
  fieldAddresses.set(field.bagKey, field.address);
187
193
  }
@@ -199,6 +205,7 @@ export function elementToTf(entity, ctx) {
199
205
  blocks.push(...widgetsToTf(payload.widgets, {
200
206
  ownerRefName: ctx.appRefName,
201
207
  ownerTfLabel: ctx.appTfLabel,
208
+ ownerHandle: payload.handle,
202
209
  ownerType: ELEMENT_RESOURCE_TYPE,
203
210
  scope: "element",
204
211
  objectId,
@@ -223,14 +230,14 @@ export function elementToTf(entity, ctx) {
223
230
  ownerRefName: ctx.appRefName,
224
231
  ownerTfLabel: ctx.appTfLabel,
225
232
  scope: "element",
226
- aspectName: payload.name ?? "",
227
233
  objectId,
228
234
  dashboardKeys: new Set(Object.keys(payload.dashboards ?? {})),
229
235
  orgRefs: ctx.orgRefs,
236
+ workspaceAspects: ctx.workspaceAspects,
230
237
  diagnostics: ctx.diagnostics,
231
238
  fieldAddresses,
232
239
  widgetKeys: new Set(Object.keys(payload.widgets ?? {})),
233
- });
240
+ }, payload.customViews);
234
241
  blocks.push(...viewBlocks);
235
242
  const recordCreateFormForToTf = payload.recordCreateForm ??
236
243
  (mappedRecordCreateFormSections !== undefined && mappedRecordCreateFormSections.length > 0
@@ -249,6 +256,7 @@ export function elementToTf(entity, ctx) {
249
256
  blocks.push(...dynamicLayoutsToTf(payload.dynamicLayouts, {
250
257
  ownerRefName: ctx.appRefName,
251
258
  ownerTfLabel: ctx.appTfLabel,
259
+ ownerHandle: payload.handle,
252
260
  scope: "element",
253
261
  objectId,
254
262
  diagnostics: ctx.diagnostics,
@@ -266,6 +274,7 @@ export function elementToTf(entity, ctx) {
266
274
  orgRefs: ctx.orgRefs,
267
275
  workspaceAspects: ctx.workspaceAspects,
268
276
  diagnostics: ctx.diagnostics,
277
+ fieldOwnership: fieldAddresses,
269
278
  }));
270
279
  // Authored entries only. Creating an element also has the platform mint a
271
280
  // creator policy (userIds = [you]) that is NOT in this payload — pull
@@ -282,17 +291,7 @@ export function elementToTf(entity, ctx) {
282
291
  // An element has no service accounts of its own. Hand the sibling app's
283
292
  // authored bag to the shared resolver so a managed account becomes a
284
293
  // direct resource ref and Terraform sequences same-apply creation.
285
- resolveServiceAccountApp: (appRefName) => {
286
- const app = ctx.workspaceAspects?.get(workspaceAspectKey("app", appRefName));
287
- if (app === undefined)
288
- return undefined;
289
- const serviceAccounts = app.streamRootEntity?.payload?.serviceAccounts;
290
- return {
291
- appTfLabel: app.tfLabel,
292
- appId: expr.resourceAttr(APP_RESOURCE_TYPE, app.tfLabel, ["id"]),
293
- ...(serviceAccounts !== undefined ? { serviceAccounts } : {}),
294
- };
295
- },
294
+ resolveServiceAccountApp: workspaceServiceAccountAppResolver(ctx.workspaceAspects),
296
295
  });
297
296
  blocks.push(block);
298
297
  }
@@ -303,6 +302,7 @@ export function elementToTf(entity, ctx) {
303
302
  objectId,
304
303
  orgRefs: ctx.orgRefs,
305
304
  diagnostics: ctx.diagnostics,
305
+ resolveServiceAccountApp: workspaceServiceAccountAppResolver(ctx.workspaceAspects),
306
306
  }));
307
307
  blocks.unshift({
308
308
  kind: "resource",
@@ -18,7 +18,7 @@
18
18
  * AppField is accepted.
19
19
  */
20
20
  import type { AppField, AppPicklistConfig, PicklistOption } from "../app/build.js";
21
- import type { AppOrElementOrTaskRef, AppOrElementRef, FieldRef } from "../../catalog/index.js";
21
+ import type { AppOrElementOrTaskRef, FieldRef } from "../../catalog/index.js";
22
22
  import type { AppFieldOfExprType, CalculationInclude, Expr, ExprContext, ExprType, ExprTypeOf, FieldRefOfExprType } from "./calc/types.js";
23
23
  import type { UnsafePlatformId } from "../../core/platform-id.js";
24
24
  import type { AspectFieldQrFormat, AspectNumericFieldFormat } from "../../../elementum-entity-client/clients/aspects/models/format.js";
@@ -99,7 +99,8 @@ export interface StaticDropdownConfig {
99
99
  readonly parent?: FieldRef<string, string, "PICKLIST" | "MULTI_PICKLIST">;
100
100
  }
101
101
  export interface DynamicDropdownConfig {
102
- readonly source: AppOrElementRef | UnsafePlatformId;
102
+ /** A task ref is accepted for a task field sourcing its own task (edk#1464). */
103
+ readonly source: AppOrElementOrTaskRef | UnsafePlatformId;
103
104
  readonly label: FieldRef | UnsafePlatformId;
104
105
  readonly parent?: DynamicDropdownParent;
105
106
  /**
@@ -140,6 +141,19 @@ export interface TextFieldOptions extends BaseFieldOptions {
140
141
  /** @deprecated Prefer `calculatedField({ name, expression })`. */
141
142
  readonly expression?: ScalarExpression<"text" | "uuid">;
142
143
  }
144
+ /**
145
+ * Options for `attachmentField`. Always set `mediaTypes` on a new attachment
146
+ * field. Each entry is a MIME type (`application/pdf`, `image/*`,
147
+ * `image/png`); `*` is allowed only as the subtype.
148
+ *
149
+ * Omitting `mediaTypes` on a newly created field leaves the live value null,
150
+ * and the platform rejects every upload. An existing field keeps its live
151
+ * value when `mediaTypes` is omitted (provider UseStateForNullSet; EDK
152
+ * neither sets nor clears it).
153
+ */
154
+ export interface AttachmentFieldOptions extends BaseFieldOptions {
155
+ readonly mediaTypes?: readonly string[];
156
+ }
143
157
  /**
144
158
  * Options for `relationField` — a dynamic dropdown sourced from another
145
159
  * App/Element/Task's records (`elementum_relation_field`), distinct from a
@@ -187,7 +201,7 @@ export declare function userField(opts: BaseFieldOptions & WithExpression<"user"
187
201
  export declare function groupField(opts: BaseFieldOptions & WithExpression<"group">): AppField & {
188
202
  readonly type: "GROUP";
189
203
  };
190
- export declare function attachmentField(opts: BaseFieldOptions & WithExpression<"attachment">): AppField & {
204
+ export declare function attachmentField(opts: AttachmentFieldOptions & WithExpression<"attachment">): AppField & {
191
205
  readonly type: "ATTACHMENT";
192
206
  };
193
207
  export declare function jsonField(opts: BaseFieldOptions & WithExpression<"json">): AppField & {
@@ -18,6 +18,7 @@
18
18
  * AppField is accepted.
19
19
  */
20
20
  import { assertCalculatedFieldRoot, coerce } from "./calc/runtime.js";
21
+ import { assertAttachmentMediaTypes } from "./media-types.js";
21
22
  /** Product-visible rendering modes for dynamically sourced values. */
22
23
  export const dropdownDisplay = {
23
24
  dropdown: "DROPDOWN",
@@ -71,6 +72,8 @@ export function groupField(opts) {
71
72
  return field("GROUP", opts);
72
73
  }
73
74
  export function attachmentField(opts) {
75
+ if (opts.mediaTypes !== undefined)
76
+ assertAttachmentMediaTypes(opts.name, opts.mediaTypes);
74
77
  return field("ATTACHMENT", opts);
75
78
  }
76
79
  export function jsonField(opts) {
@@ -31,33 +31,33 @@ export declare const calc: {
31
31
  dividedBy: <const A extends import("./calc/types.js").NumericLike, const B extends import("./calc/types.js").NumericLike>(a: A, b: B) => import("./calc/types.js").ComposedExpr<"decimal", [A, B]>;
32
32
  gt: {
33
33
  <const A extends import("./calc/types.js").NumericLike, const B extends import("./calc/types.js").NumericLike>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
34
- <T extends "date" | "datetime" | "handle" | "text" | "html", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
34
+ <T extends "text" | "date" | "datetime" | "handle" | "html", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
35
35
  };
36
36
  lt: {
37
37
  <const A extends import("./calc/types.js").NumericLike, const B extends import("./calc/types.js").NumericLike>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
38
- <T extends "date" | "datetime" | "handle" | "text" | "html", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
38
+ <T extends "text" | "date" | "datetime" | "handle" | "html", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
39
39
  };
40
40
  gte: {
41
41
  <const A extends import("./calc/types.js").NumericLike, const B extends import("./calc/types.js").NumericLike>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
42
- <T extends "date" | "datetime" | "handle" | "text" | "html", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
42
+ <T extends "text" | "date" | "datetime" | "handle" | "html", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
43
43
  };
44
44
  lte: {
45
45
  <const A extends import("./calc/types.js").NumericLike, const B extends import("./calc/types.js").NumericLike>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
46
- <T extends "date" | "datetime" | "handle" | "text" | "html", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
46
+ <T extends "text" | "date" | "datetime" | "handle" | "html", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
47
47
  };
48
48
  eq: {
49
49
  <const A extends import("./calc/types.js").NumericLike, const B extends import("./calc/types.js").NumericLike>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
50
- <T extends "group" | "bool" | "date" | "datetime" | "handle" | "json" | "text" | "user" | "html" | "attachment" | "picklist" | "multiPicklist" | "uuid", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
50
+ <T extends "text" | "group" | "bool" | "date" | "datetime" | "handle" | "json" | "user" | "html" | "attachment" | "picklist" | "multiPicklist" | "uuid", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
51
51
  };
52
52
  ne: {
53
53
  <const A extends import("./calc/types.js").NumericLike, const B extends import("./calc/types.js").NumericLike>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
54
- <T extends "group" | "bool" | "date" | "datetime" | "handle" | "json" | "text" | "user" | "html" | "attachment" | "picklist" | "multiPicklist" | "uuid", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
54
+ <T extends "text" | "group" | "bool" | "date" | "datetime" | "handle" | "json" | "user" | "html" | "attachment" | "picklist" | "multiPicklist" | "uuid", const A extends import("./calc/types.js").ExprLike<T>, const B extends import("./calc/types.js").ExprLike<NoInfer<T>>>(a: A, b: B): import("./calc/types.js").ComposedExpr<"bool", [A, B]>;
55
55
  };
56
56
  and: <const A extends import("./calc/types.js").BoolLike, const B extends import("./calc/types.js").BoolLike, const Rest extends readonly import("./calc/types.js").BoolLike[]>(a: A, b: B, ...rest: Rest) => import("./calc/types.js").ComposedExpr<"bool", [A, B, ...Rest]>;
57
57
  or: <const A extends import("./calc/types.js").BoolLike, const B extends import("./calc/types.js").BoolLike, const Rest extends readonly import("./calc/types.js").BoolLike[]>(a: A, b: B, ...rest: Rest) => import("./calc/types.js").ComposedExpr<"bool", [A, B, ...Rest]>;
58
58
  if: {
59
59
  <const Condition extends import("./calc/types.js").BoolLike, const Then extends import("./calc/types.js").NumericLike, const Else extends import("./calc/types.js").NumericLike>(cond: Condition, thenArm: Then, elseArm: Else): import("./calc/types.js").ComposedExpr<import("./calc/types.js").NumericPromotion<Then, Else>, [Condition, Then, Else]>;
60
- <T extends "group" | "bool" | "date" | "datetime" | "handle" | "json" | "text" | "user" | "html" | "attachment" | "picklist" | "multiPicklist" | "uuid", const Condition extends import("./calc/types.js").BoolLike, const Then extends import("./calc/types.js").ExprLike<T>, const Else extends import("./calc/types.js").ExprLike<NoInfer<T>>>(cond: Condition, thenArm: Then, elseArm: Else): import("./calc/types.js").ComposedExpr<T, [Condition, Then, Else]>;
60
+ <T extends "text" | "group" | "bool" | "date" | "datetime" | "handle" | "json" | "user" | "html" | "attachment" | "picklist" | "multiPicklist" | "uuid", const Condition extends import("./calc/types.js").BoolLike, const Then extends import("./calc/types.js").ExprLike<T>, const Else extends import("./calc/types.js").ExprLike<NoInfer<T>>>(cond: Condition, thenArm: Then, elseArm: Else): import("./calc/types.js").ComposedExpr<T, [Condition, Then, Else]>;
61
61
  };
62
62
  ifs: <T extends ExprType, const Rest extends readonly unknown[]>(condition: import("./calc/types.js").BoolLike, value: import("./calc/types.js").ExprLike<T>, ...rest: Rest & (Rest extends readonly [] ? readonly [] : Rest extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, ...Rest_1 extends readonly [] ? readonly [] : Rest_1 extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, ...Rest_1 extends readonly [] ? readonly [] : Rest_1 extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, ...Rest_1 extends readonly [] ? readonly [] : Rest_1 extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, ...Rest_1 extends readonly [] ? readonly [] : Rest_1 extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, ...Rest_1 extends readonly [] ? readonly [] : Rest_1 extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, ...Rest_1 extends readonly [] ? readonly [] : Rest_1 extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, ...Rest_1 extends readonly [] ? readonly [] : Rest_1 extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, ...Rest_1 extends readonly [] ? readonly [] : Rest_1 extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, ...Rest_1 extends readonly [] ? readonly [] : Rest_1 extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, ...Rest_1 extends readonly [] ? readonly [] : Rest_1 extends readonly [infer Condition, infer Value, ...infer Rest_1] ? readonly [Condition & import("./calc/types.js").BoolLike, Value & import("./calc/types.js").ExprLike<NoInfer<T>>, .../*elided*/ any] : never] : never] : never] : never] : never] : never] : never] : never] : never] : never] : never)) => import("./calc/types.js").ComposedExpr<T, [typeof condition, typeof value, ...Rest]>;
63
63
  isBlank: <T extends ExprType, const Value extends import("./calc/types.js").ExprLike<T>>(value: Value) => import("./calc/types.js").ComposedExpr<"bool", [Value]>;
@@ -6,7 +6,7 @@
6
6
  * import blocks and stay data-side.
7
7
  */
8
8
  import { type FromTfContext } from "../../engine/pull/context.js";
9
- import { type ChildResourceScope, type TfBlock, type TfValue } from "../../engine/tf/index.js";
9
+ import { type FieldOwnerScope, type TfBlock, type TfValue } from "../../engine/tf/index.js";
10
10
  import type { NormalizedField } from "../app/deserializer/normalize.js";
11
11
  export interface FieldOwner {
12
12
  /** The owner's resource type ("elementum_app") — what `object_id` must reference. */
@@ -14,7 +14,7 @@ export interface FieldOwner {
14
14
  /** The owner's tfLabel (namespace). */
15
15
  readonly label: string;
16
16
  /** Scope for stripping child label prefixes (defaults to app). */
17
- readonly scope?: ChildResourceScope;
17
+ readonly scope?: FieldOwnerScope;
18
18
  /** The owner's catalog refName — the `appHandle` of same-owner field RefExprs. */
19
19
  readonly refName?: string;
20
20
  }
@@ -30,13 +30,13 @@ export declare function fieldFromTf(block: TfBlock, owner: FieldOwner, ctx: From
30
30
  * fields, view field_ids/columns). Undefined for any other shape or an
31
31
  * unknown resource type.
32
32
  */
33
- export declare function fieldKeyFromTfRef(v: TfValue, ownerTfLabel?: string, scope?: ChildResourceScope): string | undefined;
33
+ export declare function fieldKeyFromTfRef(v: TfValue, ownerTfLabel?: string, scope?: FieldOwnerScope): string | undefined;
34
34
  /**
35
35
  * Resolve either a normal Terraform field reference or a raw platform field
36
36
  * ID recovered from post-adoption state. The owner check prevents a UUID from
37
37
  * one app or element from becoming a same-owner field token accidentally.
38
38
  */
39
- export declare function fieldKeyFromTfValue(v: TfValue, ownerRefName: string, ownerTfLabel: string, scope: ChildResourceScope, ctx: FromTfContext): string | undefined;
39
+ export declare function fieldKeyFromTfValue(v: TfValue, ownerRefName: string, ownerTfLabel: string, scope: FieldOwnerScope, ctx: FromTfContext): string | undefined;
40
40
  export interface DecodedForeignDataField {
41
41
  readonly key: string;
42
42
  readonly name: string;
@@ -60,4 +60,5 @@ export declare function fieldKeyFromForeignDataLabel(dataLabel: string, target:
60
60
  readonly name?: string;
61
61
  readonly namespace?: string;
62
62
  readonly kind?: string;
63
+ readonly ownerDataLabel?: string;
63
64
  }): string | undefined;