@vertesia/common 1.5.0-dev.20260722.120446Z → 1.5.0-dev.20260804.124748Z
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-values.d.ts +98 -0
- package/lib/access-control-values.d.ts.map +1 -0
- package/lib/access-control-values.js +101 -0
- package/lib/access-control-values.js.map +1 -0
- package/lib/access-control.d.ts +22 -119
- package/lib/access-control.d.ts.map +1 -1
- package/lib/access-control.js +6 -78
- package/lib/access-control.js.map +1 -1
- package/lib/account-values.d.ts +53 -0
- package/lib/account-values.d.ts.map +1 -0
- package/lib/account-values.js +91 -0
- package/lib/account-values.js.map +1 -0
- package/lib/analytics.d.ts +12 -38
- package/lib/analytics.d.ts.map +1 -1
- package/lib/api-schemas/access-control.d.ts +215 -0
- package/lib/api-schemas/access-control.d.ts.map +1 -0
- package/lib/api-schemas/access-control.js +165 -0
- package/lib/api-schemas/access-control.js.map +1 -0
- package/lib/api-schemas/account.d.ts +101 -0
- package/lib/api-schemas/account.d.ts.map +1 -0
- package/lib/api-schemas/account.js +136 -0
- package/lib/api-schemas/account.js.map +1 -0
- package/lib/api-schemas/adapter.d.ts +80 -0
- package/lib/api-schemas/adapter.d.ts.map +1 -0
- package/lib/api-schemas/adapter.js +726 -0
- package/lib/api-schemas/adapter.js.map +1 -0
- package/lib/api-schemas/agent-runs.d.ts +3781 -0
- package/lib/api-schemas/agent-runs.d.ts.map +1 -0
- package/lib/api-schemas/agent-runs.js +991 -0
- package/lib/api-schemas/agent-runs.js.map +1 -0
- package/lib/api-schemas/analytics.d.ts +86 -0
- package/lib/api-schemas/analytics.d.ts.map +1 -0
- package/lib/api-schemas/analytics.js +58 -0
- package/lib/api-schemas/analytics.js.map +1 -0
- package/lib/api-schemas/apikey.d.ts +231 -0
- package/lib/api-schemas/apikey.d.ts.map +1 -0
- package/lib/api-schemas/apikey.js +172 -0
- package/lib/api-schemas/apikey.js.map +1 -0
- package/lib/api-schemas/app-lifecycle.d.ts +1114 -0
- package/lib/api-schemas/app-lifecycle.d.ts.map +1 -0
- package/lib/api-schemas/app-lifecycle.js +750 -0
- package/lib/api-schemas/app-lifecycle.js.map +1 -0
- package/lib/api-schemas/app-runtime.d.ts +9056 -0
- package/lib/api-schemas/app-runtime.d.ts.map +1 -0
- package/lib/api-schemas/app-runtime.js +782 -0
- package/lib/api-schemas/app-runtime.js.map +1 -0
- package/lib/api-schemas/apps.d.ts +247 -0
- package/lib/api-schemas/apps.d.ts.map +1 -0
- package/lib/api-schemas/apps.js +366 -0
- package/lib/api-schemas/apps.js.map +1 -0
- package/lib/api-schemas/audit-trail.d.ts +465 -0
- package/lib/api-schemas/audit-trail.d.ts.map +1 -0
- package/lib/api-schemas/audit-trail.js +218 -0
- package/lib/api-schemas/audit-trail.js.map +1 -0
- package/lib/api-schemas/bulk-operation.d.ts +104 -0
- package/lib/api-schemas/bulk-operation.d.ts.map +1 -0
- package/lib/api-schemas/bulk-operation.js +66 -0
- package/lib/api-schemas/bulk-operation.js.map +1 -0
- package/lib/api-schemas/commands.d.ts +50 -0
- package/lib/api-schemas/commands.d.ts.map +1 -0
- package/lib/api-schemas/commands.js +58 -0
- package/lib/api-schemas/commands.js.map +1 -0
- package/lib/api-schemas/content.d.ts +3561 -0
- package/lib/api-schemas/content.d.ts.map +1 -0
- package/lib/api-schemas/content.js +842 -0
- package/lib/api-schemas/content.js.map +1 -0
- package/lib/api-schemas/cost-analytics.d.ts +300 -0
- package/lib/api-schemas/cost-analytics.d.ts.map +1 -0
- package/lib/api-schemas/cost-analytics.js +218 -0
- package/lib/api-schemas/cost-analytics.js.map +1 -0
- package/lib/api-schemas/dashboard.d.ts +408 -0
- package/lib/api-schemas/dashboard.d.ts.map +1 -0
- package/lib/api-schemas/dashboard.js +311 -0
- package/lib/api-schemas/dashboard.js.map +1 -0
- package/lib/api-schemas/data-store.d.ts +1650 -0
- package/lib/api-schemas/data-store.d.ts.map +1 -0
- package/lib/api-schemas/data-store.js +504 -0
- package/lib/api-schemas/data-store.js.map +1 -0
- package/lib/api-schemas/document-processing.d.ts +1501 -0
- package/lib/api-schemas/document-processing.d.ts.map +1 -0
- package/lib/api-schemas/document-processing.js +312 -0
- package/lib/api-schemas/document-processing.js.map +1 -0
- package/lib/api-schemas/embeddings.d.ts +184 -0
- package/lib/api-schemas/embeddings.d.ts.map +1 -0
- package/lib/api-schemas/embeddings.js +102 -0
- package/lib/api-schemas/embeddings.js.map +1 -0
- package/lib/api-schemas/environment.d.ts +412 -0
- package/lib/api-schemas/environment.d.ts.map +1 -0
- package/lib/api-schemas/environment.js +170 -0
- package/lib/api-schemas/environment.js.map +1 -0
- package/lib/api-schemas/events.d.ts +4880 -0
- package/lib/api-schemas/events.d.ts.map +1 -0
- package/lib/api-schemas/events.js +832 -0
- package/lib/api-schemas/events.js.map +1 -0
- package/lib/api-schemas/files.d.ts +107 -0
- package/lib/api-schemas/files.d.ts.map +1 -0
- package/lib/api-schemas/files.js +137 -0
- package/lib/api-schemas/files.js.map +1 -0
- package/lib/api-schemas/group.d.ts +122 -0
- package/lib/api-schemas/group.d.ts.map +1 -0
- package/lib/api-schemas/group.js +142 -0
- package/lib/api-schemas/group.js.map +1 -0
- package/lib/api-schemas/index.d.ts +36 -0
- package/lib/api-schemas/index.d.ts.map +1 -0
- package/lib/api-schemas/index.js +36 -0
- package/lib/api-schemas/index.js.map +1 -0
- package/lib/api-schemas/indexing.d.ts +144 -0
- package/lib/api-schemas/indexing.d.ts.map +1 -0
- package/lib/api-schemas/indexing.js +217 -0
- package/lib/api-schemas/indexing.js.map +1 -0
- package/lib/api-schemas/integrations.d.ts +269 -0
- package/lib/api-schemas/integrations.d.ts.map +1 -0
- package/lib/api-schemas/integrations.js +335 -0
- package/lib/api-schemas/integrations.js.map +1 -0
- package/lib/api-schemas/interaction.d.ts +22454 -0
- package/lib/api-schemas/interaction.d.ts.map +1 -0
- package/lib/api-schemas/interaction.js +2065 -0
- package/lib/api-schemas/interaction.js.map +1 -0
- package/lib/api-schemas/invites.d.ts +162 -0
- package/lib/api-schemas/invites.d.ts.map +1 -0
- package/lib/api-schemas/invites.js +106 -0
- package/lib/api-schemas/invites.js.map +1 -0
- package/lib/api-schemas/oauth-server.d.ts +415 -0
- package/lib/api-schemas/oauth-server.d.ts.map +1 -0
- package/lib/api-schemas/oauth-server.js +193 -0
- package/lib/api-schemas/oauth-server.js.map +1 -0
- package/lib/api-schemas/oauth.d.ts +150 -0
- package/lib/api-schemas/oauth.d.ts.map +1 -0
- package/lib/api-schemas/oauth.js +148 -0
- package/lib/api-schemas/oauth.js.map +1 -0
- package/lib/api-schemas/parameters.d.ts +64 -0
- package/lib/api-schemas/parameters.d.ts.map +1 -0
- package/lib/api-schemas/parameters.js +246 -0
- package/lib/api-schemas/parameters.js.map +1 -0
- package/lib/api-schemas/process.d.ts +499 -0
- package/lib/api-schemas/process.d.ts.map +1 -0
- package/lib/api-schemas/process.js +817 -0
- package/lib/api-schemas/process.js.map +1 -0
- package/lib/api-schemas/project-configuration.d.ts +4900 -0
- package/lib/api-schemas/project-configuration.d.ts.map +1 -0
- package/lib/api-schemas/project-configuration.js +425 -0
- package/lib/api-schemas/project-configuration.js.map +1 -0
- package/lib/api-schemas/project.d.ts +7247 -0
- package/lib/api-schemas/project.d.ts.map +1 -0
- package/lib/api-schemas/project.js +185 -0
- package/lib/api-schemas/project.js.map +1 -0
- package/lib/api-schemas/prompt.d.ts +70 -0
- package/lib/api-schemas/prompt.d.ts.map +1 -0
- package/lib/api-schemas/prompt.js +77 -0
- package/lib/api-schemas/prompt.js.map +1 -0
- package/lib/api-schemas/quota.d.ts +90 -0
- package/lib/api-schemas/quota.d.ts.map +1 -0
- package/lib/api-schemas/quota.js +95 -0
- package/lib/api-schemas/quota.js.map +1 -0
- package/lib/api-schemas/registry.d.ts +97458 -0
- package/lib/api-schemas/registry.d.ts.map +1 -0
- package/lib/api-schemas/registry.js +2586 -0
- package/lib/api-schemas/registry.js.map +1 -0
- package/lib/api-schemas/schema-primitives.d.ts +5 -0
- package/lib/api-schemas/schema-primitives.d.ts.map +1 -0
- package/lib/api-schemas/schema-primitives.js +11 -0
- package/lib/api-schemas/schema-primitives.js.map +1 -0
- package/lib/api-schemas/secrets.d.ts +497 -0
- package/lib/api-schemas/secrets.d.ts.map +1 -0
- package/lib/api-schemas/secrets.js +298 -0
- package/lib/api-schemas/secrets.js.map +1 -0
- package/lib/api-schemas/store.d.ts +22140 -0
- package/lib/api-schemas/store.d.ts.map +1 -0
- package/lib/api-schemas/store.js +557 -0
- package/lib/api-schemas/store.js.map +1 -0
- package/lib/api-schemas/sts.d.ts +156 -0
- package/lib/api-schemas/sts.d.ts.map +1 -0
- package/lib/api-schemas/sts.js +96 -0
- package/lib/api-schemas/sts.js.map +1 -0
- package/lib/api-schemas/task.d.ts +215 -0
- package/lib/api-schemas/task.d.ts.map +1 -0
- package/lib/api-schemas/task.js +95 -0
- package/lib/api-schemas/task.js.map +1 -0
- package/lib/api-schemas/tools.d.ts +111 -0
- package/lib/api-schemas/tools.d.ts.map +1 -0
- package/lib/api-schemas/tools.js +122 -0
- package/lib/api-schemas/tools.js.map +1 -0
- package/lib/api-schemas/user.d.ts +208 -0
- package/lib/api-schemas/user.d.ts.map +1 -0
- package/lib/api-schemas/user.js +180 -0
- package/lib/api-schemas/user.js.map +1 -0
- package/lib/api-schemas/view-execution.d.ts +3163 -0
- package/lib/api-schemas/view-execution.d.ts.map +1 -0
- package/lib/api-schemas/view-execution.js +172 -0
- package/lib/api-schemas/view-execution.js.map +1 -0
- package/lib/api-schemas/views.d.ts +5990 -0
- package/lib/api-schemas/views.d.ts.map +1 -0
- package/lib/api-schemas/views.js +396 -0
- package/lib/api-schemas/views.js.map +1 -0
- package/lib/api-schemas/workflow-runs.d.ts +2209 -0
- package/lib/api-schemas/workflow-runs.d.ts.map +1 -0
- package/lib/api-schemas/workflow-runs.js +589 -0
- package/lib/api-schemas/workflow-runs.js.map +1 -0
- package/lib/apikey-values.d.ts +10 -0
- package/lib/apikey-values.d.ts.map +1 -0
- package/lib/apikey-values.js +11 -0
- package/lib/apikey-values.js.map +1 -0
- package/lib/apikey.d.ts +37 -36
- package/lib/apikey.d.ts.map +1 -1
- package/lib/apikey.js +5 -4
- package/lib/apikey.js.map +1 -1
- package/lib/apps.d.ts +116 -1121
- package/lib/apps.d.ts.map +1 -1
- package/lib/apps.js.map +1 -1
- package/lib/ask-user.d.ts +8 -1
- package/lib/ask-user.d.ts.map +1 -1
- package/lib/audit-trail.d.ts +17 -128
- package/lib/audit-trail.d.ts.map +1 -1
- package/lib/audit-trail.js.map +1 -1
- package/lib/browser-credentials.d.ts +11 -106
- package/lib/browser-credentials.d.ts.map +1 -1
- package/lib/common.d.ts +59 -81
- package/lib/common.d.ts.map +1 -1
- package/lib/cost-analytics.d.ts +14 -167
- package/lib/cost-analytics.d.ts.map +1 -1
- package/lib/cost-analytics.js.map +1 -1
- package/lib/data-platform.d.ts +122 -786
- package/lib/data-platform.d.ts.map +1 -1
- package/lib/data-platform.js +41 -61
- package/lib/data-platform.js.map +1 -1
- package/lib/email.d.ts +5 -17
- package/lib/email.d.ts.map +1 -1
- package/lib/email.js +0 -3
- package/lib/email.js.map +1 -1
- package/lib/embeddings.d.ts +14 -56
- package/lib/embeddings.d.ts.map +1 -1
- package/lib/environment.d.ts +19 -113
- package/lib/environment.d.ts.map +1 -1
- package/lib/environment.js +3 -0
- package/lib/environment.js.map +1 -1
- package/lib/facets.d.ts +4 -7
- package/lib/facets.d.ts.map +1 -1
- package/lib/group.d.ts +33 -39
- package/lib/group.d.ts.map +1 -1
- package/lib/group.js +0 -1
- package/lib/group.js.map +1 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/integrations.d.ts +20 -108
- package/lib/integrations.d.ts.map +1 -1
- package/lib/integrations.js.map +1 -1
- package/lib/interaction-values.d.ts +11 -0
- package/lib/interaction-values.d.ts.map +1 -0
- package/lib/interaction-values.js +24 -0
- package/lib/interaction-values.js.map +1 -0
- package/lib/interaction.d.ts +116 -734
- package/lib/interaction.d.ts.map +1 -1
- package/lib/interaction.js +56 -12
- package/lib/interaction.js.map +1 -1
- package/lib/meters.d.ts +11 -7
- package/lib/meters.d.ts.map +1 -1
- package/lib/meters.js.map +1 -1
- package/lib/oauth-server.d.ts +33 -119
- package/lib/oauth-server.d.ts.map +1 -1
- package/lib/oauth.d.ts +14 -96
- package/lib/oauth.d.ts.map +1 -1
- package/lib/oauth.js +0 -4
- package/lib/oauth.js.map +1 -1
- package/lib/payload.d.ts +15 -38
- package/lib/payload.d.ts.map +1 -1
- package/lib/platform-event.d.ts +49 -462
- package/lib/platform-event.d.ts.map +1 -1
- package/lib/platform-event.js.map +1 -1
- package/lib/principal-context.d.ts +10 -15
- package/lib/principal-context.d.ts.map +1 -1
- package/lib/project-values.d.ts +24 -0
- package/lib/project-values.d.ts.map +1 -0
- package/lib/project-values.js +42 -0
- package/lib/project-values.js.map +1 -0
- package/lib/project.d.ts +55 -503
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js +6 -76
- package/lib/project.js.map +1 -1
- package/lib/prompt.d.ts +20 -51
- package/lib/prompt.d.ts.map +1 -1
- package/lib/prompt.js.map +1 -1
- package/lib/query.d.ts +27 -88
- package/lib/query.d.ts.map +1 -1
- package/lib/rate-limiter.d.ts +19 -70
- package/lib/rate-limiter.d.ts.map +1 -1
- package/lib/rate-limiter.js +0 -3
- package/lib/rate-limiter.js.map +1 -1
- package/lib/refs.d.ts +3 -11
- package/lib/refs.d.ts.map +1 -1
- package/lib/refs.js.map +1 -1
- package/lib/roles/types.d.ts +14 -20
- package/lib/roles/types.d.ts.map +1 -1
- package/lib/roles/types.js +5 -9
- package/lib/roles/types.js.map +1 -1
- package/lib/runs.d.ts +6 -25
- package/lib/runs.d.ts.map +1 -1
- package/lib/secrets.d.ts +20 -105
- package/lib/secrets.d.ts.map +1 -1
- package/lib/store/agent-approval.d.ts +5 -14
- package/lib/store/agent-approval.d.ts.map +1 -1
- package/lib/store/agent-approval.js.map +1 -1
- package/lib/store/agent-run.d.ts +63 -342
- package/lib/store/agent-run.d.ts.map +1 -1
- package/lib/store/collections.d.ts +11 -63
- package/lib/store/collections.d.ts.map +1 -1
- package/lib/store/collections.js.map +1 -1
- package/lib/store/conversation-state.d.ts +63 -61
- package/lib/store/conversation-state.d.ts.map +1 -1
- package/lib/store/conversation-state.js +2 -0
- package/lib/store/conversation-state.js.map +1 -1
- package/lib/store/doc-analyzer.d.ts +9 -32
- package/lib/store/doc-analyzer.d.ts.map +1 -1
- package/lib/store/dsl-workflow.d.ts +37 -151
- package/lib/store/dsl-workflow.d.ts.map +1 -1
- package/lib/store/dsl-workflow.js.map +1 -1
- package/lib/store/editing-policy-schema.generated.d.ts +3 -0
- package/lib/store/editing-policy-schema.generated.d.ts.map +1 -0
- package/lib/store/editing-policy-schema.generated.js +28 -0
- package/lib/store/editing-policy-schema.generated.js.map +1 -0
- package/lib/store/grounded-extraction.d.ts +7 -104
- package/lib/store/grounded-extraction.d.ts.map +1 -1
- package/lib/store/grounded-extraction.js.map +1 -1
- package/lib/store/index.d.ts +2 -0
- package/lib/store/index.d.ts.map +1 -1
- package/lib/store/index.js +3 -0
- package/lib/store/index.js.map +1 -1
- package/lib/store/intake-policy-schema.generated.d.ts +3 -0
- package/lib/store/intake-policy-schema.generated.d.ts.map +1 -0
- package/lib/store/intake-policy-schema.generated.js +1425 -0
- package/lib/store/intake-policy-schema.generated.js.map +1 -0
- package/lib/store/process-schema.d.ts +80 -0
- package/lib/store/process-schema.d.ts.map +1 -1
- package/lib/store/process-schema.js +79 -0
- package/lib/store/process-schema.js.map +1 -1
- package/lib/store/process-validation.d.ts.map +1 -1
- package/lib/store/process-validation.js +70 -2
- package/lib/store/process-validation.js.map +1 -1
- package/lib/store/process.d.ts +36 -125
- package/lib/store/process.d.ts.map +1 -1
- package/lib/store/process.js.map +1 -1
- package/lib/store/rendering.d.ts +9 -64
- package/lib/store/rendering.d.ts.map +1 -1
- package/lib/store/rendering.js.map +1 -1
- package/lib/store/store.d.ts +98 -693
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +4 -443
- package/lib/store/store.js.map +1 -1
- package/lib/store/task.d.ts +15 -59
- package/lib/store/task.d.ts.map +1 -1
- package/lib/store/task.js +0 -3
- package/lib/store/task.js.map +1 -1
- package/lib/store/workflow.d.ts +56 -516
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js +28 -11
- package/lib/store/workflow.js.map +1 -1
- package/lib/sts-token-types.d.ts +12 -66
- package/lib/sts-token-types.d.ts.map +1 -1
- package/lib/sts-token-types.js.map +1 -1
- package/lib/tools.d.ts +8 -100
- package/lib/tools.d.ts.map +1 -1
- package/lib/transient-tokens-values.d.ts +11 -0
- package/lib/transient-tokens-values.d.ts.map +1 -0
- package/lib/transient-tokens-values.js +12 -0
- package/lib/transient-tokens-values.js.map +1 -0
- package/lib/transient-tokens.d.ts +15 -13
- package/lib/transient-tokens.d.ts.map +1 -1
- package/lib/transient-tokens.js +5 -5
- package/lib/transient-tokens.js.map +1 -1
- package/lib/user.d.ts +54 -155
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js +1 -78
- package/lib/user.js.map +1 -1
- package/lib/versions.d.ts +24 -1
- package/lib/versions.d.ts.map +1 -1
- package/lib/versions.js +23 -0
- package/lib/versions.js.map +1 -1
- package/lib/vertesia-common.js +6 -2
- package/lib/vertesia-common.js.map +1 -1
- package/lib/views-schema.d.ts +4 -4
- package/lib/views.d.ts +56 -312
- package/lib/views.d.ts.map +1 -1
- package/lib/views.js.map +1 -1
- package/package.json +14 -5
- package/src/access-control-values.ts +113 -0
- package/src/access-control.ts +33 -138
- package/src/account-values.ts +95 -0
- package/src/agent-resources.test.ts +100 -0
- package/src/analytics.ts +18 -42
- package/src/api-schemas/access-control.contract.test.ts +209 -0
- package/src/api-schemas/access-control.ts +208 -0
- package/src/api-schemas/account.contract.test.ts +318 -0
- package/src/api-schemas/account.ts +150 -0
- package/src/api-schemas/adapter-edge-cases.test.ts +480 -0
- package/src/api-schemas/adapter.ts +778 -0
- package/src/api-schemas/agent-runs.ts +1081 -0
- package/src/api-schemas/analytics.ts +65 -0
- package/src/api-schemas/apikey.contract.test.ts +270 -0
- package/src/api-schemas/apikey.ts +199 -0
- package/src/api-schemas/app-lifecycle.ts +841 -0
- package/src/api-schemas/app-runtime.ts +919 -0
- package/src/api-schemas/apps.ts +415 -0
- package/src/api-schemas/audit-trail.ts +243 -0
- package/src/api-schemas/bulk-operation.contract.test.ts +39 -0
- package/src/api-schemas/bulk-operation.ts +75 -0
- package/src/api-schemas/bundle-isolation.test.ts +80 -0
- package/src/api-schemas/commands.contract.test.ts +51 -0
- package/src/api-schemas/commands.ts +62 -0
- package/src/api-schemas/content.ts +939 -0
- package/src/api-schemas/cost-analytics.contract.test.ts +64 -0
- package/src/api-schemas/cost-analytics.ts +235 -0
- package/src/api-schemas/dashboard.contract.test.ts +127 -0
- package/src/api-schemas/dashboard.ts +351 -0
- package/src/api-schemas/data-store.contract.test.ts +91 -0
- package/src/api-schemas/data-store.ts +571 -0
- package/src/api-schemas/document-processing.contract.test.ts +76 -0
- package/src/api-schemas/document-processing.ts +344 -0
- package/src/api-schemas/embeddings.ts +113 -0
- package/src/api-schemas/environment.contract.test.ts +184 -0
- package/src/api-schemas/environment.ts +190 -0
- package/src/api-schemas/events.ts +921 -0
- package/src/api-schemas/files.ts +159 -0
- package/src/api-schemas/group.contract.test.ts +205 -0
- package/src/api-schemas/group.ts +155 -0
- package/src/api-schemas/index.ts +35 -0
- package/src/api-schemas/indexing.contract.test.ts +83 -0
- package/src/api-schemas/indexing.ts +234 -0
- package/src/api-schemas/integrations.ts +369 -0
- package/src/api-schemas/interaction.ts +2357 -0
- package/src/api-schemas/invites.contract.test.ts +268 -0
- package/src/api-schemas/invites.ts +127 -0
- package/src/api-schemas/llumiverse.contract.test.ts +108 -0
- package/src/api-schemas/oauth-server.ts +219 -0
- package/src/api-schemas/oauth.contract.test.ts +118 -0
- package/src/api-schemas/oauth.ts +166 -0
- package/src/api-schemas/parameters.test.ts +402 -0
- package/src/api-schemas/parameters.ts +310 -0
- package/src/api-schemas/process.ts +929 -0
- package/src/api-schemas/project-configuration.ts +478 -0
- package/src/api-schemas/project.contract.test.ts +365 -0
- package/src/api-schemas/project.ts +214 -0
- package/src/api-schemas/prompt.ts +88 -0
- package/src/api-schemas/pruning-limits.test.ts +189 -0
- package/src/api-schemas/quota.contract.test.ts +147 -0
- package/src/api-schemas/quota.ts +122 -0
- package/src/api-schemas/registry-groups.test.ts +91 -0
- package/src/api-schemas/registry.ts +3487 -0
- package/src/api-schemas/response-pruning.test.ts +260 -0
- package/src/api-schemas/schema-primitives.ts +12 -0
- package/src/api-schemas/secrets.ts +332 -0
- package/src/api-schemas/store.contract.test.ts +450 -0
- package/src/api-schemas/store.ts +604 -0
- package/src/api-schemas/sts.contract.test.ts +80 -0
- package/src/api-schemas/sts.ts +110 -0
- package/src/api-schemas/task.ts +104 -0
- package/src/api-schemas/tools.ts +140 -0
- package/src/api-schemas/user.contract.test.ts +191 -0
- package/src/api-schemas/user.ts +204 -0
- package/src/api-schemas/view-execution.ts +200 -0
- package/src/api-schemas/views.ts +437 -0
- package/src/api-schemas/workflow-runs.ts +653 -0
- package/src/apikey-values.ts +10 -0
- package/src/apikey.ts +49 -40
- package/src/apps.ts +249 -1179
- package/src/ask-user.ts +9 -1
- package/src/audit-trail.ts +45 -137
- package/src/browser-credentials.ts +21 -106
- package/src/common.ts +67 -78
- package/src/cost-analytics.ts +37 -176
- package/src/data-platform.ts +205 -776
- package/src/email.ts +5 -17
- package/src/embeddings.ts +22 -60
- package/src/environment.ts +52 -124
- package/src/facets.ts +4 -7
- package/src/group.ts +38 -42
- package/src/index.ts +11 -0
- package/src/integrations.ts +39 -129
- package/src/interaction-values.ts +23 -0
- package/src/interaction.ts +231 -841
- package/src/meters.ts +11 -7
- package/src/oauth-server.ts +58 -127
- package/src/oauth.ts +24 -108
- package/src/payload.ts +25 -40
- package/src/platform-event.ts +98 -484
- package/src/principal-context.ts +11 -15
- package/src/project-values.ts +41 -0
- package/src/project.ts +116 -588
- package/src/prompt.ts +34 -61
- package/src/query.ts +34 -93
- package/src/rate-limiter.ts +27 -75
- package/src/refs.ts +4 -11
- package/src/roles/types.ts +20 -20
- package/src/runs.ts +11 -24
- package/src/secrets.ts +38 -117
- package/src/store/agent-approval.ts +9 -14
- package/src/store/agent-run.ts +106 -434
- package/src/store/collections.ts +21 -63
- package/src/store/content-type-editing.test.ts +17 -0
- package/src/store/conversation-state.ts +78 -64
- package/src/store/doc-analyzer.ts +17 -33
- package/src/store/dsl-workflow.ts +62 -158
- package/src/store/editing-policy-schema.generated.ts +30 -0
- package/src/store/grounded-extraction.ts +13 -104
- package/src/store/index.ts +3 -0
- package/src/store/intake-policy-schema.generated.ts +1442 -0
- package/src/store/process-schema.test.ts +43 -0
- package/src/store/process-schema.ts +79 -0
- package/src/store/process-validation.test.ts +141 -0
- package/src/store/process-validation.ts +82 -2
- package/src/store/process.ts +70 -146
- package/src/store/rendering.ts +15 -64
- package/src/store/store.ts +197 -1182
- package/src/store/task.ts +25 -59
- package/src/store/workflow.ts +103 -554
- package/src/sts-token-types.ts +24 -75
- package/src/tools.ts +18 -97
- package/src/transient-tokens-values.ts +11 -0
- package/src/transient-tokens.ts +16 -13
- package/src/user.ts +74 -214
- package/src/versions.ts +24 -0
- package/src/views-schema.test.ts +9 -1
- package/src/views.ts +106 -329
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/store/collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/store/collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACR,qCAAqC,EACrC,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,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAE1G,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/store/collections.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/store/collections.ts"],"names":[],"mappings":"AAeA,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;AACzB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { CompletionResult, ExecutionTokenUsage, StatelessExecutionOptions, ToolUse } from '@llumiverse/common';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { ExternalizedToolInputRefSchema, ExternalizedToolInputRefsSchema, PendingMcpConnectionSchema, TextArtifactReferenceSchema, ToolReferenceSchema, UsedSkillSchema } from '../api-schemas/interaction.js';
|
|
2
4
|
import type { ConversationStripOptions, ResolvedInteractionExecutionInfo, UserChannel } from '../interaction.js';
|
|
3
5
|
import type { ExecutionRunDocRef } from '../runs.js';
|
|
4
6
|
import type { AgentToolApprovalMode, PendingToolApprovalResults, ToolApprovalGrant } from './agent-approval.js';
|
|
@@ -7,36 +9,24 @@ import type { Plan, WorkflowAncestor } from './workflow.js';
|
|
|
7
9
|
* Lightweight tool reference for activity payloads.
|
|
8
10
|
* References tools stored in GCP instead of embedding full tool definitions.
|
|
9
11
|
*/
|
|
10
|
-
export
|
|
11
|
-
storage_key: string;
|
|
12
|
-
tool_count: number;
|
|
13
|
-
stored_at: string;
|
|
14
|
-
}
|
|
12
|
+
export type ToolReference = z.infer<typeof ToolReferenceSchema>;
|
|
15
13
|
/** Reference to text content externalized to agent artifact storage. */
|
|
16
|
-
export
|
|
17
|
-
storage_id: string;
|
|
18
|
-
artifact_path: string;
|
|
19
|
-
display_ref: string;
|
|
20
|
-
sha256: string;
|
|
21
|
-
size_bytes: number;
|
|
22
|
-
content_type: string;
|
|
23
|
-
}
|
|
14
|
+
export type TextArtifactReference = z.infer<typeof TextArtifactReferenceSchema>;
|
|
24
15
|
/**
|
|
25
16
|
* Sidecar metadata for generated tool input fields that were stored outside
|
|
26
17
|
* model-visible tool_input. Keyed by tool_use.id on ConversationState.
|
|
27
18
|
*/
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
input_path: ['content'];
|
|
31
|
-
ref: TextArtifactReference;
|
|
32
|
-
}
|
|
33
|
-
export interface ExternalizedToolInputRefs {
|
|
34
|
-
[toolUseId: string]: ExternalizedToolInputRef[];
|
|
35
|
-
}
|
|
19
|
+
export type ExternalizedToolInputRef = z.infer<typeof ExternalizedToolInputRefSchema>;
|
|
20
|
+
export type ExternalizedToolInputRefs = z.infer<typeof ExternalizedToolInputRefsSchema>;
|
|
36
21
|
export declare function toolInputRefsArtifactPath(storageId: string): string;
|
|
37
22
|
/**
|
|
38
|
-
* Conversation state passed between workflow activities
|
|
39
|
-
*
|
|
23
|
+
* Conversation state passed between workflow activities: the activity-safe,
|
|
24
|
+
* per-turn dynamic subset of a multi-turn agent conversation. Rides every
|
|
25
|
+
* conversation activity payload, so it deliberately excludes anything large or
|
|
26
|
+
* fetchable — the conversation history and tool definitions live in artifact
|
|
27
|
+
* storage (referenced via `tool_reference` / the conversation storage id), and
|
|
28
|
+
* catalog/activation data lives in the workflow-memory
|
|
29
|
+
* {@link ConversationCatalogState} (persisted as catalog.json).
|
|
40
30
|
*/
|
|
41
31
|
export interface ConversationState {
|
|
42
32
|
/**
|
|
@@ -102,17 +92,23 @@ export interface ConversationState {
|
|
|
102
92
|
active_tool_names?: string[];
|
|
103
93
|
/** Active tools that should not be evicted by bounded active-tool pruning. */
|
|
104
94
|
pinned_tool_names?: string[];
|
|
105
|
-
/**
|
|
106
|
-
* Activation and usage metadata for tools seen during the conversation.
|
|
107
|
-
* Used to keep the active tool set bounded without losing recovery context.
|
|
108
|
-
*/
|
|
109
|
-
tool_activation_metadata?: Record<string, ToolActivationMetadata>;
|
|
110
95
|
/** Skills that have been used in this conversation (for auto-syncing scripts and package installation) */
|
|
111
96
|
used_skills?: UsedSkill[];
|
|
112
|
-
/** All available skills from registered tool collections (for upfront hydration in sandbox) */
|
|
113
|
-
available_skills?: AvailableSkill[];
|
|
114
97
|
/** Whether to stream LLM responses to Redis (cached from project config) */
|
|
115
98
|
streaming_enabled?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Project-configured checkpoint threshold as a fraction of the model's
|
|
101
|
+
* context window (cached from project.configuration.agent_checkpoint_threshold
|
|
102
|
+
* at conversation start).
|
|
103
|
+
*/
|
|
104
|
+
checkpoint_threshold?: number;
|
|
105
|
+
/**
|
|
106
|
+
* Project-configured checkpoint hard cap in tokens (cached from
|
|
107
|
+
* project.configuration.agent_checkpoint_tokens at conversation start).
|
|
108
|
+
* The workflow resolves the effective threshold from these, the per-run
|
|
109
|
+
* checkpoint_tokens override, and the model-based default.
|
|
110
|
+
*/
|
|
111
|
+
checkpoint_tokens?: number;
|
|
116
112
|
/**
|
|
117
113
|
* Active communication channels with their current state.
|
|
118
114
|
* Channels can be updated as conversation progresses (e.g., email threading info).
|
|
@@ -149,22 +145,19 @@ export interface ConversationState {
|
|
|
149
145
|
* that produced the stream, so it remains safe across continue-as-new.
|
|
150
146
|
*/
|
|
151
147
|
latest_streaming_id?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Mapping of skill names to their related tools.
|
|
154
|
-
* When a skill is called, its related tools are added to unlocked_tools.
|
|
155
|
-
*/
|
|
156
|
-
skill_tool_map?: Record<string, string[]>;
|
|
157
148
|
/**
|
|
158
149
|
* Names of skills whose full instructions are already present in the live conversation
|
|
159
150
|
* history (i.e. were delivered by a prior `learn_<skill>` call). Used to make skill
|
|
160
151
|
* re-activation idempotent: a repeat call returns a short "already active" acknowledgement
|
|
161
152
|
* instead of re-dumping the instructions.
|
|
162
153
|
*
|
|
163
|
-
* Unlike `unlocked_tools
|
|
164
|
-
*
|
|
154
|
+
* Unlike `unlocked_tools` (which must survive a checkpoint so tools stay unlocked),
|
|
155
|
+
* this list is reset when a checkpoint compacts the conversation, because the
|
|
165
156
|
* summary no longer carries the skill instructions and the next call must re-deliver them.
|
|
166
157
|
*/
|
|
167
158
|
skill_instructions_delivered?: string[];
|
|
159
|
+
/** Stable ids of initialization tool calls completed before the first model turn. */
|
|
160
|
+
initialization_call_ids?: string[];
|
|
168
161
|
/**
|
|
169
162
|
* Denylist of MCP tool-collection ids deactivated for this conversation.
|
|
170
163
|
* `undefined`/empty means all installed/connected MCP collections are active.
|
|
@@ -205,23 +198,43 @@ export interface ConversationState {
|
|
|
205
198
|
*/
|
|
206
199
|
app_version?: string;
|
|
207
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Tool/skill catalog state for a conversation, split out of {@link ConversationState}
|
|
203
|
+
* so it never rides Temporal activity payloads:
|
|
204
|
+
* - `skill_tool_map` and `available_skills` are composed by tool generation and
|
|
205
|
+
* persisted next to the tool universe (catalog.json); the workflow holds them in
|
|
206
|
+
* memory and the few consuming activities fetch them from artifact storage.
|
|
207
|
+
* - `tool_activation_metadata` is workflow-side eviction/pin bookkeeping; it survives
|
|
208
|
+
* continueAsNew via the continuation payload, never via activity inputs.
|
|
209
|
+
*/
|
|
210
|
+
export interface ConversationCatalogState {
|
|
211
|
+
/**
|
|
212
|
+
* Mapping of skill names to their related tools.
|
|
213
|
+
* When a skill is called, its related tools are added to unlocked_tools.
|
|
214
|
+
*/
|
|
215
|
+
skill_tool_map?: Record<string, string[]>;
|
|
216
|
+
/** All available skills from registered tool collections (for upfront hydration in sandbox) */
|
|
217
|
+
available_skills?: AvailableSkill[];
|
|
218
|
+
/**
|
|
219
|
+
* Activation and usage metadata for tools seen during the conversation.
|
|
220
|
+
* Used to keep the active tool set bounded without losing recovery context.
|
|
221
|
+
*/
|
|
222
|
+
tool_activation_metadata?: Record<string, ToolActivationMetadata>;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* The subset of {@link ConversationCatalogState} persisted to artifact storage
|
|
226
|
+
* (catalog.json, next to conversation.json and tools.json). Activation metadata is
|
|
227
|
+
* runtime bookkeeping and is deliberately not part of the stored catalog.
|
|
228
|
+
*/
|
|
229
|
+
export type StoredConversationCatalog = Pick<ConversationCatalogState, 'skill_tool_map' | 'available_skills'>;
|
|
230
|
+
/** Artifact key of the stored conversation catalog, relative to the agent storage root. */
|
|
231
|
+
export declare const CONVERSATION_CATALOG_ARTIFACT_KEY = "catalog.json";
|
|
208
232
|
/**
|
|
209
233
|
* An MCP server the user can connect to but hasn't yet (active + accessible, no OAuth token).
|
|
210
234
|
* Built at tool-discovery time and stored on the conversation state so the agent can
|
|
211
235
|
* discover it (by description) and ask the user to connect.
|
|
212
236
|
*/
|
|
213
|
-
export
|
|
214
|
-
/** The app installation id owning the collection (used for OAuth operations). */
|
|
215
|
-
app_install_id: string;
|
|
216
|
-
/** The MCP tool-collection id. */
|
|
217
|
-
collection_id: string;
|
|
218
|
-
/** Human-readable label for the server/collection. */
|
|
219
|
-
name: string;
|
|
220
|
-
/** Manifest description of what the server provides (used for discovery). */
|
|
221
|
-
description?: string;
|
|
222
|
-
/** Tool-name prefix for this collection. */
|
|
223
|
-
namespace?: string;
|
|
224
|
-
}
|
|
237
|
+
export type PendingMcpConnection = z.infer<typeof PendingMcpConnectionSchema>;
|
|
225
238
|
/** Skill metadata collected at workflow start for upfront sandbox hydration */
|
|
226
239
|
export interface AvailableSkill {
|
|
227
240
|
/** Skill name (e.g., "analyze_data") - without the "learn_" prefix */
|
|
@@ -239,18 +252,7 @@ export interface AvailableSkill {
|
|
|
239
252
|
*/
|
|
240
253
|
export declare function getConversationStorageId(state: Pick<ConversationState, 'agent_run_id' | 'launch_id'> | undefined, fallbackRunId: string): string;
|
|
241
254
|
/** Skill metadata tracked when a skill is used */
|
|
242
|
-
export
|
|
243
|
-
/** Skill name (e.g., "analyze_data") */
|
|
244
|
-
name: string;
|
|
245
|
-
/** Source URL of the skill collection (e.g., "https://tools.vertesia.io/api/skills/data-analysis") */
|
|
246
|
-
src: string;
|
|
247
|
-
/** Programming language (e.g., "python") */
|
|
248
|
-
language?: string;
|
|
249
|
-
/** Required packages (e.g., ["pandas", "numpy"]) */
|
|
250
|
-
packages?: string[];
|
|
251
|
-
/** System-level packages to install via sudo apt-get (e.g., ["poppler-utils"]) */
|
|
252
|
-
system_packages?: string[];
|
|
253
|
-
}
|
|
255
|
+
export type UsedSkill = z.infer<typeof UsedSkillSchema>;
|
|
254
256
|
export interface ToolActivationMetadata {
|
|
255
257
|
/** Turn when the tool became active in this conversation. */
|
|
256
258
|
activated_at_iteration: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-state.d.ts","sourceRoot":"","sources":["../../src/store/conversation-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACpH,OAAO,KAAK,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACjH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAChH,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE5D;;;GAGG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"conversation-state.d.ts","sourceRoot":"","sources":["../../src/store/conversation-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACpH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACR,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,EACnB,eAAe,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACjH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAChH,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE5D;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAA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;IACnC,6DAA6D;IAC7D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,4DAA4D;IAC5D,SAAS,EAAE,MAAM,CAAC;IAClB,wFAAwF;IACxF,MAAM,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export function toolInputRefsArtifactPath(storageId) {
|
|
2
2
|
return `agents/${storageId}/tool-input-refs.json`;
|
|
3
3
|
}
|
|
4
|
+
/** Artifact key of the stored conversation catalog, relative to the agent storage root. */
|
|
5
|
+
export const CONVERSATION_CATALOG_ARTIFACT_KEY = 'catalog.json';
|
|
4
6
|
/**
|
|
5
7
|
* Compute the storage ID for a conversation's artifacts.
|
|
6
8
|
* - Root workflows: `{agent_run_id}` (or fallbackRunId if no agent_run_id)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-state.js","sourceRoot":"","sources":["../../src/store/conversation-state.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversation-state.js","sourceRoot":"","sources":["../../src/store/conversation-state.ts"],"names":[],"mappings":"AAgCA,MAAM,UAAU,yBAAyB,CAAC,SAAiB;IACvD,OAAO,UAAU,SAAS,uBAAuB,CAAC;AACtD,CAAC;AA8PD,2FAA2F;AAC3F,MAAM,CAAC,MAAM,iCAAiC,GAAG,cAAc,CAAC;AAiBhE;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CACpC,KAAwE,EACxE,aAAqB;IAErB,MAAM,MAAM,GAAG,KAAK,EAAE,YAAY,IAAI,aAAa,CAAC;IACpD,IAAI,KAAK,EAAE,SAAS,IAAI,KAAK,EAAE,YAAY,EAAE,CAAC;QAC1C,OAAO,GAAG,MAAM,gBAAgB,KAAK,CAAC,SAAS,EAAE,CAAC;IACtD,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
|
@@ -1,44 +1,21 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
output_format?: DocProcessorOutputFormat;
|
|
6
|
-
[key: string]: unknown;
|
|
7
|
-
}
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { DocAnalyzeRunStatusResponseSchema, DocAnalyzerProgressSchema, DocAnalyzerProgressStatusSchema, DocProcessorOutputFormatSchema, DocumentPrepOptionsSchema, DocumentProcessingPhaseSchema } from '../api-schemas/document-processing.js';
|
|
3
|
+
import type { WorkflowExecutionPayload } from './workflow.js';
|
|
4
|
+
export type DocumentPrepOptions = z.infer<typeof DocumentPrepOptionsSchema>;
|
|
8
5
|
export interface DocumentPrepWorkflowPayload extends Omit<WorkflowExecutionPayload, 'vars'> {
|
|
9
6
|
vars: DocumentPrepOptions;
|
|
10
7
|
}
|
|
11
|
-
export type DocumentProcessingPhase =
|
|
8
|
+
export type DocumentProcessingPhase = z.infer<typeof DocumentProcessingPhaseSchema>;
|
|
12
9
|
/**
|
|
13
10
|
* Output format for document processing workflows
|
|
14
11
|
*/
|
|
15
|
-
export type DocProcessorOutputFormat =
|
|
12
|
+
export type DocProcessorOutputFormat = z.infer<typeof DocProcessorOutputFormatSchema>;
|
|
16
13
|
/**
|
|
17
14
|
* Represents a document analysis run status
|
|
18
15
|
*/
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/** The output format being used for processing. */
|
|
23
|
-
output_format?: DocProcessorOutputFormat;
|
|
24
|
-
}
|
|
25
|
-
export interface DocAnalyzerProgress {
|
|
26
|
-
phase?: DocumentProcessingPhase;
|
|
27
|
-
pages: DocAnalyzerProgressStatus;
|
|
28
|
-
images: DocAnalyzerProgressStatus;
|
|
29
|
-
tables: DocAnalyzerProgressStatus;
|
|
30
|
-
visuals: DocAnalyzerProgressStatus;
|
|
31
|
-
started_at?: number;
|
|
32
|
-
percent: number;
|
|
33
|
-
/** The output format being used for processing. */
|
|
34
|
-
output_format?: DocProcessorOutputFormat;
|
|
35
|
-
}
|
|
36
|
-
interface DocAnalyzerProgressStatus {
|
|
37
|
-
total: number;
|
|
38
|
-
processed: number;
|
|
39
|
-
success: number;
|
|
40
|
-
failed: number;
|
|
41
|
-
}
|
|
16
|
+
export type DocAnalyzeRunStatusResponse = z.infer<typeof DocAnalyzeRunStatusResponseSchema>;
|
|
17
|
+
export type DocAnalyzerProgress = z.infer<typeof DocAnalyzerProgressSchema>;
|
|
18
|
+
export type DocAnalyzerProgressStatus = z.infer<typeof DocAnalyzerProgressStatusSchema>;
|
|
42
19
|
/**
|
|
43
20
|
* Adapt Tables Parameters, part of the request
|
|
44
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doc-analyzer.d.ts","sourceRoot":"","sources":["../../src/store/doc-analyzer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"doc-analyzer.d.ts","sourceRoot":"","sources":["../../src/store/doc-analyzer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACR,iCAAiC,EACjC,yBAAyB,EACzB,+BAA+B,EAC/B,8BAA8B,EAC9B,yBAAyB,EACzB,6BAA6B,EAChC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,wBAAwB,EAAE,MAAM,CAAC;IACvF,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AAED,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,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AAC,CAAC"}
|
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { ActivityFetchSpecSchema, DSLActivityOptionsSchema, DSLActivitySpecSchema, DSLActivityStepSchema, DSLRetryPolicySchema, DurationValueSchema } from '../api-schemas/process.js';
|
|
3
|
+
import type { WorkflowDefinitionRefSchema, WorkflowInputFileSchema, WorkflowInputSchema } from '../api-schemas/workflow-runs.js';
|
|
2
4
|
import type { ToolExecutionMetadata } from '../tool-execution.js';
|
|
3
5
|
import type { BaseObject } from './common.js';
|
|
4
6
|
import type { WorkflowExecutionPayload } from './index.js';
|
|
5
7
|
import type { ParentClosePolicyType } from './temporalio.js';
|
|
6
|
-
export type DurationValue =
|
|
8
|
+
export type DurationValue = z.infer<typeof DurationValueSchema>;
|
|
7
9
|
/**
|
|
8
10
|
* Discriminator for workflow input type - either object IDs or GCS file URIs
|
|
9
11
|
*/
|
|
10
12
|
export type WorkflowInputType = 'objectIds' | 'files';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
export interface WorkflowInputFile {
|
|
15
|
-
url: string;
|
|
16
|
-
mimetype: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Discriminated union for workflow inputs.
|
|
20
|
-
* Workflows can accept either a list of object IDs (existing behavior) OR a list of file references (new).
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* @discriminator inputType
|
|
24
|
-
*/
|
|
25
|
-
export type WorkflowInput = {
|
|
26
|
-
inputType: 'objectIds';
|
|
27
|
-
objectIds: string[];
|
|
28
|
-
} | {
|
|
29
|
-
inputType: 'files';
|
|
30
|
-
files: WorkflowInputFile[];
|
|
31
|
-
};
|
|
13
|
+
export type WorkflowInputFile = z.infer<typeof WorkflowInputFileSchema>;
|
|
14
|
+
export type WorkflowInput = z.infer<typeof WorkflowInputSchema>;
|
|
32
15
|
/**
|
|
33
16
|
* The payload sent when starting a workflow from the temporal client to the workflow instance.
|
|
34
17
|
*/
|
|
@@ -39,30 +22,8 @@ export interface DSLWorkflowExecutionPayload extends WorkflowExecutionPayload<Re
|
|
|
39
22
|
*/
|
|
40
23
|
workflow: DSLWorkflowSpec;
|
|
41
24
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
*
|
|
45
|
-
* @see ActivityOptions in @temporalio/common
|
|
46
|
-
*/
|
|
47
|
-
export interface DSLActivityOptions {
|
|
48
|
-
startToCloseTimeout?: DurationValue;
|
|
49
|
-
heartbeatTimeout?: DurationValue;
|
|
50
|
-
scheduleToStartTimeout?: DurationValue;
|
|
51
|
-
scheduleToCloseTimeout?: DurationValue;
|
|
52
|
-
retry?: DSLRetryPolicy;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* The payload for a DSL retry policy.
|
|
56
|
-
*
|
|
57
|
-
* @see RetryPolicy in @temporalio/common
|
|
58
|
-
*/
|
|
59
|
-
export interface DSLRetryPolicy {
|
|
60
|
-
backoffCoefficient?: number;
|
|
61
|
-
initialInterval?: DurationValue;
|
|
62
|
-
maximumAttempts?: number;
|
|
63
|
-
maximumInterval?: DurationValue;
|
|
64
|
-
nonRetryableErrorTypes?: string[];
|
|
65
|
-
}
|
|
25
|
+
export type DSLActivityOptions = z.infer<typeof DSLActivityOptionsSchema>;
|
|
26
|
+
export type DSLRetryPolicy = z.infer<typeof DSLRetryPolicySchema>;
|
|
66
27
|
export type WorkflowSearchAttributeValue = string[] | number[] | boolean[] | Date[];
|
|
67
28
|
export type WorkflowSearchAttributes = Record<string, WorkflowSearchAttributeValue>;
|
|
68
29
|
/**
|
|
@@ -77,35 +38,7 @@ export interface DSLActivityExecutionPayload<ParamsT extends object> extends Wor
|
|
|
77
38
|
activityGroupId?: string;
|
|
78
39
|
}
|
|
79
40
|
export type ImportSpec = (string | Record<string, string>)[];
|
|
80
|
-
export
|
|
81
|
-
/**
|
|
82
|
-
* The data provider name
|
|
83
|
-
*/
|
|
84
|
-
type: 'document' | 'document_type' | 'interaction_run';
|
|
85
|
-
/**
|
|
86
|
-
* An optional URI to the data source.
|
|
87
|
-
*/
|
|
88
|
-
source?: string;
|
|
89
|
-
/**
|
|
90
|
-
* The query to be executed by the data provider
|
|
91
|
-
*/
|
|
92
|
-
query: Record<string, unknown>;
|
|
93
|
-
/**
|
|
94
|
-
* a string of space separated field names.
|
|
95
|
-
* Prefix a field name with "-" to exclude it from the result.
|
|
96
|
-
*/
|
|
97
|
-
select?: string;
|
|
98
|
-
/**
|
|
99
|
-
* The number of results to return. If the result is limited to 1 the result will be a single object
|
|
100
|
-
*/
|
|
101
|
-
limit?: number;
|
|
102
|
-
/**
|
|
103
|
-
* How to handle not found objects.
|
|
104
|
-
* 1. ignore - Ignore and return an empty array for multi objects query (or undefined for single object query) or empty array for multiple objects throw an error.
|
|
105
|
-
* 2. throw - Throw an error if the object or no objects are found.
|
|
106
|
-
*/
|
|
107
|
-
on_not_found?: 'ignore' | 'throw';
|
|
108
|
-
}
|
|
41
|
+
export type ActivityFetchSpec = z.infer<typeof ActivityFetchSpecSchema>;
|
|
109
42
|
export interface DSLWorkflowStepBase {
|
|
110
43
|
/**
|
|
111
44
|
* The type fo the step.
|
|
@@ -113,75 +46,18 @@ export interface DSLWorkflowStepBase {
|
|
|
113
46
|
*/
|
|
114
47
|
type: 'activity' | 'workflow';
|
|
115
48
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
*/
|
|
120
|
-
name: string;
|
|
121
|
-
/**
|
|
122
|
-
* Title of the activity to be displayed in the UI workflow builder
|
|
123
|
-
*/
|
|
124
|
-
title?: string;
|
|
125
|
-
/**
|
|
126
|
-
* The description of the activity to e displayed in the UI workflow builder
|
|
127
|
-
*/
|
|
128
|
-
description?: string;
|
|
129
|
-
/**
|
|
130
|
-
* Activities parameters. These parameters can be either literals
|
|
131
|
-
* (hardcoded strings, numbers, booleans, objects, arrays etc.), either
|
|
132
|
-
* references to the workflow variables.
|
|
133
|
-
* The workflow variables are built from the workflow params (e.g. the workflow configuration)
|
|
134
|
-
* and from the result of the previous activities.
|
|
135
|
-
*/
|
|
49
|
+
type DSLActivitySpecWire = z.infer<typeof DSLActivitySpecSchema>;
|
|
50
|
+
/** The published activity shape with a caller-specializable parameter bag. */
|
|
51
|
+
export type DSLActivitySpec<PARAMS extends object = Record<string, unknown>> = Omit<DSLActivitySpecWire, 'params' | 'import'> & {
|
|
136
52
|
params?: PARAMS;
|
|
137
|
-
/**
|
|
138
|
-
* The name of the workflow variable that will store the result of the activity
|
|
139
|
-
* If not specified the result will not be stored
|
|
140
|
-
* The parameters describe how the actual parameters will be obtained from the workflow execution vars.
|
|
141
|
-
* since it may contain references to workflow execution vars.
|
|
142
|
-
*/
|
|
143
|
-
output?: string;
|
|
144
|
-
/**
|
|
145
|
-
* A JSON expression which evaluate to true or false similar to mongo matches.
|
|
146
|
-
* We support for now basic expression like: $true, $false, $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $regexp
|
|
147
|
-
* {$eq: {name: value}},
|
|
148
|
-
* Ex: {$eq: {wfVarName: value}}
|
|
149
|
-
*/
|
|
150
|
-
condition?: Record<string, unknown>;
|
|
151
|
-
/**
|
|
152
|
-
* The import spec is used to import data from workflow variables.
|
|
153
|
-
* The import spec is a list of variable names to import from the workflow context.
|
|
154
|
-
* You can also use objects to rename the imported variables, or to reference an expression.
|
|
155
|
-
* Example:
|
|
156
|
-
* ["runId", {"typeId": "docType.id"}]
|
|
157
|
-
*/
|
|
158
53
|
import?: ImportSpec;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
projection?: never | Record<string, unknown>;
|
|
167
|
-
/**
|
|
168
|
-
* If true the activity will be executed in parallel with the other activities.
|
|
169
|
-
* (i.e. the workflow will not wait for the activity to finish before starting the next one)
|
|
170
|
-
*/
|
|
171
|
-
parallel?: boolean;
|
|
172
|
-
/**
|
|
173
|
-
* Await for a parallel activity execution to return.
|
|
174
|
-
*/
|
|
175
|
-
await?: string;
|
|
176
|
-
/**
|
|
177
|
-
* Activity options for configuring the activity execution, which overrides the activity options
|
|
178
|
-
* defined at workflow level.
|
|
179
|
-
*/
|
|
180
|
-
options?: DSLActivityOptions;
|
|
181
|
-
}
|
|
182
|
-
export interface DSLActivityStep<PARAMS extends object = Record<string, unknown>> extends DSLActivitySpec<PARAMS>, DSLWorkflowStepBase {
|
|
183
|
-
type: 'activity';
|
|
184
|
-
}
|
|
54
|
+
};
|
|
55
|
+
type DSLActivityStepWire = z.infer<typeof DSLActivityStepSchema>;
|
|
56
|
+
/** The published activity-step shape with a caller-specializable parameter bag. */
|
|
57
|
+
export type DSLActivityStep<PARAMS extends object = Record<string, unknown>> = Omit<DSLActivityStepWire, 'params' | 'import'> & {
|
|
58
|
+
params?: PARAMS;
|
|
59
|
+
import?: ImportSpec;
|
|
60
|
+
};
|
|
185
61
|
export interface DSLChildWorkflowStep extends DSLWorkflowStepBase {
|
|
186
62
|
type: 'workflow';
|
|
187
63
|
name: string;
|
|
@@ -268,6 +144,22 @@ export interface DSLWorkflowSpecWithActivities extends DSLWorkflowSpecBase {
|
|
|
268
144
|
* @discriminator spec_format
|
|
269
145
|
*/
|
|
270
146
|
export type DSLWorkflowSpec = DSLWorkflowSpecWithSteps | DSLWorkflowSpecWithActivities;
|
|
147
|
+
/**
|
|
148
|
+
* Legacy upsert fields the workflow-definition write endpoints still accept alongside a spec.
|
|
149
|
+
*
|
|
150
|
+
* A body carrying `id` updates that definition instead of creating one, with `updated_at` checked
|
|
151
|
+
* against the stored value for optimistic concurrency. All server-assigned on the read side, hence
|
|
152
|
+
* optional here and absent from {@link DSLWorkflowSpec}.
|
|
153
|
+
*/
|
|
154
|
+
export interface LegacyWorkflowDefinitionUpsertFields {
|
|
155
|
+
id?: string;
|
|
156
|
+
created_at?: string;
|
|
157
|
+
updated_at?: string;
|
|
158
|
+
}
|
|
159
|
+
export type WorkflowDefinitionPayloadWithSteps = DSLWorkflowSpecWithSteps & LegacyWorkflowDefinitionUpsertFields;
|
|
160
|
+
export type WorkflowDefinitionPayloadWithActivities = DSLWorkflowSpecWithActivities & LegacyWorkflowDefinitionUpsertFields;
|
|
161
|
+
/** The request body of `POST /workflows/definitions` and `PUT /workflows/definitions/:id`. */
|
|
162
|
+
export type WorkflowDefinitionPayload = WorkflowDefinitionPayloadWithSteps | WorkflowDefinitionPayloadWithActivities;
|
|
271
163
|
export declare function withDSLWorkflowSpecDiscriminator(spec: DSLWorkflowSpecBase): DSLWorkflowSpec;
|
|
272
164
|
export interface DSLWorkflowDefinition extends BaseObject, DSLWorkflowSpecBase {
|
|
273
165
|
input_schema?: Record<string, unknown>;
|
|
@@ -277,14 +169,7 @@ export interface DSLWorkflowDefinition extends BaseObject, DSLWorkflowSpecBase {
|
|
|
277
169
|
export interface DSLWorkflowDefinitionResponse extends DSLWorkflowDefinition {
|
|
278
170
|
spec_format: 'steps' | 'activities';
|
|
279
171
|
}
|
|
280
|
-
export
|
|
281
|
-
id: string;
|
|
282
|
-
name: string;
|
|
283
|
-
description?: string;
|
|
284
|
-
tags?: string[];
|
|
285
|
-
created_at: Date;
|
|
286
|
-
updated_at: Date;
|
|
287
|
-
}
|
|
172
|
+
export type WorkflowDefinitionRef = z.infer<typeof WorkflowDefinitionRefSchema>;
|
|
288
173
|
export declare const WorkflowDefinitionRefPopulate = "id name description tags created_at updated_at";
|
|
289
174
|
/**
|
|
290
175
|
* Payload sent to a remote activity endpoint on a tool server.
|
|
@@ -309,4 +194,5 @@ export interface RemoteActivityExecutionResponse {
|
|
|
309
194
|
/** Error message if is_error is true */
|
|
310
195
|
error?: string;
|
|
311
196
|
}
|
|
197
|
+
export {};
|
|
312
198
|
//# sourceMappingURL=dsl-workflow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dsl-workflow.d.ts","sourceRoot":"","sources":["../../src/store/dsl-workflow.ts"],"names":[],"mapp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IAE1E,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;IACxE,WAAW,EAAE,OAAO,GAAG,YAAY,CAAC;CACvC;AAED,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,6BAA6B,mDAAmD,CAAC;AAE9F;;;GAGG;AACH,MAAM,WAAW,8BAA8B,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC5F,kEAAkE;IAClE,aAAa,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,MAAM,EAAE,OAAO,CAAC;IAChB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C,gFAAgF;IAChF,MAAM,EAAE,OAAO,CAAC;IAChB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dsl-workflow.js","sourceRoot":"","sources":["../../src/store/dsl-workflow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dsl-workflow.js","sourceRoot":"","sources":["../../src/store/dsl-workflow.ts"],"names":[],"mappings":"AA+NA,MAAM,UAAU,gCAAgC,CAAC,IAAyB;IACtE,IAAI,OAAO,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QAChC,OAAO,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,OAAO,EAA8B,CAAC;IACzE,CAAC;IACD,OAAO,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,YAAY,EAAmC,CAAC;AACnF,CAAC;AAeD,MAAM,CAAC,MAAM,6BAA6B,GAAG,gDAAgD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editing-policy-schema.generated.d.ts","sourceRoot":"","sources":["../../src/store/editing-policy-schema.generated.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,8BAA8B,EAAE,UAU5C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// GENERATED FILE — DO NOT EDIT.
|
|
2
|
+
//
|
|
3
|
+
// Written by `scripts/gen-intake-policy-schema.ts` from `ContentTypeEditingPolicySchema` in
|
|
4
|
+
// `../api-schemas/store.ts`, through the same adapter that emits the OpenAPI components. Edit the Zod
|
|
5
|
+
// schema and re-run `pnpm run gen:schemas`; `store.contract.test.ts` fails if this drifts from the
|
|
6
|
+
// canonical component, and fails too if it accepts a value the Zod schema rejects.
|
|
7
|
+
//
|
|
8
|
+
// It exists so the Studio policy editors and the server validators get a self-contained JSON
|
|
9
|
+
// Schema without importing Zod: the package root exports plain data, and `zod` stays out of every
|
|
10
|
+
// browser bundle. The component's `$ref`s are re-rooted from `#/components/schemas/` to `#/$defs/`
|
|
11
|
+
// so AJV and Monaco can compile it standalone.
|
|
12
|
+
//
|
|
13
|
+
// It carries the name consumers have always imported. The Zod object it was emitted from is exported
|
|
14
|
+
// under the same name from `../api-schemas/store.ts`, which the package root does NOT re-export —
|
|
15
|
+
// that split is what keeps zod out of the browser while the alias-provenance gate still sees the
|
|
16
|
+
// `${Name}Schema` convention it requires.
|
|
17
|
+
export const ContentTypeEditingPolicySchema = {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
interaction: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'Agent interaction used for new document-editing sessions. Defaults to sys:GeneralAgent.',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
additionalProperties: false,
|
|
26
|
+
description: 'Per-content-type policy for collaborative document editing.',
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=editing-policy-schema.generated.js.map
|