@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/transient-tokens.ts
CHANGED
|
@@ -18,8 +18,6 @@ export interface TransientToken<T> {
|
|
|
18
18
|
updated_at: Date;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export interface CreateOrUpdateTransientTokenPayload<T> extends Partial<TransientToken<T>> {}
|
|
22
|
-
|
|
23
21
|
/**
|
|
24
22
|
* The invite payload as it crosses the wire, inferred from `./api-schemas/invites.js`. Every
|
|
25
23
|
* reference is populated by the handlers before the response is built.
|
package/src/user.ts
CHANGED
|
@@ -16,14 +16,9 @@ import type {
|
|
|
16
16
|
UserRefSchema,
|
|
17
17
|
UserSchema,
|
|
18
18
|
} from './api-schemas/user.js';
|
|
19
|
-
import type { ApiKey } from './apikey.js';
|
|
20
19
|
|
|
21
20
|
export * from './account-values.js';
|
|
22
21
|
|
|
23
|
-
export interface UserWithAccounts extends User {
|
|
24
|
-
accounts: AccountRef[];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
22
|
/**
|
|
28
23
|
* The user and its update payload as they cross the wire.
|
|
29
24
|
*
|
|
@@ -98,21 +93,6 @@ export type InviteAcceptanceResponse = z.infer<typeof InviteAcceptanceResponseSc
|
|
|
98
93
|
export type InviteDeclineResponse = z.infer<typeof InviteDeclineResponseSchema>;
|
|
99
94
|
export type AccountProjectsResponse = z.infer<typeof AccountProjectsResponseSchema>;
|
|
100
95
|
|
|
101
|
-
type UserOrApiKey<T extends User | ApiKey> = T extends User ? User : ApiKey;
|
|
102
|
-
type SessionType<T extends User | ApiKey> = T extends User ? 'user' : 'apikey';
|
|
103
|
-
export interface SessionInfo<T extends User | ApiKey> {
|
|
104
|
-
isNew?: boolean;
|
|
105
|
-
type: SessionType<T>;
|
|
106
|
-
subject: UserOrApiKey<T>;
|
|
107
|
-
//User | ApiKey; // no user if using an apikey
|
|
108
|
-
current_account: Account;
|
|
109
|
-
//role: string; // TODO the role on the selected account
|
|
110
|
-
accounts: AccountRef[];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface UserSessionInfo extends SessionInfo<User> {}
|
|
114
|
-
export interface ApiKeySessionInfo extends SessionInfo<ApiKey> {}
|
|
115
|
-
|
|
116
96
|
export type OnboardingProgress = z.infer<typeof OnboardingProgressSchema>;
|
|
117
97
|
|
|
118
98
|
/**
|
package/src/utils/schemas.ts
CHANGED
|
@@ -1,162 +1,5 @@
|
|
|
1
|
-
import type { JSONSchema
|
|
2
|
-
import {
|
|
3
|
-
import type { InCodePrompt, InteractionRefWithSchema, PopulatedInteraction } from '../interaction.js';
|
|
4
|
-
import { type ExecutablePromptSegmentDef, PromptSegmentDefType } from '../prompt.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Sanitize a tool definition to only include fields expected by LLM APIs.
|
|
8
|
-
* Removes extra fields like 'category', 'default', 'tools' that are
|
|
9
|
-
* used internally but should not be sent to the LLM.
|
|
10
|
-
*/
|
|
11
|
-
export function sanitizeToolDefinition(tool: ToolDefinition): ToolDefinition {
|
|
12
|
-
return {
|
|
13
|
-
name: tool.name,
|
|
14
|
-
description: tool.description,
|
|
15
|
-
input_schema: tool.input_schema,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Sanitize an array of tool definitions.
|
|
21
|
-
*/
|
|
22
|
-
export function sanitizeToolDefinitions(tools: ToolDefinition[] | undefined): ToolDefinition[] | undefined {
|
|
23
|
-
if (!tools) return tools;
|
|
24
|
-
return tools.map(sanitizeToolDefinition);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Remove custom properties from the JSON before sending further down execution pipeline.
|
|
28
|
-
// Before stripping UI-only fields (editor, format), translate them into LLM-friendly
|
|
29
|
-
// schema hints so the model knows the expected value format.
|
|
30
|
-
export function removeExtraProperties<T>(schema: T): T {
|
|
31
|
-
if (!schema) return schema;
|
|
32
|
-
if (Array.isArray(schema)) {
|
|
33
|
-
for (const item of schema) {
|
|
34
|
-
removeExtraProperties(item);
|
|
35
|
-
}
|
|
36
|
-
} else if (typeof schema === 'object') {
|
|
37
|
-
const obj = schema as Record<string, unknown>;
|
|
38
|
-
|
|
39
|
-
// If this looks like a property definition (has editor/format for document/media),
|
|
40
|
-
// enrich it with type and description hints before stripping.
|
|
41
|
-
if (isDocumentProperty(obj)) {
|
|
42
|
-
enrichDocumentProperty(obj);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
for (const [key, value] of Object.entries(obj)) {
|
|
46
|
-
if (key === 'editor' && (value === 'textarea' || value === 'document' || value === 'media')) {
|
|
47
|
-
delete obj[key];
|
|
48
|
-
} else if (key === 'format' && (value === 'textarea' || value === 'document' || value === 'media')) {
|
|
49
|
-
delete obj[key];
|
|
50
|
-
} else if (typeof value === 'object') {
|
|
51
|
-
removeExtraProperties(value);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return schema;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Returns true if the schema property represents a document reference
|
|
60
|
-
* (identified by editor: "document" or format: "document" / "media").
|
|
61
|
-
*/
|
|
62
|
-
function isDocumentProperty(obj: Record<string, unknown>): boolean {
|
|
63
|
-
return obj.editor === 'document' || obj.format === 'document' || obj.format === 'media';
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Canonical hint string appended to document property descriptions.
|
|
68
|
-
* Used by ensureDocumentStorePrefix (in @dglabs/workflows) to detect document
|
|
69
|
-
* properties after serialization, when editor/format fields have been stripped.
|
|
70
|
-
* Exported so both packages use the exact same string — do NOT duplicate.
|
|
71
|
-
*/
|
|
72
|
-
export const DOCUMENT_STORE_HINT = "Use 'store:<document_id>' format to reference a document from the content store.";
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Enriches a document property schema with LLM-friendly hints:
|
|
76
|
-
* - Sets type to "string" if not already set
|
|
77
|
-
* - Appends a store: prefix hint to the description
|
|
78
|
-
*/
|
|
79
|
-
function enrichDocumentProperty(obj: Record<string, unknown>): void {
|
|
80
|
-
// Set type to string if missing (document references are string IDs)
|
|
81
|
-
if (!obj.type) {
|
|
82
|
-
obj.type = 'string';
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// Always ensure the canonical hint is present in the description.
|
|
86
|
-
// Check for the exact hint string (not just 'store:') to avoid missing detection
|
|
87
|
-
// after serialization when only the description survives.
|
|
88
|
-
if (!obj.description) {
|
|
89
|
-
obj.description = DOCUMENT_STORE_HINT;
|
|
90
|
-
} else if (typeof obj.description === 'string' && !obj.description.includes(DOCUMENT_STORE_HINT)) {
|
|
91
|
-
obj.description = `${obj.description} ${DOCUMENT_STORE_HINT}`;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function mergeJSONSchemas(schemas: JSONSchema[]) {
|
|
96
|
-
const props: Record<string, JSONSchema> = {};
|
|
97
|
-
const required: string[] = [];
|
|
98
|
-
for (const schema of schemas) {
|
|
99
|
-
if (schema.properties) {
|
|
100
|
-
if (schema.required) {
|
|
101
|
-
for (const prop of schema.required as string[]) {
|
|
102
|
-
if (!required.includes(prop)) required.push(prop);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
Object.assign(props, schema.properties);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
const schema: JSONSchema | null =
|
|
109
|
-
Object.keys(props).length > 0 ? { properties: props, required, type: 'object' } : null;
|
|
110
|
-
return schema;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export function _mergePromptsSchema(prompts: ExecutablePromptSegmentDef[]) {
|
|
114
|
-
const props: Record<string, JSONSchema> = {};
|
|
115
|
-
const required = new Set<string>();
|
|
116
|
-
for (const prompt of prompts) {
|
|
117
|
-
if (prompt.template?.inputSchema?.properties) {
|
|
118
|
-
const schema = prompt.template?.inputSchema;
|
|
119
|
-
if (schema.required) {
|
|
120
|
-
for (const prop of schema.required as string[]) {
|
|
121
|
-
required.add(prop);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
Object.assign(props, schema.properties);
|
|
125
|
-
} else if (prompt.type === PromptSegmentDefType.chat) {
|
|
126
|
-
Object.assign(props, {
|
|
127
|
-
chat: {
|
|
128
|
-
type: 'array',
|
|
129
|
-
items: {
|
|
130
|
-
type: 'object',
|
|
131
|
-
properties: {
|
|
132
|
-
role: {
|
|
133
|
-
type: 'string',
|
|
134
|
-
enum: [PromptRole.assistant, PromptRole.user],
|
|
135
|
-
},
|
|
136
|
-
content: { type: 'string' },
|
|
137
|
-
},
|
|
138
|
-
required: ['role', 'content'],
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
});
|
|
142
|
-
required.add('chat');
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
const schema: JSONSchema | null =
|
|
147
|
-
Object.keys(props).length > 0
|
|
148
|
-
? {
|
|
149
|
-
properties: props,
|
|
150
|
-
required: Array.from(required),
|
|
151
|
-
}
|
|
152
|
-
: null;
|
|
153
|
-
return schema;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export function mergePromptsSchema(interaction: InteractionRefWithSchema | PopulatedInteraction) {
|
|
157
|
-
if (!interaction.prompts) return null;
|
|
158
|
-
return _mergePromptsSchema(interaction.prompts as ExecutablePromptSegmentDef[]);
|
|
159
|
-
}
|
|
1
|
+
import type { JSONSchema } from '@llumiverse/common';
|
|
2
|
+
import type { InCodePrompt } from '../interaction.js';
|
|
160
3
|
|
|
161
4
|
export function mergeInCodePromptSchemas(prompts: InCodePrompt[]) {
|
|
162
5
|
const props: Record<string, JSONSchema> = {};
|
package/src/views.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
PreviewViewExperienceRequestSchema,
|
|
6
6
|
ViewExecutionDefinitionSchema,
|
|
7
7
|
ViewExecutionQueryPlanSchema,
|
|
8
|
+
ViewExecutionRerankResultSchema,
|
|
8
9
|
ViewExecutionResultSchema,
|
|
9
10
|
ViewExecutionSearchConfigurationSchema,
|
|
10
11
|
ViewExecutionSearchResultSchema,
|
|
@@ -13,17 +14,25 @@ import type {
|
|
|
13
14
|
ViewHitAnnotationSchema,
|
|
14
15
|
ViewHitSchema,
|
|
15
16
|
ViewQueryPlanningFailureCodeSchema,
|
|
17
|
+
ViewRerankFailureCodeSchema,
|
|
16
18
|
} from './api-schemas/view-execution.js';
|
|
17
19
|
import type {
|
|
20
|
+
AgenticViewRerankConfigurationSchema,
|
|
18
21
|
AgenticViewSearchConfigurationSchema,
|
|
19
22
|
CreateViewExperienceRequestSchema,
|
|
20
23
|
UpdateViewExperienceRequestSchema,
|
|
24
|
+
ViewActionConfigurationSchema,
|
|
25
|
+
ViewActionPlacementSchema,
|
|
26
|
+
ViewActionSelectionRequirementSchema,
|
|
27
|
+
ViewActionsConfigurationSchema,
|
|
28
|
+
ViewAgenticExecutionConfigurationSchema,
|
|
21
29
|
ViewBoardCardConfigurationSchema,
|
|
22
30
|
ViewBoardColumnSchema,
|
|
23
31
|
ViewBoardDisplaySchema,
|
|
24
32
|
ViewCardsDisplaySchema,
|
|
25
33
|
ViewCollectionNavigationSchema,
|
|
26
34
|
ViewDisplayConfigurationSchema,
|
|
35
|
+
ViewDropConfigurationSchema,
|
|
27
36
|
ViewElasticsearchQuerySchema,
|
|
28
37
|
ViewExperienceLayoutSchema,
|
|
29
38
|
ViewExperienceListQuerySchema,
|
|
@@ -45,18 +54,21 @@ import type {
|
|
|
45
54
|
ViewSearchConfigurationSchema,
|
|
46
55
|
ViewSearchFieldDefinitionSchema,
|
|
47
56
|
ViewSearchFieldTypeSchema,
|
|
57
|
+
ViewSelectionConfigurationSchema,
|
|
58
|
+
ViewSelectionModeSchema,
|
|
48
59
|
ViewSortClauseSchema,
|
|
49
60
|
ViewSortOptionSchema,
|
|
50
61
|
ViewTableColumnSchema,
|
|
51
62
|
ViewTableDisplaySchema,
|
|
52
63
|
ViewTermsNavigationSchema,
|
|
64
|
+
ViewUploadDropParametersSchema,
|
|
53
65
|
} from './api-schemas/views.js';
|
|
54
66
|
|
|
55
67
|
export const VIEW_EXPERIENCE_SCHEMA_VERSION = 1 as const;
|
|
56
68
|
|
|
57
69
|
export type ViewExperienceSchemaVersion = typeof VIEW_EXPERIENCE_SCHEMA_VERSION;
|
|
58
70
|
|
|
59
|
-
/** Build the generic reusable client route for a persisted or app-contributed View. */
|
|
71
|
+
/** Build the generic reusable client route for a persisted, system, or app-contributed View. */
|
|
60
72
|
export function viewExperienceRoute(id: string): string {
|
|
61
73
|
return `/view/${encodeURIComponent(id)}`;
|
|
62
74
|
}
|
|
@@ -68,15 +80,6 @@ export type ViewExperienceLayout = z.infer<typeof ViewExperienceLayoutSchema>;
|
|
|
68
80
|
|
|
69
81
|
export type ViewExperienceScope = z.infer<typeof ViewExperienceScopeSchema>;
|
|
70
82
|
|
|
71
|
-
export interface ViewNavigationBase {
|
|
72
|
-
id: string;
|
|
73
|
-
label: string;
|
|
74
|
-
presentation?: 'tree' | 'list' | 'select' | 'chips';
|
|
75
|
-
multi_select?: boolean;
|
|
76
|
-
order?: number;
|
|
77
|
-
renderer?: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
83
|
export type ViewLocationNavigation = z.infer<typeof ViewLocationNavigationSchema>;
|
|
81
84
|
|
|
82
85
|
export type ViewCollectionNavigation = z.infer<typeof ViewCollectionNavigationSchema>;
|
|
@@ -115,6 +118,14 @@ export type ViewSearchFieldType = z.infer<typeof ViewSearchFieldTypeSchema>;
|
|
|
115
118
|
*/
|
|
116
119
|
export type ViewSearchFieldDefinition = z.infer<typeof ViewSearchFieldDefinitionSchema>;
|
|
117
120
|
|
|
121
|
+
export const VIEW_AGENTIC_SEARCH_MODES = ['query', 'query_and_view'] as const;
|
|
122
|
+
|
|
123
|
+
export type ViewAgenticSearchMode = (typeof VIEW_AGENTIC_SEARCH_MODES)[number];
|
|
124
|
+
|
|
125
|
+
export type AgenticViewRerankConfiguration = z.infer<typeof AgenticViewRerankConfigurationSchema>;
|
|
126
|
+
|
|
127
|
+
export type ViewAgenticExecutionConfiguration = z.infer<typeof ViewAgenticExecutionConfigurationSchema>;
|
|
128
|
+
|
|
118
129
|
export type AgenticViewSearchConfiguration = z.infer<typeof AgenticViewSearchConfigurationSchema>;
|
|
119
130
|
|
|
120
131
|
export type ViewSearchConfiguration = z.infer<typeof ViewSearchConfigurationSchema>;
|
|
@@ -139,13 +150,6 @@ export type ViewResultField = z.infer<typeof ViewResultFieldSchema>;
|
|
|
139
150
|
|
|
140
151
|
export type ViewResultMedia = z.infer<typeof ViewResultMediaSchema>;
|
|
141
152
|
|
|
142
|
-
export interface ViewDisplayBase {
|
|
143
|
-
id: string;
|
|
144
|
-
label: string;
|
|
145
|
-
renderer?: string;
|
|
146
|
-
page_size?: number;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
153
|
export type ViewListDisplay = z.infer<typeof ViewListDisplaySchema>;
|
|
150
154
|
|
|
151
155
|
export type ViewTableColumn = z.infer<typeof ViewTableColumnSchema>;
|
|
@@ -166,6 +170,28 @@ export type ViewDisplayConfiguration = z.infer<typeof ViewDisplayConfigurationSc
|
|
|
166
170
|
|
|
167
171
|
export type ViewResultsConfiguration = z.infer<typeof ViewResultsConfigurationSchema>;
|
|
168
172
|
|
|
173
|
+
export const VIEW_SELECTION_MODES = ['single', 'multiple'] as const;
|
|
174
|
+
|
|
175
|
+
export type ViewSelectionMode = z.infer<typeof ViewSelectionModeSchema>;
|
|
176
|
+
|
|
177
|
+
export type ViewSelectionConfiguration = z.infer<typeof ViewSelectionConfigurationSchema>;
|
|
178
|
+
|
|
179
|
+
export const VIEW_ACTION_PLACEMENTS = ['toolbar', 'row', 'selection'] as const;
|
|
180
|
+
|
|
181
|
+
export type ViewActionPlacement = z.infer<typeof ViewActionPlacementSchema>;
|
|
182
|
+
|
|
183
|
+
export const VIEW_ACTION_SELECTION_REQUIREMENTS = ['none', 'single', 'multiple', 'any'] as const;
|
|
184
|
+
|
|
185
|
+
export type ViewActionSelectionRequirement = z.infer<typeof ViewActionSelectionRequirementSchema>;
|
|
186
|
+
|
|
187
|
+
export type ViewActionConfiguration = z.infer<typeof ViewActionConfigurationSchema>;
|
|
188
|
+
|
|
189
|
+
export type ViewActionsConfiguration = z.infer<typeof ViewActionsConfigurationSchema>;
|
|
190
|
+
|
|
191
|
+
export type ViewUploadDropParameters = z.infer<typeof ViewUploadDropParametersSchema>;
|
|
192
|
+
|
|
193
|
+
export type ViewDropConfiguration = z.infer<typeof ViewDropConfigurationSchema>;
|
|
194
|
+
|
|
169
195
|
export type ViewExperienceConfiguration = z.infer<typeof ViewExperienceConfigurationSchema>;
|
|
170
196
|
|
|
171
197
|
/**
|
|
@@ -178,35 +204,6 @@ export interface PersistedViewExperienceConfiguration extends Omit<ViewExperienc
|
|
|
178
204
|
description: string;
|
|
179
205
|
}
|
|
180
206
|
|
|
181
|
-
/**
|
|
182
|
-
* Project a persisted or extended View value back to its reusable configuration
|
|
183
|
-
* fields. Callers that require a persisted configuration must validate the
|
|
184
|
-
* result at their API or persistence boundary because legacy records may not
|
|
185
|
-
* satisfy newer persisted-only requirements.
|
|
186
|
-
*/
|
|
187
|
-
export function getViewExperienceConfiguration(value: ViewExperienceConfiguration): ViewExperienceConfiguration {
|
|
188
|
-
return {
|
|
189
|
-
name: value.name,
|
|
190
|
-
...(value.description === undefined ? {} : { description: value.description }),
|
|
191
|
-
...(value.enabled === undefined ? {} : { enabled: value.enabled }),
|
|
192
|
-
...(value.layout === undefined ? {} : { layout: value.layout }),
|
|
193
|
-
...(value.scope === undefined ? {} : { scope: value.scope }),
|
|
194
|
-
...(value.navigation === undefined ? {} : { navigation: value.navigation }),
|
|
195
|
-
...(value.search === undefined ? {} : { search: value.search }),
|
|
196
|
-
...(value.results === undefined ? {} : { results: value.results }),
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/** Project a type-valid persisted View while preserving its required documentation field. */
|
|
201
|
-
export function getPersistedViewExperienceConfiguration(
|
|
202
|
-
value: PersistedViewExperienceConfiguration,
|
|
203
|
-
): PersistedViewExperienceConfiguration {
|
|
204
|
-
return {
|
|
205
|
-
...getViewExperienceConfiguration(value),
|
|
206
|
-
description: value.description,
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
|
|
210
207
|
/** A View definition contributed by application code through the app package endpoint. */
|
|
211
208
|
export type InCodeViewDefinition = z.infer<typeof InCodeViewDefinitionSchema>;
|
|
212
209
|
|
|
@@ -229,6 +226,10 @@ export type ViewQueryPlanningFailureCode = z.infer<typeof ViewQueryPlanningFailu
|
|
|
229
226
|
|
|
230
227
|
export type ViewExecutionQueryPlan = z.infer<typeof ViewExecutionQueryPlanSchema>;
|
|
231
228
|
|
|
229
|
+
export type ViewRerankFailureCode = z.infer<typeof ViewRerankFailureCodeSchema>;
|
|
230
|
+
|
|
231
|
+
export type ViewExecutionRerankResult = z.infer<typeof ViewExecutionRerankResultSchema>;
|
|
232
|
+
|
|
232
233
|
export type ViewHitAnnotation = z.infer<typeof ViewHitAnnotationSchema>;
|
|
233
234
|
|
|
234
235
|
export type ViewHit = z.infer<typeof ViewHitSchema>;
|
|
@@ -247,7 +248,9 @@ export interface ViewNavigationResult {
|
|
|
247
248
|
id: string;
|
|
248
249
|
selected: string[];
|
|
249
250
|
nodes: ViewNavigationNode[];
|
|
250
|
-
/**
|
|
251
|
+
/** Applied server-side node filter, when the navigation source supports it. */
|
|
252
|
+
query?: string;
|
|
253
|
+
/** Selected drill-down path from its root through the current value. */
|
|
251
254
|
breadcrumbs?: ViewNavigationNode[];
|
|
252
255
|
truncated?: boolean;
|
|
253
256
|
}
|
|
@@ -55,7 +55,7 @@ export enum TelemetryToolType {
|
|
|
55
55
|
/**
|
|
56
56
|
* Base interface for all telemetry events
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
interface BaseAgentEvent {
|
|
59
59
|
/** Type of the event */
|
|
60
60
|
eventType: AgentEventType;
|
|
61
61
|
/** ISO 8601 timestamp */
|
|
@@ -210,24 +210,6 @@ export interface ToolCallEvent extends BaseAgentEvent {
|
|
|
210
210
|
spawnedChildWorkflow?: boolean;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
// ============================================================================
|
|
214
|
-
// Checkpoint Events
|
|
215
|
-
// ============================================================================
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Emitted when a checkpoint is created.
|
|
219
|
-
* Extends LlmCallEvent since checkpoint creation involves an LLM call.
|
|
220
|
-
*/
|
|
221
|
-
export interface CheckpointCreatedEvent extends LlmCallEvent {
|
|
222
|
-
callType: LlmCallType.Checkpoint;
|
|
223
|
-
/** Token count that triggered the checkpoint (before this LLM call) */
|
|
224
|
-
tokenCountAtCheckpoint: number;
|
|
225
|
-
/** Checkpoint threshold configured */
|
|
226
|
-
checkpointThreshold: number;
|
|
227
|
-
/** Current iteration number */
|
|
228
|
-
iteration: number;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
213
|
// ============================================================================
|
|
232
214
|
// Nested Interaction Execution Events
|
|
233
215
|
// ============================================================================
|
|
@@ -309,7 +291,7 @@ export interface WorkflowAnalyticsFilter {
|
|
|
309
291
|
/**
|
|
310
292
|
* Base query parameters for all workflow analytics endpoints
|
|
311
293
|
*/
|
|
312
|
-
|
|
294
|
+
interface WorkflowAnalyticsQueryBase {
|
|
313
295
|
/** Start time (ISO 8601 or Unix timestamp) */
|
|
314
296
|
from?: string | number;
|
|
315
297
|
/** End time (ISO 8601 or Unix timestamp) */
|
|
@@ -545,7 +527,7 @@ export interface ToolUsageMetrics {
|
|
|
545
527
|
/**
|
|
546
528
|
* Parameter value distribution for a tool
|
|
547
529
|
*/
|
|
548
|
-
|
|
530
|
+
interface ToolParameterValue {
|
|
549
531
|
/** Parameter name */
|
|
550
532
|
parameterName: string;
|
|
551
533
|
/** Parameter value (stringified) */
|
|
@@ -689,7 +671,7 @@ export interface WorkflowAnalyticsSummaryResponse {
|
|
|
689
671
|
/**
|
|
690
672
|
* Agent/interaction reference with id and display name
|
|
691
673
|
*/
|
|
692
|
-
|
|
674
|
+
interface AgentFilterOption {
|
|
693
675
|
/** The agent/interaction ID (used for filtering) */
|
|
694
676
|
id: string;
|
|
695
677
|
/** The display name (resolved from interaction) */
|
|
@@ -700,20 +682,10 @@ export interface AgentFilterOption {
|
|
|
700
682
|
version?: number;
|
|
701
683
|
}
|
|
702
684
|
|
|
703
|
-
/**
|
|
704
|
-
* Environment reference with id and display name
|
|
705
|
-
*/
|
|
706
|
-
export interface EnvironmentFilterOption {
|
|
707
|
-
/** The environment ID (used for filtering) */
|
|
708
|
-
id: string;
|
|
709
|
-
/** The display name (resolved from environment) */
|
|
710
|
-
name: string;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
685
|
/**
|
|
714
686
|
* Environment-model pair from telemetry data
|
|
715
687
|
*/
|
|
716
|
-
|
|
688
|
+
interface EnvironmentModelPair {
|
|
717
689
|
/** Environment ID */
|
|
718
690
|
environmentId: string;
|
|
719
691
|
/** Environment display name */
|
|
@@ -727,7 +699,7 @@ export interface EnvironmentModelPair {
|
|
|
727
699
|
/**
|
|
728
700
|
* Principal (user/API key) filter option
|
|
729
701
|
*/
|
|
730
|
-
|
|
702
|
+
interface PrincipalFilterOption {
|
|
731
703
|
/** The principal ID (user ID or API key ID) */
|
|
732
704
|
id: string;
|
|
733
705
|
/** The principal type (user, apikey, service_account, agent) */
|
|
@@ -755,7 +727,7 @@ export interface WorkflowAnalyticsFilterOptionsResponse {
|
|
|
755
727
|
/**
|
|
756
728
|
* Summary of prompt size metrics across all agents
|
|
757
729
|
*/
|
|
758
|
-
|
|
730
|
+
interface PromptSizeSummary {
|
|
759
731
|
/** Average prompt/input tokens for start calls across all agents */
|
|
760
732
|
avgPromptTokens: number;
|
|
761
733
|
/** 95th percentile of prompt/input tokens */
|
|
@@ -767,7 +739,7 @@ export interface PromptSizeSummary {
|
|
|
767
739
|
/**
|
|
768
740
|
* Prompt size metrics for a single agent
|
|
769
741
|
*/
|
|
770
|
-
|
|
742
|
+
interface PromptSizeByAgent {
|
|
771
743
|
/** Agent ID (to be resolved to name by the API) */
|
|
772
744
|
agentId: string;
|
|
773
745
|
/** Agent display name (resolved from interaction) */
|
|
@@ -795,7 +767,7 @@ export interface PromptSizeAnalyticsResponse {
|
|
|
795
767
|
/**
|
|
796
768
|
* Top principal (user/API key/service account) metrics
|
|
797
769
|
*/
|
|
798
|
-
|
|
770
|
+
interface TopPrincipal {
|
|
799
771
|
/** Principal ID (user ID, API key ID, etc.) */
|
|
800
772
|
principalId: string;
|
|
801
773
|
/** Principal type (user, apikey, service_account, agent) */
|
|
@@ -823,7 +795,7 @@ export interface TopPrincipalsAnalyticsResponse {
|
|
|
823
795
|
/**
|
|
824
796
|
* Agent run distribution metrics
|
|
825
797
|
*/
|
|
826
|
-
|
|
798
|
+
interface AgentRunDistribution {
|
|
827
799
|
/** Agent/interaction ID */
|
|
828
800
|
agentId: string;
|
|
829
801
|
/** Agent display name (resolved from interaction) */
|
|
@@ -872,7 +844,7 @@ export interface TimeToFirstResponseMetrics {
|
|
|
872
844
|
/**
|
|
873
845
|
* Time to first response time series data point
|
|
874
846
|
*/
|
|
875
|
-
|
|
847
|
+
interface TimeToFirstResponseTimeSeriesPoint {
|
|
876
848
|
/** Timestamp bucket start (ISO 8601) */
|
|
877
849
|
timestamp: string;
|
|
878
850
|
/** Timestamp bucket end (ISO 8601) */
|
|
@@ -921,7 +893,7 @@ export interface FirstResponseBehaviorMetrics {
|
|
|
921
893
|
/**
|
|
922
894
|
* First response behavior time series data point
|
|
923
895
|
*/
|
|
924
|
-
|
|
896
|
+
interface FirstResponseBehaviorTimeSeriesPoint {
|
|
925
897
|
/** Timestamp bucket start (ISO 8601) */
|
|
926
898
|
timestamp: string;
|
|
927
899
|
/** Timestamp bucket end (ISO 8601) */
|
package/tsconfig.dist.json
CHANGED
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
"outDir": "./lib"
|
|
12
12
|
},
|
|
13
13
|
"include": [
|
|
14
|
-
"src"
|
|
14
|
+
"src",
|
|
15
|
+
// tsc's default `include` globs only match .ts — the generated components artifact
|
|
16
|
+
// is imported by `src/api-contract/index.ts` and must be listed explicitly.
|
|
17
|
+
"src/api-contract/components.generated.json"
|
|
15
18
|
],
|
|
16
19
|
"exclude": [
|
|
17
20
|
"**/*.test.*",
|
package/lib/Progress.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
declare class ProgressSpan {
|
|
2
|
-
parent: Progress;
|
|
3
|
-
parentUnits: number;
|
|
4
|
-
spanUnits: number;
|
|
5
|
-
unitsDone: number;
|
|
6
|
-
constructor(parent: Progress, parentUnits: number, spanUnits: number);
|
|
7
|
-
done(units?: number): void;
|
|
8
|
-
get parentUnitsDone(): number;
|
|
9
|
-
get isDone(): boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare class Progress {
|
|
12
|
-
total: number;
|
|
13
|
-
unitsDone: number;
|
|
14
|
-
constructor(total: number);
|
|
15
|
-
get fraction(): number;
|
|
16
|
-
get percent(): number;
|
|
17
|
-
get isDone(): boolean;
|
|
18
|
-
done(units?: number): void;
|
|
19
|
-
span(units: number, spanUnits?: number): ProgressSpan;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=Progress.d.ts.map
|
package/lib/Progress.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../src/Progress.ts"],"names":[],"mappings":"AAAA,cAAM,YAAY;IAGH,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,MAAM;IACnB,SAAS,EAAE,MAAM;IAJ5B,SAAS,EAAE,MAAM,CAAC;IAClB,YACW,MAAM,EAAE,QAAQ,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EAG3B;IAED,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,QAQlB;IAED,IAAI,eAAe,WAElB;IAED,IAAI,MAAM,YAET;CACJ;AAED,qBAAa,QAAQ;IAGE,KAAK,EAAE,MAAM;IAFhC,SAAS,EAAE,MAAM,CAAK;IAEtB,YAAmB,KAAK,EAAE,MAAM,EAAI;IAEpC,IAAI,QAAQ,WAEX;IAED,IAAI,OAAO,WAEV;IAED,IAAI,MAAM,YAET;IAED,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,QAOlB;IAED,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,CAEpD;CACJ"}
|
package/lib/Progress.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
class ProgressSpan {
|
|
2
|
-
parent;
|
|
3
|
-
parentUnits;
|
|
4
|
-
spanUnits;
|
|
5
|
-
unitsDone;
|
|
6
|
-
constructor(parent, parentUnits, spanUnits) {
|
|
7
|
-
this.parent = parent;
|
|
8
|
-
this.parentUnits = parentUnits;
|
|
9
|
-
this.spanUnits = spanUnits;
|
|
10
|
-
this.unitsDone = 0;
|
|
11
|
-
}
|
|
12
|
-
done(units) {
|
|
13
|
-
const remaining = this.spanUnits - this.unitsDone;
|
|
14
|
-
if (!remaining)
|
|
15
|
-
return; // ignore if already done
|
|
16
|
-
if (!units || units > remaining) {
|
|
17
|
-
units = remaining;
|
|
18
|
-
}
|
|
19
|
-
this.unitsDone += units;
|
|
20
|
-
this.parent.done((units * this.parentUnits) / this.spanUnits);
|
|
21
|
-
}
|
|
22
|
-
get parentUnitsDone() {
|
|
23
|
-
return Math.round((this.unitsDone * this.parentUnits) / this.spanUnits);
|
|
24
|
-
}
|
|
25
|
-
get isDone() {
|
|
26
|
-
return this.unitsDone >= this.spanUnits;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export class Progress {
|
|
30
|
-
total;
|
|
31
|
-
unitsDone = 0;
|
|
32
|
-
constructor(total) {
|
|
33
|
-
this.total = total;
|
|
34
|
-
}
|
|
35
|
-
get fraction() {
|
|
36
|
-
return this.unitsDone / this.total;
|
|
37
|
-
}
|
|
38
|
-
get percent() {
|
|
39
|
-
return Math.round(this.fraction * 100);
|
|
40
|
-
}
|
|
41
|
-
get isDone() {
|
|
42
|
-
return this.unitsDone >= this.total;
|
|
43
|
-
}
|
|
44
|
-
done(units) {
|
|
45
|
-
const remaining = this.total - this.unitsDone;
|
|
46
|
-
if (!remaining)
|
|
47
|
-
return; // ignore if already done
|
|
48
|
-
if (!units || units > remaining) {
|
|
49
|
-
units = remaining;
|
|
50
|
-
}
|
|
51
|
-
this.unitsDone += units;
|
|
52
|
-
}
|
|
53
|
-
span(units, spanUnits) {
|
|
54
|
-
return new ProgressSpan(this, units, spanUnits || units);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=Progress.js.map
|
package/lib/Progress.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.js","sourceRoot":"","sources":["../src/Progress.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY;IAGH,MAAM;IACN,WAAW;IACX,SAAS;IAJpB,SAAS,CAAS;IAClB,YACW,MAAgB,EAChB,WAAmB,EACnB,SAAiB;sBAFjB,MAAM;2BACN,WAAW;yBACX,SAAS;QAEhB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACvB,CAAC;IAED,IAAI,CAAC,KAAc;QACf,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAClD,IAAI,CAAC,SAAS;YAAE,OAAO,CAAC,yBAAyB;QACjD,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,SAAS,EAAE,CAAC;YAC9B,KAAK,GAAG,SAAS,CAAC;QACtB,CAAC;QACD,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAClE,CAAC;IAED,IAAI,eAAe;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAC5E,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC;IAC5C,CAAC;CACJ;AAED,MAAM,OAAO,QAAQ;IAGE,KAAK;IAFxB,SAAS,GAAW,CAAC,CAAC;IAEtB,YAAmB,KAAa;qBAAb,KAAK;IAAW,CAAC;IAEpC,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;IACvC,CAAC;IAED,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC;IACxC,CAAC;IAED,IAAI,CAAC,KAAc;QACf,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;QAC9C,IAAI,CAAC,SAAS;YAAE,OAAO,CAAC,yBAAyB;QACjD,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,SAAS,EAAE,CAAC;YAC9B,KAAK,GAAG,SAAS,CAAC;QACtB,CAAC;QACD,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;IAC5B,CAAC;IAED,IAAI,CAAC,KAAa,EAAE,SAAkB;QAClC,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,IAAI,KAAK,CAAC,CAAC;IAC7D,CAAC;CACJ"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function renderAgentRequestTemplate(template: string, data: unknown): string;
|
|
2
|
-
export declare function renderAgentRequestFallback(data: unknown): string;
|
|
3
|
-
export declare function renderAgentRequestMessage(template: string | undefined, data: unknown): string;
|
|
4
|
-
//# sourceMappingURL=agent-request-template.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-request-template.d.ts","sourceRoot":"","sources":["../src/agent-request-template.ts"],"names":[],"mappings":"AA0BA,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAIlF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAIhE;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAM7F"}
|