@elementumai/edk 0.0.0-oidc-bootstrap → 0.8.0-preview.11
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 +408 -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/factories.d.ts +189 -0
- package/dist-sdk/src/catalog/factories.js +202 -0
- package/dist-sdk/src/catalog/from-authoring.d.ts +103 -0
- package/dist-sdk/src/catalog/from-authoring.js +462 -0
- package/dist-sdk/src/catalog/index.d.ts +11 -0
- package/dist-sdk/src/catalog/index.js +11 -0
- package/dist-sdk/src/catalog/org.d.ts +11 -0
- package/dist-sdk/src/catalog/org.js +211 -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 +36 -0
- package/dist-sdk/src/catalog/render.js +176 -0
- package/dist-sdk/src/catalog/token.d.ts +10 -0
- package/dist-sdk/src/catalog/token.js +62 -0
- package/dist-sdk/src/catalog/types.d.ts +158 -0
- package/dist-sdk/src/catalog/types.js +83 -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 +93 -0
- package/dist-sdk/src/core/system-fields.js +151 -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 +36 -0
- package/dist-sdk/src/core/types/ai-provider.js +32 -0
- package/dist-sdk/src/core/types/app.d.ts +838 -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 +49 -0
- package/dist-sdk/src/engine/build/context.js +6 -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 +23 -0
- package/dist-sdk/src/engine/pull/context.js +44 -0
- package/dist-sdk/src/engine/pull/org.d.ts +44 -0
- package/dist-sdk/src/engine/pull/org.js +104 -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 +31 -0
- package/dist-sdk/src/engine/tf/labels.js +125 -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/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 +18 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +177 -0
- package/dist-sdk/src/entities/agent/from-tf.d.ts +50 -0
- package/dist-sdk/src/entities/agent/from-tf.js +169 -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 +116 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/agent/to-tf.js +136 -0
- package/dist-sdk/src/entities/agent/tools.d.ts +205 -0
- package/dist-sdk/src/entities/agent/tools.js +199 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +63 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.js +169 -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 +38 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.js +164 -0
- package/dist-sdk/src/entities/agent-tool/types.d.ts +42 -0
- package/dist-sdk/src/entities/agent-tool/types.js +70 -0
- package/dist-sdk/src/entities/app/build.d.ts +318 -0
- package/dist-sdk/src/entities/app/build.js +325 -0
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +165 -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 +180 -0
- package/dist-sdk/src/entities/app/index.d.ts +11 -0
- package/dist-sdk/src/entities/app/index.js +10 -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 +59 -0
- package/dist-sdk/src/entities/app/to-tf.d.ts +28 -0
- package/dist-sdk/src/entities/app/to-tf.js +183 -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 +215 -0
- package/dist-sdk/src/entities/automation/build.js +424 -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 +135 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.js +13 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +40 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +1040 -0
- package/dist-sdk/src/entities/automation/filter.d.ts +81 -0
- package/dist-sdk/src/entities/automation/filter.js +146 -0
- package/dist-sdk/src/entities/automation/from-tf.d.ts +36 -0
- package/dist-sdk/src/entities/automation/from-tf.js +252 -0
- package/dist-sdk/src/entities/automation/index.d.ts +18 -0
- package/dist-sdk/src/entities/automation/index.js +21 -0
- package/dist-sdk/src/entities/automation/module.d.ts +3 -0
- package/dist-sdk/src/entities/automation/module.js +153 -0
- package/dist-sdk/src/entities/automation/operators.d.ts +66 -0
- package/dist-sdk/src/entities/automation/operators.js +43 -0
- package/dist-sdk/src/entities/automation/script-code.d.ts +62 -0
- package/dist-sdk/src/entities/automation/script-code.js +366 -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 +535 -0
- package/dist-sdk/src/entities/automation/tasks.js +697 -0
- package/dist-sdk/src/entities/automation/to-tf.d.ts +38 -0
- package/dist-sdk/src/entities/automation/to-tf.js +266 -0
- package/dist-sdk/src/entities/automation/triggers.d.ts +197 -0
- package/dist-sdk/src/entities/automation/triggers.js +202 -0
- package/dist-sdk/src/entities/automation/types.d.ts +53 -0
- package/dist-sdk/src/entities/automation/types.js +101 -0
- package/dist-sdk/src/entities/automation/value-ref-tf.d.ts +76 -0
- package/dist-sdk/src/entities/automation/value-ref-tf.js +190 -0
- package/dist-sdk/src/entities/element/build.d.ts +108 -0
- package/dist-sdk/src/entities/element/build.js +109 -0
- package/dist-sdk/src/entities/element/from-tf.d.ts +19 -0
- package/dist-sdk/src/entities/element/from-tf.js +155 -0
- package/dist-sdk/src/entities/element/index.d.ts +9 -0
- package/dist-sdk/src/entities/element/index.js +9 -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 +63 -0
- package/dist-sdk/src/entities/element/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/element/to-tf.js +151 -0
- package/dist-sdk/src/entities/field/build.d.ts +69 -0
- package/dist-sdk/src/entities/field/build.js +74 -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 +170 -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 +29 -0
- package/dist-sdk/src/entities/field/from-tf.js +73 -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 +49 -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 +55 -0
- package/dist-sdk/src/entities/field/to-tf.js +97 -0
- package/dist-sdk/src/entities/field/types.d.ts +27 -0
- package/dist-sdk/src/entities/field/types.js +46 -0
- package/dist-sdk/src/entities/file-reader/build.d.ts +124 -0
- package/dist-sdk/src/entities/file-reader/build.js +105 -0
- package/dist-sdk/src/entities/file-reader/index.d.ts +5 -0
- package/dist-sdk/src/entities/file-reader/index.js +5 -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/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 +5 -0
- package/dist-sdk/src/entities/org/connector.js +37 -0
- package/dist-sdk/src/entities/org/group.d.ts +5 -0
- package/dist-sdk/src/entities/org/group.js +31 -0
- package/dist-sdk/src/entities/org/index.d.ts +10 -0
- package/dist-sdk/src/entities/org/index.js +10 -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 +21 -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 +242 -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/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 +49 -0
- package/dist-sdk/src/entities/shared/types/field-types.js +48 -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 +20 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +96 -0
- package/dist-sdk/src/entities/skill/from-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/from-tf.js +95 -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 +106 -0
- package/dist-sdk/src/entities/skill/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/to-tf.js +58 -0
- package/dist-sdk/src/entities/skill/tools.d.ts +71 -0
- package/dist-sdk/src/entities/skill/tools.js +88 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +47 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.js +121 -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 +32 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.js +107 -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 +25 -0
- package/dist-sdk/src/entities/view/from-tf.js +233 -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 +63 -0
- package/dist-sdk/src/entities/view/to-tf.js +156 -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 +14 -0
- package/dist-sdk/src/graph/deferred-catalog-render.js +37 -0
- package/dist-sdk/src/graph/index.d.ts +83 -0
- package/dist-sdk/src/graph/index.js +207 -0
- package/dist-sdk/src/graph/modules.d.ts +7 -0
- package/dist-sdk/src/graph/modules.js +37 -0
- package/dist-sdk/src/graph/types.d.ts +301 -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 +173 -8
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* v2 automation task factories. Each returns a {@link TaskDef}: the one-of
|
|
3
|
+
* discriminator `key` + the task's inner `config` (minus `name`, which the
|
|
4
|
+
* builder injects), plus the typed output exposed as `ctx.tasks.<name>`.
|
|
5
|
+
*
|
|
6
|
+
* Wire shapes mirror v1's `task-serializer.ts` exactly. Two reference
|
|
7
|
+
* conventions:
|
|
8
|
+
* - **id slots** (`aspectId`, `aspectFieldId`, `agentId`, `relatedAspectId`)
|
|
9
|
+
* hold `CatalogRef` tokens, resolved at deploy by `resolvePayload`.
|
|
10
|
+
* - **value slots** (a field's value, an email body, a record reference)
|
|
11
|
+
* accept a literal or a `ctx` `Ref` and are pre-serialized to the platform's
|
|
12
|
+
* `ValueReference` JSON via the shared, agnostic `serializeValueOrRef`.
|
|
13
|
+
*/
|
|
14
|
+
import type { AgentRef, AspectRef, AutomationRef, ConnectorRef, FileReaderCatalogRef, DocumentModelFieldRef, FieldRef, SearchTableRef } from "../../catalog/index.js";
|
|
15
|
+
import type { RecordShape } from "../field/record-shape.js";
|
|
16
|
+
import type { ValueOrRef } from "../shared/ref.js";
|
|
17
|
+
import type { TaskDef } from "./build.js";
|
|
18
|
+
import type { Filter } from "./filter.js";
|
|
19
|
+
import { type ScriptCodeFn } from "./script-code.js";
|
|
20
|
+
/** A field assignment: which field, and the value (literal or `ctx` ref). */
|
|
21
|
+
export interface FieldAssignment {
|
|
22
|
+
readonly field: FieldRef;
|
|
23
|
+
readonly value: ValueOrRef<unknown>;
|
|
24
|
+
}
|
|
25
|
+
export interface RecordSearchOutput<A extends AspectRef = AspectRef> {
|
|
26
|
+
readonly records: readonly RecordShape<A>[];
|
|
27
|
+
readonly record: RecordShape<A>;
|
|
28
|
+
readonly totalCount: number;
|
|
29
|
+
}
|
|
30
|
+
export interface RecordSearchOptions<A extends AspectRef = AspectRef> {
|
|
31
|
+
readonly app: A;
|
|
32
|
+
/** Required — the platform rejects a record search with no filter (use `filter.whereTrue()` for all). */
|
|
33
|
+
readonly filter: Filter;
|
|
34
|
+
readonly sort?: Record<string, unknown>;
|
|
35
|
+
readonly limit?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function recordSearch<A extends AspectRef>(opts: RecordSearchOptions<A>): TaskDef<RecordSearchOutput<A>>;
|
|
38
|
+
export interface TableRecordsSearchOutput<A extends AspectRef = AspectRef> {
|
|
39
|
+
readonly records: readonly RecordShape<A>[];
|
|
40
|
+
readonly record: RecordShape<A>;
|
|
41
|
+
readonly totalCount: number;
|
|
42
|
+
}
|
|
43
|
+
export interface TableRecordsSearchOptions<A extends AspectRef = AspectRef> {
|
|
44
|
+
/**
|
|
45
|
+
* Table id. Unlike `app`/`aspectId` slots, this is a raw string, not a
|
|
46
|
+
* catalog token — tables have no import/reference mechanism yet (they're
|
|
47
|
+
* create-only), so an existing table can't be minted into `@catalog` the
|
|
48
|
+
* way an app or connector can. Mirrors `approvalChainTemplateId`'s same
|
|
49
|
+
* raw-id convention for a referenced-but-not-catalog-modeled entity.
|
|
50
|
+
*/
|
|
51
|
+
readonly table: string;
|
|
52
|
+
/**
|
|
53
|
+
* The app/element this table derives from — authoring-time only, purely to
|
|
54
|
+
* type `record`/`records` via `RecordShape<A>` (a table's own fields aren't
|
|
55
|
+
* catalog-modeled, so this is the only field-typed source available).
|
|
56
|
+
* Never sent to the platform.
|
|
57
|
+
*/
|
|
58
|
+
readonly source?: A;
|
|
59
|
+
/**
|
|
60
|
+
* Table fields aren't catalog-modeled either (same reasoning as `table`
|
|
61
|
+
* above — mirrors table join fields' raw-id convention), so build with a
|
|
62
|
+
* raw wire filter shape directly, e.g.
|
|
63
|
+
* `{ type: "IS_NULL", field: "<tableFieldId>", not: true }`, rather than
|
|
64
|
+
* through the `filter.*` DSL (which resolves `FieldRef` catalog tokens).
|
|
65
|
+
*/
|
|
66
|
+
readonly filter?: Filter;
|
|
67
|
+
readonly limit?: number;
|
|
68
|
+
}
|
|
69
|
+
export declare function tableRecordsSearch<A extends AspectRef = AspectRef>(opts: TableRecordsSearchOptions<A>): TaskDef<TableRecordsSearchOutput<A>>;
|
|
70
|
+
export interface CreateRecordOutput<A extends AspectRef = AspectRef> {
|
|
71
|
+
readonly record: RecordShape<A>;
|
|
72
|
+
}
|
|
73
|
+
export interface CreateRecordOptions<A extends AspectRef = AspectRef> {
|
|
74
|
+
readonly app: A;
|
|
75
|
+
readonly fields: readonly FieldAssignment[];
|
|
76
|
+
/** Relate the new record to `record` (the triggering/source record). */
|
|
77
|
+
readonly relateToRecord?: boolean;
|
|
78
|
+
/** A record reference to relate to, when `relateToRecord` is set. */
|
|
79
|
+
readonly record?: ValueOrRef<unknown>;
|
|
80
|
+
}
|
|
81
|
+
export declare function createRecord<A extends AspectRef>(opts: CreateRecordOptions<A>): TaskDef<CreateRecordOutput<A>>;
|
|
82
|
+
export interface UpdateFieldOptions<A extends AspectRef = AspectRef> {
|
|
83
|
+
readonly app: A;
|
|
84
|
+
/** The record to update (e.g. `ctx.trigger.record`). */
|
|
85
|
+
readonly record: ValueOrRef<unknown>;
|
|
86
|
+
readonly fields: readonly FieldAssignment[];
|
|
87
|
+
}
|
|
88
|
+
export declare function updateField<A extends AspectRef>(opts: UpdateFieldOptions<A>): TaskDef<{
|
|
89
|
+
record: RecordShape<A>;
|
|
90
|
+
}>;
|
|
91
|
+
export interface FindRelatedRecordsOptions<A extends AspectRef = AspectRef> {
|
|
92
|
+
readonly relatedApp: A;
|
|
93
|
+
/** The record whose related records to find. */
|
|
94
|
+
readonly record: ValueOrRef<unknown>;
|
|
95
|
+
readonly filter?: Filter;
|
|
96
|
+
readonly sort?: Record<string, unknown>;
|
|
97
|
+
readonly limit?: number;
|
|
98
|
+
}
|
|
99
|
+
export declare function findRelatedRecords<A extends AspectRef>(opts: FindRelatedRecordsOptions<A>): TaskDef<RecordSearchOutput<A>>;
|
|
100
|
+
export interface RelateRecordsOptions {
|
|
101
|
+
/** One or more source record references. */
|
|
102
|
+
readonly sources: readonly ValueOrRef<unknown>[];
|
|
103
|
+
readonly target: ValueOrRef<unknown>;
|
|
104
|
+
}
|
|
105
|
+
export declare function relateRecords(opts: RelateRecordsOptions): TaskDef<Record<string, never>>;
|
|
106
|
+
/** An email attachment: a literal/ref file value, or an existing record's attachment field to reuse. */
|
|
107
|
+
export type EmailAttachment = {
|
|
108
|
+
readonly file: ValueOrRef<unknown>;
|
|
109
|
+
} | {
|
|
110
|
+
readonly fromRecord: ValueOrRef<unknown>;
|
|
111
|
+
};
|
|
112
|
+
export interface SendEmailOptions {
|
|
113
|
+
readonly subject: ValueOrRef<unknown>;
|
|
114
|
+
readonly body: ValueOrRef<unknown>;
|
|
115
|
+
readonly fromUsername?: string;
|
|
116
|
+
readonly fromDisplayName?: string;
|
|
117
|
+
/** Recipient user references. */
|
|
118
|
+
readonly toUsers?: readonly ValueOrRef<unknown>[];
|
|
119
|
+
/** Recipient group references. */
|
|
120
|
+
readonly toGroups?: readonly ValueOrRef<unknown>[];
|
|
121
|
+
/** Literal email addresses. */
|
|
122
|
+
readonly toAddresses?: readonly ValueOrRef<unknown>[];
|
|
123
|
+
readonly attachments?: readonly EmailAttachment[];
|
|
124
|
+
}
|
|
125
|
+
export declare function sendEmail(opts: SendEmailOptions): TaskDef<Record<string, never>>;
|
|
126
|
+
export interface PostCommentOptions {
|
|
127
|
+
readonly contents: ValueOrRef<unknown>;
|
|
128
|
+
/** Conversation tags — at least one required. */
|
|
129
|
+
readonly tags: readonly string[];
|
|
130
|
+
/** The record to comment on (required). */
|
|
131
|
+
readonly record: ValueOrRef<unknown>;
|
|
132
|
+
}
|
|
133
|
+
export declare function postComment(opts: PostCommentOptions): TaskDef<Record<string, never>>;
|
|
134
|
+
/** Declared scalar type of one aiAgent structured-output field. */
|
|
135
|
+
export type AiAgentOutputFieldType = "text" | "number" | "decimal" | "boolean" | "date" | "datetime";
|
|
136
|
+
export interface AiAgentOutputField {
|
|
137
|
+
readonly type: AiAgentOutputFieldType;
|
|
138
|
+
readonly description?: string;
|
|
139
|
+
}
|
|
140
|
+
/** TS type a structured-output field of the given declared type resolves to. */
|
|
141
|
+
type AiAgentFieldTs<T extends AiAgentOutputFieldType> = T extends "number" | "decimal" ? number : T extends "boolean" ? boolean : string;
|
|
142
|
+
/**
|
|
143
|
+
* Output shape exposed as `ctx.tasks.<name>` for an aiAgent task — always under
|
|
144
|
+
* a single `result` accessor. Text output is `result: string`; json output is
|
|
145
|
+
* `result: { <field>: … }` over the declared `schema`. The platform's wire
|
|
146
|
+
* reference names (`ai_agent_task_response` / `ai_agent_task_structured_output.<field>`)
|
|
147
|
+
* are applied by the workflow serializer; in source you always read `result`.
|
|
148
|
+
*/
|
|
149
|
+
export type AiAgentOutput<S extends Record<string, AiAgentOutputField> | undefined> = S extends Record<string, AiAgentOutputField> ? {
|
|
150
|
+
readonly result: {
|
|
151
|
+
readonly [K in keyof S]: AiAgentFieldTs<S[K]["type"]>;
|
|
152
|
+
};
|
|
153
|
+
} : {
|
|
154
|
+
readonly result: string;
|
|
155
|
+
};
|
|
156
|
+
export interface AiAgentOptions<S extends Record<string, AiAgentOutputField> | undefined = Record<string, AiAgentOutputField> | undefined> {
|
|
157
|
+
readonly agent: AgentRef;
|
|
158
|
+
readonly prompt: ValueOrRef<unknown>;
|
|
159
|
+
/** Required — `"text"` or `"json"`. `"json"` requires a `schema`. */
|
|
160
|
+
readonly outputType: "text" | "json";
|
|
161
|
+
/** Structured-output schema (field name → type/description). Required for `outputType: "json"`. */
|
|
162
|
+
readonly schema?: S;
|
|
163
|
+
/** Optional connector override. */
|
|
164
|
+
readonly connector?: ConnectorRef;
|
|
165
|
+
}
|
|
166
|
+
export declare function aiAgent<const S extends Record<string, AiAgentOutputField> | undefined = undefined>(opts: AiAgentOptions<S>): TaskDef<AiAgentOutput<S>>;
|
|
167
|
+
export interface VariableDecl {
|
|
168
|
+
/** Server-assigned id — omit when authoring a new variable; include when updating an existing one. */
|
|
169
|
+
readonly id?: string;
|
|
170
|
+
readonly name: string;
|
|
171
|
+
readonly type: string;
|
|
172
|
+
readonly value?: ValueOrRef<unknown>;
|
|
173
|
+
}
|
|
174
|
+
export interface VariableAssign {
|
|
175
|
+
readonly variable: ValueOrRef<unknown>;
|
|
176
|
+
readonly value: ValueOrRef<unknown>;
|
|
177
|
+
}
|
|
178
|
+
export interface SetVariableOptions {
|
|
179
|
+
readonly create?: readonly VariableDecl[];
|
|
180
|
+
readonly update?: readonly VariableAssign[];
|
|
181
|
+
}
|
|
182
|
+
export declare function setVariable(opts: SetVariableOptions): TaskDef<Record<string, never>>;
|
|
183
|
+
export interface ExecuteScriptOptions {
|
|
184
|
+
/**
|
|
185
|
+
* The script body as a string, or a FUNCTION whose body ships as the script
|
|
186
|
+
* (v3): `(input) => { const { X } = input.parameters; return { OUT: X }; }`.
|
|
187
|
+
* The function form matches the platform's real contract (`input.parameters.
|
|
188
|
+
* <name>`, mandatory plain-object return) and is serialized to TEXT — it must
|
|
189
|
+
* not close over outer variables (a best-effort scan throws on captures).
|
|
190
|
+
*/
|
|
191
|
+
readonly code: string | ScriptCodeFn<Record<string, unknown>, Record<string, unknown>>;
|
|
192
|
+
readonly inputs?: Record<string, ValueOrRef<unknown>>;
|
|
193
|
+
/** Output schema: property name → `"text" | "integer" | "number" | "decimal" | "boolean"`. */
|
|
194
|
+
readonly outputs?: Record<string, string>;
|
|
195
|
+
}
|
|
196
|
+
export declare function executeScript(opts: ExecuteScriptOptions): TaskDef<Record<string, unknown>>;
|
|
197
|
+
export interface ApiRequestHeader {
|
|
198
|
+
readonly name: string;
|
|
199
|
+
readonly value: ValueOrRef<unknown>;
|
|
200
|
+
}
|
|
201
|
+
export interface ApiRequestOptions {
|
|
202
|
+
readonly url: ValueOrRef<unknown>;
|
|
203
|
+
readonly method: string;
|
|
204
|
+
readonly headers?: readonly ApiRequestHeader[];
|
|
205
|
+
/** Pre-built wire authorization envelope (auth DSL finalized later). */
|
|
206
|
+
readonly authorization?: Record<string, unknown>;
|
|
207
|
+
/** Pre-built wire body envelope (body DSL finalized later). */
|
|
208
|
+
readonly body?: Record<string, unknown>;
|
|
209
|
+
readonly responseType?: string;
|
|
210
|
+
readonly continueOnError?: boolean;
|
|
211
|
+
}
|
|
212
|
+
export declare function apiRequest(opts: ApiRequestOptions): TaskDef<{
|
|
213
|
+
response: unknown;
|
|
214
|
+
}>;
|
|
215
|
+
export interface AiSearchTableOptions {
|
|
216
|
+
readonly table: SearchTableRef;
|
|
217
|
+
readonly query: ValueOrRef<unknown>;
|
|
218
|
+
readonly filter?: Filter;
|
|
219
|
+
readonly limit?: number;
|
|
220
|
+
}
|
|
221
|
+
export declare function aiSearchTable(opts: AiSearchTableOptions): TaskDef<RecordSearchOutput>;
|
|
222
|
+
export interface AiSummarizeOptions {
|
|
223
|
+
readonly text: ValueOrRef<unknown>;
|
|
224
|
+
readonly context?: ValueOrRef<unknown>;
|
|
225
|
+
/** Desired summary length, in sentences. Required, must be ≥ 1 (platform rejects 0/negative). */
|
|
226
|
+
readonly length: number;
|
|
227
|
+
readonly connector?: ConnectorRef;
|
|
228
|
+
}
|
|
229
|
+
export declare function aiSummarize(opts: AiSummarizeOptions): TaskDef<{
|
|
230
|
+
output: unknown;
|
|
231
|
+
}>;
|
|
232
|
+
export interface AiTransformOptions {
|
|
233
|
+
readonly prompt: ValueOrRef<unknown>;
|
|
234
|
+
/** Required — `BOOLEAN`, `DATE`, `DATETIME`, or `TEXT`. */
|
|
235
|
+
readonly fieldType: string;
|
|
236
|
+
readonly connector?: ConnectorRef;
|
|
237
|
+
}
|
|
238
|
+
export declare function aiTransform(opts: AiTransformOptions): TaskDef<{
|
|
239
|
+
output: unknown;
|
|
240
|
+
}>;
|
|
241
|
+
export interface AiEmailAnalysisOptions {
|
|
242
|
+
readonly emailBody: ValueOrRef<unknown>;
|
|
243
|
+
readonly emailSubject: ValueOrRef<unknown>;
|
|
244
|
+
readonly connector?: ConnectorRef;
|
|
245
|
+
}
|
|
246
|
+
export declare function aiEmailAnalysis(opts: AiEmailAnalysisOptions): TaskDef<{
|
|
247
|
+
output: unknown;
|
|
248
|
+
}>;
|
|
249
|
+
export interface AiFileAnalysisOptions {
|
|
250
|
+
readonly attachmentId: ValueOrRef<unknown>;
|
|
251
|
+
/** Required — the document model to analyze the file against. */
|
|
252
|
+
readonly documentModel: FileReaderCatalogRef;
|
|
253
|
+
readonly connector?: ConnectorRef;
|
|
254
|
+
}
|
|
255
|
+
export declare function aiFileAnalysis(opts: AiFileAnalysisOptions): TaskDef<{
|
|
256
|
+
output: unknown;
|
|
257
|
+
}>;
|
|
258
|
+
export interface AiClassifyStaticCategory {
|
|
259
|
+
readonly name: ValueOrRef<unknown>;
|
|
260
|
+
readonly description?: ValueOrRef<unknown>;
|
|
261
|
+
}
|
|
262
|
+
/** Where the classification categories come from: a static list or a related aspect. */
|
|
263
|
+
export type AiClassifyCategorySource = {
|
|
264
|
+
readonly type: "static";
|
|
265
|
+
readonly categories: readonly AiClassifyStaticCategory[];
|
|
266
|
+
} | {
|
|
267
|
+
readonly type: "dynamic";
|
|
268
|
+
readonly app: AspectRef;
|
|
269
|
+
readonly labelField: FieldRef;
|
|
270
|
+
readonly descriptionField?: FieldRef;
|
|
271
|
+
readonly filter?: Filter;
|
|
272
|
+
readonly limit?: number;
|
|
273
|
+
};
|
|
274
|
+
export interface AiClassifyOptions {
|
|
275
|
+
readonly text: ValueOrRef<unknown>;
|
|
276
|
+
readonly categorySource: AiClassifyCategorySource;
|
|
277
|
+
readonly context?: ValueOrRef<unknown>;
|
|
278
|
+
readonly connector?: ConnectorRef;
|
|
279
|
+
}
|
|
280
|
+
export declare function aiClassify(opts: AiClassifyOptions): TaskDef<{
|
|
281
|
+
output: unknown;
|
|
282
|
+
}>;
|
|
283
|
+
type Empty = Record<string, never>;
|
|
284
|
+
export interface NotificationOptions {
|
|
285
|
+
readonly title: ValueOrRef<string>;
|
|
286
|
+
readonly message: ValueOrRef<string>;
|
|
287
|
+
/** Plain-text description shown in the notification's metadata (not templated). */
|
|
288
|
+
readonly description?: string;
|
|
289
|
+
readonly userIds?: readonly string[];
|
|
290
|
+
readonly groupIds?: readonly string[];
|
|
291
|
+
readonly userRefs?: readonly ValueOrRef<string>[];
|
|
292
|
+
readonly groupRefs?: readonly ValueOrRef<string>[];
|
|
293
|
+
/** Also notify the record's watchers. */
|
|
294
|
+
readonly notifyWatchers?: boolean;
|
|
295
|
+
}
|
|
296
|
+
export declare function notification(opts: NotificationOptions): TaskDef<Empty>;
|
|
297
|
+
export interface FilterTaskOptions {
|
|
298
|
+
readonly condition: Filter;
|
|
299
|
+
}
|
|
300
|
+
export declare function filterTask(opts: FilterTaskOptions): TaskDef<Empty>;
|
|
301
|
+
export interface AssignUserOptions {
|
|
302
|
+
readonly field: FieldRef;
|
|
303
|
+
readonly userId: string;
|
|
304
|
+
}
|
|
305
|
+
export declare function assignUser(opts: AssignUserOptions): TaskDef<Empty>;
|
|
306
|
+
export interface AssignGroupOptions {
|
|
307
|
+
readonly field: FieldRef;
|
|
308
|
+
readonly groupId: string;
|
|
309
|
+
}
|
|
310
|
+
export declare function assignGroup(opts: AssignGroupOptions): TaskDef<Empty>;
|
|
311
|
+
export interface AddWatcherOptions {
|
|
312
|
+
readonly userIds?: readonly string[];
|
|
313
|
+
readonly groupIds?: readonly string[];
|
|
314
|
+
readonly userRefs?: readonly ValueOrRef<unknown>[];
|
|
315
|
+
readonly groupRefs?: readonly ValueOrRef<unknown>[];
|
|
316
|
+
readonly record?: ValueOrRef<unknown>;
|
|
317
|
+
}
|
|
318
|
+
export declare function addWatcher(opts: AddWatcherOptions): TaskDef<Empty>;
|
|
319
|
+
export interface RecordFieldLockingOptions {
|
|
320
|
+
readonly app: AspectRef;
|
|
321
|
+
readonly record: ValueOrRef<unknown>;
|
|
322
|
+
readonly fieldsToLock?: readonly FieldRef[];
|
|
323
|
+
readonly fieldsToUnlock?: readonly FieldRef[];
|
|
324
|
+
}
|
|
325
|
+
export declare function recordFieldLocking(opts: RecordFieldLockingOptions): TaskDef<Empty>;
|
|
326
|
+
export interface UserSearchOptions {
|
|
327
|
+
/** Pre-built wire filter over user attributes. */
|
|
328
|
+
readonly filter: Filter;
|
|
329
|
+
}
|
|
330
|
+
export declare function userSearch(opts: UserSearchOptions): TaskDef<RecordSearchOutput>;
|
|
331
|
+
export declare function userGroupSearch(opts: UserSearchOptions): TaskDef<RecordSearchOutput>;
|
|
332
|
+
export interface SaveAttachmentOptions {
|
|
333
|
+
readonly record: ValueOrRef<unknown>;
|
|
334
|
+
readonly file: ValueOrRef<unknown>;
|
|
335
|
+
readonly tag?: ValueOrRef<unknown>;
|
|
336
|
+
readonly viewState?: string;
|
|
337
|
+
}
|
|
338
|
+
export declare function saveAttachment(opts: SaveAttachmentOptions): TaskDef<Empty>;
|
|
339
|
+
export interface UnzipOptions {
|
|
340
|
+
readonly file: ValueOrRef<unknown>;
|
|
341
|
+
}
|
|
342
|
+
export declare function unzip(opts: UnzipOptions): TaskDef<Empty>;
|
|
343
|
+
export interface GenerateReportOptions {
|
|
344
|
+
readonly record: ValueOrRef<unknown>;
|
|
345
|
+
readonly reportId: string;
|
|
346
|
+
readonly reportType: string;
|
|
347
|
+
}
|
|
348
|
+
export declare function generateReport(opts: GenerateReportOptions): TaskDef<Empty>;
|
|
349
|
+
export interface PostTeamsMessageOptions {
|
|
350
|
+
readonly webhookUrl: string;
|
|
351
|
+
readonly contents: ValueOrRef<unknown>;
|
|
352
|
+
readonly title: ValueOrRef<unknown>;
|
|
353
|
+
readonly subtitle: ValueOrRef<unknown>;
|
|
354
|
+
readonly recordUrl?: ValueOrRef<unknown>;
|
|
355
|
+
readonly recordButtonText?: ValueOrRef<unknown>;
|
|
356
|
+
}
|
|
357
|
+
export declare function postTeamsMessage(opts: PostTeamsMessageOptions): TaskDef<Empty>;
|
|
358
|
+
export interface AssignmentEngineOptions {
|
|
359
|
+
readonly assignmentEngineId: string;
|
|
360
|
+
readonly record: ValueOrRef<unknown>;
|
|
361
|
+
}
|
|
362
|
+
export declare function assignmentEngine(opts: AssignmentEngineOptions): TaskDef<Empty>;
|
|
363
|
+
export interface ProcedureOptions {
|
|
364
|
+
readonly procedureId: string;
|
|
365
|
+
readonly cloudLinkId: string;
|
|
366
|
+
/** Positional arguments (index == position). */
|
|
367
|
+
readonly parameters?: readonly ValueOrRef<unknown>[];
|
|
368
|
+
}
|
|
369
|
+
export declare function procedure(opts: ProcedureOptions): TaskDef<{
|
|
370
|
+
output: unknown;
|
|
371
|
+
}>;
|
|
372
|
+
export interface InitiateCallOptions {
|
|
373
|
+
readonly agent: AgentRef;
|
|
374
|
+
readonly phoneServiceId: string;
|
|
375
|
+
readonly phoneNumber: ValueOrRef<unknown>;
|
|
376
|
+
readonly record: ValueOrRef<unknown>;
|
|
377
|
+
readonly language: ValueOrRef<unknown>;
|
|
378
|
+
readonly firstMessage: ValueOrRef<unknown>;
|
|
379
|
+
readonly context?: ValueOrRef<unknown>;
|
|
380
|
+
}
|
|
381
|
+
export declare function initiateCall(opts: InitiateCallOptions): TaskDef<Empty>;
|
|
382
|
+
export interface CalculationEntry {
|
|
383
|
+
/** Server-assigned entry id — omit when authoring a new calculation; include when updating an existing one (mirrors {@link VariableDecl.id}). */
|
|
384
|
+
readonly id?: string;
|
|
385
|
+
readonly name: string;
|
|
386
|
+
readonly expression: ValueOrRef<unknown>;
|
|
387
|
+
/**
|
|
388
|
+
* The calculation's declared result type (e.g. `"NUMBER"`, `"TEXT"`,
|
|
389
|
+
* `"DATETIME"`) — required. Without it the platform can't disambiguate how
|
|
390
|
+
* to evaluate `expression` (e.g. `"{{{field}}}+1"` as arithmetic vs. string
|
|
391
|
+
* concatenation) and rejects the request as malformed. Mirrors
|
|
392
|
+
* {@link VariableDecl.type}'s loose string typing.
|
|
393
|
+
*/
|
|
394
|
+
readonly outputType: string;
|
|
395
|
+
readonly record?: ValueOrRef<unknown>;
|
|
396
|
+
}
|
|
397
|
+
export interface CalculationOptions {
|
|
398
|
+
readonly calculations: readonly CalculationEntry[];
|
|
399
|
+
}
|
|
400
|
+
export declare function calculation(opts: CalculationOptions): TaskDef<Empty>;
|
|
401
|
+
export interface ApprovalStatusUpdateOptions {
|
|
402
|
+
readonly approvalChainTemplateId: string;
|
|
403
|
+
readonly record: ValueOrRef<unknown>;
|
|
404
|
+
readonly status: string;
|
|
405
|
+
readonly reason?: ValueOrRef<unknown>;
|
|
406
|
+
readonly tags?: ValueOrRef<unknown>;
|
|
407
|
+
}
|
|
408
|
+
export declare function approvalStatusUpdate(opts: ApprovalStatusUpdateOptions): TaskDef<Empty>;
|
|
409
|
+
export interface RunAutomationInput {
|
|
410
|
+
/** The target automation's trigger-parameter name. */
|
|
411
|
+
readonly name: string;
|
|
412
|
+
readonly value: ValueOrRef<unknown>;
|
|
413
|
+
}
|
|
414
|
+
export interface RunAutomationOptions {
|
|
415
|
+
readonly automation: AutomationRef;
|
|
416
|
+
readonly synchronous?: boolean;
|
|
417
|
+
/**
|
|
418
|
+
* Input mappings by parameter **name**. v2 uses the platform's dynamic-mapping
|
|
419
|
+
* path (name-resolved at runtime) — v1's static path resolves names to param
|
|
420
|
+
* ids at build time, which v2 can't do (trigger params aren't catalog-modeled).
|
|
421
|
+
*/
|
|
422
|
+
readonly inputs?: readonly RunAutomationInput[];
|
|
423
|
+
/** Output property names to surface. */
|
|
424
|
+
readonly outputs?: readonly string[];
|
|
425
|
+
}
|
|
426
|
+
export declare function runAutomation(opts: RunAutomationOptions): TaskDef<{
|
|
427
|
+
output: unknown;
|
|
428
|
+
}>;
|
|
429
|
+
export type ReadFileDataSource = {
|
|
430
|
+
readonly type: "attachmentId";
|
|
431
|
+
readonly value: ValueOrRef<unknown>;
|
|
432
|
+
} | {
|
|
433
|
+
readonly type: "attachment";
|
|
434
|
+
readonly value: ValueOrRef<unknown>;
|
|
435
|
+
} | {
|
|
436
|
+
readonly type: "file";
|
|
437
|
+
readonly value: ValueOrRef<unknown>;
|
|
438
|
+
} | {
|
|
439
|
+
readonly type: "rawText";
|
|
440
|
+
readonly value: ValueOrRef<unknown>;
|
|
441
|
+
};
|
|
442
|
+
export interface ReadFileOptions {
|
|
443
|
+
readonly fileReader: FileReaderCatalogRef;
|
|
444
|
+
readonly record?: ValueOrRef<unknown>;
|
|
445
|
+
readonly dataSource: ReadFileDataSource;
|
|
446
|
+
}
|
|
447
|
+
export declare function readFile(opts: ReadFileOptions): TaskDef<{
|
|
448
|
+
output: unknown;
|
|
449
|
+
}>;
|
|
450
|
+
export type BulkExcelFieldSource = {
|
|
451
|
+
readonly type: "documentModelField";
|
|
452
|
+
readonly field: DocumentModelFieldRef;
|
|
453
|
+
} | {
|
|
454
|
+
readonly type: "value";
|
|
455
|
+
readonly value: ValueOrRef<unknown>;
|
|
456
|
+
};
|
|
457
|
+
export interface BulkExcelFieldMapping {
|
|
458
|
+
readonly field: FieldRef;
|
|
459
|
+
readonly source: BulkExcelFieldSource;
|
|
460
|
+
}
|
|
461
|
+
export interface BulkExcelOptions {
|
|
462
|
+
readonly attachmentId: ValueOrRef<unknown>;
|
|
463
|
+
readonly documentModel: FileReaderCatalogRef;
|
|
464
|
+
readonly app: AspectRef;
|
|
465
|
+
readonly aspectType: string;
|
|
466
|
+
readonly strict?: boolean;
|
|
467
|
+
readonly fieldMappings: readonly BulkExcelFieldMapping[];
|
|
468
|
+
}
|
|
469
|
+
export declare function bulkExcel(opts: BulkExcelOptions): TaskDef<{
|
|
470
|
+
output: unknown;
|
|
471
|
+
}>;
|
|
472
|
+
export interface ApprovalChainOptions {
|
|
473
|
+
readonly approverIds?: readonly string[];
|
|
474
|
+
readonly approvers?: readonly ValueOrRef<unknown>[];
|
|
475
|
+
readonly reason?: ValueOrRef<unknown>;
|
|
476
|
+
readonly summary?: ValueOrRef<unknown>;
|
|
477
|
+
}
|
|
478
|
+
export declare function approvalChain(opts: ApprovalChainOptions): TaskDef<Empty>;
|
|
479
|
+
export interface ApprovalChainTemplateOptions {
|
|
480
|
+
/** Approval-chain template id (approval chains aren't catalog-modeled yet). */
|
|
481
|
+
readonly approvalChainTemplateId: string;
|
|
482
|
+
readonly requester: ValueOrRef<unknown>;
|
|
483
|
+
readonly record: ValueOrRef<unknown>;
|
|
484
|
+
readonly summary?: ValueOrRef<unknown>;
|
|
485
|
+
readonly reason?: ValueOrRef<unknown>;
|
|
486
|
+
readonly relatedRecord?: ValueOrRef<unknown>;
|
|
487
|
+
readonly tags?: ValueOrRef<unknown>;
|
|
488
|
+
/** Pre-built wire dynamic-approver entries. */
|
|
489
|
+
readonly dynamicApprovers?: readonly Record<string, unknown>[];
|
|
490
|
+
}
|
|
491
|
+
export declare function approvalChainTemplate(opts: ApprovalChainTemplateOptions): TaskDef<Empty>;
|
|
492
|
+
export interface SendSurveyOptions {
|
|
493
|
+
readonly record: ValueOrRef<unknown>;
|
|
494
|
+
readonly surveyTemplateId: ValueOrRef<unknown>;
|
|
495
|
+
readonly expirationDate: ValueOrRef<unknown>;
|
|
496
|
+
readonly dueDate: ValueOrRef<unknown>;
|
|
497
|
+
readonly reminderDate: ValueOrRef<unknown>;
|
|
498
|
+
readonly emailSubject: ValueOrRef<unknown>;
|
|
499
|
+
readonly instructions: ValueOrRef<unknown>;
|
|
500
|
+
readonly attachmentIds?: readonly ValueOrRef<unknown>[];
|
|
501
|
+
/** At least one of `userIds` / `groupIds` is required. */
|
|
502
|
+
readonly userIds?: readonly ValueOrRef<unknown>[];
|
|
503
|
+
readonly groupIds?: readonly ValueOrRef<unknown>[];
|
|
504
|
+
}
|
|
505
|
+
export declare function sendSurvey(opts: SendSurveyOptions): TaskDef<Empty>;
|
|
506
|
+
export interface InitiateEmailFirstEmail {
|
|
507
|
+
readonly context?: ValueOrRef<unknown>;
|
|
508
|
+
readonly contextEvaluationInstructions?: ValueOrRef<unknown>;
|
|
509
|
+
readonly firstMessage: {
|
|
510
|
+
readonly firstEmailMessage?: ValueOrRef<unknown>;
|
|
511
|
+
readonly firstEmailMessageGenerationInstructions?: ValueOrRef<unknown>;
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
export interface InitiateEmailConversationOptions {
|
|
515
|
+
readonly agent: AgentRef;
|
|
516
|
+
readonly emailAliasId: string;
|
|
517
|
+
readonly emailAddress: ValueOrRef<unknown>;
|
|
518
|
+
readonly emailName?: ValueOrRef<unknown>;
|
|
519
|
+
readonly record: ValueOrRef<unknown>;
|
|
520
|
+
readonly subjectGenerationInstructions?: ValueOrRef<unknown>;
|
|
521
|
+
/** Required — ISO-8601 duration after which an idle conversation closes (e.g. `"PT24H"`). */
|
|
522
|
+
readonly inactivityDeadline: string;
|
|
523
|
+
/** Required — the opening email (message or generation instructions). */
|
|
524
|
+
readonly firstEmail: InitiateEmailFirstEmail;
|
|
525
|
+
readonly emailAddressFieldId?: ValueOrRef<unknown>;
|
|
526
|
+
readonly emailNameFieldId?: ValueOrRef<unknown>;
|
|
527
|
+
readonly summaryFieldId?: ValueOrRef<unknown>;
|
|
528
|
+
readonly summaryPrompt?: ValueOrRef<unknown>;
|
|
529
|
+
readonly evaluationFieldId?: ValueOrRef<unknown>;
|
|
530
|
+
readonly evaluationPrompt?: ValueOrRef<unknown>;
|
|
531
|
+
}
|
|
532
|
+
export declare function initiateEmailConversation(opts: InitiateEmailConversationOptions): TaskDef<{
|
|
533
|
+
output: unknown;
|
|
534
|
+
}>;
|
|
535
|
+
export {};
|