@vertesia/common 1.2.0 → 1.4.0-dev.20260614.160504Z
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/LICENSE +198 -10
- package/lib/{types/Progress.d.ts → Progress.d.ts} +1 -0
- package/lib/Progress.d.ts.map +1 -0
- package/lib/{esm/Progress.js → Progress.js} +2 -2
- package/lib/Progress.js.map +1 -0
- package/lib/access-control.d.ts +144 -0
- package/lib/access-control.d.ts.map +1 -0
- package/lib/{esm/access-control.js → access-control.js} +35 -0
- package/lib/access-control.js.map +1 -0
- package/lib/agent-request-template.d.ts +4 -0
- package/lib/agent-request-template.d.ts.map +1 -0
- package/lib/agent-request-template.js +46 -0
- package/lib/agent-request-template.js.map +1 -0
- package/lib/{types/analytics.d.ts → analytics.d.ts} +3 -2
- package/lib/analytics.d.ts.map +1 -0
- package/lib/{cjs/analytics.js.map → analytics.js.map} +1 -1
- package/lib/{types/apikey.d.ts → apikey.d.ts} +34 -4
- package/lib/apikey.d.ts.map +1 -0
- package/lib/{esm/apikey.js → apikey.js} +1 -0
- package/lib/apikey.js.map +1 -0
- package/lib/{types/apps.d.ts → apps.d.ts} +430 -35
- package/lib/apps.d.ts.map +1 -0
- package/lib/apps.js +158 -0
- package/lib/apps.js.map +1 -0
- package/lib/{types/ask-user.d.ts → ask-user.d.ts} +1 -0
- package/lib/ask-user.d.ts.map +1 -0
- package/lib/{esm/ask-user.js.map → ask-user.js.map} +1 -1
- package/lib/{types/audit-trail.d.ts → audit-trail.d.ts} +2 -1
- package/lib/audit-trail.d.ts.map +1 -0
- package/lib/audit-trail.js +3 -0
- package/lib/audit-trail.js.map +1 -0
- package/lib/browser-credentials.d.ts +123 -0
- package/lib/browser-credentials.d.ts.map +1 -0
- package/lib/browser-credentials.js +2 -0
- package/lib/browser-credentials.js.map +1 -0
- package/lib/{types/channels.d.ts → channels.d.ts} +3 -2
- package/lib/channels.d.ts.map +1 -0
- package/lib/{esm/channels.js → channels.js} +3 -3
- package/lib/channels.js.map +1 -0
- package/lib/{types/common.d.ts → common.d.ts} +18 -10
- package/lib/common.d.ts.map +1 -0
- package/lib/common.js.map +1 -0
- package/lib/{types/cost-analytics.d.ts → cost-analytics.d.ts} +2 -3
- package/lib/cost-analytics.d.ts.map +1 -0
- package/lib/cost-analytics.js.map +1 -0
- package/lib/{types/data-platform.d.ts → data-platform.d.ts} +134 -7
- package/lib/data-platform.d.ts.map +1 -0
- package/lib/data-platform.js.map +1 -0
- package/lib/{types/email.d.ts → email.d.ts} +6 -2
- package/lib/email.d.ts.map +1 -0
- package/lib/{esm/email.js → email.js} +2 -2
- package/lib/email.js.map +1 -0
- package/lib/embeddings.d.ts +65 -0
- package/lib/embeddings.d.ts.map +1 -0
- package/lib/embeddings.js +2 -0
- package/lib/embeddings.js.map +1 -0
- package/lib/{types/environment.d.ts → environment.d.ts} +19 -5
- package/lib/environment.d.ts.map +1 -0
- package/lib/{esm/environment.js → environment.js} +17 -7
- package/lib/environment.js.map +1 -0
- package/lib/{types/facets.d.ts → facets.d.ts} +6 -5
- package/lib/facets.d.ts.map +1 -0
- package/lib/facets.js.map +1 -0
- package/lib/{types/group.d.ts → group.d.ts} +15 -2
- package/lib/group.d.ts.map +1 -0
- package/lib/group.js +3 -0
- package/lib/group.js.map +1 -0
- package/lib/host-utils.d.ts +8 -0
- package/lib/host-utils.d.ts.map +1 -0
- package/lib/host-utils.js +84 -0
- package/lib/host-utils.js.map +1 -0
- package/lib/{types/index.d.ts → index.d.ts} +19 -10
- package/lib/index.d.ts.map +1 -0
- package/lib/{esm/index.js → index.js} +18 -10
- package/lib/index.js.map +1 -0
- package/lib/integrations.d.ts +151 -0
- package/lib/integrations.d.ts.map +1 -0
- package/lib/{esm/integrations.js → integrations.js} +6 -0
- package/lib/integrations.js.map +1 -0
- package/lib/{types/interaction.d.ts → interaction.d.ts} +99 -56
- package/lib/interaction.d.ts.map +1 -0
- package/lib/{esm/interaction.js → interaction.js} +3 -3
- package/lib/interaction.js.map +1 -0
- package/lib/json-schema.d.ts +2 -0
- package/lib/json-schema.d.ts.map +1 -0
- package/lib/{cjs/json-schema.js.map → json-schema.js.map} +1 -1
- package/lib/json.d.ts +2 -0
- package/lib/json.d.ts.map +1 -0
- package/lib/json.js.map +1 -0
- package/lib/{types/meters.d.ts → meters.d.ts} +2 -1
- package/lib/meters.d.ts.map +1 -0
- package/lib/meters.js.map +1 -0
- package/lib/model_utility.d.ts +2 -0
- package/lib/model_utility.d.ts.map +1 -0
- package/lib/model_utility.js +2 -0
- package/lib/model_utility.js.map +1 -0
- package/lib/oauth-scopes.d.ts +18 -0
- package/lib/oauth-scopes.d.ts.map +1 -0
- package/lib/oauth-scopes.js +57 -0
- package/lib/oauth-scopes.js.map +1 -0
- package/lib/{types/oauth-server.d.ts → oauth-server.d.ts} +64 -4
- package/lib/oauth-server.d.ts.map +1 -0
- package/lib/{cjs/oauth-server.js.map → oauth-server.js.map} +1 -1
- package/lib/{types/oauth.d.ts → oauth.d.ts} +1 -0
- package/lib/oauth.d.ts.map +1 -0
- package/lib/oauth.js.map +1 -0
- package/lib/{types/payload.d.ts → payload.d.ts} +5 -4
- package/lib/payload.d.ts.map +1 -0
- package/lib/{cjs/payload.js.map → payload.js.map} +1 -1
- package/lib/{types/pending-asks.d.ts → pending-asks.d.ts} +8 -1
- package/lib/pending-asks.d.ts.map +1 -0
- package/lib/pending-asks.js.map +1 -0
- package/lib/principal-context.d.ts +27 -0
- package/lib/principal-context.d.ts.map +1 -0
- package/lib/principal-context.js +2 -0
- package/lib/principal-context.js.map +1 -0
- package/lib/{types/project.d.ts → project.d.ts} +278 -49
- package/lib/project.d.ts.map +1 -0
- package/lib/project.js +230 -0
- package/lib/project.js.map +1 -0
- package/lib/{types/prompt.d.ts → prompt.d.ts} +16 -9
- package/lib/prompt.d.ts.map +1 -0
- package/lib/prompt.js.map +1 -0
- package/lib/{types/query.d.ts → query.d.ts} +11 -8
- package/lib/query.d.ts.map +1 -0
- package/lib/query.js.map +1 -0
- package/lib/{types/rate-limiter.d.ts → rate-limiter.d.ts} +1 -0
- package/lib/rate-limiter.d.ts.map +1 -0
- package/lib/rate-limiter.js.map +1 -0
- package/lib/{types/refs.d.ts → refs.d.ts} +1 -0
- package/lib/refs.d.ts.map +1 -0
- package/lib/refs.js.map +1 -0
- package/lib/roles.d.ts +19 -0
- package/lib/roles.d.ts.map +1 -0
- package/lib/roles.js +228 -0
- package/lib/roles.js.map +1 -0
- package/lib/{types/runs.d.ts → runs.d.ts} +3 -2
- package/lib/runs.d.ts.map +1 -0
- package/lib/runs.js.map +1 -0
- package/lib/secrets.d.ts +47 -0
- package/lib/secrets.d.ts.map +1 -0
- package/lib/secrets.js +2 -0
- package/lib/secrets.js.map +1 -0
- package/lib/{types/skill.d.ts → skill.d.ts} +2 -1
- package/lib/skill.d.ts.map +1 -0
- package/lib/skill.js.map +1 -0
- package/lib/{types/store → store}/activity-catalog.d.ts +2 -1
- package/lib/store/activity-catalog.d.ts.map +1 -0
- package/lib/store/activity-catalog.js.map +1 -0
- package/lib/{types/store → store}/agent-run.d.ts +206 -35
- package/lib/store/agent-run.d.ts.map +1 -0
- package/lib/store/agent-run.js.map +1 -0
- package/lib/{types/store → store}/collections.d.ts +18 -9
- package/lib/store/collections.d.ts.map +1 -0
- package/lib/store/collections.js.map +1 -0
- package/lib/{types/store → store}/common.d.ts +1 -0
- package/lib/store/common.d.ts.map +1 -0
- package/lib/{cjs → store}/common.js.map +1 -1
- package/lib/{types/store → store}/conversation-state.d.ts +36 -5
- package/lib/store/conversation-state.d.ts.map +1 -0
- package/lib/{esm/store → store}/conversation-state.js +3 -0
- package/lib/store/conversation-state.js.map +1 -0
- package/lib/{types/store → store}/doc-analyzer.d.ts +20 -14
- package/lib/store/doc-analyzer.d.ts.map +1 -0
- package/lib/{cjs/store → store}/doc-analyzer.js.map +1 -1
- package/lib/{types/store → store}/dsl-workflow.d.ts +42 -24
- package/lib/store/dsl-workflow.d.ts.map +1 -0
- package/lib/store/dsl-workflow.js +8 -0
- package/lib/store/dsl-workflow.js.map +1 -0
- package/lib/{types/store → store}/hive-memory.d.ts +2 -1
- package/lib/store/hive-memory.d.ts.map +1 -0
- package/lib/{cjs/store → store}/hive-memory.js.map +1 -1
- package/lib/store/index.d.ts +20 -0
- package/lib/store/index.d.ts.map +1 -0
- package/lib/store/index.js +20 -0
- package/lib/store/index.js.map +1 -0
- package/lib/{types/store → store}/object-types.d.ts +2 -1
- package/lib/store/object-types.d.ts.map +1 -0
- package/lib/store/object-types.js +95 -0
- package/lib/store/object-types.js.map +1 -0
- package/lib/store/process-schema.d.ts +481 -0
- package/lib/store/process-schema.d.ts.map +1 -0
- package/lib/store/process-schema.js +482 -0
- package/lib/store/process-schema.js.map +1 -0
- package/lib/store/process-validation.d.ts +17 -0
- package/lib/store/process-validation.d.ts.map +1 -0
- package/lib/store/process-validation.js +428 -0
- package/lib/store/process-validation.js.map +1 -0
- package/lib/store/process.d.ts +261 -0
- package/lib/store/process.d.ts.map +1 -0
- package/lib/store/process.js +2 -0
- package/lib/store/process.js.map +1 -0
- package/lib/{types/store → store}/rendering.d.ts +5 -4
- package/lib/store/rendering.d.ts.map +1 -0
- package/lib/{esm/store → store}/rendering.js +6 -6
- package/lib/store/rendering.js.map +1 -0
- package/lib/{types/store → store}/schedule.d.ts +4 -3
- package/lib/store/schedule.d.ts.map +1 -0
- package/lib/store/schedule.js.map +1 -0
- package/lib/{types/store → store}/signals.d.ts +2 -1
- package/lib/store/signals.d.ts.map +1 -0
- package/lib/{cjs/store → store}/signals.js.map +1 -1
- package/lib/{types/store → store}/store.d.ts +67 -38
- package/lib/store/store.d.ts.map +1 -0
- package/lib/{esm/store → store}/store.js +17 -8
- package/lib/store/store.js.map +1 -0
- package/lib/store/task.d.ts +63 -0
- package/lib/store/task.d.ts.map +1 -0
- package/lib/store/task.js +5 -0
- package/lib/store/task.js.map +1 -0
- package/lib/store/temporalio.d.ts +17 -0
- package/lib/store/temporalio.d.ts.map +1 -0
- package/lib/{esm/store → store}/temporalio.js +6 -6
- package/lib/store/temporalio.js.map +1 -0
- package/lib/{types/store → store}/workflow.d.ts +87 -33
- package/lib/store/workflow.d.ts.map +1 -0
- package/lib/{esm/store → store}/workflow.js +36 -37
- package/lib/store/workflow.js.map +1 -0
- package/lib/{types/sts-token-types.d.ts → sts-token-types.d.ts} +29 -2
- package/lib/sts-token-types.d.ts.map +1 -0
- package/lib/{esm/sts-token-types.js → sts-token-types.js} +0 -4
- package/lib/sts-token-types.js.map +1 -0
- package/lib/{types/tenant.d.ts → tenant.d.ts} +1 -0
- package/lib/tenant.d.ts.map +1 -0
- package/lib/tenant.js.map +1 -0
- package/lib/{types/tool-execution.d.ts → tool-execution.d.ts} +3 -2
- package/lib/tool-execution.d.ts.map +1 -0
- package/lib/tool-execution.js.map +1 -0
- package/lib/tools.d.ts +101 -0
- package/lib/tools.d.ts.map +1 -0
- package/lib/tools.js +2 -0
- package/lib/tools.js.map +1 -0
- package/lib/{types/training.d.ts → training.d.ts} +10 -9
- package/lib/training.d.ts.map +1 -0
- package/lib/training.js.map +1 -0
- package/lib/{types/transient-tokens.d.ts → transient-tokens.d.ts} +3 -2
- package/lib/transient-tokens.d.ts.map +1 -0
- package/lib/transient-tokens.js.map +1 -0
- package/lib/{types/user.d.ts → user.d.ts} +13 -7
- package/lib/user.d.ts.map +1 -0
- package/lib/{esm/user.js → user.js} +2 -2
- package/lib/user.js.map +1 -0
- package/lib/{types/utils → utils}/auth.d.ts +2 -1
- package/lib/utils/auth.d.ts.map +1 -0
- package/lib/{esm/utils → utils}/auth.js +1 -1
- package/lib/utils/auth.js.map +1 -0
- package/lib/{types/utils → utils}/schemas.d.ts +5 -4
- package/lib/utils/schemas.d.ts.map +1 -0
- package/lib/{esm/utils → utils}/schemas.js +24 -22
- package/lib/utils/schemas.js.map +1 -0
- package/lib/{types/utils → utils}/type-helpers.d.ts +1 -0
- package/lib/utils/type-helpers.d.ts.map +1 -0
- package/lib/{cjs/utils → utils}/type-helpers.js.map +1 -1
- package/lib/{types/versions.d.ts → versions.d.ts} +1 -0
- package/lib/versions.d.ts.map +1 -0
- package/lib/versions.js.map +1 -0
- package/lib/vertesia-common.js +1 -1
- package/lib/vertesia-common.js.map +1 -1
- package/lib/{types/workflow-analytics.d.ts → workflow-analytics.d.ts} +10 -3
- package/lib/workflow-analytics.d.ts.map +1 -0
- package/lib/workflow-analytics.js.map +1 -0
- package/package.json +20 -20
- package/src/Progress.ts +9 -7
- package/src/access-control.ts +124 -55
- package/src/agent-request-template.test.ts +40 -0
- package/src/agent-request-template.ts +45 -0
- package/src/analytics.ts +11 -16
- package/src/apikey.ts +43 -11
- package/src/apps.test.ts +37 -0
- package/src/apps.ts +562 -78
- package/src/audit-trail.ts +3 -5
- package/src/browser-credentials.ts +133 -0
- package/src/channels.ts +5 -5
- package/src/common.ts +17 -11
- package/src/cost-analytics.ts +10 -4
- package/src/data-platform.ts +142 -7
- package/src/email.ts +7 -4
- package/src/embeddings.ts +76 -0
- package/src/environment.ts +44 -25
- package/src/facets.ts +19 -21
- package/src/group.ts +14 -3
- package/src/host-utils.test.ts +61 -0
- package/src/host-utils.ts +93 -0
- package/src/index.ts +18 -10
- package/src/integrations.ts +134 -26
- package/src/interaction.ts +185 -141
- package/src/json-schema.ts +1 -1
- package/src/json.ts +6 -3
- package/src/meters.ts +6 -9
- package/src/model_utility.ts +1 -1
- package/src/oauth-scopes.ts +72 -0
- package/src/oauth-server.ts +80 -5
- package/src/payload.ts +6 -6
- package/src/pending-asks.ts +8 -1
- package/src/principal-context.ts +27 -0
- package/src/project.ts +408 -101
- package/src/prompt.ts +30 -27
- package/src/query.ts +19 -17
- package/src/rate-limiter.ts +1 -1
- package/src/refs.ts +19 -24
- package/src/roles.test.ts +30 -0
- package/src/roles.ts +251 -0
- package/src/runs.ts +14 -15
- package/src/secrets.ts +60 -0
- package/src/skill.ts +1 -2
- package/src/store/activity-catalog.ts +13 -1
- package/src/store/agent-run.ts +269 -42
- package/src/store/collections.ts +21 -13
- package/src/store/common.ts +1 -2
- package/src/store/conversation-state.ts +42 -5
- package/src/store/doc-analyzer.ts +22 -14
- package/src/store/dsl-workflow.ts +54 -29
- package/src/store/hive-memory.ts +10 -10
- package/src/store/index.ts +19 -17
- package/src/store/ms.d.ts +34 -3
- package/src/store/object-types.ts +75 -79
- package/src/store/process-schema.test.ts +106 -0
- package/src/store/process-schema.ts +485 -0
- package/src/store/process-validation.test.ts +432 -0
- package/src/store/process-validation.ts +548 -0
- package/src/store/process.ts +305 -0
- package/src/store/rendering.ts +12 -12
- package/src/store/schedule.ts +3 -3
- package/src/store/signals.ts +1 -1
- package/src/store/store.ts +119 -89
- package/src/store/task.ts +71 -0
- package/src/store/temporalio.ts +14 -14
- package/src/store/workflow.test.ts +16 -14
- package/src/store/workflow.ts +177 -119
- package/src/sts-token-types.ts +30 -4
- package/src/tool-execution.ts +2 -2
- package/src/tools.ts +103 -0
- package/src/training.ts +25 -27
- package/src/transient-tokens.ts +4 -7
- package/src/user.ts +25 -35
- package/src/utils/auth.ts +2 -2
- package/src/utils/schemas.ts +36 -31
- package/src/utils/type-helpers.ts +2 -4
- package/src/workflow-analytics.ts +15 -18
- package/lib/cjs/Progress.js +0 -61
- package/lib/cjs/Progress.js.map +0 -1
- package/lib/cjs/access-control.js +0 -58
- package/lib/cjs/access-control.js.map +0 -1
- package/lib/cjs/analytics.js +0 -3
- package/lib/cjs/apikey.js +0 -17
- package/lib/cjs/apikey.js.map +0 -1
- package/lib/cjs/apps.js +0 -89
- package/lib/cjs/apps.js.map +0 -1
- package/lib/cjs/ask-user.js +0 -8
- package/lib/cjs/ask-user.js.map +0 -1
- package/lib/cjs/audit-trail.js +0 -10
- package/lib/cjs/audit-trail.js.map +0 -1
- package/lib/cjs/channels.js +0 -63
- package/lib/cjs/channels.js.map +0 -1
- package/lib/cjs/common.js +0 -3
- package/lib/cjs/cost-analytics.js +0 -13
- package/lib/cjs/cost-analytics.js.map +0 -1
- package/lib/cjs/data-platform.js +0 -127
- package/lib/cjs/data-platform.js.map +0 -1
- package/lib/cjs/email.js +0 -20
- package/lib/cjs/email.js.map +0 -1
- package/lib/cjs/environment.js +0 -44
- package/lib/cjs/environment.js.map +0 -1
- package/lib/cjs/facets.js +0 -3
- package/lib/cjs/facets.js.map +0 -1
- package/lib/cjs/group.js +0 -6
- package/lib/cjs/group.js.map +0 -1
- package/lib/cjs/index.js +0 -60
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/integrations.js +0 -16
- package/lib/cjs/integrations.js.map +0 -1
- package/lib/cjs/interaction.js +0 -101
- package/lib/cjs/interaction.js.map +0 -1
- package/lib/cjs/json-schema.js +0 -3
- package/lib/cjs/json.js +0 -3
- package/lib/cjs/json.js.map +0 -1
- package/lib/cjs/meters.js +0 -13
- package/lib/cjs/meters.js.map +0 -1
- package/lib/cjs/model_utility.js +0 -6
- package/lib/cjs/model_utility.js.map +0 -1
- package/lib/cjs/oauth-server.js +0 -3
- package/lib/cjs/oauth.js +0 -7
- package/lib/cjs/oauth.js.map +0 -1
- package/lib/cjs/openapi.js +0 -3
- package/lib/cjs/openapi.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/payload.js +0 -3
- package/lib/cjs/pending-asks.js +0 -7
- package/lib/cjs/pending-asks.js.map +0 -1
- package/lib/cjs/project.js +0 -143
- package/lib/cjs/project.js.map +0 -1
- package/lib/cjs/prompt.js +0 -21
- package/lib/cjs/prompt.js.map +0 -1
- package/lib/cjs/query.js +0 -3
- package/lib/cjs/query.js.map +0 -1
- package/lib/cjs/rate-limiter.js +0 -6
- package/lib/cjs/rate-limiter.js.map +0 -1
- package/lib/cjs/refs.js +0 -14
- package/lib/cjs/refs.js.map +0 -1
- package/lib/cjs/runs.js +0 -3
- package/lib/cjs/runs.js.map +0 -1
- package/lib/cjs/skill.js +0 -14
- package/lib/cjs/skill.js.map +0 -1
- package/lib/cjs/store/activity-catalog.js +0 -3
- package/lib/cjs/store/activity-catalog.js.map +0 -1
- package/lib/cjs/store/agent-run.js +0 -16
- package/lib/cjs/store/agent-run.js.map +0 -1
- package/lib/cjs/store/collections.js +0 -9
- package/lib/cjs/store/collections.js.map +0 -1
- package/lib/cjs/store/common.js +0 -3
- package/lib/cjs/store/common.js.map +0 -1
- package/lib/cjs/store/conversation-state.js +0 -19
- package/lib/cjs/store/conversation-state.js.map +0 -1
- package/lib/cjs/store/doc-analyzer.js +0 -3
- package/lib/cjs/store/dsl-workflow.js +0 -5
- package/lib/cjs/store/dsl-workflow.js.map +0 -1
- package/lib/cjs/store/hive-memory.js +0 -3
- package/lib/cjs/store/index.js +0 -33
- package/lib/cjs/store/index.js.map +0 -1
- package/lib/cjs/store/object-types.js +0 -98
- package/lib/cjs/store/object-types.js.map +0 -1
- package/lib/cjs/store/rendering.js +0 -26
- package/lib/cjs/store/rendering.js.map +0 -1
- package/lib/cjs/store/schedule.js +0 -32
- package/lib/cjs/store/schedule.js.map +0 -1
- package/lib/cjs/store/signals.js +0 -3
- package/lib/cjs/store/store.js +0 -182
- package/lib/cjs/store/store.js.map +0 -1
- package/lib/cjs/store/temporalio.js +0 -44
- package/lib/cjs/store/temporalio.js.map +0 -1
- package/lib/cjs/store/worker.js +0 -3
- package/lib/cjs/store/worker.js.map +0 -1
- package/lib/cjs/store/workflow.js +0 -306
- package/lib/cjs/store/workflow.js.map +0 -1
- package/lib/cjs/sts-token-types.js +0 -32
- package/lib/cjs/sts-token-types.js.map +0 -1
- package/lib/cjs/tenant.js +0 -3
- package/lib/cjs/tenant.js.map +0 -1
- package/lib/cjs/tool-execution.js +0 -6
- package/lib/cjs/tool-execution.js.map +0 -1
- package/lib/cjs/training.js +0 -14
- package/lib/cjs/training.js.map +0 -1
- package/lib/cjs/transient-tokens.js +0 -9
- package/lib/cjs/transient-tokens.js.map +0 -1
- package/lib/cjs/user.js +0 -26
- package/lib/cjs/user.js.map +0 -1
- package/lib/cjs/utils/auth.js +0 -15
- package/lib/cjs/utils/auth.js.map +0 -1
- package/lib/cjs/utils/schemas.js +0 -182
- package/lib/cjs/utils/schemas.js.map +0 -1
- package/lib/cjs/utils/type-helpers.js +0 -3
- package/lib/cjs/versions.js +0 -10
- package/lib/cjs/versions.js.map +0 -1
- package/lib/cjs/workflow-analytics.js +0 -52
- package/lib/cjs/workflow-analytics.js.map +0 -1
- package/lib/esm/Progress.js.map +0 -1
- package/lib/esm/access-control.js.map +0 -1
- package/lib/esm/analytics.js.map +0 -1
- package/lib/esm/apikey.js.map +0 -1
- package/lib/esm/apps.js +0 -79
- package/lib/esm/apps.js.map +0 -1
- package/lib/esm/audit-trail.js +0 -7
- package/lib/esm/audit-trail.js.map +0 -1
- package/lib/esm/channels.js.map +0 -1
- package/lib/esm/common.js.map +0 -1
- package/lib/esm/cost-analytics.js.map +0 -1
- package/lib/esm/data-platform.js.map +0 -1
- package/lib/esm/email.js.map +0 -1
- package/lib/esm/environment.js.map +0 -1
- package/lib/esm/facets.js.map +0 -1
- package/lib/esm/group.js +0 -3
- package/lib/esm/group.js.map +0 -1
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/integrations.js.map +0 -1
- package/lib/esm/interaction.js.map +0 -1
- package/lib/esm/json-schema.js.map +0 -1
- package/lib/esm/json.js.map +0 -1
- package/lib/esm/meters.js.map +0 -1
- package/lib/esm/model_utility.js +0 -2
- package/lib/esm/model_utility.js.map +0 -1
- package/lib/esm/oauth-server.js.map +0 -1
- package/lib/esm/oauth.js.map +0 -1
- package/lib/esm/openapi.js +0 -2
- package/lib/esm/openapi.js.map +0 -1
- package/lib/esm/payload.js.map +0 -1
- package/lib/esm/pending-asks.js.map +0 -1
- package/lib/esm/project.js +0 -138
- package/lib/esm/project.js.map +0 -1
- package/lib/esm/prompt.js.map +0 -1
- package/lib/esm/query.js.map +0 -1
- package/lib/esm/rate-limiter.js.map +0 -1
- package/lib/esm/refs.js.map +0 -1
- package/lib/esm/runs.js.map +0 -1
- package/lib/esm/skill.js.map +0 -1
- package/lib/esm/store/activity-catalog.js.map +0 -1
- package/lib/esm/store/agent-run.js.map +0 -1
- package/lib/esm/store/collections.js.map +0 -1
- package/lib/esm/store/common.js.map +0 -1
- package/lib/esm/store/conversation-state.js.map +0 -1
- package/lib/esm/store/doc-analyzer.js.map +0 -1
- package/lib/esm/store/dsl-workflow.js +0 -2
- package/lib/esm/store/dsl-workflow.js.map +0 -1
- package/lib/esm/store/hive-memory.js.map +0 -1
- package/lib/esm/store/index.js +0 -17
- package/lib/esm/store/index.js.map +0 -1
- package/lib/esm/store/object-types.js +0 -95
- package/lib/esm/store/object-types.js.map +0 -1
- package/lib/esm/store/rendering.js.map +0 -1
- package/lib/esm/store/schedule.js.map +0 -1
- package/lib/esm/store/signals.js.map +0 -1
- package/lib/esm/store/store.js.map +0 -1
- package/lib/esm/store/temporalio.js.map +0 -1
- package/lib/esm/store/worker.js +0 -2
- package/lib/esm/store/worker.js.map +0 -1
- package/lib/esm/store/workflow.js.map +0 -1
- package/lib/esm/sts-token-types.js.map +0 -1
- package/lib/esm/tenant.js.map +0 -1
- package/lib/esm/tool-execution.js.map +0 -1
- package/lib/esm/training.js.map +0 -1
- package/lib/esm/transient-tokens.js.map +0 -1
- package/lib/esm/user.js.map +0 -1
- package/lib/esm/utils/auth.js.map +0 -1
- package/lib/esm/utils/schemas.js.map +0 -1
- package/lib/esm/utils/type-helpers.js.map +0 -1
- package/lib/esm/versions.js.map +0 -1
- package/lib/esm/workflow-analytics.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/Progress.d.ts.map +0 -1
- package/lib/types/access-control.d.ts +0 -79
- package/lib/types/access-control.d.ts.map +0 -1
- package/lib/types/analytics.d.ts.map +0 -1
- package/lib/types/apikey.d.ts.map +0 -1
- package/lib/types/apps.d.ts.map +0 -1
- package/lib/types/ask-user.d.ts.map +0 -1
- package/lib/types/audit-trail.d.ts.map +0 -1
- package/lib/types/channels.d.ts.map +0 -1
- package/lib/types/common.d.ts.map +0 -1
- package/lib/types/cost-analytics.d.ts.map +0 -1
- package/lib/types/data-platform.d.ts.map +0 -1
- package/lib/types/email.d.ts.map +0 -1
- package/lib/types/environment.d.ts.map +0 -1
- package/lib/types/facets.d.ts.map +0 -1
- package/lib/types/group.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/integrations.d.ts +0 -83
- package/lib/types/integrations.d.ts.map +0 -1
- package/lib/types/interaction.d.ts.map +0 -1
- package/lib/types/json-schema.d.ts +0 -1
- package/lib/types/json-schema.d.ts.map +0 -1
- package/lib/types/json.d.ts +0 -1
- package/lib/types/json.d.ts.map +0 -1
- package/lib/types/meters.d.ts.map +0 -1
- package/lib/types/model_utility.d.ts +0 -1
- package/lib/types/model_utility.d.ts.map +0 -1
- package/lib/types/oauth-server.d.ts.map +0 -1
- package/lib/types/oauth.d.ts.map +0 -1
- package/lib/types/openapi.d.ts +0 -90
- package/lib/types/openapi.d.ts.map +0 -1
- package/lib/types/payload.d.ts.map +0 -1
- package/lib/types/pending-asks.d.ts.map +0 -1
- package/lib/types/project.d.ts.map +0 -1
- package/lib/types/prompt.d.ts.map +0 -1
- package/lib/types/query.d.ts.map +0 -1
- package/lib/types/rate-limiter.d.ts.map +0 -1
- package/lib/types/refs.d.ts.map +0 -1
- package/lib/types/runs.d.ts.map +0 -1
- package/lib/types/skill.d.ts.map +0 -1
- package/lib/types/store/activity-catalog.d.ts.map +0 -1
- package/lib/types/store/agent-run.d.ts.map +0 -1
- package/lib/types/store/collections.d.ts.map +0 -1
- package/lib/types/store/common.d.ts.map +0 -1
- package/lib/types/store/conversation-state.d.ts.map +0 -1
- package/lib/types/store/doc-analyzer.d.ts.map +0 -1
- package/lib/types/store/dsl-workflow.d.ts.map +0 -1
- package/lib/types/store/hive-memory.d.ts.map +0 -1
- package/lib/types/store/index.d.ts +0 -16
- package/lib/types/store/index.d.ts.map +0 -1
- package/lib/types/store/object-types.d.ts.map +0 -1
- package/lib/types/store/rendering.d.ts.map +0 -1
- package/lib/types/store/schedule.d.ts.map +0 -1
- package/lib/types/store/signals.d.ts.map +0 -1
- package/lib/types/store/store.d.ts.map +0 -1
- package/lib/types/store/temporalio.d.ts +0 -16
- package/lib/types/store/temporalio.d.ts.map +0 -1
- package/lib/types/store/worker.d.ts +0 -18
- package/lib/types/store/worker.d.ts.map +0 -1
- package/lib/types/store/workflow.d.ts.map +0 -1
- package/lib/types/sts-token-types.d.ts.map +0 -1
- package/lib/types/tenant.d.ts.map +0 -1
- package/lib/types/tool-execution.d.ts.map +0 -1
- package/lib/types/training.d.ts.map +0 -1
- package/lib/types/transient-tokens.d.ts.map +0 -1
- package/lib/types/user.d.ts.map +0 -1
- package/lib/types/utils/auth.d.ts.map +0 -1
- package/lib/types/utils/schemas.d.ts.map +0 -1
- package/lib/types/utils/type-helpers.d.ts.map +0 -1
- package/lib/types/versions.d.ts.map +0 -1
- package/lib/types/workflow-analytics.d.ts.map +0 -1
- package/src/openapi.ts +0 -102
- package/src/store/worker.ts +0 -19
- /package/lib/{esm/analytics.js → analytics.js} +0 -0
- /package/lib/{esm/ask-user.js → ask-user.js} +0 -0
- /package/lib/{esm/common.js → common.js} +0 -0
- /package/lib/{esm/cost-analytics.js → cost-analytics.js} +0 -0
- /package/lib/{esm/data-platform.js → data-platform.js} +0 -0
- /package/lib/{esm/facets.js → facets.js} +0 -0
- /package/lib/{esm/json-schema.js → json-schema.js} +0 -0
- /package/lib/{esm/json.js → json.js} +0 -0
- /package/lib/{esm/meters.js → meters.js} +0 -0
- /package/lib/{esm/oauth-server.js → oauth-server.js} +0 -0
- /package/lib/{esm/oauth.js → oauth.js} +0 -0
- /package/lib/{esm/payload.js → payload.js} +0 -0
- /package/lib/{esm/pending-asks.js → pending-asks.js} +0 -0
- /package/lib/{esm/prompt.js → prompt.js} +0 -0
- /package/lib/{esm/query.js → query.js} +0 -0
- /package/lib/{esm/rate-limiter.js → rate-limiter.js} +0 -0
- /package/lib/{esm/refs.js → refs.js} +0 -0
- /package/lib/{esm/runs.js → runs.js} +0 -0
- /package/lib/{esm/skill.js → skill.js} +0 -0
- /package/lib/{esm/store → store}/activity-catalog.js +0 -0
- /package/lib/{esm/store → store}/agent-run.js +0 -0
- /package/lib/{esm/store → store}/collections.js +0 -0
- /package/lib/{esm/store → store}/common.js +0 -0
- /package/lib/{esm/store → store}/doc-analyzer.js +0 -0
- /package/lib/{esm/store → store}/hive-memory.js +0 -0
- /package/lib/{esm/store → store}/schedule.js +0 -0
- /package/lib/{esm/store → store}/signals.js +0 -0
- /package/lib/{esm/tenant.js → tenant.js} +0 -0
- /package/lib/{esm/tool-execution.js → tool-execution.js} +0 -0
- /package/lib/{esm/training.js → training.js} +0 -0
- /package/lib/{esm/transient-tokens.js → transient-tokens.js} +0 -0
- /package/lib/{esm/utils → utils}/type-helpers.js +0 -0
- /package/lib/{esm/versions.js → versions.js} +0 -0
- /package/lib/{esm/workflow-analytics.js → workflow-analytics.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikey.d.ts","sourceRoot":"","sources":["../src/apikey.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,6 +5,7 @@ export var ApiKeyTypes;
|
|
|
5
5
|
export var PrincipalType;
|
|
6
6
|
(function (PrincipalType) {
|
|
7
7
|
PrincipalType["User"] = "user";
|
|
8
|
+
PrincipalType["OAuthAccess"] = "oauth_access";
|
|
8
9
|
PrincipalType["Group"] = "group";
|
|
9
10
|
PrincipalType["ApiKey"] = "apikey";
|
|
10
11
|
PrincipalType["ServiceAccount"] = "service_account";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikey.js","sourceRoot":"","sources":["../src/apikey.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAN,IAAY,WAEX;AAFD,WAAY,WAAW;IACnB,4BAAa,CAAA;AACjB,CAAC,EAFW,WAAW,KAAX,WAAW,QAEtB;AAuID,MAAM,CAAN,IAAY,aAQX;AARD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,6CAA4B,CAAA;IAC5B,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,mDAAkC,CAAA;IAClC,gCAAe,CAAA;IACf,sCAAqB,CAAA;AACzB,CAAC,EARW,aAAa,KAAb,aAAa,QAQxB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { JSONObject, JSONSchema, ToolDefinition } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { JSONObject, JSONSchema, ToolDefinition } from '@llumiverse/common';
|
|
2
|
+
import type { AppDashboardDefinition } from './data-platform.js';
|
|
3
|
+
import type { CatalogInteractionRef } from './interaction.js';
|
|
4
|
+
import type { DSLActivityOptions, InCodeProcessDefinition, InCodeTypeDefinition } from './store/index.js';
|
|
4
5
|
/** Allowed values for AppUINavItem.preferredSection */
|
|
5
6
|
export declare const PREFERRED_SECTIONS: readonly ["default", "footer", "settings"];
|
|
6
7
|
/**
|
|
@@ -41,7 +42,7 @@ export interface AppUIConfig {
|
|
|
41
42
|
* - shadow - use Shadow DOM to fully isolate the plugin from the host.
|
|
42
43
|
* - css - use CSS processing (like prefixing or other isolation techniques). Ligther but plugins may conflict with the host
|
|
43
44
|
*/
|
|
44
|
-
isolation?:
|
|
45
|
+
isolation?: 'shadow' | 'css';
|
|
45
46
|
/**
|
|
46
47
|
* Navigation items for the app's sidebar UI.
|
|
47
48
|
* Only applicable for apps with UI capability in shell contexts (ie. CompositeApp shell).
|
|
@@ -66,11 +67,11 @@ export interface AppInstallationsQuery {
|
|
|
66
67
|
/**
|
|
67
68
|
* Authentication type for tool collections
|
|
68
69
|
*/
|
|
69
|
-
export type ToolCollectionAuthType =
|
|
70
|
+
export type ToolCollectionAuthType = 'oauth' | 'other';
|
|
70
71
|
/**
|
|
71
72
|
* Tool collection type
|
|
72
73
|
*/
|
|
73
|
-
export type ToolCollectionType =
|
|
74
|
+
export type ToolCollectionType = 'mcp' | 'vertesia_sdk';
|
|
74
75
|
/**
|
|
75
76
|
* Base tool collection configuration
|
|
76
77
|
*/
|
|
@@ -120,7 +121,7 @@ export interface MCPOAuthConfig {
|
|
|
120
121
|
* MCP tool collection configuration (requires name, description, and namespace)
|
|
121
122
|
*/
|
|
122
123
|
export interface MCPToolCollectionObject extends BaseToolCollectionObject {
|
|
123
|
-
type:
|
|
124
|
+
type: 'mcp';
|
|
124
125
|
/**
|
|
125
126
|
* Stable identifier for this collection.
|
|
126
127
|
* Used to key oauth_bindings on AppInstallation — protects against collection renames.
|
|
@@ -176,7 +177,7 @@ export interface MCPToolCollectionObject extends BaseToolCollectionObject {
|
|
|
176
177
|
* Vertesia SDK tool collection configuration
|
|
177
178
|
*/
|
|
178
179
|
export interface VertesiaSDKToolCollectionObject extends BaseToolCollectionObject {
|
|
179
|
-
type:
|
|
180
|
+
type: 'vertesia_sdk';
|
|
180
181
|
/**
|
|
181
182
|
* Optional namespace to use for tool names from this collection.
|
|
182
183
|
* If not provided, the tool server default will be used.
|
|
@@ -196,13 +197,16 @@ export interface VertesiaSDKToolCollectionObject extends BaseToolCollectionObjec
|
|
|
196
197
|
/**
|
|
197
198
|
* Tool collection configuration (object format)
|
|
198
199
|
*/
|
|
200
|
+
/**
|
|
201
|
+
* @discriminator type
|
|
202
|
+
*/
|
|
199
203
|
export type ToolCollectionObject = MCPToolCollectionObject | VertesiaSDKToolCollectionObject;
|
|
200
204
|
/**
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
205
|
+
* Backward-compatible TypeScript alias. Public API payloads should reference
|
|
206
|
+
* ToolCollectionObject directly so generated clients do not create a wrapper
|
|
207
|
+
* model around the discriminated union.
|
|
204
208
|
*/
|
|
205
|
-
export type ToolCollection =
|
|
209
|
+
export type ToolCollection = ToolCollectionObject;
|
|
206
210
|
export declare const MCP_COLLECTION_ID_PATTERN: RegExp;
|
|
207
211
|
export declare const MCP_COLLECTION_NAMESPACE_PATTERN: RegExp;
|
|
208
212
|
export declare function isValidMCPCollectionId(id: string): boolean;
|
|
@@ -211,12 +215,14 @@ export declare function deriveMCPCollectionId(input: string): string;
|
|
|
211
215
|
export declare function getDefaultOAuthAppNameForCollectionId(collectionId: string): string;
|
|
212
216
|
/**
|
|
213
217
|
* Normalizes a tool collection to the object format.
|
|
214
|
-
*
|
|
218
|
+
* Applies optional `{{var}}` substitution to the URL so manifests can reference
|
|
219
|
+
* deployment-time variables like `{{studio_ui}}`.
|
|
215
220
|
*
|
|
216
|
-
* @param collection -
|
|
221
|
+
* @param collection - ToolCollectionObject
|
|
222
|
+
* @param vars - Optional endpoint variables to substitute in URLs
|
|
217
223
|
* @returns Normalized ToolCollectionObject
|
|
218
224
|
*/
|
|
219
|
-
export declare function normalizeToolCollection(collection:
|
|
225
|
+
export declare function normalizeToolCollection(collection: ToolCollectionObject, vars?: Endpoints): ToolCollectionObject;
|
|
220
226
|
/**
|
|
221
227
|
* Metadata hints from MCP tool annotations (per MCP spec).
|
|
222
228
|
*/
|
|
@@ -249,18 +255,29 @@ export interface AgentToolDefinition extends ToolDefinition {
|
|
|
249
255
|
/**
|
|
250
256
|
* Whether this tool is available by default.
|
|
251
257
|
* - true/undefined: Tool is always available to agents
|
|
252
|
-
* - false: Tool is only available when
|
|
258
|
+
* - false: Tool is only available when enabled by a skill via `tools`
|
|
253
259
|
*/
|
|
254
260
|
default?: boolean;
|
|
255
261
|
/**
|
|
256
|
-
* For skill tools (learn_
|
|
257
|
-
*
|
|
262
|
+
* For skill tools (`learn_*`): the tool names this skill enables when called.
|
|
263
|
+
* Matches the `tools:` key used in SKILL.md frontmatter and built-in skill
|
|
264
|
+
* definitions — one name across the whole stack.
|
|
258
265
|
*/
|
|
259
|
-
|
|
266
|
+
tools?: string[];
|
|
260
267
|
/**
|
|
261
268
|
* MCP tool annotations providing hints about tool behavior and safety.
|
|
262
269
|
*/
|
|
263
270
|
annotations?: MCPToolAnnotations;
|
|
271
|
+
/**
|
|
272
|
+
* When true, agents must obtain explicit user confirmation via `ask_user`
|
|
273
|
+
* (Yes/No) before invoking this tool. If the user answers No, the tool
|
|
274
|
+
* must not run and should return an error indicating the user declined.
|
|
275
|
+
*
|
|
276
|
+
* Stronger than `annotations.destructiveHint` (which is only a hint) —
|
|
277
|
+
* this is a hard contract the agent is expected to honor. Set on tools
|
|
278
|
+
* that perform irreversible or destructive actions (e.g. delete_*).
|
|
279
|
+
*/
|
|
280
|
+
requires_user_confirmation?: boolean;
|
|
264
281
|
}
|
|
265
282
|
/**
|
|
266
283
|
* Definition of a remote activity exposed by a tool server for use in DSL workflows.
|
|
@@ -277,9 +294,9 @@ export interface RemoteActivityDefinition {
|
|
|
277
294
|
/** Description of what the activity does */
|
|
278
295
|
description?: string;
|
|
279
296
|
/** JSON Schema for the activity input parameters */
|
|
280
|
-
input_schema?: Record<string,
|
|
297
|
+
input_schema?: Record<string, unknown>;
|
|
281
298
|
/** JSON Schema for the activity output */
|
|
282
|
-
output_schema?: Record<string,
|
|
299
|
+
output_schema?: Record<string, unknown>;
|
|
283
300
|
/**
|
|
284
301
|
* The activity execution URL. Can be absolute or relative to the tool server base URL.
|
|
285
302
|
* If not provided, the collection-specific activities endpoint is used.
|
|
@@ -288,8 +305,195 @@ export interface RemoteActivityDefinition {
|
|
|
288
305
|
/** Suggested timeout and retry configuration */
|
|
289
306
|
options?: DSLActivityOptions;
|
|
290
307
|
}
|
|
291
|
-
export type AppCapabilities = 'ui' | 'tools' | 'interactions' | 'types' | 'templates';
|
|
308
|
+
export type AppCapabilities = 'ui' | 'tools' | 'interactions' | 'types' | 'processes' | 'templates' | 'dashboards';
|
|
292
309
|
export type AppAvailableIn = 'app_portal' | 'composite_app';
|
|
310
|
+
export type AppVersionKind = 'design' | 'preview' | 'published';
|
|
311
|
+
export type AppVersionState = 'ready' | 'failed' | 'expired';
|
|
312
|
+
export type AppVersionTarget = 'static' | 'service';
|
|
313
|
+
export type AppVersionGitRefType = 'branch' | 'tag' | 'commit' | 'detached';
|
|
314
|
+
export type AppBuildIntent = 'preview' | 'publish';
|
|
315
|
+
export type AppBuildTrigger = 'ui' | 'git_push' | 'agent' | 'api';
|
|
316
|
+
export interface AppVersionStorage {
|
|
317
|
+
tenant_id?: string;
|
|
318
|
+
app_prefix?: string;
|
|
319
|
+
artifacts_prefix?: string;
|
|
320
|
+
source_archive?: string;
|
|
321
|
+
source_git?: AppVersionGitSource;
|
|
322
|
+
build_prefix?: string;
|
|
323
|
+
manifest_path?: string;
|
|
324
|
+
service_archive?: string;
|
|
325
|
+
live_metadata_path?: string;
|
|
326
|
+
}
|
|
327
|
+
export interface AppVersionGitSource {
|
|
328
|
+
url?: string;
|
|
329
|
+
remote?: string;
|
|
330
|
+
/**
|
|
331
|
+
* The source ref that should be used to reproduce this version. For immutable
|
|
332
|
+
* app versions this is normally the tag created during preview/publish.
|
|
333
|
+
*/
|
|
334
|
+
ref?: string;
|
|
335
|
+
ref_type?: AppVersionGitRefType;
|
|
336
|
+
branch?: string;
|
|
337
|
+
tag?: string;
|
|
338
|
+
commit?: string;
|
|
339
|
+
dirty?: boolean;
|
|
340
|
+
pushed?: boolean;
|
|
341
|
+
push_warning?: string;
|
|
342
|
+
}
|
|
343
|
+
export interface AppVersionUrls {
|
|
344
|
+
live_url?: string;
|
|
345
|
+
app_url?: string;
|
|
346
|
+
plugin_url?: string;
|
|
347
|
+
package_url?: string;
|
|
348
|
+
internal_preview_url?: string;
|
|
349
|
+
}
|
|
350
|
+
export interface AppVersionRecord {
|
|
351
|
+
id: string;
|
|
352
|
+
account: string;
|
|
353
|
+
project: string;
|
|
354
|
+
app?: string;
|
|
355
|
+
app_id: string;
|
|
356
|
+
app_name: string;
|
|
357
|
+
version_id: string;
|
|
358
|
+
kind: AppVersionKind;
|
|
359
|
+
state: AppVersionState;
|
|
360
|
+
active?: boolean;
|
|
361
|
+
target?: AppVersionTarget;
|
|
362
|
+
agent_run_id?: string;
|
|
363
|
+
sandbox_id?: string;
|
|
364
|
+
title?: string;
|
|
365
|
+
description?: string;
|
|
366
|
+
storage?: AppVersionStorage;
|
|
367
|
+
urls?: AppVersionUrls;
|
|
368
|
+
manifest?: Record<string, unknown>;
|
|
369
|
+
files?: string[];
|
|
370
|
+
file_count?: number;
|
|
371
|
+
source_file_count?: number;
|
|
372
|
+
screenshot_artifact?: string;
|
|
373
|
+
checks?: string[];
|
|
374
|
+
created_by?: string;
|
|
375
|
+
created_at: string;
|
|
376
|
+
updated_at: string;
|
|
377
|
+
published_at?: string;
|
|
378
|
+
checked_at?: string;
|
|
379
|
+
expires_at?: string;
|
|
380
|
+
}
|
|
381
|
+
export interface UpsertAppVersionRequest {
|
|
382
|
+
app?: string;
|
|
383
|
+
app_id: string;
|
|
384
|
+
app_name?: string;
|
|
385
|
+
version_id: string;
|
|
386
|
+
kind: AppVersionKind;
|
|
387
|
+
state?: AppVersionState;
|
|
388
|
+
active?: boolean;
|
|
389
|
+
target?: AppVersionTarget;
|
|
390
|
+
agent_run_id?: string;
|
|
391
|
+
sandbox_id?: string;
|
|
392
|
+
title?: string;
|
|
393
|
+
description?: string;
|
|
394
|
+
storage?: AppVersionStorage;
|
|
395
|
+
urls?: AppVersionUrls;
|
|
396
|
+
manifest?: Record<string, unknown>;
|
|
397
|
+
files?: string[];
|
|
398
|
+
file_count?: number;
|
|
399
|
+
source_file_count?: number;
|
|
400
|
+
screenshot_artifact?: string;
|
|
401
|
+
checks?: string[];
|
|
402
|
+
published_at?: string;
|
|
403
|
+
checked_at?: string;
|
|
404
|
+
expires_at?: string;
|
|
405
|
+
}
|
|
406
|
+
export interface AppVersionListQuery {
|
|
407
|
+
app_id?: string;
|
|
408
|
+
kind?: AppVersionKind;
|
|
409
|
+
include_expired?: boolean;
|
|
410
|
+
limit?: number;
|
|
411
|
+
}
|
|
412
|
+
export interface ActivateAppVersionResponse {
|
|
413
|
+
version: AppVersionRecord;
|
|
414
|
+
app?: AppManifest;
|
|
415
|
+
}
|
|
416
|
+
export interface StartAppBuildRequest {
|
|
417
|
+
/**
|
|
418
|
+
* Source branch, tag, or commit to build. When omitted, the app source
|
|
419
|
+
* configuration chooses the dev branch for previews and production branch
|
|
420
|
+
* for publishes.
|
|
421
|
+
*/
|
|
422
|
+
source_ref?: string;
|
|
423
|
+
source_ref_type?: Extract<AppVersionGitRefType, 'branch' | 'tag' | 'commit'>;
|
|
424
|
+
intent?: AppBuildIntent;
|
|
425
|
+
trigger?: AppBuildTrigger;
|
|
426
|
+
target?: AppVersionTarget;
|
|
427
|
+
activate?: boolean;
|
|
428
|
+
title?: string;
|
|
429
|
+
description?: string;
|
|
430
|
+
}
|
|
431
|
+
export interface StartAppBuildResponse {
|
|
432
|
+
workflow_id: string;
|
|
433
|
+
run_id: string;
|
|
434
|
+
app_id: string;
|
|
435
|
+
intent: AppBuildIntent;
|
|
436
|
+
source_ref?: string;
|
|
437
|
+
source_ref_type?: Extract<AppVersionGitRefType, 'branch' | 'tag' | 'commit'>;
|
|
438
|
+
}
|
|
439
|
+
export interface AppBuildWorkflowInput extends StartAppBuildRequest {
|
|
440
|
+
app_id: string;
|
|
441
|
+
app_record_id?: string;
|
|
442
|
+
app_title?: string;
|
|
443
|
+
app_description?: string;
|
|
444
|
+
source_git_url?: string;
|
|
445
|
+
}
|
|
446
|
+
export interface AppBuildWorkflowResult {
|
|
447
|
+
app_id: string;
|
|
448
|
+
version_id: string;
|
|
449
|
+
kind: Extract<AppVersionKind, 'preview' | 'published'>;
|
|
450
|
+
state: AppVersionState;
|
|
451
|
+
source_git?: AppVersionGitSource;
|
|
452
|
+
urls?: AppVersionUrls;
|
|
453
|
+
file_count?: number;
|
|
454
|
+
}
|
|
455
|
+
export type AppBuildProgressStatus = 'queued' | 'resolving' | 'building' | 'completed' | 'failed';
|
|
456
|
+
export interface AppBuildProgress {
|
|
457
|
+
status: AppBuildProgressStatus;
|
|
458
|
+
step: string;
|
|
459
|
+
app_id?: string;
|
|
460
|
+
version_id?: string;
|
|
461
|
+
intent?: AppBuildIntent;
|
|
462
|
+
source_ref?: string;
|
|
463
|
+
source_ref_type?: Extract<AppVersionGitRefType, 'branch' | 'tag' | 'commit'>;
|
|
464
|
+
source_commit?: string;
|
|
465
|
+
file_count?: number;
|
|
466
|
+
app_url?: string;
|
|
467
|
+
error?: string;
|
|
468
|
+
updated_at: string;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Access control policy for an app installation.
|
|
472
|
+
* Declares which access surfaces are gated by per-user ACEs.
|
|
473
|
+
*
|
|
474
|
+
* - 'all' (default): every surface (UI portal, tool/endpoint use, contributions) requires
|
|
475
|
+
* an explicit app_member ACE — the historical behavior.
|
|
476
|
+
* - 'ui': UI portal visibility requires an ACE, but tool/endpoint use and contributions
|
|
477
|
+
* are open to anyone in the project.
|
|
478
|
+
* - 'none': fully open within the project — no ACE required for any surface.
|
|
479
|
+
*
|
|
480
|
+
* Declared on the manifest as the app's default. May be overridden per-installation.
|
|
481
|
+
*/
|
|
482
|
+
export type AppAccessControl = 'all' | 'ui' | 'none';
|
|
483
|
+
/**
|
|
484
|
+
* Resolve the effective access_control policy for an installed app:
|
|
485
|
+
* installation override wins, then manifest default, then `'all'`.
|
|
486
|
+
*
|
|
487
|
+
* Shared by the STS (JWT generation), the studio-server (validation), and the UI (badge display)
|
|
488
|
+
* so the resolution rule lives in exactly one place. Named `effectiveAppAccessControl` (not just
|
|
489
|
+
* `effectiveAccessControl`) because exports from `@vertesia/common` are flattened — the broader
|
|
490
|
+
* name would risk colliding with other access-control families added later.
|
|
491
|
+
*/
|
|
492
|
+
export declare function effectiveAppAccessControl(installation: {
|
|
493
|
+
access_control?: AppAccessControl;
|
|
494
|
+
} | null | undefined, manifest: {
|
|
495
|
+
access_control?: AppAccessControl;
|
|
496
|
+
} | null | undefined): AppAccessControl;
|
|
293
497
|
export interface AppManifestData {
|
|
294
498
|
/**
|
|
295
499
|
* The name of the app, used as the id in the system.
|
|
@@ -302,7 +506,7 @@ export interface AppManifestData {
|
|
|
302
506
|
* - "private": visible only to the owning account
|
|
303
507
|
* - "vertesia": visible only to Vertesia team members (any project)
|
|
304
508
|
*/
|
|
305
|
-
visibility:
|
|
509
|
+
visibility: 'public' | 'private' | 'vertesia';
|
|
306
510
|
title: string;
|
|
307
511
|
description: string;
|
|
308
512
|
publisher: string;
|
|
@@ -315,7 +519,18 @@ export interface AppManifestData {
|
|
|
315
519
|
* If not specified a random color will be picked.
|
|
316
520
|
*/
|
|
317
521
|
color?: string;
|
|
318
|
-
|
|
522
|
+
/**
|
|
523
|
+
* Optional preview screenshot for the app-management UI, captured by the builder during a
|
|
524
|
+
* build/QA run. Resolved client-side from the owning agent run's artifact storage, so it
|
|
525
|
+
* carries both the run id and the artifact path.
|
|
526
|
+
*/
|
|
527
|
+
preview_screenshot?: {
|
|
528
|
+
/** Agent run id whose artifact storage holds the screenshot. */
|
|
529
|
+
agent_run_id: string;
|
|
530
|
+
/** Artifact path within that storage, e.g. "preview-checks/app-preview-<ts>.png". */
|
|
531
|
+
artifact: string;
|
|
532
|
+
};
|
|
533
|
+
status: 'beta' | 'stable' | 'deprecated';
|
|
319
534
|
/**
|
|
320
535
|
* The UI configuration of the app. If not specified and the app "ui" is in the app capabilities
|
|
321
536
|
* then the ui configuration will be fetched from the endpoint property.
|
|
@@ -325,7 +540,7 @@ export interface AppManifestData {
|
|
|
325
540
|
* A list of tool collections endpoints to be used by this app.
|
|
326
541
|
* Prefer using endpoint over tool_collections.
|
|
327
542
|
*/
|
|
328
|
-
tool_collections?:
|
|
543
|
+
tool_collections?: ToolCollectionObject[];
|
|
329
544
|
/**
|
|
330
545
|
* Named OAuth providers shared across multiple MCP tool collections.
|
|
331
546
|
* Keys must be kebab-case identifiers. Each value is an MCPOAuthConfig blueprint.
|
|
@@ -362,6 +577,9 @@ export interface AppManifestData {
|
|
|
362
577
|
* - tools
|
|
363
578
|
* - interactions
|
|
364
579
|
* - types
|
|
580
|
+
* - processes
|
|
581
|
+
* - templates
|
|
582
|
+
* - dashboards
|
|
365
583
|
* - settings
|
|
366
584
|
* - all (the default if no scope is provided)
|
|
367
585
|
* You can also use comma-separated values to combine scopes (e.g. "ui,tools").
|
|
@@ -377,18 +595,92 @@ export interface AppManifestData {
|
|
|
377
595
|
* Only dev environment names are allowed as keys (starting with "desktop-" or "dev-").
|
|
378
596
|
*/
|
|
379
597
|
endpoint_overrides?: Record<string, string>;
|
|
598
|
+
/**
|
|
599
|
+
* Optional app version string (e.g. "1.0.0") — informational.
|
|
600
|
+
*/
|
|
601
|
+
version?: string;
|
|
602
|
+
/**
|
|
603
|
+
* Source repository configuration for apps generated and maintained through
|
|
604
|
+
* AppGen. Branches are mutable deployment lanes; immutable app versions
|
|
605
|
+
* record their exact source tag/commit in AppVersionRecord.storage.source_git.
|
|
606
|
+
*/
|
|
607
|
+
source?: AppSourceConfig;
|
|
608
|
+
/**
|
|
609
|
+
* Free-form tags used for classification and filtering. Platform apps
|
|
610
|
+
* carry `"system"` so UIs can skip install/uninstall/manage-permission
|
|
611
|
+
* controls that don't apply to synthetic installations.
|
|
612
|
+
*/
|
|
613
|
+
tags?: string[];
|
|
614
|
+
/**
|
|
615
|
+
* Access control policy for the app. Defaults to 'all' (ACE-gated everywhere)
|
|
616
|
+
* when undefined. See {@link AppAccessControl} for semantics. May be overridden
|
|
617
|
+
* on the AppInstallation.
|
|
618
|
+
*/
|
|
619
|
+
access_control?: AppAccessControl;
|
|
620
|
+
}
|
|
621
|
+
export interface AppGitSourceConfig {
|
|
622
|
+
url?: string;
|
|
623
|
+
default_branch?: string;
|
|
624
|
+
production_branch?: string;
|
|
625
|
+
development_branch?: string;
|
|
626
|
+
}
|
|
627
|
+
export interface AppSourceConfig {
|
|
628
|
+
kind: 'git';
|
|
629
|
+
git?: AppGitSourceConfig;
|
|
380
630
|
}
|
|
381
631
|
/**
|
|
382
632
|
* Returns true if the given environment name is allowed as an endpoint override key.
|
|
383
|
-
*
|
|
633
|
+
* Any non-empty name is accepted except the reserved shared-deployment names.
|
|
384
634
|
*/
|
|
385
635
|
export declare function isValidEndpointOverrideEnv(envName: string): boolean;
|
|
386
636
|
/**
|
|
387
|
-
*
|
|
388
|
-
*
|
|
637
|
+
* Deployment-time URL endpoints that can be referenced in app manifest URLs
|
|
638
|
+
* via `{{key}}` placeholders. The caller (typically studio-server) supplies
|
|
639
|
+
* these from environment config so that system apps can ship a single manifest
|
|
640
|
+
* with endpoints like `{{studio}}/api/package` that resolve per deployment.
|
|
641
|
+
*/
|
|
642
|
+
export interface Endpoints {
|
|
643
|
+
/** The Studio API (studio-server) base URL */
|
|
644
|
+
studio?: string;
|
|
645
|
+
/** The Store API (zeno-server) base URL */
|
|
646
|
+
store?: string;
|
|
647
|
+
/** The token server base URL */
|
|
648
|
+
token?: string;
|
|
649
|
+
/** The browser-facing Studio UI (composable-ui) base URL */
|
|
650
|
+
ui?: string;
|
|
651
|
+
/** The Smart HTTP app source git server base URL */
|
|
652
|
+
git?: string;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Substitutes `{{key}}` placeholders in a URL with the matching endpoint.
|
|
656
|
+
* Unknown placeholders are left untouched (so failures surface as fetch errors
|
|
657
|
+
* with the unresolved placeholder visible, rather than silently pointing nowhere).
|
|
658
|
+
* Trailing slashes on replacement values are stripped to avoid `//api/...` joins.
|
|
389
659
|
*/
|
|
390
|
-
export declare function
|
|
391
|
-
|
|
660
|
+
export declare function substituteEndpoints(url: string, endpoints?: Endpoints): string;
|
|
661
|
+
/**
|
|
662
|
+
* Resolves the effective endpoint for an app.
|
|
663
|
+
*
|
|
664
|
+
* Order of resolution:
|
|
665
|
+
* 1. If `requestedOverride` matches an `endpoint_overrides` key, use that URL
|
|
666
|
+
* (caller must verify the user is allowed to use the override).
|
|
667
|
+
* 2. Else if `envName` matches an `endpoint_overrides` key, use that URL
|
|
668
|
+
* (auto-resolution from the studio-server's deployment env).
|
|
669
|
+
* 3. Otherwise use the main `endpoint`.
|
|
670
|
+
* 4. Apply `{{var}}` substitution using `vars`.
|
|
671
|
+
*/
|
|
672
|
+
export declare function resolveAppEndpoint(manifest: Pick<AppManifestData, 'endpoint' | 'endpoint_overrides'>, envName?: string, vars?: Endpoints, requestedOverride?: string): string | undefined;
|
|
673
|
+
/**
|
|
674
|
+
* Resolves all URL placeholders in a manifest in place (both `endpoint` and
|
|
675
|
+
* `tool_collections[].url`). Intended for server-side serialization — clients and
|
|
676
|
+
* downstream workers receive already-substituted URLs so they don't need to know
|
|
677
|
+
* about deployment-time vars.
|
|
678
|
+
*
|
|
679
|
+
* Mutates the manifest rather than returning a copy so it works cleanly with
|
|
680
|
+
* Mongoose populated subdocs.
|
|
681
|
+
*/
|
|
682
|
+
export declare function resolveManifestUrls(manifest: Partial<AppManifestData> | null | undefined, envName?: string, vars?: Endpoints, requestedOverride?: string): void;
|
|
683
|
+
export type AppPackageScope = 'ui' | 'tools' | 'interactions' | 'types' | 'processes' | 'templates' | 'dashboards' | 'settings' | 'widgets' | 'activities' | 'all';
|
|
392
684
|
export interface AppPackage {
|
|
393
685
|
/**
|
|
394
686
|
* The UI configuration of the app
|
|
@@ -398,6 +690,13 @@ export interface AppPackage {
|
|
|
398
690
|
* A list of tools exposed by the app.
|
|
399
691
|
*/
|
|
400
692
|
tools?: AgentToolDefinition[];
|
|
693
|
+
/**
|
|
694
|
+
* A list of skills (`learn_*` tools) exposed by the app. Kept separate from
|
|
695
|
+
* `tools` so clients can render them distinctly — consumers that don't care
|
|
696
|
+
* (e.g. the worker building a combined tool registry) should concatenate
|
|
697
|
+
* the two lists.
|
|
698
|
+
*/
|
|
699
|
+
skills?: AgentToolDefinition[];
|
|
401
700
|
/**
|
|
402
701
|
* A list of interactions exposed by the app
|
|
403
702
|
*/
|
|
@@ -406,10 +705,18 @@ export interface AppPackage {
|
|
|
406
705
|
* A list of types.
|
|
407
706
|
*/
|
|
408
707
|
types?: InCodeTypeDefinition[];
|
|
708
|
+
/**
|
|
709
|
+
* A list of process definitions exposed by the app.
|
|
710
|
+
*/
|
|
711
|
+
processes?: InCodeProcessDefinition[];
|
|
409
712
|
/**
|
|
410
713
|
* Templates provided by the app.
|
|
411
714
|
*/
|
|
412
715
|
templates?: RenderingTemplateDefinitionRef[];
|
|
716
|
+
/**
|
|
717
|
+
* Dashboards provided by the app.
|
|
718
|
+
*/
|
|
719
|
+
dashboards?: AppDashboardDefinition[];
|
|
413
720
|
/**
|
|
414
721
|
* Widgets provided by the app.
|
|
415
722
|
*/
|
|
@@ -425,6 +732,58 @@ export interface AppPackage {
|
|
|
425
732
|
*/
|
|
426
733
|
settings_schema?: JSONSchema;
|
|
427
734
|
}
|
|
735
|
+
/**
|
|
736
|
+
* A single diagnostic produced while inspecting an app's registration state.
|
|
737
|
+
*/
|
|
738
|
+
export interface AppInspectionIssue {
|
|
739
|
+
severity: 'error' | 'warning';
|
|
740
|
+
/** The capability this issue relates to, when applicable (e.g. 'types'). */
|
|
741
|
+
capability?: AppPackageScope;
|
|
742
|
+
/** Stable machine code, e.g. 'capability_declared_but_empty', 'endpoint_unreachable', 'not_installed'. */
|
|
743
|
+
code: string;
|
|
744
|
+
/** Human-readable explanation, safe to surface to the model and the UI. */
|
|
745
|
+
message: string;
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Per-capability report of what an app's published package actually exposes,
|
|
749
|
+
* compared against what its manifest declares.
|
|
750
|
+
*/
|
|
751
|
+
export interface AppInspectionCapabilityReport {
|
|
752
|
+
capability: AppPackageScope;
|
|
753
|
+
/** True when the manifest's `capabilities` array declares this capability. */
|
|
754
|
+
declared: boolean;
|
|
755
|
+
/** The local ids the published package actually serves for this capability. */
|
|
756
|
+
exposed_ids: string[];
|
|
757
|
+
/** Convenience count of `exposed_ids`. */
|
|
758
|
+
exposed_count: number;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Result of inspecting an app's registration: the resolved manifest state, what
|
|
762
|
+
* the published package actually exposes per capability, and diagnostics. This
|
|
763
|
+
* is the ground truth used by the `app_inspect_registration` agent tool and the
|
|
764
|
+
* Build › App inspection UI to verify what is registered vs declared, instead of
|
|
765
|
+
* inferring it from failed object/import calls.
|
|
766
|
+
*/
|
|
767
|
+
export interface AppInspectionResult {
|
|
768
|
+
app_id: string;
|
|
769
|
+
name: string;
|
|
770
|
+
version?: string;
|
|
771
|
+
/** The resolved package endpoint for the current environment, if any. */
|
|
772
|
+
endpoint?: string;
|
|
773
|
+
/** True when the package endpoint responded to the capability probe. */
|
|
774
|
+
endpoint_reachable: boolean;
|
|
775
|
+
/** True when the app is installed in the current project. */
|
|
776
|
+
installed: boolean;
|
|
777
|
+
access_control?: string;
|
|
778
|
+
/** The capabilities declared on the manifest. */
|
|
779
|
+
capabilities: AppPackageScope[];
|
|
780
|
+
/** What the published package exposes, per capability. */
|
|
781
|
+
package: AppInspectionCapabilityReport[];
|
|
782
|
+
/** Diagnostics — errors and warnings about the registration state. */
|
|
783
|
+
issues: AppInspectionIssue[];
|
|
784
|
+
/** Populated when the package probe itself failed (endpoint error/unreachable). */
|
|
785
|
+
probe_error?: string;
|
|
786
|
+
}
|
|
428
787
|
export interface AppWidgetInfo {
|
|
429
788
|
collection: string;
|
|
430
789
|
skill: string;
|
|
@@ -498,7 +857,7 @@ export interface AppInstallation {
|
|
|
498
857
|
id: string;
|
|
499
858
|
project: string;
|
|
500
859
|
manifest: string;
|
|
501
|
-
settings?: Record<string,
|
|
860
|
+
settings?: Record<string, unknown>;
|
|
502
861
|
/**
|
|
503
862
|
* Admin-managed allowlist of tool names permitted for this installation.
|
|
504
863
|
* When undefined, all tools from the app are permitted.
|
|
@@ -517,6 +876,12 @@ export interface AppInstallation {
|
|
|
517
876
|
* Multiple collections sharing the same provider all resolve to the same OAuth provider.
|
|
518
877
|
*/
|
|
519
878
|
provider_bindings?: AppInstallationProviderBinding[];
|
|
879
|
+
/**
|
|
880
|
+
* Per-installation override of the manifest's access_control policy.
|
|
881
|
+
* When set, takes precedence over the manifest value. When undefined, the
|
|
882
|
+
* manifest value (or 'all' default) applies.
|
|
883
|
+
*/
|
|
884
|
+
access_control?: AppAccessControl;
|
|
520
885
|
created_at: string;
|
|
521
886
|
updated_at: string;
|
|
522
887
|
}
|
|
@@ -545,7 +910,20 @@ export type AppOAuthCollectionParams = Record<string, OAuthClientCredentials>;
|
|
|
545
910
|
export type AppOAuthProviderParams = Record<string, OAuthClientCredentials>;
|
|
546
911
|
export interface AppInstallationPayload {
|
|
547
912
|
app_id: string;
|
|
548
|
-
settings?: Record<string,
|
|
913
|
+
settings?: Record<string, unknown>;
|
|
914
|
+
/**
|
|
915
|
+
* Per-installation override of the manifest's `access_control` policy. When provided, takes precedence
|
|
916
|
+
* over the manifest default for every access check. Sibling of `settings` — admin-controlled, not
|
|
917
|
+
* part of the app's own settings JSON.
|
|
918
|
+
*
|
|
919
|
+
* Three send-time semantics on update:
|
|
920
|
+
* - Field omitted entirely from the payload → leave the existing override unchanged.
|
|
921
|
+
* - Explicit `null` → clear the override, fall back to the manifest default.
|
|
922
|
+
* - String enum → set the override to that value.
|
|
923
|
+
*
|
|
924
|
+
* (On install, the same shape applies; omit or pass `null` to use the manifest default.)
|
|
925
|
+
*/
|
|
926
|
+
access_control?: AppAccessControl | null;
|
|
549
927
|
/**
|
|
550
928
|
* OAuth credentials for each collection, keyed by collection.id.
|
|
551
929
|
* Legacy callers may still use collection.name for older manifests.
|
|
@@ -605,7 +983,7 @@ export interface ProjectToolInfo {
|
|
|
605
983
|
* The app installation settings.
|
|
606
984
|
* Only included for agent tokens, not user tokens (security: may contain API keys).
|
|
607
985
|
*/
|
|
608
|
-
settings?: Record<string,
|
|
986
|
+
settings?: Record<string, unknown>;
|
|
609
987
|
}
|
|
610
988
|
/**
|
|
611
989
|
* OAuth authentication status for an MCP tool collection
|
|
@@ -676,7 +1054,7 @@ export interface CompositeAppLogoOverrides {
|
|
|
676
1054
|
}
|
|
677
1055
|
/**
|
|
678
1056
|
* Message banner overrides for the shell header.
|
|
679
|
-
*/
|
|
1057
|
+
*/
|
|
680
1058
|
export type CompositeAppMessageStyle = 'foreground' | 'info' | 'success' | 'attention' | 'destructive';
|
|
681
1059
|
export interface CompositeAppMessageOverrides {
|
|
682
1060
|
/** Message text to display */
|
|
@@ -826,7 +1204,7 @@ export interface CompositeAppConfig {
|
|
|
826
1204
|
/**
|
|
827
1205
|
* The unique identifier for this CompositeApp configuration
|
|
828
1206
|
* Undefined if the configuration doesn't exists yet.
|
|
829
|
-
|
|
1207
|
+
*/
|
|
830
1208
|
id?: string;
|
|
831
1209
|
/** The project this CompositeApp belongs to */
|
|
832
1210
|
project: string;
|
|
@@ -864,4 +1242,21 @@ export interface ValidateUrlRequest {
|
|
|
864
1242
|
export interface ValidateUrlResponse {
|
|
865
1243
|
valid: true;
|
|
866
1244
|
}
|
|
1245
|
+
/**
|
|
1246
|
+
* Result of DELETE /api/v1/apps/:id. With `?confirm=true` the cascade runs and
|
|
1247
|
+
* `deleted: true` is set; without it the endpoint returns a dry-run summary so
|
|
1248
|
+
* the UI can show what would be removed.
|
|
1249
|
+
*/
|
|
1250
|
+
export interface AppDeleteSummary {
|
|
1251
|
+
confirmed: boolean;
|
|
1252
|
+
app_id: string;
|
|
1253
|
+
app_name: string;
|
|
1254
|
+
versions: number;
|
|
1255
|
+
installations: number;
|
|
1256
|
+
storage_prefix: string;
|
|
1257
|
+
git_repo_url?: string;
|
|
1258
|
+
deleted: boolean;
|
|
1259
|
+
warnings: string[];
|
|
1260
|
+
}
|
|
867
1261
|
export {};
|
|
1262
|
+
//# sourceMappingURL=apps.d.ts.map
|