@vertesia/common 1.2.0 → 1.3.0-dev.20260620.091720Z
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 +140 -0
- package/lib/access-control.d.ts.map +1 -0
- package/lib/{esm/access-control.js → access-control.js} +38 -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} +37 -7
- 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} +523 -36
- package/lib/apps.d.ts.map +1 -0
- package/lib/apps.js +210 -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} +279 -50
- 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/types.d.ts +54 -0
- package/lib/roles/types.d.ts.map +1 -0
- package/lib/roles/types.js +17 -0
- package/lib/roles/types.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 +51 -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 +17 -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 +120 -34
- package/lib/store/workflow.d.ts.map +1 -0
- package/lib/{esm/store → store}/workflow.js +44 -42
- 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} +4 -3
- 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} +14 -8
- 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 +21 -20
- package/src/Progress.ts +9 -7
- package/src/access-control.ts +127 -59
- 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 +46 -14
- package/src/apps.test.ts +37 -0
- package/src/apps.ts +702 -79
- 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 +416 -109
- 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/types.ts +58 -0
- package/src/roles.test.ts +32 -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 +270 -42
- package/src/store/collections.ts +21 -13
- package/src/store/common.ts +1 -2
- package/src/store/conversation-state.ts +59 -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 +17 -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 +76 -14
- package/src/store/workflow.ts +220 -125
- 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 +5 -8
- package/src/user.ts +26 -36
- 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
package/src/prompt.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { JSONObject, JSONSchema } from
|
|
2
|
-
import {
|
|
3
|
-
import { ProjectRef } from "./project.js";
|
|
1
|
+
import type { JSONObject, JSONSchema, PromptRole } from '@llumiverse/common';
|
|
2
|
+
import type { ProjectRef } from './project.js';
|
|
4
3
|
|
|
5
4
|
export interface ChatPromptSchema {
|
|
6
5
|
role: PromptRole.user | PromptRole.assistant;
|
|
@@ -8,43 +7,47 @@ export interface ChatPromptSchema {
|
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
export enum PromptStatus {
|
|
11
|
-
draft =
|
|
12
|
-
published =
|
|
13
|
-
archived =
|
|
10
|
+
draft = 'draft',
|
|
11
|
+
published = 'published',
|
|
12
|
+
archived = 'archived',
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
|
|
17
15
|
export enum PromptSegmentDefType {
|
|
18
|
-
chat =
|
|
19
|
-
template =
|
|
16
|
+
chat = 'chat',
|
|
17
|
+
template = 'template',
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
export interface PromptSegmentDef<
|
|
23
|
-
|
|
24
|
-
> {
|
|
20
|
+
export interface PromptSegmentDef<T = string | PromptTemplate | PromptTemplateRef> {
|
|
21
|
+
id?: string;
|
|
25
22
|
type: PromptSegmentDefType;
|
|
26
23
|
template?: T; // the template id in case of a prompt template
|
|
27
|
-
configuration?:
|
|
24
|
+
configuration?: unknown; // the configuration if any in case of builtin prompts
|
|
28
25
|
}
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
|
|
27
|
+
export interface PromptSegmentRef<T = string | PromptTemplate | PromptTemplateRef> extends PromptSegmentDef<T> {
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface PopulatedPromptSegmentDef extends Omit<PromptSegmentDef, 'template'> {
|
|
31
32
|
template?: PromptTemplate;
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
35
|
* Used for prompt rendering at interaction execution
|
|
35
36
|
*/
|
|
36
|
-
export interface ExecutablePromptSegmentDef
|
|
37
|
-
extends Omit<PromptSegmentDef, "template"> {
|
|
37
|
+
export interface ExecutablePromptSegmentDef extends Omit<PromptSegmentDef, 'template'> {
|
|
38
38
|
template?: ExecutablePromptTemplate;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export interface PromptTemplateRef {
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
|
+
description?: string;
|
|
44
45
|
role: PromptRole;
|
|
45
46
|
version: number;
|
|
46
47
|
status: PromptStatus;
|
|
47
|
-
content_type
|
|
48
|
+
content_type?: TemplateType;
|
|
49
|
+
created_at: Date;
|
|
50
|
+
updated_at: Date;
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
export interface PromptTemplateRefWithSchema extends PromptTemplateRef {
|
|
@@ -52,9 +55,9 @@ export interface PromptTemplateRefWithSchema extends PromptTemplateRef {
|
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
export enum TemplateType {
|
|
55
|
-
jst =
|
|
56
|
-
handlebars =
|
|
57
|
-
text =
|
|
58
|
+
jst = 'jst',
|
|
59
|
+
handlebars = 'handlebars',
|
|
60
|
+
text = 'text',
|
|
58
61
|
}
|
|
59
62
|
export interface ExecutablePromptTemplate {
|
|
60
63
|
role: PromptRole;
|
|
@@ -79,8 +82,8 @@ export interface PromptTemplate extends ExecutablePromptTemplate {
|
|
|
79
82
|
tags?: string[];
|
|
80
83
|
// only for drafts - when it was last published
|
|
81
84
|
last_published_at?: Date;
|
|
82
|
-
created_by: string
|
|
83
|
-
updated_by: string
|
|
85
|
+
created_by: string;
|
|
86
|
+
updated_by: string;
|
|
84
87
|
created_at: Date;
|
|
85
88
|
updated_at: Date;
|
|
86
89
|
}
|
|
@@ -93,13 +96,13 @@ export interface PromptTemplateForkPayload {
|
|
|
93
96
|
export interface PromptTemplateCreatePayload
|
|
94
97
|
extends Omit<
|
|
95
98
|
PromptTemplate,
|
|
96
|
-
|
|
97
|
-
> {
|
|
99
|
+
'id' | 'created_at' | 'updated_at' | 'created_by' | 'updated_by' | 'project' | 'status' | 'version'
|
|
100
|
+
> {}
|
|
98
101
|
|
|
99
102
|
export interface PromptTemplateUpdatePayload
|
|
100
103
|
extends Partial<
|
|
101
|
-
Omit<PromptTemplate,
|
|
102
|
-
> {
|
|
104
|
+
Omit<PromptTemplate, 'id' | 'created_at' | 'updated_at' | 'created_by' | 'updated_by' | 'project'>
|
|
105
|
+
> {}
|
|
103
106
|
|
|
104
107
|
export interface PromptTemplateInteractionVersion {
|
|
105
108
|
version: number;
|
package/src/query.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExecutionRunStatus } from './interaction.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExecutionRunStatus } from './interaction.js';
|
|
2
|
+
import type { SearchTypes, SupportedEmbeddingTypes } from './project.js';
|
|
3
|
+
import type { CollectionSearchPayload } from './store/collections.js';
|
|
4
4
|
|
|
5
5
|
export type EmbeddingSearchConfig = Partial<Record<SupportedEmbeddingTypes, boolean>>;
|
|
6
6
|
|
|
@@ -13,15 +13,16 @@ export interface RunListingQueryOptions {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface RunListingFilters {
|
|
16
|
-
interaction?: string | string[]
|
|
17
|
-
status?: ExecutionRunStatus
|
|
18
|
-
model?: string
|
|
19
|
-
environment?: string
|
|
20
|
-
tag?: string
|
|
21
|
-
fromDate?: string
|
|
22
|
-
toDate?: string
|
|
23
|
-
parent?: string |
|
|
24
|
-
|
|
16
|
+
interaction?: string | string[];
|
|
17
|
+
status?: ExecutionRunStatus;
|
|
18
|
+
model?: string;
|
|
19
|
+
environment?: string;
|
|
20
|
+
tag?: string;
|
|
21
|
+
fromDate?: string;
|
|
22
|
+
toDate?: string;
|
|
23
|
+
parent?: string | string[];
|
|
24
|
+
is_root?: boolean;
|
|
25
|
+
workflow_run_ids?: string[];
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export type scoreAggregationTypes = 'rrf' | 'rsf' | 'smart';
|
|
@@ -88,7 +89,8 @@ export interface RunSearchQuery extends SimpleSearchQuery {
|
|
|
88
89
|
tags?: string[];
|
|
89
90
|
query?: string;
|
|
90
91
|
default_query_path?: string;
|
|
91
|
-
parent?: string[]
|
|
92
|
+
parent?: string[];
|
|
93
|
+
is_root?: boolean;
|
|
92
94
|
object?: string;
|
|
93
95
|
start?: string;
|
|
94
96
|
end?: string;
|
|
@@ -127,8 +129,8 @@ export interface ComplexSearchQuery extends ObjectSearchQuery {
|
|
|
127
129
|
* e.g. Weights of 5,3,2 will be treated as 0,3,2 if the first search type is not present in the results.
|
|
128
130
|
* Ignored when scoreAggregation is 'smart'
|
|
129
131
|
* Default is 'on'
|
|
130
|
-
|
|
131
|
-
dynamic_scaling?: dynamicScalingTypes;
|
|
132
|
+
*/
|
|
133
|
+
dynamic_scaling?: dynamicScalingTypes; // Move to top level
|
|
132
134
|
|
|
133
135
|
/**
|
|
134
136
|
* rrf: Reciprocal Rank Fusion
|
|
@@ -137,9 +139,9 @@ export interface ComplexSearchQuery extends ObjectSearchQuery {
|
|
|
137
139
|
*/
|
|
138
140
|
score_aggregation?: scoreAggregationTypes;
|
|
139
141
|
|
|
140
|
-
match?: Record<string,
|
|
142
|
+
match?: Record<string, unknown>;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
export interface ComplexCollectionSearchQuery extends CollectionSearchPayload {
|
|
144
|
-
match?: Record<string,
|
|
146
|
+
match?: Record<string, unknown>;
|
|
145
147
|
}
|
package/src/rate-limiter.ts
CHANGED
package/src/refs.ts
CHANGED
|
@@ -1,34 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
1
|
export enum ResolvableRefType {
|
|
4
|
-
project =
|
|
5
|
-
projects =
|
|
6
|
-
environment =
|
|
7
|
-
user =
|
|
8
|
-
account =
|
|
9
|
-
interaction =
|
|
10
|
-
userGroup =
|
|
2
|
+
project = 'Project',
|
|
3
|
+
projects = 'Projects',
|
|
4
|
+
environment = 'Environment',
|
|
5
|
+
user = 'User',
|
|
6
|
+
account = 'Account',
|
|
7
|
+
interaction = 'Interaction',
|
|
8
|
+
userGroup = 'UserGroup',
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
export interface ResolvableRef {
|
|
14
|
-
type: ResolvableRefType
|
|
15
|
-
id: string
|
|
12
|
+
type: ResolvableRefType;
|
|
13
|
+
id: string;
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
export interface RefResolutionRequest {
|
|
19
|
-
|
|
20
|
-
refs: ResolvableRef[]
|
|
21
|
-
|
|
17
|
+
refs: ResolvableRef[];
|
|
22
18
|
}
|
|
23
19
|
|
|
24
|
-
|
|
25
20
|
export interface ResourceRef {
|
|
26
|
-
id: string
|
|
27
|
-
name: string
|
|
28
|
-
type: string
|
|
29
|
-
description?: string
|
|
30
|
-
version?: number
|
|
31
|
-
status?: string
|
|
32
|
-
tags?: string[]
|
|
33
|
-
endpoint?: string
|
|
34
|
-
}
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
type: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
version?: number;
|
|
26
|
+
status?: string;
|
|
27
|
+
tags?: string[];
|
|
28
|
+
endpoint?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Permission } from '../access-control.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Pure types & constants for the role system. This file is intentionally
|
|
5
|
+
* `class`-free — it is what stays in `@vertesia/common` when the class
|
|
6
|
+
* hierarchy (`classes.ts`) eventually moves to `studio-utils`. Client SDKs
|
|
7
|
+
* depend ONLY on these types, never on the registry runtime.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Kind of object a ContentSet's `resource_props` matches at query time. Used
|
|
12
|
+
* in `AceConditions.scope` (validated at runtime against this list) and as
|
|
13
|
+
* the prefix in JWT `content_security` keys (e.g. `collection:read`).
|
|
14
|
+
*
|
|
15
|
+
* Each scope is owned by exactly one partition. When adding a new partition
|
|
16
|
+
* (e.g. tasks), extend this list with the new scope(s) AND extend `RoleDomain`
|
|
17
|
+
* with the new domain.
|
|
18
|
+
*/
|
|
19
|
+
export const AbacScopes = ['document', 'collection', 'task'] as const;
|
|
20
|
+
export type AbacScope = (typeof AbacScopes)[number];
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Logical grouping of roles by the service area that owns them. One domain may
|
|
24
|
+
* declare roles applicable to multiple scopes (e.g. the `content` domain owns
|
|
25
|
+
* roles applicable to both `document` and `collection` scopes). The `system`
|
|
26
|
+
* domain owns the built-in foundational roles (currently exposed as
|
|
27
|
+
* `SystemRoles`) — registered first so domain partitions cannot shadow them.
|
|
28
|
+
*/
|
|
29
|
+
export type RoleDomain = 'system' | 'content' | 'tasks';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Wire shape of a role returned by the IAM `/roles` endpoint.
|
|
33
|
+
*
|
|
34
|
+
* Permissions are typed `string[]` because role names span multiple partitions
|
|
35
|
+
* (system, content, future tasks/etc.) and each partition has its own
|
|
36
|
+
* vocabulary. For the tightly-typed system-only view (with `permissions:
|
|
37
|
+
* Permission[]`) use `SystemRoleDefinition` and the `/roles/system` endpoint.
|
|
38
|
+
*
|
|
39
|
+
* NOTE: this interface is intentionally non-generic. The OpenAPI generator
|
|
40
|
+
* doesn't handle TypeScript generics cleanly in array response types and
|
|
41
|
+
* produces a degenerate `RoleDefinitionArray` schema. Keeping the wire shapes
|
|
42
|
+
* concrete avoids that. `SystemRoleDefinition` extends and narrows
|
|
43
|
+
* `permissions` to `Permission[]`.
|
|
44
|
+
*/
|
|
45
|
+
export interface RoleDefinition {
|
|
46
|
+
name: string;
|
|
47
|
+
permissions: string[];
|
|
48
|
+
domain: RoleDomain;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Tightly-typed view of a system-domain role: permissions are central
|
|
53
|
+
* `Permission` enum values. Returned by `client.iam.roles.listSystem()` and
|
|
54
|
+
* by the server's `/roles/system` endpoint.
|
|
55
|
+
*/
|
|
56
|
+
export interface SystemRoleDefinition extends RoleDefinition {
|
|
57
|
+
permissions: Permission[];
|
|
58
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { SystemRoles } from './project.js';
|
|
3
|
+
import { AbacScopes } from './roles/types.js';
|
|
4
|
+
|
|
5
|
+
describe('shared role vocabulary', () => {
|
|
6
|
+
test('exports all system roles', () => {
|
|
7
|
+
expect(Object.values(SystemRoles).sort()).toEqual(
|
|
8
|
+
[
|
|
9
|
+
'admin',
|
|
10
|
+
'app_member',
|
|
11
|
+
'application',
|
|
12
|
+
'auditor',
|
|
13
|
+
'automation',
|
|
14
|
+
'billing',
|
|
15
|
+
'consumer',
|
|
16
|
+
'content_processor',
|
|
17
|
+
'content_superadmin',
|
|
18
|
+
'developer',
|
|
19
|
+
'executor',
|
|
20
|
+
'manager',
|
|
21
|
+
'member',
|
|
22
|
+
'owner',
|
|
23
|
+
'reader',
|
|
24
|
+
'support',
|
|
25
|
+
].sort(),
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
test('exports ABAC scopes used by role wire types', () => {
|
|
30
|
+
expect(AbacScopes).toEqual(['document', 'collection', 'task']);
|
|
31
|
+
});
|
|
32
|
+
});
|
package/src/runs.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { FacetResult } from './facets.js';
|
|
2
|
-
import { NamedInteractionExecutionPayload } from './interaction.js';
|
|
1
|
+
import type { FacetResult } from './facets.js';
|
|
2
|
+
import type { NamedInteractionExecutionPayload } from './interaction.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The run ref is used to identify a run document in the storage
|
|
6
6
|
*/
|
|
7
7
|
export interface ExecutionRunDocRef {
|
|
8
|
-
id: string
|
|
9
|
-
account: string
|
|
10
|
-
project: string
|
|
8
|
+
id: string;
|
|
9
|
+
account: string;
|
|
10
|
+
project: string;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Interaction execution payload for creating a new run
|
|
15
15
|
* It uses interaction field (from NamedInteractionExecutionPayload) to pass the interaction ID to run
|
|
16
16
|
*/
|
|
17
|
-
export interface RunCreatePayload extends NamedInteractionExecutionPayload {
|
|
18
|
-
}
|
|
17
|
+
export interface RunCreatePayload extends NamedInteractionExecutionPayload {}
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
20
|
* Payload for cloning an existing ExecutionRun.
|
|
@@ -36,16 +35,16 @@ export interface RunClonePayload {
|
|
|
36
35
|
* To be used as a value for a numeric or date filters
|
|
37
36
|
*/
|
|
38
37
|
export interface RangeValue {
|
|
39
|
-
gt?: number | string
|
|
40
|
-
gte?: number | string
|
|
41
|
-
lt?: number | string
|
|
42
|
-
lte?: number | string
|
|
38
|
+
gt?: number | string;
|
|
39
|
+
gte?: number | string;
|
|
40
|
+
lt?: number | string;
|
|
41
|
+
lte?: number | string;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
export interface RunSearchMetaResponse {
|
|
46
45
|
count: {
|
|
47
|
-
lower_bound?: number
|
|
48
|
-
total?: number
|
|
49
|
-
}
|
|
50
|
-
facet: Record<string, FacetResult
|
|
46
|
+
lower_bound?: number;
|
|
47
|
+
total?: number;
|
|
48
|
+
};
|
|
49
|
+
facet: Record<string, FacetResult>;
|
|
51
50
|
}
|
package/src/secrets.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
WebsiteCredentialMetadata,
|
|
3
|
+
WebsiteCredentialRecord,
|
|
4
|
+
WebsiteCredentialSecretInput,
|
|
5
|
+
} from './browser-credentials.js';
|
|
6
|
+
|
|
7
|
+
// First supported top-level secret kind. OAuth connector grants continue to use
|
|
8
|
+
// the OAuth/MCP token flows and can be materialized later by tools that need them.
|
|
9
|
+
export type SecretKind = 'website_credential';
|
|
10
|
+
|
|
11
|
+
export interface SecretProjectQuery {
|
|
12
|
+
/**
|
|
13
|
+
* Project scope for top-level secret APIs. Must match the authenticated project context.
|
|
14
|
+
*/
|
|
15
|
+
project_id?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ListSecretsQuery extends SecretProjectQuery {
|
|
19
|
+
kind?: SecretKind;
|
|
20
|
+
host?: string;
|
|
21
|
+
enabled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface SecretLookupQuery extends SecretProjectQuery {
|
|
25
|
+
kind?: SecretKind;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface SecretRecord {
|
|
29
|
+
id: string;
|
|
30
|
+
secret_ref: string;
|
|
31
|
+
kind: SecretKind;
|
|
32
|
+
project: string;
|
|
33
|
+
name: string;
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
tags?: string[];
|
|
36
|
+
properties?: Record<string, unknown>;
|
|
37
|
+
created_at?: string;
|
|
38
|
+
updated_at?: string;
|
|
39
|
+
details?: WebsiteCredentialRecord;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface ListSecretsResponse {
|
|
43
|
+
secrets: SecretRecord[];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface CreateSecretRequest {
|
|
47
|
+
kind: SecretKind;
|
|
48
|
+
metadata: WebsiteCredentialMetadata;
|
|
49
|
+
secret?: WebsiteCredentialSecretInput;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface UpdateSecretRequest {
|
|
53
|
+
kind?: SecretKind;
|
|
54
|
+
metadata?: Partial<WebsiteCredentialMetadata>;
|
|
55
|
+
secret?: WebsiteCredentialSecretInput;
|
|
56
|
+
clear_username_secret?: boolean;
|
|
57
|
+
clear_password?: boolean;
|
|
58
|
+
clear_totp?: boolean;
|
|
59
|
+
clear_oauth?: boolean;
|
|
60
|
+
}
|
package/src/skill.ts
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* These are automatically synced to the sandbox when the skill is used.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
13
|
/**
|
|
15
14
|
* Context provided when searching for relevant skills
|
|
16
15
|
*/
|
|
@@ -62,7 +61,7 @@ export interface InjectedSkill {
|
|
|
62
61
|
/**
|
|
63
62
|
* Tools related to this skill
|
|
64
63
|
*/
|
|
65
|
-
|
|
64
|
+
tools?: string[];
|
|
66
65
|
|
|
67
66
|
/**
|
|
68
67
|
* UI module for rendering results
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
export type TsPropType =
|
|
1
|
+
export type TsPropType =
|
|
2
|
+
| 'string'
|
|
3
|
+
| 'number'
|
|
4
|
+
| 'boolean'
|
|
5
|
+
| 'record'
|
|
6
|
+
| 'object'
|
|
7
|
+
| 'array'
|
|
8
|
+
| 'enum'
|
|
9
|
+
| 'literal'
|
|
10
|
+
| 'union'
|
|
11
|
+
| 'promise'
|
|
12
|
+
| 'any'
|
|
13
|
+
| 'void';
|
|
2
14
|
|
|
3
15
|
// generic types are replaced by "any"
|
|
4
16
|
export interface ActivityTypeDefinition {
|