@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,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical automation model shapes — single source of truth for
|
|
3
|
+
* every antman/mobius endpoint that returns an automation or any of
|
|
4
|
+
* its pieces:
|
|
5
|
+
*
|
|
6
|
+
* - `Aspect.automations` (catalog view from `GET /v1/apps/definition`)
|
|
7
|
+
* populates `Automation` with `id`, `name`, and shallow
|
|
8
|
+
* `workflowCurrent` / `workflowDraft` carrying trigger metadata.
|
|
9
|
+
* - `GET /api/v1/workflows/{id}` (full-state view from mobius)
|
|
10
|
+
* populates `Workflow` + `WorkflowTrigger` + `WorkflowTask` +
|
|
11
|
+
* `WorkflowOutput` with deeper runtime detail.
|
|
12
|
+
*
|
|
13
|
+
* Different endpoints populate different fields on the same types.
|
|
14
|
+
* Every field that isn't required by both callers is optional so the
|
|
15
|
+
* same shape covers both views without forcing synthetic "Ref" or
|
|
16
|
+
* "View" variants. Each field documents which endpoints drive it.
|
|
17
|
+
*/
|
|
18
|
+
import type { AutomationOwnerType, Owner } from "../../../../fs/entity.js";
|
|
19
|
+
import type { WorkflowFieldType } from "../../../../src/entities/shared/types/field-types.js";
|
|
20
|
+
export interface TriggerParameter {
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly name: string;
|
|
23
|
+
/**
|
|
24
|
+
* Field type of the parameter. Surfaced by antman's catalog endpoint
|
|
25
|
+
* directly from mobius's `ServiceTaskParam.fieldType` and always
|
|
26
|
+
* populated for onDemand triggers (verified live against
|
|
27
|
+
* `/v1/apps/definition`). The renderer translates this into the
|
|
28
|
+
* SDK-side `AppAutomationParam.type`.
|
|
29
|
+
*/
|
|
30
|
+
readonly fieldType: WorkflowFieldType;
|
|
31
|
+
readonly required?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface WorkflowTrigger {
|
|
34
|
+
/** Discriminator on the catalog view (`WorkflowOnDemandTrigger`, `WorkflowRecordCreateTrigger`, …). */
|
|
35
|
+
readonly __typename?: string;
|
|
36
|
+
readonly id: string;
|
|
37
|
+
/** Populated by the catalog view — pre-extracted onDemand inputs. */
|
|
38
|
+
readonly parameters?: readonly TriggerParameter[];
|
|
39
|
+
/** Populated by the full-state view — raw properties keyed by mobius's `type` discriminator. */
|
|
40
|
+
readonly properties?: {
|
|
41
|
+
readonly type: string;
|
|
42
|
+
readonly [key: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface WorkflowOutput {
|
|
46
|
+
/** Catalog gives a stable id; full-state omits it on in-line outputs. */
|
|
47
|
+
readonly id?: string;
|
|
48
|
+
readonly referenceId?: string;
|
|
49
|
+
readonly name: string;
|
|
50
|
+
/** Full-state view carries the runtime value reference; catalog does not. */
|
|
51
|
+
readonly value?: Record<string, unknown>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Inner task body — mirrors mobius's `WorkflowTask` Java record.
|
|
55
|
+
* Used in two places:
|
|
56
|
+
*
|
|
57
|
+
* 1. The catalog view (antman's `Aspect.automations.workflow*.tasks`)
|
|
58
|
+
* surfaces these directly with minimal fields ({id, __typename})
|
|
59
|
+
* so the agent can preview a workflow's task graph.
|
|
60
|
+
* 2. The full-state view nests these under a `WorkflowTaskView`
|
|
61
|
+
* wrapper that adds the server-derived `refKey` and grouped
|
|
62
|
+
* `children` operator structure.
|
|
63
|
+
*
|
|
64
|
+
* The `[key: string]: unknown` escape carries the metadata fields the
|
|
65
|
+
* deserializer doesn't read (workflowId, organizationId, createdAt,
|
|
66
|
+
* createdBy, …).
|
|
67
|
+
*/
|
|
68
|
+
export interface WorkflowTask {
|
|
69
|
+
readonly id: string;
|
|
70
|
+
readonly type?: string;
|
|
71
|
+
readonly name?: string;
|
|
72
|
+
readonly properties?: {
|
|
73
|
+
readonly type: string;
|
|
74
|
+
readonly [key: string]: unknown;
|
|
75
|
+
};
|
|
76
|
+
readonly parentWorkflowTaskId?: string | null;
|
|
77
|
+
readonly child?: boolean;
|
|
78
|
+
readonly [key: string]: unknown;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Filter shape carried on a SWITCH child case. The full-state response
|
|
82
|
+
* embeds the same `FilterReference` payload mobius persists; the
|
|
83
|
+
* deserializer walks it for embedded value/task references.
|
|
84
|
+
*/
|
|
85
|
+
export type WorkflowFilter = {
|
|
86
|
+
readonly type: string;
|
|
87
|
+
readonly [key: string]: unknown;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* A switch case / forEach body — the grouped child structure mobius
|
|
91
|
+
* returns under each operator task on the full-state view.
|
|
92
|
+
*
|
|
93
|
+
* - `label` is the case label (empty string for the SWITCH default,
|
|
94
|
+
* `null` for forEach since it has only one branch).
|
|
95
|
+
* - `filter` is the case predicate (only set on SWITCH children).
|
|
96
|
+
* - `tasks` is the recursive list of `WorkflowTaskView` entries that
|
|
97
|
+
* run inside this branch.
|
|
98
|
+
*/
|
|
99
|
+
export interface WorkflowOperatorChildView {
|
|
100
|
+
readonly label: string | null;
|
|
101
|
+
readonly filter?: WorkflowFilter;
|
|
102
|
+
readonly tasks: readonly WorkflowTaskView[];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Full-state task entry — the wrapped tree shape mobius returns from
|
|
106
|
+
* `GET /api/v1/workflows/{id}` since PR #8.
|
|
107
|
+
*
|
|
108
|
+
* Each entry pairs a server-derived `refKey` (the slug downstream
|
|
109
|
+
* deserializers use to identify a task) with the inner `WorkflowTask`
|
|
110
|
+
* body. Operator tasks (SWITCH, FOR_EACH) also carry a `children`
|
|
111
|
+
* array — one entry per case — so callers don't have to reassemble
|
|
112
|
+
* branches from a flat list.
|
|
113
|
+
*/
|
|
114
|
+
export interface WorkflowTaskView {
|
|
115
|
+
readonly refKey: string;
|
|
116
|
+
readonly task: WorkflowTask;
|
|
117
|
+
readonly children?: readonly WorkflowOperatorChildView[];
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* A version of an automation — what antman aliases as
|
|
121
|
+
* `workflowCurrent` or `workflowDraft` on an `Automation`, or what
|
|
122
|
+
* the full-state response returns as its `workflow` field. Covers
|
|
123
|
+
* all three through optional fields; each field documents which
|
|
124
|
+
* endpoint populates it.
|
|
125
|
+
*
|
|
126
|
+
* Note on outputs: antman's catalog view returns `outputs` directly
|
|
127
|
+
* on the workflow (per the GraphQL `workflowFragment`). Mobius's
|
|
128
|
+
* full-state responses return `outputProperties` at the response root.
|
|
129
|
+
* Older/sparse full-state payloads may omit that field, so the pull
|
|
130
|
+
* path can fall back to catalog outputs when available.
|
|
131
|
+
*/
|
|
132
|
+
export interface Workflow {
|
|
133
|
+
readonly id?: string;
|
|
134
|
+
readonly automationId?: string;
|
|
135
|
+
readonly workflowId?: string;
|
|
136
|
+
readonly name?: string;
|
|
137
|
+
readonly status?: string;
|
|
138
|
+
readonly ownerId?: string;
|
|
139
|
+
readonly ownerType?: AutomationOwnerType;
|
|
140
|
+
readonly owner?: Owner<AutomationOwnerType>;
|
|
141
|
+
readonly triggers?: readonly WorkflowTrigger[];
|
|
142
|
+
readonly outputs?: readonly WorkflowOutput[];
|
|
143
|
+
readonly tasks?: readonly WorkflowTask[];
|
|
144
|
+
readonly workflow?: {
|
|
145
|
+
readonly version?: Number;
|
|
146
|
+
readonly status?: string;
|
|
147
|
+
readonly name: string;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* An automation as it appears inside `Aspect.automations` on the
|
|
152
|
+
* catalog view.
|
|
153
|
+
*
|
|
154
|
+
* `id` is the long-lived automation container id — the one
|
|
155
|
+
* `runAutomation` task refs use to invoke this automation.
|
|
156
|
+
*
|
|
157
|
+
* `workflowCurrent` and `workflowDraft` are antman-aliased fields
|
|
158
|
+
* (`current` / `draft` on the underlying GraphQL `Automation`).
|
|
159
|
+
* Each carries its own `Workflow.id` (a versioned workflow id) —
|
|
160
|
+
* that's what `defineAutomation.fromJSON(workflowId)` needs. Pull
|
|
161
|
+
* flows prefer `workflowDraft.id` when present (the in-progress
|
|
162
|
+
* edit) and fall back to `workflowCurrent.id` (the deployed live
|
|
163
|
+
* version).
|
|
164
|
+
*/
|
|
165
|
+
export interface Automation {
|
|
166
|
+
readonly id: string;
|
|
167
|
+
readonly name: string;
|
|
168
|
+
/** Server-assigned stable handle (e.g. `AUTO_ck3ifggq`); preferred over a name-derived handle. */
|
|
169
|
+
readonly clientHandle?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Immutable creation timestamp (ISO-8601). Primary ordering key for
|
|
172
|
+
* deterministic handle minting (`src/handles`); optional, falls back to
|
|
173
|
+
* `id` ordering when absent.
|
|
174
|
+
*/
|
|
175
|
+
readonly createdAt?: string;
|
|
176
|
+
readonly workflowCurrent?: Workflow;
|
|
177
|
+
readonly workflowDraft?: Workflow;
|
|
178
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical automation model shapes — single source of truth for
|
|
3
|
+
* every antman/mobius endpoint that returns an automation or any of
|
|
4
|
+
* its pieces:
|
|
5
|
+
*
|
|
6
|
+
* - `Aspect.automations` (catalog view from `GET /v1/apps/definition`)
|
|
7
|
+
* populates `Automation` with `id`, `name`, and shallow
|
|
8
|
+
* `workflowCurrent` / `workflowDraft` carrying trigger metadata.
|
|
9
|
+
* - `GET /api/v1/workflows/{id}` (full-state view from mobius)
|
|
10
|
+
* populates `Workflow` + `WorkflowTrigger` + `WorkflowTask` +
|
|
11
|
+
* `WorkflowOutput` with deeper runtime detail.
|
|
12
|
+
*
|
|
13
|
+
* Different endpoints populate different fields on the same types.
|
|
14
|
+
* Every field that isn't required by both callers is optional so the
|
|
15
|
+
* same shape covers both views without forcing synthetic "Ref" or
|
|
16
|
+
* "View" variants. Each field documents which endpoints drive it.
|
|
17
|
+
*/
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
export type InvoiceFieldLabel = "ACCOUNT_NUMBER" | "ADDRESS" | "ADDRESS_BLOCK" | "AMOUNT_DUE" | "AMOUNT_PAID" | "CITY" | "COUNTRY" | "CUSTOMER_NUMBER" | "DELIVERY_DATE" | "DISCOUNT" | "DUE_DATE" | "GRATUITY" | "INVOICE_RECEIPT_DATE" | "INVOICE_RECEIPT_ID" | "NAME" | "ORDER_DATE" | "PAYMENT_TERMS" | "PO_NUMBER" | "PRIOR_BALANCE" | "RECEIVER_ABN_NUMBER" | "RECEIVER_ADDRESS" | "RECEIVER_GST_NUMBER" | "RECEIVER_NAME" | "RECEIVER_PAN_NUMBER" | "RECEIVER_PHONE" | "RECEIVER_VAT_NUMBER" | "SERVICE_CHARGE" | "SHIPPING_HANDLING_CHARGE" | "STATE" | "STREET" | "SUBTOTAL" | "TAX" | "TAX_PAYER_ID" | "TOTAL" | "VENDOR_ABN_NUMBER" | "VENDOR_ADDRESS" | "VENDOR_GST_NUMBER" | "VENDOR_NAME" | "VENDOR_PAN_NUMBER" | "VENDOR_PHONE" | "VENDOR_URL" | "VENDOR_VAT_NUMBER" | "ZIP_CODE";
|
|
2
|
+
export type DocumentModelAiFieldType = string;
|
|
3
|
+
export type DocumentModelExcelFieldType = string;
|
|
4
|
+
export interface FileReaderAiFieldInput {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly description: string;
|
|
7
|
+
readonly required: boolean;
|
|
8
|
+
readonly type: DocumentModelAiFieldType;
|
|
9
|
+
}
|
|
10
|
+
export interface CellLocationInput {
|
|
11
|
+
readonly sheet: number;
|
|
12
|
+
readonly row: number;
|
|
13
|
+
readonly column: number;
|
|
14
|
+
}
|
|
15
|
+
export interface FileReaderExcelFieldInput {
|
|
16
|
+
readonly name?: string;
|
|
17
|
+
readonly fieldType: DocumentModelExcelFieldType;
|
|
18
|
+
readonly required: boolean;
|
|
19
|
+
readonly include: boolean;
|
|
20
|
+
readonly location?: CellLocationInput;
|
|
21
|
+
}
|
|
22
|
+
export interface FileReaderJsonStructureParameterInput {
|
|
23
|
+
readonly text?: {
|
|
24
|
+
readonly name: string;
|
|
25
|
+
};
|
|
26
|
+
readonly number?: {
|
|
27
|
+
readonly name: string;
|
|
28
|
+
};
|
|
29
|
+
readonly decimal?: {
|
|
30
|
+
readonly name: string;
|
|
31
|
+
};
|
|
32
|
+
readonly bool?: {
|
|
33
|
+
readonly name: string;
|
|
34
|
+
};
|
|
35
|
+
readonly date?: {
|
|
36
|
+
readonly name: string;
|
|
37
|
+
readonly format: string;
|
|
38
|
+
};
|
|
39
|
+
readonly datetime?: {
|
|
40
|
+
readonly name: string;
|
|
41
|
+
readonly format: string;
|
|
42
|
+
};
|
|
43
|
+
readonly object?: {
|
|
44
|
+
readonly name: string;
|
|
45
|
+
readonly properties: readonly FileReaderJsonStructureParameterInput[];
|
|
46
|
+
};
|
|
47
|
+
readonly array?: {
|
|
48
|
+
readonly name: string;
|
|
49
|
+
readonly arrayType: FileReaderJsonStructureParameterInput;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export interface FileReaderJsonStructureInput {
|
|
53
|
+
readonly properties: readonly FileReaderJsonStructureParameterInput[];
|
|
54
|
+
}
|
|
55
|
+
export interface DocumentModelAiCreateInput {
|
|
56
|
+
readonly name: string;
|
|
57
|
+
readonly instructions: string;
|
|
58
|
+
readonly fields: readonly FileReaderAiFieldInput[];
|
|
59
|
+
}
|
|
60
|
+
export interface DocumentModelExcelCreateInput {
|
|
61
|
+
readonly name: string;
|
|
62
|
+
readonly documentId: string;
|
|
63
|
+
readonly firstRowIsHeader: boolean;
|
|
64
|
+
readonly fields: readonly FileReaderExcelFieldInput[];
|
|
65
|
+
}
|
|
66
|
+
export interface DocumentModelExcelCellCreateInput {
|
|
67
|
+
readonly name: string;
|
|
68
|
+
readonly documentId: string;
|
|
69
|
+
readonly fields: readonly FileReaderExcelFieldInput[];
|
|
70
|
+
}
|
|
71
|
+
export interface DocumentModelInvoiceCreateInput {
|
|
72
|
+
readonly name: string;
|
|
73
|
+
readonly fields: readonly InvoiceFieldLabel[];
|
|
74
|
+
}
|
|
75
|
+
export interface DocumentModelJsonCreateInput {
|
|
76
|
+
readonly name: string;
|
|
77
|
+
readonly jsonStructure: FileReaderJsonStructureInput;
|
|
78
|
+
}
|
|
79
|
+
export interface DocumentModelOCRCreateInput {
|
|
80
|
+
readonly name: string;
|
|
81
|
+
}
|
|
82
|
+
export interface DocumentModelXmlCreateInput {
|
|
83
|
+
readonly name: string;
|
|
84
|
+
readonly values: FileReaderJsonStructureInput;
|
|
85
|
+
}
|
|
86
|
+
export interface FileReaderCreateInput {
|
|
87
|
+
readonly ai?: DocumentModelAiCreateInput;
|
|
88
|
+
readonly excel?: DocumentModelExcelCreateInput;
|
|
89
|
+
readonly excelCell?: DocumentModelExcelCellCreateInput;
|
|
90
|
+
readonly invoice?: DocumentModelInvoiceCreateInput;
|
|
91
|
+
readonly json?: DocumentModelJsonCreateInput;
|
|
92
|
+
readonly ocr?: DocumentModelOCRCreateInput;
|
|
93
|
+
readonly xml?: DocumentModelXmlCreateInput;
|
|
94
|
+
}
|
|
95
|
+
export interface DocumentModelAiUpdateInput {
|
|
96
|
+
readonly name?: string;
|
|
97
|
+
readonly instructions?: string;
|
|
98
|
+
readonly fields?: readonly FileReaderAiFieldInput[];
|
|
99
|
+
}
|
|
100
|
+
export interface DocumentModelXmlUpdateInput {
|
|
101
|
+
readonly name?: string;
|
|
102
|
+
readonly values?: FileReaderJsonStructureInput;
|
|
103
|
+
}
|
|
104
|
+
export interface FileReaderUpdateInput {
|
|
105
|
+
readonly name?: string;
|
|
106
|
+
readonly ai?: DocumentModelAiUpdateInput;
|
|
107
|
+
readonly excelFields?: readonly FileReaderExcelFieldInput[];
|
|
108
|
+
readonly invoiceFields?: readonly InvoiceFieldLabel[];
|
|
109
|
+
readonly jsonStructure?: FileReaderJsonStructureInput;
|
|
110
|
+
readonly xml?: DocumentModelXmlUpdateInput;
|
|
111
|
+
}
|
|
112
|
+
export interface DocumentModelWire {
|
|
113
|
+
readonly __typename?: string;
|
|
114
|
+
readonly id: string;
|
|
115
|
+
readonly name: string;
|
|
116
|
+
}
|
|
117
|
+
/** Where in the spreadsheet an Excel/Excel-cell field's value lives — read-side counterpart of {@link CellLocationInput}. */
|
|
118
|
+
export interface CellLocation {
|
|
119
|
+
readonly sheet: number;
|
|
120
|
+
readonly row: number;
|
|
121
|
+
readonly column: number;
|
|
122
|
+
}
|
|
123
|
+
/** Base shape every `DocumentModelField` variant carries — matches the `fieldType`/`__typename` selection every field row asks for. */
|
|
124
|
+
export interface DocumentModelFieldWireBase {
|
|
125
|
+
readonly __typename: string;
|
|
126
|
+
readonly id: string;
|
|
127
|
+
readonly name: string;
|
|
128
|
+
readonly fieldType: string;
|
|
129
|
+
}
|
|
130
|
+
export interface DocumentModelAiFieldWire extends DocumentModelFieldWireBase {
|
|
131
|
+
readonly description: string;
|
|
132
|
+
readonly required: boolean;
|
|
133
|
+
}
|
|
134
|
+
export interface DocumentModelExcelFieldWire extends DocumentModelFieldWireBase {
|
|
135
|
+
readonly required: boolean;
|
|
136
|
+
readonly include: boolean;
|
|
137
|
+
readonly location?: CellLocation;
|
|
138
|
+
}
|
|
139
|
+
export interface DocumentModelInvoiceFieldWire extends DocumentModelFieldWireBase {
|
|
140
|
+
readonly label: InvoiceFieldLabel;
|
|
141
|
+
}
|
|
142
|
+
/** Any field row a document model's `fields` connection can return — `__typename` discriminates. */
|
|
143
|
+
export type DocumentModelFieldWire = DocumentModelFieldWireBase | DocumentModelAiFieldWire | DocumentModelExcelFieldWire | DocumentModelInvoiceFieldWire;
|
|
144
|
+
/**
|
|
145
|
+
* One node of a JSON/XML document model's structure tree
|
|
146
|
+
* (`DocumentModelJsonStructureParameter` on the graph). GraphQL disallows
|
|
147
|
+
* fragments that spread themselves (directly or indirectly), so the query
|
|
148
|
+
* fetching this shape unrolls `object.properties` / `array.arrayType` to a
|
|
149
|
+
* fixed depth rather than recursing indefinitely (see the fragment text in
|
|
150
|
+
* `src/documentModels/materialize/pull-extension.ts`). `properties`/
|
|
151
|
+
* `arrayType` coming back `undefined` on an `Object`/`Array` node — rather
|
|
152
|
+
* than an empty array — signals the real tree went deeper than that fixed
|
|
153
|
+
* depth; the normalizer treats that as a miss, not an empty structure.
|
|
154
|
+
*/
|
|
155
|
+
export interface DocumentModelJsonStructureParameterWire {
|
|
156
|
+
readonly __typename: string;
|
|
157
|
+
readonly id?: string;
|
|
158
|
+
readonly name: string;
|
|
159
|
+
/** `DateValue` / `DateTimeValue` only. */
|
|
160
|
+
readonly format?: string;
|
|
161
|
+
/** `Object` only. */
|
|
162
|
+
readonly properties?: readonly DocumentModelJsonStructureParameterWire[];
|
|
163
|
+
/** `Array` only. */
|
|
164
|
+
readonly arrayType?: DocumentModelJsonStructureParameterWire;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* The full read-side shape of a document model, as bundled into an app's
|
|
168
|
+
* pull query — a superset of {@link AspectDocumentModel}. `__typename` is
|
|
169
|
+
* the variant discriminant on the wire (`DocumentModelAi`, `DocumentModelExcel`,
|
|
170
|
+
* `DocumentModelExcelCell`, `DocumentModelInvoice`, `DocumentModelJson`,
|
|
171
|
+
* `DocumentModelOCR` — note the all-caps `OCR`, unlike this SDK's own
|
|
172
|
+
* lowercase `"ocr"` authoring discriminant — `DocumentModelXml`). Only the
|
|
173
|
+
* fields that variant's model-level interface actually adds are populated;
|
|
174
|
+
* the rest are `undefined`.
|
|
175
|
+
*/
|
|
176
|
+
export interface DocumentModelWireFull {
|
|
177
|
+
readonly __typename: string;
|
|
178
|
+
readonly id: string;
|
|
179
|
+
readonly name: string;
|
|
180
|
+
readonly createdAt: string;
|
|
181
|
+
/** `excel` / `excelCell` only — the backing spreadsheet's id (`documentId` on the authoring side). */
|
|
182
|
+
readonly document?: {
|
|
183
|
+
readonly id: string;
|
|
184
|
+
};
|
|
185
|
+
readonly fields: {
|
|
186
|
+
readonly edges: readonly {
|
|
187
|
+
readonly node: DocumentModelFieldWire;
|
|
188
|
+
}[];
|
|
189
|
+
};
|
|
190
|
+
/** `ai` only. */
|
|
191
|
+
readonly instructions?: string;
|
|
192
|
+
/** `excel` only. */
|
|
193
|
+
readonly firstRowIsHeader?: boolean;
|
|
194
|
+
/** `json` only. */
|
|
195
|
+
readonly jsonStructure?: {
|
|
196
|
+
readonly properties: readonly DocumentModelJsonStructureParameterWire[];
|
|
197
|
+
};
|
|
198
|
+
/** `xml` only. */
|
|
199
|
+
readonly values?: readonly DocumentModelJsonStructureParameterWire[];
|
|
200
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SearchTableTimeUnit, VectorIndexInput, AspectSearchTableSnowflakeCreateRequest, AspectLinkedSearchTableCreateRequest, AspectSearchTableSnowflakeUpdateInput, AspectSearchTableUpdateInput, AiProviderConnectorRefWire, SearchTableFieldWire, VectorIndexWire, SearchTableWire, DeployedSearchTable, } from "./search-table-wire.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire-shape types for antman's search-table endpoints.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors antman's OpenAPI schemas under `/v1/aspects/{aspectId}/...`
|
|
5
|
+
* (the OpenAPI surface itself drops the `/v1` context path, but the
|
|
6
|
+
* deployed routes only respond on the prefixed form — see the client
|
|
7
|
+
* module for details):
|
|
8
|
+
* - AspectSearchTableSnowflakeCreateRequest (POST /v1/aspects/{aspectId}/search-tables)
|
|
9
|
+
* - AspectLinkedSearchTableCreateRequest (POST /v1/aspects/{aspectId}/linked-search-tables)
|
|
10
|
+
* - AspectSearchTableUpdateInput (PUT /v1/aspects/{aspectId}/search-tables/{id})
|
|
11
|
+
* - SearchTable (GET /v1/aspects/{aspectId}/search-tables/{id}, and every response)
|
|
12
|
+
* - VectorIndexInput (nested)
|
|
13
|
+
*
|
|
14
|
+
* The aspect id moved from the request body to the URL path — both
|
|
15
|
+
* create requests and the update request now identify the owning
|
|
16
|
+
* aspect through the path parameter, not a `aspectId` body field. The
|
|
17
|
+
* shapes here are the literal JSON payload; the serializer in
|
|
18
|
+
* `src/searchTables/serializer/` is the single place that resolves EDK
|
|
19
|
+
* refs (App, AppField, AiProviderConnector, CloudLink) to the id-strings
|
|
20
|
+
* these requests expect.
|
|
21
|
+
*/
|
|
22
|
+
import type { DeployResponse } from "../../../types.js";
|
|
23
|
+
/** Refresh-cadence time unit for snowflake-managed search tables. */
|
|
24
|
+
export type SearchTableTimeUnit = "SECONDS" | "MINUTES" | "HOURS" | "DAYS";
|
|
25
|
+
/** One vector-index column on a snowflake-managed search table. */
|
|
26
|
+
export interface VectorIndexInput {
|
|
27
|
+
readonly fieldId: string;
|
|
28
|
+
readonly aiProviderConnectorId: string;
|
|
29
|
+
}
|
|
30
|
+
/** Body for `POST /v1/aspects/{aspectId}/search-tables`. Aspect id lives in the URL. */
|
|
31
|
+
export interface AspectSearchTableSnowflakeCreateRequest {
|
|
32
|
+
readonly attributeFieldIds: readonly string[];
|
|
33
|
+
readonly duration: SearchTableTimeUnit;
|
|
34
|
+
readonly targetLag: number;
|
|
35
|
+
readonly textIndexFieldIds?: readonly string[];
|
|
36
|
+
readonly warehouse?: string;
|
|
37
|
+
readonly vectorIndexes?: readonly VectorIndexInput[];
|
|
38
|
+
/** Legacy single-index key field; prefer `vectorIndexes`. */
|
|
39
|
+
readonly fieldId?: string;
|
|
40
|
+
/** Legacy single-index embedding provider; prefer per-`vectorIndexes` connector. */
|
|
41
|
+
readonly aiProviderConnectorId?: string;
|
|
42
|
+
}
|
|
43
|
+
/** Body for `POST /v1/aspects/{aspectId}/linked-search-tables`. Aspect id lives in the URL. */
|
|
44
|
+
export interface AspectLinkedSearchTableCreateRequest {
|
|
45
|
+
readonly cloudLinkId: string;
|
|
46
|
+
readonly database: string;
|
|
47
|
+
readonly schema: string;
|
|
48
|
+
readonly serviceName: string;
|
|
49
|
+
readonly warehouse?: string;
|
|
50
|
+
}
|
|
51
|
+
/** Inner block of the update body — snowflake-only fields today. */
|
|
52
|
+
export interface AspectSearchTableSnowflakeUpdateInput {
|
|
53
|
+
readonly duration?: SearchTableTimeUnit;
|
|
54
|
+
readonly targetLag?: number;
|
|
55
|
+
readonly warehouse?: string;
|
|
56
|
+
}
|
|
57
|
+
/** Body for `PUT /v1/aspects/{aspectId}/search-tables/{id}`. */
|
|
58
|
+
export interface AspectSearchTableUpdateInput {
|
|
59
|
+
readonly snowflake?: AspectSearchTableSnowflakeUpdateInput;
|
|
60
|
+
}
|
|
61
|
+
/** One column on a search table's response payload. */
|
|
62
|
+
export interface SearchTableFieldWire {
|
|
63
|
+
readonly id: string;
|
|
64
|
+
readonly name?: string;
|
|
65
|
+
/** Aspect-field variant typename (e.g. `AspectTextField`). */
|
|
66
|
+
readonly type?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Reference to an AI provider connector on a search-table response.
|
|
70
|
+
* The wire `AiProviderConnectorRef` carries only `id` today; the EDK's
|
|
71
|
+
* authored `AiProviderConnector` ref shape is structurally compatible,
|
|
72
|
+
* so the pulled source can emit a bare `{ id }` literal that satisfies
|
|
73
|
+
* the typed `connector:` slot.
|
|
74
|
+
*/
|
|
75
|
+
export interface AiProviderConnectorRefWire {
|
|
76
|
+
readonly id: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Vector-index entry on a search-table response payload. Carries both
|
|
80
|
+
* the indexed field and the embedding-provider connector (added on
|
|
81
|
+
* the response side so pulled tables can fully round-trip the create
|
|
82
|
+
* shape).
|
|
83
|
+
*/
|
|
84
|
+
export interface VectorIndexWire {
|
|
85
|
+
readonly field?: SearchTableFieldWire;
|
|
86
|
+
readonly aiProviderConnector?: AiProviderConnectorRefWire;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Shared response shape returned by all four search-table endpoints
|
|
90
|
+
* (snowflake create, linked create, thin update, single-get).
|
|
91
|
+
* `__typename` discriminates the variant.
|
|
92
|
+
*
|
|
93
|
+
* Snowflake-specific fields (`field`, `attributeFields`, `textIndexFields`,
|
|
94
|
+
* `vectorIndexes`, `duration`, `targetLag`, `warehouse`, top-level
|
|
95
|
+
* `aiProviderConnector` for the legacy single-index variant) populate
|
|
96
|
+
* for snowflake-managed tables. The `linked*` slots populate for tables
|
|
97
|
+
* pointing at an upstream Cortex Search Service; the cloud-link id
|
|
98
|
+
* isn't exposed on the response yet, so the deserializer prints a
|
|
99
|
+
* `cloudLink: TODO_CLOUD_LINK` placeholder and records a structured
|
|
100
|
+
* miss until the wire grows that field.
|
|
101
|
+
*/
|
|
102
|
+
export interface SearchTableWire {
|
|
103
|
+
readonly id: string;
|
|
104
|
+
readonly __typename?: "AspectSearchSnowflakeTable" | "AspectLinkedSearchTable" | string;
|
|
105
|
+
/** Server-assigned stable handle (e.g. `"STBL_l0edfxbi"`) — present on the wire despite predating this type declaration. */
|
|
106
|
+
readonly clientHandle?: string;
|
|
107
|
+
readonly displayName?: string;
|
|
108
|
+
readonly status?: string;
|
|
109
|
+
readonly errorMessage?: string;
|
|
110
|
+
readonly warehouse?: string;
|
|
111
|
+
readonly duration?: SearchTableTimeUnit;
|
|
112
|
+
readonly targetLag?: number;
|
|
113
|
+
readonly field?: SearchTableFieldWire;
|
|
114
|
+
readonly attributeFields?: readonly SearchTableFieldWire[];
|
|
115
|
+
readonly textIndexFields?: readonly SearchTableFieldWire[];
|
|
116
|
+
readonly vectorIndexes?: readonly VectorIndexWire[];
|
|
117
|
+
/** Legacy single-index embedding provider; paired with `field`. */
|
|
118
|
+
readonly aiProviderConnector?: AiProviderConnectorRefWire;
|
|
119
|
+
/** Linked-only: database holding the Cortex Search Service. */
|
|
120
|
+
readonly linkedDatabase?: string;
|
|
121
|
+
/** Linked-only: schema holding the Cortex Search Service. */
|
|
122
|
+
readonly linkedSchema?: string;
|
|
123
|
+
/** Linked-only: name of the existing Cortex Search Service. */
|
|
124
|
+
readonly linkedServiceName?: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Normalized deploy response for search tables. Extends `DeployResponse`
|
|
128
|
+
* so the late-binding registry / stamp WeakMap can use `id` uniformly.
|
|
129
|
+
* `searchTableId` is the same value as `id`; kept for symmetry with
|
|
130
|
+
* `DeployedAgent.agentId` / `DeployedAutomation.automationId`.
|
|
131
|
+
* `aspectId` is the owning aspect's id — preserved on the response so
|
|
132
|
+
* a follow-up `getSearchTable`/`updateSearchTable` call (both of which
|
|
133
|
+
* need `aspectId` in the `/v1/aspects/...` URL path) doesn't have to
|
|
134
|
+
* thread the owner separately.
|
|
135
|
+
*/
|
|
136
|
+
export interface DeployedSearchTable extends DeployResponse {
|
|
137
|
+
readonly searchTableId: string;
|
|
138
|
+
readonly aspectId: string;
|
|
139
|
+
readonly displayName?: string;
|
|
140
|
+
readonly status?: string;
|
|
141
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire-shape types for antman's search-table endpoints.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors antman's OpenAPI schemas under `/v1/aspects/{aspectId}/...`
|
|
5
|
+
* (the OpenAPI surface itself drops the `/v1` context path, but the
|
|
6
|
+
* deployed routes only respond on the prefixed form — see the client
|
|
7
|
+
* module for details):
|
|
8
|
+
* - AspectSearchTableSnowflakeCreateRequest (POST /v1/aspects/{aspectId}/search-tables)
|
|
9
|
+
* - AspectLinkedSearchTableCreateRequest (POST /v1/aspects/{aspectId}/linked-search-tables)
|
|
10
|
+
* - AspectSearchTableUpdateInput (PUT /v1/aspects/{aspectId}/search-tables/{id})
|
|
11
|
+
* - SearchTable (GET /v1/aspects/{aspectId}/search-tables/{id}, and every response)
|
|
12
|
+
* - VectorIndexInput (nested)
|
|
13
|
+
*
|
|
14
|
+
* The aspect id moved from the request body to the URL path — both
|
|
15
|
+
* create requests and the update request now identify the owning
|
|
16
|
+
* aspect through the path parameter, not a `aspectId` body field. The
|
|
17
|
+
* shapes here are the literal JSON payload; the serializer in
|
|
18
|
+
* `src/searchTables/serializer/` is the single place that resolves EDK
|
|
19
|
+
* refs (App, AppField, AiProviderConnector, CloudLink) to the id-strings
|
|
20
|
+
* these requests expect.
|
|
21
|
+
*/
|
|
22
|
+
export {};
|