@elementumai/edk 0.0.0-oidc-bootstrap → 0.8.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.
- package/README.md +462 -3
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.d.ts +188 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.js +20 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent.d.ts +245 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent.js +30 -0
- package/dist-sdk/elementum-entity-client/clients/ai-provider-connectors/models/ai-provider-connector.d.ts +18 -0
- package/dist-sdk/elementum-entity-client/clients/ai-provider-connectors/models/ai-provider-connector.js +8 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/aspect.d.ts +718 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/aspect.js +52 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-base.d.ts +23 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-base.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-types.d.ts +148 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-types.js +12 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/format.d.ts +63 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/format.js +17 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.d.ts +39 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.js +35 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.d.ts +116 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.js +11 -0
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.d.ts +178 -0
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.js +18 -0
- package/dist-sdk/elementum-entity-client/clients/document-models/models/document-model.d.ts +200 -0
- package/dist-sdk/elementum-entity-client/clients/document-models/models/document-model.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/index.d.ts +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/index.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/search-table-wire.d.ts +141 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/search-table-wire.js +22 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +123 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.js +14 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.d.ts +78 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.js +23 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/index.d.ts +1 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/index.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/table-wire.d.ts +265 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/table-wire.js +15 -0
- package/dist-sdk/elementum-entity-client/errors.d.ts +90 -0
- package/dist-sdk/elementum-entity-client/errors.js +111 -0
- package/dist-sdk/elementum-entity-client/models/connection.d.ts +30 -0
- package/dist-sdk/elementum-entity-client/models/connection.js +16 -0
- package/dist-sdk/elementum-entity-client/types.d.ts +71 -0
- package/dist-sdk/elementum-entity-client/types.js +1 -0
- package/dist-sdk/fs/entity.d.ts +104 -0
- package/dist-sdk/fs/entity.js +52 -0
- package/dist-sdk/pull/util.d.ts +130 -0
- package/dist-sdk/pull/util.js +204 -0
- package/dist-sdk/src/catalog/ai-provider-models.d.ts +30 -0
- package/dist-sdk/src/catalog/ai-provider-models.js +63 -0
- package/dist-sdk/src/catalog/factories.d.ts +242 -0
- package/dist-sdk/src/catalog/factories.js +265 -0
- package/dist-sdk/src/catalog/from-authoring.d.ts +103 -0
- package/dist-sdk/src/catalog/from-authoring.js +467 -0
- package/dist-sdk/src/catalog/index.d.ts +12 -0
- package/dist-sdk/src/catalog/index.js +12 -0
- package/dist-sdk/src/catalog/org.d.ts +11 -0
- package/dist-sdk/src/catalog/org.js +288 -0
- package/dist-sdk/src/catalog/render-helpers.d.ts +35 -0
- package/dist-sdk/src/catalog/render-helpers.js +82 -0
- package/dist-sdk/src/catalog/render.d.ts +48 -0
- package/dist-sdk/src/catalog/render.js +193 -0
- package/dist-sdk/src/catalog/token.d.ts +10 -0
- package/dist-sdk/src/catalog/token.js +76 -0
- package/dist-sdk/src/catalog/types.d.ts +215 -0
- package/dist-sdk/src/catalog/types.js +86 -0
- package/dist-sdk/src/catalog/write.d.ts +43 -0
- package/dist-sdk/src/catalog/write.js +109 -0
- package/dist-sdk/src/core/app-to-ui.d.ts +22 -0
- package/dist-sdk/src/core/app-to-ui.js +75 -0
- package/dist-sdk/src/core/index.d.ts +10 -0
- package/dist-sdk/src/core/index.js +9 -0
- package/dist-sdk/src/core/system-fields.d.ts +95 -0
- package/dist-sdk/src/core/system-fields.js +153 -0
- package/dist-sdk/src/core/triggers/on-demand.d.ts +144 -0
- package/dist-sdk/src/core/triggers/on-demand.js +112 -0
- package/dist-sdk/src/core/types/ai-provider.d.ts +23 -0
- package/dist-sdk/src/core/types/ai-provider.js +8 -0
- package/dist-sdk/src/core/types/app.d.ts +857 -0
- package/dist-sdk/src/core/types/app.js +210 -0
- package/dist-sdk/src/core/types/aspect-category.d.ts +35 -0
- package/dist-sdk/src/core/types/aspect-category.js +33 -0
- package/dist-sdk/src/core/types/cloud-link.d.ts +34 -0
- package/dist-sdk/src/core/types/cloud-link.js +32 -0
- package/dist-sdk/src/core/types/display-block.d.ts +149 -0
- package/dist-sdk/src/core/types/display-block.js +61 -0
- package/dist-sdk/src/core/types/group.d.ts +13 -0
- package/dist-sdk/src/core/types/group.js +6 -0
- package/dist-sdk/src/core/types/platform.d.ts +2 -0
- package/dist-sdk/src/core/types/platform.js +1 -0
- package/dist-sdk/src/core/types/user.d.ts +20 -0
- package/dist-sdk/src/core/types/user.js +8 -0
- package/dist-sdk/src/core/wire/ref-serializer.d.ts +45 -0
- package/dist-sdk/src/core/wire/ref-serializer.js +89 -0
- package/dist-sdk/src/engine/build/context.d.ts +67 -0
- package/dist-sdk/src/engine/build/context.js +6 -0
- package/dist-sdk/src/engine/build/source-context.d.ts +45 -0
- package/dist-sdk/src/engine/build/source-context.js +23 -0
- package/dist-sdk/src/engine/entity.d.ts +44 -0
- package/dist-sdk/src/engine/entity.js +15 -0
- package/dist-sdk/src/engine/pull/context.d.ts +38 -0
- package/dist-sdk/src/engine/pull/context.js +44 -0
- package/dist-sdk/src/engine/pull/org.d.ts +54 -0
- package/dist-sdk/src/engine/pull/org.js +134 -0
- package/dist-sdk/src/engine/tf/escape.d.ts +22 -0
- package/dist-sdk/src/engine/tf/escape.js +28 -0
- package/dist-sdk/src/engine/tf/expr.d.ts +25 -0
- package/dist-sdk/src/engine/tf/expr.js +405 -0
- package/dist-sdk/src/engine/tf/index.d.ts +12 -0
- package/dist-sdk/src/engine/tf/index.js +11 -0
- package/dist-sdk/src/engine/tf/labels.d.ts +76 -0
- package/dist-sdk/src/engine/tf/labels.js +196 -0
- package/dist-sdk/src/engine/tf/model.d.ts +84 -0
- package/dist-sdk/src/engine/tf/model.js +49 -0
- package/dist-sdk/src/engine/tf/parse.d.ts +41 -0
- package/dist-sdk/src/engine/tf/parse.js +189 -0
- package/dist-sdk/src/engine/tf/render.d.ts +13 -0
- package/dist-sdk/src/engine/tf/render.js +102 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.d.ts +43 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.js +201 -0
- package/dist-sdk/src/entities/access-policy/build.d.ts +26 -0
- package/dist-sdk/src/entities/access-policy/build.js +7 -0
- package/dist-sdk/src/entities/access-policy/filter.d.ts +61 -0
- package/dist-sdk/src/entities/access-policy/filter.js +83 -0
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +48 -0
- package/dist-sdk/src/entities/access-policy/from-tf.js +189 -0
- package/dist-sdk/src/entities/access-policy/module.d.ts +3 -0
- package/dist-sdk/src/entities/access-policy/module.js +17 -0
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +36 -0
- package/dist-sdk/src/entities/access-policy/to-tf.js +149 -0
- package/dist-sdk/src/entities/access-policy/types.d.ts +4 -0
- package/dist-sdk/src/entities/access-policy/types.js +10 -0
- package/dist-sdk/src/entities/agent/build.d.ts +108 -0
- package/dist-sdk/src/entities/agent/build.js +148 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +53 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +344 -0
- package/dist-sdk/src/entities/agent/from-tf.d.ts +65 -0
- package/dist-sdk/src/entities/agent/from-tf.js +289 -0
- package/dist-sdk/src/entities/agent/index.d.ts +7 -0
- package/dist-sdk/src/entities/agent/index.js +7 -0
- package/dist-sdk/src/entities/agent/module.d.ts +4 -0
- package/dist-sdk/src/entities/agent/module.js +122 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/agent/to-tf.js +188 -0
- package/dist-sdk/src/entities/agent/tools.d.ts +284 -0
- package/dist-sdk/src/entities/agent/tools.js +238 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +110 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.js +265 -0
- package/dist-sdk/src/entities/agent-tool/module.d.ts +3 -0
- package/dist-sdk/src/entities/agent-tool/module.js +32 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +40 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.js +250 -0
- package/dist-sdk/src/entities/agent-tool/types.d.ts +43 -0
- package/dist-sdk/src/entities/agent-tool/types.js +102 -0
- package/dist-sdk/src/entities/app/build.d.ts +368 -0
- package/dist-sdk/src/entities/app/build.js +372 -0
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +168 -0
- package/dist-sdk/src/entities/app/deserializer/normalize.js +12 -0
- package/dist-sdk/src/entities/app/display-blocks.d.ts +26 -0
- package/dist-sdk/src/entities/app/display-blocks.js +34 -0
- package/dist-sdk/src/entities/app/from-tf.d.ts +23 -0
- package/dist-sdk/src/entities/app/from-tf.js +197 -0
- package/dist-sdk/src/entities/app/index.d.ts +14 -0
- package/dist-sdk/src/entities/app/index.js +11 -0
- package/dist-sdk/src/entities/app/locals.d.ts +11 -0
- package/dist-sdk/src/entities/app/locals.js +31 -0
- package/dist-sdk/src/entities/app/module.d.ts +4 -0
- package/dist-sdk/src/entities/app/module.js +66 -0
- package/dist-sdk/src/entities/app/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/app/to-tf.js +212 -0
- package/dist-sdk/src/entities/approval-chain/build.d.ts +24 -0
- package/dist-sdk/src/entities/approval-chain/build.js +56 -0
- package/dist-sdk/src/entities/approval-chain/index.d.ts +6 -0
- package/dist-sdk/src/entities/approval-chain/index.js +6 -0
- package/dist-sdk/src/entities/approval-chain/steps.d.ts +24 -0
- package/dist-sdk/src/entities/approval-chain/steps.js +20 -0
- package/dist-sdk/src/entities/automation/build.d.ts +259 -0
- package/dist-sdk/src/entities/automation/build.js +436 -0
- package/dist-sdk/src/entities/automation/catalog-render.d.ts +5 -0
- package/dist-sdk/src/entities/automation/catalog-render.js +35 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +152 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.js +13 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +55 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +1176 -0
- package/dist-sdk/src/entities/automation/filter.d.ts +93 -0
- package/dist-sdk/src/entities/automation/filter.js +156 -0
- package/dist-sdk/src/entities/automation/from-tf.d.ts +35 -0
- package/dist-sdk/src/entities/automation/from-tf.js +1258 -0
- package/dist-sdk/src/entities/automation/index.d.ts +22 -0
- package/dist-sdk/src/entities/automation/index.js +25 -0
- package/dist-sdk/src/entities/automation/module.d.ts +3 -0
- package/dist-sdk/src/entities/automation/module.js +150 -0
- package/dist-sdk/src/entities/automation/operators.d.ts +93 -0
- package/dist-sdk/src/entities/automation/operators.js +69 -0
- package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +19 -0
- package/dist-sdk/src/entities/automation/output-key-wire-name.js +24 -0
- package/dist-sdk/src/entities/automation/script-code.d.ts +51 -0
- package/dist-sdk/src/entities/automation/script-code.js +633 -0
- package/dist-sdk/src/entities/automation/serialize.d.ts +6 -0
- package/dist-sdk/src/entities/automation/serialize.js +41 -0
- package/dist-sdk/src/entities/automation/tasks.d.ts +641 -0
- package/dist-sdk/src/entities/automation/tasks.js +765 -0
- package/dist-sdk/src/entities/automation/to-tf.d.ts +19 -0
- package/dist-sdk/src/entities/automation/to-tf.js +1169 -0
- package/dist-sdk/src/entities/automation/triggers.d.ts +205 -0
- package/dist-sdk/src/entities/automation/triggers.js +202 -0
- package/dist-sdk/src/entities/automation/types.d.ts +78 -0
- package/dist-sdk/src/entities/automation/types.js +131 -0
- package/dist-sdk/src/entities/element/build.d.ts +121 -0
- package/dist-sdk/src/entities/element/build.js +110 -0
- package/dist-sdk/src/entities/element/from-tf.d.ts +19 -0
- package/dist-sdk/src/entities/element/from-tf.js +170 -0
- package/dist-sdk/src/entities/element/index.d.ts +12 -0
- package/dist-sdk/src/entities/element/index.js +10 -0
- package/dist-sdk/src/entities/element/locals.d.ts +7 -0
- package/dist-sdk/src/entities/element/locals.js +12 -0
- package/dist-sdk/src/entities/element/module.d.ts +8 -0
- package/dist-sdk/src/entities/element/module.js +65 -0
- package/dist-sdk/src/entities/element/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/element/to-tf.js +169 -0
- package/dist-sdk/src/entities/field/build.d.ts +112 -0
- package/dist-sdk/src/entities/field/build.js +84 -0
- package/dist-sdk/src/entities/field/calc/aggregate.d.ts +60 -0
- package/dist-sdk/src/entities/field/calc/aggregate.js +71 -0
- package/dist-sdk/src/entities/field/calc/date.d.ts +73 -0
- package/dist-sdk/src/entities/field/calc/date.js +109 -0
- package/dist-sdk/src/entities/field/calc/index.d.ts +229 -0
- package/dist-sdk/src/entities/field/calc/index.js +433 -0
- package/dist-sdk/src/entities/field/calc/numeric.d.ts +22 -0
- package/dist-sdk/src/entities/field/calc/numeric.js +67 -0
- package/dist-sdk/src/entities/field/calc/runtime.d.ts +61 -0
- package/dist-sdk/src/entities/field/calc/runtime.js +174 -0
- package/dist-sdk/src/entities/field/calc/text.d.ts +100 -0
- package/dist-sdk/src/entities/field/calc/text.js +208 -0
- package/dist-sdk/src/entities/field/calc/types.d.ts +86 -0
- package/dist-sdk/src/entities/field/calc/types.js +23 -0
- package/dist-sdk/src/entities/field/calc.d.ts +108 -0
- package/dist-sdk/src/entities/field/calc.js +54 -0
- package/dist-sdk/src/entities/field/from-tf.d.ts +31 -0
- package/dist-sdk/src/entities/field/from-tf.js +184 -0
- package/dist-sdk/src/entities/field/locals.d.ts +8 -0
- package/dist-sdk/src/entities/field/locals.js +24 -0
- package/dist-sdk/src/entities/field/module.d.ts +3 -0
- package/dist-sdk/src/entities/field/module.js +50 -0
- package/dist-sdk/src/entities/field/options.d.ts +27 -0
- package/dist-sdk/src/entities/field/options.js +76 -0
- package/dist-sdk/src/entities/field/record-shape.d.ts +57 -0
- package/dist-sdk/src/entities/field/record-shape.js +1 -0
- package/dist-sdk/src/entities/field/to-tf.d.ts +73 -0
- package/dist-sdk/src/entities/field/to-tf.js +142 -0
- package/dist-sdk/src/entities/field/types.d.ts +53 -0
- package/dist-sdk/src/entities/field/types.js +68 -0
- package/dist-sdk/src/entities/file-reader/build.d.ts +182 -0
- package/dist-sdk/src/entities/file-reader/build.js +105 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.d.ts +6 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +109 -0
- package/dist-sdk/src/entities/file-reader/from-tf.d.ts +13 -0
- package/dist-sdk/src/entities/file-reader/from-tf.js +172 -0
- package/dist-sdk/src/entities/file-reader/index.d.ts +10 -0
- package/dist-sdk/src/entities/file-reader/index.js +10 -0
- package/dist-sdk/src/entities/file-reader/module.d.ts +3 -0
- package/dist-sdk/src/entities/file-reader/module.js +115 -0
- package/dist-sdk/src/entities/file-reader/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/file-reader/to-tf.js +84 -0
- package/dist-sdk/src/entities/file-reader/types.d.ts +32 -0
- package/dist-sdk/src/entities/file-reader/types.js +30 -0
- package/dist-sdk/src/entities/flow/activities/agent.d.ts +15 -0
- package/dist-sdk/src/entities/flow/activities/agent.js +29 -0
- package/dist-sdk/src/entities/flow/activities/approval.d.ts +9 -0
- package/dist-sdk/src/entities/flow/activities/approval.js +18 -0
- package/dist-sdk/src/entities/flow/activities/automation.d.ts +12 -0
- package/dist-sdk/src/entities/flow/activities/automation.js +22 -0
- package/dist-sdk/src/entities/flow/activities/ctx.d.ts +34 -0
- package/dist-sdk/src/entities/flow/activities/ctx.js +38 -0
- package/dist-sdk/src/entities/flow/activities/form.d.ts +22 -0
- package/dist-sdk/src/entities/flow/activities/form.js +36 -0
- package/dist-sdk/src/entities/flow/activities/index.d.ts +14 -0
- package/dist-sdk/src/entities/flow/activities/index.js +13 -0
- package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +39 -0
- package/dist-sdk/src/entities/flow/activities/input-refs.js +19 -0
- package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +13 -0
- package/dist-sdk/src/entities/flow/activities/prompt-template.js +34 -0
- package/dist-sdk/src/entities/flow/activities/render-catalog.d.ts +140 -0
- package/dist-sdk/src/entities/flow/activities/render-catalog.js +174 -0
- package/dist-sdk/src/entities/flow/activities/types.d.ts +33 -0
- package/dist-sdk/src/entities/flow/activities/types.js +1 -0
- package/dist-sdk/src/entities/flow/build.d.ts +38 -0
- package/dist-sdk/src/entities/flow/build.js +115 -0
- package/dist-sdk/src/entities/flow/index.d.ts +8 -0
- package/dist-sdk/src/entities/flow/index.js +7 -0
- package/dist-sdk/src/entities/flow/serialize.d.ts +51 -0
- package/dist-sdk/src/entities/flow/serialize.js +94 -0
- package/dist-sdk/src/entities/flow/util.d.ts +27 -0
- package/dist-sdk/src/entities/flow/util.js +38 -0
- package/dist-sdk/src/entities/org/ai-provider.d.ts +13 -0
- package/dist-sdk/src/entities/org/ai-provider.js +46 -0
- package/dist-sdk/src/entities/org/category.d.ts +5 -0
- package/dist-sdk/src/entities/org/category.js +33 -0
- package/dist-sdk/src/entities/org/cloud-link.d.ts +5 -0
- package/dist-sdk/src/entities/org/cloud-link.js +33 -0
- package/dist-sdk/src/entities/org/connector.d.ts +12 -0
- package/dist-sdk/src/entities/org/connector.js +35 -0
- package/dist-sdk/src/entities/org/group.d.ts +5 -0
- package/dist-sdk/src/entities/org/group.js +40 -0
- package/dist-sdk/src/entities/org/index.d.ts +11 -0
- package/dist-sdk/src/entities/org/index.js +11 -0
- package/dist-sdk/src/entities/org/role.d.ts +7 -0
- package/dist-sdk/src/entities/org/role.js +21 -0
- package/dist-sdk/src/entities/org/user.d.ts +7 -0
- package/dist-sdk/src/entities/org/user.js +30 -0
- package/dist-sdk/src/entities/search-table/build.d.ts +41 -0
- package/dist-sdk/src/entities/search-table/build.js +79 -0
- package/dist-sdk/src/entities/search-table/index.d.ts +5 -0
- package/dist-sdk/src/entities/search-table/index.js +5 -0
- package/dist-sdk/src/entities/search-table/module.d.ts +6 -0
- package/dist-sdk/src/entities/search-table/module.js +64 -0
- package/dist-sdk/src/entities/shared/context.d.ts +93 -0
- package/dist-sdk/src/entities/shared/context.js +156 -0
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +277 -0
- package/dist-sdk/src/entities/shared/filters/ast.js +65 -0
- package/dist-sdk/src/entities/shared/filters/index.d.ts +211 -0
- package/dist-sdk/src/entities/shared/filters/index.js +372 -0
- package/dist-sdk/src/entities/shared/filters/types.d.ts +170 -0
- package/dist-sdk/src/entities/shared/filters/types.js +7 -0
- package/dist-sdk/src/entities/shared/ref.d.ts +160 -0
- package/dist-sdk/src/entities/shared/ref.js +119 -0
- package/dist-sdk/src/entities/shared/tool-field-ref.d.ts +17 -0
- package/dist-sdk/src/entities/shared/tool-field-ref.js +31 -0
- package/dist-sdk/src/entities/shared/types/common.d.ts +106 -0
- package/dist-sdk/src/entities/shared/types/common.js +64 -0
- package/dist-sdk/src/entities/shared/types/field-types.d.ts +58 -0
- package/dist-sdk/src/entities/shared/types/field-types.js +57 -0
- package/dist-sdk/src/entities/shared/types/platform.d.ts +46 -0
- package/dist-sdk/src/entities/shared/types/platform.js +10 -0
- package/dist-sdk/src/entities/skill/build.d.ts +25 -0
- package/dist-sdk/src/entities/skill/build.js +50 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +39 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +124 -0
- package/dist-sdk/src/entities/skill/from-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/from-tf.js +96 -0
- package/dist-sdk/src/entities/skill/index.d.ts +7 -0
- package/dist-sdk/src/entities/skill/index.js +7 -0
- package/dist-sdk/src/entities/skill/module.d.ts +4 -0
- package/dist-sdk/src/entities/skill/module.js +111 -0
- package/dist-sdk/src/entities/skill/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/to-tf.js +59 -0
- package/dist-sdk/src/entities/skill/tools.d.ts +93 -0
- package/dist-sdk/src/entities/skill/tools.js +105 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +60 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.js +142 -0
- package/dist-sdk/src/entities/skill-tool/module.d.ts +3 -0
- package/dist-sdk/src/entities/skill-tool/module.js +21 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +34 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.js +130 -0
- package/dist-sdk/src/entities/skill-tool/types.d.ts +40 -0
- package/dist-sdk/src/entities/skill-tool/types.js +67 -0
- package/dist-sdk/src/entities/table/build.d.ts +74 -0
- package/dist-sdk/src/entities/table/build.js +339 -0
- package/dist-sdk/src/entities/table/catalog-render.d.ts +5 -0
- package/dist-sdk/src/entities/table/catalog-render.js +39 -0
- package/dist-sdk/src/entities/table/fields.d.ts +81 -0
- package/dist-sdk/src/entities/table/fields.js +70 -0
- package/dist-sdk/src/entities/table/filter.d.ts +41 -0
- package/dist-sdk/src/entities/table/filter.js +89 -0
- package/dist-sdk/src/entities/table/index.d.ts +8 -0
- package/dist-sdk/src/entities/table/index.js +12 -0
- package/dist-sdk/src/entities/table/joins.d.ts +26 -0
- package/dist-sdk/src/entities/table/joins.js +31 -0
- package/dist-sdk/src/entities/table/keys.d.ts +11 -0
- package/dist-sdk/src/entities/table/keys.js +25 -0
- package/dist-sdk/src/entities/table/module.d.ts +5 -0
- package/dist-sdk/src/entities/table/module.js +25 -0
- package/dist-sdk/src/entities/table/state.d.ts +39 -0
- package/dist-sdk/src/entities/table/state.js +43 -0
- package/dist-sdk/src/entities/view/from-tf.d.ts +29 -0
- package/dist-sdk/src/entities/view/from-tf.js +235 -0
- package/dist-sdk/src/entities/view/module.d.ts +24 -0
- package/dist-sdk/src/entities/view/module.js +61 -0
- package/dist-sdk/src/entities/view/to-tf.d.ts +65 -0
- package/dist-sdk/src/entities/view/to-tf.js +171 -0
- package/dist-sdk/src/entities/view/types.d.ts +58 -0
- package/dist-sdk/src/entities/view/types.js +89 -0
- package/dist-sdk/src/graph/deferred-catalog-render.d.ts +9 -0
- package/dist-sdk/src/graph/deferred-catalog-render.js +18 -0
- package/dist-sdk/src/graph/index.d.ts +91 -0
- package/dist-sdk/src/graph/index.js +211 -0
- package/dist-sdk/src/graph/modules.d.ts +7 -0
- package/dist-sdk/src/graph/modules.js +42 -0
- package/dist-sdk/src/graph/types.d.ts +375 -0
- package/dist-sdk/src/graph/types.js +102 -0
- package/dist-sdk/src/internal/sdk-package.d.ts +7 -0
- package/dist-sdk/src/internal/sdk-package.js +23 -0
- package/package.json +201 -8
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared wire-shape and identifier helpers used by anything that
|
|
3
|
+
* translates wire data into EDK TypeScript source — both the
|
|
4
|
+
* `defineX.fromJSON` deserializer pipeline and the
|
|
5
|
+
* `fetch-app-definition` renderer that emits standalone
|
|
6
|
+
* `defineApp({...})` files.
|
|
7
|
+
*
|
|
8
|
+
* Helpers that turn out to be useful across more than one of those
|
|
9
|
+
* paths live here so we have a single implementation of each
|
|
10
|
+
* convention (camelCase identifier shape, dedup-with-suffix rule, …)
|
|
11
|
+
* instead of duplicating them per-module and quietly drifting.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Returns a shallow copy of the input object with the `type` key
|
|
15
|
+
* removed. Idempotent — no-op if `type` isn't present. Returns `{}`
|
|
16
|
+
* for `undefined` so callers can chain without null checks.
|
|
17
|
+
*
|
|
18
|
+
* **Why this exists.** Wire shapes carry the task / trigger
|
|
19
|
+
* discriminator inline as `properties.type` (SCREAMING_SNAKE):
|
|
20
|
+
*
|
|
21
|
+
* ```
|
|
22
|
+
* properties: { type: "RECORD_SEARCH", aspectId: "...", filter: {...} }
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* The deserializer's serializer-input shape carries the
|
|
26
|
+
* discriminator as the *wrapping key* (camelCase) instead:
|
|
27
|
+
*
|
|
28
|
+
* ```
|
|
29
|
+
* { recordSearch: { aspectId: "...", filter: {...} } }
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* So normalize wraps via `{ [camelKey]: stripType(props) }` — the
|
|
33
|
+
* wrapping key is the new discriminator, and the previously-inline
|
|
34
|
+
* `type` becomes redundant. Carrying both could confuse downstream
|
|
35
|
+
* code switching on either form, so we drop it.
|
|
36
|
+
*/
|
|
37
|
+
export function stripType(props) {
|
|
38
|
+
if (!props)
|
|
39
|
+
return {};
|
|
40
|
+
const { type: _type, ...rest } = props;
|
|
41
|
+
void _type;
|
|
42
|
+
return rest;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Convert a human-readable label into a camelCase JS identifier:
|
|
46
|
+
* `"P1 Critical"` → `"p1Critical"`, `"App Version"` → `"appVersion"`,
|
|
47
|
+
* `"first NAME"` → `"firstName"`. Strips non-alphanumeric characters,
|
|
48
|
+
* collapses runs of separators, lowercases the leading character of
|
|
49
|
+
* the first part and Pascal-cases the rest.
|
|
50
|
+
*
|
|
51
|
+
* Returns `""` for inputs that contain no alphanumerics — callers
|
|
52
|
+
* decide what fallback to use (e.g. `"item1"`).
|
|
53
|
+
*/
|
|
54
|
+
export function camelCase(input) {
|
|
55
|
+
// Wire data occasionally hands us an absent name (e.g. a search-table summary
|
|
56
|
+
// with no `name`) even though the type says `string`. Degrade to "" so the
|
|
57
|
+
// callers' `camelCase(x) || fallback` picks up rather than throwing on
|
|
58
|
+
// `undefined.replace`.
|
|
59
|
+
if (!input)
|
|
60
|
+
return "";
|
|
61
|
+
const parts = input
|
|
62
|
+
.replace(/[^A-Za-z0-9]+/g, " ")
|
|
63
|
+
.trim()
|
|
64
|
+
.split(/\s+/);
|
|
65
|
+
if (parts.length === 0 || parts[0] === "")
|
|
66
|
+
return "";
|
|
67
|
+
const [head, ...rest] = parts;
|
|
68
|
+
const headLower = head.charAt(0).toLowerCase() + head.slice(1);
|
|
69
|
+
const restCapped = rest.map((p) => p.charAt(0).toUpperCase() + p.slice(1).toLowerCase());
|
|
70
|
+
return [headLower, ...restCapped].join("");
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Mobius's `ValueReference.ofTriggerReference` canonicalizes onDemand
|
|
74
|
+
* parameter reference names so the UI picker can resolve them:
|
|
75
|
+
* - all alphanumeric → first char lowercased (`amountUsd` stays
|
|
76
|
+
* `amountUsd`, `AmountUsd` → `amountUsd`)
|
|
77
|
+
* - contains non-alnum char → camelCase via {@link camelCase}
|
|
78
|
+
* (`amount_usd` → `amountUsd`,
|
|
79
|
+
* `has receipt` → `hasReceipt`)
|
|
80
|
+
*
|
|
81
|
+
* Lives here (not in the serializer) because both sides of the wire
|
|
82
|
+
* need it: the serializer applies it on-write so saved triggerReference
|
|
83
|
+
* names match the picker's canonical form, and the deserializer
|
|
84
|
+
* applies it on-read to map wire reference names back to the source's
|
|
85
|
+
* declared parameter names.
|
|
86
|
+
*/
|
|
87
|
+
export function normalizeOnDemandParamKey(name) {
|
|
88
|
+
if (!name)
|
|
89
|
+
return "";
|
|
90
|
+
if (/[^A-Za-z0-9]/.test(name)) {
|
|
91
|
+
return camelCase(name);
|
|
92
|
+
}
|
|
93
|
+
return name.charAt(0).toLowerCase() + name.substring(1);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Pair each item with a unique camelCase key derived from
|
|
97
|
+
* `nameOf(item)`. Collisions are disambiguated with numeric suffixes
|
|
98
|
+
* (`foo`, `foo2`, `foo3`, …) so an emitted object literal never has
|
|
99
|
+
* duplicate keys. Source order is preserved.
|
|
100
|
+
*
|
|
101
|
+
* `fallbackPrefix` is used when an item's name camelCases to `""`
|
|
102
|
+
* (e.g. all-punctuation names) — callers pass `"field"` /
|
|
103
|
+
* `"automation"` / etc. so the fallback is self-documenting.
|
|
104
|
+
*
|
|
105
|
+
* Used by both the deserializer's catalog (`pull/catalog.ts`) and the
|
|
106
|
+
* fetch-app-definition renderer (`src/scripts/fetch-app-definition.ts`)
|
|
107
|
+
* so a fetched app file and a pulled entity file disambiguate the
|
|
108
|
+
* same way for the same input.
|
|
109
|
+
*/
|
|
110
|
+
export function withUniqueKeys(items, nameOf, fallbackPrefix = "item", handleOf) {
|
|
111
|
+
const used = new Set();
|
|
112
|
+
const out = [];
|
|
113
|
+
for (const item of items) {
|
|
114
|
+
// Prefer a server-assigned handle (`clientHandle`) when present: it's
|
|
115
|
+
// stable, globally unique, and already a valid identifier, so it's used
|
|
116
|
+
// verbatim (no camelCase). Fall back to the name-derived key + dedupe
|
|
117
|
+
// when absent — the rollout window where antman hasn't stamped a handle.
|
|
118
|
+
const serverHandle = handleOf?.(item);
|
|
119
|
+
const base = serverHandle != null && serverHandle !== ""
|
|
120
|
+
? serverHandle
|
|
121
|
+
: camelCase(nameOf(item)) || `${fallbackPrefix}${out.length + 1}`;
|
|
122
|
+
let key = base;
|
|
123
|
+
let i = 2;
|
|
124
|
+
while (used.has(key))
|
|
125
|
+
key = `${base}${i++}`;
|
|
126
|
+
used.add(key);
|
|
127
|
+
out.push({ key, item });
|
|
128
|
+
}
|
|
129
|
+
return out;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Build the JS identifier used as both the exported variable name
|
|
133
|
+
* and the import binding for an app's generated `.ts` file. The
|
|
134
|
+
* generated file is consumed by other generated files that
|
|
135
|
+
* `import { agentToolPlaygroundApp } from "../apps/agent-tool-playground.js"`,
|
|
136
|
+
* so the binding must be a valid JS identifier.
|
|
137
|
+
*
|
|
138
|
+
* camelCases the app name and appends `App` (idempotently). Two apps
|
|
139
|
+
* whose names happen to camel-case to the same identifier can still
|
|
140
|
+
* be disambiguated downstream by the catalog's per-handle pass.
|
|
141
|
+
*/
|
|
142
|
+
export function handleFromName(name) {
|
|
143
|
+
const base = camelCase(name) || "app";
|
|
144
|
+
return base.endsWith("App") ? base : `${base}App`;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Quote a value as a TypeScript string literal — uses
|
|
148
|
+
* `JSON.stringify` so all whitespace, control characters, and
|
|
149
|
+
* non-ASCII code points are escaped to valid TS source. Naming an
|
|
150
|
+
* obvious case to remember why this matters: a field name with an
|
|
151
|
+
* embedded newline would render as an unescaped literal newline
|
|
152
|
+
* inside the emitted `"..."` and break parsing.
|
|
153
|
+
*/
|
|
154
|
+
export function quote(s) {
|
|
155
|
+
return JSON.stringify(s);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Unwrap a GraphQL `Connection<T>` into a flat readonly array of
|
|
159
|
+
* nodes. Accepts `null | undefined` so callers don't have to
|
|
160
|
+
* distinguish "field not requested" (undefined) from "field
|
|
161
|
+
* explicitly null" (null) — both yield an empty list.
|
|
162
|
+
*/
|
|
163
|
+
export function unwrapConnection(conn) {
|
|
164
|
+
return conn?.edges?.map((e) => e.node) ?? [];
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* RFC 4122 UUID test. Used by both write- and read-side code:
|
|
168
|
+
*
|
|
169
|
+
* - `aspects/serializer/field-serializers.ts` strips non-UUID
|
|
170
|
+
* author ids (placeholders like `"f-1"`) so ultron mints one
|
|
171
|
+
* server-side — Java's `UUID`-typed `AbstractAspectFieldInput.id`
|
|
172
|
+
* would otherwise reject the body with a generic Jackson 400.
|
|
173
|
+
* - `aspects/serializer/index.ts` (no-delete picklist guard) and
|
|
174
|
+
* `normalizePicklistValueIds` drop non-UUID `id` slots on
|
|
175
|
+
* picklist values for the same reason.
|
|
176
|
+
* - `aspects/index.ts` routes `defineApp({...}).deploy()` to PUT
|
|
177
|
+
* when `app.id` is a real aspect UUID (existing aspect, update
|
|
178
|
+
* path) and POST when it's a placeholder (new aspect, create
|
|
179
|
+
* path). Pulled sources from `defineApp.fromJSON` always carry
|
|
180
|
+
* a real UUID, so the round-trip naturally goes through update.
|
|
181
|
+
*
|
|
182
|
+
* Lives in `pull/util.ts` next to the other shared identifier helpers
|
|
183
|
+
* (`camelCase`, `handleFromName`, `quote`) since it serves both the
|
|
184
|
+
* pull/print pipeline and the serializer/deploy pipeline — a single
|
|
185
|
+
* source of truth for the regex.
|
|
186
|
+
*/
|
|
187
|
+
const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
188
|
+
export function isUuid(value) {
|
|
189
|
+
return UUID_PATTERN.test(value);
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Format a stage's identity slots as a TypeScript object literal —
|
|
193
|
+
* `{ id, name, color?, icon? }`. `color`/`icon` are omitted when null,
|
|
194
|
+
* undefined, or empty so the catalog (wire-shape) and round-trip
|
|
195
|
+
* (normalized) printers agree on the emitted source.
|
|
196
|
+
*/
|
|
197
|
+
export function formatStageBody(stage) {
|
|
198
|
+
const parts = [`id: ${quote(stage.id)}`, `name: ${quote(stage.name)}`];
|
|
199
|
+
if (stage.color != null && stage.color !== "")
|
|
200
|
+
parts.push(`color: ${quote(stage.color)}`);
|
|
201
|
+
if (stage.icon != null && stage.icon !== "")
|
|
202
|
+
parts.push(`icon: ${quote(stage.icon)}`);
|
|
203
|
+
return `{ ${parts.join(", ")} }`;
|
|
204
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which LLM models are valid under each AI provider family. Hand-maintained
|
|
3
|
+
* against the platform's authoritative AiProviderType enum — not derivable
|
|
4
|
+
* from `provider/schema.graphql`'s flat `AiLlmModel` enum, whose naming
|
|
5
|
+
* doesn't cleanly partition by provider (e.g. unprefixed `CLAUDE_4_6_OPUS`
|
|
6
|
+
* is valid under `snowflake` with no per-provider naming convention to lean
|
|
7
|
+
* on). This list WILL drift as the platform ships new models — update it by
|
|
8
|
+
* hand when that happens (a live pull surfacing an unrecognized model is
|
|
9
|
+
* the usual signal), the same cadence as regenerating the live-captured
|
|
10
|
+
* `.hcl` test fixtures.
|
|
11
|
+
*
|
|
12
|
+
* Deepgram/ElevenLab are speech providers (their models are speech-to-text/
|
|
13
|
+
* text-to-speech, a different model space entirely) — left empty, which
|
|
14
|
+
* makes `AiProviderLlmModel<"deepgram" | "elevenlab">` resolve to `never`.
|
|
15
|
+
*/
|
|
16
|
+
export type AiProviderType = "anthropic" | "bedrock" | "custom" | "deepgram" | "elevenlab" | "gemini" | "openai" | "snowflake" | "xai" | "managed";
|
|
17
|
+
export declare const AI_PROVIDER_LLM_MODELS: {
|
|
18
|
+
readonly anthropic: readonly ["ANTHROPIC_CLAUDE_4_5_SONNET", "ANTHROPIC_CLAUDE_4_6_SONNET", "ANTHROPIC_CLAUDE_5_SONNET", "ANTHROPIC_CLAUDE_HAIKU_4_5", "ANTHROPIC_CLAUDE_4_6_OPUS", "ANTHROPIC_CLAUDE_4_7_OPUS", "ANTHROPIC_CLAUDE_4_8_OPUS"];
|
|
19
|
+
readonly bedrock: readonly ["BEDROCK_CLAUDE_4_5_SONNET", "BEDROCK_CLAUDE_4_6_SONNET", "BEDROCK_CLAUDE_5_SONNET", "BEDROCK_CLAUDE_4_6_OPUS", "BEDROCK_CLAUDE_4_7_OPUS", "BEDROCK_CLAUDE_4_8_OPUS", "BEDROCK_CLAUDE_HAIKU_4_5", "TITAN_EMBED_V1", "TITAN_EMBED_V2"];
|
|
20
|
+
readonly custom: readonly ["ANTHROPIC_CLAUDE_4_5_SONNET", "ANTHROPIC_CLAUDE_4_6_SONNET", "ANTHROPIC_CLAUDE_5_SONNET", "ANTHROPIC_CLAUDE_HAIKU_4_5", "ANTHROPIC_CLAUDE_4_6_OPUS", "ANTHROPIC_CLAUDE_4_7_OPUS", "ANTHROPIC_CLAUDE_4_8_OPUS", "GPT_5", "GPT_5_MINI", "GPT_5_NANO", "GPT_5_1", "GPT_5_2", "GPT_5_3", "GPT_5_3_CODEX", "GPT_5_4", "GPT_5_4_MINI", "GPT_5_4_NANO", "GPT_5_5", "GPT_5_6_SOL", "GPT_5_6_TERRA", "GPT_5_6_LUNA"];
|
|
21
|
+
readonly deepgram: readonly [];
|
|
22
|
+
readonly elevenlab: readonly [];
|
|
23
|
+
readonly gemini: readonly ["GEMINI_2_0_FLASH", "GEMINI_2_0_FLASH_LITE", "GEMINI_1_5_PRO", "GEMINI_2_5_PRO", "GEMINI_2_5_FLASH", "GEMINI_3_PRO"];
|
|
24
|
+
readonly managed: readonly ["MISTRAL_7B"];
|
|
25
|
+
readonly openai: readonly ["GPT_3_5_TURBO", "GPT_3_5_TURBO_1106", "GPT_4", "GPT_4_TURBO_PREVIEW", "GPT_4_OMNI", "GPT_4_OMNI_MINI", "GPT_4_OMNI_MINI_TTS", "GPT_4_OMNI_TRANSCRIBE", "GPT_4_OMNI_MINI_TRANSCRIBE", "OPEN_AI_O1_MINI", "OPEN_AI_O3_MINI", "GPT_4_1", "GPT_4_1_MINI", "GPT_4_1_NANO", "GPT_5", "GPT_5_MINI", "GPT_5_NANO", "GPT_5_1", "GPT_5_2", "GPT_5_3", "GPT_5_3_CODEX", "GPT_5_4", "GPT_5_4_MINI", "GPT_5_4_NANO", "GPT_5_5", "GPT_5_6_SOL", "GPT_5_6_TERRA", "GPT_5_6_LUNA"];
|
|
26
|
+
readonly snowflake: readonly ["CLAUDE_3_5_SONNET", "CLAUDE_3_7_SONNET", "CLAUDE_4_SONNET", "CLAUDE_4_5_SONNET", "CLAUDE_4_6_SONNET", "CLAUDE_5_SONNET", "CLAUDE_HAIKU_4_5", "CLAUDE_4_OPUS", "CLAUDE_4_6_OPUS", "CLAUDE_4_7_OPUS", "CLAUDE_4_8_OPUS", "DEEPSEEK_R1", "MISTRAL_LARGE", "MISTRAL_LARGE_2", "GEMMA_7B", "JAMBA_INSTRUCT", "MISTRAL_7B", "LLAMA2_70B_CHAT", "LLAMA3_8B", "LLAMA3_70B", "LLAMA3_405B", "LLAMA3_1_8B", "LLAMA3_1_70B", "LLAMA3_2_1B", "LLAMA3_2_3B", "LLAMA3_3_70B", "MIXTRAL_8X7B", "SNOWFLAKE_ARCTIC", "SNOWFLAKE_ARCTIC_M_V1_5", "SNOWFLAKE_ARCTIC_L_V2_0", "REKA_FLASH", "REKA_CORE", "CORTEX_GPT_4_1", "CORTEX_OPEN_AI_O4_MINI", "CORTEX_GPT_5", "CORTEX_GPT_5_MINI", "CORTEX_GPT_5_NANO", "CORTEX_GPT_5_CHAT", "CORTEX_GPT_5_6_SOL", "CORTEX_GPT_5_6_TERRA", "CORTEX_GPT_5_6_LUNA"];
|
|
27
|
+
readonly xai: readonly ["GROK_4_FAST_NON_REASONING", "GROK_4_FAST_REASONING", "GROK_4_1_FAST_NON_REASONING", "GROK_4_1_FAST_REASONING"];
|
|
28
|
+
};
|
|
29
|
+
/** Valid LLM model identifiers for provider type `T` (all types if omitted). `never` for a provider with no LLM models (deepgram/elevenlab today). */
|
|
30
|
+
export type AiProviderLlmModel<T extends AiProviderType = AiProviderType> = (typeof AI_PROVIDER_LLM_MODELS)[T][number];
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which LLM models are valid under each AI provider family. Hand-maintained
|
|
3
|
+
* against the platform's authoritative AiProviderType enum — not derivable
|
|
4
|
+
* from `provider/schema.graphql`'s flat `AiLlmModel` enum, whose naming
|
|
5
|
+
* doesn't cleanly partition by provider (e.g. unprefixed `CLAUDE_4_6_OPUS`
|
|
6
|
+
* is valid under `snowflake` with no per-provider naming convention to lean
|
|
7
|
+
* on). This list WILL drift as the platform ships new models — update it by
|
|
8
|
+
* hand when that happens (a live pull surfacing an unrecognized model is
|
|
9
|
+
* the usual signal), the same cadence as regenerating the live-captured
|
|
10
|
+
* `.hcl` test fixtures.
|
|
11
|
+
*
|
|
12
|
+
* Deepgram/ElevenLab are speech providers (their models are speech-to-text/
|
|
13
|
+
* text-to-speech, a different model space entirely) — left empty, which
|
|
14
|
+
* makes `AiProviderLlmModel<"deepgram" | "elevenlab">` resolve to `never`.
|
|
15
|
+
*/
|
|
16
|
+
export const AI_PROVIDER_LLM_MODELS = {
|
|
17
|
+
anthropic: [
|
|
18
|
+
"ANTHROPIC_CLAUDE_4_5_SONNET", "ANTHROPIC_CLAUDE_4_6_SONNET", "ANTHROPIC_CLAUDE_5_SONNET",
|
|
19
|
+
"ANTHROPIC_CLAUDE_HAIKU_4_5", "ANTHROPIC_CLAUDE_4_6_OPUS", "ANTHROPIC_CLAUDE_4_7_OPUS",
|
|
20
|
+
"ANTHROPIC_CLAUDE_4_8_OPUS",
|
|
21
|
+
],
|
|
22
|
+
bedrock: [
|
|
23
|
+
"BEDROCK_CLAUDE_4_5_SONNET", "BEDROCK_CLAUDE_4_6_SONNET", "BEDROCK_CLAUDE_5_SONNET",
|
|
24
|
+
"BEDROCK_CLAUDE_4_6_OPUS", "BEDROCK_CLAUDE_4_7_OPUS", "BEDROCK_CLAUDE_4_8_OPUS",
|
|
25
|
+
"BEDROCK_CLAUDE_HAIKU_4_5", "TITAN_EMBED_V1", "TITAN_EMBED_V2",
|
|
26
|
+
],
|
|
27
|
+
custom: [
|
|
28
|
+
"ANTHROPIC_CLAUDE_4_5_SONNET", "ANTHROPIC_CLAUDE_4_6_SONNET", "ANTHROPIC_CLAUDE_5_SONNET",
|
|
29
|
+
"ANTHROPIC_CLAUDE_HAIKU_4_5", "ANTHROPIC_CLAUDE_4_6_OPUS", "ANTHROPIC_CLAUDE_4_7_OPUS",
|
|
30
|
+
"ANTHROPIC_CLAUDE_4_8_OPUS", "GPT_5", "GPT_5_MINI", "GPT_5_NANO", "GPT_5_1", "GPT_5_2",
|
|
31
|
+
"GPT_5_3", "GPT_5_3_CODEX", "GPT_5_4", "GPT_5_4_MINI", "GPT_5_4_NANO", "GPT_5_5",
|
|
32
|
+
"GPT_5_6_SOL", "GPT_5_6_TERRA", "GPT_5_6_LUNA",
|
|
33
|
+
],
|
|
34
|
+
deepgram: [],
|
|
35
|
+
elevenlab: [],
|
|
36
|
+
gemini: [
|
|
37
|
+
"GEMINI_2_0_FLASH", "GEMINI_2_0_FLASH_LITE", "GEMINI_1_5_PRO", "GEMINI_2_5_PRO",
|
|
38
|
+
"GEMINI_2_5_FLASH", "GEMINI_3_PRO",
|
|
39
|
+
],
|
|
40
|
+
managed: ["MISTRAL_7B"],
|
|
41
|
+
openai: [
|
|
42
|
+
"GPT_3_5_TURBO", "GPT_3_5_TURBO_1106", "GPT_4", "GPT_4_TURBO_PREVIEW", "GPT_4_OMNI",
|
|
43
|
+
"GPT_4_OMNI_MINI", "GPT_4_OMNI_MINI_TTS", "GPT_4_OMNI_TRANSCRIBE", "GPT_4_OMNI_MINI_TRANSCRIBE",
|
|
44
|
+
"OPEN_AI_O1_MINI", "OPEN_AI_O3_MINI", "GPT_4_1", "GPT_4_1_MINI", "GPT_4_1_NANO", "GPT_5",
|
|
45
|
+
"GPT_5_MINI", "GPT_5_NANO", "GPT_5_1", "GPT_5_2", "GPT_5_3", "GPT_5_3_CODEX", "GPT_5_4",
|
|
46
|
+
"GPT_5_4_MINI", "GPT_5_4_NANO", "GPT_5_5", "GPT_5_6_SOL", "GPT_5_6_TERRA", "GPT_5_6_LUNA",
|
|
47
|
+
],
|
|
48
|
+
snowflake: [
|
|
49
|
+
"CLAUDE_3_5_SONNET", "CLAUDE_3_7_SONNET", "CLAUDE_4_SONNET", "CLAUDE_4_5_SONNET",
|
|
50
|
+
"CLAUDE_4_6_SONNET", "CLAUDE_5_SONNET", "CLAUDE_HAIKU_4_5", "CLAUDE_4_OPUS", "CLAUDE_4_6_OPUS",
|
|
51
|
+
"CLAUDE_4_7_OPUS", "CLAUDE_4_8_OPUS", "DEEPSEEK_R1", "MISTRAL_LARGE", "MISTRAL_LARGE_2",
|
|
52
|
+
"GEMMA_7B", "JAMBA_INSTRUCT", "MISTRAL_7B", "LLAMA2_70B_CHAT", "LLAMA3_8B", "LLAMA3_70B",
|
|
53
|
+
"LLAMA3_405B", "LLAMA3_1_8B", "LLAMA3_1_70B", "LLAMA3_2_1B", "LLAMA3_2_3B", "LLAMA3_3_70B",
|
|
54
|
+
"MIXTRAL_8X7B", "SNOWFLAKE_ARCTIC", "SNOWFLAKE_ARCTIC_M_V1_5", "SNOWFLAKE_ARCTIC_L_V2_0",
|
|
55
|
+
"REKA_FLASH", "REKA_CORE", "CORTEX_GPT_4_1", "CORTEX_OPEN_AI_O4_MINI", "CORTEX_GPT_5",
|
|
56
|
+
"CORTEX_GPT_5_MINI", "CORTEX_GPT_5_NANO", "CORTEX_GPT_5_CHAT", "CORTEX_GPT_5_6_SOL",
|
|
57
|
+
"CORTEX_GPT_5_6_TERRA", "CORTEX_GPT_5_6_LUNA",
|
|
58
|
+
],
|
|
59
|
+
xai: [
|
|
60
|
+
"GROK_4_FAST_NON_REASONING", "GROK_4_FAST_REASONING", "GROK_4_1_FAST_NON_REASONING",
|
|
61
|
+
"GROK_4_1_FAST_REASONING",
|
|
62
|
+
],
|
|
63
|
+
};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed factory functions for every catalog ref kind.
|
|
3
|
+
*
|
|
4
|
+
* Each function accepts all fields except `__kind` and `handle`, so generated
|
|
5
|
+
* and authored code never contains a raw `__kind` string literal — and, for
|
|
6
|
+
* every kind here, never an identity property either. `resolveRef`
|
|
7
|
+
* (`src/deploy/resolve/resolve.ts`) and `resolvePayload` read `.handle`
|
|
8
|
+
* directly off an embedded ref with no other context available once it's been
|
|
9
|
+
* destructured out of its parent bag, so that property has to keep existing
|
|
10
|
+
* on the *returned* `CatalogRef` — but inside a catalog file, every ref is
|
|
11
|
+
* constructed as a bag entry (`agents: { agent11: agentRef() }`), and the
|
|
12
|
+
* bag's own object-literal key *is* the ref name. `appCatalog`/`elementCatalog`/
|
|
13
|
+
* `orgCatalog` read that key, stamp it onto `.handle`, and also inject `parent`
|
|
14
|
+
* from the catalog root's own identity — so no factory call for automations or
|
|
15
|
+
* agents needs to restate either property.
|
|
16
|
+
*
|
|
17
|
+
* Each factory still sets `.handle`/`.name` to something internally purely so
|
|
18
|
+
* the object satisfies `CatalogRef`'s structural shape before bag-level stamping;
|
|
19
|
+
* nothing reads those interim values.
|
|
20
|
+
*/
|
|
21
|
+
import type { AiProviderLlmModel, AiProviderType } from "./ai-provider-models.js";
|
|
22
|
+
import type { AgentRef, AiProviderRef, ApprovalChainRef, AutomationCatalogRef, CatalogRef, CategoryRef, CloudLinkRef, ConnectorRef, GroupRef, FileReaderCatalogRef, DocumentModelFieldRef, FieldRef, FlowRef, OutputPropertyRef, SearchTableRef, SkillRef, TableColumnRef, TableRef, TriggerParameterRef } from "./types.js";
|
|
23
|
+
/** Fixed platform user-directory schema used by userSearch filters. */
|
|
24
|
+
export declare const usersCatalog: {
|
|
25
|
+
readonly fields: {
|
|
26
|
+
readonly firstName: {
|
|
27
|
+
readonly __kind: "userField";
|
|
28
|
+
readonly refName: "firstName";
|
|
29
|
+
readonly name: "firstName";
|
|
30
|
+
readonly fieldType: "TEXT";
|
|
31
|
+
};
|
|
32
|
+
readonly email: {
|
|
33
|
+
readonly __kind: "userField";
|
|
34
|
+
readonly refName: "email";
|
|
35
|
+
readonly name: "email";
|
|
36
|
+
readonly fieldType: "TEXT";
|
|
37
|
+
};
|
|
38
|
+
readonly jobTitle: {
|
|
39
|
+
readonly __kind: "userField";
|
|
40
|
+
readonly refName: "jobTitle";
|
|
41
|
+
readonly name: "jobTitle";
|
|
42
|
+
readonly fieldType: "TEXT";
|
|
43
|
+
};
|
|
44
|
+
readonly lastName: {
|
|
45
|
+
readonly __kind: "userField";
|
|
46
|
+
readonly refName: "lastName";
|
|
47
|
+
readonly name: "lastName";
|
|
48
|
+
readonly fieldType: "TEXT";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
/** An app/element catalog's bags: reference-only kinds plus behavioral kinds sourced from authoring files. */
|
|
53
|
+
interface AppCatalogBags {
|
|
54
|
+
readonly fields?: Record<string, FieldRef>;
|
|
55
|
+
readonly searchTables?: Record<string, SearchTableRef>;
|
|
56
|
+
readonly fileReaders?: Record<string, FileReaderCatalogRef>;
|
|
57
|
+
readonly automations?: Record<string, AutomationCatalogRef>;
|
|
58
|
+
readonly agents?: Record<string, AgentRef>;
|
|
59
|
+
readonly skills?: Record<string, SkillRef>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Automation ref. Accepts optional `trigger` and `outputs` bags of typed parameter/property refs —
|
|
63
|
+
* e.g. `automationRef({ trigger: { topic: triggerParameterRef({ name: "topic", parent: "auto" }) } })`
|
|
64
|
+
* gives `catalog.app.automations.auto.trigger.topic` as a typed `TriggerParameterRef` usable in
|
|
65
|
+
* `executeWorkflow` inputs. `handle` and `parent` are injected by the enclosing `appCatalog`/
|
|
66
|
+
* `elementCatalog`; factory calls need not supply them.
|
|
67
|
+
*
|
|
68
|
+
* Generic parameters `T`/`O` preserve specific key shapes on the returned ref so TypeScript can
|
|
69
|
+
* narrow `.trigger.<name>` and `.outputs.<name>` at the call site.
|
|
70
|
+
*/
|
|
71
|
+
export declare function automationRef<T extends Readonly<Record<string, TriggerParameterRef>> | undefined = undefined, O extends Readonly<Record<string, OutputPropertyRef>> | undefined = undefined>(opts?: {
|
|
72
|
+
readonly trigger?: T;
|
|
73
|
+
readonly outputs?: O;
|
|
74
|
+
}): AutomationCatalogRef & {
|
|
75
|
+
readonly trigger: T;
|
|
76
|
+
readonly outputs: O;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Build a trigger parameter ref — keyed by parameter name; `parent` is the
|
|
80
|
+
* owning automation's refName. `const T` (not plain `T`) so `required: true`
|
|
81
|
+
* infers as the LITERAL — that literal is what `agentRunAutomation`'s mapped
|
|
82
|
+
* input types key off (same trick as {@link fieldRef}'s `fieldType`).
|
|
83
|
+
*/
|
|
84
|
+
export declare const triggerParameterRef: <const T extends {
|
|
85
|
+
readonly name: string;
|
|
86
|
+
readonly parent: string;
|
|
87
|
+
readonly required?: true;
|
|
88
|
+
}>(opts: T) => T & {
|
|
89
|
+
readonly __kind: "triggerParameter";
|
|
90
|
+
readonly refName: string;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Document model ref. Accepts an optional `fields` bag of typed field refs —
|
|
94
|
+
* mirrors {@link automationRef}'s `trigger`/`outputs` bags. `handle` and
|
|
95
|
+
* `parent` are injected by the enclosing `appCatalog`/`elementCatalog`;
|
|
96
|
+
* factory calls need no `parent` argument.
|
|
97
|
+
*/
|
|
98
|
+
export declare function documentModelRef<F extends Readonly<Record<string, DocumentModelFieldRef>> | undefined = undefined>(opts: {
|
|
99
|
+
readonly name: string;
|
|
100
|
+
readonly parent?: string;
|
|
101
|
+
readonly readerType: FileReaderCatalogRef["readerType"];
|
|
102
|
+
readonly fields?: F;
|
|
103
|
+
}): FileReaderCatalogRef & {
|
|
104
|
+
readonly fields: F;
|
|
105
|
+
};
|
|
106
|
+
/** Build a document model field ref — keyed by field name; `parent` is the owning document model's refName. */
|
|
107
|
+
export declare function documentModelFieldRef(opts: {
|
|
108
|
+
readonly name: string;
|
|
109
|
+
readonly parent: string;
|
|
110
|
+
}): DocumentModelFieldRef;
|
|
111
|
+
/** Build an output property ref — keyed by property name; `parent` is the owning automation's refName. */
|
|
112
|
+
export declare function outputPropertyRef(opts: {
|
|
113
|
+
readonly name: string;
|
|
114
|
+
readonly parent: string;
|
|
115
|
+
}): OutputPropertyRef;
|
|
116
|
+
/**
|
|
117
|
+
* Agent ref — no required arguments. `handle` and `parent` are injected by the enclosing
|
|
118
|
+
* `appCatalog`/`elementCatalog`; `name` defaults to `""`.
|
|
119
|
+
*/
|
|
120
|
+
export declare function agentRef(opts?: {
|
|
121
|
+
readonly name?: string;
|
|
122
|
+
readonly parent?: string;
|
|
123
|
+
}): AgentRef;
|
|
124
|
+
/**
|
|
125
|
+
* Skill ref — no required arguments, same shape as {@link agentRef}. `handle` and `parent`
|
|
126
|
+
* are injected by the enclosing `appCatalog`/`elementCatalog`; `name` defaults to `""`.
|
|
127
|
+
*/
|
|
128
|
+
export declare function skillRef(opts?: {
|
|
129
|
+
readonly name?: string;
|
|
130
|
+
readonly parent?: string;
|
|
131
|
+
}): SkillRef;
|
|
132
|
+
export declare const flowRef: (opts: Omit<FlowRef, "refName" | "__kind">) => Omit<FlowRef, "refName" | "__kind"> & {
|
|
133
|
+
readonly __kind: "flow";
|
|
134
|
+
readonly refName: string;
|
|
135
|
+
};
|
|
136
|
+
export declare const approvalChainRef: (opts: Omit<ApprovalChainRef, "refName" | "__kind">) => Omit<ApprovalChainRef, "refName" | "__kind"> & {
|
|
137
|
+
readonly __kind: "approvalChain";
|
|
138
|
+
readonly refName: string;
|
|
139
|
+
};
|
|
140
|
+
export declare const searchTableRef: (opts: Omit<SearchTableRef, "refName" | "__kind">) => Omit<SearchTableRef, "refName" | "__kind"> & {
|
|
141
|
+
readonly __kind: "searchTable";
|
|
142
|
+
readonly refName: string;
|
|
143
|
+
};
|
|
144
|
+
export declare const connectorRef: (opts: Omit<ConnectorRef, "refName" | "__kind">) => Omit<ConnectorRef, "refName" | "__kind"> & {
|
|
145
|
+
readonly __kind: "connector";
|
|
146
|
+
readonly refName: string;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* AI provider ref — reference only, the provider must already exist on the
|
|
150
|
+
* platform (never created/deployed). Accepts an optional `models` bag whose
|
|
151
|
+
* entries are either connector refs (`connectorRef({ name })`, what `pull
|
|
152
|
+
* org` always emits) or a bare model literal naming a connector to create
|
|
153
|
+
* for that model — type-checked against `type`'s valid models
|
|
154
|
+
* (`AiProviderLlmModel`). `handle` is injected by the enclosing
|
|
155
|
+
* `orgCatalog`, which also stamps each nested ref-shaped model's `.parent`
|
|
156
|
+
* to this provider's own key.
|
|
157
|
+
*
|
|
158
|
+
* A hand-rolled generic (not built through `refFactory`, which fixes its
|
|
159
|
+
* type parameter once at definition time and would widen `type` away from
|
|
160
|
+
* its literal) — same `const T extends ...` trick as {@link fieldRef} so
|
|
161
|
+
* `type: "anthropic"` narrows which models are valid at each call site.
|
|
162
|
+
*/
|
|
163
|
+
export declare function defineAiProvider<T extends AiProviderType, M extends Readonly<Record<string, ConnectorRef | AiProviderLlmModel<T>>> | undefined = undefined>(opts: {
|
|
164
|
+
readonly name: string;
|
|
165
|
+
readonly type: T;
|
|
166
|
+
readonly models?: M;
|
|
167
|
+
}): AiProviderRef<T> & {
|
|
168
|
+
readonly models: M;
|
|
169
|
+
};
|
|
170
|
+
export declare const cloudLinkRef: (opts: Omit<CloudLinkRef, "refName" | "__kind">) => Omit<CloudLinkRef, "refName" | "__kind"> & {
|
|
171
|
+
readonly __kind: "cloudLink";
|
|
172
|
+
readonly refName: string;
|
|
173
|
+
};
|
|
174
|
+
export declare const categoryRef: (opts: Omit<CategoryRef, "refName" | "__kind">) => Omit<CategoryRef, "refName" | "__kind"> & {
|
|
175
|
+
readonly __kind: "category";
|
|
176
|
+
readonly refName: string;
|
|
177
|
+
};
|
|
178
|
+
export declare const groupRef: (opts: Omit<GroupRef, "refName" | "__kind">) => Omit<GroupRef, "refName" | "__kind"> & {
|
|
179
|
+
readonly __kind: "group";
|
|
180
|
+
readonly refName: string;
|
|
181
|
+
};
|
|
182
|
+
export declare function tableColumnRef(opts: Omit<TableColumnRef, "__kind" | "refName" | "parent"> & {
|
|
183
|
+
readonly parent?: string;
|
|
184
|
+
}): TableColumnRef;
|
|
185
|
+
export declare function tableRef(opts: Omit<TableRef, "__kind" | "refName">): TableRef;
|
|
186
|
+
/**
|
|
187
|
+
* `refName` is optional and defaults to `name` — for a caller with no bag-key
|
|
188
|
+
* context (e.g. a cross-aspect field ref where the field belongs to an aspect
|
|
189
|
+
* that isn't being printed in this pass), matching resolution falls back to
|
|
190
|
+
* `name`. A caller that *does* know the field's real bag key (its own app's
|
|
191
|
+
* pull printer, printing a display-block/parentField/calc reference to one of
|
|
192
|
+
* its own fields) should pass it explicitly — that's what lets the reference
|
|
193
|
+
* survive a later `name` rename instead of going stale (#230).
|
|
194
|
+
*
|
|
195
|
+
* `const T` (not plain `T`) so `fieldType: "PICKLIST"` infers as the literal,
|
|
196
|
+
* not widened to `string` — required for `RecordShape` (`entities/field/record-shape.ts`)
|
|
197
|
+
* to discriminate per-field value types from a catalog app's `fields` bag.
|
|
198
|
+
*/
|
|
199
|
+
export declare const fieldRef: <const T extends Omit<FieldRef, "__kind" | "refName"> & {
|
|
200
|
+
readonly refName?: string;
|
|
201
|
+
}>(opts: T) => T & {
|
|
202
|
+
readonly __kind: "field";
|
|
203
|
+
readonly refName: string;
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Assemble an app catalog object. Injects `__kind: "app"` so the result
|
|
207
|
+
* satisfies `CatalogRef<"app">` (accepted by aspect-ref parameters) without
|
|
208
|
+
* any raw `__kind` string in the call site. `B` is inferred from the bags
|
|
209
|
+
* argument, preserving specific field / search-table key shapes. Every bag
|
|
210
|
+
* entry's `.handle` is stamped from its own key. Automation, agent, skill,
|
|
211
|
+
* and search-table entries also get `.parent` injected from
|
|
212
|
+
* `identity.refName` — their factory calls (`automationRef()`, `agentRef()`,
|
|
213
|
+
* `searchTableRef({ name })`, …) need no `parent` argument.
|
|
214
|
+
*/
|
|
215
|
+
export declare function appCatalog<B extends AppCatalogBags>(identity: {
|
|
216
|
+
readonly refName: string;
|
|
217
|
+
readonly name: string;
|
|
218
|
+
}, bags: B): CatalogRef<"app"> & B;
|
|
219
|
+
/** Same as {@link appCatalog}, but for an element catalog root. */
|
|
220
|
+
export declare function elementCatalog<B extends AppCatalogBags>(identity: {
|
|
221
|
+
readonly refName: string;
|
|
222
|
+
readonly name: string;
|
|
223
|
+
}, bags: B): CatalogRef<"element"> & B;
|
|
224
|
+
/**
|
|
225
|
+
* Assemble the org catalog object. Produces `{ handle: "org", name: "Org", ...bags }`.
|
|
226
|
+
* No `__kind` — the org is not a `CatalogRef` kind and is referenced only as
|
|
227
|
+
* a namespace (`org.aiProviders.X.models.Y`, `org.cloudLinks.Y`), never passed as a ref.
|
|
228
|
+
* `"org"` is a fixed singleton namespace, not derived from any entity's name —
|
|
229
|
+
* unlike every other identity in this file, it's not a ref name. Bag entries'
|
|
230
|
+
* `.handle` are stamped from their own key, same as `appCatalog`.
|
|
231
|
+
*/
|
|
232
|
+
export declare function orgCatalog<B extends {
|
|
233
|
+
aiProviders?: Record<string, AiProviderRef>;
|
|
234
|
+
cloudLinks?: Record<string, CloudLinkRef>;
|
|
235
|
+
categories?: Record<string, CategoryRef>;
|
|
236
|
+
groups?: Record<string, GroupRef>;
|
|
237
|
+
tables?: Record<string, TableRef>;
|
|
238
|
+
}>(bags: B): {
|
|
239
|
+
readonly handle: "org";
|
|
240
|
+
readonly name: "Org";
|
|
241
|
+
} & B;
|
|
242
|
+
export {};
|