@vertesia/common 1.5.0-dev.20260725.083715Z → 1.5.0-dev.20260806.125520Z
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/Progress.d.ts.map +1 -1
- package/lib/Progress.js.map +1 -1
- 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 +3786 -0
- package/lib/api-schemas/agent-runs.d.ts.map +1 -0
- package/lib/api-schemas/agent-runs.js +1000 -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 +1148 -0
- package/lib/api-schemas/app-lifecycle.d.ts.map +1 -0
- package/lib/api-schemas/app-lifecycle.js +801 -0
- package/lib/api-schemas/app-lifecycle.js.map +1 -0
- package/lib/api-schemas/app-runtime.d.ts +10951 -0
- package/lib/api-schemas/app-runtime.d.ts.map +1 -0
- package/lib/api-schemas/app-runtime.js +874 -0
- package/lib/api-schemas/app-runtime.js.map +1 -0
- package/lib/api-schemas/apps.d.ts +271 -0
- package/lib/api-schemas/apps.d.ts.map +1 -0
- package/lib/api-schemas/apps.js +426 -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 +3565 -0
- package/lib/api-schemas/content.d.ts.map +1 -0
- package/lib/api-schemas/content.js +854 -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 +4918 -0
- package/lib/api-schemas/events.d.ts.map +1 -0
- package/lib/api-schemas/events.js +888 -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 +22456 -0
- package/lib/api-schemas/interaction.d.ts.map +1 -0
- package/lib/api-schemas/interaction.js +2071 -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 +98506 -0
- package/lib/api-schemas/registry.d.ts.map +1 -0
- package/lib/api-schemas/registry.js +2606 -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 +166 -0
- package/lib/api-schemas/sts.d.ts.map +1 -0
- package/lib/api-schemas/sts.js +107 -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 +2210 -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 +142 -1172
- package/lib/apps.d.ts.map +1 -1
- package/lib/apps.js +4 -0
- 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 +20 -131
- 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 +22 -118
- 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 +8 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- 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 +88 -778
- package/lib/interaction.d.ts.map +1 -1
- package/lib/interaction.js +8 -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-validation.d.ts.map +1 -1
- package/lib/platform-event-validation.js +15 -2
- package/lib/platform-event-validation.js.map +1 -1
- package/lib/platform-event.d.ts +79 -464
- 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 +56 -504
- 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/schema-for-extraction.js.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 +6 -15
- 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 +57 -358
- 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 +61 -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 +81 -1
- 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/schedule.d.ts +6 -6
- package/lib/store/schedule.d.ts.map +1 -1
- package/lib/store/store.d.ts +99 -701
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +4 -456
- 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 +58 -516
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js +31 -11
- package/lib/store/workflow.js.map +1 -1
- package/lib/sts-errors.d.ts +7 -0
- package/lib/sts-errors.d.ts.map +1 -0
- package/lib/sts-errors.js +11 -0
- package/lib/sts-errors.js.map +1 -0
- package/lib/sts-token-types.d.ts +13 -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 +55 -156
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js +2 -79
- package/lib/user.js.map +1 -1
- package/lib/versions.d.ts +34 -1
- package/lib/versions.d.ts.map +1 -1
- package/lib/versions.js +33 -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/view-configuration-validation.js.map +1 -1
- package/lib/view-query-validation.js.map +1 -1
- package/lib/view-validation-helpers.d.ts +1 -1
- package/lib/view-validation-helpers.d.ts.map +1 -1
- package/lib/views-schema.d.ts +51 -51
- package/lib/views-schema.d.ts.map +1 -1
- package/lib/views-validation.js.map +1 -1
- package/lib/views.d.ts +58 -314
- package/lib/views.d.ts.map +1 -1
- package/lib/views.js.map +1 -1
- package/lib/workflow-analytics.d.ts +10 -3
- package/lib/workflow-analytics.d.ts.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/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 +1091 -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-delete-summary.contract.test.ts +67 -0
- package/src/api-schemas/app-lifecycle.ts +900 -0
- package/src/api-schemas/app-runtime.ts +1022 -0
- package/src/api-schemas/apps.ts +484 -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 +952 -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 +981 -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.contract.test.ts +27 -0
- package/src/api-schemas/interaction.ts +2364 -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/mcp-api-key.contract.test.ts +86 -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 +3512 -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 +471 -0
- package/src/api-schemas/store.ts +604 -0
- package/src/api-schemas/sts.contract.test.ts +112 -0
- package/src/api-schemas/sts.ts +123 -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.test.ts +82 -0
- package/src/apps.ts +283 -1228
- 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 -126
- package/src/facets.ts +4 -7
- package/src/group.ts +38 -42
- package/src/index.ts +12 -0
- package/src/integrations.ts +39 -129
- package/src/interaction-values.ts +23 -0
- package/src/interaction.ts +162 -902
- 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-validation.test.ts +26 -0
- package/src/platform-event-validation.ts +15 -2
- package/src/platform-event.ts +141 -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 +93 -450
- package/src/store/collections.ts +21 -63
- package/src/store/content-type-editing.test.ts +1 -1
- package/src/store/conversation-state.ts +75 -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 -1204
- package/src/store/task.ts +25 -59
- package/src/store/workflow.ts +103 -554
- package/src/sts-errors.ts +13 -0
- package/src/sts-token-types.ts +26 -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 +75 -215
- package/src/versions.test.ts +13 -0
- package/src/versions.ts +36 -0
- package/src/views-schema.test.ts +9 -1
- package/src/views.ts +106 -329
- package/src/workflow-analytics.ts +10 -3
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AuditMeterSchema: z.ZodObject<{
|
|
3
|
+
category: z.ZodString;
|
|
4
|
+
type: z.ZodString;
|
|
5
|
+
quantity: z.ZodNumber;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export declare const KnownAuditActionSchema: z.ZodEnum<{
|
|
8
|
+
attach: "attach";
|
|
9
|
+
bulk_change_type: "bulk_change_type";
|
|
10
|
+
bulk_create: "bulk_create";
|
|
11
|
+
bulk_delete: "bulk_delete";
|
|
12
|
+
bulk_update: "bulk_update";
|
|
13
|
+
create: "create";
|
|
14
|
+
credentials_fill: "credentials_fill";
|
|
15
|
+
credentials_totp_generation: "credentials_totp_generation";
|
|
16
|
+
delete: "delete";
|
|
17
|
+
detach: "detach";
|
|
18
|
+
document_processed: "document_processed";
|
|
19
|
+
embedding: "embedding";
|
|
20
|
+
image_generation: "image_generation";
|
|
21
|
+
inference: "inference";
|
|
22
|
+
publish: "publish";
|
|
23
|
+
unpublish: "unpublish";
|
|
24
|
+
update: "update";
|
|
25
|
+
}>;
|
|
26
|
+
export declare const EventCategorySchema: z.ZodEnum<{
|
|
27
|
+
billing: "billing";
|
|
28
|
+
content: "content";
|
|
29
|
+
external: "external";
|
|
30
|
+
security: "security";
|
|
31
|
+
system: "system";
|
|
32
|
+
workflow: "workflow";
|
|
33
|
+
}>;
|
|
34
|
+
export declare const AuditAggregationDimensionMapSchema: z.ZodObject<{
|
|
35
|
+
time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
resource_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
event_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
'details.pipeline': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
'details.verdict': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
'details.workflow_type': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
'details.rule_id': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
export declare const AuditAggregationDistinctFieldSchema: z.ZodEnum<{
|
|
48
|
+
request_id: "request_id";
|
|
49
|
+
resource_id: "resource_id";
|
|
50
|
+
}>;
|
|
51
|
+
export declare const AuditAggregationOperationSchema: z.ZodEnum<{
|
|
52
|
+
average_meter: "average_meter";
|
|
53
|
+
count: "count";
|
|
54
|
+
count_distinct: "count_distinct";
|
|
55
|
+
sum_meter: "sum_meter";
|
|
56
|
+
}>;
|
|
57
|
+
export declare const AuditAggregationResolutionSchema: z.ZodEnum<{
|
|
58
|
+
day: "day";
|
|
59
|
+
hour: "hour";
|
|
60
|
+
month: "month";
|
|
61
|
+
week: "week";
|
|
62
|
+
}>;
|
|
63
|
+
export declare const AuditAggregationDimensionSchema: z.ZodEnum<{
|
|
64
|
+
action: "action";
|
|
65
|
+
"details.pipeline": "details.pipeline";
|
|
66
|
+
"details.rule_id": "details.rule_id";
|
|
67
|
+
"details.verdict": "details.verdict";
|
|
68
|
+
"details.workflow_type": "details.workflow_type";
|
|
69
|
+
event_category: "event_category";
|
|
70
|
+
model: "model";
|
|
71
|
+
project_id: "project_id";
|
|
72
|
+
provider: "provider";
|
|
73
|
+
resource_type: "resource_type";
|
|
74
|
+
time: "time";
|
|
75
|
+
}>;
|
|
76
|
+
export declare const AuditAggregationDetailFieldSchema: z.ZodEnum<{
|
|
77
|
+
pipeline: "pipeline";
|
|
78
|
+
rule_id: "rule_id";
|
|
79
|
+
verdict: "verdict";
|
|
80
|
+
workflow_type: "workflow_type";
|
|
81
|
+
}>;
|
|
82
|
+
export declare const AuditActionSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
83
|
+
attach: "attach";
|
|
84
|
+
bulk_change_type: "bulk_change_type";
|
|
85
|
+
bulk_create: "bulk_create";
|
|
86
|
+
bulk_delete: "bulk_delete";
|
|
87
|
+
bulk_update: "bulk_update";
|
|
88
|
+
create: "create";
|
|
89
|
+
credentials_fill: "credentials_fill";
|
|
90
|
+
credentials_totp_generation: "credentials_totp_generation";
|
|
91
|
+
delete: "delete";
|
|
92
|
+
detach: "detach";
|
|
93
|
+
document_processed: "document_processed";
|
|
94
|
+
embedding: "embedding";
|
|
95
|
+
image_generation: "image_generation";
|
|
96
|
+
inference: "inference";
|
|
97
|
+
publish: "publish";
|
|
98
|
+
unpublish: "unpublish";
|
|
99
|
+
update: "update";
|
|
100
|
+
}>, z.ZodString]>;
|
|
101
|
+
export declare const AuditAggregationRowSchema: z.ZodObject<{
|
|
102
|
+
dimensions: z.ZodObject<{
|
|
103
|
+
time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
resource_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
event_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
'details.pipeline': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
'details.verdict': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
'details.workflow_type': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
'details.rule_id': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
metrics: z.ZodObject<{}, z.core.$catchall<z.ZodNumber>>;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
export declare const AuditAggregationMetricSchema: z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
operation: z.ZodEnum<{
|
|
120
|
+
average_meter: "average_meter";
|
|
121
|
+
count: "count";
|
|
122
|
+
count_distinct: "count_distinct";
|
|
123
|
+
sum_meter: "sum_meter";
|
|
124
|
+
}>;
|
|
125
|
+
field: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
request_id: "request_id";
|
|
127
|
+
resource_id: "resource_id";
|
|
128
|
+
}>>;
|
|
129
|
+
meterCategory: z.ZodOptional<z.ZodString>;
|
|
130
|
+
meterType: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
export declare const AuditAggregationGroupSchema: z.ZodObject<{
|
|
133
|
+
dimension: z.ZodEnum<{
|
|
134
|
+
action: "action";
|
|
135
|
+
"details.pipeline": "details.pipeline";
|
|
136
|
+
"details.rule_id": "details.rule_id";
|
|
137
|
+
"details.verdict": "details.verdict";
|
|
138
|
+
"details.workflow_type": "details.workflow_type";
|
|
139
|
+
event_category: "event_category";
|
|
140
|
+
model: "model";
|
|
141
|
+
project_id: "project_id";
|
|
142
|
+
provider: "provider";
|
|
143
|
+
resource_type: "resource_type";
|
|
144
|
+
time: "time";
|
|
145
|
+
}>;
|
|
146
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
147
|
+
day: "day";
|
|
148
|
+
hour: "hour";
|
|
149
|
+
month: "month";
|
|
150
|
+
week: "week";
|
|
151
|
+
}>>;
|
|
152
|
+
}, z.core.$strict>;
|
|
153
|
+
export declare const AuditAggregationDetailFilterSchema: z.ZodObject<{
|
|
154
|
+
field: z.ZodEnum<{
|
|
155
|
+
pipeline: "pipeline";
|
|
156
|
+
rule_id: "rule_id";
|
|
157
|
+
verdict: "verdict";
|
|
158
|
+
workflow_type: "workflow_type";
|
|
159
|
+
}>;
|
|
160
|
+
values: z.ZodArray<z.ZodString>;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
export declare const AuditTrailEventSchema: z.ZodObject<{
|
|
163
|
+
event_type: z.ZodLiteral<"audit">;
|
|
164
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
165
|
+
event_category: z.ZodOptional<z.ZodEnum<{
|
|
166
|
+
billing: "billing";
|
|
167
|
+
content: "content";
|
|
168
|
+
external: "external";
|
|
169
|
+
security: "security";
|
|
170
|
+
system: "system";
|
|
171
|
+
workflow: "workflow";
|
|
172
|
+
}>>;
|
|
173
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
root_event_id: z.ZodOptional<z.ZodString>;
|
|
175
|
+
caused_by_event_id: z.ZodOptional<z.ZodString>;
|
|
176
|
+
hop_count: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
audit_trail: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
replay_of: z.ZodOptional<z.ZodString>;
|
|
179
|
+
replay_root_event_id: z.ZodOptional<z.ZodString>;
|
|
180
|
+
replayed_by: z.ZodOptional<z.ZodString>;
|
|
181
|
+
action: z.ZodUnion<readonly [z.ZodEnum<{
|
|
182
|
+
attach: "attach";
|
|
183
|
+
bulk_change_type: "bulk_change_type";
|
|
184
|
+
bulk_create: "bulk_create";
|
|
185
|
+
bulk_delete: "bulk_delete";
|
|
186
|
+
bulk_update: "bulk_update";
|
|
187
|
+
create: "create";
|
|
188
|
+
credentials_fill: "credentials_fill";
|
|
189
|
+
credentials_totp_generation: "credentials_totp_generation";
|
|
190
|
+
delete: "delete";
|
|
191
|
+
detach: "detach";
|
|
192
|
+
document_processed: "document_processed";
|
|
193
|
+
embedding: "embedding";
|
|
194
|
+
image_generation: "image_generation";
|
|
195
|
+
inference: "inference";
|
|
196
|
+
publish: "publish";
|
|
197
|
+
unpublish: "unpublish";
|
|
198
|
+
update: "update";
|
|
199
|
+
}>, z.ZodString]>;
|
|
200
|
+
resource_type: z.ZodString;
|
|
201
|
+
resource_id: z.ZodString;
|
|
202
|
+
timestamp: z.ZodString;
|
|
203
|
+
request_id: z.ZodString;
|
|
204
|
+
status: z.ZodNumber;
|
|
205
|
+
success: z.ZodBoolean;
|
|
206
|
+
principal_id: z.ZodNullable<z.ZodString>;
|
|
207
|
+
principal_type: z.ZodNullable<z.ZodString>;
|
|
208
|
+
effective_principal_id: z.ZodNullable<z.ZodString>;
|
|
209
|
+
roles: z.ZodArray<z.ZodString>;
|
|
210
|
+
account_id: z.ZodNullable<z.ZodString>;
|
|
211
|
+
project_id: z.ZodNullable<z.ZodString>;
|
|
212
|
+
tenant_id: z.ZodNullable<z.ZodString>;
|
|
213
|
+
account_name: z.ZodNullable<z.ZodString>;
|
|
214
|
+
project_name: z.ZodNullable<z.ZodString>;
|
|
215
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
|
+
meters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
217
|
+
category: z.ZodString;
|
|
218
|
+
type: z.ZodString;
|
|
219
|
+
quantity: z.ZodNumber;
|
|
220
|
+
}, z.core.$strict>>>;
|
|
221
|
+
details: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
222
|
+
}, z.core.$strict>;
|
|
223
|
+
export declare const AuditAggregationResponseSchema: z.ZodObject<{
|
|
224
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
225
|
+
dimensions: z.ZodObject<{
|
|
226
|
+
time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
|
+
resource_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
|
+
event_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
|
+
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
'details.pipeline': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
|
+
'details.verdict': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
|
+
'details.workflow_type': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
|
+
'details.rule_id': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
236
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
|
+
}, z.core.$strict>;
|
|
238
|
+
metrics: z.ZodObject<{}, z.core.$catchall<z.ZodNumber>>;
|
|
239
|
+
}, z.core.$strict>>;
|
|
240
|
+
from: z.ZodString;
|
|
241
|
+
to: z.ZodString;
|
|
242
|
+
}, z.core.$strict>;
|
|
243
|
+
export declare const AuditAggregationFilterSchema: z.ZodObject<{
|
|
244
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
245
|
+
attach: "attach";
|
|
246
|
+
bulk_change_type: "bulk_change_type";
|
|
247
|
+
bulk_create: "bulk_create";
|
|
248
|
+
bulk_delete: "bulk_delete";
|
|
249
|
+
bulk_update: "bulk_update";
|
|
250
|
+
create: "create";
|
|
251
|
+
credentials_fill: "credentials_fill";
|
|
252
|
+
credentials_totp_generation: "credentials_totp_generation";
|
|
253
|
+
delete: "delete";
|
|
254
|
+
detach: "detach";
|
|
255
|
+
document_processed: "document_processed";
|
|
256
|
+
embedding: "embedding";
|
|
257
|
+
image_generation: "image_generation";
|
|
258
|
+
inference: "inference";
|
|
259
|
+
publish: "publish";
|
|
260
|
+
unpublish: "unpublish";
|
|
261
|
+
update: "update";
|
|
262
|
+
}>, z.ZodString]>>>;
|
|
263
|
+
resourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
264
|
+
eventCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
265
|
+
billing: "billing";
|
|
266
|
+
content: "content";
|
|
267
|
+
external: "external";
|
|
268
|
+
security: "security";
|
|
269
|
+
system: "system";
|
|
270
|
+
workflow: "workflow";
|
|
271
|
+
}>>>;
|
|
272
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
273
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
274
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
275
|
+
field: z.ZodEnum<{
|
|
276
|
+
pipeline: "pipeline";
|
|
277
|
+
rule_id: "rule_id";
|
|
278
|
+
verdict: "verdict";
|
|
279
|
+
workflow_type: "workflow_type";
|
|
280
|
+
}>;
|
|
281
|
+
values: z.ZodArray<z.ZodString>;
|
|
282
|
+
}, z.core.$strict>>>;
|
|
283
|
+
}, z.core.$strict>;
|
|
284
|
+
export declare const AuditTrailResponseSchema: z.ZodObject<{
|
|
285
|
+
events: z.ZodArray<z.ZodObject<{
|
|
286
|
+
event_type: z.ZodLiteral<"audit">;
|
|
287
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
288
|
+
event_category: z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
billing: "billing";
|
|
290
|
+
content: "content";
|
|
291
|
+
external: "external";
|
|
292
|
+
security: "security";
|
|
293
|
+
system: "system";
|
|
294
|
+
workflow: "workflow";
|
|
295
|
+
}>>;
|
|
296
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
root_event_id: z.ZodOptional<z.ZodString>;
|
|
298
|
+
caused_by_event_id: z.ZodOptional<z.ZodString>;
|
|
299
|
+
hop_count: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
audit_trail: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
+
replay_of: z.ZodOptional<z.ZodString>;
|
|
302
|
+
replay_root_event_id: z.ZodOptional<z.ZodString>;
|
|
303
|
+
replayed_by: z.ZodOptional<z.ZodString>;
|
|
304
|
+
action: z.ZodUnion<readonly [z.ZodEnum<{
|
|
305
|
+
attach: "attach";
|
|
306
|
+
bulk_change_type: "bulk_change_type";
|
|
307
|
+
bulk_create: "bulk_create";
|
|
308
|
+
bulk_delete: "bulk_delete";
|
|
309
|
+
bulk_update: "bulk_update";
|
|
310
|
+
create: "create";
|
|
311
|
+
credentials_fill: "credentials_fill";
|
|
312
|
+
credentials_totp_generation: "credentials_totp_generation";
|
|
313
|
+
delete: "delete";
|
|
314
|
+
detach: "detach";
|
|
315
|
+
document_processed: "document_processed";
|
|
316
|
+
embedding: "embedding";
|
|
317
|
+
image_generation: "image_generation";
|
|
318
|
+
inference: "inference";
|
|
319
|
+
publish: "publish";
|
|
320
|
+
unpublish: "unpublish";
|
|
321
|
+
update: "update";
|
|
322
|
+
}>, z.ZodString]>;
|
|
323
|
+
resource_type: z.ZodString;
|
|
324
|
+
resource_id: z.ZodString;
|
|
325
|
+
timestamp: z.ZodString;
|
|
326
|
+
request_id: z.ZodString;
|
|
327
|
+
status: z.ZodNumber;
|
|
328
|
+
success: z.ZodBoolean;
|
|
329
|
+
principal_id: z.ZodNullable<z.ZodString>;
|
|
330
|
+
principal_type: z.ZodNullable<z.ZodString>;
|
|
331
|
+
effective_principal_id: z.ZodNullable<z.ZodString>;
|
|
332
|
+
roles: z.ZodArray<z.ZodString>;
|
|
333
|
+
account_id: z.ZodNullable<z.ZodString>;
|
|
334
|
+
project_id: z.ZodNullable<z.ZodString>;
|
|
335
|
+
tenant_id: z.ZodNullable<z.ZodString>;
|
|
336
|
+
account_name: z.ZodNullable<z.ZodString>;
|
|
337
|
+
project_name: z.ZodNullable<z.ZodString>;
|
|
338
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
|
+
meters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
340
|
+
category: z.ZodString;
|
|
341
|
+
type: z.ZodString;
|
|
342
|
+
quantity: z.ZodNumber;
|
|
343
|
+
}, z.core.$strict>>>;
|
|
344
|
+
details: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
345
|
+
}, z.core.$strict>>;
|
|
346
|
+
hasNext: z.ZodBoolean;
|
|
347
|
+
limit: z.ZodNumber;
|
|
348
|
+
offset: z.ZodNumber;
|
|
349
|
+
}, z.core.$strict>;
|
|
350
|
+
export declare const AuditAggregationQuerySchema: z.ZodObject<{
|
|
351
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
352
|
+
from: z.ZodOptional<z.ZodString>;
|
|
353
|
+
to: z.ZodOptional<z.ZodString>;
|
|
354
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
355
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
356
|
+
attach: "attach";
|
|
357
|
+
bulk_change_type: "bulk_change_type";
|
|
358
|
+
bulk_create: "bulk_create";
|
|
359
|
+
bulk_delete: "bulk_delete";
|
|
360
|
+
bulk_update: "bulk_update";
|
|
361
|
+
create: "create";
|
|
362
|
+
credentials_fill: "credentials_fill";
|
|
363
|
+
credentials_totp_generation: "credentials_totp_generation";
|
|
364
|
+
delete: "delete";
|
|
365
|
+
detach: "detach";
|
|
366
|
+
document_processed: "document_processed";
|
|
367
|
+
embedding: "embedding";
|
|
368
|
+
image_generation: "image_generation";
|
|
369
|
+
inference: "inference";
|
|
370
|
+
publish: "publish";
|
|
371
|
+
unpublish: "unpublish";
|
|
372
|
+
update: "update";
|
|
373
|
+
}>, z.ZodString]>>>;
|
|
374
|
+
resourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
375
|
+
eventCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
376
|
+
billing: "billing";
|
|
377
|
+
content: "content";
|
|
378
|
+
external: "external";
|
|
379
|
+
security: "security";
|
|
380
|
+
system: "system";
|
|
381
|
+
workflow: "workflow";
|
|
382
|
+
}>>>;
|
|
383
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
384
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
385
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
386
|
+
field: z.ZodEnum<{
|
|
387
|
+
pipeline: "pipeline";
|
|
388
|
+
rule_id: "rule_id";
|
|
389
|
+
verdict: "verdict";
|
|
390
|
+
workflow_type: "workflow_type";
|
|
391
|
+
}>;
|
|
392
|
+
values: z.ZodArray<z.ZodString>;
|
|
393
|
+
}, z.core.$strict>>>;
|
|
394
|
+
}, z.core.$strict>>;
|
|
395
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
396
|
+
dimension: z.ZodEnum<{
|
|
397
|
+
action: "action";
|
|
398
|
+
"details.pipeline": "details.pipeline";
|
|
399
|
+
"details.rule_id": "details.rule_id";
|
|
400
|
+
"details.verdict": "details.verdict";
|
|
401
|
+
"details.workflow_type": "details.workflow_type";
|
|
402
|
+
event_category: "event_category";
|
|
403
|
+
model: "model";
|
|
404
|
+
project_id: "project_id";
|
|
405
|
+
provider: "provider";
|
|
406
|
+
resource_type: "resource_type";
|
|
407
|
+
time: "time";
|
|
408
|
+
}>;
|
|
409
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
410
|
+
day: "day";
|
|
411
|
+
hour: "hour";
|
|
412
|
+
month: "month";
|
|
413
|
+
week: "week";
|
|
414
|
+
}>>;
|
|
415
|
+
}, z.core.$strict>>>;
|
|
416
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
417
|
+
id: z.ZodString;
|
|
418
|
+
operation: z.ZodEnum<{
|
|
419
|
+
average_meter: "average_meter";
|
|
420
|
+
count: "count";
|
|
421
|
+
count_distinct: "count_distinct";
|
|
422
|
+
sum_meter: "sum_meter";
|
|
423
|
+
}>;
|
|
424
|
+
field: z.ZodOptional<z.ZodEnum<{
|
|
425
|
+
request_id: "request_id";
|
|
426
|
+
resource_id: "resource_id";
|
|
427
|
+
}>>;
|
|
428
|
+
meterCategory: z.ZodOptional<z.ZodString>;
|
|
429
|
+
meterType: z.ZodOptional<z.ZodString>;
|
|
430
|
+
}, z.core.$strict>>;
|
|
431
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
432
|
+
}, z.core.$strict>;
|
|
433
|
+
export declare const AuditTrailQuerySchema: z.ZodObject<{
|
|
434
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
435
|
+
attach: "attach";
|
|
436
|
+
bulk_change_type: "bulk_change_type";
|
|
437
|
+
bulk_create: "bulk_create";
|
|
438
|
+
bulk_delete: "bulk_delete";
|
|
439
|
+
bulk_update: "bulk_update";
|
|
440
|
+
create: "create";
|
|
441
|
+
credentials_fill: "credentials_fill";
|
|
442
|
+
credentials_totp_generation: "credentials_totp_generation";
|
|
443
|
+
delete: "delete";
|
|
444
|
+
detach: "detach";
|
|
445
|
+
document_processed: "document_processed";
|
|
446
|
+
embedding: "embedding";
|
|
447
|
+
image_generation: "image_generation";
|
|
448
|
+
inference: "inference";
|
|
449
|
+
publish: "publish";
|
|
450
|
+
unpublish: "unpublish";
|
|
451
|
+
update: "update";
|
|
452
|
+
}>, z.ZodString]>>>;
|
|
453
|
+
resourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
454
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
455
|
+
principalId: z.ZodOptional<z.ZodString>;
|
|
456
|
+
principalType: z.ZodOptional<z.ZodString>;
|
|
457
|
+
effectivePrincipalId: z.ZodOptional<z.ZodString>;
|
|
458
|
+
hasEffectivePrincipal: z.ZodOptional<z.ZodBoolean>;
|
|
459
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
460
|
+
from: z.ZodOptional<z.ZodString>;
|
|
461
|
+
to: z.ZodOptional<z.ZodString>;
|
|
462
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
463
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
464
|
+
}, z.core.$strict>;
|
|
465
|
+
//# sourceMappingURL=audit-trail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-trail.d.ts","sourceRoot":"","sources":["../../src/api-schemas/audit-trail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,gBAAgB;;;;kBAUvB,CAAC;AAMP,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAAyD,CAAC;AAE7F,eAAO,MAAM,mBAAmB;;;;;;;EAEE,CAAC;AAEnC,eAAO,MAAM,kCAAkC;;;;;;;;;;;;kBAcE,CAAC;AAElD,eAAO,MAAM,mCAAmC;;;EAEE,CAAC;AAEnD,eAAO,MAAM,+BAA+B;;;;;EAEE,CAAC;AAE/C,eAAO,MAAM,gCAAgC;;;;;EAEE,CAAC;AAEhD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;EAEE,CAAC;AAE/C,eAAO,MAAM,iCAAiC;;;;;EAEE,CAAC;AAEjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;iBAA4E,CAAC;AAE3G,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;kBAKE,CAAC;AAEzC,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;kBAWE,CAAC;AAE5C,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;kBAOE,CAAC;AAE3C,eAAO,MAAM,kCAAkC;;;;;;;;kBAKE,CAAC;AAElD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2CE,CAAC;AAErC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;kBAME,CAAC;AAE9C,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASE,CAAC;AAE5C,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOE,CAAC;AAExC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoBlC,CAAC;AAGP,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuCE,CAAC"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AUDIT_ACTIONS, AUDIT_AGGREGATION_DIMENSIONS } from '../audit-trail.js';
|
|
3
|
+
import { NumberValueMapSchema } from './interaction.js';
|
|
4
|
+
// The audit trail: the events `GET /audit-trail` pages through and the aggregation `POST
|
|
5
|
+
// /audit-trail/aggregate` computes over them.
|
|
6
|
+
//
|
|
7
|
+
// `//` rather than `/** */` throughout: a JSDoc block immediately preceding an exported declaration
|
|
8
|
+
// is picked up by the OpenAPI scanner and published as that component's `description`, which would
|
|
9
|
+
// double up with the `description` stated in `.meta()`.
|
|
10
|
+
export const AuditMeterSchema = z
|
|
11
|
+
.strictObject({
|
|
12
|
+
category: z.string(),
|
|
13
|
+
type: z.string(),
|
|
14
|
+
quantity: z.number(),
|
|
15
|
+
})
|
|
16
|
+
.meta({
|
|
17
|
+
id: 'AuditMeter',
|
|
18
|
+
description: 'Generic metering entry attached to audit events. Used for cost attribution, usage tracking, and billing.\n\nExamples: { category: "tokens", type: "input", quantity: 1234 } { category: "tokens", type: "output", quantity: 567 } { category: "compute", type: "duration_ms", quantity: 2100 } { category: "processing", type: "pages", quantity: 12 }',
|
|
19
|
+
});
|
|
20
|
+
// The two action/dimension vocabularies read their members off the `as const` arrays in
|
|
21
|
+
// `../audit-trail.js` rather than restating them: those arrays are what the readers and the
|
|
22
|
+
// aggregation validator iterate, so a member added there reaches the document with nothing here
|
|
23
|
+
// changing. Everything else in this file is spelled out.
|
|
24
|
+
export const KnownAuditActionSchema = z.enum(AUDIT_ACTIONS).meta({ id: 'KnownAuditAction' });
|
|
25
|
+
export const EventCategorySchema = z
|
|
26
|
+
.enum(['content', 'workflow', 'security', 'billing', 'system', 'external'])
|
|
27
|
+
.meta({ id: 'EventCategory' });
|
|
28
|
+
export const AuditAggregationDimensionMapSchema = z
|
|
29
|
+
.strictObject({
|
|
30
|
+
time: z.string().nullable().optional(),
|
|
31
|
+
action: z.string().nullable().optional(),
|
|
32
|
+
resource_type: z.string().nullable().optional(),
|
|
33
|
+
event_category: z.string().nullable().optional(),
|
|
34
|
+
provider: z.string().nullable().optional(),
|
|
35
|
+
project_id: z.string().nullable().optional(),
|
|
36
|
+
'details.pipeline': z.string().nullable().optional(),
|
|
37
|
+
'details.verdict': z.string().nullable().optional(),
|
|
38
|
+
'details.workflow_type': z.string().nullable().optional(),
|
|
39
|
+
'details.rule_id': z.string().nullable().optional(),
|
|
40
|
+
model: z.string().nullable().optional(),
|
|
41
|
+
})
|
|
42
|
+
.meta({ id: 'AuditAggregationDimensionMap' });
|
|
43
|
+
export const AuditAggregationDistinctFieldSchema = z
|
|
44
|
+
.enum(['resource_id', 'request_id'])
|
|
45
|
+
.meta({ id: 'AuditAggregationDistinctField' });
|
|
46
|
+
export const AuditAggregationOperationSchema = z
|
|
47
|
+
.enum(['count', 'count_distinct', 'sum_meter', 'average_meter'])
|
|
48
|
+
.meta({ id: 'AuditAggregationOperation' });
|
|
49
|
+
export const AuditAggregationResolutionSchema = z
|
|
50
|
+
.enum(['hour', 'day', 'week', 'month'])
|
|
51
|
+
.meta({ id: 'AuditAggregationResolution' });
|
|
52
|
+
export const AuditAggregationDimensionSchema = z
|
|
53
|
+
.enum(AUDIT_AGGREGATION_DIMENSIONS)
|
|
54
|
+
.meta({ id: 'AuditAggregationDimension' });
|
|
55
|
+
export const AuditAggregationDetailFieldSchema = z
|
|
56
|
+
.enum(['pipeline', 'verdict', 'workflow_type', 'rule_id'])
|
|
57
|
+
.meta({ id: 'AuditAggregationDetailField' });
|
|
58
|
+
export const AuditActionSchema = z.union([KnownAuditActionSchema, z.string()]).meta({ id: 'AuditAction' });
|
|
59
|
+
export const AuditAggregationRowSchema = z
|
|
60
|
+
.strictObject({
|
|
61
|
+
dimensions: AuditAggregationDimensionMapSchema,
|
|
62
|
+
metrics: NumberValueMapSchema,
|
|
63
|
+
})
|
|
64
|
+
.meta({ id: 'AuditAggregationRow' });
|
|
65
|
+
export const AuditAggregationMetricSchema = z
|
|
66
|
+
.strictObject({
|
|
67
|
+
id: z.string().meta({
|
|
68
|
+
description: 'Stable key used in response rows. Must contain only letters, numbers, underscores, or hyphens.',
|
|
69
|
+
}),
|
|
70
|
+
operation: AuditAggregationOperationSchema,
|
|
71
|
+
field: AuditAggregationDistinctFieldSchema.meta({ description: 'Required for count_distinct.' }).optional(),
|
|
72
|
+
meterCategory: z.string().meta({ description: 'Required for meter operations.' }).optional(),
|
|
73
|
+
meterType: z.string().meta({ description: 'Required for meter operations.' }).optional(),
|
|
74
|
+
})
|
|
75
|
+
.meta({ id: 'AuditAggregationMetric' });
|
|
76
|
+
export const AuditAggregationGroupSchema = z
|
|
77
|
+
.strictObject({
|
|
78
|
+
dimension: AuditAggregationDimensionSchema,
|
|
79
|
+
resolution: AuditAggregationResolutionSchema.meta({
|
|
80
|
+
description: 'Required for the time dimension; defaults to day.',
|
|
81
|
+
}).optional(),
|
|
82
|
+
})
|
|
83
|
+
.meta({ id: 'AuditAggregationGroup' });
|
|
84
|
+
export const AuditAggregationDetailFilterSchema = z
|
|
85
|
+
.strictObject({
|
|
86
|
+
field: AuditAggregationDetailFieldSchema,
|
|
87
|
+
values: z.array(z.string()),
|
|
88
|
+
})
|
|
89
|
+
.meta({ id: 'AuditAggregationDetailFilter' });
|
|
90
|
+
export const AuditTrailEventSchema = z
|
|
91
|
+
.strictObject({
|
|
92
|
+
event_type: z.literal('audit'),
|
|
93
|
+
event_id: z.string().optional(),
|
|
94
|
+
event_category: EventCategorySchema.optional(),
|
|
95
|
+
source: z.string().nullable().optional(),
|
|
96
|
+
root_event_id: z.string().optional(),
|
|
97
|
+
caused_by_event_id: z.string().optional(),
|
|
98
|
+
hop_count: z.number().optional(),
|
|
99
|
+
audit_trail: z.boolean().optional(),
|
|
100
|
+
replay_of: z.string().optional(),
|
|
101
|
+
replay_root_event_id: z.string().optional(),
|
|
102
|
+
replayed_by: z.string().optional(),
|
|
103
|
+
action: AuditActionSchema,
|
|
104
|
+
resource_type: z.string(),
|
|
105
|
+
resource_id: z.string(),
|
|
106
|
+
timestamp: z.string(),
|
|
107
|
+
request_id: z.string(),
|
|
108
|
+
status: z.number(),
|
|
109
|
+
success: z.boolean(),
|
|
110
|
+
principal_id: z.string().nullable(),
|
|
111
|
+
principal_type: z.string().nullable(),
|
|
112
|
+
effective_principal_id: z.string().nullable(),
|
|
113
|
+
roles: z.array(z.string()),
|
|
114
|
+
account_id: z.string().nullable(),
|
|
115
|
+
project_id: z.string().nullable(),
|
|
116
|
+
tenant_id: z.string().nullable(),
|
|
117
|
+
account_name: z.string().nullable(),
|
|
118
|
+
project_name: z.string().nullable(),
|
|
119
|
+
provider: z
|
|
120
|
+
.string()
|
|
121
|
+
.nullable()
|
|
122
|
+
.meta({ description: 'Provider type for billable/provider-backed events, e.g. vertexai, bedrock.' })
|
|
123
|
+
.optional(),
|
|
124
|
+
meters: z
|
|
125
|
+
.array(AuditMeterSchema)
|
|
126
|
+
.meta({ description: 'Generic metering data for cost attribution and usage tracking' })
|
|
127
|
+
.optional(),
|
|
128
|
+
details: z
|
|
129
|
+
.looseObject({})
|
|
130
|
+
.meta({ description: 'Event-specific metadata — shape varies by action/resource_type' })
|
|
131
|
+
.optional(),
|
|
132
|
+
})
|
|
133
|
+
.meta({ id: 'AuditTrailEvent' });
|
|
134
|
+
export const AuditAggregationResponseSchema = z
|
|
135
|
+
.strictObject({
|
|
136
|
+
rows: z.array(AuditAggregationRowSchema),
|
|
137
|
+
from: z.string(),
|
|
138
|
+
to: z.string(),
|
|
139
|
+
})
|
|
140
|
+
.meta({ id: 'AuditAggregationResponse' });
|
|
141
|
+
export const AuditAggregationFilterSchema = z
|
|
142
|
+
.strictObject({
|
|
143
|
+
actions: z.array(AuditActionSchema).optional(),
|
|
144
|
+
resourceTypes: z.array(z.string()).optional(),
|
|
145
|
+
eventCategories: z.array(EventCategorySchema).optional(),
|
|
146
|
+
providers: z.array(z.string()).optional(),
|
|
147
|
+
success: z.boolean().optional(),
|
|
148
|
+
details: z.array(AuditAggregationDetailFilterSchema).optional(),
|
|
149
|
+
})
|
|
150
|
+
.meta({ id: 'AuditAggregationFilter' });
|
|
151
|
+
export const AuditTrailResponseSchema = z
|
|
152
|
+
.strictObject({
|
|
153
|
+
events: z.array(AuditTrailEventSchema),
|
|
154
|
+
hasNext: z.boolean().meta({ description: 'Whether there are more events after this page' }),
|
|
155
|
+
limit: z.number(),
|
|
156
|
+
offset: z.number(),
|
|
157
|
+
})
|
|
158
|
+
.meta({ id: 'AuditTrailResponse' });
|
|
159
|
+
export const AuditAggregationQuerySchema = z
|
|
160
|
+
.strictObject({
|
|
161
|
+
projectId: z
|
|
162
|
+
.string()
|
|
163
|
+
.meta({ description: 'Optional account-admin project filter. Ignored for project-scoped principals.' })
|
|
164
|
+
.optional(),
|
|
165
|
+
from: z
|
|
166
|
+
.string()
|
|
167
|
+
.meta({ description: 'Start time; defaults to 30 days before to. The server caps the range at 366 days.' })
|
|
168
|
+
.optional(),
|
|
169
|
+
to: z.string().meta({ description: 'End time; defaults to the current time.' }).optional(),
|
|
170
|
+
filter: AuditAggregationFilterSchema.optional(),
|
|
171
|
+
groupBy: z.array(AuditAggregationGroupSchema).optional(),
|
|
172
|
+
metrics: z.array(AuditAggregationMetricSchema),
|
|
173
|
+
limit: z.number().meta({ description: 'Maximum groups returned (default 50, max 200).' }).optional(),
|
|
174
|
+
})
|
|
175
|
+
.meta({
|
|
176
|
+
id: 'AuditAggregationQuery',
|
|
177
|
+
description: 'Safe audit aggregation query. The server always applies the authenticated account scope and, for project-scoped principals, replaces projectId with the authenticated project.',
|
|
178
|
+
});
|
|
179
|
+
// Query contracts are registry components even though the scanner expands them into parameters.
|
|
180
|
+
export const AuditTrailQuerySchema = z
|
|
181
|
+
.strictObject({
|
|
182
|
+
actions: z.array(AuditActionSchema).meta({ description: 'Filter by action types' }).optional(),
|
|
183
|
+
resourceTypes: z.array(z.string()).meta({ description: 'Filter by resource types' }).optional(),
|
|
184
|
+
resourceId: z.string().meta({ description: 'Filter by resource ID' }).optional(),
|
|
185
|
+
principalId: z
|
|
186
|
+
.string()
|
|
187
|
+
.meta({ description: 'Filter by exact actor principal ref (matches principal_id column).' })
|
|
188
|
+
.optional(),
|
|
189
|
+
principalType: z
|
|
190
|
+
.string()
|
|
191
|
+
.meta({ description: 'Filter by top-level actor category (matches principal_type column).' })
|
|
192
|
+
.optional(),
|
|
193
|
+
effectivePrincipalId: z
|
|
194
|
+
.string()
|
|
195
|
+
.meta({
|
|
196
|
+
description: 'Filter by delegated/direct effective principal ref (matches effective_principal_id column).',
|
|
197
|
+
})
|
|
198
|
+
.optional(),
|
|
199
|
+
hasEffectivePrincipal: z
|
|
200
|
+
.boolean()
|
|
201
|
+
.meta({ description: 'Filter by whether an event has an effective principal ref.' })
|
|
202
|
+
.optional(),
|
|
203
|
+
projectId: z
|
|
204
|
+
.string()
|
|
205
|
+
.meta({
|
|
206
|
+
description: 'Filter by project ID. Honoured only for account-scoped principals; a project-scoped principal always reads its own project.',
|
|
207
|
+
})
|
|
208
|
+
.optional(),
|
|
209
|
+
from: z.string().meta({ description: 'Start time (ISO string)' }).optional(),
|
|
210
|
+
to: z.string().meta({ description: 'End time (ISO string)' }).optional(),
|
|
211
|
+
limit: z
|
|
212
|
+
.number()
|
|
213
|
+
.meta({ description: 'Pagination: number of items to return (default 50, max 200)' })
|
|
214
|
+
.optional(),
|
|
215
|
+
offset: z.number().meta({ description: 'Pagination: offset' }).optional(),
|
|
216
|
+
})
|
|
217
|
+
.meta({ id: 'AuditTrailQuery' });
|
|
218
|
+
//# sourceMappingURL=audit-trail.js.map
|