@elementumai/edk 0.11.0 → 0.13.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.
- package/README.md +40 -6
- package/dist-sdk/src/catalog/factories.d.ts +7 -1
- package/dist-sdk/src/catalog/factories.js +2 -0
- package/dist-sdk/src/catalog/index.d.ts +2 -2
- package/dist-sdk/src/catalog/index.js +1 -1
- package/dist-sdk/src/catalog/org.js +79 -34
- package/dist-sdk/src/catalog/token.js +5 -0
- package/dist-sdk/src/catalog/types.d.ts +7 -1
- package/dist-sdk/src/catalog/types.js +3 -0
- package/dist-sdk/src/core/system-fields.d.ts +1 -1
- package/dist-sdk/src/core/system-fields.js +1 -1
- package/dist-sdk/src/core/triggers/on-demand.d.ts +2 -0
- package/dist-sdk/src/core/triggers/on-demand.js +3 -0
- package/dist-sdk/src/core/types/app.d.ts +6 -0
- package/dist-sdk/src/engine/build/context.d.ts +3 -0
- package/dist-sdk/src/engine/coverage-gaps.d.ts +5 -0
- package/dist-sdk/src/engine/coverage-gaps.js +9 -0
- package/dist-sdk/src/engine/ei/run.d.ts +20 -1
- package/dist-sdk/src/engine/ei/run.js +102 -14
- package/dist-sdk/src/engine/pull/authored-address.js +42 -6
- package/dist-sdk/src/engine/pull/authored-root.d.ts +88 -0
- package/dist-sdk/src/engine/pull/authored-root.js +306 -0
- package/dist-sdk/src/engine/pull/context.d.ts +10 -0
- package/dist-sdk/src/engine/pull/field-refs-registry.d.ts +114 -0
- package/dist-sdk/src/engine/pull/field-refs-registry.js +501 -0
- package/dist-sdk/src/engine/pull/org.d.ts +1 -0
- package/dist-sdk/src/engine/pull/org.js +2 -0
- package/dist-sdk/src/engine/pull/partition.d.ts +8 -0
- package/dist-sdk/src/engine/pull/partition.js +43 -0
- package/dist-sdk/src/engine/pull/pulled-roots.d.ts +89 -0
- package/dist-sdk/src/engine/pull/pulled-roots.js +203 -0
- package/dist-sdk/src/engine/pull/ref-only.d.ts +22 -0
- package/dist-sdk/src/engine/pull/ref-only.js +59 -1
- package/dist-sdk/src/engine/pull/source-resources.d.ts +39 -0
- package/dist-sdk/src/engine/pull/source-resources.js +110 -0
- package/dist-sdk/src/engine/pull/stream-root.d.ts +148 -0
- package/dist-sdk/src/engine/pull/stream-root.js +563 -0
- package/dist-sdk/src/engine/workspace/reserved-catalog-keys.d.ts +47 -0
- package/dist-sdk/src/engine/workspace/reserved-catalog-keys.js +115 -0
- package/dist-sdk/src/entities/access-policy/build.d.ts +2 -1
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +9 -1
- package/dist-sdk/src/entities/access-policy/from-tf.js +25 -4
- package/dist-sdk/src/entities/access-policy/module.js +5 -0
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +19 -0
- package/dist-sdk/src/entities/access-policy/to-tf.js +65 -8
- package/dist-sdk/src/entities/agent/build.d.ts +52 -1
- package/dist-sdk/src/entities/agent/build.js +34 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +68 -0
- package/dist-sdk/src/entities/agent/from-tf.d.ts +34 -1
- package/dist-sdk/src/entities/agent/from-tf.js +262 -2
- package/dist-sdk/src/entities/agent/index.d.ts +1 -1
- package/dist-sdk/src/entities/agent/to-tf.d.ts +8 -10
- package/dist-sdk/src/entities/agent/to-tf.js +158 -14
- package/dist-sdk/src/entities/agent-tool/from-tf.js +6 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +2 -2
- package/dist-sdk/src/entities/agent-tool/to-tf.js +2 -2
- package/dist-sdk/src/entities/app/build.d.ts +34 -14
- package/dist-sdk/src/entities/app/build.js +93 -16
- package/dist-sdk/src/entities/app/from-tf.js +25 -11
- package/dist-sdk/src/entities/app/index.d.ts +1 -0
- package/dist-sdk/src/entities/app/index.js +1 -0
- package/dist-sdk/src/entities/app/module.js +1 -0
- package/dist-sdk/src/entities/app/stage-keys.d.ts +20 -5
- package/dist-sdk/src/entities/app/stage-keys.js +43 -9
- package/dist-sdk/src/entities/app/to-tf.js +2 -0
- package/dist-sdk/src/entities/approval-chain/build.d.ts +46 -11
- package/dist-sdk/src/entities/approval-chain/build.js +120 -8
- package/dist-sdk/src/entities/approval-chain/from-tf.d.ts +24 -2
- package/dist-sdk/src/entities/approval-chain/from-tf.js +148 -6
- package/dist-sdk/src/entities/approval-chain/index.d.ts +4 -1
- package/dist-sdk/src/entities/approval-chain/index.js +4 -1
- package/dist-sdk/src/entities/approval-chain/module.js +23 -5
- package/dist-sdk/src/entities/approval-chain/printer.d.ts +1 -1
- package/dist-sdk/src/entities/approval-chain/printer.js +91 -5
- package/dist-sdk/src/entities/approval-chain/steps-tf.d.ts +77 -0
- package/dist-sdk/src/entities/approval-chain/steps-tf.js +255 -0
- package/dist-sdk/src/entities/approval-chain/steps.d.ts +71 -0
- package/dist-sdk/src/entities/approval-chain/steps.js +83 -0
- package/dist-sdk/src/entities/approval-chain/to-tf.d.ts +16 -6
- package/dist-sdk/src/entities/approval-chain/to-tf.js +37 -4
- package/dist-sdk/src/entities/automation/build.d.ts +50 -24
- package/dist-sdk/src/entities/automation/build.js +86 -33
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +52 -8
- package/dist-sdk/src/entities/automation/from-tf.d.ts +38 -6
- package/dist-sdk/src/entities/automation/from-tf.js +855 -157
- package/dist-sdk/src/entities/automation/index.d.ts +2 -1
- package/dist-sdk/src/entities/automation/index.js +1 -0
- package/dist-sdk/src/entities/automation/module.d.ts +4 -3
- package/dist-sdk/src/entities/automation/module.js +33 -12
- package/dist-sdk/src/entities/automation/refs-read.d.ts +19 -0
- package/dist-sdk/src/entities/automation/refs-read.js +48 -0
- package/dist-sdk/src/entities/automation/run-target.d.ts +2 -0
- package/dist-sdk/src/entities/automation/run-target.js +5 -0
- package/dist-sdk/src/entities/automation/script-code.d.ts +2 -1
- package/dist-sdk/src/entities/automation/script-code.js +82 -1
- package/dist-sdk/src/entities/automation/script-lint.d.ts +13 -0
- package/dist-sdk/src/entities/automation/script-lint.js +418 -0
- package/dist-sdk/src/entities/automation/slack-message-refs.d.ts +9 -0
- package/dist-sdk/src/entities/automation/slack-message-refs.js +75 -0
- package/dist-sdk/src/entities/automation/task-output-labels.d.ts +12 -1
- package/dist-sdk/src/entities/automation/task-output-labels.js +32 -1
- package/dist-sdk/src/entities/automation/tasks.d.ts +76 -18
- package/dist-sdk/src/entities/automation/tasks.js +52 -15
- package/dist-sdk/src/entities/automation/to-tf.d.ts +3 -0
- package/dist-sdk/src/entities/automation/to-tf.js +585 -97
- package/dist-sdk/src/entities/automation/triggers.d.ts +48 -23
- package/dist-sdk/src/entities/automation/triggers.js +27 -12
- package/dist-sdk/src/entities/automation/unsafe-script-output.d.ts +50 -0
- package/dist-sdk/src/entities/automation/unsafe-script-output.js +92 -0
- package/dist-sdk/src/entities/chart/build.d.ts +18 -2
- package/dist-sdk/src/entities/chart/from-tf.d.ts +2 -2
- package/dist-sdk/src/entities/chart/from-tf.js +28 -1
- package/dist-sdk/src/entities/chart/index.d.ts +1 -1
- package/dist-sdk/src/entities/chart/printer.js +5 -2
- package/dist-sdk/src/entities/chart/to-tf.js +38 -3
- package/dist-sdk/src/entities/dynamic-layout/build.d.ts +3 -0
- package/dist-sdk/src/entities/dynamic-layout/condition-keys.d.ts +48 -0
- package/dist-sdk/src/entities/dynamic-layout/condition-keys.js +261 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.js +45 -6
- package/dist-sdk/src/entities/dynamic-layout/module.js +2 -1
- package/dist-sdk/src/entities/dynamic-layout/to-tf.js +46 -12
- package/dist-sdk/src/entities/element/audit-field-guard.d.ts +9 -0
- package/dist-sdk/src/entities/element/audit-field-guard.js +88 -0
- package/dist-sdk/src/entities/element/build.js +2 -1
- package/dist-sdk/src/entities/element/from-tf.js +15 -2
- package/dist-sdk/src/entities/element/module.js +3 -0
- package/dist-sdk/src/entities/element/system-fields.d.ts +13 -0
- package/dist-sdk/src/entities/element/system-fields.js +23 -0
- package/dist-sdk/src/entities/element/to-tf.js +2 -0
- package/dist-sdk/src/entities/field/build.d.ts +9 -0
- package/dist-sdk/src/entities/field/from-tf.d.ts +29 -1
- package/dist-sdk/src/entities/field/from-tf.js +99 -6
- package/dist-sdk/src/entities/field/module.js +12 -2
- package/dist-sdk/src/entities/field/to-tf.d.ts +13 -3
- package/dist-sdk/src/entities/field/to-tf.js +90 -46
- package/dist-sdk/src/entities/org/category.js +1 -0
- package/dist-sdk/src/entities/org/index.d.ts +1 -0
- package/dist-sdk/src/entities/org/index.js +1 -0
- package/dist-sdk/src/entities/org/role.js +5 -0
- package/dist-sdk/src/entities/org/voice-auth.d.ts +5 -0
- package/dist-sdk/src/entities/org/voice-auth.js +33 -0
- package/dist-sdk/src/entities/organization/build.d.ts +3 -0
- package/dist-sdk/src/entities/organization/build.js +2 -0
- package/dist-sdk/src/entities/organization/index.d.ts +1 -0
- package/dist-sdk/src/entities/organization/index.js +1 -0
- package/dist-sdk/src/entities/organization/to-tf.d.ts +2 -0
- package/dist-sdk/src/entities/organization/to-tf.js +59 -1
- package/dist-sdk/src/entities/organization/voice-auth.d.ts +60 -0
- package/dist-sdk/src/entities/organization/voice-auth.js +60 -0
- package/dist-sdk/src/entities/phone-service/build.d.ts +9 -1
- package/dist-sdk/src/entities/phone-service/build.js +1 -0
- package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.js +3 -0
- package/dist-sdk/src/entities/phone-service/from-tf.d.ts +1 -0
- package/dist-sdk/src/entities/phone-service/from-tf.js +8 -1
- package/dist-sdk/src/entities/phone-service/to-tf.js +16 -0
- package/dist-sdk/src/entities/record-create-form/from-tf.js +2 -2
- package/dist-sdk/src/entities/relationship/from-tf.js +7 -2
- package/dist-sdk/src/entities/relationship/module.js +2 -2
- package/dist-sdk/src/entities/relationship/pair-check.d.ts +6 -2
- package/dist-sdk/src/entities/relationship/pair-check.js +105 -18
- package/dist-sdk/src/entities/relationship/to-tf.js +5 -2
- package/dist-sdk/src/entities/role/permission-levels.d.ts +7 -0
- package/dist-sdk/src/entities/role/permission-levels.js +78 -0
- package/dist-sdk/src/entities/role/to-tf.js +32 -2
- package/dist-sdk/src/entities/service-account/module.d.ts +2 -1
- package/dist-sdk/src/entities/service-account/module.js +9 -1
- package/dist-sdk/src/entities/service-account/resource-type.d.ts +2 -0
- package/dist-sdk/src/entities/service-account/resource-type.js +2 -0
- package/dist-sdk/src/entities/service-account/role-fidelity.d.ts +5 -5
- package/dist-sdk/src/entities/service-account/role-fidelity.js +21 -13
- package/dist-sdk/src/entities/service-account/role-membership-check.d.ts +20 -0
- package/dist-sdk/src/entities/service-account/role-membership-check.js +80 -0
- package/dist-sdk/src/entities/shared/aspect-target-from-tf.d.ts +15 -0
- package/dist-sdk/src/entities/shared/aspect-target-from-tf.js +36 -0
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +4 -0
- package/dist-sdk/src/entities/shared/filters/index.d.ts +85 -14
- package/dist-sdk/src/entities/shared/filters/index.js +18 -6
- package/dist-sdk/src/entities/shared/filters/option-lookups.d.ts +57 -0
- package/dist-sdk/src/entities/shared/filters/option-lookups.js +108 -0
- package/dist-sdk/src/entities/shared/filters/print.js +9 -5
- package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +12 -7
- package/dist-sdk/src/entities/shared/filters/tf-codec.js +9 -5
- package/dist-sdk/src/entities/shared/raw-option-id.d.ts +30 -0
- package/dist-sdk/src/entities/shared/raw-option-id.js +41 -0
- package/dist-sdk/src/entities/shared/tool-field-ref.js +6 -2
- package/dist-sdk/src/entities/shared/types/field-types.d.ts +6 -3
- package/dist-sdk/src/entities/shared/types/field-types.js +3 -1
- package/dist-sdk/src/entities/skill/input-coverage.js +5 -2
- package/dist-sdk/src/entities/skill/module.js +2 -0
- package/dist-sdk/src/entities/sla/build.d.ts +96 -0
- package/dist-sdk/src/entities/sla/build.js +124 -0
- package/dist-sdk/src/entities/sla/from-tf.d.ts +40 -0
- package/dist-sdk/src/entities/sla/from-tf.js +164 -0
- package/dist-sdk/src/entities/sla/index.d.ts +1 -0
- package/dist-sdk/src/entities/sla/index.js +1 -0
- package/dist-sdk/src/entities/sla/module.d.ts +4 -0
- package/dist-sdk/src/entities/sla/module.js +73 -0
- package/dist-sdk/src/entities/sla/printer.d.ts +2 -0
- package/dist-sdk/src/entities/sla/printer.js +84 -0
- package/dist-sdk/src/entities/sla/to-tf.d.ts +12 -0
- package/dist-sdk/src/entities/sla/to-tf.js +81 -0
- package/dist-sdk/src/entities/table/build.d.ts +7 -2
- package/dist-sdk/src/entities/table/build.js +22 -1
- package/dist-sdk/src/entities/table/deserializer/normalize.d.ts +4 -1
- package/dist-sdk/src/entities/table/from-tf.js +89 -14
- package/dist-sdk/src/entities/table/index.d.ts +1 -1
- package/dist-sdk/src/entities/table/to-tf.js +41 -2
- package/dist-sdk/src/entities/task/from-tf.js +2 -1
- package/dist-sdk/src/entities/task/to-tf.js +1 -0
- package/dist-sdk/src/entities/view/from-tf.d.ts +8 -4
- package/dist-sdk/src/entities/view/from-tf.js +10 -9
- package/dist-sdk/src/entities/view/module.js +5 -0
- package/dist-sdk/src/entities/widget/from-tf.js +15 -4
- package/dist-sdk/src/generated/ragnarok/ragnarok-spec.d.ts +51 -4
- package/dist-sdk/src/generated/ragnarok/ragnarok-spec.js +2 -2
- package/dist-sdk/src/graph/index.d.ts +20 -2
- package/dist-sdk/src/graph/index.js +19 -0
- package/dist-sdk/src/graph/modules.js +11 -1
- package/dist-sdk/src/graph/resource-types.d.ts +47 -0
- package/dist-sdk/src/graph/resource-types.js +62 -0
- package/dist-sdk/src/graph/types.d.ts +116 -6
- package/package.json +6 -3
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { DeployableEntity } from "../engine/entity.js";
|
|
10
10
|
import type { FromTfContext } from "../engine/pull/context.js";
|
|
11
|
+
import type { OptionIdIndex } from "../engine/pull/field-refs-registry.js";
|
|
12
|
+
import type { PulledRootStatus } from "../engine/pull/pulled-roots.js";
|
|
11
13
|
import type { ChildResourceScope, TfBlock, TfValue } from "../engine/tf/index.js";
|
|
12
14
|
import type { ValidationFailure } from "../engine/validation.js";
|
|
13
|
-
export type KindId = "org" | "app" | "element" | "field" | "access-policy" | "agent" | "agent-evaluation" | "chart" | "agent-tool" | "agent-a2a-skill" | "automation" | "approval-chain" | "file-reader" | "visual-flow" | "skill" | "skill-tool" | "view" | "managed-view-order" | "managed-field-order" | "record-create-form" | "dynamic-layout" | "dashboard" | "dashboard-widget" | "datamine" | "automation-value-references" | "organization" | "permission-template" | "service-account" | "stored-function" | "vault-entry" | "task" | "portal" | "widget" | "relationship" | "search-table" | "table" | "cloud-link" | "email-alias" | "category" | "connector" | "ai-provider-anthropic" | "ai-provider-bedrock" | "ai-provider-custom" | "ai-provider-deepgram" | "ai-provider-elevenlab" | "ai-provider-gemini" | "ai-provider-openai" | "ai-provider-snowflake" | "ai-provider-xai" | "ai-provider-managed" | "group" | "phone-provider" | "phone-service" | "role" | "user";
|
|
15
|
+
export type KindId = "org" | "app" | "element" | "field" | "access-policy" | "agent" | "agent-evaluation" | "sla" | "chart" | "agent-tool" | "agent-a2a-skill" | "automation" | "approval-chain" | "file-reader" | "visual-flow" | "skill" | "skill-tool" | "view" | "managed-view-order" | "managed-field-order" | "record-create-form" | "dynamic-layout" | "dashboard" | "dashboard-widget" | "datamine" | "automation-value-references" | "organization" | "permission-template" | "service-account" | "stored-function" | "vault-entry" | "task" | "portal" | "widget" | "relationship" | "search-table" | "table" | "cloud-link" | "email-alias" | "category" | "connector" | "ai-provider-anthropic" | "ai-provider-bedrock" | "ai-provider-custom" | "ai-provider-deepgram" | "ai-provider-elevenlab" | "ai-provider-gemini" | "ai-provider-openai" | "ai-provider-snowflake" | "ai-provider-xai" | "ai-provider-managed" | "group" | "phone-provider" | "phone-service" | "voice-auth" | "role" | "user";
|
|
14
16
|
/** @deprecated Use {@link KindId}. */
|
|
15
17
|
export type EntityKindId = KindId;
|
|
16
18
|
export type StreamFacet = {
|
|
@@ -71,7 +73,28 @@ export interface SubTypeRow {
|
|
|
71
73
|
* `alignExportWithState`); a first pull has nothing to fill.
|
|
72
74
|
*/
|
|
73
75
|
readonly unreadableAttributes?: readonly string[];
|
|
76
|
+
/**
|
|
77
|
+
* Option-list attributes (objects keyed by `label`) where the provider keeps
|
|
78
|
+
* an inactive (`active = false`) option only when state already holds it.
|
|
79
|
+
* The export prints every inactive option, and adoption re-imports the field
|
|
80
|
+
* so state holds them too (see `inactiveOptionsStateLacks`, #2186).
|
|
81
|
+
*/
|
|
82
|
+
readonly stateScopedInactiveOptions?: readonly string[];
|
|
74
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* The value state holds for an export reference, or undefined when it cannot
|
|
86
|
+
* be resolved (see `engine/pull/state-reference-resolver.ts`).
|
|
87
|
+
*/
|
|
88
|
+
export type StateReferenceResolver = (value: TfValue) => unknown;
|
|
89
|
+
/**
|
|
90
|
+
* A kind's re-pull alignment: the exported resource's attributes, rewritten
|
|
91
|
+
* from that resource's state attributes. Returns `exported` itself when
|
|
92
|
+
* nothing changes.
|
|
93
|
+
*/
|
|
94
|
+
export type StateAlignment = (exported: Record<string, TfValue>, state: Readonly<Record<string, unknown>>, context: {
|
|
95
|
+
readonly address: string;
|
|
96
|
+
readonly resolve: StateReferenceResolver;
|
|
97
|
+
}) => Record<string, TfValue>;
|
|
75
98
|
export interface CompositeMember {
|
|
76
99
|
readonly role: string;
|
|
77
100
|
readonly resourceType: string;
|
|
@@ -100,6 +123,12 @@ export type ResourceFacet = {
|
|
|
100
123
|
* it unless state holds its id (see `alignExportWithState`).
|
|
101
124
|
*/
|
|
102
125
|
readonly stateScopedPlatformEntries?: readonly StateScopedPlatformEntry[];
|
|
126
|
+
/**
|
|
127
|
+
* Anything else a re-pull has to restore from state that the export
|
|
128
|
+
* cannot carry (a dynamic layout's condition keys). Runs before the
|
|
129
|
+
* declarative alignments above (see `alignExportWithState`).
|
|
130
|
+
*/
|
|
131
|
+
readonly alignWithState?: StateAlignment;
|
|
103
132
|
} | {
|
|
104
133
|
readonly shape: "subTypes";
|
|
105
134
|
readonly rows: readonly SubTypeRow[];
|
|
@@ -122,8 +151,8 @@ export type ResourceFacet = {
|
|
|
122
151
|
/** How a resource type belonging to this kind participates in stream partition. */
|
|
123
152
|
export type StreamMatch = "extract" | "family" | "reported";
|
|
124
153
|
/** Catalog kinds used by org identity data facets. */
|
|
125
|
-
export type DataFacetCatalogKind = "cloudLink" | "category" | "connector" | "group" | "phoneProvider" | "aiProvider";
|
|
126
|
-
export type OrgIdentityBag = "cloudLinks" | "categories" | "connectors" | "groups" | "phoneProviders" | "aiProviders";
|
|
154
|
+
export type DataFacetCatalogKind = "cloudLink" | "category" | "connector" | "group" | "phoneProvider" | "aiProvider" | "voiceAuth";
|
|
155
|
+
export type OrgIdentityBag = "cloudLinks" | "categories" | "connectors" | "groups" | "phoneProviders" | "aiProviders" | "voiceAuths";
|
|
127
156
|
/** Portable identity strategy for a direct reference. The build/pull engines
|
|
128
157
|
* consume these facets generically; entity modules own the product-specific
|
|
129
158
|
* declaration of how their identities are found. */
|
|
@@ -172,6 +201,12 @@ export type DataFacet = {
|
|
|
172
201
|
* "aiProviders"`), so the referenced type isn't known until read.
|
|
173
202
|
*/
|
|
174
203
|
readonly providerRefAttr?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Authored in `organization.ts` as a managed resource that dependents
|
|
206
|
+
* can reference in the same apply. Build resolves that bag through the
|
|
207
|
+
* managed overlay instead of an org.ts data source.
|
|
208
|
+
*/
|
|
209
|
+
readonly managedInOrganization?: boolean;
|
|
175
210
|
};
|
|
176
211
|
/** Null-object data facet — kind is not a data lookup. */
|
|
177
212
|
export declare const NO_DATA: DataFacet;
|
|
@@ -288,7 +323,8 @@ export interface StreamExtractContext extends FromTfContext {
|
|
|
288
323
|
readonly columnRefNamesByName?: ReadonlyMap<string, string>;
|
|
289
324
|
readonly columnRefNamesById?: ReadonlyMap<string, string>;
|
|
290
325
|
}>;
|
|
291
|
-
|
|
326
|
+
/** See `PicklistOptionsByField` (#2568). */
|
|
327
|
+
readonly picklistOptionsByField?: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
292
328
|
readonly fieldNamesByOwnerRefName?: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
293
329
|
}
|
|
294
330
|
export interface OwnFileExtractResult {
|
|
@@ -368,6 +404,10 @@ export interface UnresolvedReferenceDiagnostic {
|
|
|
368
404
|
readonly uuid: string;
|
|
369
405
|
readonly reason: string;
|
|
370
406
|
readonly portability: "source-org-only";
|
|
407
|
+
/** A datamine in an app's connection with no owning app (bridge `Ownerless`). */
|
|
408
|
+
readonly ownerless?: boolean;
|
|
409
|
+
/** The table holding an ownerless datamine. */
|
|
410
|
+
readonly table?: string;
|
|
371
411
|
}
|
|
372
412
|
/** Workspace facts a re-pull merge may consult (#1590). */
|
|
373
413
|
export interface MergePulledSourceContext {
|
|
@@ -515,6 +555,8 @@ export interface BuildChildContext {
|
|
|
515
555
|
readonly authoredAspectKeys?: ReadonlySet<string>;
|
|
516
556
|
/** Pulled roots may retain picklist labels removed from the live field. */
|
|
517
557
|
readonly allowUnknownPicklistOptions?: boolean;
|
|
558
|
+
/** Option ids known offline, for the raw-option-id warnings (#1733). */
|
|
559
|
+
readonly optionIds?: OptionIdIndex;
|
|
518
560
|
/** Every app/element/table stream root in this build, by refName (see `ToTfContext.workspaceAspects`). */
|
|
519
561
|
readonly workspaceAspects?: ReadonlyMap<string, {
|
|
520
562
|
readonly kind: ChildResourceScope | "table" | "task";
|
|
@@ -740,6 +782,37 @@ export interface TaskOutputReference {
|
|
|
740
782
|
readonly fieldType: string;
|
|
741
783
|
readonly multiple: boolean;
|
|
742
784
|
}
|
|
785
|
+
/** A stream root as build rendered it, for {@link EntityKindModule.buildChecks}. */
|
|
786
|
+
export interface BuiltRoot {
|
|
787
|
+
readonly kind: string;
|
|
788
|
+
readonly refName: string;
|
|
789
|
+
/** The root's TF label (namespace). */
|
|
790
|
+
readonly tfLabel: string;
|
|
791
|
+
readonly payload: unknown;
|
|
792
|
+
/** Keys of the fields the root authors (system fields excluded). */
|
|
793
|
+
readonly fieldKeys: ReadonlySet<string>;
|
|
794
|
+
}
|
|
795
|
+
/** A stream root's blocks and source file, for {@link EntityKindModule.buildChecks}' cross-root checks. */
|
|
796
|
+
export interface BuiltRootSource {
|
|
797
|
+
readonly kind: string;
|
|
798
|
+
readonly refName: string;
|
|
799
|
+
/** The root's TF label (namespace). */
|
|
800
|
+
readonly tfLabel: string;
|
|
801
|
+
/** Source file, relative to the org root. */
|
|
802
|
+
readonly file: string;
|
|
803
|
+
readonly blocks: readonly TfBlock[];
|
|
804
|
+
/** The root's compared groups (see `buildChecks.comparedGroup`) against its last pull on this machine. */
|
|
805
|
+
readonly pull: PulledRootStatus;
|
|
806
|
+
}
|
|
807
|
+
/** A failing cross-root check. Build records it as a fatal validation and keeps building (edk#2430). */
|
|
808
|
+
export interface BuildCheckFailure {
|
|
809
|
+
/** Terraform resource address, `type.label`. */
|
|
810
|
+
readonly address: string;
|
|
811
|
+
readonly name: string;
|
|
812
|
+
readonly message: string;
|
|
813
|
+
/** The kind named in the log prefix, when the failure belongs to another kind than the module that checks it. */
|
|
814
|
+
readonly ownerKind?: KindId;
|
|
815
|
+
}
|
|
743
816
|
export interface EntityKindModule {
|
|
744
817
|
readonly kind: KindId;
|
|
745
818
|
/** Export participation. */
|
|
@@ -758,9 +831,18 @@ export interface EntityKindModule {
|
|
|
758
831
|
readonly canvas: CanvasFacet;
|
|
759
832
|
/** Generated catalog participation — or {@link NO_CATALOG}. */
|
|
760
833
|
readonly catalog: CatalogFacet;
|
|
761
|
-
/** Build
|
|
834
|
+
/** Build checks; each returned failure or string fails the build. */
|
|
762
835
|
readonly buildChecks?: {
|
|
763
|
-
|
|
836
|
+
/** Across every built root, with each root's blocks and source file. */
|
|
837
|
+
readonly validateBuiltRoots?: (roots: readonly BuiltRootSource[]) => readonly BuildCheckFailure[];
|
|
838
|
+
/**
|
|
839
|
+
* The group (e.g. a relationship pair) of a block `validateBuiltRoots` compares, or `undefined`. Build
|
|
840
|
+
* hashes each root's groups against its last pull, so `BuiltRootSource.pull` says whether one group
|
|
841
|
+
* changed, not just whether the file did (edk#2430).
|
|
842
|
+
*/
|
|
843
|
+
readonly comparedGroup?: (block: TfBlock) => string | undefined;
|
|
844
|
+
/** Across every rendered `.tf` file (name → text), with the stream roots built into them. */
|
|
845
|
+
readonly validateRenderedFiles?: (files: ReadonlyMap<string, string>, roots: readonly BuiltRoot[]) => readonly string[];
|
|
764
846
|
};
|
|
765
847
|
/**
|
|
766
848
|
* Plan/apply: resources build emits that may already exist live without
|
|
@@ -768,6 +850,16 @@ export interface EntityKindModule {
|
|
|
768
850
|
* import is written to `.tf/out` so the plan imports instead of creating.
|
|
769
851
|
*/
|
|
770
852
|
readonly stateAdoption?: StateAdoptionFacet;
|
|
853
|
+
/**
|
|
854
|
+
* organization.ts owns a managed body of this kind. App adoption imports a
|
|
855
|
+
* referenced one (the export only has a name lookup) using a read-only ei
|
|
856
|
+
* list for the live id and {@link renderResource} for the config the import
|
|
857
|
+
* gate plans.
|
|
858
|
+
*/
|
|
859
|
+
readonly managedOrganization?: {
|
|
860
|
+
readonly listArgs: readonly string[];
|
|
861
|
+
readonly renderResource: (label: string, value: unknown) => string | undefined;
|
|
862
|
+
};
|
|
771
863
|
/** `--portable` pulls and `clone app`: what is left out, mapped or dropped. */
|
|
772
864
|
readonly portable?: PortableFacet;
|
|
773
865
|
/** Entity-specific equivalences used only by live build-vs-export comparison. */
|
|
@@ -793,6 +885,11 @@ export interface EntityKindModule {
|
|
|
793
885
|
readonly attribute: string;
|
|
794
886
|
readonly suffix: string;
|
|
795
887
|
}[];
|
|
888
|
+
/**
|
|
889
|
+
* List attributes the provider schema declares as sets, so their order
|
|
890
|
+
* carries no meaning and build vs export compares them unordered (edk#2437).
|
|
891
|
+
*/
|
|
892
|
+
readonly unorderedListAttributes?: readonly string[];
|
|
796
893
|
/**
|
|
797
894
|
* Two `<label><suffix>` locals that read the same list on this kind's
|
|
798
895
|
* resource, one indexed by each entry's name and one by its key.
|
|
@@ -921,6 +1018,19 @@ export interface EntityKindModule {
|
|
|
921
1018
|
*/
|
|
922
1019
|
readonly stateResolvedDataLookups?: readonly {
|
|
923
1020
|
readonly dataType: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* When state holds no `data:` row for the export's lookup (the export
|
|
1023
|
+
* declares it but only uses its id raw inside a template), its id is the
|
|
1024
|
+
* one managed `<resourceTypes>` resource in state whose `<matchAttributes>`
|
|
1025
|
+
* equal the lookup's string literals and whose `<ownerAttribute>` equals
|
|
1026
|
+
* the state-confirmed id of the lookup's `<ownerAttribute> =
|
|
1027
|
+
* data.<owner>.id`. The lookup must set exactly those attributes.
|
|
1028
|
+
*/
|
|
1029
|
+
readonly managedFallback?: {
|
|
1030
|
+
readonly resourceTypes: readonly string[];
|
|
1031
|
+
readonly matchAttributes: readonly string[];
|
|
1032
|
+
readonly ownerAttribute: string;
|
|
1033
|
+
};
|
|
924
1034
|
}[];
|
|
925
1035
|
/**
|
|
926
1036
|
* Top-level `<attribute>` of `<resourceType>` where the export writes the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementumai/edk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Elementum Development Kit — statically typed SDK for building Elementum apps, automations, and agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
"clean:skills": "tsx src/scripts/sync-skill-assets.ts --clean",
|
|
160
160
|
"sync:compatibility": "tsx src/scripts/sync-compatibility.ts",
|
|
161
161
|
"check:release-context": "tsx src/scripts/release-context.ts v0.0.0 HEAD >/dev/null",
|
|
162
|
+
"check:config-writes": "go -C cmd/elementum run ./tools/check-config-writes -root ../..",
|
|
162
163
|
"fetch:schema": "make -C provider fetch-schema",
|
|
163
164
|
"generate:schema": "make -C provider generate-schema",
|
|
164
165
|
"generate:graphql": "make -C provider generate-graphql",
|
|
@@ -191,6 +192,8 @@
|
|
|
191
192
|
"pack:consumer": "npm run build:sdk && tsx src/scripts/test-package-consumer.ts",
|
|
192
193
|
"release:local-sdk": "bash release/verify-local-sdk-prepare.sh",
|
|
193
194
|
"release:notes": "tsx src/scripts/release-notes.ts",
|
|
195
|
+
"changelog:combine": "tsx src/scripts/changelog-fragments.ts",
|
|
196
|
+
"check:changelog": "tsx src/scripts/changelog-fragments.ts --check",
|
|
194
197
|
"check:parity": "tsx src/scripts/check-provider-parity.ts",
|
|
195
198
|
"test:distribution": "npm --prefix distribution test",
|
|
196
199
|
"test:binary": "npm run build:sdk && npm run build:binary:bun && npm run smoke:binary:bun",
|
|
@@ -210,10 +213,10 @@
|
|
|
210
213
|
"typecheck:examples": "tsc --noEmit -p tsconfig.examples-check.json",
|
|
211
214
|
"pretypecheck:consumer": "npm run generate:ragnarok",
|
|
212
215
|
"typecheck:consumer": "tsc --noEmit -p tsconfig.package-consumer-check.json",
|
|
213
|
-
"lint": "eslint src/cli src/internal/sdk-package.ts src/scripts/prepare-release-promotion.ts src/scripts/test-package-consumer.ts examples/package-consumer",
|
|
216
|
+
"lint": "eslint src/cli src/internal/sdk-package.ts src/scripts/prepare-release-promotion.ts src/scripts/changelog-fragments.ts src/scripts/test-package-consumer.ts examples/package-consumer",
|
|
214
217
|
"lint:all": "eslint .",
|
|
215
218
|
"lint:generated": "eslint generated/",
|
|
216
|
-
"check": "npm run typecheck && npm run lint && npm run check:release-context",
|
|
219
|
+
"check": "npm run typecheck && npm run lint && npm run check:release-context && npm run check:changelog",
|
|
217
220
|
"check:distribution": "npm --prefix distribution run check",
|
|
218
221
|
"verify:distribution": "npm run check:distribution && npm run test:distribution && npm run build:distribution && git diff --exit-code -- distribution/generated distribution/public/schemas",
|
|
219
222
|
"edk:canvas": "tsx --tsconfig tsconfig.examples-check.json src/scripts/edk-canvas.ts"
|