@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Runtime schemas for the workflow runs API domain.
|
|
2
2
|
|
|
3
|
-
import { JSONObjectSchema, JSONSchemaSchema, JSONValueSchema
|
|
3
|
+
import { JSONObjectSchema, JSONSchemaSchema, JSONValueSchema } from '@llumiverse/common/schemas';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import type { ActivityTypeDefinition } from '../store/activity-catalog.js';
|
|
6
6
|
import { CompactMessageSchema } from './agent-runs.js';
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
UserChannelSchema,
|
|
14
14
|
} from './interaction.js';
|
|
15
15
|
import { nullableStringSchema } from './schema-primitives.js';
|
|
16
|
+
import { InteractionExecutionConfigurationSchema } from './store.js';
|
|
16
17
|
|
|
17
18
|
export const RestartAgentRunPayloadSchema = z
|
|
18
19
|
.strictObject({
|
|
@@ -63,6 +64,8 @@ export const ActivityTypeDefinitionSchema: z.ZodType<ActivityTypeDefinition> = z
|
|
|
63
64
|
innerType: ActivityTypeDefinitionSchema.optional(),
|
|
64
65
|
enum: z.union([z.array(z.string()), z.array(z.number())]).optional(),
|
|
65
66
|
union: z.array(ActivityTypeDefinitionSchema).optional(),
|
|
67
|
+
keyType: ActivityTypeDefinitionSchema.optional(),
|
|
68
|
+
valueType: ActivityTypeDefinitionSchema.optional(),
|
|
66
69
|
}),
|
|
67
70
|
)
|
|
68
71
|
.meta({ id: 'ActivityTypeDefinition' });
|
|
@@ -104,16 +107,13 @@ export const WorkflowInteractionVarsSchema = z
|
|
|
104
107
|
user_channels: z.array(UserChannelSchema).optional(),
|
|
105
108
|
data: JSONObjectSchema.optional(),
|
|
106
109
|
tool_names: z.array(z.string()),
|
|
107
|
-
config:
|
|
108
|
-
environment: z.string(),
|
|
109
|
-
model: z.string(),
|
|
110
|
-
model_options: ModelOptionsSchema.optional(),
|
|
111
|
-
}),
|
|
110
|
+
config: InteractionExecutionConfigurationSchema,
|
|
112
111
|
interactionParamsSchema: JSONSchemaSchema.optional(),
|
|
113
112
|
collection_id: z.string().optional(),
|
|
114
113
|
disabled_mcp_collections: z.array(z.string()).optional(),
|
|
115
114
|
checkpoint_tokens: z.number().optional(),
|
|
116
115
|
version: z.number().optional(),
|
|
116
|
+
agent_run_id: z.string().optional(),
|
|
117
117
|
})
|
|
118
118
|
.meta({ id: 'WorkflowInteractionVars' });
|
|
119
119
|
|
|
@@ -211,6 +211,7 @@ export const WorkflowRunSchema = z
|
|
|
211
211
|
.boolean()
|
|
212
212
|
.meta({ description: 'Whether this conversation is interactive (accepts user input).' })
|
|
213
213
|
.optional(),
|
|
214
|
+
memo: z.looseObject({}).nullable().optional(),
|
|
214
215
|
})
|
|
215
216
|
.meta({ id: 'WorkflowRun' });
|
|
216
217
|
|
|
@@ -620,8 +621,9 @@ export const WorkflowRunWithDetailsSchema = z
|
|
|
620
621
|
.meta({ description: 'Whether this conversation is interactive (accepts user input).' })
|
|
621
622
|
.optional(),
|
|
622
623
|
history: WorkflowHistorySchema.optional(),
|
|
623
|
-
memo: z.
|
|
624
|
+
memo: z.looseObject({}).nullable().optional(),
|
|
624
625
|
pendingActivities: z.array(PendingActivitySchema).optional(),
|
|
626
|
+
children: z.array(WorkflowRunSchema).optional(),
|
|
625
627
|
})
|
|
626
628
|
.meta({ id: 'WorkflowRunWithDetails' });
|
|
627
629
|
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { validateApiRequest, validateApiResponse } from './registry.js';
|
|
3
|
+
|
|
4
|
+
const timestamp = '2026-08-05T12:00:00.000Z';
|
|
5
|
+
|
|
6
|
+
const contentObject = {
|
|
7
|
+
id: '64b000000000000000000001',
|
|
8
|
+
name: 'Quarterly report',
|
|
9
|
+
updated_by: 'user:legacy',
|
|
10
|
+
created_by: 'user:legacy',
|
|
11
|
+
created_at: timestamp,
|
|
12
|
+
updated_at: timestamp,
|
|
13
|
+
location: '/Quarterly report',
|
|
14
|
+
status: 'ready',
|
|
15
|
+
properties: {},
|
|
16
|
+
revision: { root: '64b000000000000000000001', head: true },
|
|
17
|
+
sensitivity: 2,
|
|
18
|
+
compartments: ['finance'],
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const autonomousRun = {
|
|
22
|
+
id: '64b000000000000000000002',
|
|
23
|
+
account: '64b000000000000000000003',
|
|
24
|
+
project: '64b000000000000000000004',
|
|
25
|
+
run_kind: 'agent',
|
|
26
|
+
run_type: 'autonomous',
|
|
27
|
+
status: 'running',
|
|
28
|
+
started_by: 'user:legacy',
|
|
29
|
+
started_at: timestamp,
|
|
30
|
+
created_at: timestamp,
|
|
31
|
+
updated_at: timestamp,
|
|
32
|
+
interaction: 'sys:generic_question',
|
|
33
|
+
interactionRef: {
|
|
34
|
+
id: 'sys:generic_question',
|
|
35
|
+
name: 'Generic question',
|
|
36
|
+
endpoint: 'sys:generic_question',
|
|
37
|
+
status: 'code',
|
|
38
|
+
version: 0,
|
|
39
|
+
tags: [],
|
|
40
|
+
updated_at: timestamp,
|
|
41
|
+
},
|
|
42
|
+
environmentRef: {
|
|
43
|
+
id: '64b000000000000000000005',
|
|
44
|
+
name: 'Default',
|
|
45
|
+
type: 'environment',
|
|
46
|
+
},
|
|
47
|
+
config: {
|
|
48
|
+
environment: '64b000000000000000000005',
|
|
49
|
+
model: 'legacy-provider/model',
|
|
50
|
+
},
|
|
51
|
+
interactive: true,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const processRun = {
|
|
55
|
+
id: '64b000000000000000000009',
|
|
56
|
+
account: '64b000000000000000000003',
|
|
57
|
+
project: '64b000000000000000000004',
|
|
58
|
+
run_kind: 'process',
|
|
59
|
+
run_type: 'programmatic',
|
|
60
|
+
status: 'running',
|
|
61
|
+
started_by: 'user:legacy',
|
|
62
|
+
started_at: timestamp,
|
|
63
|
+
created_at: timestamp,
|
|
64
|
+
updated_at: timestamp,
|
|
65
|
+
process_definition_snapshot: {
|
|
66
|
+
format_version: 1,
|
|
67
|
+
process: 'Process',
|
|
68
|
+
initial: 'start',
|
|
69
|
+
context: { schema: {}, initial: {} },
|
|
70
|
+
nodes: { start: { type: 'final' } },
|
|
71
|
+
},
|
|
72
|
+
process_state: {
|
|
73
|
+
context: {},
|
|
74
|
+
current_node: 'start',
|
|
75
|
+
node_history: [],
|
|
76
|
+
node_history_ref: { path: 'history', latest_sequence: 0, count: 0 },
|
|
77
|
+
sequence: 0,
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
describe('Zeno read-side response contracts', () => {
|
|
82
|
+
it('accepts conversation metadata and enrichment controls when creating an agent run', () => {
|
|
83
|
+
expect(
|
|
84
|
+
validateApiRequest('CreateAgentRunPayload', {
|
|
85
|
+
interaction: 'sys:generic_question',
|
|
86
|
+
title: 'Manual title',
|
|
87
|
+
topic: 'Manual topic',
|
|
88
|
+
generate_topic: false,
|
|
89
|
+
generate_lessons: false,
|
|
90
|
+
}).valid,
|
|
91
|
+
).toBe(true);
|
|
92
|
+
expect(
|
|
93
|
+
validateApiRequest('RecordAgentRunPayload', {
|
|
94
|
+
interaction: 'sys:generic_question',
|
|
95
|
+
workflow_id: 'workflow-1',
|
|
96
|
+
first_workflow_run_id: 'run-1',
|
|
97
|
+
title: 'Manual title',
|
|
98
|
+
topic: 'Manual topic',
|
|
99
|
+
generate_topic: false,
|
|
100
|
+
generate_lessons: false,
|
|
101
|
+
}).valid,
|
|
102
|
+
).toBe(true);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
it('keeps the corresponding write contracts strict', () => {
|
|
106
|
+
expect(
|
|
107
|
+
validateApiRequest('CreateAgentRunPayload', {
|
|
108
|
+
interaction: 'sys:generic_question',
|
|
109
|
+
config: {
|
|
110
|
+
environment: '64b000000000000000000005',
|
|
111
|
+
model: 'legacy-provider/model',
|
|
112
|
+
model_options: { provider_extension: true },
|
|
113
|
+
},
|
|
114
|
+
}).valid,
|
|
115
|
+
).toBe(false);
|
|
116
|
+
expect(
|
|
117
|
+
validateApiRequest('CreateProcessDefinitionPayload', {
|
|
118
|
+
name: 'Legacy process',
|
|
119
|
+
definition: { process: 'Legacy', initial: 'start', context: {}, nodes: {} },
|
|
120
|
+
}).valid,
|
|
121
|
+
).toBe(false);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
it('accepts runtime model and effort status updates', () => {
|
|
125
|
+
expect(
|
|
126
|
+
validateApiRequest('UpdateAgentRunStatusPayload', {
|
|
127
|
+
model: 'gpt-5.6-sol',
|
|
128
|
+
effort: 'xhigh',
|
|
129
|
+
}).valid,
|
|
130
|
+
).toBe(true);
|
|
131
|
+
expect(validateApiRequest('UpdateAgentRunStatusPayload', { effort: null }).valid).toBe(true);
|
|
132
|
+
expect(validateApiRequest('UpdateAgentRunStatusPayload', { effort: 'unbounded' }).valid).toBe(false);
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
it('accepts normalized autonomous runs and projected refs', () => {
|
|
136
|
+
expect(validateApiResponse('AgentRun', autonomousRun).valid).toBe(true);
|
|
137
|
+
expect(validateApiResponse('AgentRunResponse', autonomousRun).valid).toBe(true);
|
|
138
|
+
expect(validateApiResponse('AgentRunResponse', processRun).valid).toBe(true);
|
|
139
|
+
expect(
|
|
140
|
+
validateApiResponse('ListAgentRunsResponse', {
|
|
141
|
+
items: [autonomousRun],
|
|
142
|
+
total_count: 1,
|
|
143
|
+
next_cursor: null,
|
|
144
|
+
}).valid,
|
|
145
|
+
).toBe(true);
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it('uses the current compact message contract for update responses', () => {
|
|
149
|
+
const response = { messages: [{ t: 2, d: { files: ['legacy-file-id'] } }] };
|
|
150
|
+
expect(validateApiResponse('AgentRunUpdatesResponse', response).valid).toBe(true);
|
|
151
|
+
expect(validateApiResponse('WorkflowRunUpdatesResponse', response).valid).toBe(true);
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
it('accepts normalized legacy collections and full or projected content objects', () => {
|
|
155
|
+
expect(
|
|
156
|
+
validateApiResponse('CollectionArray', [
|
|
157
|
+
{
|
|
158
|
+
id: '64b000000000000000000006',
|
|
159
|
+
name: 'Legacy',
|
|
160
|
+
created_by: '',
|
|
161
|
+
updated_by: '',
|
|
162
|
+
created_at: timestamp,
|
|
163
|
+
updated_at: timestamp,
|
|
164
|
+
dynamic: false,
|
|
165
|
+
status: 'active',
|
|
166
|
+
skip_head_sync: false,
|
|
167
|
+
parents: ['64b000000000000000000007'],
|
|
168
|
+
},
|
|
169
|
+
]).valid,
|
|
170
|
+
).toBe(true);
|
|
171
|
+
expect(validateApiResponse('ContentObjectApiResponse', contentObject).valid).toBe(true);
|
|
172
|
+
expect(validateApiResponse('ContentObjectApiResponseArray', [contentObject]).valid).toBe(true);
|
|
173
|
+
const { sensitivity: _sensitivity, compartments: _compartments, ...contentObjectItem } = contentObject;
|
|
174
|
+
expect(validateApiResponse('ContentObjectItemApiResponseArray', [contentObjectItem]).valid).toBe(true);
|
|
175
|
+
expect(validateApiResponse('ProjectedContentObjectApiResponse', { id: contentObject.id, score: 1 }).valid).toBe(
|
|
176
|
+
true,
|
|
177
|
+
);
|
|
178
|
+
expect(validateApiResponse('ProjectedContentObjectApiResponse', { id: contentObject.id, bogus: 1 }).valid).toBe(
|
|
179
|
+
false,
|
|
180
|
+
);
|
|
181
|
+
expect(
|
|
182
|
+
validateApiResponse('ObjectSearchResponse', {
|
|
183
|
+
results: [{ id: contentObject.id, score: 1 }],
|
|
184
|
+
facets: { total: 1 },
|
|
185
|
+
}).valid,
|
|
186
|
+
).toBe(true);
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
it('accepts display metadata on child-workflow steps', () => {
|
|
190
|
+
expect(
|
|
191
|
+
validateApiResponse('DSLWorkflowDefinitionResponse', {
|
|
192
|
+
id: 'workflow-1',
|
|
193
|
+
name: 'Parent workflow',
|
|
194
|
+
edit_revision: 1,
|
|
195
|
+
created_by: 'user-1',
|
|
196
|
+
updated_by: 'user-1',
|
|
197
|
+
created_at: timestamp,
|
|
198
|
+
updated_at: timestamp,
|
|
199
|
+
vars: {},
|
|
200
|
+
spec_format: 'steps',
|
|
201
|
+
steps: [
|
|
202
|
+
{
|
|
203
|
+
type: 'workflow',
|
|
204
|
+
name: 'childWorkflow',
|
|
205
|
+
title: 'Review documents',
|
|
206
|
+
description: 'Runs the review child workflow',
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
}).valid,
|
|
210
|
+
).toBe(true);
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
it('accepts explicit file, embedding, facet, and data-table wire objects', () => {
|
|
214
|
+
expect(
|
|
215
|
+
validateApiResponse('FileMetadataResponse', {
|
|
216
|
+
name: 'report.pdf',
|
|
217
|
+
size: 42,
|
|
218
|
+
contentType: 'application/pdf',
|
|
219
|
+
generation: '7',
|
|
220
|
+
}).valid,
|
|
221
|
+
).toBe(true);
|
|
222
|
+
expect(
|
|
223
|
+
validateApiResponse('SetObjectEmbeddingsResponse', {
|
|
224
|
+
type: { model: 'embed-v1', values: [0.1, 0.2], etag: 'abc' },
|
|
225
|
+
}).valid,
|
|
226
|
+
).toBe(true);
|
|
227
|
+
expect(
|
|
228
|
+
validateApiResponse('ComputedFacetResponse', { total: 3, status: [{ _id: 'ready', count: 3 }] }).valid,
|
|
229
|
+
).toBe(true);
|
|
230
|
+
// `total` is reserved for the match count: buckets belong under the facet's own name. The
|
|
231
|
+
// server rejects a facet named `total` with a 400, so an array can never reach this field.
|
|
232
|
+
expect(validateApiResponse('ComputedFacetResponse', { total: [{ _id: 'ready', count: 3 }] }).valid).toBe(false);
|
|
233
|
+
expect(
|
|
234
|
+
validateApiResponse('DataTable', {
|
|
235
|
+
name: 'invoices',
|
|
236
|
+
columns: [{ name: 'id', type: 'STRING' }],
|
|
237
|
+
tags: [],
|
|
238
|
+
created_at: timestamp,
|
|
239
|
+
updated_at: timestamp,
|
|
240
|
+
}).valid,
|
|
241
|
+
).toBe(true);
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
it('accepts workflow memo, children, and interaction snapshots', () => {
|
|
245
|
+
const workflow = {
|
|
246
|
+
started_at: timestamp,
|
|
247
|
+
closed_at: null,
|
|
248
|
+
initiated_by: 'user:legacy',
|
|
249
|
+
memo: { InitiatedBy: { data: 'legacy' } },
|
|
250
|
+
};
|
|
251
|
+
expect(validateApiResponse('ListWorkflowRunsResponse', { runs: [workflow] }).valid).toBe(true);
|
|
252
|
+
expect(
|
|
253
|
+
validateApiResponse('WorkflowRunWithDetails', {
|
|
254
|
+
...workflow,
|
|
255
|
+
children: [{ started_at: timestamp, closed_at: null }],
|
|
256
|
+
}).valid,
|
|
257
|
+
).toBe(true);
|
|
258
|
+
expect(
|
|
259
|
+
validateApiResponse('ListWorkflowInteractionsResponse', {
|
|
260
|
+
workflow_id: 'workflow-1',
|
|
261
|
+
run_id: 'run-1',
|
|
262
|
+
interaction: {
|
|
263
|
+
type: 'conversation',
|
|
264
|
+
interaction: 'legacy',
|
|
265
|
+
interactive: true,
|
|
266
|
+
tool_names: [],
|
|
267
|
+
config: {
|
|
268
|
+
environment: '64b000000000000000000005',
|
|
269
|
+
model: 'model',
|
|
270
|
+
},
|
|
271
|
+
agent_run_id: 'run-1',
|
|
272
|
+
},
|
|
273
|
+
}).valid,
|
|
274
|
+
).toBe(true);
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
it('accepts record key and value types in the generated activity catalog', () => {
|
|
278
|
+
expect(
|
|
279
|
+
validateApiResponse('ActivityCatalog', {
|
|
280
|
+
activities: [
|
|
281
|
+
{
|
|
282
|
+
name: 'countByStatus',
|
|
283
|
+
title: 'Count By Status',
|
|
284
|
+
paramsType: 'CountByStatusParams',
|
|
285
|
+
params: [
|
|
286
|
+
{
|
|
287
|
+
name: 'counts',
|
|
288
|
+
optional: false,
|
|
289
|
+
type: {
|
|
290
|
+
name: 'record',
|
|
291
|
+
value: 'Record<string, number>',
|
|
292
|
+
keyType: { name: 'string', value: 'string' },
|
|
293
|
+
valueType: { name: 'number', value: 'number' },
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
}).valid,
|
|
300
|
+
).toBe(true);
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
it('accepts process context, history, and current process definitions', () => {
|
|
304
|
+
expect(
|
|
305
|
+
validateApiResponse('ProcessContextResponse', {
|
|
306
|
+
run_id: 'run-1',
|
|
307
|
+
current_node: 'review',
|
|
308
|
+
context: { invoice_id: 'inv-1' },
|
|
309
|
+
}).valid,
|
|
310
|
+
).toBe(true);
|
|
311
|
+
expect(
|
|
312
|
+
validateApiResponse('ProcessHistoryResponse', {
|
|
313
|
+
run_id: 'run-1',
|
|
314
|
+
current_node: 'review',
|
|
315
|
+
node_history: [{ node: 'review', entered_at: timestamp, status: 'running' }],
|
|
316
|
+
node_history_ref: { path: 'history', latest_sequence: 1, count: 1 },
|
|
317
|
+
}).valid,
|
|
318
|
+
).toBe(true);
|
|
319
|
+
expect(
|
|
320
|
+
validateApiResponse('ProcessDefinitionArray', [
|
|
321
|
+
{
|
|
322
|
+
id: '64b000000000000000000008',
|
|
323
|
+
account: '64b000000000000000000003',
|
|
324
|
+
project: '64b000000000000000000004',
|
|
325
|
+
edit_revision: 1,
|
|
326
|
+
name: 'Legacy process',
|
|
327
|
+
status: 'draft',
|
|
328
|
+
version: 1,
|
|
329
|
+
definition: {
|
|
330
|
+
format_version: 1,
|
|
331
|
+
process: 'Process',
|
|
332
|
+
initial: 'start',
|
|
333
|
+
context: { schema: {}, initial: {} },
|
|
334
|
+
nodes: { start: { type: 'final' } },
|
|
335
|
+
},
|
|
336
|
+
created_at: timestamp,
|
|
337
|
+
updated_at: timestamp,
|
|
338
|
+
created_by: 'user:legacy',
|
|
339
|
+
updated_by: 'user:legacy',
|
|
340
|
+
},
|
|
341
|
+
]).valid,
|
|
342
|
+
).toBe(true);
|
|
343
|
+
});
|
|
344
|
+
});
|
package/src/apps.test.ts
CHANGED
|
@@ -4,15 +4,12 @@ import {
|
|
|
4
4
|
AppEventSubscriptionDefinitionSchema,
|
|
5
5
|
AppPackageHooksSchema,
|
|
6
6
|
} from './api-schemas/app-runtime.js';
|
|
7
|
-
import {
|
|
7
|
+
import { APP_CAPABILITIES, APP_PACKAGE_SCOPES } from './apps.js';
|
|
8
8
|
|
|
9
9
|
describe('app capability contracts', () => {
|
|
10
|
-
it('keeps views in manifest
|
|
10
|
+
it('keeps views in the manifest and package contracts', () => {
|
|
11
11
|
expect(APP_CAPABILITIES).toContain('views');
|
|
12
12
|
expect(APP_PACKAGE_SCOPES).toContain('views');
|
|
13
|
-
expect(APP_ARTIFACT_TYPES).toContain('view');
|
|
14
|
-
expect(APP_ARTIFACT_TYPES).toContain('hook');
|
|
15
|
-
expect(APP_ARTIFACT_TYPES).toContain('subscription');
|
|
16
13
|
});
|
|
17
14
|
|
|
18
15
|
it('exposes app hooks as a package query scope', () => {
|
|
@@ -90,38 +87,3 @@ describe('app capability contracts', () => {
|
|
|
90
87
|
});
|
|
91
88
|
});
|
|
92
89
|
});
|
|
93
|
-
|
|
94
|
-
describe('effectiveAppAccessControl', () => {
|
|
95
|
-
it("returns 'all' when neither installation nor manifest set the field", () => {
|
|
96
|
-
expect(effectiveAppAccessControl({}, {})).toBe('all');
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
it("returns 'all' when both inputs are null/undefined", () => {
|
|
100
|
-
expect(effectiveAppAccessControl(null, null)).toBe('all');
|
|
101
|
-
expect(effectiveAppAccessControl(undefined, undefined)).toBe('all');
|
|
102
|
-
expect(effectiveAppAccessControl(null, undefined)).toBe('all');
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
it('falls back to the manifest default when the installation has no override', () => {
|
|
106
|
-
expect(effectiveAppAccessControl({}, { access_control: 'ui' })).toBe('ui');
|
|
107
|
-
expect(effectiveAppAccessControl({}, { access_control: 'none' })).toBe('none');
|
|
108
|
-
expect(effectiveAppAccessControl({}, { access_control: 'all' })).toBe('all');
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
it('lets the installation override the manifest default for all three values', () => {
|
|
112
|
-
expect(effectiveAppAccessControl({ access_control: 'ui' }, { access_control: 'all' })).toBe('ui');
|
|
113
|
-
expect(effectiveAppAccessControl({ access_control: 'none' }, { access_control: 'ui' })).toBe('none');
|
|
114
|
-
expect(effectiveAppAccessControl({ access_control: 'all' }, { access_control: 'none' })).toBe('all');
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
it('treats null arguments the same as undefined', () => {
|
|
118
|
-
expect(effectiveAppAccessControl(null, { access_control: 'ui' })).toBe('ui');
|
|
119
|
-
expect(effectiveAppAccessControl({ access_control: 'ui' }, null)).toBe('ui');
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
it('treats null/undefined access_control fields the same as the field being absent', () => {
|
|
123
|
-
expect(effectiveAppAccessControl({ access_control: undefined }, { access_control: 'ui' })).toBe('ui');
|
|
124
|
-
// The override accepts AppAccessControl | null at the payload boundary; nullish should fall through.
|
|
125
|
-
expect(effectiveAppAccessControl({ access_control: undefined }, { access_control: undefined })).toBe('all');
|
|
126
|
-
});
|
|
127
|
-
});
|