@vertesia/common 1.3.0 → 1.4.0-dev.20260615.042033Z
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/{types/access-control.d.ts → access-control.d.ts} +15 -5
- package/lib/access-control.d.ts.map +1 -0
- package/lib/{esm/access-control.js → access-control.js} +10 -7
- 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} +21 -5
- 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} +18 -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} +5 -4
- package/lib/group.d.ts.map +1 -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} +50 -7
- 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} +253 -22
- 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 +10 -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 +63 -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} +6 -9
- 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 +19 -19
- package/src/Progress.ts +9 -7
- package/src/access-control.ts +66 -70
- 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 +28 -12
- 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 +4 -5
- 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 +65 -8
- package/src/payload.ts +6 -6
- package/src/pending-asks.ts +8 -1
- package/src/principal-context.ts +27 -0
- package/src/project.ts +383 -75
- 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 +13 -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 +115 -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 +18 -37
- 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 -91
- 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.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.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/group.js → group.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
package/src/audit-trail.ts
CHANGED
|
@@ -9,6 +9,8 @@ export type AuditAction =
|
|
|
9
9
|
| 'bulk_delete'
|
|
10
10
|
| 'attach'
|
|
11
11
|
| 'detach'
|
|
12
|
+
| 'credentials_fill'
|
|
13
|
+
| 'credentials_totp_generation'
|
|
12
14
|
| 'publish'
|
|
13
15
|
| 'unpublish'
|
|
14
16
|
// Billable operations
|
|
@@ -17,11 +19,7 @@ export type AuditAction =
|
|
|
17
19
|
| 'image_generation';
|
|
18
20
|
|
|
19
21
|
/** Billable audit actions for cost analytics queries */
|
|
20
|
-
export const BILLABLE_AUDIT_ACTIONS: AuditAction[] = [
|
|
21
|
-
'inference',
|
|
22
|
-
'embedding',
|
|
23
|
-
'image_generation',
|
|
24
|
-
];
|
|
22
|
+
export const BILLABLE_AUDIT_ACTIONS: AuditAction[] = ['inference', 'embedding', 'image_generation'];
|
|
25
23
|
|
|
26
24
|
/**
|
|
27
25
|
* Generic metering entry attached to audit events.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export type WebsiteCredentialCapability = 'password' | 'totp' | 'oauth';
|
|
2
|
+
|
|
3
|
+
export type WebsiteCredentialTotpAlgorithm = 'SHA1' | 'SHA256' | 'SHA512';
|
|
4
|
+
|
|
5
|
+
export interface WebsiteCredentialWebsite {
|
|
6
|
+
/**
|
|
7
|
+
* Hostname this credential is allowed on. Subdomains match.
|
|
8
|
+
*/
|
|
9
|
+
host: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional login URL used by agents as a hint.
|
|
12
|
+
*/
|
|
13
|
+
login_url?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional narrower origin allowlist for this credential.
|
|
16
|
+
*/
|
|
17
|
+
allowed_origins?: string[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface WebsiteCredentialTotpMetadata {
|
|
21
|
+
algorithm?: WebsiteCredentialTotpAlgorithm;
|
|
22
|
+
digits?: 6 | 8;
|
|
23
|
+
period?: number;
|
|
24
|
+
issuer?: string;
|
|
25
|
+
account?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface WebsiteCredentialMetadata {
|
|
29
|
+
name: string;
|
|
30
|
+
websites: WebsiteCredentialWebsite[];
|
|
31
|
+
username?: string;
|
|
32
|
+
username_hint?: string;
|
|
33
|
+
username_secret?: boolean;
|
|
34
|
+
properties?: Record<string, unknown>;
|
|
35
|
+
tags?: string[];
|
|
36
|
+
enabled?: boolean;
|
|
37
|
+
capabilities?: WebsiteCredentialCapability[];
|
|
38
|
+
notes?: string;
|
|
39
|
+
totp?: WebsiteCredentialTotpMetadata;
|
|
40
|
+
/**
|
|
41
|
+
* Optional ISO timestamp after which the credential is no longer usable.
|
|
42
|
+
* Expired credentials are hidden from lookup and cannot be filled.
|
|
43
|
+
*/
|
|
44
|
+
expires_at?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface WebsiteCredentialRecord {
|
|
48
|
+
id: string;
|
|
49
|
+
credential_ref: string;
|
|
50
|
+
project: string;
|
|
51
|
+
name: string;
|
|
52
|
+
websites: WebsiteCredentialWebsite[];
|
|
53
|
+
username?: string;
|
|
54
|
+
username_hint?: string;
|
|
55
|
+
username_secret_enabled: boolean;
|
|
56
|
+
properties?: Record<string, unknown>;
|
|
57
|
+
tags?: string[];
|
|
58
|
+
enabled?: boolean;
|
|
59
|
+
capabilities?: WebsiteCredentialCapability[];
|
|
60
|
+
notes?: string;
|
|
61
|
+
totp_metadata?: WebsiteCredentialTotpMetadata;
|
|
62
|
+
/**
|
|
63
|
+
* Optional ISO timestamp after which the credential is no longer usable.
|
|
64
|
+
* Expired credentials are hidden from lookup and cannot be filled.
|
|
65
|
+
*/
|
|
66
|
+
expires_at?: string;
|
|
67
|
+
created_at?: string;
|
|
68
|
+
updated_at?: string;
|
|
69
|
+
has_username_secret: boolean;
|
|
70
|
+
has_password: boolean;
|
|
71
|
+
has_totp: boolean;
|
|
72
|
+
has_oauth: boolean;
|
|
73
|
+
password_hint?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface WebsiteCredentialSecretInput {
|
|
77
|
+
/**
|
|
78
|
+
* Optional encrypted username. Prefer metadata.username unless the username itself is sensitive.
|
|
79
|
+
*/
|
|
80
|
+
username?: string;
|
|
81
|
+
password?: string;
|
|
82
|
+
totp?: WebsiteCredentialTotpMetadata & {
|
|
83
|
+
seed: string;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Future OAuth materialization hook. The token itself remains in the OAuth secret store.
|
|
87
|
+
*/
|
|
88
|
+
oauth?: {
|
|
89
|
+
provider_id?: string;
|
|
90
|
+
token_owner?: 'user' | 'project';
|
|
91
|
+
token_ref?: string;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface CreateWebsiteCredentialRequest extends WebsiteCredentialMetadata {
|
|
96
|
+
secret?: WebsiteCredentialSecretInput;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface UpdateWebsiteCredentialRequest extends Partial<WebsiteCredentialMetadata> {
|
|
100
|
+
secret?: WebsiteCredentialSecretInput;
|
|
101
|
+
clear_username_secret?: boolean;
|
|
102
|
+
clear_password?: boolean;
|
|
103
|
+
clear_totp?: boolean;
|
|
104
|
+
clear_oauth?: boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface WebsiteCredentialFillTarget {
|
|
108
|
+
username_target_id?: string;
|
|
109
|
+
password_target_id?: string;
|
|
110
|
+
totp_target_id?: string;
|
|
111
|
+
submit_target_id?: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface WebsiteCredentialFillRequest extends WebsiteCredentialFillTarget {
|
|
115
|
+
/**
|
|
116
|
+
* Browser-use parent workflow id. The API resolves the Daytona sandbox and
|
|
117
|
+
* observes the current page server-side before decrypting the credential.
|
|
118
|
+
*/
|
|
119
|
+
browser_workflow_id: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface WebsiteCredentialFillResponse {
|
|
123
|
+
ok: boolean;
|
|
124
|
+
credential_ref: string;
|
|
125
|
+
url: string;
|
|
126
|
+
title: string;
|
|
127
|
+
filled: {
|
|
128
|
+
username: boolean;
|
|
129
|
+
password: boolean;
|
|
130
|
+
totp: boolean;
|
|
131
|
+
submitted: boolean;
|
|
132
|
+
};
|
|
133
|
+
}
|
package/src/channels.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmailChannel, isEmailChannel, UserChannel } from
|
|
1
|
+
import { type EmailChannel, isEmailChannel, type UserChannel } from './interaction.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Find the email channel from a list of channels.
|
|
@@ -22,7 +22,7 @@ export function hasEmailChannel(channels?: UserChannel[]): boolean {
|
|
|
22
22
|
*/
|
|
23
23
|
export function updateEmailChannel(
|
|
24
24
|
channels: UserChannel[] | undefined,
|
|
25
|
-
updates: Partial<Omit<EmailChannel,
|
|
25
|
+
updates: Partial<Omit<EmailChannel, 'type'>>,
|
|
26
26
|
): UserChannel[] {
|
|
27
27
|
const existing = channels || [];
|
|
28
28
|
const emailIndex = existing.findIndex(isEmailChannel);
|
|
@@ -30,7 +30,7 @@ export function updateEmailChannel(
|
|
|
30
30
|
if (emailIndex === -1) {
|
|
31
31
|
// No email channel exists, create one if we have required fields
|
|
32
32
|
if (updates.to_email) {
|
|
33
|
-
return [...existing, { type:
|
|
33
|
+
return [...existing, { type: 'email', ...updates } as EmailChannel];
|
|
34
34
|
}
|
|
35
35
|
return existing;
|
|
36
36
|
}
|
|
@@ -40,7 +40,7 @@ export function updateEmailChannel(
|
|
|
40
40
|
updated[emailIndex] = {
|
|
41
41
|
...updated[emailIndex],
|
|
42
42
|
...updates,
|
|
43
|
-
type:
|
|
43
|
+
type: 'email',
|
|
44
44
|
} as EmailChannel;
|
|
45
45
|
return updated;
|
|
46
46
|
}
|
|
@@ -52,7 +52,7 @@ export function updateEmailChannel(
|
|
|
52
52
|
export function updateEmailThreading(
|
|
53
53
|
channels: UserChannel[] | undefined,
|
|
54
54
|
messageId: string,
|
|
55
|
-
subject?: string
|
|
55
|
+
subject?: string,
|
|
56
56
|
): UserChannel[] {
|
|
57
57
|
const emailChannel = findEmailChannel(channels);
|
|
58
58
|
if (!emailChannel) return channels || [];
|
package/src/common.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface FindPayload {
|
|
2
|
-
query: Record<string,
|
|
2
|
+
query: Record<string, unknown>;
|
|
3
3
|
offset?: number;
|
|
4
4
|
limit?: number;
|
|
5
5
|
select?: string;
|
|
@@ -7,12 +7,11 @@ export interface FindPayload {
|
|
|
7
7
|
from_root?: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
export interface GenericCommandResponse {
|
|
12
11
|
status: string;
|
|
13
12
|
message: string;
|
|
14
|
-
err?:
|
|
15
|
-
details?:
|
|
13
|
+
err?: unknown;
|
|
14
|
+
details?: unknown;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface DeleteByIdResult {
|
|
@@ -41,7 +40,7 @@ export interface BulkOperationPayload {
|
|
|
41
40
|
/**
|
|
42
41
|
* The operation name
|
|
43
42
|
*/
|
|
44
|
-
name:
|
|
43
|
+
name: 'change_type' | 'create' | 'delete' | 'start_workflow' | 'update';
|
|
45
44
|
|
|
46
45
|
/**
|
|
47
46
|
* The IDs of the objects to operate on
|
|
@@ -51,28 +50,32 @@ export interface BulkOperationPayload {
|
|
|
51
50
|
/**
|
|
52
51
|
* The operation parameters.
|
|
53
52
|
*/
|
|
54
|
-
params: Record<string,
|
|
53
|
+
params: Record<string, unknown>;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
export interface BulkOperationResult {
|
|
58
|
-
|
|
56
|
+
export interface BulkOperationResult<TOperation extends string = 'generic'> {
|
|
57
|
+
operation: TOperation;
|
|
58
|
+
status: 'in_progress' | 'completed' | 'failed';
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export interface BulkObjectDeleteResult extends BulkOperationResult {
|
|
61
|
+
export interface BulkObjectDeleteResult extends BulkOperationResult<'delete'> {
|
|
62
|
+
operation: 'delete';
|
|
62
63
|
/** Number of documents deleted (including revisions) */
|
|
63
64
|
deleted: number;
|
|
64
65
|
/** IDs that were not found or user had no permission to delete */
|
|
65
66
|
failed: string[];
|
|
66
67
|
}
|
|
67
68
|
|
|
68
|
-
export interface BulkObjectUpdateResult extends BulkOperationResult {
|
|
69
|
+
export interface BulkObjectUpdateResult extends BulkOperationResult<'update'> {
|
|
70
|
+
operation: 'update';
|
|
69
71
|
/** Number of documents successfully updated */
|
|
70
72
|
updated: number;
|
|
71
73
|
/** IDs that were not found, not authorized, or failed to update */
|
|
72
74
|
failed: string[];
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
export interface BulkObjectCreateResult extends BulkOperationResult {
|
|
77
|
+
export interface BulkObjectCreateResult extends BulkOperationResult<'create'> {
|
|
78
|
+
operation: 'create';
|
|
76
79
|
/** Number of documents successfully created */
|
|
77
80
|
created: number;
|
|
78
81
|
/** Successfully created objects with their IDs */
|
|
@@ -81,6 +84,9 @@ export interface BulkObjectCreateResult extends BulkOperationResult {
|
|
|
81
84
|
failed: { external_id?: string; index: number; error: string }[];
|
|
82
85
|
}
|
|
83
86
|
|
|
87
|
+
/**
|
|
88
|
+
* @discriminator operation
|
|
89
|
+
*/
|
|
84
90
|
export type BulkOperationResponse =
|
|
85
91
|
| BulkOperationResult
|
|
86
92
|
| BulkObjectCreateResult
|
package/src/cost-analytics.ts
CHANGED
|
@@ -20,7 +20,15 @@ export interface CostAnalyticsQuery {
|
|
|
20
20
|
/** End time (ISO string or epoch ms) */
|
|
21
21
|
to?: string | number;
|
|
22
22
|
/** Group results by this dimension */
|
|
23
|
-
group_by?:
|
|
23
|
+
group_by?:
|
|
24
|
+
| 'model'
|
|
25
|
+
| 'environment'
|
|
26
|
+
| 'account'
|
|
27
|
+
| 'project'
|
|
28
|
+
| 'project_tag'
|
|
29
|
+
| 'provider'
|
|
30
|
+
| 'interaction'
|
|
31
|
+
| 'workflow';
|
|
24
32
|
/** Time series resolution */
|
|
25
33
|
resolution?: 'hour' | 'day' | 'week' | 'month';
|
|
26
34
|
/** Filter by model pattern */
|
|
@@ -39,10 +47,8 @@ export interface CostAnalyticsQuery {
|
|
|
39
47
|
run_id?: string;
|
|
40
48
|
/** Filter by agent run ID */
|
|
41
49
|
agent_run_id?: string;
|
|
42
|
-
/** Filter by
|
|
50
|
+
/** Filter by interaction id: stored ObjectId or namespaced in-code id */
|
|
43
51
|
interaction_id?: string;
|
|
44
|
-
/** Filter by in-code interaction code (e.g. "@sys:chat") */
|
|
45
|
-
interaction_code?: string;
|
|
46
52
|
/** Filter by principal (bare user or API key id; matched against the suffix of principal_id) */
|
|
47
53
|
principal_id?: string;
|
|
48
54
|
/** Filter by account ID (set automatically by server) */
|
package/src/data-platform.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Supports AI-manageable schemas and multi-table atomic operations.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { BaseObject } from './store/common.js';
|
|
8
|
+
import type { BaseObject } from './store/common.js';
|
|
9
9
|
|
|
10
10
|
// ============================================================================
|
|
11
11
|
// Column Types
|
|
@@ -205,6 +205,10 @@ export interface DataSchema {
|
|
|
205
205
|
updated_by?: string;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
export interface DataStoreFullSchemaResponse extends DataSchema {
|
|
209
|
+
schema_format: 'full';
|
|
210
|
+
}
|
|
211
|
+
|
|
208
212
|
// ============================================================================
|
|
209
213
|
// Data Store Types
|
|
210
214
|
// ============================================================================
|
|
@@ -415,6 +419,9 @@ export interface BatchQueryPayload {
|
|
|
415
419
|
/**
|
|
416
420
|
* Schema change operation types.
|
|
417
421
|
*/
|
|
422
|
+
/**
|
|
423
|
+
* @discriminator op
|
|
424
|
+
*/
|
|
418
425
|
export type AlterTableOperation =
|
|
419
426
|
| { op: 'add_column'; column: DataColumn }
|
|
420
427
|
| { op: 'drop_column'; column: string }
|
|
@@ -568,7 +575,10 @@ export interface DataStoreArchiveResult {
|
|
|
568
575
|
status: DataStoreStatus;
|
|
569
576
|
}
|
|
570
577
|
|
|
571
|
-
|
|
578
|
+
/**
|
|
579
|
+
* @discriminator schema_format
|
|
580
|
+
*/
|
|
581
|
+
export type DataStoreSchemaResponse = DataStoreFullSchemaResponse | DataSchemaForAI;
|
|
572
582
|
|
|
573
583
|
export interface DataStoreTableDetail extends DataTable {
|
|
574
584
|
sample_data?: Record<string, unknown>[];
|
|
@@ -668,6 +678,7 @@ export interface DataRelationshipForAI {
|
|
|
668
678
|
* Provides semantic context for understanding the data model.
|
|
669
679
|
*/
|
|
670
680
|
export interface DataSchemaForAI {
|
|
681
|
+
schema_format: 'ai';
|
|
671
682
|
/** Store name */
|
|
672
683
|
name: string;
|
|
673
684
|
/** Schema version */
|
|
@@ -810,6 +821,99 @@ export interface DashboardQueryParameters {
|
|
|
810
821
|
defaults: Record<string, string>;
|
|
811
822
|
}
|
|
812
823
|
|
|
824
|
+
/**
|
|
825
|
+
* Elasticsearch DSL supported by dashboard data sources.
|
|
826
|
+
* Queries execute through Vertesia Store, so project/security filtering remains server-side.
|
|
827
|
+
*/
|
|
828
|
+
export interface DashboardElasticsearchDsl {
|
|
829
|
+
query?: Record<string, unknown>;
|
|
830
|
+
aggs?: Record<string, unknown>;
|
|
831
|
+
size?: number;
|
|
832
|
+
from?: number;
|
|
833
|
+
sort?: Array<Record<string, unknown>>;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* How an Elasticsearch DSL result should be converted into Vega rows.
|
|
838
|
+
*/
|
|
839
|
+
export type DashboardElasticsearchResultMapping =
|
|
840
|
+
| {
|
|
841
|
+
type: 'hits';
|
|
842
|
+
}
|
|
843
|
+
| {
|
|
844
|
+
type: 'aggregation_buckets';
|
|
845
|
+
/** Dot path under `aggregations` that contains a `buckets` array. */
|
|
846
|
+
path: string;
|
|
847
|
+
/** Output field name for bucket key. Defaults to `key`. */
|
|
848
|
+
keyField?: string;
|
|
849
|
+
/** Output field name for doc count. Defaults to `doc_count`. */
|
|
850
|
+
countField?: string;
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Dashboard data source backed by a Data Platform SQL query.
|
|
855
|
+
*/
|
|
856
|
+
export interface DashboardSqlDataSource {
|
|
857
|
+
kind: 'data_sql';
|
|
858
|
+
/** SQL query that returns all rows for the dashboard. */
|
|
859
|
+
query: string;
|
|
860
|
+
/** Maximum rows to return from the query. */
|
|
861
|
+
queryLimit?: number;
|
|
862
|
+
/** Default values for SQL {{param}} placeholders. */
|
|
863
|
+
queryParameters?: Record<string, string>;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* Dashboard data source backed by Vertesia Store Elasticsearch DSL.
|
|
868
|
+
*/
|
|
869
|
+
export interface DashboardStoreElasticsearchDataSource {
|
|
870
|
+
kind: 'store_es_dsl';
|
|
871
|
+
/** Elasticsearch DSL query executed through the secured Store query API. */
|
|
872
|
+
dsl: DashboardElasticsearchDsl;
|
|
873
|
+
/** Result mapping. Defaults to `hits`. */
|
|
874
|
+
result?: DashboardElasticsearchResultMapping;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Data source for a Vega dashboard.
|
|
879
|
+
*/
|
|
880
|
+
export type DashboardDataSource = DashboardSqlDataSource | DashboardStoreElasticsearchDataSource;
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Dashboard definition contributed by an app package.
|
|
884
|
+
*
|
|
885
|
+
* App dashboard IDs are local to the app. The platform exposes them as
|
|
886
|
+
* `app:<app_name>:<id>` when listing or retrieving dashboards.
|
|
887
|
+
*/
|
|
888
|
+
export interface AppDashboardDefinition {
|
|
889
|
+
/** Local app dashboard ID. */
|
|
890
|
+
id: string;
|
|
891
|
+
/** Machine-friendly dashboard name. Defaults to `id`. */
|
|
892
|
+
name?: string;
|
|
893
|
+
/** Display title. Defaults to `name` or `id`. */
|
|
894
|
+
title?: string;
|
|
895
|
+
/** User-facing description. */
|
|
896
|
+
description?: string;
|
|
897
|
+
/** Tags for discovery and filtering. */
|
|
898
|
+
tags?: string[];
|
|
899
|
+
/** Data source used to populate Vega `data.values`. */
|
|
900
|
+
dataSource?: DashboardDataSource;
|
|
901
|
+
/** SQL query shortcut for app dashboards backed by data stores. */
|
|
902
|
+
query?: string;
|
|
903
|
+
/** Maximum SQL rows to return. */
|
|
904
|
+
queryLimit?: number;
|
|
905
|
+
/** Default values for SQL {{param}} placeholders. */
|
|
906
|
+
queryParameters?: Record<string, string>;
|
|
907
|
+
/** Complete Vega-Lite specification for the dashboard. */
|
|
908
|
+
spec?: Record<string, unknown>;
|
|
909
|
+
/** Legacy named SQL queries. */
|
|
910
|
+
queries?: DashboardQuery[];
|
|
911
|
+
/** Legacy panel definitions. */
|
|
912
|
+
panels?: DashboardPanel[];
|
|
913
|
+
/** Legacy dashboard layout. */
|
|
914
|
+
layout?: DashboardLayout;
|
|
915
|
+
}
|
|
916
|
+
|
|
813
917
|
/**
|
|
814
918
|
* Summary view of a dashboard (for listings).
|
|
815
919
|
*/
|
|
@@ -826,15 +930,22 @@ export interface DashboardItem extends BaseObject {
|
|
|
826
930
|
last_rendered_at?: string;
|
|
827
931
|
/** Tags for organization */
|
|
828
932
|
tags: string[];
|
|
933
|
+
/** Source of the dashboard definition. Defaults to stored dashboards. */
|
|
934
|
+
source?: 'stored' | 'app';
|
|
935
|
+
/** App name when `source` is `app`. */
|
|
936
|
+
app_name?: string;
|
|
937
|
+
/** App dashboards are read-only until cloned into a stored dashboard. */
|
|
938
|
+
readonly?: boolean;
|
|
829
939
|
}
|
|
830
940
|
|
|
831
941
|
/**
|
|
832
942
|
* Full dashboard with SQL query and Vega-Lite specification.
|
|
833
943
|
*
|
|
834
944
|
* **New architecture (v2):**
|
|
835
|
-
* -
|
|
945
|
+
* - `dataSource` field with either SQL or Store Elasticsearch DSL
|
|
836
946
|
* - Single `spec` field with complete Vega-Lite spec (vconcat/hconcat for multiple panels)
|
|
837
947
|
* - Cross-panel interactivity via Vega selections
|
|
948
|
+
* - Legacy top-level `query` fields are treated as a SQL data source
|
|
838
949
|
*
|
|
839
950
|
* **Legacy architecture (v1, deprecated):**
|
|
840
951
|
* - Multiple `queries` with named data sources
|
|
@@ -844,18 +955,26 @@ export interface DashboardItem extends BaseObject {
|
|
|
844
955
|
*/
|
|
845
956
|
export interface Dashboard extends DashboardItem {
|
|
846
957
|
// ============= New architecture (v2) =============
|
|
958
|
+
/**
|
|
959
|
+
* Data source used to populate Vega `data.values`.
|
|
960
|
+
* When omitted, top-level `query` is treated as a SQL data source for backwards compatibility.
|
|
961
|
+
*/
|
|
962
|
+
dataSource?: DashboardDataSource;
|
|
847
963
|
/**
|
|
848
964
|
* SQL query that returns all data for the dashboard.
|
|
849
965
|
* Use JOINs, CTEs, or UNION ALL to combine data from multiple tables.
|
|
850
966
|
* Can include {{param_name}} placeholders for dynamic values.
|
|
967
|
+
* @deprecated Use `dataSource: { kind: 'data_sql', query }` instead.
|
|
851
968
|
*/
|
|
852
969
|
query?: string;
|
|
853
970
|
/**
|
|
854
971
|
* Maximum rows to return from the query (default: 10000).
|
|
972
|
+
* @deprecated Use `dataSource.queryLimit` instead.
|
|
855
973
|
*/
|
|
856
974
|
queryLimit?: number;
|
|
857
975
|
/**
|
|
858
976
|
* Default values for SQL parameters.
|
|
977
|
+
* @deprecated Use `dataSource.queryParameters` instead.
|
|
859
978
|
*/
|
|
860
979
|
queryParameters?: Record<string, string>;
|
|
861
980
|
/**
|
|
@@ -889,15 +1008,17 @@ export interface Dashboard extends DashboardItem {
|
|
|
889
1008
|
|
|
890
1009
|
/**
|
|
891
1010
|
* Payload for creating a new dashboard.
|
|
892
|
-
* Requires
|
|
1011
|
+
* Requires a data source and spec (Vega-Lite).
|
|
893
1012
|
*/
|
|
894
1013
|
export interface CreateDashboardPayload {
|
|
895
1014
|
/** Dashboard name (unique within store) */
|
|
896
1015
|
name: string;
|
|
897
1016
|
/** Dashboard summary */
|
|
898
1017
|
summary?: string;
|
|
899
|
-
/**
|
|
900
|
-
|
|
1018
|
+
/** Data source used to populate Vega `data.values`. */
|
|
1019
|
+
dataSource?: DashboardDataSource;
|
|
1020
|
+
/** SQL query that returns all data for the dashboard. Deprecated shortcut for a SQL data source. */
|
|
1021
|
+
query?: string;
|
|
901
1022
|
/** Maximum rows to return from the query (default: 10000) */
|
|
902
1023
|
queryLimit?: number;
|
|
903
1024
|
/** Default values for SQL {{param}} placeholders */
|
|
@@ -914,7 +1035,9 @@ export interface UpdateDashboardPayload {
|
|
|
914
1035
|
name?: string;
|
|
915
1036
|
/** Dashboard summary */
|
|
916
1037
|
summary?: string;
|
|
917
|
-
/**
|
|
1038
|
+
/** Data source used to populate Vega `data.values`. */
|
|
1039
|
+
dataSource?: DashboardDataSource;
|
|
1040
|
+
/** SQL query that returns all data for the dashboard. Deprecated shortcut for a SQL data source. */
|
|
918
1041
|
query?: string;
|
|
919
1042
|
/** Maximum rows to return from the query (default: 10000) */
|
|
920
1043
|
queryLimit?: number;
|
|
@@ -931,6 +1054,8 @@ export interface UpdateDashboardPayload {
|
|
|
931
1054
|
*/
|
|
932
1055
|
export interface PreviewDashboardPayload {
|
|
933
1056
|
// ============= New architecture (v2) =============
|
|
1057
|
+
/** Data source used to populate Vega `data.values`. */
|
|
1058
|
+
dataSource?: DashboardDataSource;
|
|
934
1059
|
/** SQL query that returns all data for the dashboard */
|
|
935
1060
|
query?: string;
|
|
936
1061
|
/** Maximum rows to return from the query (default: 10000) */
|
|
@@ -994,6 +1119,16 @@ export interface DashboardVersion {
|
|
|
994
1119
|
version_number: number;
|
|
995
1120
|
/** Commit message describing the change */
|
|
996
1121
|
message: string;
|
|
1122
|
+
/** Snapshot of v2 data source at this version */
|
|
1123
|
+
dataSource?: DashboardDataSource;
|
|
1124
|
+
/** Snapshot of v2 SQL query at this version */
|
|
1125
|
+
query?: string;
|
|
1126
|
+
/** Snapshot of v2 query limit at this version */
|
|
1127
|
+
queryLimit?: number;
|
|
1128
|
+
/** Snapshot of v2 query parameters at this version */
|
|
1129
|
+
queryParameters?: Record<string, string>;
|
|
1130
|
+
/** Snapshot of v2 Vega-Lite spec at this version */
|
|
1131
|
+
spec?: Record<string, unknown>;
|
|
997
1132
|
/** Snapshot of queries at this version */
|
|
998
1133
|
queries: DashboardQuery[];
|
|
999
1134
|
/** Snapshot of panels at this version */
|
package/src/email.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Used for email-based agent communication.
|
|
10
10
|
*/
|
|
11
11
|
export interface EmailChannel {
|
|
12
|
-
type:
|
|
12
|
+
type: 'email';
|
|
13
13
|
/** Email address to send agent messages to */
|
|
14
14
|
to_email: string;
|
|
15
15
|
/** Subject for the email thread (without "Re:" prefix) */
|
|
@@ -27,26 +27,29 @@ export interface EmailChannel {
|
|
|
27
27
|
* Used for real-time chat interface communication.
|
|
28
28
|
*/
|
|
29
29
|
export interface InteractiveChannel {
|
|
30
|
-
type:
|
|
30
|
+
type: 'interactive';
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Union of all supported user communication channel types.
|
|
35
35
|
*/
|
|
36
|
+
/**
|
|
37
|
+
* @discriminator type
|
|
38
|
+
*/
|
|
36
39
|
export type UserChannel = EmailChannel | InteractiveChannel;
|
|
37
40
|
|
|
38
41
|
/**
|
|
39
42
|
* Type guard for email channels
|
|
40
43
|
*/
|
|
41
44
|
export function isEmailChannel(channel: UserChannel): channel is EmailChannel {
|
|
42
|
-
return channel.type ===
|
|
45
|
+
return channel.type === 'email';
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
/**
|
|
46
49
|
* Type guard for interactive channels
|
|
47
50
|
*/
|
|
48
51
|
export function isInteractiveChannel(channel: UserChannel): channel is InteractiveChannel {
|
|
49
|
-
return channel.type ===
|
|
52
|
+
return channel.type === 'interactive';
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
// ================= Email Routing ====================
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { EmbeddingsResult, EmbeddingTaskType } from '@llumiverse/common';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Wire-format inputs accepted by the studio-server embeddings endpoint.
|
|
5
|
+
* Mirror of @llumiverse/common's EmbeddingInput, but binary modalities
|
|
6
|
+
* carry a JSON-friendly source (URL or base64) instead of a DataSource.
|
|
7
|
+
*
|
|
8
|
+
* The server wraps each source in a Base64DataSource or URLDataSource
|
|
9
|
+
* before passing the request to the llumiverse driver.
|
|
10
|
+
*/
|
|
11
|
+
export type EmbeddingsApiInput =
|
|
12
|
+
| EmbeddingsApiTextInput
|
|
13
|
+
| EmbeddingsApiImageInput
|
|
14
|
+
| EmbeddingsApiVideoInput
|
|
15
|
+
| EmbeddingsApiAudioInput;
|
|
16
|
+
|
|
17
|
+
export interface EmbeddingsApiSource {
|
|
18
|
+
/** Display name for the source (defaults to "embedding-input"). */
|
|
19
|
+
name?: string;
|
|
20
|
+
/** MIME type of the binary content. Required for most providers. */
|
|
21
|
+
mime_type?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Provider-native URL the driver may pass through directly:
|
|
24
|
+
* - gs:// or https://storage.googleapis.com/ for Vertex AI
|
|
25
|
+
* - s3:// or https://*.amazonaws.com for Bedrock
|
|
26
|
+
* - https:// for fetch fallback
|
|
27
|
+
* Mutually exclusive with base64.
|
|
28
|
+
*/
|
|
29
|
+
url?: string;
|
|
30
|
+
/** Base64-encoded bytes. Mutually exclusive with url. */
|
|
31
|
+
base64?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface EmbeddingsApiTextInput {
|
|
35
|
+
type: 'text';
|
|
36
|
+
text: string;
|
|
37
|
+
task_type?: EmbeddingTaskType;
|
|
38
|
+
title?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface EmbeddingsApiImageInput {
|
|
42
|
+
type: 'image';
|
|
43
|
+
source: EmbeddingsApiSource;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface EmbeddingsApiVideoInput {
|
|
47
|
+
type: 'video';
|
|
48
|
+
source: EmbeddingsApiSource;
|
|
49
|
+
start_sec?: number;
|
|
50
|
+
length_sec?: number;
|
|
51
|
+
interval_sec?: number;
|
|
52
|
+
use_fixed_length_sec?: boolean;
|
|
53
|
+
min_clip_sec?: number;
|
|
54
|
+
embedding_option?: ('visual-text' | 'visual-image' | 'audio')[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface EmbeddingsApiAudioInput {
|
|
58
|
+
type: 'audio';
|
|
59
|
+
source: EmbeddingsApiSource;
|
|
60
|
+
start_sec?: number;
|
|
61
|
+
length_sec?: number;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface EmbeddingsApiRequest {
|
|
65
|
+
inputs: EmbeddingsApiInput[];
|
|
66
|
+
model?: string;
|
|
67
|
+
task_type?: EmbeddingTaskType;
|
|
68
|
+
dimensions?: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Wire-format result. Identical to @llumiverse/common's EmbeddingsResult
|
|
73
|
+
* (vectors and metadata are JSON-friendly), re-exported here for callers
|
|
74
|
+
* that prefer to consume types from @vertesia/common.
|
|
75
|
+
*/
|
|
76
|
+
export type EmbeddingsApiResult = EmbeddingsResult;
|