@vertesia/common 1.5.0-dev.20260725.083715Z → 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 +107 -1151
- 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 -115
- 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 +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.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 +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 +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 -700
- 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 +54 -518
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js +23 -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 +13 -4
- 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 +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 +234 -1213
- 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 +11 -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.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 +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 +97 -557
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/api-schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAG3D;;GAEG;AAEH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;iBAIE,CAAC;AAEvC,eAAO,MAAM,qBAAqB;;iBAIE,CAAC;AAErC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAElD,CAAC"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
// From the values module, for the reason `./apikey.js` gives.
|
|
3
|
+
import { SupportedIntegrations } from '../integrations.js';
|
|
4
|
+
import { ProjectConfigurationSchema } from './project-configuration.js';
|
|
5
|
+
/**
|
|
6
|
+
* Runtime API schemas for projects and project-scoped definitions.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* `ListProjects` and the four app-asset listings expand these into `in: query` parameters rather
|
|
10
|
+
* than referencing them, so what has to survive is the optionality, not the component identity.
|
|
11
|
+
*/
|
|
12
|
+
export const ListProjectsQuerySchema = z
|
|
13
|
+
.object({
|
|
14
|
+
account: z.string().optional(),
|
|
15
|
+
})
|
|
16
|
+
.meta({ id: 'ListProjectsQuery' });
|
|
17
|
+
export const ProjectTagQuerySchema = z
|
|
18
|
+
.object({
|
|
19
|
+
tag: z.string().optional(),
|
|
20
|
+
})
|
|
21
|
+
.meta({ id: 'ProjectTagQuery' });
|
|
22
|
+
export const CreateProjectPayloadSchema = z
|
|
23
|
+
.object({
|
|
24
|
+
name: z.string(),
|
|
25
|
+
namespace: z.string(),
|
|
26
|
+
description: z.string().optional(),
|
|
27
|
+
auto_config: z.boolean().optional(),
|
|
28
|
+
})
|
|
29
|
+
.meta({ id: 'ICreateProjectPayload' });
|
|
30
|
+
export const ProjectPluginsUpdatePayloadSchema = z
|
|
31
|
+
.object({
|
|
32
|
+
plugins: z.array(z.string()),
|
|
33
|
+
})
|
|
34
|
+
.meta({ id: 'ProjectPluginsUpdatePayload' });
|
|
35
|
+
/**
|
|
36
|
+
* The shared "how many rows did that touch" response.
|
|
37
|
+
*
|
|
38
|
+
* Four slots across three resources and TWO services — `UpdateProjectPlugins`, `DeleteApp` and
|
|
39
|
+
* `UninstallApp` on studio, `CountObjects` on zeno — so like `DeleteByIdResult` it has to move as a
|
|
40
|
+
* unit or the generator sees a canonical and a derived component under one name.
|
|
41
|
+
*
|
|
42
|
+
* `count` stays `type: number` rather than `integer`, because that is what the derived component
|
|
43
|
+
* said. Reproducing the contract, not renegotiating it.
|
|
44
|
+
*/
|
|
45
|
+
export const CountResultSchema = z
|
|
46
|
+
.object({
|
|
47
|
+
count: z.number(),
|
|
48
|
+
})
|
|
49
|
+
.meta({ id: 'CountResult' });
|
|
50
|
+
export const SupportedIntegrationsSchema = z.enum(SupportedIntegrations).meta({ id: 'SupportedIntegrations' });
|
|
51
|
+
export const ProjectIntegrationListEntrySchema = z
|
|
52
|
+
.object({
|
|
53
|
+
id: SupportedIntegrationsSchema,
|
|
54
|
+
enabled: z.boolean(),
|
|
55
|
+
})
|
|
56
|
+
.meta({ id: 'ProjectIntegrationListEntry' });
|
|
57
|
+
/** An envelope rather than a bare array, which is what the document already publishes. */
|
|
58
|
+
export const ProjectIntegrationListResponseSchema = z
|
|
59
|
+
.object({
|
|
60
|
+
integrations: z.array(ProjectIntegrationListEntrySchema),
|
|
61
|
+
})
|
|
62
|
+
.meta({ id: 'ProjectIntegrationListResponse' });
|
|
63
|
+
/**
|
|
64
|
+
* A tool and the app installation that provides it.
|
|
65
|
+
*
|
|
66
|
+
* `settings` is the reason this one is worth converting on its own: it holds the installation's
|
|
67
|
+
* configuration, which can contain provider API keys, and the handler includes it only for agent
|
|
68
|
+
* tokens. The component declares it optional and unconstrained — publishing it is a decision the
|
|
69
|
+
* handler makes per request, so the schema cannot express the rule, but it can at least stop the
|
|
70
|
+
* shape drifting while the rule is enforced elsewhere.
|
|
71
|
+
*/
|
|
72
|
+
export const ProjectToolInfoSchema = z
|
|
73
|
+
.object({
|
|
74
|
+
tool_name: z.string().meta({ description: 'The tool name' }),
|
|
75
|
+
tool_description: z.string().optional().meta({ description: 'Optional tool description' }),
|
|
76
|
+
app_name: z.string().meta({ description: 'The app name that provides this tool' }),
|
|
77
|
+
app_install_id: z.string().meta({ description: 'The app installation ID' }),
|
|
78
|
+
settings: z
|
|
79
|
+
.record(z.string(), z.unknown())
|
|
80
|
+
.optional()
|
|
81
|
+
.meta({
|
|
82
|
+
description: 'The app installation settings. Only included for agent tokens, not user tokens ' +
|
|
83
|
+
'(security: may contain API keys).',
|
|
84
|
+
}),
|
|
85
|
+
})
|
|
86
|
+
.meta({
|
|
87
|
+
id: 'ProjectToolInfo',
|
|
88
|
+
description: 'Information about a tool and its associated app installation. Used to look up which app ' +
|
|
89
|
+
'provides a specific tool.',
|
|
90
|
+
});
|
|
91
|
+
export const ProjectToolInfoArraySchema = z.array(ProjectToolInfoSchema).meta({ id: 'ProjectToolInfoArray' });
|
|
92
|
+
/**
|
|
93
|
+
* The rendering templates an app ships, and the reference form the manifest embeds.
|
|
94
|
+
*
|
|
95
|
+
* These were deferred once for a reason that no longer holds. `RenderingTemplateDefinitionRef` is an
|
|
96
|
+
* `Omit<>`, and the scanner emits an `Omit<>` with `additionalProperties` ahead of `properties` and
|
|
97
|
+
* an alphabetized `required` — an ordering Zod does not reproduce. The conflict check compares
|
|
98
|
+
* OBJECTS order-insensitively now, so the property order no longer matters; `required` is an array
|
|
99
|
+
* and is still compared in order, which is why the shape below is declared alphabetically while
|
|
100
|
+
* {@link RenderingTemplateDefinitionSchema} is declared in its interface's order. Neither ordering
|
|
101
|
+
* carries meaning in JSON Schema — they exist so a canonical component and the one the scanner still
|
|
102
|
+
* derives for `AppManifestData.templates` agree exactly.
|
|
103
|
+
*/
|
|
104
|
+
const RenderingTemplateTypeSchema = z.enum(['presentation', 'document']).meta({ description: 'Template type' });
|
|
105
|
+
const renderingTemplateFields = {
|
|
106
|
+
id: z.string().meta({ description: 'Unique template id: "collection:name"' }),
|
|
107
|
+
name: z.string().meta({ description: 'Unique template name (kebab-case)' }),
|
|
108
|
+
title: z.string().optional().meta({ description: 'Display title' }),
|
|
109
|
+
description: z.string().meta({ description: 'Short description' }),
|
|
110
|
+
type: RenderingTemplateTypeSchema,
|
|
111
|
+
tags: z.array(z.string()).optional().meta({ description: 'Tags for categorization' }),
|
|
112
|
+
assets: z.array(z.string()).meta({ description: 'Absolute paths to asset files' }),
|
|
113
|
+
};
|
|
114
|
+
export const RenderingTemplateDefinitionSchema = z
|
|
115
|
+
.object({
|
|
116
|
+
...renderingTemplateFields,
|
|
117
|
+
instructions: z.string().meta({ description: 'The template instructions (markdown)' }),
|
|
118
|
+
})
|
|
119
|
+
.meta({ id: 'RenderingTemplateDefinition' });
|
|
120
|
+
export const RenderingTemplateDefinitionRefSchema = z
|
|
121
|
+
.object({
|
|
122
|
+
assets: renderingTemplateFields.assets,
|
|
123
|
+
description: renderingTemplateFields.description,
|
|
124
|
+
id: renderingTemplateFields.id,
|
|
125
|
+
name: renderingTemplateFields.name,
|
|
126
|
+
path: z.string().meta({ description: 'Absolute API path to fetch the full template definition' }),
|
|
127
|
+
type: renderingTemplateFields.type,
|
|
128
|
+
title: renderingTemplateFields.title,
|
|
129
|
+
tags: renderingTemplateFields.tags,
|
|
130
|
+
})
|
|
131
|
+
.meta({ id: 'RenderingTemplateDefinitionRef' });
|
|
132
|
+
/**
|
|
133
|
+
* The project itself — the component `GetProject`, `UpdateProject` and `CreateProject` all return.
|
|
134
|
+
*
|
|
135
|
+
* This schema corrects two declarations that no HTTP response ever matched. `integrations` was
|
|
136
|
+
* `Map<string, unknown>` and the timestamps were `Date`; JSON carries neither, so a caller writing
|
|
137
|
+
* `project.integrations.get(id)` or `project.created_at.getTime()` got a `TypeError` against a shape
|
|
138
|
+
* TypeScript had promised. Both are source-breaking corrections for SDK consumers and wire-neutral —
|
|
139
|
+
* proved by `apps/studio-server/src/api/projects/project-wire-shape.test.ts`, which serializes a real
|
|
140
|
+
* `ProjectModel` document the way the handler does. Operation 24 of the 1.5 deployment runbook.
|
|
141
|
+
*
|
|
142
|
+
* The published wire shape remains the same. `Map<string, unknown>` was already emitted
|
|
143
|
+
* as an open object, and the timestamps as `format: date-time` strings — which is why they carry
|
|
144
|
+
* `.meta({ format: 'date-time' })`: a bare `z.string()` would silently drop the format and narrow
|
|
145
|
+
* `OffsetDateTime`/`time.Time` to `String` in the generated clients. `z.iso.datetime()` would keep
|
|
146
|
+
* the format but also publish its validation regex as a `pattern`, which is a new constraint on a
|
|
147
|
+
* component that never had one — the same class of change as the intake bounds, and not one to make
|
|
148
|
+
* accidentally.
|
|
149
|
+
*
|
|
150
|
+
* `integrations` stays an open `z.record()` on purpose. Its values are per-integration configuration
|
|
151
|
+
* objects with no common shape, and `SupportedIntegrations` is not a closed key set for stored data —
|
|
152
|
+
* a project can hold configuration for an integration this build no longer knows about.
|
|
153
|
+
*
|
|
154
|
+
* The persistence type is NOT this: `IProject` in `@dglabs/server-common` keeps the `Map` and the
|
|
155
|
+
* `Date`s, because that is what Mongo really holds, and `toProjectResponse()` in studio-server is the
|
|
156
|
+
* single place that converts — and the single place `tenant_id` is dropped, which the model computes
|
|
157
|
+
* and this component has never declared.
|
|
158
|
+
*/
|
|
159
|
+
export const ProjectSchema = z
|
|
160
|
+
.strictObject({
|
|
161
|
+
id: z.string(),
|
|
162
|
+
name: z.string(),
|
|
163
|
+
namespace: z.string(),
|
|
164
|
+
description: z.string().optional(),
|
|
165
|
+
account: z.string(),
|
|
166
|
+
configuration: ProjectConfigurationSchema,
|
|
167
|
+
integrations: z.record(z.string(), z.unknown()).optional(),
|
|
168
|
+
plugins: z.array(z.string()),
|
|
169
|
+
created_by: z.string(),
|
|
170
|
+
updated_by: z.string(),
|
|
171
|
+
created_at: z.string().meta({ format: 'date-time' }),
|
|
172
|
+
updated_at: z.string().meta({ format: 'date-time' }),
|
|
173
|
+
})
|
|
174
|
+
.meta({ id: 'Project' });
|
|
175
|
+
/**
|
|
176
|
+
* The `UpdateProject` and `UpdateProjectConfiguration` request bodies.
|
|
177
|
+
*
|
|
178
|
+
* `.partial()` keeps both update contracts tied to the corresponding response contract, so a field
|
|
179
|
+
* added to either source schema is available to its update payload without a hand-written twin.
|
|
180
|
+
*/
|
|
181
|
+
export const UpdateProjectPayloadSchema = ProjectSchema.partial().meta({ id: 'UpdateProjectPayload' });
|
|
182
|
+
export const UpdateProjectConfigurationPayloadSchema = ProjectConfigurationSchema.partial().meta({
|
|
183
|
+
id: 'UpdateProjectConfigurationPayload',
|
|
184
|
+
});
|
|
185
|
+
//# sourceMappingURL=project.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/api-schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,8DAA8D;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAExE;;GAEG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACnC,MAAM,CAAC;IACJ,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,mBAAmB,EAAE,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACjC,MAAM,CAAC;IACJ,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,iBAAiB,EAAE,CAAC,CAAC;AAErC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACtC,MAAM,CAAC;IACJ,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC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ema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3
|
+
export declare const RenderPromptResponseSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
role: z.ZodString;
|
|
7
|
+
content_type: z.ZodString;
|
|
8
|
+
rendered: z.ZodString;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
export declare const PromptTemplateInteractionVersionSchema: z.ZodObject<{
|
|
11
|
+
version: z.ZodNumber;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export declare const PromptTemplateForkPayloadSchema: z.ZodObject<{
|
|
14
|
+
keepTags: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
targetProject: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
export declare const PromptSearchQuerySchema: z.ZodObject<{
|
|
18
|
+
name: z.ZodOptional<z.ZodString>;
|
|
19
|
+
status: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
role: z.ZodOptional<z.ZodString>;
|
|
23
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
matchInteractions: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export declare const PromptTemplateInteractionUsageSchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
30
|
+
version: z.ZodNumber;
|
|
31
|
+
}, z.core.$strict>>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
export declare const ComputePromptFacetPayloadSchema: z.ZodObject<{
|
|
34
|
+
facets: z.ZodArray<z.ZodObject<{
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
field: z.ZodString;
|
|
37
|
+
}, z.core.$strict>>;
|
|
38
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
name: z.ZodOptional<z.ZodString>;
|
|
40
|
+
status: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
role: z.ZodOptional<z.ZodString>;
|
|
44
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
+
matchInteractions: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
}, z.core.$strict>>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
export declare const PromptTemplateInteractionsResponseSchema: z.ZodObject<{
|
|
49
|
+
prompt: z.ZodString;
|
|
50
|
+
interactions: z.ZodArray<z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
54
|
+
version: z.ZodNumber;
|
|
55
|
+
}, z.core.$strict>>;
|
|
56
|
+
}, z.core.$strict>>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
export declare const PromptTemplateRefArraySchema: z.ZodArray<z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
description: z.ZodOptional<z.ZodString>;
|
|
62
|
+
role: z.ZodEnum<typeof import("@llumiverse/common").PromptRole>;
|
|
63
|
+
version: z.ZodNumber;
|
|
64
|
+
status: z.ZodEnum<typeof import("../prompt.js").PromptStatus>;
|
|
65
|
+
content_type: z.ZodOptional<z.ZodEnum<typeof import("../prompt.js").TemplateType>>;
|
|
66
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
|
+
created_at: z.ZodString;
|
|
68
|
+
updated_at: z.ZodString;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
//# sourceMappingURL=prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/api-schemas/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,yBAAyB,wCAK8B,CAAC;AAErE,eAAO,MAAM,0BAA0B;;;;;;kBAQE,CAAC;AAE1C,eAAO,MAAM,sCAAsC;;kBAIE,CAAC;AAEtD,eAAO,MAAM,+BAA+B;;;kBAKE,CAAC;AAE/C,eAAO,MAAM,uBAAuB;;;;;;;;kBAsBE,CAAC;AAEvC,eAAO,MAAM,oCAAoC;;;;;;kBAME,CAAC;AAEpD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;kBAKE,CAAC;AAE/C,eAAO,MAAM,wCAAwC;;;;;;;;;kBAKE,CAAC;AAExD,eAAO,MAAM,4BAA4B;;;;;;;;;;;mBAA0E,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { FacetSpecSchema, PromptTemplateRefSchema } from './interaction.js';
|
|
3
|
+
// The prompt-authoring contracts: what a fork, a render and a prompt search publish, and how a
|
|
4
|
+
// prompt's interaction usages are reported. `PromptTemplate` itself and its two write payloads live
|
|
5
|
+
// in `./interaction.js`, which is where the prompt tree the interactions reference is defined.
|
|
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 RenderPromptPayloadSchema = z
|
|
11
|
+
.record(z.string(), z.unknown())
|
|
12
|
+
// Preserve the explicit free-form spelling OpenAPI Generator needs to emit a request-body
|
|
13
|
+
// setter. An empty additionalProperties schema is validator-equivalent but generates a
|
|
14
|
+
// different Go API, and the adapter intentionally normalizes component roots conservatively.
|
|
15
|
+
.meta({ id: 'RenderPromptPayload', additionalProperties: true });
|
|
16
|
+
export const RenderPromptResponseSchema = z
|
|
17
|
+
.strictObject({
|
|
18
|
+
id: z.string(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
role: z.string(),
|
|
21
|
+
content_type: z.string(),
|
|
22
|
+
rendered: z.string(),
|
|
23
|
+
})
|
|
24
|
+
.meta({ id: 'RenderPromptResponse' });
|
|
25
|
+
export const PromptTemplateInteractionVersionSchema = z
|
|
26
|
+
.strictObject({
|
|
27
|
+
version: z.number(),
|
|
28
|
+
})
|
|
29
|
+
.meta({ id: 'PromptTemplateInteractionVersion' });
|
|
30
|
+
export const PromptTemplateForkPayloadSchema = z
|
|
31
|
+
.strictObject({
|
|
32
|
+
keepTags: z.boolean().optional(),
|
|
33
|
+
targetProject: z.string().optional(),
|
|
34
|
+
})
|
|
35
|
+
.meta({ id: 'PromptTemplateForkPayload' });
|
|
36
|
+
export const PromptSearchQuerySchema = z
|
|
37
|
+
.strictObject({
|
|
38
|
+
name: z.string().meta({ description: 'Case-insensitive substring match on the prompt name.' }).optional(),
|
|
39
|
+
status: z
|
|
40
|
+
.array(z.string())
|
|
41
|
+
.meta({
|
|
42
|
+
description: 'Accepted and ignored. `GET /prompts` and `POST /prompts/facets` list drafts only, and always have.',
|
|
43
|
+
})
|
|
44
|
+
.optional(),
|
|
45
|
+
limit: z.number().meta({ description: 'Maximum number of prompts to return. Defaults to 100.' }).optional(),
|
|
46
|
+
offset: z.number().meta({ description: 'Number of prompts to skip.' }).optional(),
|
|
47
|
+
role: z.string().meta({ description: 'Exact match on the prompt role.' }).optional(),
|
|
48
|
+
tags: z.array(z.string()).meta({ description: 'Match prompts carrying any of these tags.' }).optional(),
|
|
49
|
+
matchInteractions: z
|
|
50
|
+
.boolean()
|
|
51
|
+
.meta({
|
|
52
|
+
description: 'Accepted and ignored. It used to attach the interactions referencing each prompt, in a shape no response component ever declared; nothing consumed it.',
|
|
53
|
+
})
|
|
54
|
+
.optional(),
|
|
55
|
+
})
|
|
56
|
+
.meta({ id: 'PromptSearchQuery' });
|
|
57
|
+
export const PromptTemplateInteractionUsageSchema = z
|
|
58
|
+
.strictObject({
|
|
59
|
+
id: z.string(),
|
|
60
|
+
name: z.string(),
|
|
61
|
+
versions: z.array(PromptTemplateInteractionVersionSchema),
|
|
62
|
+
})
|
|
63
|
+
.meta({ id: 'PromptTemplateInteractionUsage' });
|
|
64
|
+
export const ComputePromptFacetPayloadSchema = z
|
|
65
|
+
.strictObject({
|
|
66
|
+
facets: z.array(FacetSpecSchema),
|
|
67
|
+
query: PromptSearchQuerySchema.optional(),
|
|
68
|
+
})
|
|
69
|
+
.meta({ id: 'ComputePromptFacetPayload' });
|
|
70
|
+
export const PromptTemplateInteractionsResponseSchema = z
|
|
71
|
+
.strictObject({
|
|
72
|
+
prompt: z.string(),
|
|
73
|
+
interactions: z.array(PromptTemplateInteractionUsageSchema),
|
|
74
|
+
})
|
|
75
|
+
.meta({ id: 'PromptTemplateInteractionsResponse' });
|
|
76
|
+
export const PromptTemplateRefArraySchema = z.array(PromptTemplateRefSchema).meta({ id: 'PromptTemplateRefArray' });
|
|
77
|
+
//# sourceMappingURL=prompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../src/api-schemas/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,+FAA+F;AAC/F,oGAAoG;AACpG,+FAA+F;AAC/F,EAAE;AACF,oGAAoG;AACpG,mGAAmG;AACnG,wDAAwD;AAExD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACrC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;IAChC,0FAA0F;IAC1F,uFAAuF;IACvF,6FAA6F;KAC5F,IAAI,CAAC,EAAE,EAAE,EAAE,qBAAqB,EAA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IAClB,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,oCAAoC,CAAC;CAC9D,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,oCAAoC,EAAE,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,wBAAwB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Runtime API schemas for quota standing and tier endpoints.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Note the `id`: this is a hoisted component in the document, not an inline string. `z.string()` alone
|
|
7
|
+
* would inline it at every use site and change three published schemas.
|
|
8
|
+
*/
|
|
9
|
+
export declare const QuotaEffectiveTierSchema: z.ZodString;
|
|
10
|
+
/**
|
|
11
|
+
* Descriptions go in `.meta()`, not in TSDoc comments.
|
|
12
|
+
*
|
|
13
|
+
* Zod does not read comments, so public descriptions belong in schema metadata.
|
|
14
|
+
*/
|
|
15
|
+
export declare const QuotaStandingWindowSchema: z.ZodObject<{
|
|
16
|
+
limit: z.ZodNumber;
|
|
17
|
+
used: z.ZodNumber;
|
|
18
|
+
remaining: z.ZodNumber;
|
|
19
|
+
window_ms: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const QuotaStandingResourceSchema: z.ZodObject<{
|
|
22
|
+
resource: z.ZodString;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
burst: z.ZodObject<{
|
|
25
|
+
limit: z.ZodNumber;
|
|
26
|
+
used: z.ZodNumber;
|
|
27
|
+
remaining: z.ZodNumber;
|
|
28
|
+
window_ms: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
quota: z.ZodObject<{
|
|
31
|
+
limit: z.ZodNumber;
|
|
32
|
+
used: z.ZodNumber;
|
|
33
|
+
remaining: z.ZodNumber;
|
|
34
|
+
window_ms: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const QuotaStandingAdmissionClassSchema: z.ZodObject<{
|
|
38
|
+
class: z.ZodString;
|
|
39
|
+
tenant_active: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const QuotaStandingResponseSchema: z.ZodObject<{
|
|
42
|
+
tenant_id: z.ZodString;
|
|
43
|
+
available: z.ZodBoolean;
|
|
44
|
+
base_tier: z.ZodString;
|
|
45
|
+
effective_tier: z.ZodString;
|
|
46
|
+
api: z.ZodArray<z.ZodObject<{
|
|
47
|
+
resource: z.ZodString;
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
burst: z.ZodObject<{
|
|
50
|
+
limit: z.ZodNumber;
|
|
51
|
+
used: z.ZodNumber;
|
|
52
|
+
remaining: z.ZodNumber;
|
|
53
|
+
window_ms: z.ZodNumber;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
quota: z.ZodObject<{
|
|
56
|
+
limit: z.ZodNumber;
|
|
57
|
+
used: z.ZodNumber;
|
|
58
|
+
remaining: z.ZodNumber;
|
|
59
|
+
window_ms: z.ZodNumber;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
admission: z.ZodObject<{
|
|
63
|
+
classes: z.ZodArray<z.ZodObject<{
|
|
64
|
+
class: z.ZodString;
|
|
65
|
+
tenant_active: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
note: z.ZodString;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
llm: z.ZodObject<{
|
|
70
|
+
note: z.ZodString;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export declare const QuotaTierResponseSchema: z.ZodObject<{
|
|
74
|
+
tier: z.ZodString;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
/**
|
|
77
|
+
* The public quota types, inferred rather than written.
|
|
78
|
+
*
|
|
79
|
+
* Every schema in the closure gets one — not only the two the endpoints return. A hand-written
|
|
80
|
+
* `QuotaStandingWindow` sitting beside an inferred `QuotaStandingResponse` would create two
|
|
81
|
+
* definitions of one contract, only one of which OpenAPI publishes and AJV compiles.
|
|
82
|
+
* `../rate-limiter.ts` re-exports these under their public names.
|
|
83
|
+
*/
|
|
84
|
+
export type QuotaEffectiveTierFromSchema = z.infer<typeof QuotaEffectiveTierSchema>;
|
|
85
|
+
export type QuotaStandingWindowFromSchema = z.infer<typeof QuotaStandingWindowSchema>;
|
|
86
|
+
export type QuotaStandingResourceFromSchema = z.infer<typeof QuotaStandingResourceSchema>;
|
|
87
|
+
export type QuotaStandingAdmissionClassFromSchema = z.infer<typeof QuotaStandingAdmissionClassSchema>;
|
|
88
|
+
export type QuotaStandingResponseFromSchema = z.infer<typeof QuotaStandingResponseSchema>;
|
|
89
|
+
export type QuotaTierResponseFromSchema = z.infer<typeof QuotaTierResponseSchema>;
|
|
90
|
+
//# sourceMappingURL=quota.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quota.d.ts","sourceRoot":"","sources":["../../src/api-schemas/quota.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH;;;GAGG;AACH,eAAO,MAAM,wBAAwB,aAMnC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;iBAehC,CAAC;AAEP,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;iBAOE,CAAC;AAE3C,eAAO,MAAM,iCAAiC;;;iBAKE,CAAC;AAEjD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmCE,CAAC;AAE3C,eAAO,MAAM,uBAAuB;;iBAa9B,CAAC;AAEP;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACtF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC1F,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACtG,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC1F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Runtime API schemas for quota standing and tier endpoints.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Note the `id`: this is a hoisted component in the document, not an inline string. `z.string()` alone
|
|
7
|
+
* would inline it at every use site and change three published schemas.
|
|
8
|
+
*/
|
|
9
|
+
export const QuotaEffectiveTierSchema = z.string().meta({
|
|
10
|
+
id: 'QuotaEffectiveTier',
|
|
11
|
+
description: 'Effective quota tier name after account-level overrides and account-type derivation. ' +
|
|
12
|
+
'Code-defined tier names are currently `QuotaTier`, but this remains a string because deployments ' +
|
|
13
|
+
'can introduce quota tiers through configuration.',
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Descriptions go in `.meta()`, not in TSDoc comments.
|
|
17
|
+
*
|
|
18
|
+
* Zod does not read comments, so public descriptions belong in schema metadata.
|
|
19
|
+
*/
|
|
20
|
+
export const QuotaStandingWindowSchema = z
|
|
21
|
+
.object({
|
|
22
|
+
limit: z.number().meta({
|
|
23
|
+
description: 'Effective limit for this window (after effective account tier + per-tenant override).',
|
|
24
|
+
}),
|
|
25
|
+
used: z.number().meta({ description: 'Requests used in the current window.' }),
|
|
26
|
+
remaining: z.number().meta({ description: 'Requests remaining (max(0, limit - used)).' }),
|
|
27
|
+
window_ms: z.number(),
|
|
28
|
+
})
|
|
29
|
+
.meta({
|
|
30
|
+
id: 'QuotaStandingWindow',
|
|
31
|
+
description: 'A caller\'s own quota standing (GET /api/v1/quota/standing) — "where am I". API rate limits are ' +
|
|
32
|
+
'genuinely per-tenant; workflow admission and the LLM limiter are global/discovered, so they are ' +
|
|
33
|
+
'reported as posture, not per-tenant numbers.',
|
|
34
|
+
});
|
|
35
|
+
export const QuotaStandingResourceSchema = z
|
|
36
|
+
.object({
|
|
37
|
+
resource: z.string(),
|
|
38
|
+
name: z.string(),
|
|
39
|
+
burst: QuotaStandingWindowSchema,
|
|
40
|
+
quota: QuotaStandingWindowSchema,
|
|
41
|
+
})
|
|
42
|
+
.meta({ id: 'QuotaStandingResource' });
|
|
43
|
+
export const QuotaStandingAdmissionClassSchema = z
|
|
44
|
+
.object({
|
|
45
|
+
class: z.string().meta({ description: 'Workflow class (e.g. ExecuteConversationWorkflow).' }),
|
|
46
|
+
tenant_active: z.number().meta({ description: "This tenant's currently active (leased) slots for the class." }),
|
|
47
|
+
})
|
|
48
|
+
.meta({ id: 'QuotaStandingAdmissionClass' });
|
|
49
|
+
export const QuotaStandingResponseSchema = z
|
|
50
|
+
.object({
|
|
51
|
+
tenant_id: z.string(),
|
|
52
|
+
available: z.boolean().meta({
|
|
53
|
+
description: 'False when the limiter store (Redis) was unavailable, so `api`/`admission` are empty because ' +
|
|
54
|
+
'standing could not be read — NOT because there are no limits. Limiters fail open in this case.',
|
|
55
|
+
}),
|
|
56
|
+
base_tier: z
|
|
57
|
+
.string()
|
|
58
|
+
.meta({ description: 'Deployment base tier (env QUOTA_BASE_TIER); `default` = the static limits stand.' }),
|
|
59
|
+
effective_tier: QuotaEffectiveTierSchema.meta({
|
|
60
|
+
description: 'Tier used to compute the API limits below: explicit account `quota_tier`, else account_type ' +
|
|
61
|
+
'derived tier, else `base_tier` when the account tier could not be resolved.',
|
|
62
|
+
}),
|
|
63
|
+
api: z.array(QuotaStandingResourceSchema).meta({
|
|
64
|
+
description: 'Per-resource API rate-limit standing (effective limits + current usage).',
|
|
65
|
+
}),
|
|
66
|
+
// Anonymous in the interface and anonymous in the document, so it stays inline here rather than
|
|
67
|
+
// becoming a named component — naming it would add a `$ref` the spec does not currently publish.
|
|
68
|
+
admission: z
|
|
69
|
+
.object({
|
|
70
|
+
classes: z.array(QuotaStandingAdmissionClassSchema),
|
|
71
|
+
note: z.string(),
|
|
72
|
+
})
|
|
73
|
+
.meta({
|
|
74
|
+
description: 'Workflow admission: per-tenant active slots per probed class. The budget itself is global and ' +
|
|
75
|
+
'discovered (AIMD), not a per-tenant number — this is occupancy, not a limit.',
|
|
76
|
+
}),
|
|
77
|
+
llm: z.object({ note: z.string() }).meta({
|
|
78
|
+
description: 'The LLM interaction limiter is shared per environment/model, not per tenant.',
|
|
79
|
+
}),
|
|
80
|
+
})
|
|
81
|
+
.meta({ id: 'QuotaStandingResponse' });
|
|
82
|
+
export const QuotaTierResponseSchema = z
|
|
83
|
+
.object({
|
|
84
|
+
tier: QuotaEffectiveTierSchema,
|
|
85
|
+
})
|
|
86
|
+
.meta({
|
|
87
|
+
id: 'QuotaTierResponse',
|
|
88
|
+
description: 'Lightweight per-account quota tier for the calling account — served by `GET /api/v1/quota/tier`. ' +
|
|
89
|
+
"A cheap, cacheable read that lets another service (e.g. zeno-server's API rate limiter) resolve " +
|
|
90
|
+
"the caller's tier through studio-server instead of reaching into the account store directly. " +
|
|
91
|
+
"`tier` is the SAME value {@link QuotaStandingResponse.effective_tier } reports: the account's " +
|
|
92
|
+
'explicit `quota_tier`, else its account_type-derived tier, else the deployment base tier when the ' +
|
|
93
|
+
'account tier cannot be resolved.',
|
|
94
|
+
});
|
|
95
|
+
//# sourceMappingURL=quota.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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