@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/store/collections.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
CollectionSchema,
|
|
10
10
|
CollectionSecuritySettingsResponseSchema,
|
|
11
11
|
CreateCollectionPayloadSchema,
|
|
12
|
+
UpdateCollectionPayloadSchema,
|
|
12
13
|
} from '../api-schemas/content.js';
|
|
13
14
|
import type { BaseObject } from './common.js';
|
|
14
15
|
import type { ColumnLayout, ContentObjectTypeRef } from './store.js';
|
|
@@ -54,12 +55,6 @@ export interface CollectionItem extends BaseObject {
|
|
|
54
55
|
|
|
55
56
|
export type Collection = z.infer<typeof CollectionSchema>;
|
|
56
57
|
|
|
57
|
-
export interface StaticCollection extends Collection {
|
|
58
|
-
dynamic: false;
|
|
59
|
-
members: string[];
|
|
60
|
-
query: never;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
58
|
export interface DynamicCollection extends Collection {
|
|
64
59
|
dynamic: true;
|
|
65
60
|
}
|
|
@@ -88,3 +83,5 @@ export type CollectionMembersUpdatePayload = z.infer<typeof CollectionMembersUpd
|
|
|
88
83
|
export type CollectionChildrenUpdatePayload = z.infer<typeof CollectionChildrenUpdatePayloadSchema>;
|
|
89
84
|
|
|
90
85
|
export type CollectionMembersQuery = z.infer<typeof CollectionMembersQuerySchema>;
|
|
86
|
+
|
|
87
|
+
export type UpdateCollectionPayload = z.infer<typeof UpdateCollectionPayloadSchema>;
|
|
@@ -30,10 +30,6 @@ export type ExternalizedToolInputRef = z.infer<typeof ExternalizedToolInputRefSc
|
|
|
30
30
|
|
|
31
31
|
export type ExternalizedToolInputRefs = z.infer<typeof ExternalizedToolInputRefsSchema>;
|
|
32
32
|
|
|
33
|
-
export function toolInputRefsArtifactPath(storageId: string): string {
|
|
34
|
-
return `agents/${storageId}/tool-input-refs.json`;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
33
|
/**
|
|
38
34
|
* Conversation state passed between workflow activities: the activity-safe,
|
|
39
35
|
* per-turn dynamic subset of a multi-turn agent conversation. Rides every
|
|
@@ -122,6 +118,15 @@ export interface ConversationState {
|
|
|
122
118
|
/** Reference to tools stored in GCP instead of embedding full tool definitions */
|
|
123
119
|
tool_reference?: ToolReference;
|
|
124
120
|
|
|
121
|
+
/**
|
|
122
|
+
* Explicit artifact-storage scope that owns `tool_reference`.
|
|
123
|
+
*
|
|
124
|
+
* Normally the catalog and conversation artifacts share a scope. Process tool nodes are the
|
|
125
|
+
* exception: their catalog is persisted once at process-run scope while each node keeps its own
|
|
126
|
+
* launch-scoped artifacts. Consumers resolving `tool_reference` must prefer this value when set.
|
|
127
|
+
*/
|
|
128
|
+
tool_catalog_storage_id?: string;
|
|
129
|
+
|
|
125
130
|
/** Names of currently active tools (base + unlocked). Tool definitions loaded from tool_reference. */
|
|
126
131
|
active_tool_names?: string[];
|
|
127
132
|
|
|
@@ -198,8 +203,9 @@ export interface ConversationState {
|
|
|
198
203
|
* instead of re-dumping the instructions.
|
|
199
204
|
*
|
|
200
205
|
* Unlike `unlocked_tools` (which must survive a checkpoint so tools stay unlocked),
|
|
201
|
-
* this list
|
|
202
|
-
*
|
|
206
|
+
* this list tracks only instructions present in the current compacted conversation.
|
|
207
|
+
* Checkpoints restore active builtin skill bodies and preserve their names; skills
|
|
208
|
+
* that cannot be restored are removed so the next call can re-deliver them.
|
|
203
209
|
*/
|
|
204
210
|
skill_instructions_delivered?: string[];
|
|
205
211
|
|
|
@@ -304,25 +310,6 @@ export interface AvailableSkill {
|
|
|
304
310
|
src?: string;
|
|
305
311
|
}
|
|
306
312
|
|
|
307
|
-
/**
|
|
308
|
-
* Compute the storage ID for a conversation's artifacts.
|
|
309
|
-
* - Root workflows: `{agent_run_id}` (or fallbackRunId if no agent_run_id)
|
|
310
|
-
* - Workstreams: `{agent_run_id}/workstreams/{launch_id}`
|
|
311
|
-
*
|
|
312
|
-
* Both studio-server and workflow activities must use the same logic so
|
|
313
|
-
* parent and child conversations don't overwrite each other.
|
|
314
|
-
*/
|
|
315
|
-
export function getConversationStorageId(
|
|
316
|
-
state: Pick<ConversationState, 'agent_run_id' | 'launch_id'> | undefined,
|
|
317
|
-
fallbackRunId: string,
|
|
318
|
-
): string {
|
|
319
|
-
const baseId = state?.agent_run_id || fallbackRunId;
|
|
320
|
-
if (state?.launch_id && state?.agent_run_id) {
|
|
321
|
-
return `${baseId}/workstreams/${state.launch_id}`;
|
|
322
|
-
}
|
|
323
|
-
return baseId;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
313
|
/** Skill metadata tracked when a skill is used */
|
|
327
314
|
export type UsedSkill = z.infer<typeof UsedSkillSchema>;
|
|
328
315
|
|
|
@@ -65,30 +65,6 @@ export interface AdaptTablesParams {
|
|
|
65
65
|
*/
|
|
66
66
|
process_as_csv?: boolean;
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
interface DocAnalyzerRequestBase {
|
|
70
|
-
synchronous?: boolean;
|
|
71
|
-
|
|
72
|
-
notify_endpoints?: string[];
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* What environment to use to run the request
|
|
76
|
-
* If none specified the project embedded environment will be used
|
|
77
|
-
*/
|
|
78
|
-
environment?: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface AdaptTablesRequest extends DocAnalyzerRequestBase, AdaptTablesParams {}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Get Adapted Tables Request
|
|
85
|
-
* @param raw If true, the raw data will be returned
|
|
86
|
-
* @param format The format to return the data in (csv, json)
|
|
87
|
-
*/
|
|
88
|
-
export interface GetAdaptedTablesRequestQuery {
|
|
89
|
-
raw?: boolean;
|
|
90
|
-
format: 'csv' | 'json';
|
|
91
|
-
}
|
|
92
68
|
/**
|
|
93
69
|
* The adapted table result format
|
|
94
70
|
*/
|
|
@@ -96,5 +72,3 @@ export interface AdaptedTable {
|
|
|
96
72
|
comment?: string;
|
|
97
73
|
data: Record<string, unknown>[];
|
|
98
74
|
}
|
|
99
|
-
|
|
100
|
-
export type AdaptedTableResponse = Record<string, AdaptedTable>;
|
|
@@ -15,7 +15,13 @@ import type {
|
|
|
15
15
|
import type { ToolExecutionMetadata } from '../tool-execution.js';
|
|
16
16
|
import type { BaseObject } from './common.js';
|
|
17
17
|
import type { WorkflowExecutionPayload } from './index.js';
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Copied from temporalio: the child-workflow parent-close policy, as authored in a DSL workflow
|
|
21
|
+
* step. Declared here rather than in `./temporalio.js` because that module is Vertesia-internal
|
|
22
|
+
* while this union is part of the public DSL that clients write.
|
|
23
|
+
*/
|
|
24
|
+
export type ParentClosePolicyType = 'TERMINATE' | 'ABANDON' | 'REQUEST_CANCEL' | undefined;
|
|
19
25
|
|
|
20
26
|
export type DurationValue = z.infer<typeof DurationValueSchema>;
|
|
21
27
|
|
|
@@ -65,7 +71,7 @@ export interface DSLActivityExecutionPayload<ParamsT extends object> extends Wor
|
|
|
65
71
|
export type ImportSpec = (string | Record<string, string>)[];
|
|
66
72
|
export type ActivityFetchSpec = z.infer<typeof ActivityFetchSpecSchema>;
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
interface DSLWorkflowStepBase {
|
|
69
75
|
/**
|
|
70
76
|
* The type fo the step.
|
|
71
77
|
* If not set defaults to "activity"
|
|
@@ -99,6 +105,10 @@ export interface DSLChildWorkflowStep extends DSLWorkflowStepBase {
|
|
|
99
105
|
type: 'workflow';
|
|
100
106
|
// the workflow endpoint to run
|
|
101
107
|
name: string;
|
|
108
|
+
/** Title displayed for the child workflow in the workflow builder. */
|
|
109
|
+
title?: string;
|
|
110
|
+
/** Description displayed for the child workflow in the workflow builder. */
|
|
111
|
+
description?: string;
|
|
102
112
|
/**
|
|
103
113
|
* The parameters to pass to the child workflow.
|
|
104
114
|
* These parameters will be merged over the parent workflow vars and passed altogether to the child workflow.
|
|
@@ -148,7 +158,7 @@ export interface DSLChildWorkflowStep extends DSLWorkflowStepBase {
|
|
|
148
158
|
*/
|
|
149
159
|
export type DSLWorkflowStep = DSLActivityStep | DSLChildWorkflowStep;
|
|
150
160
|
|
|
151
|
-
|
|
161
|
+
interface DSLWorkflowSpecBase {
|
|
152
162
|
name: string;
|
|
153
163
|
description?: string;
|
|
154
164
|
tags?: string[];
|
|
@@ -208,7 +218,7 @@ export type DSLWorkflowSpec = DSLWorkflowSpecWithSteps | DSLWorkflowSpecWithActi
|
|
|
208
218
|
* against the stored value for optimistic concurrency. All server-assigned on the read side, hence
|
|
209
219
|
* optional here and absent from {@link DSLWorkflowSpec}.
|
|
210
220
|
*/
|
|
211
|
-
|
|
221
|
+
interface LegacyWorkflowDefinitionUpsertFields {
|
|
212
222
|
id?: string;
|
|
213
223
|
created_at?: string;
|
|
214
224
|
updated_at?: string;
|
|
@@ -218,9 +228,21 @@ export type WorkflowDefinitionPayloadWithSteps = DSLWorkflowSpecWithSteps & Lega
|
|
|
218
228
|
export type WorkflowDefinitionPayloadWithActivities = DSLWorkflowSpecWithActivities &
|
|
219
229
|
LegacyWorkflowDefinitionUpsertFields;
|
|
220
230
|
|
|
221
|
-
/** The request body of `POST /workflows/definitions
|
|
231
|
+
/** The request body of `POST /workflows/definitions`. */
|
|
222
232
|
export type WorkflowDefinitionPayload = WorkflowDefinitionPayloadWithSteps | WorkflowDefinitionPayloadWithActivities;
|
|
223
233
|
|
|
234
|
+
interface ExpectedEditRevision {
|
|
235
|
+
expected_edit_revision?: number;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type UpdateWorkflowDefinitionPayloadWithSteps = DSLWorkflowSpecWithSteps & ExpectedEditRevision;
|
|
239
|
+
export type UpdateWorkflowDefinitionPayloadWithActivities = DSLWorkflowSpecWithActivities & ExpectedEditRevision;
|
|
240
|
+
|
|
241
|
+
/** The guarded request body of `PUT /workflows/definitions/:id`. */
|
|
242
|
+
export type UpdateWorkflowDefinitionPayload =
|
|
243
|
+
| UpdateWorkflowDefinitionPayloadWithSteps
|
|
244
|
+
| UpdateWorkflowDefinitionPayloadWithActivities;
|
|
245
|
+
|
|
224
246
|
export function withDSLWorkflowSpecDiscriminator(spec: DSLWorkflowSpecBase): DSLWorkflowSpec {
|
|
225
247
|
if ('steps' in spec && spec.steps) {
|
|
226
248
|
return { ...spec, spec_format: 'steps' } as DSLWorkflowSpecWithSteps;
|
|
@@ -229,6 +251,7 @@ export function withDSLWorkflowSpecDiscriminator(spec: DSLWorkflowSpecBase): DSL
|
|
|
229
251
|
}
|
|
230
252
|
|
|
231
253
|
export interface DSLWorkflowDefinition extends BaseObject, DSLWorkflowSpecBase {
|
|
254
|
+
edit_revision: number;
|
|
232
255
|
// an optional JSON schema to describe the input vars of the workflow.
|
|
233
256
|
input_schema?: Record<string, unknown>;
|
|
234
257
|
activities?: DSLActivitySpec[];
|
|
@@ -6,7 +6,6 @@ import type {
|
|
|
6
6
|
GroundedExtractionVerdictSchema,
|
|
7
7
|
GroundedVerificationBreakdownSchema,
|
|
8
8
|
} from '../api-schemas/document-processing.js';
|
|
9
|
-
import type { WorkflowRunStatus } from './workflow.js';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Document-level trust verdict for a grounded extraction. `good_to_go` means the
|
|
@@ -16,14 +15,6 @@ import type { WorkflowRunStatus } from './workflow.js';
|
|
|
16
15
|
*/
|
|
17
16
|
export type GroundedExtractionVerdict = z.infer<typeof GroundedExtractionVerdictSchema>;
|
|
18
17
|
|
|
19
|
-
/**
|
|
20
|
-
* Canonical workflow id for object-scoped grounded extraction. Every entry point
|
|
21
|
-
* must use this id so Temporal prevents overlapping extraction runs per object.
|
|
22
|
-
*/
|
|
23
|
-
export function getGroundedExtractionWorkflowId(accountId: string, objectId: string): string {
|
|
24
|
-
return `${accountId.slice(0, 6)}:workflow_execution_request:${objectId}:grounded`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
18
|
/**
|
|
28
19
|
* Request body to start a grounded extraction on a content object. All fields are
|
|
29
20
|
* optional: with none set, the object's own content-type schema drives the
|
|
@@ -39,15 +30,6 @@ export type GroundedExtractionRequest = z.infer<typeof GroundedExtractionRequest
|
|
|
39
30
|
*/
|
|
40
31
|
export type GroundedAssistantResponse = z.infer<typeof GroundedAssistantResponseSchema>;
|
|
41
32
|
|
|
42
|
-
/**
|
|
43
|
-
* Status of a grounded extraction workflow. Carries the doc-level verdict once the
|
|
44
|
-
* run has completed and written its result.
|
|
45
|
-
*/
|
|
46
|
-
export interface GroundedExtractionRunStatusResponse extends WorkflowRunStatus {
|
|
47
|
-
/** The trust verdict, present once the run has completed. */
|
|
48
|
-
verdict?: GroundedExtractionVerdict;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
33
|
/**
|
|
52
34
|
* How each extracted value was verified. Two kinds, both trustworthy:
|
|
53
35
|
* digitally verified (matched the document's text — digital layer or OCR) and
|
package/src/store/index.ts
CHANGED
|
@@ -6,19 +6,13 @@ export * from './common.js';
|
|
|
6
6
|
export * from './conversation-state.js';
|
|
7
7
|
export * from './doc-analyzer.js';
|
|
8
8
|
export * from './dsl-workflow.js';
|
|
9
|
-
// The compiled JSON Schema for ContentTypeIntakePolicy, under the name consumers import.
|
|
10
9
|
export * from './editing-policy-schema.generated.js';
|
|
11
10
|
export * from './grounded-extraction.js';
|
|
12
|
-
export * from './hive-memory.js';
|
|
13
11
|
export * from './intake-policy-schema.generated.js';
|
|
14
|
-
export * from './object-types.js';
|
|
15
12
|
export * from './process.js';
|
|
16
|
-
export * from './process-schema.js';
|
|
17
|
-
export * from './process-validation.js';
|
|
18
13
|
export * from './rendering.js';
|
|
19
14
|
export * from './schedule.js';
|
|
20
15
|
export * from './signals.js';
|
|
21
16
|
export * from './store.js';
|
|
22
17
|
export * from './task.js';
|
|
23
|
-
export * from './temporalio.js';
|
|
24
18
|
export * from './workflow.js';
|