@vertesia/common 1.5.0-dev.20260722.120446Z → 1.5.0-dev.20260804.124748Z
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/access-control-values.d.ts +98 -0
- package/lib/access-control-values.d.ts.map +1 -0
- package/lib/access-control-values.js +101 -0
- package/lib/access-control-values.js.map +1 -0
- package/lib/access-control.d.ts +22 -119
- package/lib/access-control.d.ts.map +1 -1
- package/lib/access-control.js +6 -78
- package/lib/access-control.js.map +1 -1
- package/lib/account-values.d.ts +53 -0
- package/lib/account-values.d.ts.map +1 -0
- package/lib/account-values.js +91 -0
- package/lib/account-values.js.map +1 -0
- package/lib/analytics.d.ts +12 -38
- package/lib/analytics.d.ts.map +1 -1
- package/lib/api-schemas/access-control.d.ts +215 -0
- package/lib/api-schemas/access-control.d.ts.map +1 -0
- package/lib/api-schemas/access-control.js +165 -0
- package/lib/api-schemas/access-control.js.map +1 -0
- package/lib/api-schemas/account.d.ts +101 -0
- package/lib/api-schemas/account.d.ts.map +1 -0
- package/lib/api-schemas/account.js +136 -0
- package/lib/api-schemas/account.js.map +1 -0
- package/lib/api-schemas/adapter.d.ts +80 -0
- package/lib/api-schemas/adapter.d.ts.map +1 -0
- package/lib/api-schemas/adapter.js +726 -0
- package/lib/api-schemas/adapter.js.map +1 -0
- package/lib/api-schemas/agent-runs.d.ts +3781 -0
- package/lib/api-schemas/agent-runs.d.ts.map +1 -0
- package/lib/api-schemas/agent-runs.js +991 -0
- package/lib/api-schemas/agent-runs.js.map +1 -0
- package/lib/api-schemas/analytics.d.ts +86 -0
- package/lib/api-schemas/analytics.d.ts.map +1 -0
- package/lib/api-schemas/analytics.js +58 -0
- package/lib/api-schemas/analytics.js.map +1 -0
- package/lib/api-schemas/apikey.d.ts +231 -0
- package/lib/api-schemas/apikey.d.ts.map +1 -0
- package/lib/api-schemas/apikey.js +172 -0
- package/lib/api-schemas/apikey.js.map +1 -0
- package/lib/api-schemas/app-lifecycle.d.ts +1114 -0
- package/lib/api-schemas/app-lifecycle.d.ts.map +1 -0
- package/lib/api-schemas/app-lifecycle.js +750 -0
- package/lib/api-schemas/app-lifecycle.js.map +1 -0
- package/lib/api-schemas/app-runtime.d.ts +9056 -0
- package/lib/api-schemas/app-runtime.d.ts.map +1 -0
- package/lib/api-schemas/app-runtime.js +782 -0
- package/lib/api-schemas/app-runtime.js.map +1 -0
- package/lib/api-schemas/apps.d.ts +247 -0
- package/lib/api-schemas/apps.d.ts.map +1 -0
- package/lib/api-schemas/apps.js +366 -0
- package/lib/api-schemas/apps.js.map +1 -0
- package/lib/api-schemas/audit-trail.d.ts +465 -0
- package/lib/api-schemas/audit-trail.d.ts.map +1 -0
- package/lib/api-schemas/audit-trail.js +218 -0
- package/lib/api-schemas/audit-trail.js.map +1 -0
- package/lib/api-schemas/bulk-operation.d.ts +104 -0
- package/lib/api-schemas/bulk-operation.d.ts.map +1 -0
- package/lib/api-schemas/bulk-operation.js +66 -0
- package/lib/api-schemas/bulk-operation.js.map +1 -0
- package/lib/api-schemas/commands.d.ts +50 -0
- package/lib/api-schemas/commands.d.ts.map +1 -0
- package/lib/api-schemas/commands.js +58 -0
- package/lib/api-schemas/commands.js.map +1 -0
- package/lib/api-schemas/content.d.ts +3561 -0
- package/lib/api-schemas/content.d.ts.map +1 -0
- package/lib/api-schemas/content.js +842 -0
- package/lib/api-schemas/content.js.map +1 -0
- package/lib/api-schemas/cost-analytics.d.ts +300 -0
- package/lib/api-schemas/cost-analytics.d.ts.map +1 -0
- package/lib/api-schemas/cost-analytics.js +218 -0
- package/lib/api-schemas/cost-analytics.js.map +1 -0
- package/lib/api-schemas/dashboard.d.ts +408 -0
- package/lib/api-schemas/dashboard.d.ts.map +1 -0
- package/lib/api-schemas/dashboard.js +311 -0
- package/lib/api-schemas/dashboard.js.map +1 -0
- package/lib/api-schemas/data-store.d.ts +1650 -0
- package/lib/api-schemas/data-store.d.ts.map +1 -0
- package/lib/api-schemas/data-store.js +504 -0
- package/lib/api-schemas/data-store.js.map +1 -0
- package/lib/api-schemas/document-processing.d.ts +1501 -0
- package/lib/api-schemas/document-processing.d.ts.map +1 -0
- package/lib/api-schemas/document-processing.js +312 -0
- package/lib/api-schemas/document-processing.js.map +1 -0
- package/lib/api-schemas/embeddings.d.ts +184 -0
- package/lib/api-schemas/embeddings.d.ts.map +1 -0
- package/lib/api-schemas/embeddings.js +102 -0
- package/lib/api-schemas/embeddings.js.map +1 -0
- package/lib/api-schemas/environment.d.ts +412 -0
- package/lib/api-schemas/environment.d.ts.map +1 -0
- package/lib/api-schemas/environment.js +170 -0
- package/lib/api-schemas/environment.js.map +1 -0
- package/lib/api-schemas/events.d.ts +4880 -0
- package/lib/api-schemas/events.d.ts.map +1 -0
- package/lib/api-schemas/events.js +832 -0
- package/lib/api-schemas/events.js.map +1 -0
- package/lib/api-schemas/files.d.ts +107 -0
- package/lib/api-schemas/files.d.ts.map +1 -0
- package/lib/api-schemas/files.js +137 -0
- package/lib/api-schemas/files.js.map +1 -0
- package/lib/api-schemas/group.d.ts +122 -0
- package/lib/api-schemas/group.d.ts.map +1 -0
- package/lib/api-schemas/group.js +142 -0
- package/lib/api-schemas/group.js.map +1 -0
- package/lib/api-schemas/index.d.ts +36 -0
- package/lib/api-schemas/index.d.ts.map +1 -0
- package/lib/api-schemas/index.js +36 -0
- package/lib/api-schemas/index.js.map +1 -0
- package/lib/api-schemas/indexing.d.ts +144 -0
- package/lib/api-schemas/indexing.d.ts.map +1 -0
- package/lib/api-schemas/indexing.js +217 -0
- package/lib/api-schemas/indexing.js.map +1 -0
- package/lib/api-schemas/integrations.d.ts +269 -0
- package/lib/api-schemas/integrations.d.ts.map +1 -0
- package/lib/api-schemas/integrations.js +335 -0
- package/lib/api-schemas/integrations.js.map +1 -0
- package/lib/api-schemas/interaction.d.ts +22454 -0
- package/lib/api-schemas/interaction.d.ts.map +1 -0
- package/lib/api-schemas/interaction.js +2065 -0
- package/lib/api-schemas/interaction.js.map +1 -0
- package/lib/api-schemas/invites.d.ts +162 -0
- package/lib/api-schemas/invites.d.ts.map +1 -0
- package/lib/api-schemas/invites.js +106 -0
- package/lib/api-schemas/invites.js.map +1 -0
- package/lib/api-schemas/oauth-server.d.ts +415 -0
- package/lib/api-schemas/oauth-server.d.ts.map +1 -0
- package/lib/api-schemas/oauth-server.js +193 -0
- package/lib/api-schemas/oauth-server.js.map +1 -0
- package/lib/api-schemas/oauth.d.ts +150 -0
- package/lib/api-schemas/oauth.d.ts.map +1 -0
- package/lib/api-schemas/oauth.js +148 -0
- package/lib/api-schemas/oauth.js.map +1 -0
- package/lib/api-schemas/parameters.d.ts +64 -0
- package/lib/api-schemas/parameters.d.ts.map +1 -0
- package/lib/api-schemas/parameters.js +246 -0
- package/lib/api-schemas/parameters.js.map +1 -0
- package/lib/api-schemas/process.d.ts +499 -0
- package/lib/api-schemas/process.d.ts.map +1 -0
- package/lib/api-schemas/process.js +817 -0
- package/lib/api-schemas/process.js.map +1 -0
- package/lib/api-schemas/project-configuration.d.ts +4900 -0
- package/lib/api-schemas/project-configuration.d.ts.map +1 -0
- package/lib/api-schemas/project-configuration.js +425 -0
- package/lib/api-schemas/project-configuration.js.map +1 -0
- package/lib/api-schemas/project.d.ts +7247 -0
- package/lib/api-schemas/project.d.ts.map +1 -0
- package/lib/api-schemas/project.js +185 -0
- package/lib/api-schemas/project.js.map +1 -0
- package/lib/api-schemas/prompt.d.ts +70 -0
- package/lib/api-schemas/prompt.d.ts.map +1 -0
- package/lib/api-schemas/prompt.js +77 -0
- package/lib/api-schemas/prompt.js.map +1 -0
- package/lib/api-schemas/quota.d.ts +90 -0
- package/lib/api-schemas/quota.d.ts.map +1 -0
- package/lib/api-schemas/quota.js +95 -0
- package/lib/api-schemas/quota.js.map +1 -0
- package/lib/api-schemas/registry.d.ts +97458 -0
- package/lib/api-schemas/registry.d.ts.map +1 -0
- package/lib/api-schemas/registry.js +2586 -0
- package/lib/api-schemas/registry.js.map +1 -0
- package/lib/api-schemas/schema-primitives.d.ts +5 -0
- package/lib/api-schemas/schema-primitives.d.ts.map +1 -0
- package/lib/api-schemas/schema-primitives.js +11 -0
- package/lib/api-schemas/schema-primitives.js.map +1 -0
- package/lib/api-schemas/secrets.d.ts +497 -0
- package/lib/api-schemas/secrets.d.ts.map +1 -0
- package/lib/api-schemas/secrets.js +298 -0
- package/lib/api-schemas/secrets.js.map +1 -0
- package/lib/api-schemas/store.d.ts +22140 -0
- package/lib/api-schemas/store.d.ts.map +1 -0
- package/lib/api-schemas/store.js +557 -0
- package/lib/api-schemas/store.js.map +1 -0
- package/lib/api-schemas/sts.d.ts +156 -0
- package/lib/api-schemas/sts.d.ts.map +1 -0
- package/lib/api-schemas/sts.js +96 -0
- package/lib/api-schemas/sts.js.map +1 -0
- package/lib/api-schemas/task.d.ts +215 -0
- package/lib/api-schemas/task.d.ts.map +1 -0
- package/lib/api-schemas/task.js +95 -0
- package/lib/api-schemas/task.js.map +1 -0
- package/lib/api-schemas/tools.d.ts +111 -0
- package/lib/api-schemas/tools.d.ts.map +1 -0
- package/lib/api-schemas/tools.js +122 -0
- package/lib/api-schemas/tools.js.map +1 -0
- package/lib/api-schemas/user.d.ts +208 -0
- package/lib/api-schemas/user.d.ts.map +1 -0
- package/lib/api-schemas/user.js +180 -0
- package/lib/api-schemas/user.js.map +1 -0
- package/lib/api-schemas/view-execution.d.ts +3163 -0
- package/lib/api-schemas/view-execution.d.ts.map +1 -0
- package/lib/api-schemas/view-execution.js +172 -0
- package/lib/api-schemas/view-execution.js.map +1 -0
- package/lib/api-schemas/views.d.ts +5990 -0
- package/lib/api-schemas/views.d.ts.map +1 -0
- package/lib/api-schemas/views.js +396 -0
- package/lib/api-schemas/views.js.map +1 -0
- package/lib/api-schemas/workflow-runs.d.ts +2209 -0
- package/lib/api-schemas/workflow-runs.d.ts.map +1 -0
- package/lib/api-schemas/workflow-runs.js +589 -0
- package/lib/api-schemas/workflow-runs.js.map +1 -0
- package/lib/apikey-values.d.ts +10 -0
- package/lib/apikey-values.d.ts.map +1 -0
- package/lib/apikey-values.js +11 -0
- package/lib/apikey-values.js.map +1 -0
- package/lib/apikey.d.ts +37 -36
- package/lib/apikey.d.ts.map +1 -1
- package/lib/apikey.js +5 -4
- package/lib/apikey.js.map +1 -1
- package/lib/apps.d.ts +116 -1121
- package/lib/apps.d.ts.map +1 -1
- package/lib/apps.js.map +1 -1
- package/lib/ask-user.d.ts +8 -1
- package/lib/ask-user.d.ts.map +1 -1
- package/lib/audit-trail.d.ts +17 -128
- package/lib/audit-trail.d.ts.map +1 -1
- package/lib/audit-trail.js.map +1 -1
- package/lib/browser-credentials.d.ts +11 -106
- package/lib/browser-credentials.d.ts.map +1 -1
- package/lib/common.d.ts +59 -81
- package/lib/common.d.ts.map +1 -1
- package/lib/cost-analytics.d.ts +14 -167
- package/lib/cost-analytics.d.ts.map +1 -1
- package/lib/cost-analytics.js.map +1 -1
- package/lib/data-platform.d.ts +122 -786
- package/lib/data-platform.d.ts.map +1 -1
- package/lib/data-platform.js +41 -61
- package/lib/data-platform.js.map +1 -1
- package/lib/email.d.ts +5 -17
- package/lib/email.d.ts.map +1 -1
- package/lib/email.js +0 -3
- package/lib/email.js.map +1 -1
- package/lib/embeddings.d.ts +14 -56
- package/lib/embeddings.d.ts.map +1 -1
- package/lib/environment.d.ts +19 -113
- package/lib/environment.d.ts.map +1 -1
- package/lib/environment.js +3 -0
- package/lib/environment.js.map +1 -1
- package/lib/facets.d.ts +4 -7
- package/lib/facets.d.ts.map +1 -1
- package/lib/group.d.ts +33 -39
- package/lib/group.d.ts.map +1 -1
- package/lib/group.js +0 -1
- package/lib/group.js.map +1 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/integrations.d.ts +20 -108
- package/lib/integrations.d.ts.map +1 -1
- package/lib/integrations.js.map +1 -1
- package/lib/interaction-values.d.ts +11 -0
- package/lib/interaction-values.d.ts.map +1 -0
- package/lib/interaction-values.js +24 -0
- package/lib/interaction-values.js.map +1 -0
- package/lib/interaction.d.ts +116 -734
- package/lib/interaction.d.ts.map +1 -1
- package/lib/interaction.js +56 -12
- package/lib/interaction.js.map +1 -1
- package/lib/meters.d.ts +11 -7
- package/lib/meters.d.ts.map +1 -1
- package/lib/meters.js.map +1 -1
- package/lib/oauth-server.d.ts +33 -119
- package/lib/oauth-server.d.ts.map +1 -1
- package/lib/oauth.d.ts +14 -96
- package/lib/oauth.d.ts.map +1 -1
- package/lib/oauth.js +0 -4
- package/lib/oauth.js.map +1 -1
- package/lib/payload.d.ts +15 -38
- package/lib/payload.d.ts.map +1 -1
- package/lib/platform-event.d.ts +49 -462
- package/lib/platform-event.d.ts.map +1 -1
- package/lib/platform-event.js.map +1 -1
- package/lib/principal-context.d.ts +10 -15
- package/lib/principal-context.d.ts.map +1 -1
- package/lib/project-values.d.ts +24 -0
- package/lib/project-values.d.ts.map +1 -0
- package/lib/project-values.js +42 -0
- package/lib/project-values.js.map +1 -0
- package/lib/project.d.ts +55 -503
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js +6 -76
- package/lib/project.js.map +1 -1
- package/lib/prompt.d.ts +20 -51
- package/lib/prompt.d.ts.map +1 -1
- package/lib/prompt.js.map +1 -1
- package/lib/query.d.ts +27 -88
- package/lib/query.d.ts.map +1 -1
- package/lib/rate-limiter.d.ts +19 -70
- package/lib/rate-limiter.d.ts.map +1 -1
- package/lib/rate-limiter.js +0 -3
- package/lib/rate-limiter.js.map +1 -1
- package/lib/refs.d.ts +3 -11
- package/lib/refs.d.ts.map +1 -1
- package/lib/refs.js.map +1 -1
- package/lib/roles/types.d.ts +14 -20
- package/lib/roles/types.d.ts.map +1 -1
- package/lib/roles/types.js +5 -9
- package/lib/roles/types.js.map +1 -1
- package/lib/runs.d.ts +6 -25
- package/lib/runs.d.ts.map +1 -1
- package/lib/secrets.d.ts +20 -105
- package/lib/secrets.d.ts.map +1 -1
- package/lib/store/agent-approval.d.ts +5 -14
- package/lib/store/agent-approval.d.ts.map +1 -1
- package/lib/store/agent-approval.js.map +1 -1
- package/lib/store/agent-run.d.ts +63 -342
- package/lib/store/agent-run.d.ts.map +1 -1
- package/lib/store/collections.d.ts +11 -63
- package/lib/store/collections.d.ts.map +1 -1
- package/lib/store/collections.js.map +1 -1
- package/lib/store/conversation-state.d.ts +63 -61
- package/lib/store/conversation-state.d.ts.map +1 -1
- package/lib/store/conversation-state.js +2 -0
- package/lib/store/conversation-state.js.map +1 -1
- package/lib/store/doc-analyzer.d.ts +9 -32
- package/lib/store/doc-analyzer.d.ts.map +1 -1
- package/lib/store/dsl-workflow.d.ts +37 -151
- package/lib/store/dsl-workflow.d.ts.map +1 -1
- package/lib/store/dsl-workflow.js.map +1 -1
- package/lib/store/editing-policy-schema.generated.d.ts +3 -0
- package/lib/store/editing-policy-schema.generated.d.ts.map +1 -0
- package/lib/store/editing-policy-schema.generated.js +28 -0
- package/lib/store/editing-policy-schema.generated.js.map +1 -0
- package/lib/store/grounded-extraction.d.ts +7 -104
- package/lib/store/grounded-extraction.d.ts.map +1 -1
- package/lib/store/grounded-extraction.js.map +1 -1
- package/lib/store/index.d.ts +2 -0
- package/lib/store/index.d.ts.map +1 -1
- package/lib/store/index.js +3 -0
- package/lib/store/index.js.map +1 -1
- package/lib/store/intake-policy-schema.generated.d.ts +3 -0
- package/lib/store/intake-policy-schema.generated.d.ts.map +1 -0
- package/lib/store/intake-policy-schema.generated.js +1425 -0
- package/lib/store/intake-policy-schema.generated.js.map +1 -0
- package/lib/store/process-schema.d.ts +80 -0
- package/lib/store/process-schema.d.ts.map +1 -1
- package/lib/store/process-schema.js +79 -0
- package/lib/store/process-schema.js.map +1 -1
- package/lib/store/process-validation.d.ts.map +1 -1
- package/lib/store/process-validation.js +70 -2
- package/lib/store/process-validation.js.map +1 -1
- package/lib/store/process.d.ts +36 -125
- package/lib/store/process.d.ts.map +1 -1
- package/lib/store/process.js.map +1 -1
- package/lib/store/rendering.d.ts +9 -64
- package/lib/store/rendering.d.ts.map +1 -1
- package/lib/store/rendering.js.map +1 -1
- package/lib/store/store.d.ts +98 -693
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +4 -443
- package/lib/store/store.js.map +1 -1
- package/lib/store/task.d.ts +15 -59
- package/lib/store/task.d.ts.map +1 -1
- package/lib/store/task.js +0 -3
- package/lib/store/task.js.map +1 -1
- package/lib/store/workflow.d.ts +56 -516
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js +28 -11
- package/lib/store/workflow.js.map +1 -1
- package/lib/sts-token-types.d.ts +12 -66
- package/lib/sts-token-types.d.ts.map +1 -1
- package/lib/sts-token-types.js.map +1 -1
- package/lib/tools.d.ts +8 -100
- package/lib/tools.d.ts.map +1 -1
- package/lib/transient-tokens-values.d.ts +11 -0
- package/lib/transient-tokens-values.d.ts.map +1 -0
- package/lib/transient-tokens-values.js +12 -0
- package/lib/transient-tokens-values.js.map +1 -0
- package/lib/transient-tokens.d.ts +15 -13
- package/lib/transient-tokens.d.ts.map +1 -1
- package/lib/transient-tokens.js +5 -5
- package/lib/transient-tokens.js.map +1 -1
- package/lib/user.d.ts +54 -155
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js +1 -78
- package/lib/user.js.map +1 -1
- package/lib/versions.d.ts +24 -1
- package/lib/versions.d.ts.map +1 -1
- package/lib/versions.js +23 -0
- package/lib/versions.js.map +1 -1
- package/lib/vertesia-common.js +6 -2
- package/lib/vertesia-common.js.map +1 -1
- package/lib/views-schema.d.ts +4 -4
- package/lib/views.d.ts +56 -312
- package/lib/views.d.ts.map +1 -1
- package/lib/views.js.map +1 -1
- package/package.json +14 -5
- package/src/access-control-values.ts +113 -0
- package/src/access-control.ts +33 -138
- package/src/account-values.ts +95 -0
- package/src/agent-resources.test.ts +100 -0
- package/src/analytics.ts +18 -42
- package/src/api-schemas/access-control.contract.test.ts +209 -0
- package/src/api-schemas/access-control.ts +208 -0
- package/src/api-schemas/account.contract.test.ts +318 -0
- package/src/api-schemas/account.ts +150 -0
- package/src/api-schemas/adapter-edge-cases.test.ts +480 -0
- package/src/api-schemas/adapter.ts +778 -0
- package/src/api-schemas/agent-runs.ts +1081 -0
- package/src/api-schemas/analytics.ts +65 -0
- package/src/api-schemas/apikey.contract.test.ts +270 -0
- package/src/api-schemas/apikey.ts +199 -0
- package/src/api-schemas/app-lifecycle.ts +841 -0
- package/src/api-schemas/app-runtime.ts +919 -0
- package/src/api-schemas/apps.ts +415 -0
- package/src/api-schemas/audit-trail.ts +243 -0
- package/src/api-schemas/bulk-operation.contract.test.ts +39 -0
- package/src/api-schemas/bulk-operation.ts +75 -0
- package/src/api-schemas/bundle-isolation.test.ts +80 -0
- package/src/api-schemas/commands.contract.test.ts +51 -0
- package/src/api-schemas/commands.ts +62 -0
- package/src/api-schemas/content.ts +939 -0
- package/src/api-schemas/cost-analytics.contract.test.ts +64 -0
- package/src/api-schemas/cost-analytics.ts +235 -0
- package/src/api-schemas/dashboard.contract.test.ts +127 -0
- package/src/api-schemas/dashboard.ts +351 -0
- package/src/api-schemas/data-store.contract.test.ts +91 -0
- package/src/api-schemas/data-store.ts +571 -0
- package/src/api-schemas/document-processing.contract.test.ts +76 -0
- package/src/api-schemas/document-processing.ts +344 -0
- package/src/api-schemas/embeddings.ts +113 -0
- package/src/api-schemas/environment.contract.test.ts +184 -0
- package/src/api-schemas/environment.ts +190 -0
- package/src/api-schemas/events.ts +921 -0
- package/src/api-schemas/files.ts +159 -0
- package/src/api-schemas/group.contract.test.ts +205 -0
- package/src/api-schemas/group.ts +155 -0
- package/src/api-schemas/index.ts +35 -0
- package/src/api-schemas/indexing.contract.test.ts +83 -0
- package/src/api-schemas/indexing.ts +234 -0
- package/src/api-schemas/integrations.ts +369 -0
- package/src/api-schemas/interaction.ts +2357 -0
- package/src/api-schemas/invites.contract.test.ts +268 -0
- package/src/api-schemas/invites.ts +127 -0
- package/src/api-schemas/llumiverse.contract.test.ts +108 -0
- package/src/api-schemas/oauth-server.ts +219 -0
- package/src/api-schemas/oauth.contract.test.ts +118 -0
- package/src/api-schemas/oauth.ts +166 -0
- package/src/api-schemas/parameters.test.ts +402 -0
- package/src/api-schemas/parameters.ts +310 -0
- package/src/api-schemas/process.ts +929 -0
- package/src/api-schemas/project-configuration.ts +478 -0
- package/src/api-schemas/project.contract.test.ts +365 -0
- package/src/api-schemas/project.ts +214 -0
- package/src/api-schemas/prompt.ts +88 -0
- package/src/api-schemas/pruning-limits.test.ts +189 -0
- package/src/api-schemas/quota.contract.test.ts +147 -0
- package/src/api-schemas/quota.ts +122 -0
- package/src/api-schemas/registry-groups.test.ts +91 -0
- package/src/api-schemas/registry.ts +3487 -0
- package/src/api-schemas/response-pruning.test.ts +260 -0
- package/src/api-schemas/schema-primitives.ts +12 -0
- package/src/api-schemas/secrets.ts +332 -0
- package/src/api-schemas/store.contract.test.ts +450 -0
- package/src/api-schemas/store.ts +604 -0
- package/src/api-schemas/sts.contract.test.ts +80 -0
- package/src/api-schemas/sts.ts +110 -0
- package/src/api-schemas/task.ts +104 -0
- package/src/api-schemas/tools.ts +140 -0
- package/src/api-schemas/user.contract.test.ts +191 -0
- package/src/api-schemas/user.ts +204 -0
- package/src/api-schemas/view-execution.ts +200 -0
- package/src/api-schemas/views.ts +437 -0
- package/src/api-schemas/workflow-runs.ts +653 -0
- package/src/apikey-values.ts +10 -0
- package/src/apikey.ts +49 -40
- package/src/apps.ts +249 -1179
- package/src/ask-user.ts +9 -1
- package/src/audit-trail.ts +45 -137
- package/src/browser-credentials.ts +21 -106
- package/src/common.ts +67 -78
- package/src/cost-analytics.ts +37 -176
- package/src/data-platform.ts +205 -776
- package/src/email.ts +5 -17
- package/src/embeddings.ts +22 -60
- package/src/environment.ts +52 -124
- package/src/facets.ts +4 -7
- package/src/group.ts +38 -42
- package/src/index.ts +11 -0
- package/src/integrations.ts +39 -129
- package/src/interaction-values.ts +23 -0
- package/src/interaction.ts +231 -841
- package/src/meters.ts +11 -7
- package/src/oauth-server.ts +58 -127
- package/src/oauth.ts +24 -108
- package/src/payload.ts +25 -40
- package/src/platform-event.ts +98 -484
- package/src/principal-context.ts +11 -15
- package/src/project-values.ts +41 -0
- package/src/project.ts +116 -588
- package/src/prompt.ts +34 -61
- package/src/query.ts +34 -93
- package/src/rate-limiter.ts +27 -75
- package/src/refs.ts +4 -11
- package/src/roles/types.ts +20 -20
- package/src/runs.ts +11 -24
- package/src/secrets.ts +38 -117
- package/src/store/agent-approval.ts +9 -14
- package/src/store/agent-run.ts +106 -434
- package/src/store/collections.ts +21 -63
- package/src/store/content-type-editing.test.ts +17 -0
- package/src/store/conversation-state.ts +78 -64
- package/src/store/doc-analyzer.ts +17 -33
- package/src/store/dsl-workflow.ts +62 -158
- package/src/store/editing-policy-schema.generated.ts +30 -0
- package/src/store/grounded-extraction.ts +13 -104
- package/src/store/index.ts +3 -0
- package/src/store/intake-policy-schema.generated.ts +1442 -0
- package/src/store/process-schema.test.ts +43 -0
- package/src/store/process-schema.ts +79 -0
- package/src/store/process-validation.test.ts +141 -0
- package/src/store/process-validation.ts +82 -2
- package/src/store/process.ts +70 -146
- package/src/store/rendering.ts +15 -64
- package/src/store/store.ts +197 -1182
- package/src/store/task.ts +25 -59
- package/src/store/workflow.ts +103 -554
- package/src/sts-token-types.ts +24 -75
- package/src/tools.ts +18 -97
- package/src/transient-tokens-values.ts +11 -0
- package/src/transient-tokens.ts +16 -13
- package/src/user.ts +74 -214
- package/src/versions.ts +24 -0
- package/src/views-schema.test.ts +9 -1
- package/src/views.ts +106 -329
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
// From the values module, never from `user.ts`: `user.ts` derives its public types from the schemas
|
|
3
|
+
// below, so importing it here would invert the dependency and make the source of truth circular.
|
|
4
|
+
import { ACCOUNT_APP_ACCESS_MESSAGE_MAX_LENGTH, AccountType, BillingMethod, QuotaTier } from '../account-values.js';
|
|
5
|
+
/**
|
|
6
|
+
* Runtime API schemas for the Accounts endpoints.
|
|
7
|
+
*
|
|
8
|
+
* These describe the WIRE shape — what actually crosses the HTTP boundary — which is not
|
|
9
|
+
* always what the hand-written interfaces in `user.ts` claim. Divergences are asserted in
|
|
10
|
+
* `account.contract.test.ts` rather than papered over.
|
|
11
|
+
*
|
|
12
|
+
* This module is only reachable through the `@vertesia/common/api-schemas` subpath. It must
|
|
13
|
+
* never be runtime-exported from the package root: `lib/index.js` is bundled wholesale into
|
|
14
|
+
* `lib/vertesia-common.js` and served to browsers, so a root re-export would ship zod to every
|
|
15
|
+
* UI user. The root may re-export the derived TYPES with `export type`, which tsc erases.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Shared enums carry an `id` so the adapter hoists them into named components and properties
|
|
19
|
+
* reference them, rather than each property carrying its own inline copy. The distinction is
|
|
20
|
+
* invisible to JSON Schema validation and decisive for codegen: a named component becomes one
|
|
21
|
+
* reusable Java/Go enum type, while inline copies become an anonymous type per property. These
|
|
22
|
+
* names also already exist in the published spec, so keeping them avoids a breaking rename for
|
|
23
|
+
* everyone generating from it.
|
|
24
|
+
*/
|
|
25
|
+
export const BillingMethodSchema = z.enum(BillingMethod).meta({ id: 'BillingMethod' });
|
|
26
|
+
export const AccountTypeSchema = z.enum(AccountType).meta({ id: 'AccountType' });
|
|
27
|
+
export const QuotaTierSchema = z.enum(QuotaTier).meta({
|
|
28
|
+
id: 'QuotaTier',
|
|
29
|
+
description: 'Quota/rate-limit tier assigned to an account. Code-defined tiers live in `@dglabs/quota` ' +
|
|
30
|
+
'(`QUOTA_TIERS`); these names must match its keys.\n' +
|
|
31
|
+
'- `standard` — protective baseline limits (the default for most accounts).\n' +
|
|
32
|
+
'- `enterprise` — high limits for contracted customers / internal / partners.\n\n' +
|
|
33
|
+
'An account with no explicit `quota_tier` derives its tier from its `account_type`.',
|
|
34
|
+
});
|
|
35
|
+
export const AccountBillingSchema = z
|
|
36
|
+
.object({
|
|
37
|
+
method: BillingMethodSchema,
|
|
38
|
+
stripe_customer_id: z.string().optional(),
|
|
39
|
+
})
|
|
40
|
+
.meta({ id: 'AccountBilling' });
|
|
41
|
+
export const AccountSchema = z
|
|
42
|
+
.object({
|
|
43
|
+
id: z.string(),
|
|
44
|
+
name: z.string(),
|
|
45
|
+
// JSDoc is invisible to `toJSONSchema` — a description only reaches the published spec
|
|
46
|
+
// through `.meta()`. These strings are the ones the TypeScript-derived spec used to carry.
|
|
47
|
+
namespace: z
|
|
48
|
+
.string()
|
|
49
|
+
.meta({ description: 'Public DNS-label-compatible identifier used by organization app domains.' })
|
|
50
|
+
.optional(),
|
|
51
|
+
app_access_message: z
|
|
52
|
+
.string()
|
|
53
|
+
.max(ACCOUNT_APP_ACCESS_MESSAGE_MAX_LENGTH)
|
|
54
|
+
.meta({
|
|
55
|
+
description: 'Plain-text instructions shown when a signed-in user has no application access.',
|
|
56
|
+
})
|
|
57
|
+
.optional(),
|
|
58
|
+
email_domains: z.array(z.string()),
|
|
59
|
+
// strictObject rather than object: the previously published spec closed this nested
|
|
60
|
+
// object, and STRICT_COMPONENTS only reaches top-level components.
|
|
61
|
+
onboarding: z.strictObject({
|
|
62
|
+
completed: z.boolean(),
|
|
63
|
+
/**
|
|
64
|
+
* String on the wire and optional: the Mongo field has no default and is only written
|
|
65
|
+
* when onboarding completes.
|
|
66
|
+
*/
|
|
67
|
+
completed_at: z.string().meta({ format: 'date-time' }).optional(),
|
|
68
|
+
}),
|
|
69
|
+
datacenter: z.string(),
|
|
70
|
+
account_type: AccountTypeSchema,
|
|
71
|
+
billing: AccountBillingSchema,
|
|
72
|
+
quota_tier: QuotaTierSchema.meta({
|
|
73
|
+
description: 'Quota/rate-limit tier. Unset → the deployment default tier (env `QUOTA_BASE_TIER`).',
|
|
74
|
+
}).optional(),
|
|
75
|
+
feature_flags: z
|
|
76
|
+
.record(z.string(), z.unknown())
|
|
77
|
+
.meta({
|
|
78
|
+
description: 'Ops-managed per-account feature flags. Untyped by design so operators can add / remove ' +
|
|
79
|
+
'temporary rollout gates without a schema change. Keys are enumerated in the admin UI from ' +
|
|
80
|
+
'a hardcoded registry (studio-server) — flags not in that registry are ignored. Not ' +
|
|
81
|
+
'modifiable through the public account API; admin API only.',
|
|
82
|
+
})
|
|
83
|
+
.optional(),
|
|
84
|
+
created_by: z.string(),
|
|
85
|
+
updated_by: z.string(),
|
|
86
|
+
created_at: z.string().meta({ format: 'date-time' }),
|
|
87
|
+
updated_at: z.string().meta({ format: 'date-time' }),
|
|
88
|
+
})
|
|
89
|
+
.meta({ id: 'Account' });
|
|
90
|
+
/**
|
|
91
|
+
* No `quota_tier`. The previously published payload declared it, but `PUT /account` never applied
|
|
92
|
+
* it — the field is written only through the admin quota API. Documenting a field the handler
|
|
93
|
+
* ignores is the drift this work exists to remove, and once request validation enforces the
|
|
94
|
+
* schema, a client sending it gets an honest 400 instead of silence. It also closes the door on a
|
|
95
|
+
* future "fix" that would let an account admin raise their own rate-limit tier through the public
|
|
96
|
+
* API.
|
|
97
|
+
*/
|
|
98
|
+
export const UpdateAccountPayloadSchema = z
|
|
99
|
+
.object({
|
|
100
|
+
name: z.string().optional(),
|
|
101
|
+
app_access_message: z.string().max(ACCOUNT_APP_ACCESS_MESSAGE_MAX_LENGTH).optional(),
|
|
102
|
+
email_domains: z.array(z.string()).optional(),
|
|
103
|
+
billing: AccountBillingSchema.optional(),
|
|
104
|
+
})
|
|
105
|
+
.meta({ id: 'UpdateAccountPayload' });
|
|
106
|
+
/**
|
|
107
|
+
* Stripe billing status, modelled as a real discriminated union.
|
|
108
|
+
*
|
|
109
|
+
* The hand-written `StripeBillingStatusResponse` in `meters.ts` flattens this into one object
|
|
110
|
+
* with `portal_url?` and `reason?` both optional, so a generated Java/Go client gets two
|
|
111
|
+
* unrelated optionals and no way to know which is populated. The server only ever sets
|
|
112
|
+
* `portal_url` when enabled and `reason` when disabled.
|
|
113
|
+
*/
|
|
114
|
+
export const StripeBillingEnabledSchema = z
|
|
115
|
+
.object({
|
|
116
|
+
status: z.literal('enabled'),
|
|
117
|
+
/**
|
|
118
|
+
* Only ever `stripe`. The handler returns the enabled branch exclusively after checking
|
|
119
|
+
* `account.billing.method === BillingMethod.stripe`, so widening this to the full enum
|
|
120
|
+
* would describe states the server cannot produce.
|
|
121
|
+
*/
|
|
122
|
+
billing_method: z.literal(BillingMethod.stripe),
|
|
123
|
+
portal_url: z.string(),
|
|
124
|
+
})
|
|
125
|
+
.meta({ id: 'StripeBillingEnabled' });
|
|
126
|
+
export const StripeBillingDisabledSchema = z
|
|
127
|
+
.object({
|
|
128
|
+
status: z.literal('disabled'),
|
|
129
|
+
billing_method: BillingMethodSchema.nullable(),
|
|
130
|
+
reason: z.string(),
|
|
131
|
+
})
|
|
132
|
+
.meta({ id: 'StripeBillingDisabled' });
|
|
133
|
+
export const StripeBillingStatusResponseSchema = z
|
|
134
|
+
.discriminatedUnion('status', [StripeBillingEnabledSchema, StripeBillingDisabledSchema])
|
|
135
|
+
.meta({ id: 'StripeBillingStatusResponse' });
|
|
136
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/api-schemas/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,oGAAoG;AACpG,iGAAiG;AACjG,OAAO,EAAE,qCAAqC,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEpH;;;;;;;;;;;GAWG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;AACvF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;AACjF,MAAM,CAAC,MAAM,eAAe,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,MAAM,CAAC;IACJ,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC5B;;;;OAIG;IACH,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,sBAAsB,EAAE,CAAC,CAAC;AAE1C,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACvC,MAAM,CAAC;IACJ,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC7B,cAAc,EAAE,mBAAmB,CAAC,QAAQ,EAAE;IAC9C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC7C,kBAAkB,CAAC,QAAQ,EAAE,CAAC,0BAA0B,EAAE,2BAA2B,CAAC,CAAC;KACvF,IAAI,CAAC,EAAE,EAAE,EAAE,6BAA6B,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Library-neutral JSON Schema -> OpenAPI 3.1 `components.schemas` adapter.
|
|
3
|
+
*
|
|
4
|
+
* Input is plain JSON Schema, so this works for any authoring library. It normalizes the three
|
|
5
|
+
* ways a schema library expresses a named reference into the one form OpenAPI needs:
|
|
6
|
+
*
|
|
7
|
+
* - zod `$defs` + `{"$ref": "#/$defs/X"}` (and `{"$ref": "#"}` for self-recursion)
|
|
8
|
+
* - typebox a nested subschema carrying `$id` (hoisted here, per the same contract)
|
|
9
|
+
* - either a bare `{"$ref": "X"}` id pointer
|
|
10
|
+
*
|
|
11
|
+
* All three become `{"$ref": "#/components/schemas/X"}` with the target hoisted into components,
|
|
12
|
+
* so the pointer that is published is byte-identical to the pointer AJV compiles. That identity
|
|
13
|
+
* is the whole point: the spec cannot drift from the enforced contract because they are the same
|
|
14
|
+
* object.
|
|
15
|
+
*
|
|
16
|
+
* The input is never mutated.
|
|
17
|
+
*/
|
|
18
|
+
export type JsonObject = Record<string, unknown>;
|
|
19
|
+
/** How a component treats properties it does not declare. */
|
|
20
|
+
export type AdditionalPropertiesPolicy = 'open' | 'closed';
|
|
21
|
+
export interface AdapterOptions {
|
|
22
|
+
/**
|
|
23
|
+
* Components that reject undeclared properties. Everything else is left open — omitting the
|
|
24
|
+
* keyword entirely, so extras are accepted and RETAINED. Existing endpoints must stay open:
|
|
25
|
+
* they currently cast the payload without validating, so rejecting extras would be a breaking
|
|
26
|
+
* API change. Only new endpoints should opt in to 'closed'.
|
|
27
|
+
*/
|
|
28
|
+
strictComponents?: ReadonlySet<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Already-published components that roots may reference without redefining. They participate in
|
|
31
|
+
* reference resolution and discriminator synthesis, but are not copied into the returned map or
|
|
32
|
+
* subjected to this adaptation pass.
|
|
33
|
+
*/
|
|
34
|
+
referenceComponents?: Readonly<Record<string, JsonObject>>;
|
|
35
|
+
}
|
|
36
|
+
export declare class SchemaAdapterError extends Error {
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Converts a map of named JSON Schemas into OpenAPI `components.schemas`.
|
|
40
|
+
*
|
|
41
|
+
* @param roots component name -> plain JSON Schema
|
|
42
|
+
*/
|
|
43
|
+
export declare function toOpenApiComponents(roots: Readonly<Record<string, unknown>>, options?: AdapterOptions): Record<string, JsonObject>;
|
|
44
|
+
/**
|
|
45
|
+
* {@link resolveChain} for callers that only need to know whether resolution succeeded.
|
|
46
|
+
*
|
|
47
|
+
* Exported so parameter normalization follows the same reference semantics as pruning rather than
|
|
48
|
+
* carrying a second, subtly different resolver. A query parameter typed by a hoisted enum is reached
|
|
49
|
+
* through exactly the chain walked here, so what the normalizer coerces towards and what the spec
|
|
50
|
+
* publishes are read off the same node.
|
|
51
|
+
*/
|
|
52
|
+
export declare function resolveSchemaRef(schema: JsonObject, components: Readonly<Record<string, JsonObject>>): JsonObject | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Reports the paths within a component where {@link pruneToSchema} cannot narrow. Values at those
|
|
55
|
+
* paths pass through untouched, extras included.
|
|
56
|
+
*
|
|
57
|
+
* An empty report means every path is structurally prunable FOR SCHEMA-CONFORMING INPUT. It is not
|
|
58
|
+
* a guarantee about arbitrary payloads: a discriminated union whose discriminator carries a value
|
|
59
|
+
* with no mapping entry still passes through, because no branch describes it. Treat an empty
|
|
60
|
+
* report as "no structural gaps", not as "nothing can escape".
|
|
61
|
+
*/
|
|
62
|
+
export declare function findUnprunablePaths(schema: JsonObject, components: Readonly<Record<string, JsonObject>>): string[];
|
|
63
|
+
/**
|
|
64
|
+
* Best-effort narrowing of a response payload to the properties its published schema declares.
|
|
65
|
+
*
|
|
66
|
+
* NOT A SECURITY BOUNDARY. Where the schema is ambiguous — an `allOf` intersection, a union with
|
|
67
|
+
* no discriminator, a discriminator value with no mapping entry, or an unresolvable `$ref` — the
|
|
68
|
+
* value passes through UNTOUCHED, extras included. Losing data is worse than guessing, so the
|
|
69
|
+
* pruner declines rather than improvises. Anything that must never reach a client (secrets,
|
|
70
|
+
* internal identifiers) still needs an explicit response mapper or a request/response type split;
|
|
71
|
+
* this must not be relied on to remove it. {@link findUnprunablePaths} reports where a given
|
|
72
|
+
* component falls into those gaps.
|
|
73
|
+
*
|
|
74
|
+
* Responses are pruned rather than rejected: a document carrying an undocumented field is the
|
|
75
|
+
* server's problem, not the caller's, and failing would turn drift into a 500.
|
|
76
|
+
*
|
|
77
|
+
* The input is never mutated.
|
|
78
|
+
*/
|
|
79
|
+
export declare function pruneToSchema(value: unknown, schema: JsonObject, components: Readonly<Record<string, JsonObject>>): unknown;
|
|
80
|
+
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"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