@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,234 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WorkflowExecutionStatusSchema } from './document-processing.js';
|
|
3
|
+
import { ElasticsearchBackendSchema, ProjectSearchTierSchema } from './project-configuration.js';
|
|
4
|
+
|
|
5
|
+
const nullableStringSchema: z.ZodType<string | null> = z.any().meta({ type: ['string', 'null'] });
|
|
6
|
+
const nullableNumberSchema: z.ZodType<number | null> = z.any().meta({ type: ['number', 'null'] });
|
|
7
|
+
|
|
8
|
+
export const StartProjectReindexPayloadSchema = z
|
|
9
|
+
.strictObject({
|
|
10
|
+
shard_size: z.number().optional(),
|
|
11
|
+
parallel_shard_count: z.number().optional(),
|
|
12
|
+
concurrency: z.number().optional(),
|
|
13
|
+
bulk_size_bytes: z.number().optional(),
|
|
14
|
+
bulk_concurrency: z.number().optional(),
|
|
15
|
+
})
|
|
16
|
+
.meta({ id: 'StartProjectReindexPayload' });
|
|
17
|
+
|
|
18
|
+
export const ReindexAgentRunsResponseSchema = z
|
|
19
|
+
.strictObject({
|
|
20
|
+
status: z.string(),
|
|
21
|
+
backend: ElasticsearchBackendSchema,
|
|
22
|
+
index_name: z.string(),
|
|
23
|
+
recreated: z.boolean(),
|
|
24
|
+
total: z.number(),
|
|
25
|
+
scanned: z.number(),
|
|
26
|
+
indexed: z.number(),
|
|
27
|
+
failed: z.number(),
|
|
28
|
+
errors: z
|
|
29
|
+
.array(
|
|
30
|
+
z.strictObject({
|
|
31
|
+
id: z.string(),
|
|
32
|
+
message: z.string(),
|
|
33
|
+
}),
|
|
34
|
+
)
|
|
35
|
+
.optional(),
|
|
36
|
+
})
|
|
37
|
+
.meta({ id: 'ReindexAgentRunsResponse' });
|
|
38
|
+
|
|
39
|
+
export const ReindexAgentRunsPayloadSchema = z
|
|
40
|
+
.strictObject({
|
|
41
|
+
recreate_index: z
|
|
42
|
+
.boolean()
|
|
43
|
+
.meta({
|
|
44
|
+
description:
|
|
45
|
+
'Drop any existing agent-runs index/alias family and recreate the stable concrete index before indexing. Defaults to true.',
|
|
46
|
+
})
|
|
47
|
+
.optional(),
|
|
48
|
+
batch_size: z
|
|
49
|
+
.number()
|
|
50
|
+
.meta({ description: 'Number of MongoDB records to scan per batch. Defaults to 500.' })
|
|
51
|
+
.optional(),
|
|
52
|
+
limit: z
|
|
53
|
+
.number()
|
|
54
|
+
.meta({
|
|
55
|
+
description: 'Optional cap for partial/manual repair runs. Omit for all agent runs in the project.',
|
|
56
|
+
})
|
|
57
|
+
.optional(),
|
|
58
|
+
})
|
|
59
|
+
.meta({ id: 'ReindexAgentRunsPayload' });
|
|
60
|
+
|
|
61
|
+
export const IndexingStatusResponseSchema = z
|
|
62
|
+
.strictObject({
|
|
63
|
+
infrastructure_enabled: z
|
|
64
|
+
.boolean()
|
|
65
|
+
.meta({ description: 'Whether indexing infrastructure is available globally' }),
|
|
66
|
+
indexing_enabled: z.boolean().meta({ description: 'Whether indexing is enabled for this project' }),
|
|
67
|
+
query_enabled: z.boolean().meta({
|
|
68
|
+
description:
|
|
69
|
+
'Deprecated: Now derived from indexing_enabled - queries automatically route to index when indexing is enabled',
|
|
70
|
+
deprecated: true,
|
|
71
|
+
'x-deprecated-message':
|
|
72
|
+
'Now derived from indexing_enabled - queries automatically route to index when indexing is enabled',
|
|
73
|
+
}),
|
|
74
|
+
backend: ElasticsearchBackendSchema.meta({
|
|
75
|
+
description: 'Resolved Elasticsearch backend serving this project',
|
|
76
|
+
}),
|
|
77
|
+
search_tier: ProjectSearchTierSchema.meta({ description: 'Resolved search tier for this project' }),
|
|
78
|
+
index: z
|
|
79
|
+
.strictObject({
|
|
80
|
+
exists: z.boolean().meta({ description: 'Whether the index exists' }),
|
|
81
|
+
alias_name: z.string().meta({ description: 'Alias name (used for queries)' }),
|
|
82
|
+
index_name: z.string().meta({ description: 'Actual index name (versioned)' }),
|
|
83
|
+
version: z.number().meta({ description: 'Index version (timestamp when created)' }),
|
|
84
|
+
created_at: nullableStringSchema.meta({ description: 'When the current index was created' }),
|
|
85
|
+
document_count: z.number().meta({ description: 'Number of documents in the index' }),
|
|
86
|
+
size_bytes: z.number().meta({ description: 'Index size in bytes' }),
|
|
87
|
+
})
|
|
88
|
+
.meta({ description: 'Index status' }),
|
|
89
|
+
mongo_document_count: z.number().meta({ description: 'MongoDB document count for comparison' }),
|
|
90
|
+
reindex_in_progress: z.boolean().meta({ description: 'Whether a reindex is currently in progress' }),
|
|
91
|
+
reindex_progress: z
|
|
92
|
+
.strictObject({
|
|
93
|
+
total_shards: z.number().meta({ description: 'Total shards to process' }),
|
|
94
|
+
completed_shards: z.number().meta({ description: 'Shards completed so far' }),
|
|
95
|
+
failed_shards: z.number().meta({ description: 'Shards that failed' }),
|
|
96
|
+
status: z
|
|
97
|
+
.string()
|
|
98
|
+
.meta({ description: 'Current status (e.g., "computing_shards", "indexing", "completed")' }),
|
|
99
|
+
scanned: z.number().meta({ description: 'Documents scanned from source' }),
|
|
100
|
+
written: z.number().meta({ description: 'Documents written to target index' }),
|
|
101
|
+
errors: z.number().meta({ description: 'Documents that failed to index' }),
|
|
102
|
+
embeddings_written: z
|
|
103
|
+
.number()
|
|
104
|
+
.meta({ description: 'Embedding vectors written to target index' })
|
|
105
|
+
.optional(),
|
|
106
|
+
skipped_embeddings: z
|
|
107
|
+
.number()
|
|
108
|
+
.meta({
|
|
109
|
+
description: 'Embedding vectors skipped because they were invalid or dimension-mismatched',
|
|
110
|
+
})
|
|
111
|
+
.optional(),
|
|
112
|
+
embeddings_text_written: z
|
|
113
|
+
.number()
|
|
114
|
+
.meta({ description: 'Text embedding vectors written to target index' })
|
|
115
|
+
.optional(),
|
|
116
|
+
embeddings_image_written: z
|
|
117
|
+
.number()
|
|
118
|
+
.meta({ description: 'Image embedding vectors written to target index' })
|
|
119
|
+
.optional(),
|
|
120
|
+
embeddings_properties_written: z
|
|
121
|
+
.number()
|
|
122
|
+
.meta({ description: 'Properties embedding vectors written to target index' })
|
|
123
|
+
.optional(),
|
|
124
|
+
embeddings_text_skipped: z
|
|
125
|
+
.number()
|
|
126
|
+
.meta({
|
|
127
|
+
description: 'Text embedding vectors skipped because they were invalid or dimension-mismatched',
|
|
128
|
+
})
|
|
129
|
+
.optional(),
|
|
130
|
+
embeddings_image_skipped: z
|
|
131
|
+
.number()
|
|
132
|
+
.meta({
|
|
133
|
+
description:
|
|
134
|
+
'Image embedding vectors skipped because they were invalid or dimension-mismatched',
|
|
135
|
+
})
|
|
136
|
+
.optional(),
|
|
137
|
+
embeddings_properties_skipped: z
|
|
138
|
+
.number()
|
|
139
|
+
.meta({
|
|
140
|
+
description:
|
|
141
|
+
'Properties embedding vectors skipped because they were invalid or dimension-mismatched',
|
|
142
|
+
})
|
|
143
|
+
.optional(),
|
|
144
|
+
properties_values_trimmed: z
|
|
145
|
+
.number()
|
|
146
|
+
.meta({
|
|
147
|
+
description: 'Oversized property string values dropped during transform (size-based pruning)',
|
|
148
|
+
})
|
|
149
|
+
.optional(),
|
|
150
|
+
properties_bytes_dropped: z
|
|
151
|
+
.number()
|
|
152
|
+
.meta({ description: 'Total bytes dropped from oversized property values' })
|
|
153
|
+
.optional(),
|
|
154
|
+
batches_flushed: z
|
|
155
|
+
.number()
|
|
156
|
+
.meta({ description: 'Total batcher flushes across all completed shards (cumulative)' })
|
|
157
|
+
.optional(),
|
|
158
|
+
bulk_chunks_written: z
|
|
159
|
+
.number()
|
|
160
|
+
.meta({ description: 'Total ES bulk requests sent across all completed shards (cumulative)' })
|
|
161
|
+
.optional(),
|
|
162
|
+
bulk_errors: z
|
|
163
|
+
.number()
|
|
164
|
+
.meta({
|
|
165
|
+
description:
|
|
166
|
+
"Total per-document ES bulk-item failures across all shards (cumulative). Counts docs ES rejected — they aren't in the indexed set.",
|
|
167
|
+
})
|
|
168
|
+
.optional(),
|
|
169
|
+
avg_docs_per_batch: z
|
|
170
|
+
.number()
|
|
171
|
+
.meta({
|
|
172
|
+
description:
|
|
173
|
+
'Average documents per batch flush (written / batches_flushed) — useful to spot under/over-batching',
|
|
174
|
+
})
|
|
175
|
+
.optional(),
|
|
176
|
+
avg_chunks_per_batch: z
|
|
177
|
+
.number()
|
|
178
|
+
.meta({
|
|
179
|
+
description:
|
|
180
|
+
'Average chunks per batch (>1 means bulk_size_bytes cap is splitting batches frequently)',
|
|
181
|
+
})
|
|
182
|
+
.optional(),
|
|
183
|
+
docs_per_second: z.number().meta({ description: 'Documents processed per second' }),
|
|
184
|
+
elapsed_seconds: z.number().meta({ description: 'Elapsed time in seconds' }),
|
|
185
|
+
estimated_seconds_remaining: nullableNumberSchema.meta({
|
|
186
|
+
description: 'Estimated seconds remaining (null if unknown)',
|
|
187
|
+
}),
|
|
188
|
+
percent_complete: z.number().meta({ description: 'Percentage complete (0-100)' }),
|
|
189
|
+
alias: z.string().meta({ description: 'Source alias' }),
|
|
190
|
+
target_index: z.string().meta({ description: 'Target index name' }),
|
|
191
|
+
})
|
|
192
|
+
.meta({ description: 'Reindex progress (if reindex is in progress)' })
|
|
193
|
+
.optional(),
|
|
194
|
+
})
|
|
195
|
+
.meta({ id: 'IndexingStatusResponse', description: 'Response from indexing status endpoint' });
|
|
196
|
+
|
|
197
|
+
export const DriftAnalysisResultSchema = z
|
|
198
|
+
.strictObject({
|
|
199
|
+
total: z.number(),
|
|
200
|
+
processed: z.number(),
|
|
201
|
+
missing: z.number(),
|
|
202
|
+
stale: z.number(),
|
|
203
|
+
sample_missing_ids: z.array(z.string()),
|
|
204
|
+
sample_stale_ids: z.array(z.string()),
|
|
205
|
+
completed_at: z.string(),
|
|
206
|
+
})
|
|
207
|
+
.meta({ id: 'DriftAnalysisResult' });
|
|
208
|
+
|
|
209
|
+
export const DriftAnalysisProgressSchema = z
|
|
210
|
+
.strictObject({
|
|
211
|
+
total: z.number(),
|
|
212
|
+
processed: z.number(),
|
|
213
|
+
missing: z.number(),
|
|
214
|
+
stale: z.number(),
|
|
215
|
+
status: z.string(),
|
|
216
|
+
current_batch: z.number(),
|
|
217
|
+
total_batches: z.number(),
|
|
218
|
+
percent_complete: z.number(),
|
|
219
|
+
docs_per_second: z.number(),
|
|
220
|
+
elapsed_seconds: z.number(),
|
|
221
|
+
estimated_seconds_remaining: nullableNumberSchema,
|
|
222
|
+
})
|
|
223
|
+
.meta({ id: 'DriftAnalysisProgress' });
|
|
224
|
+
|
|
225
|
+
export const DriftAnalysisStatusResponseSchema = z
|
|
226
|
+
.strictObject({
|
|
227
|
+
workflow_id: nullableStringSchema,
|
|
228
|
+
workflow_run_id: nullableStringSchema,
|
|
229
|
+
status: WorkflowExecutionStatusSchema,
|
|
230
|
+
progress: DriftAnalysisProgressSchema.optional(),
|
|
231
|
+
result: DriftAnalysisResultSchema.optional(),
|
|
232
|
+
error: z.string().optional(),
|
|
233
|
+
})
|
|
234
|
+
.meta({ id: 'DriftAnalysisStatusResponse' });
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
// Runtime schemas for the integrations API domain.
|
|
2
|
+
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { SupportedIntegrations } from '../integrations.js';
|
|
5
|
+
import { StringValueMapSchema } from './files.js';
|
|
6
|
+
import { DSLActivityOptionsSchema } from './process.js';
|
|
7
|
+
|
|
8
|
+
export const SupportedIntegrations_ask_user_webhookSchema = z
|
|
9
|
+
.literal(SupportedIntegrations.ask_user_webhook)
|
|
10
|
+
.meta({ id: 'SupportedIntegrations_ask_user_webhook' });
|
|
11
|
+
|
|
12
|
+
export const SupportedIntegrations_resendSchema = z
|
|
13
|
+
.literal(SupportedIntegrations.resend)
|
|
14
|
+
.meta({ id: 'SupportedIntegrations_resend' });
|
|
15
|
+
|
|
16
|
+
export const SupportedIntegrations_linkupSchema = z
|
|
17
|
+
.literal(SupportedIntegrations.linkup)
|
|
18
|
+
.meta({ id: 'SupportedIntegrations_linkup' });
|
|
19
|
+
|
|
20
|
+
export const SupportedIntegrations_exaSchema = z
|
|
21
|
+
.literal(SupportedIntegrations.exa)
|
|
22
|
+
.meta({ id: 'SupportedIntegrations_exa' });
|
|
23
|
+
|
|
24
|
+
export const SupportedIntegrations_serperSchema = z
|
|
25
|
+
.literal(SupportedIntegrations.serper)
|
|
26
|
+
.meta({ id: 'SupportedIntegrations_serper' });
|
|
27
|
+
|
|
28
|
+
export const SupportedIntegrations_magic_pdfSchema = z
|
|
29
|
+
.literal(SupportedIntegrations.magic_pdf)
|
|
30
|
+
.meta({ id: 'SupportedIntegrations_magic_pdf' });
|
|
31
|
+
|
|
32
|
+
export const SupportedIntegrations_awsSchema = z
|
|
33
|
+
.literal(SupportedIntegrations.aws)
|
|
34
|
+
.meta({ id: 'SupportedIntegrations_aws' });
|
|
35
|
+
|
|
36
|
+
export const SupportedIntegrations_githubSchema = z
|
|
37
|
+
.literal(SupportedIntegrations.github)
|
|
38
|
+
.meta({ id: 'SupportedIntegrations_github' });
|
|
39
|
+
|
|
40
|
+
export const SupportedIntegrations_gladiaSchema = z
|
|
41
|
+
.literal(SupportedIntegrations.gladia)
|
|
42
|
+
.meta({ id: 'SupportedIntegrations_gladia' });
|
|
43
|
+
|
|
44
|
+
export const AskUserWebhookConfigurationSchema = z
|
|
45
|
+
.strictObject({
|
|
46
|
+
integration: SupportedIntegrations_ask_user_webhookSchema,
|
|
47
|
+
enabled: z.boolean(),
|
|
48
|
+
webhook_url: z.string().meta({ description: 'Webhook URL to receive ask_user events' }),
|
|
49
|
+
has_webhook_secret: z.boolean().optional(),
|
|
50
|
+
webhook_secret_hint: z.string().optional(),
|
|
51
|
+
events: z
|
|
52
|
+
.array(z.enum(['requested', 'resolved']))
|
|
53
|
+
.meta({ description: "Which events to send: ['requested', 'resolved'] or subset (default: both)" })
|
|
54
|
+
.optional(),
|
|
55
|
+
custom_headers: StringValueMapSchema.meta({
|
|
56
|
+
description: 'Custom headers to include in webhook requests',
|
|
57
|
+
}).optional(),
|
|
58
|
+
})
|
|
59
|
+
.meta({
|
|
60
|
+
id: 'AskUserWebhookConfiguration',
|
|
61
|
+
description:
|
|
62
|
+
'Configuration for ask_user webhook notifications. Sends webhooks when agents call ask_user and when users respond.',
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export const ResendConfigurationSchema = z
|
|
66
|
+
.strictObject({
|
|
67
|
+
integration: SupportedIntegrations_resendSchema,
|
|
68
|
+
enabled: z.boolean(),
|
|
69
|
+
has_api_key: z.boolean().optional(),
|
|
70
|
+
api_key_hint: z.string().optional(),
|
|
71
|
+
email_domain: z
|
|
72
|
+
.string()
|
|
73
|
+
.meta({ description: 'Domain for email (both sending and receiving). Must be verified in Resend.' }),
|
|
74
|
+
default_from_name: z
|
|
75
|
+
.string()
|
|
76
|
+
.meta({ description: 'Default display name for outgoing emails (e.g., "Vertesia - Project Name")' })
|
|
77
|
+
.optional(),
|
|
78
|
+
has_webhook_secret: z.boolean().optional(),
|
|
79
|
+
webhook_secret_hint: z.string().optional(),
|
|
80
|
+
allowed_sender_domains: z
|
|
81
|
+
.array(z.string())
|
|
82
|
+
.meta({ description: 'Domains allowed to send emails TO start agents (for inbound validation)' })
|
|
83
|
+
.optional(),
|
|
84
|
+
require_project_access: z
|
|
85
|
+
.boolean()
|
|
86
|
+
.meta({ description: 'Require sender to have project access to start agents via email (default: true)' })
|
|
87
|
+
.optional(),
|
|
88
|
+
require_email_auth: z
|
|
89
|
+
.boolean()
|
|
90
|
+
.meta({ description: 'Require DKIM/SPF authentication to pass for inbound emails (default: true)' })
|
|
91
|
+
.optional(),
|
|
92
|
+
})
|
|
93
|
+
.meta({ id: 'ResendConfiguration' });
|
|
94
|
+
|
|
95
|
+
export const LinkupConfigurationSchema = z
|
|
96
|
+
.strictObject({
|
|
97
|
+
integration: SupportedIntegrations_linkupSchema,
|
|
98
|
+
enabled: z.boolean(),
|
|
99
|
+
has_api_key: z.boolean().optional(),
|
|
100
|
+
api_key_hint: z.string().optional(),
|
|
101
|
+
})
|
|
102
|
+
.meta({ id: 'LinkupConfiguration' });
|
|
103
|
+
|
|
104
|
+
export const ExaConfigurationSchema = z
|
|
105
|
+
.strictObject({
|
|
106
|
+
integration: SupportedIntegrations_exaSchema,
|
|
107
|
+
enabled: z.boolean(),
|
|
108
|
+
has_api_key: z.boolean().optional(),
|
|
109
|
+
api_key_hint: z.string().optional(),
|
|
110
|
+
})
|
|
111
|
+
.meta({ id: 'ExaConfiguration' });
|
|
112
|
+
|
|
113
|
+
export const SerperConfigurationSchema = z
|
|
114
|
+
.strictObject({
|
|
115
|
+
integration: SupportedIntegrations_serperSchema,
|
|
116
|
+
enabled: z.boolean(),
|
|
117
|
+
has_api_key: z.boolean().optional(),
|
|
118
|
+
api_key_hint: z.string().optional(),
|
|
119
|
+
url: z.string().optional(),
|
|
120
|
+
})
|
|
121
|
+
.meta({ id: 'SerperConfiguration' });
|
|
122
|
+
|
|
123
|
+
export const GithubConfigurationSchema = z
|
|
124
|
+
.strictObject({
|
|
125
|
+
integration: SupportedIntegrations_githubSchema,
|
|
126
|
+
enabled: z.boolean(),
|
|
127
|
+
github_app_id: z
|
|
128
|
+
.string()
|
|
129
|
+
.meta({ description: 'Numeric GitHub App id used to mint installation tokens (non-secret).' })
|
|
130
|
+
.optional(),
|
|
131
|
+
allowed_repositories: z.array(z.string()),
|
|
132
|
+
has_github_app_private_key: z
|
|
133
|
+
.boolean()
|
|
134
|
+
.meta({
|
|
135
|
+
description:
|
|
136
|
+
'True when a GitHub App private key is stored for the project (the key itself is never returned).',
|
|
137
|
+
})
|
|
138
|
+
.optional(),
|
|
139
|
+
})
|
|
140
|
+
.meta({ id: 'GithubConfiguration' });
|
|
141
|
+
|
|
142
|
+
export const GladiaConfigurationSchema = z
|
|
143
|
+
.strictObject({
|
|
144
|
+
integration: SupportedIntegrations_gladiaSchema,
|
|
145
|
+
enabled: z.boolean(),
|
|
146
|
+
has_api_key: z.boolean().optional(),
|
|
147
|
+
api_key_hint: z.string().optional(),
|
|
148
|
+
url: z.string().optional(),
|
|
149
|
+
})
|
|
150
|
+
.meta({ id: 'GladiaConfiguration' });
|
|
151
|
+
|
|
152
|
+
export const RemoteActivityDefinitionSchema = z
|
|
153
|
+
.strictObject({
|
|
154
|
+
name: z.string().meta({ description: 'Activity name (snake_case, unique within the collection)' }),
|
|
155
|
+
collection: z.string().meta({ description: 'Collection name this activity belongs to' }).optional(),
|
|
156
|
+
title: z.string().meta({ description: 'Display title' }).optional(),
|
|
157
|
+
description: z.string().meta({ description: 'Description of what the activity does' }).optional(),
|
|
158
|
+
input_schema: z
|
|
159
|
+
.looseObject({})
|
|
160
|
+
.meta({ description: 'JSON Schema for the activity input parameters' })
|
|
161
|
+
.optional(),
|
|
162
|
+
output_schema: z.looseObject({}).meta({ description: 'JSON Schema for the activity output' }).optional(),
|
|
163
|
+
url: z
|
|
164
|
+
.string()
|
|
165
|
+
.meta({
|
|
166
|
+
description:
|
|
167
|
+
'The activity execution URL. Can be absolute or relative to the tool server base URL. If not provided, the collection-specific activities endpoint is used.',
|
|
168
|
+
})
|
|
169
|
+
.optional(),
|
|
170
|
+
options: DSLActivityOptionsSchema.meta({ description: 'Suggested timeout and retry configuration' }).optional(),
|
|
171
|
+
})
|
|
172
|
+
.meta({
|
|
173
|
+
id: 'RemoteActivityDefinition',
|
|
174
|
+
description:
|
|
175
|
+
'Definition of a remote activity exposed by a tool server for use in DSL workflows. Remote activities are identified in workflow steps using colon-separated names: `app:<app_name>:<collection>:<activity_name>` (e.g. `app:my-nlp-app:examples:word_count`).',
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
export const AskUserWebhookConfigurationInputSchema = z
|
|
179
|
+
.strictObject({
|
|
180
|
+
integration: SupportedIntegrations_ask_user_webhookSchema,
|
|
181
|
+
enabled: z.boolean(),
|
|
182
|
+
webhook_url: z.string().meta({ description: 'Webhook URL to receive ask_user events' }),
|
|
183
|
+
webhook_secret: z
|
|
184
|
+
.string()
|
|
185
|
+
.meta({ description: 'Secret for signing webhook payloads (HMAC-SHA256)' })
|
|
186
|
+
.optional(),
|
|
187
|
+
events: z
|
|
188
|
+
.array(z.enum(['requested', 'resolved']))
|
|
189
|
+
.meta({ description: "Which events to send: ['requested', 'resolved'] or subset (default: both)" })
|
|
190
|
+
.optional(),
|
|
191
|
+
custom_headers: StringValueMapSchema.meta({
|
|
192
|
+
description: 'Custom headers to include in webhook requests',
|
|
193
|
+
}).optional(),
|
|
194
|
+
})
|
|
195
|
+
.meta({
|
|
196
|
+
id: 'AskUserWebhookConfigurationInput',
|
|
197
|
+
description:
|
|
198
|
+
'Configuration for ask_user webhook notifications. Sends webhooks when agents call ask_user and when users respond.',
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
export const ResendConfigurationInputSchema = z
|
|
202
|
+
.strictObject({
|
|
203
|
+
integration: SupportedIntegrations_resendSchema,
|
|
204
|
+
enabled: z.boolean(),
|
|
205
|
+
api_key: z.string().meta({ description: 'Resend API key for sending emails' }).optional(),
|
|
206
|
+
email_domain: z
|
|
207
|
+
.string()
|
|
208
|
+
.meta({ description: 'Domain for email (both sending and receiving). Must be verified in Resend.' }),
|
|
209
|
+
default_from_name: z
|
|
210
|
+
.string()
|
|
211
|
+
.meta({ description: 'Default display name for outgoing emails (e.g., "Vertesia - Project Name")' })
|
|
212
|
+
.optional(),
|
|
213
|
+
webhook_secret: z
|
|
214
|
+
.string()
|
|
215
|
+
.meta({
|
|
216
|
+
description: 'Webhook secret for validating inbound email webhooks (required for receiving emails)',
|
|
217
|
+
})
|
|
218
|
+
.optional(),
|
|
219
|
+
allowed_sender_domains: z
|
|
220
|
+
.array(z.string())
|
|
221
|
+
.meta({ description: 'Domains allowed to send emails TO start agents (for inbound validation)' })
|
|
222
|
+
.optional(),
|
|
223
|
+
require_project_access: z
|
|
224
|
+
.boolean()
|
|
225
|
+
.meta({ description: 'Require sender to have project access to start agents via email (default: true)' })
|
|
226
|
+
.optional(),
|
|
227
|
+
require_email_auth: z
|
|
228
|
+
.boolean()
|
|
229
|
+
.meta({ description: 'Require DKIM/SPF authentication to pass for inbound emails (default: true)' })
|
|
230
|
+
.optional(),
|
|
231
|
+
})
|
|
232
|
+
.meta({ id: 'ResendConfigurationInput' });
|
|
233
|
+
|
|
234
|
+
export const LinkupConfigurationInputSchema = z
|
|
235
|
+
.strictObject({
|
|
236
|
+
integration: SupportedIntegrations_linkupSchema,
|
|
237
|
+
enabled: z.boolean(),
|
|
238
|
+
api_key: z.string().optional(),
|
|
239
|
+
})
|
|
240
|
+
.meta({ id: 'LinkupConfigurationInput' });
|
|
241
|
+
|
|
242
|
+
export const ExaConfigurationInputSchema = z
|
|
243
|
+
.strictObject({
|
|
244
|
+
integration: SupportedIntegrations_exaSchema,
|
|
245
|
+
enabled: z.boolean(),
|
|
246
|
+
api_key: z.string().optional(),
|
|
247
|
+
})
|
|
248
|
+
.meta({ id: 'ExaConfigurationInput' });
|
|
249
|
+
|
|
250
|
+
export const SerperConfigurationInputSchema = z
|
|
251
|
+
.strictObject({
|
|
252
|
+
integration: SupportedIntegrations_serperSchema,
|
|
253
|
+
enabled: z.boolean(),
|
|
254
|
+
api_key: z.string().optional(),
|
|
255
|
+
url: z.string().optional(),
|
|
256
|
+
})
|
|
257
|
+
.meta({ id: 'SerperConfigurationInput' });
|
|
258
|
+
|
|
259
|
+
export const MagicPdfConfigurationSchema = z
|
|
260
|
+
.strictObject({
|
|
261
|
+
integration: SupportedIntegrations_magic_pdfSchema,
|
|
262
|
+
enabled: z.boolean(),
|
|
263
|
+
default_features: z.array(z.string()).optional(),
|
|
264
|
+
default_zones: z.array(z.string()).optional(),
|
|
265
|
+
})
|
|
266
|
+
.meta({ id: 'MagicPdfConfiguration' });
|
|
267
|
+
|
|
268
|
+
export const AwsConfigurationSchema = z
|
|
269
|
+
.strictObject({
|
|
270
|
+
integration: SupportedIntegrations_awsSchema,
|
|
271
|
+
enabled: z.boolean(),
|
|
272
|
+
s3_role_arn: z.string(),
|
|
273
|
+
})
|
|
274
|
+
.meta({ id: 'AwsConfiguration' });
|
|
275
|
+
|
|
276
|
+
export const GithubConfigurationInputSchema = z
|
|
277
|
+
.strictObject({
|
|
278
|
+
integration: SupportedIntegrations_githubSchema,
|
|
279
|
+
enabled: z.boolean(),
|
|
280
|
+
github_app_id: z
|
|
281
|
+
.string()
|
|
282
|
+
.meta({ description: 'Numeric GitHub App id used to mint installation tokens (non-secret).' })
|
|
283
|
+
.optional(),
|
|
284
|
+
allowed_repositories: z
|
|
285
|
+
.array(z.string())
|
|
286
|
+
.meta({
|
|
287
|
+
description:
|
|
288
|
+
'Allow-list of `owner/name` repos the bot may mint installation tokens for (default-deny when empty).',
|
|
289
|
+
})
|
|
290
|
+
.optional(),
|
|
291
|
+
private_key: z
|
|
292
|
+
.string()
|
|
293
|
+
.meta({ description: 'GitHub App private key (PEM). Write-only; never returned. Empty string clears it.' })
|
|
294
|
+
.optional(),
|
|
295
|
+
})
|
|
296
|
+
.meta({ id: 'GithubConfigurationInput' });
|
|
297
|
+
|
|
298
|
+
export const GladiaConfigurationInputSchema = z
|
|
299
|
+
.strictObject({
|
|
300
|
+
integration: SupportedIntegrations_gladiaSchema,
|
|
301
|
+
enabled: z.boolean(),
|
|
302
|
+
api_key: z.string().optional(),
|
|
303
|
+
url: z.string().optional(),
|
|
304
|
+
})
|
|
305
|
+
.meta({ id: 'GladiaConfigurationInput' });
|
|
306
|
+
|
|
307
|
+
export const ProjectIntegrationConfigResponseSchema = z
|
|
308
|
+
.discriminatedUnion('integration', [
|
|
309
|
+
GladiaConfigurationSchema,
|
|
310
|
+
GithubConfigurationSchema,
|
|
311
|
+
AwsConfigurationSchema,
|
|
312
|
+
MagicPdfConfigurationSchema,
|
|
313
|
+
SerperConfigurationSchema,
|
|
314
|
+
ExaConfigurationSchema,
|
|
315
|
+
LinkupConfigurationSchema,
|
|
316
|
+
ResendConfigurationSchema,
|
|
317
|
+
AskUserWebhookConfigurationSchema,
|
|
318
|
+
])
|
|
319
|
+
.meta({
|
|
320
|
+
id: 'ProjectIntegrationConfigResponse',
|
|
321
|
+
type: 'object',
|
|
322
|
+
required: ['integration'],
|
|
323
|
+
discriminator: {
|
|
324
|
+
propertyName: 'integration',
|
|
325
|
+
mapping: {
|
|
326
|
+
ask_user_webhook: '#/components/schemas/AskUserWebhookConfiguration',
|
|
327
|
+
aws: '#/components/schemas/AwsConfiguration',
|
|
328
|
+
exa: '#/components/schemas/ExaConfiguration',
|
|
329
|
+
github: '#/components/schemas/GithubConfiguration',
|
|
330
|
+
gladia: '#/components/schemas/GladiaConfiguration',
|
|
331
|
+
linkup: '#/components/schemas/LinkupConfiguration',
|
|
332
|
+
magic_pdf: '#/components/schemas/MagicPdfConfiguration',
|
|
333
|
+
resend: '#/components/schemas/ResendConfiguration',
|
|
334
|
+
serper: '#/components/schemas/SerperConfiguration',
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
export const ProjectIntegrationConfigRequestSchema = z
|
|
340
|
+
.discriminatedUnion('integration', [
|
|
341
|
+
GladiaConfigurationInputSchema,
|
|
342
|
+
GithubConfigurationInputSchema,
|
|
343
|
+
AwsConfigurationSchema,
|
|
344
|
+
MagicPdfConfigurationSchema,
|
|
345
|
+
SerperConfigurationInputSchema,
|
|
346
|
+
ExaConfigurationInputSchema,
|
|
347
|
+
LinkupConfigurationInputSchema,
|
|
348
|
+
ResendConfigurationInputSchema,
|
|
349
|
+
AskUserWebhookConfigurationInputSchema,
|
|
350
|
+
])
|
|
351
|
+
.meta({
|
|
352
|
+
id: 'ProjectIntegrationConfigRequest',
|
|
353
|
+
type: 'object',
|
|
354
|
+
required: ['integration'],
|
|
355
|
+
discriminator: {
|
|
356
|
+
propertyName: 'integration',
|
|
357
|
+
mapping: {
|
|
358
|
+
ask_user_webhook: '#/components/schemas/AskUserWebhookConfigurationInput',
|
|
359
|
+
aws: '#/components/schemas/AwsConfiguration',
|
|
360
|
+
exa: '#/components/schemas/ExaConfigurationInput',
|
|
361
|
+
github: '#/components/schemas/GithubConfigurationInput',
|
|
362
|
+
gladia: '#/components/schemas/GladiaConfigurationInput',
|
|
363
|
+
linkup: '#/components/schemas/LinkupConfigurationInput',
|
|
364
|
+
magic_pdf: '#/components/schemas/MagicPdfConfiguration',
|
|
365
|
+
resend: '#/components/schemas/ResendConfigurationInput',
|
|
366
|
+
serper: '#/components/schemas/SerperConfigurationInput',
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
});
|