@vertesia/common 1.5.0-dev.20260807.073259Z → 1.5.0-dev.20260901.005903Z
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/lib/access-control.d.ts +0 -14
- package/lib/access-control.d.ts.map +1 -1
- package/lib/access-control.js +0 -23
- package/lib/access-control.js.map +1 -1
- package/lib/account-values.d.ts +0 -10
- package/lib/account-values.d.ts.map +1 -1
- package/lib/account-values.js +0 -44
- package/lib/account-values.js.map +1 -1
- package/lib/api-contract/components.generated.json +40405 -0
- package/lib/api-contract/index.d.ts +186 -0
- package/lib/api-contract/index.d.ts.map +1 -0
- package/lib/api-contract/index.js +554 -0
- package/lib/api-contract/index.js.map +1 -0
- package/lib/api-schemas/agent-communication.d.ts +199 -0
- package/lib/api-schemas/agent-communication.d.ts.map +1 -0
- package/lib/api-schemas/agent-communication.js +150 -0
- package/lib/api-schemas/agent-communication.js.map +1 -0
- package/lib/api-schemas/agent-runs.d.ts +593 -0
- package/lib/api-schemas/agent-runs.d.ts.map +1 -1
- package/lib/api-schemas/agent-runs.js +44 -2
- package/lib/api-schemas/agent-runs.js.map +1 -1
- package/lib/api-schemas/app-lifecycle.d.ts +19 -0
- package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
- package/lib/api-schemas/app-lifecycle.js +34 -4
- package/lib/api-schemas/app-lifecycle.js.map +1 -1
- package/lib/api-schemas/app-runtime.d.ts +9871 -9257
- package/lib/api-schemas/app-runtime.d.ts.map +1 -1
- package/lib/api-schemas/app-runtime.js +7 -0
- package/lib/api-schemas/app-runtime.js.map +1 -1
- package/lib/api-schemas/apps.d.ts +1 -0
- package/lib/api-schemas/apps.d.ts.map +1 -1
- package/lib/api-schemas/apps.js +4 -3
- package/lib/api-schemas/apps.js.map +1 -1
- package/lib/api-schemas/content-query.d.ts +39 -0
- package/lib/api-schemas/content-query.d.ts.map +1 -0
- package/lib/api-schemas/content-query.js +30 -0
- package/lib/api-schemas/content-query.js.map +1 -0
- package/lib/api-schemas/content.d.ts +835 -29
- package/lib/api-schemas/content.d.ts.map +1 -1
- package/lib/api-schemas/content.js +82 -15
- package/lib/api-schemas/content.js.map +1 -1
- package/lib/api-schemas/dashboard.d.ts +4 -0
- package/lib/api-schemas/dashboard.d.ts.map +1 -1
- package/lib/api-schemas/dashboard.js +3 -0
- package/lib/api-schemas/dashboard.js.map +1 -1
- package/lib/api-schemas/document-processing.d.ts +333 -0
- package/lib/api-schemas/document-processing.d.ts.map +1 -1
- package/lib/api-schemas/events.d.ts +1007 -4
- package/lib/api-schemas/events.d.ts.map +1 -1
- package/lib/api-schemas/events.js +4 -1
- package/lib/api-schemas/events.js.map +1 -1
- package/lib/api-schemas/files.d.ts +17 -0
- package/lib/api-schemas/files.d.ts.map +1 -1
- package/lib/api-schemas/files.js +23 -0
- package/lib/api-schemas/files.js.map +1 -1
- package/lib/api-schemas/group.d.ts +7 -0
- package/lib/api-schemas/group.d.ts.map +1 -1
- package/lib/api-schemas/group.js +9 -0
- package/lib/api-schemas/group.js.map +1 -1
- package/lib/api-schemas/index.d.ts +4 -0
- package/lib/api-schemas/index.d.ts.map +1 -1
- package/lib/api-schemas/index.js +4 -0
- package/lib/api-schemas/index.js.map +1 -1
- package/lib/api-schemas/integrations.d.ts +19 -5
- package/lib/api-schemas/integrations.d.ts.map +1 -1
- package/lib/api-schemas/integrations.js +25 -2
- package/lib/api-schemas/integrations.js.map +1 -1
- package/lib/api-schemas/interaction.d.ts +8399 -1076
- package/lib/api-schemas/interaction.d.ts.map +1 -1
- package/lib/api-schemas/interaction.js +161 -9
- package/lib/api-schemas/interaction.js.map +1 -1
- package/lib/api-schemas/oauth-server.d.ts +131 -3
- package/lib/api-schemas/oauth-server.d.ts.map +1 -1
- package/lib/api-schemas/oauth-server.js +137 -3
- package/lib/api-schemas/oauth-server.js.map +1 -1
- package/lib/api-schemas/process.d.ts +1295 -0
- package/lib/api-schemas/process.d.ts.map +1 -1
- package/lib/api-schemas/process.js +318 -2
- package/lib/api-schemas/process.js.map +1 -1
- package/lib/api-schemas/project-configuration.d.ts +1118 -1
- package/lib/api-schemas/project-configuration.d.ts.map +1 -1
- package/lib/api-schemas/project-configuration.js +6 -2
- package/lib/api-schemas/project-configuration.js.map +1 -1
- package/lib/api-schemas/project.d.ts +1680 -6
- package/lib/api-schemas/project.d.ts.map +1 -1
- package/lib/api-schemas/registry.d.ts +87529 -69142
- package/lib/api-schemas/registry.d.ts.map +1 -1
- package/lib/api-schemas/registry.js +234 -413
- package/lib/api-schemas/registry.js.map +1 -1
- package/lib/api-schemas/schema-primitives.d.ts +4 -0
- package/lib/api-schemas/schema-primitives.d.ts.map +1 -1
- package/lib/api-schemas/schema-primitives.js +10 -0
- package/lib/api-schemas/schema-primitives.js.map +1 -1
- package/lib/api-schemas/store.d.ts +5596 -37
- package/lib/api-schemas/store.d.ts.map +1 -1
- package/lib/api-schemas/store.js +53 -8
- package/lib/api-schemas/store.js.map +1 -1
- package/lib/api-schemas/tools.d.ts +115 -0
- package/lib/api-schemas/tools.d.ts.map +1 -1
- package/lib/api-schemas/tools.js +55 -0
- package/lib/api-schemas/tools.js.map +1 -1
- package/lib/api-schemas/view-execution.d.ts +330 -854
- package/lib/api-schemas/view-execution.d.ts.map +1 -1
- package/lib/api-schemas/view-execution.js +26 -2
- package/lib/api-schemas/view-execution.js.map +1 -1
- package/lib/api-schemas/views.d.ts +452 -2562
- package/lib/api-schemas/views.d.ts.map +1 -1
- package/lib/api-schemas/views.js +119 -3
- package/lib/api-schemas/views.js.map +1 -1
- package/lib/api-schemas/workflow-runs.d.ts +344 -5
- package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
- package/lib/api-schemas/workflow-runs.js +9 -7
- package/lib/api-schemas/workflow-runs.js.map +1 -1
- package/lib/apps.d.ts +8 -145
- package/lib/apps.d.ts.map +1 -1
- package/lib/apps.js +1 -54
- package/lib/apps.js.map +1 -1
- package/lib/ask-user.d.ts +2 -1
- package/lib/ask-user.d.ts.map +1 -1
- package/lib/audit-trail.d.ts +2 -2
- package/lib/audit-trail.d.ts.map +1 -1
- package/lib/audit-trail.js +2 -2
- package/lib/audit-trail.js.map +1 -1
- package/lib/browser-credentials.d.ts +2 -7
- package/lib/browser-credentials.d.ts.map +1 -1
- package/lib/common.d.ts +4 -1
- package/lib/common.d.ts.map +1 -1
- package/lib/content-query.d.ts +5 -0
- package/lib/content-query.d.ts.map +1 -0
- package/lib/content-query.js +2 -0
- package/lib/content-query.js.map +1 -0
- package/lib/data-platform.d.ts +4 -46
- package/lib/data-platform.d.ts.map +1 -1
- package/lib/data-platform.js.map +1 -1
- package/lib/email.d.ts +12 -18
- package/lib/email.d.ts.map +1 -1
- package/lib/email.js.map +1 -1
- package/lib/environment.d.ts +0 -10
- package/lib/environment.d.ts.map +1 -1
- package/lib/environment.js +1 -12
- package/lib/environment.js.map +1 -1
- package/lib/facets.d.ts +0 -4
- package/lib/facets.d.ts.map +1 -1
- package/lib/group.d.ts +2 -12
- package/lib/group.d.ts.map +1 -1
- package/lib/group.js.map +1 -1
- package/lib/index.d.ts +3 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -10
- package/lib/index.js.map +1 -1
- package/lib/integrations.d.ts +1 -27
- package/lib/integrations.d.ts.map +1 -1
- package/lib/integrations.js +0 -6
- package/lib/integrations.js.map +1 -1
- package/lib/interaction.d.ts +10 -222
- package/lib/interaction.d.ts.map +1 -1
- package/lib/interaction.js +0 -31
- package/lib/interaction.js.map +1 -1
- package/lib/meters.d.ts +5 -10
- package/lib/meters.d.ts.map +1 -1
- package/lib/meters.js +1 -9
- package/lib/meters.js.map +1 -1
- package/lib/oauth-scopes.d.ts +2 -16
- package/lib/oauth-scopes.d.ts.map +1 -1
- package/lib/oauth-scopes.js +9 -49
- package/lib/oauth-scopes.js.map +1 -1
- package/lib/oauth-server.d.ts +16 -195
- package/lib/oauth-server.d.ts.map +1 -1
- package/lib/payload.d.ts +2 -5
- package/lib/payload.d.ts.map +1 -1
- package/lib/pending-asks.d.ts +9 -41
- package/lib/pending-asks.d.ts.map +1 -1
- package/lib/platform-event.d.ts +4 -142
- package/lib/platform-event.d.ts.map +1 -1
- package/lib/platform-event.js.map +1 -1
- package/lib/project.d.ts +7 -46
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js +2 -132
- package/lib/project.js.map +1 -1
- package/lib/prompt.d.ts +4 -7
- package/lib/prompt.d.ts.map +1 -1
- package/lib/prompt.js.map +1 -1
- package/lib/query.d.ts +0 -8
- package/lib/query.d.ts.map +1 -1
- package/lib/rate-limiter.d.ts +4 -3
- package/lib/rate-limiter.d.ts.map +1 -1
- package/lib/runs.d.ts +5 -1
- package/lib/runs.d.ts.map +1 -1
- package/lib/schema-for-extraction.d.ts +0 -1
- package/lib/schema-for-extraction.d.ts.map +1 -1
- package/lib/schema-for-extraction.js +1 -1
- package/lib/schema-for-extraction.js.map +1 -1
- package/lib/secrets.d.ts +2 -1
- package/lib/secrets.d.ts.map +1 -1
- package/lib/skill.d.ts +0 -13
- package/lib/skill.d.ts.map +1 -1
- package/lib/store/activity-catalog.d.ts +2 -0
- package/lib/store/activity-catalog.d.ts.map +1 -1
- package/lib/store/agent-approval.d.ts +0 -1
- package/lib/store/agent-approval.d.ts.map +1 -1
- package/lib/store/agent-approval.js +0 -3
- package/lib/store/agent-approval.js.map +1 -1
- package/lib/store/agent-run.d.ts +32 -69
- package/lib/store/agent-run.d.ts.map +1 -1
- package/lib/store/collections.d.ts +2 -6
- package/lib/store/collections.d.ts.map +1 -1
- package/lib/store/collections.js.map +1 -1
- package/lib/store/conversation-state.d.ts +11 -12
- package/lib/store/conversation-state.d.ts.map +1 -1
- package/lib/store/conversation-state.js +0 -18
- package/lib/store/conversation-state.js.map +1 -1
- package/lib/store/doc-analyzer.d.ts +0 -22
- package/lib/store/doc-analyzer.d.ts.map +1 -1
- package/lib/store/dsl-workflow.d.ts +22 -5
- package/lib/store/dsl-workflow.d.ts.map +1 -1
- package/lib/store/dsl-workflow.js.map +1 -1
- package/lib/store/grounded-extraction.d.ts +0 -14
- package/lib/store/grounded-extraction.d.ts.map +1 -1
- package/lib/store/grounded-extraction.js +1 -7
- package/lib/store/grounded-extraction.js.map +1 -1
- package/lib/store/index.d.ts +0 -5
- package/lib/store/index.d.ts.map +1 -1
- package/lib/store/index.js +0 -6
- package/lib/store/index.js.map +1 -1
- package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
- package/lib/store/intake-policy-schema.generated.js +279 -1
- package/lib/store/intake-policy-schema.generated.js.map +1 -1
- package/lib/store/process.d.ts +43 -1
- package/lib/store/process.d.ts.map +1 -1
- package/lib/store/process.js.map +1 -1
- package/lib/store/rendering.d.ts +3 -5
- package/lib/store/rendering.d.ts.map +1 -1
- package/lib/store/rendering.js +0 -4
- package/lib/store/rendering.js.map +1 -1
- package/lib/store/schedule.d.ts +0 -16
- package/lib/store/schedule.d.ts.map +1 -1
- package/lib/store/schedule.js.map +1 -1
- package/lib/store/signals.d.ts +12 -0
- package/lib/store/signals.d.ts.map +1 -1
- package/lib/store/store.d.ts +80 -94
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +5 -25
- package/lib/store/store.js.map +1 -1
- package/lib/store/workflow.d.ts +35 -86
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js +0 -47
- package/lib/store/workflow.js.map +1 -1
- package/lib/sts-errors.d.ts +0 -1
- package/lib/sts-errors.d.ts.map +1 -1
- package/lib/sts-token-types.d.ts +2 -8
- package/lib/sts-token-types.d.ts.map +1 -1
- package/lib/sts-token-types.js +1 -19
- package/lib/sts-token-types.js.map +1 -1
- package/lib/tools.d.ts +6 -1
- package/lib/tools.d.ts.map +1 -1
- package/lib/transient-tokens.d.ts +0 -2
- package/lib/transient-tokens.d.ts.map +1 -1
- package/lib/user.d.ts +0 -17
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js.map +1 -1
- package/lib/utils/schemas.d.ts +2 -24
- package/lib/utils/schemas.d.ts.map +1 -1
- package/lib/utils/schemas.js +0 -151
- package/lib/utils/schemas.js.map +1 -1
- package/lib/vertesia-common.js +3 -4
- package/lib/vertesia-common.js.map +1 -1
- package/lib/views.d.ts +23 -27
- package/lib/views.d.ts.map +1 -1
- package/lib/views.js +5 -26
- package/lib/views.js.map +1 -1
- package/lib/workflow-analytics.d.ts +12 -34
- package/lib/workflow-analytics.d.ts.map +1 -1
- package/package.json +12 -6
- package/src/access-control.ts +0 -26
- package/src/account-values.ts +0 -49
- package/src/agent-resources.test.ts +1 -12
- package/src/api-contract/components.contract.test.ts +99 -0
- package/src/api-contract/components.generated.json +40405 -0
- package/src/api-contract/index.ts +664 -0
- package/src/api-schemas/agent-communication.contract.test.ts +90 -0
- package/src/api-schemas/agent-communication.ts +169 -0
- package/src/api-schemas/agent-runs.ts +46 -1
- package/src/api-schemas/api-discriminators.test.ts +101 -0
- package/src/api-schemas/app-lifecycle.ts +39 -4
- package/src/api-schemas/app-runtime.ts +8 -0
- package/src/api-schemas/apps.ts +4 -3
- package/src/api-schemas/content-query.ts +31 -0
- package/src/api-schemas/content.ts +88 -15
- package/src/api-schemas/dashboard.contract.test.ts +16 -5
- package/src/api-schemas/dashboard.ts +3 -0
- package/src/api-schemas/events.ts +9 -1
- package/src/api-schemas/files.ts +27 -0
- package/src/api-schemas/group.ts +10 -0
- package/src/api-schemas/index.ts +4 -0
- package/src/api-schemas/integrations.ts +27 -2
- package/src/api-schemas/interaction.contract.test.ts +204 -1
- package/src/api-schemas/interaction.ts +176 -8
- package/src/api-schemas/llumiverse.contract.test.ts +33 -2
- package/src/api-schemas/oauth-server.ts +152 -3
- package/src/api-schemas/oauth.contract.test.ts +64 -1
- package/src/api-schemas/process.ts +352 -2
- package/src/api-schemas/project-configuration.ts +11 -7
- package/src/api-schemas/project.contract.test.ts +83 -6
- package/src/api-schemas/registry.ts +290 -457
- package/src/api-schemas/schema-primitives.ts +13 -0
- package/src/api-schemas/store.contract.test.ts +30 -1
- package/src/api-schemas/store.ts +58 -11
- package/src/api-schemas/tools.ts +62 -0
- package/src/api-schemas/view-execution.ts +28 -2
- package/src/api-schemas/views.contract.test.ts +119 -0
- package/src/api-schemas/views.ts +142 -3
- package/src/api-schemas/workflow-runs.ts +9 -7
- package/src/api-schemas/zeno-response-contracts.test.ts +344 -0
- package/src/apps.test.ts +2 -40
- package/src/apps.ts +14 -181
- package/src/ask-user.ts +1 -1
- package/src/audit-trail.ts +3 -3
- package/src/browser-credentials.ts +3 -7
- package/src/common.ts +13 -1
- package/src/content-query.ts +5 -0
- package/src/data-platform.ts +4 -51
- package/src/email.ts +24 -18
- package/src/environment.ts +1 -14
- package/src/facets.ts +0 -6
- package/src/group.ts +2 -12
- package/src/index.ts +3 -15
- package/src/integrations.ts +1 -52
- package/src/interaction.ts +12 -271
- package/src/meters.ts +10 -11
- package/src/oauth-scopes.test.ts +15 -0
- package/src/oauth-scopes.ts +10 -64
- package/src/oauth-server.ts +28 -215
- package/src/payload.ts +1 -6
- package/src/pending-asks.ts +17 -42
- package/src/platform-event.ts +3 -156
- package/src/project.ts +12 -160
- package/src/prompt.ts +9 -8
- package/src/query.ts +0 -9
- package/src/rate-limiter.ts +3 -3
- package/src/runs.ts +8 -0
- package/src/schema-for-extraction.ts +1 -1
- package/src/secrets.ts +3 -0
- package/src/skill.ts +0 -15
- package/src/store/activity-catalog.ts +3 -0
- package/src/store/agent-approval.ts +0 -4
- package/src/store/agent-run.ts +39 -93
- package/src/store/collections.ts +3 -6
- package/src/store/conversation-state.ts +12 -25
- package/src/store/doc-analyzer.ts +0 -26
- package/src/store/dsl-workflow.ts +28 -5
- package/src/store/grounded-extraction.ts +0 -18
- package/src/store/index.ts +0 -6
- package/src/store/intake-policy-schema.generated.ts +293 -1
- package/src/store/process.ts +84 -0
- package/src/store/rendering.ts +3 -8
- package/src/store/schedule.ts +0 -19
- package/src/store/signals.ts +14 -0
- package/src/store/store.ts +118 -127
- package/src/store/workflow.ts +32 -120
- package/src/sts-errors.ts +0 -2
- package/src/sts-token-types.ts +3 -28
- package/src/tools.ts +15 -0
- package/src/transient-tokens.ts +0 -2
- package/src/user.ts +0 -20
- package/src/utils/schemas.ts +2 -159
- package/src/views.ts +50 -47
- package/src/workflow-analytics.ts +12 -40
- package/tsconfig.dist.json +4 -1
- package/lib/Progress.d.ts +0 -22
- package/lib/Progress.d.ts.map +0 -1
- package/lib/Progress.js +0 -57
- package/lib/Progress.js.map +0 -1
- package/lib/agent-request-template.d.ts +0 -4
- package/lib/agent-request-template.d.ts.map +0 -1
- package/lib/agent-request-template.js +0 -46
- package/lib/agent-request-template.js.map +0 -1
- package/lib/channels.d.ts +0 -22
- package/lib/channels.d.ts.map +0 -1
- package/lib/channels.js +0 -57
- package/lib/channels.js.map +0 -1
- package/lib/host-utils.d.ts +0 -8
- package/lib/host-utils.d.ts.map +0 -1
- package/lib/host-utils.js +0 -84
- package/lib/host-utils.js.map +0 -1
- package/lib/platform-event-validation.d.ts +0 -45
- package/lib/platform-event-validation.d.ts.map +0 -1
- package/lib/platform-event-validation.js +0 -336
- package/lib/platform-event-validation.js.map +0 -1
- package/lib/store/hive-memory.d.ts +0 -117
- package/lib/store/hive-memory.d.ts.map +0 -1
- package/lib/store/hive-memory.js +0 -2
- package/lib/store/hive-memory.js.map +0 -1
- package/lib/store/object-types.d.ts +0 -24
- package/lib/store/object-types.d.ts.map +0 -1
- package/lib/store/object-types.js +0 -95
- package/lib/store/object-types.js.map +0 -1
- package/lib/store/process-schema.d.ts +0 -561
- package/lib/store/process-schema.d.ts.map +0 -1
- package/lib/store/process-schema.js +0 -561
- package/lib/store/process-schema.js.map +0 -1
- package/lib/store/process-validation.d.ts +0 -17
- package/lib/store/process-validation.d.ts.map +0 -1
- package/lib/store/process-validation.js +0 -515
- package/lib/store/process-validation.js.map +0 -1
- package/lib/store/temporalio.d.ts +0 -17
- package/lib/store/temporalio.d.ts.map +0 -1
- package/lib/store/temporalio.js +0 -41
- package/lib/store/temporalio.js.map +0 -1
- package/lib/view-configuration-validation.d.ts +0 -15
- package/lib/view-configuration-validation.d.ts.map +0 -1
- package/lib/view-configuration-validation.js +0 -63
- package/lib/view-configuration-validation.js.map +0 -1
- package/lib/view-query-validation.d.ts +0 -13
- package/lib/view-query-validation.d.ts.map +0 -1
- package/lib/view-query-validation.js +0 -266
- package/lib/view-query-validation.js.map +0 -1
- package/lib/view-validation-helpers.d.ts +0 -15
- package/lib/view-validation-helpers.d.ts.map +0 -1
- package/lib/view-validation-helpers.js +0 -25
- package/lib/view-validation-helpers.js.map +0 -1
- package/lib/views-schema.d.ts +0 -1992
- package/lib/views-schema.d.ts.map +0 -1
- package/lib/views-schema.js +0 -674
- package/lib/views-schema.js.map +0 -1
- package/lib/views-validation.d.ts +0 -21
- package/lib/views-validation.d.ts.map +0 -1
- package/lib/views-validation.js +0 -164
- package/lib/views-validation.js.map +0 -1
- package/src/Progress.ts +0 -59
- package/src/agent-request-template.test.ts +0 -40
- package/src/agent-request-template.ts +0 -45
- package/src/channels.ts +0 -70
- package/src/host-utils.test.ts +0 -61
- package/src/host-utils.ts +0 -93
- package/src/platform-event-validation.test.ts +0 -251
- package/src/platform-event-validation.ts +0 -372
- package/src/project.test.ts +0 -44
- package/src/store/hive-memory.ts +0 -167
- package/src/store/object-types.ts +0 -123
- package/src/store/process-schema.test.ts +0 -149
- package/src/store/process-schema.ts +0 -564
- package/src/store/process-validation.test.ts +0 -635
- package/src/store/process-validation.ts +0 -646
- package/src/store/temporalio.ts +0 -54
- package/src/view-configuration-validation.ts +0 -74
- package/src/view-query-validation.test.ts +0 -21
- package/src/view-query-validation.ts +0 -319
- package/src/view-validation-helpers.ts +0 -28
- package/src/views-schema.test.ts +0 -372
- package/src/views-schema.ts +0 -689
- package/src/views-validation.ts +0 -234
package/src/project.ts
CHANGED
|
@@ -21,6 +21,8 @@ import type {
|
|
|
21
21
|
ProjectPluginsUpdatePayloadSchema,
|
|
22
22
|
ProjectSchema,
|
|
23
23
|
ProjectTagQuerySchema,
|
|
24
|
+
UpdateProjectConfigurationPayloadSchema,
|
|
25
|
+
UpdateProjectPayloadSchema,
|
|
24
26
|
} from './api-schemas/project.js';
|
|
25
27
|
import type {
|
|
26
28
|
AgentCheckpointConfigurationSchema,
|
|
@@ -29,6 +31,7 @@ import type {
|
|
|
29
31
|
BrowserUseRiskPolicySchema,
|
|
30
32
|
BrowserUseScreenshotCaptureSchema,
|
|
31
33
|
ElasticsearchBackendSchema,
|
|
34
|
+
IntakeVisionProfileSettingsUpdateSchema,
|
|
32
35
|
ModalityDefaultsSchema,
|
|
33
36
|
ModelDefaultSchema,
|
|
34
37
|
ProjectConfigurationEmbeddingSchema,
|
|
@@ -43,7 +46,6 @@ import type {
|
|
|
43
46
|
SystemDefaultsSchema,
|
|
44
47
|
} from './api-schemas/project-configuration.js';
|
|
45
48
|
import type { AccountRef } from './user.js';
|
|
46
|
-
import { ELASTICSEARCH_FIELD_PATH_PATTERN } from './view-validation-helpers.js';
|
|
47
49
|
|
|
48
50
|
/**
|
|
49
51
|
* `SystemRoles` lives in `./project-values.js` so the API schemas can read it without importing this
|
|
@@ -51,25 +53,8 @@ import { ELASTICSEARCH_FIELD_PATH_PATTERN } from './view-validation-helpers.js';
|
|
|
51
53
|
*/
|
|
52
54
|
export * from './project-values.js';
|
|
53
55
|
|
|
54
|
-
import { SystemRoles } from './project-values.js';
|
|
55
|
-
|
|
56
56
|
export type ICreateProjectPayload = CreateProjectPayloadFromSchema;
|
|
57
57
|
|
|
58
|
-
export function isRoleIncludedIn(role: string, includingRole: string) {
|
|
59
|
-
switch (includingRole) {
|
|
60
|
-
case SystemRoles.owner:
|
|
61
|
-
return true; // includes billing to?
|
|
62
|
-
case SystemRoles.admin:
|
|
63
|
-
return role !== SystemRoles.billing && role !== SystemRoles.owner;
|
|
64
|
-
case SystemRoles.developer:
|
|
65
|
-
return role === SystemRoles.developer;
|
|
66
|
-
case SystemRoles.billing:
|
|
67
|
-
return role === SystemRoles.billing;
|
|
68
|
-
default:
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
58
|
export interface PopulatedProjectRef {
|
|
74
59
|
id: string;
|
|
75
60
|
name: string;
|
|
@@ -131,27 +116,10 @@ export const SYSTEM_INTERACTION_CATEGORIES: Record<string, SystemInteractionCate
|
|
|
131
116
|
AnalyzeConversation: SystemInteractionCategory.analysis,
|
|
132
117
|
GetAgentConversationTopic: SystemInteractionCategory.analysis,
|
|
133
118
|
ContentSearchAgent: SystemInteractionCategory.analysis,
|
|
119
|
+
ContentSearchReranker: SystemInteractionCategory.analysis,
|
|
134
120
|
StudioAssistant: SystemInteractionCategory.agent,
|
|
135
121
|
};
|
|
136
122
|
|
|
137
|
-
/**
|
|
138
|
-
* Get category for a system interaction endpoint.
|
|
139
|
-
* Returns undefined if category is non-applicable or endpoint is not recognized.
|
|
140
|
-
* Note: Caller is responsible for determining if the interaction is a system interaction.
|
|
141
|
-
* @param endpoint - The interaction endpoint name
|
|
142
|
-
*/
|
|
143
|
-
export function getSystemInteractionCategory(endpoint: string): SystemInteractionCategory | undefined {
|
|
144
|
-
if (endpoint.startsWith('sys:')) {
|
|
145
|
-
// Strip sys: prefix
|
|
146
|
-
endpoint = endpoint.substring(4);
|
|
147
|
-
}
|
|
148
|
-
const category = SYSTEM_INTERACTION_CATEGORIES[endpoint];
|
|
149
|
-
if (category === SystemInteractionCategory.non_applicable) {
|
|
150
|
-
return undefined;
|
|
151
|
-
}
|
|
152
|
-
return category || undefined;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
123
|
/**
|
|
156
124
|
* One optional default per {@link SystemInteractionCategory}.
|
|
157
125
|
*
|
|
@@ -197,81 +165,6 @@ export type ProjectSearchPropertyType = z.infer<typeof ProjectSearchPropertyType
|
|
|
197
165
|
|
|
198
166
|
export type ProjectSearchPropertyMapping = z.infer<typeof ProjectSearchPropertyMappingSchema>;
|
|
199
167
|
|
|
200
|
-
export const PROJECT_SEARCH_PROPERTY_TYPES: readonly ProjectSearchPropertyType[] = [
|
|
201
|
-
'keyword',
|
|
202
|
-
'text',
|
|
203
|
-
'boolean',
|
|
204
|
-
'long',
|
|
205
|
-
'double',
|
|
206
|
-
'date',
|
|
207
|
-
];
|
|
208
|
-
|
|
209
|
-
const MAX_PROJECT_SEARCH_PROPERTY_MAPPINGS = 200;
|
|
210
|
-
const MAX_KEYWORD_IGNORE_ABOVE = 8191;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Validate property mappings at API and index-creation boundaries.
|
|
214
|
-
*
|
|
215
|
-
* Returns user-facing issue strings instead of throwing so callers can map the
|
|
216
|
-
* result to the error type appropriate for their boundary.
|
|
217
|
-
*/
|
|
218
|
-
export function validateProjectSearchPropertyMappings(value: unknown): string[] {
|
|
219
|
-
if (value === undefined) return [];
|
|
220
|
-
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
221
|
-
return ['indexing.property_mappings must be an object keyed by property path'];
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
const entries = Object.entries(value as Record<string, unknown>);
|
|
225
|
-
const issues: string[] = [];
|
|
226
|
-
if (entries.length > MAX_PROJECT_SEARCH_PROPERTY_MAPPINGS) {
|
|
227
|
-
issues.push(`indexing.property_mappings must contain at most ${MAX_PROJECT_SEARCH_PROPERTY_MAPPINGS} fields`);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
const supportedTypes = new Set<string>(PROJECT_SEARCH_PROPERTY_TYPES);
|
|
231
|
-
for (const [path, rawMapping] of entries) {
|
|
232
|
-
const field = `indexing.property_mappings.${path}`;
|
|
233
|
-
if (!ELASTICSEARCH_FIELD_PATH_PATTERN.test(path)) {
|
|
234
|
-
issues.push(`${field} must be a dot-separated path containing only letters, numbers, and underscores`);
|
|
235
|
-
}
|
|
236
|
-
if (!rawMapping || typeof rawMapping !== 'object' || Array.isArray(rawMapping)) {
|
|
237
|
-
issues.push(`${field} must be an object`);
|
|
238
|
-
continue;
|
|
239
|
-
}
|
|
240
|
-
const mapping = rawMapping as Record<string, unknown>;
|
|
241
|
-
const extraKeys = Object.keys(mapping).filter(
|
|
242
|
-
(key) => !['type', 'format', 'ignore_above', 'ignore_malformed'].includes(key),
|
|
243
|
-
);
|
|
244
|
-
if (extraKeys.length > 0) {
|
|
245
|
-
issues.push(`${field} contains unsupported option(s): ${extraKeys.join(', ')}`);
|
|
246
|
-
}
|
|
247
|
-
if (typeof mapping.type !== 'string' || !supportedTypes.has(mapping.type)) {
|
|
248
|
-
issues.push(`${field}.type must be one of: ${PROJECT_SEARCH_PROPERTY_TYPES.join(', ')}`);
|
|
249
|
-
}
|
|
250
|
-
if (mapping.format !== undefined && (mapping.type !== 'date' || typeof mapping.format !== 'string')) {
|
|
251
|
-
issues.push(`${field}.format is supported only for date mappings`);
|
|
252
|
-
}
|
|
253
|
-
if (
|
|
254
|
-
mapping.ignore_above !== undefined &&
|
|
255
|
-
(mapping.type !== 'keyword' ||
|
|
256
|
-
!Number.isInteger(mapping.ignore_above) ||
|
|
257
|
-
(mapping.ignore_above as number) < 1 ||
|
|
258
|
-
(mapping.ignore_above as number) > MAX_KEYWORD_IGNORE_ABOVE)
|
|
259
|
-
) {
|
|
260
|
-
issues.push(
|
|
261
|
-
`${field}.ignore_above is supported only for keyword mappings and must be an integer from 1 to ${MAX_KEYWORD_IGNORE_ABOVE}`,
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
if (
|
|
265
|
-
mapping.ignore_malformed !== undefined &&
|
|
266
|
-
(!['long', 'double', 'date'].includes(String(mapping.type)) ||
|
|
267
|
-
typeof mapping.ignore_malformed !== 'boolean')
|
|
268
|
-
) {
|
|
269
|
-
issues.push(`${field}.ignore_malformed is supported only for long, double, and date mappings`);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
return issues;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
168
|
export type ProjectIndexingConfiguration = z.infer<typeof ProjectIndexingConfigurationSchema>;
|
|
276
169
|
|
|
277
170
|
// export interface ProjectConfigurationEmbeddings {
|
|
@@ -287,7 +180,7 @@ export enum SupportedEmbeddingTypes {
|
|
|
287
180
|
properties = 'properties',
|
|
288
181
|
}
|
|
289
182
|
|
|
290
|
-
|
|
183
|
+
enum FullTextType {
|
|
291
184
|
full_text = 'full_text',
|
|
292
185
|
}
|
|
293
186
|
|
|
@@ -306,13 +199,6 @@ export type ProjectConfigurationEmbeddingEnablePayload = z.infer<
|
|
|
306
199
|
|
|
307
200
|
export type Project = z.infer<typeof ProjectSchema>;
|
|
308
201
|
|
|
309
|
-
export interface ProjectCreatePayload {
|
|
310
|
-
name: string;
|
|
311
|
-
description?: string;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
export interface ProjectUpdatePayload extends Partial<Project> {}
|
|
315
|
-
|
|
316
202
|
export type ProjectPluginsUpdatePayload = z.infer<typeof ProjectPluginsUpdatePayloadSchema>;
|
|
317
203
|
|
|
318
204
|
export const ProjectRefPopulate = 'id name account';
|
|
@@ -326,46 +212,6 @@ export type IndexingStatusResponse = z.infer<typeof IndexingStatusResponseSchema
|
|
|
326
212
|
|
|
327
213
|
export type StartProjectReindexPayload = z.infer<typeof StartProjectReindexPayloadSchema>;
|
|
328
214
|
|
|
329
|
-
/**
|
|
330
|
-
* Auto-tunes shard sizing based on project doc count.
|
|
331
|
-
*
|
|
332
|
-
* Returns:
|
|
333
|
-
* - shard_size: target docs per shard (workflow path uses this; zeno-bulk
|
|
334
|
-
* computes shard count from total/shard_size).
|
|
335
|
-
* - parallel_shard_count: max in-flight shard activities (workflow path only).
|
|
336
|
-
* - max_shards: hard cap on shard count for the direct path. Direct path
|
|
337
|
-
* passes this as `shards` to zeno-bulk so all shards run as cursors in
|
|
338
|
-
* ONE process; without this cap, an under-estimated shard_size (e.g.
|
|
339
|
-
* from stale estimatedDocumentCount) can spawn 10+ in-flight cursors
|
|
340
|
-
* and exceed Cloud Run memory.
|
|
341
|
-
*
|
|
342
|
-
* Explicit overrides should bypass this function and use user-provided values.
|
|
343
|
-
*/
|
|
344
|
-
export function autoTuneReindexParams(docCount: number): {
|
|
345
|
-
shard_size: number;
|
|
346
|
-
parallel_shard_count: number;
|
|
347
|
-
max_shards: number;
|
|
348
|
-
} {
|
|
349
|
-
if (docCount < 50_000) {
|
|
350
|
-
// Tiny/small project: aim for ~4 shards, with a 5k floor.
|
|
351
|
-
return {
|
|
352
|
-
shard_size: Math.max(Math.ceil(docCount / 4), 5_000),
|
|
353
|
-
parallel_shard_count: Math.min(4, Math.max(1, Math.ceil(docCount / 5_000))),
|
|
354
|
-
max_shards: 4,
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
if (docCount < 500_000) {
|
|
358
|
-
// Medium project: 50k shards → 1-10 shards
|
|
359
|
-
return { shard_size: 50_000, parallel_shard_count: 8, max_shards: 10 };
|
|
360
|
-
}
|
|
361
|
-
if (docCount < 2_000_000) {
|
|
362
|
-
// Large project: 100k shards → 5-20 shards
|
|
363
|
-
return { shard_size: 100_000, parallel_shard_count: 8, max_shards: 20 };
|
|
364
|
-
}
|
|
365
|
-
// Huge project: stick to 250k shards to keep coordination overhead bounded.
|
|
366
|
-
return { shard_size: 250_000, parallel_shard_count: 8, max_shards: 40 };
|
|
367
|
-
}
|
|
368
|
-
|
|
369
215
|
export type ReindexAgentRunsPayload = z.infer<typeof ReindexAgentRunsPayloadSchema>;
|
|
370
216
|
|
|
371
217
|
export type ReindexAgentRunsResponse = z.infer<typeof ReindexAgentRunsResponseSchema>;
|
|
@@ -649,7 +495,7 @@ export interface ElasticsearchIndexStats {
|
|
|
649
495
|
/**
|
|
650
496
|
* Embedding configuration for a single type
|
|
651
497
|
*/
|
|
652
|
-
|
|
498
|
+
interface EmbeddingTypeConfig {
|
|
653
499
|
environment?: string;
|
|
654
500
|
dimensions?: number;
|
|
655
501
|
model?: string;
|
|
@@ -778,3 +624,9 @@ export type DriftAnalysisStatusResponse = z.infer<typeof DriftAnalysisStatusResp
|
|
|
778
624
|
export type ProjectIntegrationListEntry = z.infer<typeof ProjectIntegrationListEntrySchema>;
|
|
779
625
|
|
|
780
626
|
export type ProjectIntegrationListResponse = z.infer<typeof ProjectIntegrationListResponseSchema>;
|
|
627
|
+
|
|
628
|
+
export type UpdateProjectPayload = z.infer<typeof UpdateProjectPayloadSchema>;
|
|
629
|
+
|
|
630
|
+
export type UpdateProjectConfigurationPayload = z.infer<typeof UpdateProjectConfigurationPayloadSchema>;
|
|
631
|
+
|
|
632
|
+
export type IntakeVisionProfileSettingsUpdate = z.infer<typeof IntakeVisionProfileSettingsUpdateSchema>;
|
package/src/prompt.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { JSONSchema, PromptRole } from '@llumiverse/common';
|
|
2
2
|
import type { z } from 'zod';
|
|
3
3
|
import type {
|
|
4
|
+
ExportedPromptTemplateRefSchema,
|
|
5
|
+
InteractionPromptSegmentInputSchema,
|
|
6
|
+
InteractionPromptTemplateInputSchema,
|
|
4
7
|
PromptTemplateCreatePayloadSchema,
|
|
5
8
|
PromptTemplateRefSchema,
|
|
6
9
|
PromptTemplateSchema,
|
|
@@ -38,10 +41,6 @@ export interface PromptSegmentDef<T = string | PromptTemplate | PromptTemplateRe
|
|
|
38
41
|
configuration?: unknown; // the configuration if any in case of builtin prompts
|
|
39
42
|
}
|
|
40
43
|
|
|
41
|
-
export interface PromptSegmentRef<T = string | PromptTemplate | PromptTemplateRef> extends PromptSegmentDef<T> {
|
|
42
|
-
id: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
44
|
export interface PopulatedPromptSegmentDef extends Omit<PromptSegmentDef, 'template'> {
|
|
46
45
|
template?: PromptTemplate;
|
|
47
46
|
}
|
|
@@ -54,10 +53,6 @@ export interface ExecutablePromptSegmentDef extends Omit<PromptSegmentDef, 'temp
|
|
|
54
53
|
|
|
55
54
|
export type PromptTemplateRef = z.infer<typeof PromptTemplateRefSchema>;
|
|
56
55
|
|
|
57
|
-
export interface PromptTemplateRefWithSchema extends PromptTemplateRef {
|
|
58
|
-
inputSchema?: JSONSchema;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
56
|
export enum TemplateType {
|
|
62
57
|
jst = 'jst',
|
|
63
58
|
handlebars = 'handlebars',
|
|
@@ -71,6 +66,10 @@ export interface ExecutablePromptTemplate {
|
|
|
71
66
|
}
|
|
72
67
|
export type PromptTemplate = z.infer<typeof PromptTemplateSchema>;
|
|
73
68
|
|
|
69
|
+
export type InteractionPromptTemplateInput = z.infer<typeof InteractionPromptTemplateInputSchema>;
|
|
70
|
+
|
|
71
|
+
export type InteractionPromptSegmentInput = z.infer<typeof InteractionPromptSegmentInputSchema>;
|
|
72
|
+
|
|
74
73
|
export type PromptTemplateForkPayload = z.infer<typeof PromptTemplateForkPayloadSchema>;
|
|
75
74
|
|
|
76
75
|
export type PromptTemplateCreatePayload = z.infer<typeof PromptTemplateCreatePayloadSchema>;
|
|
@@ -92,3 +91,5 @@ export type RenderPromptPayload = z.infer<typeof RenderPromptPayloadSchema>;
|
|
|
92
91
|
* been a name for it on either side of the wire.
|
|
93
92
|
*/
|
|
94
93
|
export type RenderPromptResponse = z.infer<typeof RenderPromptResponseSchema>;
|
|
94
|
+
|
|
95
|
+
export type ExportedPromptTemplateRef = z.infer<typeof ExportedPromptTemplateRefSchema>;
|
package/src/query.ts
CHANGED
|
@@ -81,15 +81,6 @@ export type InteractionSearchQuery = z.infer<typeof InteractionSearchQuerySchema
|
|
|
81
81
|
|
|
82
82
|
export type RunSearchQuery = z.infer<typeof RunSearchQuerySchema>;
|
|
83
83
|
|
|
84
|
-
export interface WorkflowExecutionSearchQuery extends SimpleSearchQuery {
|
|
85
|
-
documentId?: string;
|
|
86
|
-
eventName?: string;
|
|
87
|
-
ruleId?: string;
|
|
88
|
-
start?: string;
|
|
89
|
-
end?: string;
|
|
90
|
-
status?: string;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
84
|
export type ComplexSearchQuery = z.infer<typeof ComplexSearchQuerySchema>;
|
|
94
85
|
|
|
95
86
|
export type ComplexCollectionSearchQuery = z.infer<typeof ComplexCollectionSearchQuerySchema>;
|
package/src/rate-limiter.ts
CHANGED
|
@@ -12,20 +12,20 @@ import type {
|
|
|
12
12
|
QuotaTierResponseSchema,
|
|
13
13
|
} from './api-schemas/quota.js';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
interface RateLimiterCapacity {
|
|
16
16
|
current: number;
|
|
17
17
|
base: number;
|
|
18
18
|
max: number;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
interface RateLimiterBreakerState {
|
|
22
22
|
state: 'open' | 'closed';
|
|
23
23
|
is_open: boolean;
|
|
24
24
|
last_opened_at?: string;
|
|
25
25
|
consecutive_failures?: number;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
interface RateLimiterModelStatus {
|
|
29
29
|
model_id: string;
|
|
30
30
|
admitted: number;
|
|
31
31
|
delayed: number;
|
package/src/runs.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
2
|
import type {
|
|
3
|
+
ComputeRunFacetsResponseSchema,
|
|
3
4
|
ExecutionRunDocRefSchema,
|
|
5
|
+
FindRunResultArraySchema,
|
|
6
|
+
FindRunResultSchema,
|
|
7
|
+
PopulatedExecutionRunResultSchema,
|
|
4
8
|
RunClonePayloadSchema,
|
|
5
9
|
RunCreatePayloadSchema,
|
|
6
10
|
RunSearchMetaResponseSchema,
|
|
@@ -10,6 +14,9 @@ import type {
|
|
|
10
14
|
* The run ref is used to identify a run document in the storage
|
|
11
15
|
*/
|
|
12
16
|
export type ExecutionRunDocRef = z.infer<typeof ExecutionRunDocRefSchema>;
|
|
17
|
+
export type FindRunResult = z.infer<typeof FindRunResultSchema>;
|
|
18
|
+
export type FindRunResultArray = z.infer<typeof FindRunResultArraySchema>;
|
|
19
|
+
export type PopulatedExecutionRunResult = z.infer<typeof PopulatedExecutionRunResultSchema>;
|
|
13
20
|
|
|
14
21
|
/**
|
|
15
22
|
* Interaction execution payload for creating a new run
|
|
@@ -35,3 +42,4 @@ export interface RangeValue {
|
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
export type RunSearchMetaResponse = z.infer<typeof RunSearchMetaResponseSchema>;
|
|
45
|
+
export type ComputeRunFacetsResponse = z.infer<typeof ComputeRunFacetsResponseSchema>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* only the filtered copy is used as result_schema for constrained decoding.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const X_EXTRACT = 'x-extract';
|
|
11
11
|
|
|
12
12
|
function unescapeJsonPointerSegment(segment: string): string {
|
|
13
13
|
return segment.replace(/~1/g, '/').replace(/~0/g, '~');
|
package/src/secrets.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
2
|
import type {
|
|
3
3
|
CreateSecretRequestSchema,
|
|
4
|
+
DeleteSecretResponseSchema,
|
|
4
5
|
EventIngestSigningSecretRequestSchema,
|
|
5
6
|
EventIngestSigningSecretResponseSchema,
|
|
6
7
|
EventWebhookSigningSecretRequestSchema,
|
|
@@ -48,3 +49,5 @@ export type VerifyEventIngestSignatureRequest = z.infer<typeof VerifyEventIngest
|
|
|
48
49
|
export type VerifyEventIngestSignatureResponse = z.infer<typeof VerifyEventIngestSignatureResponseSchema>;
|
|
49
50
|
export type GithubInstallationTokenRequest = z.infer<typeof GithubInstallationTokenRequestSchema>;
|
|
50
51
|
export type GithubInstallationTokenResponse = z.infer<typeof GithubInstallationTokenResponseSchema>;
|
|
52
|
+
|
|
53
|
+
export type DeleteSecretResponse = z.infer<typeof DeleteSecretResponseSchema>;
|
package/src/skill.ts
CHANGED
|
@@ -73,18 +73,3 @@ export interface InjectedSkill {
|
|
|
73
73
|
*/
|
|
74
74
|
match_score?: number;
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Result from generateTools activity with skills
|
|
79
|
-
*/
|
|
80
|
-
export interface ToolsWithSkills {
|
|
81
|
-
/**
|
|
82
|
-
* Array of tool definitions
|
|
83
|
-
*/
|
|
84
|
-
tools: unknown[]; // ToolDefinition[]
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Skills injected based on context
|
|
88
|
-
*/
|
|
89
|
-
injected_skills: InjectedSkill[];
|
|
90
|
-
}
|
|
@@ -30,6 +30,9 @@ export interface ActivityTypeDefinition {
|
|
|
30
30
|
enum?: string[] | number[] | undefined;
|
|
31
31
|
// in case of unions
|
|
32
32
|
union?: ActivityTypeDefinition[];
|
|
33
|
+
// in case of records
|
|
34
|
+
keyType?: ActivityTypeDefinition;
|
|
35
|
+
valueType?: ActivityTypeDefinition;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
export interface ActivityPropertyDefinition {
|
|
@@ -22,7 +22,3 @@ export function normalizeAgentToolApprovalMode(
|
|
|
22
22
|
}
|
|
23
23
|
return mode ?? 'full_control';
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
export function isAgentToolApprovalMode(value: unknown): value is AgentToolApprovalMode {
|
|
27
|
-
return typeof value === 'string' && (AgentToolApprovalModes as readonly string[]).includes(value);
|
|
28
|
-
}
|
package/src/store/agent-run.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* (workflowId, runId) are internal server concerns.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
import type { ReasoningEffort } from '@llumiverse/common';
|
|
15
16
|
import type { z } from 'zod';
|
|
16
17
|
import type {
|
|
17
18
|
AgentArtifactContentResponseSchema,
|
|
@@ -25,6 +26,9 @@ import type {
|
|
|
25
26
|
AgentRunUpdatesQuerySchema,
|
|
26
27
|
AgentRunUpdatesResponseSchema,
|
|
27
28
|
CreateAgentRunPayloadSchema,
|
|
29
|
+
CreateProcessRunByIdPayloadSchema,
|
|
30
|
+
CreateProcessRunWithDefinitionPayloadSchema,
|
|
31
|
+
CreateRunPayloadSchema,
|
|
28
32
|
IngestAgentEventsPayloadSchema,
|
|
29
33
|
IngestAgentEventsResponseSchema,
|
|
30
34
|
ListAgentRunsQuerySchema,
|
|
@@ -46,20 +50,15 @@ import type {
|
|
|
46
50
|
RunTypeSchema,
|
|
47
51
|
} from '../api-schemas/app-lifecycle.js';
|
|
48
52
|
import type { ProcessRunConfigSchema, ProcessRunTypeSchema } from '../api-schemas/process.js';
|
|
49
|
-
import type { BindRunWorkflowPayloadSchema } from '../api-schemas/workflow-runs.js';
|
|
50
|
-
import type {
|
|
51
|
-
ConversationVisibility,
|
|
52
|
-
InitialToolCall,
|
|
53
|
-
InteractionExecutionConfiguration,
|
|
54
|
-
RunSource,
|
|
55
|
-
} from '../interaction.js';
|
|
53
|
+
import type { BindRunWorkflowPayloadSchema, RestartAgentRunPayloadSchema } from '../api-schemas/workflow-runs.js';
|
|
54
|
+
import type { ConversationVisibility, InteractionExecutionConfiguration, RunSource } from '../interaction.js';
|
|
56
55
|
import type { EventRef } from '../platform-event.js';
|
|
57
56
|
import type { AgentToolApprovalMode } from './agent-approval.js';
|
|
58
57
|
import type { ProcessDefinitionBody, ProcessState } from './process.js';
|
|
59
|
-
import type { StopSignal, UserInputSignal } from './signals.js';
|
|
60
|
-
import type { ContentObjectTypeRef } from './store.js';
|
|
58
|
+
import type { ModelConfigChangedSignal, StopSignal, UserInputSignal } from './signals.js';
|
|
61
59
|
import type {
|
|
62
60
|
ConversationActivityState,
|
|
61
|
+
ConversationFileBatchRef,
|
|
63
62
|
ConversationFileRef,
|
|
64
63
|
ConversationFileRemovedRef,
|
|
65
64
|
WorkflowRunEvent,
|
|
@@ -79,7 +78,7 @@ export type ProcessRunType = z.infer<typeof ProcessRunTypeSchema>;
|
|
|
79
78
|
/**
|
|
80
79
|
* Shared fields for all records stored in the agent_runs collection.
|
|
81
80
|
*/
|
|
82
|
-
|
|
81
|
+
interface RunBase {
|
|
83
82
|
/** The stable identifier used by all client code */
|
|
84
83
|
id: string;
|
|
85
84
|
|
|
@@ -156,80 +155,6 @@ export interface RunBase {
|
|
|
156
155
|
updated_at: string;
|
|
157
156
|
}
|
|
158
157
|
|
|
159
|
-
/**
|
|
160
|
-
* Shared fields between CreateAgentRunPayload and AgentRun.
|
|
161
|
-
*
|
|
162
|
-
* @typeParam TData - The interaction's expected input data type.
|
|
163
|
-
* @typeParam TProperties - The content type's property schema.
|
|
164
|
-
*/
|
|
165
|
-
export interface AgentRunBase<TData = Record<string, unknown>, TProperties = Record<string, unknown>> {
|
|
166
|
-
/** Interaction ID or code (e.g. "sys:generic_question"). */
|
|
167
|
-
interaction: string;
|
|
168
|
-
|
|
169
|
-
/** Input parameters, typed per interaction */
|
|
170
|
-
data?: TData;
|
|
171
|
-
|
|
172
|
-
/** Execution configuration (environment, model, model_options, etc.) */
|
|
173
|
-
config?: InteractionExecutionConfiguration;
|
|
174
|
-
|
|
175
|
-
/** Whether the agent accepts user input */
|
|
176
|
-
interactive?: boolean;
|
|
177
|
-
|
|
178
|
-
/** How side-effecting tool actions are approved for interactive runs. */
|
|
179
|
-
tool_approval_mode?: AgentToolApprovalMode;
|
|
180
|
-
|
|
181
|
-
/** Tools configured for this run (+/- syntax supported) */
|
|
182
|
-
tool_names?: string[];
|
|
183
|
-
|
|
184
|
-
/** Builtin system skills activated before the first model turn. */
|
|
185
|
-
initial_skills?: string[];
|
|
186
|
-
|
|
187
|
-
/** Ordered, bounded hydration/read calls executed before the first model turn. */
|
|
188
|
-
initial_tool_calls?: InitialToolCall[];
|
|
189
|
-
|
|
190
|
-
/** Hard denylist of tool names: never exposed to the model, refused at execution time. */
|
|
191
|
-
excluded_tools?: string[];
|
|
192
|
-
|
|
193
|
-
/** Scoped collection (if any) */
|
|
194
|
-
collection_id?: string;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Denylist of MCP tool-collection ids deactivated for this run.
|
|
198
|
-
* `undefined`/empty means all installed/connected MCP collections are active (back-compat,
|
|
199
|
-
* and new servers stay active by default). Listed collections are excluded even if connected.
|
|
200
|
-
*/
|
|
201
|
-
disabled_mcp_collections?: string[];
|
|
202
|
-
|
|
203
|
-
/** Content type linked to this run — defines the schema for `properties` */
|
|
204
|
-
content_type?: ContentObjectTypeRef;
|
|
205
|
-
|
|
206
|
-
/** Conversation visibility */
|
|
207
|
-
visibility?: ConversationVisibility;
|
|
208
|
-
|
|
209
|
-
/** User-defined or system tags for categorization */
|
|
210
|
-
tags?: string[];
|
|
211
|
-
|
|
212
|
-
/** Categories for organizing runs (e.g. "support", "analysis", "generation") */
|
|
213
|
-
categories?: string[];
|
|
214
|
-
|
|
215
|
-
/** Business metadata — typed by the linked content_type schema */
|
|
216
|
-
properties?: TProperties;
|
|
217
|
-
|
|
218
|
-
/** How the run was started */
|
|
219
|
-
source?: RunSource;
|
|
220
|
-
|
|
221
|
-
/** Schedule ID — set when this run was triggered by a Temporal schedule */
|
|
222
|
-
schedule_id?: string;
|
|
223
|
-
|
|
224
|
-
/** How the run was created */
|
|
225
|
-
source_type?: AgentRunType;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @deprecated Use source_type for creation source and run_type for runtime mode.
|
|
229
|
-
*/
|
|
230
|
-
type?: AgentRunType;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
158
|
type AgentRunWire = z.infer<typeof AgentRunSchema>;
|
|
234
159
|
|
|
235
160
|
/**
|
|
@@ -255,8 +180,6 @@ export interface ProcessRun extends RunBase {
|
|
|
255
180
|
process_state: ProcessState;
|
|
256
181
|
config?: ProcessRunConfig;
|
|
257
182
|
}
|
|
258
|
-
|
|
259
|
-
export type AnyAgentRun = AgentRun | ProcessRun;
|
|
260
183
|
export type AutonomousRunResponse<TData = Record<string, unknown>, TProperties = Record<string, unknown>> = AgentRun<
|
|
261
184
|
TData,
|
|
262
185
|
TProperties
|
|
@@ -280,7 +203,7 @@ export type CreateAgentRunPayload<TData = Record<string, unknown>, TProperties =
|
|
|
280
203
|
properties?: TProperties;
|
|
281
204
|
};
|
|
282
205
|
|
|
283
|
-
|
|
206
|
+
interface ProcessRunInputPayload<TData = Record<string, unknown>, TSource = RunSource> {
|
|
284
207
|
process_id?: string;
|
|
285
208
|
/** Optional published process version to pin. Defaults to the latest/head revision. */
|
|
286
209
|
process_version?: number;
|
|
@@ -299,7 +222,7 @@ export interface CreateProcessRunPayload<TData = Record<string, unknown>, TSourc
|
|
|
299
222
|
run_type: ProcessRunType;
|
|
300
223
|
}
|
|
301
224
|
|
|
302
|
-
|
|
225
|
+
interface RecordRunWorkflowPayload {
|
|
303
226
|
/** Temporal workflow id. */
|
|
304
227
|
workflow_id: string;
|
|
305
228
|
/** First Temporal run id for this workflow. Required when the workflow has already started. */
|
|
@@ -312,7 +235,18 @@ export interface RecordRunWorkflowPayload {
|
|
|
312
235
|
*/
|
|
313
236
|
export interface RecordAgentRunPayload<TData = Record<string, unknown>> extends RecordRunWorkflowPayload {
|
|
314
237
|
run_kind?: 'agent';
|
|
238
|
+
/**
|
|
239
|
+
* Process run that owns this agent, when a process agent node recorded it. The run's
|
|
240
|
+
* conversation stays on the parent under {@link workstream_id} — see the note on RunBase.
|
|
241
|
+
*/
|
|
242
|
+
parent_run_id?: string;
|
|
243
|
+
/** Workstream this run occupies inside its parent run (the process node id). */
|
|
244
|
+
workstream_id?: string;
|
|
315
245
|
interaction: string;
|
|
246
|
+
title?: string;
|
|
247
|
+
topic?: string;
|
|
248
|
+
generate_topic?: boolean;
|
|
249
|
+
generate_lessons?: boolean;
|
|
316
250
|
first_workflow_run_id: string;
|
|
317
251
|
schedule_id?: string;
|
|
318
252
|
visibility?: ConversationVisibility;
|
|
@@ -363,6 +297,10 @@ export interface UpdateAgentRunStatusPayload {
|
|
|
363
297
|
disabled_mcp_collections?: string[];
|
|
364
298
|
/** Tool approval mode persisted for interactive agent runs. */
|
|
365
299
|
tool_approval_mode?: AgentToolApprovalMode;
|
|
300
|
+
/** Model selected for subsequent conversation turns. */
|
|
301
|
+
model?: string;
|
|
302
|
+
/** Reasoning effort selected for subsequent turns; null clears the explicit override. */
|
|
303
|
+
effort?: ReasoningEffort | null;
|
|
366
304
|
/** Archive state fields (set by the archive workflow) */
|
|
367
305
|
archive_state?: AgentRunArchiveState;
|
|
368
306
|
archived_at?: string;
|
|
@@ -377,8 +315,10 @@ export interface UpdateAgentRunStatusPayload {
|
|
|
377
315
|
export type SignalAgentPayload =
|
|
378
316
|
| UserInputSignal
|
|
379
317
|
| StopSignal
|
|
318
|
+
| ModelConfigChangedSignal
|
|
380
319
|
| ConversationFileRef
|
|
381
320
|
| ConversationFileRemovedRef
|
|
321
|
+
| ConversationFileBatchRef
|
|
382
322
|
| Record<string, unknown>;
|
|
383
323
|
|
|
384
324
|
export type SignalAgentResponse = z.infer<typeof SignalAgentResponseSchema>;
|
|
@@ -391,8 +331,6 @@ export type StreamAgentRunQuery = z.infer<typeof StreamAgentRunQuerySchema>;
|
|
|
391
331
|
|
|
392
332
|
export type AgentRunDetailsQuery = z.infer<typeof AgentRunDetailsQuerySchema>;
|
|
393
333
|
|
|
394
|
-
export type AgentArtifactVisibility = 'user' | 'internal' | 'all';
|
|
395
|
-
|
|
396
334
|
export type AgentRunArtifactsQuery = z.infer<typeof AgentRunArtifactsQuerySchema>;
|
|
397
335
|
|
|
398
336
|
export type AgentRunArtifactUploadHeaders = z.infer<typeof AgentRunArtifactUploadHeadersSchema>;
|
|
@@ -424,7 +362,7 @@ export type IngestAgentEventsResponse = z.infer<typeof IngestAgentEventsResponse
|
|
|
424
362
|
/**
|
|
425
363
|
* History event payload emitted by the agent details SSE stream.
|
|
426
364
|
*/
|
|
427
|
-
|
|
365
|
+
interface AgentRunDetailsHistoryStreamEvent {
|
|
428
366
|
runId?: string;
|
|
429
367
|
event: WorkflowRunEvent;
|
|
430
368
|
}
|
|
@@ -432,12 +370,12 @@ export interface AgentRunDetailsHistoryStreamEvent {
|
|
|
432
370
|
/**
|
|
433
371
|
* Control payload emitted by the agent details SSE stream.
|
|
434
372
|
*/
|
|
435
|
-
|
|
373
|
+
type AgentRunDetailsControlStreamEvent = { type: 'continueAsNew'; newRunId: string } | { type: 'done' };
|
|
436
374
|
|
|
437
375
|
/**
|
|
438
376
|
* Error payload emitted by the agent details SSE stream.
|
|
439
377
|
*/
|
|
440
|
-
|
|
378
|
+
interface AgentRunDetailsErrorStreamEvent {
|
|
441
379
|
type: 'error';
|
|
442
380
|
message: string;
|
|
443
381
|
}
|
|
@@ -496,3 +434,11 @@ export interface AgentRunInternals {
|
|
|
496
434
|
created_at: string;
|
|
497
435
|
updated_at: string;
|
|
498
436
|
}
|
|
437
|
+
|
|
438
|
+
export type CreateProcessRunByIdPayload = z.infer<typeof CreateProcessRunByIdPayloadSchema>;
|
|
439
|
+
|
|
440
|
+
export type CreateProcessRunWithDefinitionPayload = z.infer<typeof CreateProcessRunWithDefinitionPayloadSchema>;
|
|
441
|
+
|
|
442
|
+
export type CreateRunPayload = z.infer<typeof CreateRunPayloadSchema>;
|
|
443
|
+
|
|
444
|
+
export type RestartAgentRunPayload = z.infer<typeof RestartAgentRunPayloadSchema>;
|