@vertesia/common 1.5.0-dev.20260722.120446Z → 1.5.0-dev.20260804.124748Z
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/access-control-values.d.ts +98 -0
- package/lib/access-control-values.d.ts.map +1 -0
- package/lib/access-control-values.js +101 -0
- package/lib/access-control-values.js.map +1 -0
- package/lib/access-control.d.ts +22 -119
- package/lib/access-control.d.ts.map +1 -1
- package/lib/access-control.js +6 -78
- package/lib/access-control.js.map +1 -1
- package/lib/account-values.d.ts +53 -0
- package/lib/account-values.d.ts.map +1 -0
- package/lib/account-values.js +91 -0
- package/lib/account-values.js.map +1 -0
- package/lib/analytics.d.ts +12 -38
- package/lib/analytics.d.ts.map +1 -1
- package/lib/api-schemas/access-control.d.ts +215 -0
- package/lib/api-schemas/access-control.d.ts.map +1 -0
- package/lib/api-schemas/access-control.js +165 -0
- package/lib/api-schemas/access-control.js.map +1 -0
- package/lib/api-schemas/account.d.ts +101 -0
- package/lib/api-schemas/account.d.ts.map +1 -0
- package/lib/api-schemas/account.js +136 -0
- package/lib/api-schemas/account.js.map +1 -0
- package/lib/api-schemas/adapter.d.ts +80 -0
- package/lib/api-schemas/adapter.d.ts.map +1 -0
- package/lib/api-schemas/adapter.js +726 -0
- package/lib/api-schemas/adapter.js.map +1 -0
- package/lib/api-schemas/agent-runs.d.ts +3781 -0
- package/lib/api-schemas/agent-runs.d.ts.map +1 -0
- package/lib/api-schemas/agent-runs.js +991 -0
- package/lib/api-schemas/agent-runs.js.map +1 -0
- package/lib/api-schemas/analytics.d.ts +86 -0
- package/lib/api-schemas/analytics.d.ts.map +1 -0
- package/lib/api-schemas/analytics.js +58 -0
- package/lib/api-schemas/analytics.js.map +1 -0
- package/lib/api-schemas/apikey.d.ts +231 -0
- package/lib/api-schemas/apikey.d.ts.map +1 -0
- package/lib/api-schemas/apikey.js +172 -0
- package/lib/api-schemas/apikey.js.map +1 -0
- package/lib/api-schemas/app-lifecycle.d.ts +1114 -0
- package/lib/api-schemas/app-lifecycle.d.ts.map +1 -0
- package/lib/api-schemas/app-lifecycle.js +750 -0
- package/lib/api-schemas/app-lifecycle.js.map +1 -0
- package/lib/api-schemas/app-runtime.d.ts +9056 -0
- package/lib/api-schemas/app-runtime.d.ts.map +1 -0
- package/lib/api-schemas/app-runtime.js +782 -0
- package/lib/api-schemas/app-runtime.js.map +1 -0
- package/lib/api-schemas/apps.d.ts +247 -0
- package/lib/api-schemas/apps.d.ts.map +1 -0
- package/lib/api-schemas/apps.js +366 -0
- package/lib/api-schemas/apps.js.map +1 -0
- package/lib/api-schemas/audit-trail.d.ts +465 -0
- package/lib/api-schemas/audit-trail.d.ts.map +1 -0
- package/lib/api-schemas/audit-trail.js +218 -0
- package/lib/api-schemas/audit-trail.js.map +1 -0
- package/lib/api-schemas/bulk-operation.d.ts +104 -0
- package/lib/api-schemas/bulk-operation.d.ts.map +1 -0
- package/lib/api-schemas/bulk-operation.js +66 -0
- package/lib/api-schemas/bulk-operation.js.map +1 -0
- package/lib/api-schemas/commands.d.ts +50 -0
- package/lib/api-schemas/commands.d.ts.map +1 -0
- package/lib/api-schemas/commands.js +58 -0
- package/lib/api-schemas/commands.js.map +1 -0
- package/lib/api-schemas/content.d.ts +3561 -0
- package/lib/api-schemas/content.d.ts.map +1 -0
- package/lib/api-schemas/content.js +842 -0
- package/lib/api-schemas/content.js.map +1 -0
- package/lib/api-schemas/cost-analytics.d.ts +300 -0
- package/lib/api-schemas/cost-analytics.d.ts.map +1 -0
- package/lib/api-schemas/cost-analytics.js +218 -0
- package/lib/api-schemas/cost-analytics.js.map +1 -0
- package/lib/api-schemas/dashboard.d.ts +408 -0
- package/lib/api-schemas/dashboard.d.ts.map +1 -0
- package/lib/api-schemas/dashboard.js +311 -0
- package/lib/api-schemas/dashboard.js.map +1 -0
- package/lib/api-schemas/data-store.d.ts +1650 -0
- package/lib/api-schemas/data-store.d.ts.map +1 -0
- package/lib/api-schemas/data-store.js +504 -0
- package/lib/api-schemas/data-store.js.map +1 -0
- package/lib/api-schemas/document-processing.d.ts +1501 -0
- package/lib/api-schemas/document-processing.d.ts.map +1 -0
- package/lib/api-schemas/document-processing.js +312 -0
- package/lib/api-schemas/document-processing.js.map +1 -0
- package/lib/api-schemas/embeddings.d.ts +184 -0
- package/lib/api-schemas/embeddings.d.ts.map +1 -0
- package/lib/api-schemas/embeddings.js +102 -0
- package/lib/api-schemas/embeddings.js.map +1 -0
- package/lib/api-schemas/environment.d.ts +412 -0
- package/lib/api-schemas/environment.d.ts.map +1 -0
- package/lib/api-schemas/environment.js +170 -0
- package/lib/api-schemas/environment.js.map +1 -0
- package/lib/api-schemas/events.d.ts +4880 -0
- package/lib/api-schemas/events.d.ts.map +1 -0
- package/lib/api-schemas/events.js +832 -0
- package/lib/api-schemas/events.js.map +1 -0
- package/lib/api-schemas/files.d.ts +107 -0
- package/lib/api-schemas/files.d.ts.map +1 -0
- package/lib/api-schemas/files.js +137 -0
- package/lib/api-schemas/files.js.map +1 -0
- package/lib/api-schemas/group.d.ts +122 -0
- package/lib/api-schemas/group.d.ts.map +1 -0
- package/lib/api-schemas/group.js +142 -0
- package/lib/api-schemas/group.js.map +1 -0
- package/lib/api-schemas/index.d.ts +36 -0
- package/lib/api-schemas/index.d.ts.map +1 -0
- package/lib/api-schemas/index.js +36 -0
- package/lib/api-schemas/index.js.map +1 -0
- package/lib/api-schemas/indexing.d.ts +144 -0
- package/lib/api-schemas/indexing.d.ts.map +1 -0
- package/lib/api-schemas/indexing.js +217 -0
- package/lib/api-schemas/indexing.js.map +1 -0
- package/lib/api-schemas/integrations.d.ts +269 -0
- package/lib/api-schemas/integrations.d.ts.map +1 -0
- package/lib/api-schemas/integrations.js +335 -0
- package/lib/api-schemas/integrations.js.map +1 -0
- package/lib/api-schemas/interaction.d.ts +22454 -0
- package/lib/api-schemas/interaction.d.ts.map +1 -0
- package/lib/api-schemas/interaction.js +2065 -0
- package/lib/api-schemas/interaction.js.map +1 -0
- package/lib/api-schemas/invites.d.ts +162 -0
- package/lib/api-schemas/invites.d.ts.map +1 -0
- package/lib/api-schemas/invites.js +106 -0
- package/lib/api-schemas/invites.js.map +1 -0
- package/lib/api-schemas/oauth-server.d.ts +415 -0
- package/lib/api-schemas/oauth-server.d.ts.map +1 -0
- package/lib/api-schemas/oauth-server.js +193 -0
- package/lib/api-schemas/oauth-server.js.map +1 -0
- package/lib/api-schemas/oauth.d.ts +150 -0
- package/lib/api-schemas/oauth.d.ts.map +1 -0
- package/lib/api-schemas/oauth.js +148 -0
- package/lib/api-schemas/oauth.js.map +1 -0
- package/lib/api-schemas/parameters.d.ts +64 -0
- package/lib/api-schemas/parameters.d.ts.map +1 -0
- package/lib/api-schemas/parameters.js +246 -0
- package/lib/api-schemas/parameters.js.map +1 -0
- package/lib/api-schemas/process.d.ts +499 -0
- package/lib/api-schemas/process.d.ts.map +1 -0
- package/lib/api-schemas/process.js +817 -0
- package/lib/api-schemas/process.js.map +1 -0
- package/lib/api-schemas/project-configuration.d.ts +4900 -0
- package/lib/api-schemas/project-configuration.d.ts.map +1 -0
- package/lib/api-schemas/project-configuration.js +425 -0
- package/lib/api-schemas/project-configuration.js.map +1 -0
- package/lib/api-schemas/project.d.ts +7247 -0
- package/lib/api-schemas/project.d.ts.map +1 -0
- package/lib/api-schemas/project.js +185 -0
- package/lib/api-schemas/project.js.map +1 -0
- package/lib/api-schemas/prompt.d.ts +70 -0
- package/lib/api-schemas/prompt.d.ts.map +1 -0
- package/lib/api-schemas/prompt.js +77 -0
- package/lib/api-schemas/prompt.js.map +1 -0
- package/lib/api-schemas/quota.d.ts +90 -0
- package/lib/api-schemas/quota.d.ts.map +1 -0
- package/lib/api-schemas/quota.js +95 -0
- package/lib/api-schemas/quota.js.map +1 -0
- package/lib/api-schemas/registry.d.ts +97458 -0
- package/lib/api-schemas/registry.d.ts.map +1 -0
- package/lib/api-schemas/registry.js +2586 -0
- package/lib/api-schemas/registry.js.map +1 -0
- package/lib/api-schemas/schema-primitives.d.ts +5 -0
- package/lib/api-schemas/schema-primitives.d.ts.map +1 -0
- package/lib/api-schemas/schema-primitives.js +11 -0
- package/lib/api-schemas/schema-primitives.js.map +1 -0
- package/lib/api-schemas/secrets.d.ts +497 -0
- package/lib/api-schemas/secrets.d.ts.map +1 -0
- package/lib/api-schemas/secrets.js +298 -0
- package/lib/api-schemas/secrets.js.map +1 -0
- package/lib/api-schemas/store.d.ts +22140 -0
- package/lib/api-schemas/store.d.ts.map +1 -0
- package/lib/api-schemas/store.js +557 -0
- package/lib/api-schemas/store.js.map +1 -0
- package/lib/api-schemas/sts.d.ts +156 -0
- package/lib/api-schemas/sts.d.ts.map +1 -0
- package/lib/api-schemas/sts.js +96 -0
- package/lib/api-schemas/sts.js.map +1 -0
- package/lib/api-schemas/task.d.ts +215 -0
- package/lib/api-schemas/task.d.ts.map +1 -0
- package/lib/api-schemas/task.js +95 -0
- package/lib/api-schemas/task.js.map +1 -0
- package/lib/api-schemas/tools.d.ts +111 -0
- package/lib/api-schemas/tools.d.ts.map +1 -0
- package/lib/api-schemas/tools.js +122 -0
- package/lib/api-schemas/tools.js.map +1 -0
- package/lib/api-schemas/user.d.ts +208 -0
- package/lib/api-schemas/user.d.ts.map +1 -0
- package/lib/api-schemas/user.js +180 -0
- package/lib/api-schemas/user.js.map +1 -0
- package/lib/api-schemas/view-execution.d.ts +3163 -0
- package/lib/api-schemas/view-execution.d.ts.map +1 -0
- package/lib/api-schemas/view-execution.js +172 -0
- package/lib/api-schemas/view-execution.js.map +1 -0
- package/lib/api-schemas/views.d.ts +5990 -0
- package/lib/api-schemas/views.d.ts.map +1 -0
- package/lib/api-schemas/views.js +396 -0
- package/lib/api-schemas/views.js.map +1 -0
- package/lib/api-schemas/workflow-runs.d.ts +2209 -0
- package/lib/api-schemas/workflow-runs.d.ts.map +1 -0
- package/lib/api-schemas/workflow-runs.js +589 -0
- package/lib/api-schemas/workflow-runs.js.map +1 -0
- package/lib/apikey-values.d.ts +10 -0
- package/lib/apikey-values.d.ts.map +1 -0
- package/lib/apikey-values.js +11 -0
- package/lib/apikey-values.js.map +1 -0
- package/lib/apikey.d.ts +37 -36
- package/lib/apikey.d.ts.map +1 -1
- package/lib/apikey.js +5 -4
- package/lib/apikey.js.map +1 -1
- package/lib/apps.d.ts +116 -1121
- package/lib/apps.d.ts.map +1 -1
- package/lib/apps.js.map +1 -1
- package/lib/ask-user.d.ts +8 -1
- package/lib/ask-user.d.ts.map +1 -1
- package/lib/audit-trail.d.ts +17 -128
- package/lib/audit-trail.d.ts.map +1 -1
- package/lib/audit-trail.js.map +1 -1
- package/lib/browser-credentials.d.ts +11 -106
- package/lib/browser-credentials.d.ts.map +1 -1
- package/lib/common.d.ts +59 -81
- package/lib/common.d.ts.map +1 -1
- package/lib/cost-analytics.d.ts +14 -167
- package/lib/cost-analytics.d.ts.map +1 -1
- package/lib/cost-analytics.js.map +1 -1
- package/lib/data-platform.d.ts +122 -786
- package/lib/data-platform.d.ts.map +1 -1
- package/lib/data-platform.js +41 -61
- package/lib/data-platform.js.map +1 -1
- package/lib/email.d.ts +5 -17
- package/lib/email.d.ts.map +1 -1
- package/lib/email.js +0 -3
- package/lib/email.js.map +1 -1
- package/lib/embeddings.d.ts +14 -56
- package/lib/embeddings.d.ts.map +1 -1
- package/lib/environment.d.ts +19 -113
- package/lib/environment.d.ts.map +1 -1
- package/lib/environment.js +3 -0
- package/lib/environment.js.map +1 -1
- package/lib/facets.d.ts +4 -7
- package/lib/facets.d.ts.map +1 -1
- package/lib/group.d.ts +33 -39
- package/lib/group.d.ts.map +1 -1
- package/lib/group.js +0 -1
- package/lib/group.js.map +1 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/integrations.d.ts +20 -108
- package/lib/integrations.d.ts.map +1 -1
- package/lib/integrations.js.map +1 -1
- package/lib/interaction-values.d.ts +11 -0
- package/lib/interaction-values.d.ts.map +1 -0
- package/lib/interaction-values.js +24 -0
- package/lib/interaction-values.js.map +1 -0
- package/lib/interaction.d.ts +116 -734
- package/lib/interaction.d.ts.map +1 -1
- package/lib/interaction.js +56 -12
- package/lib/interaction.js.map +1 -1
- package/lib/meters.d.ts +11 -7
- package/lib/meters.d.ts.map +1 -1
- package/lib/meters.js.map +1 -1
- package/lib/oauth-server.d.ts +33 -119
- package/lib/oauth-server.d.ts.map +1 -1
- package/lib/oauth.d.ts +14 -96
- package/lib/oauth.d.ts.map +1 -1
- package/lib/oauth.js +0 -4
- package/lib/oauth.js.map +1 -1
- package/lib/payload.d.ts +15 -38
- package/lib/payload.d.ts.map +1 -1
- package/lib/platform-event.d.ts +49 -462
- package/lib/platform-event.d.ts.map +1 -1
- package/lib/platform-event.js.map +1 -1
- package/lib/principal-context.d.ts +10 -15
- package/lib/principal-context.d.ts.map +1 -1
- package/lib/project-values.d.ts +24 -0
- package/lib/project-values.d.ts.map +1 -0
- package/lib/project-values.js +42 -0
- package/lib/project-values.js.map +1 -0
- package/lib/project.d.ts +55 -503
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js +6 -76
- package/lib/project.js.map +1 -1
- package/lib/prompt.d.ts +20 -51
- package/lib/prompt.d.ts.map +1 -1
- package/lib/prompt.js.map +1 -1
- package/lib/query.d.ts +27 -88
- package/lib/query.d.ts.map +1 -1
- package/lib/rate-limiter.d.ts +19 -70
- package/lib/rate-limiter.d.ts.map +1 -1
- package/lib/rate-limiter.js +0 -3
- package/lib/rate-limiter.js.map +1 -1
- package/lib/refs.d.ts +3 -11
- package/lib/refs.d.ts.map +1 -1
- package/lib/refs.js.map +1 -1
- package/lib/roles/types.d.ts +14 -20
- package/lib/roles/types.d.ts.map +1 -1
- package/lib/roles/types.js +5 -9
- package/lib/roles/types.js.map +1 -1
- package/lib/runs.d.ts +6 -25
- package/lib/runs.d.ts.map +1 -1
- package/lib/secrets.d.ts +20 -105
- package/lib/secrets.d.ts.map +1 -1
- package/lib/store/agent-approval.d.ts +5 -14
- package/lib/store/agent-approval.d.ts.map +1 -1
- package/lib/store/agent-approval.js.map +1 -1
- package/lib/store/agent-run.d.ts +63 -342
- package/lib/store/agent-run.d.ts.map +1 -1
- package/lib/store/collections.d.ts +11 -63
- package/lib/store/collections.d.ts.map +1 -1
- package/lib/store/collections.js.map +1 -1
- package/lib/store/conversation-state.d.ts +63 -61
- package/lib/store/conversation-state.d.ts.map +1 -1
- package/lib/store/conversation-state.js +2 -0
- package/lib/store/conversation-state.js.map +1 -1
- package/lib/store/doc-analyzer.d.ts +9 -32
- package/lib/store/doc-analyzer.d.ts.map +1 -1
- package/lib/store/dsl-workflow.d.ts +37 -151
- package/lib/store/dsl-workflow.d.ts.map +1 -1
- package/lib/store/dsl-workflow.js.map +1 -1
- package/lib/store/editing-policy-schema.generated.d.ts +3 -0
- package/lib/store/editing-policy-schema.generated.d.ts.map +1 -0
- package/lib/store/editing-policy-schema.generated.js +28 -0
- package/lib/store/editing-policy-schema.generated.js.map +1 -0
- package/lib/store/grounded-extraction.d.ts +7 -104
- package/lib/store/grounded-extraction.d.ts.map +1 -1
- package/lib/store/grounded-extraction.js.map +1 -1
- package/lib/store/index.d.ts +2 -0
- package/lib/store/index.d.ts.map +1 -1
- package/lib/store/index.js +3 -0
- package/lib/store/index.js.map +1 -1
- package/lib/store/intake-policy-schema.generated.d.ts +3 -0
- package/lib/store/intake-policy-schema.generated.d.ts.map +1 -0
- package/lib/store/intake-policy-schema.generated.js +1425 -0
- package/lib/store/intake-policy-schema.generated.js.map +1 -0
- package/lib/store/process-schema.d.ts +80 -0
- package/lib/store/process-schema.d.ts.map +1 -1
- package/lib/store/process-schema.js +79 -0
- package/lib/store/process-schema.js.map +1 -1
- package/lib/store/process-validation.d.ts.map +1 -1
- package/lib/store/process-validation.js +70 -2
- package/lib/store/process-validation.js.map +1 -1
- package/lib/store/process.d.ts +36 -125
- package/lib/store/process.d.ts.map +1 -1
- package/lib/store/process.js.map +1 -1
- package/lib/store/rendering.d.ts +9 -64
- package/lib/store/rendering.d.ts.map +1 -1
- package/lib/store/rendering.js.map +1 -1
- package/lib/store/store.d.ts +98 -693
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +4 -443
- package/lib/store/store.js.map +1 -1
- package/lib/store/task.d.ts +15 -59
- package/lib/store/task.d.ts.map +1 -1
- package/lib/store/task.js +0 -3
- package/lib/store/task.js.map +1 -1
- package/lib/store/workflow.d.ts +56 -516
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js +28 -11
- package/lib/store/workflow.js.map +1 -1
- package/lib/sts-token-types.d.ts +12 -66
- package/lib/sts-token-types.d.ts.map +1 -1
- package/lib/sts-token-types.js.map +1 -1
- package/lib/tools.d.ts +8 -100
- package/lib/tools.d.ts.map +1 -1
- package/lib/transient-tokens-values.d.ts +11 -0
- package/lib/transient-tokens-values.d.ts.map +1 -0
- package/lib/transient-tokens-values.js +12 -0
- package/lib/transient-tokens-values.js.map +1 -0
- package/lib/transient-tokens.d.ts +15 -13
- package/lib/transient-tokens.d.ts.map +1 -1
- package/lib/transient-tokens.js +5 -5
- package/lib/transient-tokens.js.map +1 -1
- package/lib/user.d.ts +54 -155
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js +1 -78
- package/lib/user.js.map +1 -1
- package/lib/versions.d.ts +24 -1
- package/lib/versions.d.ts.map +1 -1
- package/lib/versions.js +23 -0
- package/lib/versions.js.map +1 -1
- package/lib/vertesia-common.js +6 -2
- package/lib/vertesia-common.js.map +1 -1
- package/lib/views-schema.d.ts +4 -4
- package/lib/views.d.ts +56 -312
- package/lib/views.d.ts.map +1 -1
- package/lib/views.js.map +1 -1
- package/package.json +14 -5
- package/src/access-control-values.ts +113 -0
- package/src/access-control.ts +33 -138
- package/src/account-values.ts +95 -0
- package/src/agent-resources.test.ts +100 -0
- package/src/analytics.ts +18 -42
- package/src/api-schemas/access-control.contract.test.ts +209 -0
- package/src/api-schemas/access-control.ts +208 -0
- package/src/api-schemas/account.contract.test.ts +318 -0
- package/src/api-schemas/account.ts +150 -0
- package/src/api-schemas/adapter-edge-cases.test.ts +480 -0
- package/src/api-schemas/adapter.ts +778 -0
- package/src/api-schemas/agent-runs.ts +1081 -0
- package/src/api-schemas/analytics.ts +65 -0
- package/src/api-schemas/apikey.contract.test.ts +270 -0
- package/src/api-schemas/apikey.ts +199 -0
- package/src/api-schemas/app-lifecycle.ts +841 -0
- package/src/api-schemas/app-runtime.ts +919 -0
- package/src/api-schemas/apps.ts +415 -0
- package/src/api-schemas/audit-trail.ts +243 -0
- package/src/api-schemas/bulk-operation.contract.test.ts +39 -0
- package/src/api-schemas/bulk-operation.ts +75 -0
- package/src/api-schemas/bundle-isolation.test.ts +80 -0
- package/src/api-schemas/commands.contract.test.ts +51 -0
- package/src/api-schemas/commands.ts +62 -0
- package/src/api-schemas/content.ts +939 -0
- package/src/api-schemas/cost-analytics.contract.test.ts +64 -0
- package/src/api-schemas/cost-analytics.ts +235 -0
- package/src/api-schemas/dashboard.contract.test.ts +127 -0
- package/src/api-schemas/dashboard.ts +351 -0
- package/src/api-schemas/data-store.contract.test.ts +91 -0
- package/src/api-schemas/data-store.ts +571 -0
- package/src/api-schemas/document-processing.contract.test.ts +76 -0
- package/src/api-schemas/document-processing.ts +344 -0
- package/src/api-schemas/embeddings.ts +113 -0
- package/src/api-schemas/environment.contract.test.ts +184 -0
- package/src/api-schemas/environment.ts +190 -0
- package/src/api-schemas/events.ts +921 -0
- package/src/api-schemas/files.ts +159 -0
- package/src/api-schemas/group.contract.test.ts +205 -0
- package/src/api-schemas/group.ts +155 -0
- package/src/api-schemas/index.ts +35 -0
- package/src/api-schemas/indexing.contract.test.ts +83 -0
- package/src/api-schemas/indexing.ts +234 -0
- package/src/api-schemas/integrations.ts +369 -0
- package/src/api-schemas/interaction.ts +2357 -0
- package/src/api-schemas/invites.contract.test.ts +268 -0
- package/src/api-schemas/invites.ts +127 -0
- package/src/api-schemas/llumiverse.contract.test.ts +108 -0
- package/src/api-schemas/oauth-server.ts +219 -0
- package/src/api-schemas/oauth.contract.test.ts +118 -0
- package/src/api-schemas/oauth.ts +166 -0
- package/src/api-schemas/parameters.test.ts +402 -0
- package/src/api-schemas/parameters.ts +310 -0
- package/src/api-schemas/process.ts +929 -0
- package/src/api-schemas/project-configuration.ts +478 -0
- package/src/api-schemas/project.contract.test.ts +365 -0
- package/src/api-schemas/project.ts +214 -0
- package/src/api-schemas/prompt.ts +88 -0
- package/src/api-schemas/pruning-limits.test.ts +189 -0
- package/src/api-schemas/quota.contract.test.ts +147 -0
- package/src/api-schemas/quota.ts +122 -0
- package/src/api-schemas/registry-groups.test.ts +91 -0
- package/src/api-schemas/registry.ts +3487 -0
- package/src/api-schemas/response-pruning.test.ts +260 -0
- package/src/api-schemas/schema-primitives.ts +12 -0
- package/src/api-schemas/secrets.ts +332 -0
- package/src/api-schemas/store.contract.test.ts +450 -0
- package/src/api-schemas/store.ts +604 -0
- package/src/api-schemas/sts.contract.test.ts +80 -0
- package/src/api-schemas/sts.ts +110 -0
- package/src/api-schemas/task.ts +104 -0
- package/src/api-schemas/tools.ts +140 -0
- package/src/api-schemas/user.contract.test.ts +191 -0
- package/src/api-schemas/user.ts +204 -0
- package/src/api-schemas/view-execution.ts +200 -0
- package/src/api-schemas/views.ts +437 -0
- package/src/api-schemas/workflow-runs.ts +653 -0
- package/src/apikey-values.ts +10 -0
- package/src/apikey.ts +49 -40
- package/src/apps.ts +249 -1179
- package/src/ask-user.ts +9 -1
- package/src/audit-trail.ts +45 -137
- package/src/browser-credentials.ts +21 -106
- package/src/common.ts +67 -78
- package/src/cost-analytics.ts +37 -176
- package/src/data-platform.ts +205 -776
- package/src/email.ts +5 -17
- package/src/embeddings.ts +22 -60
- package/src/environment.ts +52 -124
- package/src/facets.ts +4 -7
- package/src/group.ts +38 -42
- package/src/index.ts +11 -0
- package/src/integrations.ts +39 -129
- package/src/interaction-values.ts +23 -0
- package/src/interaction.ts +231 -841
- package/src/meters.ts +11 -7
- package/src/oauth-server.ts +58 -127
- package/src/oauth.ts +24 -108
- package/src/payload.ts +25 -40
- package/src/platform-event.ts +98 -484
- package/src/principal-context.ts +11 -15
- package/src/project-values.ts +41 -0
- package/src/project.ts +116 -588
- package/src/prompt.ts +34 -61
- package/src/query.ts +34 -93
- package/src/rate-limiter.ts +27 -75
- package/src/refs.ts +4 -11
- package/src/roles/types.ts +20 -20
- package/src/runs.ts +11 -24
- package/src/secrets.ts +38 -117
- package/src/store/agent-approval.ts +9 -14
- package/src/store/agent-run.ts +106 -434
- package/src/store/collections.ts +21 -63
- package/src/store/content-type-editing.test.ts +17 -0
- package/src/store/conversation-state.ts +78 -64
- package/src/store/doc-analyzer.ts +17 -33
- package/src/store/dsl-workflow.ts +62 -158
- package/src/store/editing-policy-schema.generated.ts +30 -0
- package/src/store/grounded-extraction.ts +13 -104
- package/src/store/index.ts +3 -0
- package/src/store/intake-policy-schema.generated.ts +1442 -0
- package/src/store/process-schema.test.ts +43 -0
- package/src/store/process-schema.ts +79 -0
- package/src/store/process-validation.test.ts +141 -0
- package/src/store/process-validation.ts +82 -2
- package/src/store/process.ts +70 -146
- package/src/store/rendering.ts +15 -64
- package/src/store/store.ts +197 -1182
- package/src/store/task.ts +25 -59
- package/src/store/workflow.ts +103 -554
- package/src/sts-token-types.ts +24 -75
- package/src/tools.ts +18 -97
- package/src/transient-tokens-values.ts +11 -0
- package/src/transient-tokens.ts +16 -13
- package/src/user.ts +74 -214
- package/src/versions.ts +24 -0
- package/src/views-schema.test.ts +9 -1
- package/src/views.ts +106 -329
|
@@ -0,0 +1,2586 @@
|
|
|
1
|
+
// Imported from llumiverse rather than restated here. These components describe llumiverse's own
|
|
2
|
+
// types, and a second declaration in this repository would create an independent source of truth.
|
|
3
|
+
// They have no local `./*.ts` module because there is nothing local to declare.
|
|
4
|
+
import { AIModelArraySchema, AIModelSchema, AIModelStatusSchema, CompletionResultSchema, DataSourceSchema, EmbeddingOutputSchema, EmbeddingResultItemSchema, EmbeddingsResultSchema, EmbeddingsTokenUsageSchema, EmbeddingTaskTypeSchema, ExecutionTokenUsageSchema, HttpTimeoutOptionsSchema, ImageResultSchema, JSONObjectSchema, JSONSchemaSchema, JSONValueSchema, JsonResultSchema, ModalitiesSchema, ModelOptionsSchema, ModelSearchPayloadSchema, ModelTypeSchema, PromptRoleSchema, PromptSegmentSchema, StatelessExecutionOptionsSchema, TextResultSchema, ToolDefinitionSchema, ToolUseSchema, } from '@llumiverse/common/schemas';
|
|
5
|
+
import { Ajv2020 } from 'ajv/dist/2020.js';
|
|
6
|
+
import ajvFormats from 'ajv-formats';
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
import { ACECreatePayloadSchema, ACEUpdatePayloadSchema, AccessControlEntryArraySchema, AccessControlEntrySchema, RoleDefinitionArraySchema, SystemRoleDefinitionArraySchema, } from './access-control.js';
|
|
9
|
+
import { AccountSchema, StripeBillingStatusResponseSchema, UpdateAccountPayloadSchema } from './account.js';
|
|
10
|
+
import { findUnprunablePaths, pruneToSchema, toOpenApiComponents } from './adapter.js';
|
|
11
|
+
import * as AgentRunSchemas from './agent-runs.js';
|
|
12
|
+
import { AnalyticsAxisSchema, RunAnalyticsGroupBySchema, RunAnalyticsQuerySchema, RunAnalyticsResultArraySchema, RunAnalyticsResultSchema, TimeResolutionSchema, } from './analytics.js';
|
|
13
|
+
import { ApiKeyArraySchema, ApiKeyListQuerySchema, ApiKeyReadQuerySchema, ApiKeyReadResponseSchema, ApiKeySchema, ApiKeyWithValueSchema, AuthTokenResponseSchema, CreateApiKeyPayloadSchema, DeleteOperationResultSchema, ProjectRefArraySchema, UpdateApiKeyPayloadSchema, } from './apikey.js';
|
|
14
|
+
import { AgentRunSearchHitSchema, AgentRunStatusSchema, AgentRunTypeSchema, AgentToolApprovalClassSchema, AgentToolDefinitionSchema, AppBuildProgressSchema, AppBuildProgressStatusSchema, AppBuildTriggerSchema, AppDevelopmentTaskDetailsSchema, AppDevelopmentTaskListSchema, AppDevelopmentTaskSchema, AppInspectionCapabilityReportSchema, AppInspectionIssueSchema, AppInspectionResultSchema, AppInstallationKindSchema, AppInstallationOAuthBindingSchema, AppInstallationPayloadSchema, AppInstallationProjectsQuerySchema, AppInstallationProviderBindingSchema, AppInstallationsQuerySchema, AppOAuthCollectionParamsSchema, AppOAuthProviderParamsSchema, AppPackageScopeSchema, AppRepoBranchSchema, AppRepoCommitSchema, AppRepoCommitsSchema, AppRepoDocumentCommitSchema, AppRepoRefSchema, AppRepoRefsSchema, AppRepoTreeEntrySchema, AppRepoTreeSchema, AppScaffoldModuleSchema, AppScaffoldProgressSchema, AppScaffoldProgressStatusSchema, AppToolCollectionArraySchema, AppToolCollectionSchema, AppVersionGitRefTypeSchema, AppVersionGitSourceSchema, AppVersionKindSchema, AppVersionRecordArraySchema, AppVersionRecordSchema, AppVersionStateSchema, AppVersionStorageSchema, AppVersionTargetSchema, AppVersionUrlsSchema, ContentObjectTypeRefSchema, ConversationActivityStateSchema, DeleteAppVersionResponseSchema, EventRefSchema, Extract_AppVersionGitRefType_branch_tag_commitSchema, InCodeTypeRefSchema, OAuthClientCredentialsMapSchema, OAuthClientCredentialsSchema, RunKindSchema, RunTypeSchema, StartAppBuildRequestSchema, StartAppBuildResponseSchema, StartAppScaffoldRequestSchema, StartAppScaffoldResponseSchema, StoredTypeRefSchema, SystemPackageQuerySchema, UpdateAppInstallationToolAllowlistPayloadSchema, UpsertAppVersionRequestSchema, ValidateUrlRequestSchema, ValidateUrlResponseSchema, } from './app-lifecycle.js';
|
|
15
|
+
import * as AppRuntimeSchemas from './app-runtime.js';
|
|
16
|
+
import { AppAccessControlSchema, AppCapabilitiesSchema, AppManifestSourceSchema, AppSourceConfigSchema, AppUIConfigSchema, MCPToolAnnotationsSchema, McpOAuthConnectResponseSchema, McpOAuthDisconnectResponseSchema, McpOAuthTokenRequestSchema, McpOAuthTokenResponseSchema, OAuthAuthorizeResponseSchema, OAuthAuthStatusArraySchema, OAuthAuthStatusSchema, OAuthMetadataResponseSchema, ToolCollectionObjectSchema, } from './apps.js';
|
|
17
|
+
import { AuditActionSchema, AuditAggregationDetailFieldSchema, AuditAggregationDetailFilterSchema, AuditAggregationDimensionMapSchema, AuditAggregationDimensionSchema, AuditAggregationDistinctFieldSchema, AuditAggregationFilterSchema, AuditAggregationGroupSchema, AuditAggregationMetricSchema, AuditAggregationOperationSchema, AuditAggregationQuerySchema, AuditAggregationResolutionSchema, AuditAggregationResponseSchema, AuditAggregationRowSchema, AuditMeterSchema, AuditTrailEventSchema, AuditTrailQuerySchema, AuditTrailResponseSchema, EventCategorySchema, KnownAuditActionSchema, } from './audit-trail.js';
|
|
18
|
+
import { BulkObjectCreateResultSchema, BulkObjectDeleteResultSchema, BulkObjectUpdateResultSchema, BulkOperationPayloadSchema, BulkOperationResponseSchema, BulkOperationResultSchema, } from './bulk-operation.js';
|
|
19
|
+
import { DeleteCountResultSchema, GenericCommandResponseSchema, MigrationListResponseSchema, RunMigrationPayloadSchema, RunMigrationResponseSchema, } from './commands.js';
|
|
20
|
+
import * as ContentSchemas from './content.js';
|
|
21
|
+
import { CostAnalyticsQuerySchema, CostAnalyticsResponseSchema, CostByDimensionSchema, CostExportQuerySchema, CostModelPricesQuerySchema, CostRunPriceQuerySchema, CostRunPriceResponseSchema, CostSummarySchema, CostTimeSeriesPointSchema, ModelPriceComparisonResponseSchema, ModelPriceComparisonSchema, ModelPricingSchema, PricingSyncDayResultSchema, PricingSyncPayloadSchema, PricingSyncResultSchema, } from './cost-analytics.js';
|
|
22
|
+
import { CreateDashboardPayloadSchema, CreateDashboardSnapshotPayloadSchema, DashboardArchiveResultSchema, DashboardBulkArchiveResultSchema, DashboardBulkDeleteResultSchema, DashboardDataSourceSchema, DashboardElasticsearchDslSchema, DashboardElasticsearchResultMappingSchema, DashboardItemArraySchema, DashboardItemSchema, DashboardLayoutSchema, DashboardPanelPositionSchema, DashboardPanelSchema, DashboardQuerySchema, DashboardSchema, DashboardSqlDataSourceSchema, DashboardStatusSchema, DashboardStoreElasticsearchDataSourceSchema, DashboardVersionItemArraySchema, DashboardVersionItemSchema, DashboardVersioningPayloadSchema, DashboardVersioningStatusResponseSchema, DashboardVersionSchema, PromoteDashboardVersionPayloadSchema, StringArrayMapSchema, UpdateDashboardPayloadSchema, } from './dashboard.js';
|
|
23
|
+
import { AlterTableOperationSchema, AlterTablePayloadSchema, BatchQueryPayloadSchema, BatchQueryResultItemSchema, BatchQueryResultSchema, CreateDataStorePayloadSchema, CreateSnapshotPayloadSchema, CreateTablePayloadSchema, CreateTablesPayloadSchema, DataColumnForAIMapSchema, DataColumnForAISchema, DataColumnSchema, DataColumnTypeSchema, DataColumnUpdateSchema, DataForeignKeyForAISchema, DataForeignKeySchema, DataIndexSchema, DataRelationshipForAISchema, DataRelationshipSchema, DataRelationshipTypeSchema, DataSchemaForAISchema, DataSchemaSchema, DataStoreArchiveResultSchema, DataStoreDownloadInfoSchema, DataStoreFullSchemaResponseSchema, DataStoreItemArraySchema, DataStoreItemSchema, DataStoreMutateRowsPayloadSchema, DataStoreMutateRowsResultSchema, DataStoreSchema, DataStoreSchemaResponseSchema, DataStoreStatusSchema, DataStoreTableDetailSchema, DataStoreTableDropResultSchema, DataStoreVersionArraySchema, DataStoreVersionSchema, DataStoreVersionTableStateMapSchema, DataStoreVersionTableStateSchema, DataTableArraySchema, DataTableForAIMapSchema, DataTableForAISchema, DataTableSchema, DataTableSemanticTypeSchema, DataTableSummaryArraySchema, DataTableSummarySchema, GetDataStoreTableQuerySchema, ImportDataFormatSchema, ImportDataPayloadSchema, ImportDataSourceSchema, ImportJobSchema, ImportStatusSchema, ImportTableDataMapSchema, ImportTableDataSchema, ListDataStoreVersionsQuerySchema, QueryPayloadSchema, QueryResultColumnSchema, QueryResultSchema, QueryValidationErrorSchema, QueryValidationPayloadSchema, QueryValidationResultSchema, SemanticColumnTypeSchema, UpdateSchemaPayloadSchema, } from './data-store.js';
|
|
24
|
+
import { DocAnalyzeRunStatusResponseSchema, DocAnalyzerProgressSchema, DocAnalyzerProgressStatusSchema, DocProcessorOutputFormatSchema, DocumentPrepOptionsSchema, DocumentProcessingPhaseSchema, GroundedAssistantResponseSchema, GroundedExtractionRequestSchema, GroundedExtractionResultResponseSchema, GroundedExtractionVerdictSchema, GroundedVerificationBreakdownSchema, MarkdownRenditionFormatSchema, PdfRenderingMetadataSchema, RenderMarkdownPayloadSchema, RenderMarkdownStartResponseSchema, RenderMarkdownStatusQuerySchema, RenderMarkdownStatusResponseSchema, WorkflowExecutionStatusSchema, } from './document-processing.js';
|
|
25
|
+
import { EmbeddingsApiAudioInputSchema, EmbeddingsApiImageInputSchema, EmbeddingsApiInputSchema, EmbeddingsApiRequestSchema, EmbeddingsApiSourceSchema, EmbeddingsApiTextInputSchema, EmbeddingsApiVideoInputSchema, EmbeddingsStatusResponseSchema, ProjectConfigurationEmbeddingEnablePayloadSchema, } from './embeddings.js';
|
|
26
|
+
import { EnableEnvironmentModelPayloadSchema, ExecutionEnvironmentArraySchema, ExecutionEnvironmentConfigUpdatePayloadSchema, ExecutionEnvironmentCreatePayloadSchema, ExecutionEnvironmentRefSchema, ExecutionEnvironmentSchema, ExecutionEnvironmentSettingsSchema, ExecutionEnvironmentUpdatePayloadSchema, ListEnvironmentsQuerySchema, LoadBalancingEnvConfigSchema, LoadBalancingEnvEntryConfigSchema, MediatorEnvConfigSchema, MigrateInteractionsPayloadSchema, MigrateInteractionsResultSchema, SupportedProvidersSchema, VirtualEnvEntrySchema, } from './environment.js';
|
|
27
|
+
import * as EventSchemas from './events.js';
|
|
28
|
+
import { BucketReadAccessQuerySchema, BucketReadAccessStatusResponseSchema, BulkUploadUrlsPayloadSchema, BulkUploadUrlsResponseSchema, CopyFilePayloadSchema, CopyFileResponseSchema, DeleteFileResultSchema, EnsureBucketReadAccessPayloadSchema, EnsureBucketReadAccessResponseSchema, FileBucketResponseSchema, FileDeleteQuerySchema, FileListQuerySchema, FileListResponseSchema, FileMetadataQuerySchema, FileMetadataResponseSchema, FileMetadataUpdateResultSchema, GetFileUrlPayloadSchema, GetFileUrlResponseSchema, GetUploadUrlPayloadSchema, SetFileMetadataPayloadSchema, StringValueMapSchema, } from './files.js';
|
|
29
|
+
import { CreateUserGroupPayloadSchema, UpdateUserGroupPayloadSchema, UserGroupArraySchema, UserGroupRefSchema, UserGroupSchema, } from './group.js';
|
|
30
|
+
import { DriftAnalysisProgressSchema, DriftAnalysisResultSchema, DriftAnalysisStatusResponseSchema, IndexingStatusResponseSchema, ReindexAgentRunsPayloadSchema, ReindexAgentRunsResponseSchema, StartProjectReindexPayloadSchema, } from './indexing.js';
|
|
31
|
+
import * as IntegrationSchemas from './integrations.js';
|
|
32
|
+
import { AgentResourceActionSchema, AgentResourceReferenceSchema, AgentResourceTypeSchema, AgentRunnerOptionsSchema, AgentSearchScope_CollectionSchema, AgentSearchScopeSchema, AgentToolApprovalModeSchema, AsyncCompletionModeSchema, AsyncCompletionOptionsSchema, AsyncConversationExecutionPayloadSchema, AsyncExecutionPayloadSchema, AsyncExecutionResultSchema, AsyncInteractionExecutionPayloadSchema, CachePolicySchema, CatalogInteractionRefArraySchema, CatalogInteractionRefSchema, CatalogTagQuerySchema, ComputedFacetResponseSchema, ComputeInteractionFacetPayloadSchema, ComputeRunFacetPayloadSchema, ConversationStateSchema, ConversationStripOptionsSchema, ConversationVisibilitySchema, EmailChannelSchema, ExecuteInteractionByEndpointHeadersSchema, ExecuteInteractionByEndpointQuerySchema, ExecutionResponseSchema, ExecutionRunDocRefSchema, ExecutionRunInteractionSchema, ExecutionRunRefArraySchema, ExecutionRunRefSchema, ExecutionRunSchema, ExecutionRunStatusSchema, ExecutionRunWorkflowSchema, ExportedPromptTemplateRefSchema, ExternalizedToolInputRefSchema, ExternalizedToolInputRefsSchema, FacetSpecSchema, GeneratedInteractionDefinitionArraySchema, GeneratedInteractionDefinitionSchema, GeneratedInteractionPromptSegmentSchema, GeneratedInteractionPromptTemplateSchema, GeneratedTestDataRecordArraySchema, GeneratedTestDataRecordSchema, GenerateInteractionPayloadSchema, GenerateTestDataPayloadSchema, ImprovePromptPayloadConfigSchema, ImprovePromptPayloadSchema, InCodePromptSchema, InitialToolCallSchema, InteractionArraySchema, InteractionCreatePayloadSchema, InteractionEndpointArraySchema, InteractionEndpointQuerySchema, InteractionEndpointSchema, InteractionExecutionErrorSchema, InteractionExecutionPayloadSchema, InteractionExecutionResultSchema, InteractionForkPayloadSchema, InteractionNameArraySchema, InteractionNameSchema, InteractionPublishPayloadSchema, InteractionRefArraySchema, InteractionRefSchema, InteractionRefWithSchemaArraySchema, InteractionRefWithSchemaSchema, InteractionSchema, InteractionSearchQuerySchema, InteractionStatusSchema, InteractionsExportPayloadSchema, InteractionTagsArraySchema, InteractionTagsSchema, InteractionUpdatePayloadSchema, InteractionVisibilitySchema, InteractiveChannelSchema, LegacyExecutionRunResultSchema, LegacyPopulatedExecutionRunResultSchema, LlmCallTypeSchema, ModelSourceSchema, NamedInteractionExecutionPayloadSchema, NumberValueMapSchema, PendingMcpConnectionSchema, PendingToolApprovalResultsSchema, PlanSchema, PlanTaskSchema, PopulatedExecutionRunResultSchema, PromptImprovementResponseSchema, PromptModalitiesSchema, PromptSegmentDefSchema, PromptSegmentDefTypeSchema, PromptSegmentRef_ExportedPromptTemplateRefSchema, PromptSegmentRef_PromptTemplateRefSchema, PromptStatusSchema, PromptTemplateCreatePayloadSchema, PromptTemplateRefSchema, PromptTemplateSchema, PromptTemplateUpdatePayloadSchema, RateLimitRequestPayloadSchema, RateLimitRequestResponseSchema, ResolvedEnvironmentInfoSchema, ResolvedInteractionExecutionInfoSchema, ResolvedRuntimeConfigSchema, ResolveInteractionQuerySchema, ResultStorageOptionsSchema, RunClonePayloadSchema, RunCreatePayloadSchema, RunListQuerySchema, RunSearchMetaResponseSchema, RunSearchPayloadSchema, RunSearchQuerySchema, RunSourceSchema, RunSourceTypesSchema, SchemaRefSchema, SkillContextTriggersSchema, SortOptionSchema, SortOrderSchema, StoredCatalogInteractionsQuerySchema, StreamingOptionsSchema, StreamingTelemetryContextSchema, TemplateTypeSchema, TextArtifactReferenceSchema, ToolApprovalGrantMapSchema, ToolApprovalGrantSchema, ToolReferenceSchema, ToolResultMetaSchema, ToolResultSchema, ToolResultsPayloadSchema, UpdateExecutionRunPayloadSchema, UsedSkillSchema, UserChannelSchema, UserMessagePayloadSchema, WorkflowAncestorSchema, } from './interaction.js';
|
|
33
|
+
import { AccountProjectsResponseSchema, InviteAcceptanceResponseSchema, InviteDeclineResponseSchema, InviteUserRequestPayloadSchema, InviteUserResponsePayloadSchema, OnboardingProgressSchema, UserInviteTokenArraySchema, } from './invites.js';
|
|
34
|
+
import { CreateOAuthProviderPayloadSchema, OAuthProviderAccessTokenResponseSchema, OAuthProviderArraySchema, OAuthProviderAuthorizeResponseSchema, OAuthProviderAuthStatusSchema, OAuthProviderExchangePayloadSchema, OAuthProviderSchema, SuccessResponseSchema, UpdateOAuthProviderPayloadSchema, } from './oauth.js';
|
|
35
|
+
import { BulkRevokeOAuthGrantsPayloadSchema, CreateOAuthClientPayloadSchema, ListOAuthGrantsQuerySchema, OAuthClientArraySchema, OAuthClientCreateResponseSchema, OAuthClientSchema, OAuthClientScopeMetadataSchema, OAuthClientStatusSchema, OAuthClientTypeSchema, OAuthGrantListResponseSchema, OAuthGrantRevokeResponseSchema, OAuthGrantSchema, OAuthGrantSortFieldSchema, OAuthGrantSortOrderSchema, OAuthGrantStatusSchema, OAuthGrantTypeSchema, OAuthProjectBindingModeSchema, OAuthRegistrationSourceSchema, OAuthResponseTypeSchema, OAuthTokenEndpointAuthMethodSchema, RevokeOAuthGrantQuerySchema, UpdateOAuthClientPayloadSchema, } from './oauth-server.js';
|
|
36
|
+
import { normalizeParameters, } from './parameters.js';
|
|
37
|
+
import * as ProcessSchemas from './process.js';
|
|
38
|
+
import { CountResultSchema, CreateProjectPayloadSchema, ListProjectsQuerySchema, ProjectIntegrationListResponseSchema, ProjectPluginsUpdatePayloadSchema, ProjectSchema, ProjectTagQuerySchema, ProjectToolInfoArraySchema, ProjectToolInfoSchema, RenderingTemplateDefinitionRefSchema, RenderingTemplateDefinitionSchema, UpdateProjectConfigurationPayloadSchema, UpdateProjectPayloadSchema, } from './project.js';
|
|
39
|
+
import { BrowserUseProjectConfigurationSchema, ProjectConfigurationEmbeddingSchema, ProjectConfigurationSchema, ProjectIndexingConfigurationSchema, ProjectIntakeConfigurationSchema, ProjectIntakeSniffConfigurationSchema, ProjectModelDefaultsSchema, ResourceVisibilitySchema, } from './project-configuration.js';
|
|
40
|
+
import { ComputePromptFacetPayloadSchema, PromptSearchQuerySchema, PromptTemplateForkPayloadSchema, PromptTemplateInteractionsResponseSchema, PromptTemplateInteractionUsageSchema, PromptTemplateInteractionVersionSchema, PromptTemplateRefArraySchema, RenderPromptPayloadSchema, RenderPromptResponseSchema, } from './prompt.js';
|
|
41
|
+
import { QuotaStandingResponseSchema, QuotaTierResponseSchema } from './quota.js';
|
|
42
|
+
import * as SecretSchemas from './secrets.js';
|
|
43
|
+
import { ColumnLayoutSchema, ContentObjectTypeCatalogEntryArraySchema, ContentObjectTypeCatalogEntrySchema, ContentObjectTypeCatalogQuerySchema, ContentObjectTypeItemArraySchema, ContentObjectTypeItemSchema, ContentObjectTypeListQuerySchema, ContentObjectTypeSchema, ContentObjectTypeStatusSchema, ContentTypeEditingPolicySchema, ContentTypeIntakePolicySchema, CreateContentObjectTypePayloadSchema, InCodeTypeDefinitionSchema, UpdateContentObjectTypePayloadSchema, } from './store.js';
|
|
44
|
+
import * as StsSchemas from './sts.js';
|
|
45
|
+
import { CompleteTaskPayloadSchema, CreateTaskPayloadSchema, DurableTaskStatusSchema, ListTasksQuerySchema, TaskArraySchema, TaskFieldSchema, TaskFieldTypeSchema, TaskSchema, TaskSourceSchema, UpdateTaskPayloadSchema, } from './task.js';
|
|
46
|
+
import { AggregatedToolArraySchema, AggregatedToolSchema, ListProjectToolsQuerySchema, ToolSourceSchema, ToolValidationResultSchema, ValidateToolNamesPayloadSchema, ValidateToolNamesResponseSchema, } from './tools.js';
|
|
47
|
+
import { DeleteByIdResultSchema, PrincipalIdentitySchema, SignupDataSchema, SignupPayloadSchema, UpdateUserPayloadSchema, UserArraySchema, UserRefArraySchema, UserSchema, } from './user.js';
|
|
48
|
+
import * as ViewExecutionSchemas from './view-execution.js';
|
|
49
|
+
import { AgenticViewSearchConfigurationSchema, CreateViewExperienceRequestSchema, UpdateViewExperienceRequestSchema, ViewBoardCardConfigurationSchema, ViewBoardColumnSchema, ViewBoardDisplaySchema, ViewCardsDisplaySchema, ViewCollectionNavigationSchema, ViewDisplayConfigurationSchema, ViewElasticsearchQuerySchema, ViewExperienceArraySchema, ViewExperienceLayoutSchema, ViewExperienceListQuerySchema, ViewExperienceSchema, ViewExperienceSchemaVersionSchema, ViewExperienceScopeSchema, ViewGalleryDisplaySchema, ViewHierarchyLevelSchema, ViewHierarchyNavigationSchema, ViewKeyTermDefinitionSchema, ViewListDisplaySchema, ViewLocationNavigationSchema, ViewNavigationItemSchema, ViewRangeDefinitionSchema, ViewRangeNavigationSchema, ViewResultFieldFormatSchema, ViewResultFieldSchema, ViewResultMediaSchema, ViewResultsConfigurationSchema, ViewSearchConfigurationSchema, ViewSearchFieldDefinitionSchema, ViewSearchFieldTypeSchema, ViewSortClauseSchema, ViewSortOptionSchema, ViewTableColumnSchema, ViewTableDisplaySchema, ViewTermsNavigationSchema, } from './views.js';
|
|
50
|
+
import * as WorkflowRunSchemas from './workflow-runs.js';
|
|
51
|
+
// ajv-formats is CommonJS with an ESM-style declaration file. Node's interop makes the default
|
|
52
|
+
// import the whole `module.exports` (itself callable), while TypeScript sees the namespace — and
|
|
53
|
+
// `.default` is the plugin function in both shapes.
|
|
54
|
+
const addFormats = ajvFormats.default;
|
|
55
|
+
/**
|
|
56
|
+
* Endpoint-level API schemas, keyed by the OpenAPI component name they publish under.
|
|
57
|
+
*
|
|
58
|
+
* Schemas referenced directly by an endpoint belong here. Nested schemas carrying an id
|
|
59
|
+
* (`AccountBilling`, the Stripe union members) are hoisted into components automatically by the
|
|
60
|
+
* adapter, so listing them here would be redundant.
|
|
61
|
+
*
|
|
62
|
+
* Entries named by no endpoint are roots or leaves referenced by another registered component.
|
|
63
|
+
* The adapter hoists those references into the same canonical component graph.
|
|
64
|
+
*/
|
|
65
|
+
/**
|
|
66
|
+
* The registry, in groups, because the compiler cannot serialize it as one object.
|
|
67
|
+
*
|
|
68
|
+
* At 200 entries `tsc` began refusing the declaration emit with TS7056 — "the inferred type of this
|
|
69
|
+
* node exceeds the maximum length the compiler will serialize". `ApiComponentName` and
|
|
70
|
+
* `ApiComponentType` are both derived from the object, so its full inferred type has to be written
|
|
71
|
+
* into `lib/*.d.ts`, and a Zod schema's type is deeply structural: two hundred of them is the limit.
|
|
72
|
+
* So the object is declared in groups small enough to serialize, and `ApiSchemaMap` puts them back
|
|
73
|
+
* together as an intersection — which the compiler emits as the type expression it was written as,
|
|
74
|
+
* with no inferred node to serialize. A name is still one of these keys and
|
|
75
|
+
* `ApiComponentType<'Account'>` is still `z.infer<typeof AccountSchema>`.
|
|
76
|
+
*
|
|
77
|
+
* Groups follow API domains so ownership stays visible while satisfying the compiler limit. Adding a
|
|
78
|
+
* component means placing it in its domain group and adding a new, specifically named group if that
|
|
79
|
+
* group approaches the proven-safe size.
|
|
80
|
+
*/
|
|
81
|
+
const IAM_AND_ACCOUNT_SCHEMAS = {
|
|
82
|
+
Account: AccountSchema,
|
|
83
|
+
UpdateAccountPayload: UpdateAccountPayloadSchema,
|
|
84
|
+
StripeBillingStatusResponse: StripeBillingStatusResponseSchema,
|
|
85
|
+
ApiKeyListQuery: ApiKeyListQuerySchema,
|
|
86
|
+
QuotaStandingResponse: QuotaStandingResponseSchema,
|
|
87
|
+
QuotaTierResponse: QuotaTierResponseSchema,
|
|
88
|
+
User: UserSchema,
|
|
89
|
+
UserArray: UserArraySchema,
|
|
90
|
+
UpdateUserPayload: UpdateUserPayloadSchema,
|
|
91
|
+
DeleteByIdResult: DeleteByIdResultSchema,
|
|
92
|
+
PrincipalIdentity: PrincipalIdentitySchema,
|
|
93
|
+
SignupData: SignupDataSchema,
|
|
94
|
+
SignupPayload: SignupPayloadSchema,
|
|
95
|
+
UserRefArray: UserRefArraySchema,
|
|
96
|
+
UserGroup: UserGroupSchema,
|
|
97
|
+
UserGroupArray: UserGroupArraySchema,
|
|
98
|
+
UserGroupRef: UserGroupRefSchema,
|
|
99
|
+
CreateUserGroupPayload: CreateUserGroupPayloadSchema,
|
|
100
|
+
UpdateUserGroupPayload: UpdateUserGroupPayloadSchema,
|
|
101
|
+
AccessControlEntry: AccessControlEntrySchema,
|
|
102
|
+
AccessControlEntryArray: AccessControlEntryArraySchema,
|
|
103
|
+
ACECreatePayload: ACECreatePayloadSchema,
|
|
104
|
+
ACEUpdatePayload: ACEUpdatePayloadSchema,
|
|
105
|
+
ProjectRefArray: ProjectRefArraySchema,
|
|
106
|
+
RoleDefinitionArray: RoleDefinitionArraySchema,
|
|
107
|
+
SystemRoleDefinitionArray: SystemRoleDefinitionArraySchema,
|
|
108
|
+
ApiKey: ApiKeySchema,
|
|
109
|
+
ApiKeyArray: ApiKeyArraySchema,
|
|
110
|
+
ApiKeyWithValue: ApiKeyWithValueSchema,
|
|
111
|
+
ApiKeyReadResponse: ApiKeyReadResponseSchema,
|
|
112
|
+
ApiKeyReadQuery: ApiKeyReadQuerySchema,
|
|
113
|
+
CreateApiKeyPayload: CreateApiKeyPayloadSchema,
|
|
114
|
+
UpdateApiKeyPayload: UpdateApiKeyPayloadSchema,
|
|
115
|
+
AuthTokenResponse: AuthTokenResponseSchema,
|
|
116
|
+
DeleteOperationResult: DeleteOperationResultSchema,
|
|
117
|
+
InviteUserRequestPayload: InviteUserRequestPayloadSchema,
|
|
118
|
+
InviteUserResponsePayload: InviteUserResponsePayloadSchema,
|
|
119
|
+
InviteAcceptanceResponse: InviteAcceptanceResponseSchema,
|
|
120
|
+
InviteDeclineResponse: InviteDeclineResponseSchema,
|
|
121
|
+
OnboardingProgress: OnboardingProgressSchema,
|
|
122
|
+
AccountProjectsResponse: AccountProjectsResponseSchema,
|
|
123
|
+
TransientToken_UserInviteTokenData_Array: UserInviteTokenArraySchema,
|
|
124
|
+
ListProjectsQuery: ListProjectsQuerySchema,
|
|
125
|
+
ProjectTagQuery: ProjectTagQuerySchema,
|
|
126
|
+
ICreateProjectPayload: CreateProjectPayloadSchema,
|
|
127
|
+
ProjectPluginsUpdatePayload: ProjectPluginsUpdatePayloadSchema,
|
|
128
|
+
CountResult: CountResultSchema,
|
|
129
|
+
ProjectIntegrationListResponse: ProjectIntegrationListResponseSchema,
|
|
130
|
+
ProjectToolInfo: ProjectToolInfoSchema,
|
|
131
|
+
ProjectToolInfoArray: ProjectToolInfoArraySchema,
|
|
132
|
+
RenderingTemplateDefinition: RenderingTemplateDefinitionSchema,
|
|
133
|
+
RenderingTemplateDefinitionRef: RenderingTemplateDefinitionRefSchema,
|
|
134
|
+
};
|
|
135
|
+
const PROJECT_AND_APP_SCHEMAS = {
|
|
136
|
+
// Leaves of the ProjectConfiguration closure. Each is hoisted by `ProjectConfiguration` rather
|
|
137
|
+
// than named by an endpoint, so only the roots that nothing else here references are listed;
|
|
138
|
+
// `ModelDefault`, the two search enums, `ProjectSearchPropertyMapping(+Map)` and the two
|
|
139
|
+
// browser-use enums are published by being referenced from these.
|
|
140
|
+
ProjectModelDefaults: ProjectModelDefaultsSchema,
|
|
141
|
+
ResourceVisibility: ResourceVisibilitySchema,
|
|
142
|
+
ProjectIndexingConfiguration: ProjectIndexingConfigurationSchema,
|
|
143
|
+
ProjectConfigurationEmbedding: ProjectConfigurationEmbeddingSchema,
|
|
144
|
+
BrowserUseProjectConfiguration: BrowserUseProjectConfigurationSchema,
|
|
145
|
+
ProjectIntakeSniffConfiguration: ProjectIntakeSniffConfigurationSchema,
|
|
146
|
+
// Leaves of the Project closure. `ModelOptions` hoists its
|
|
147
|
+
// twenty-three driver option sets and four enums; `JSONSchema` hoists `JSONSchemaProperties`.
|
|
148
|
+
JSONSchema: JSONSchemaSchema,
|
|
149
|
+
ModelOptions: ModelOptionsSchema,
|
|
150
|
+
HttpTimeoutOptions: HttpTimeoutOptionsSchema,
|
|
151
|
+
// The intake policy tree. Everything it reaches — InteractionExecutionConfiguration, the two
|
|
152
|
+
// grounding policies, the page/vision enums and the embedding switches — is hoisted from here.
|
|
153
|
+
ContentTypeIntakePolicy: ContentTypeIntakePolicySchema,
|
|
154
|
+
// Registered after the policy it references. `IntakeVisionProfileSettingsUpdate` and the
|
|
155
|
+
// per-detail override map are hoisted from here; neither has a TypeScript name to alias.
|
|
156
|
+
ProjectIntakeConfiguration: ProjectIntakeConfigurationSchema,
|
|
157
|
+
// The roots of the Project closure, registered last because every leaf above is a `$ref` target
|
|
158
|
+
// of one of them.
|
|
159
|
+
ProjectConfiguration: ProjectConfigurationSchema,
|
|
160
|
+
Project: ProjectSchema,
|
|
161
|
+
// The two explicitly named update payloads derived from the corresponding response schemas.
|
|
162
|
+
UpdateProjectPayload: UpdateProjectPayloadSchema,
|
|
163
|
+
UpdateProjectConfigurationPayload: UpdateProjectConfigurationPayloadSchema,
|
|
164
|
+
// App-manifest leaves hoisted by the registered manifest roots.
|
|
165
|
+
// `MCPToolCollectionObject`, `VertesiaSDKToolCollectionObject`, `ToolCollectionAuthType`,
|
|
166
|
+
// `MCPOAuthConfig`, `AppUINavItem`, `AppAvailableIn` and `AppGitSourceConfig` are hoisted from
|
|
167
|
+
// the roots below rather than listed.
|
|
168
|
+
ToolCollectionObject: ToolCollectionObjectSchema,
|
|
169
|
+
AppUIConfig: AppUIConfigSchema,
|
|
170
|
+
AppCapabilities: AppCapabilitiesSchema,
|
|
171
|
+
AppAccessControl: AppAccessControlSchema,
|
|
172
|
+
AppSourceConfig: AppSourceConfigSchema,
|
|
173
|
+
AppManifestSource: AppManifestSourceSchema,
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* The studio OAuth surface: providers, clients, grants.
|
|
177
|
+
*
|
|
178
|
+
* A group of its own because thirty-one components is near TypeScript's declaration-emit
|
|
179
|
+
* serialization limit for this registry shape.
|
|
180
|
+
*
|
|
181
|
+
* The token server's authorize, token, device-code, and consent contracts live in its own group.
|
|
182
|
+
*/
|
|
183
|
+
const OAUTH_SCHEMAS = {
|
|
184
|
+
// Providers: Vertesia as a client of someone else's authorization server.
|
|
185
|
+
SuccessResponse: SuccessResponseSchema,
|
|
186
|
+
OAuthProvider: OAuthProviderSchema,
|
|
187
|
+
OAuthProviderArray: OAuthProviderArraySchema,
|
|
188
|
+
CreateOAuthProviderPayload: CreateOAuthProviderPayloadSchema,
|
|
189
|
+
UpdateOAuthProviderPayload: UpdateOAuthProviderPayloadSchema,
|
|
190
|
+
OAuthProviderAuthStatus: OAuthProviderAuthStatusSchema,
|
|
191
|
+
OAuthProviderAuthorizeResponse: OAuthProviderAuthorizeResponseSchema,
|
|
192
|
+
OAuthProviderAccessTokenResponse: OAuthProviderAccessTokenResponseSchema,
|
|
193
|
+
OAuthProviderExchangePayload: OAuthProviderExchangePayloadSchema,
|
|
194
|
+
// The client and grant enums. Each is published as a component today because it has a
|
|
195
|
+
// TypeScript name, so each is registered rather than inlined — dropping one would rewrite every
|
|
196
|
+
// `$ref` that points at it into an inline enum.
|
|
197
|
+
OAuthClientType: OAuthClientTypeSchema,
|
|
198
|
+
OAuthClientStatus: OAuthClientStatusSchema,
|
|
199
|
+
OAuthRegistrationSource: OAuthRegistrationSourceSchema,
|
|
200
|
+
OAuthProjectBindingMode: OAuthProjectBindingModeSchema,
|
|
201
|
+
OAuthTokenEndpointAuthMethod: OAuthTokenEndpointAuthMethodSchema,
|
|
202
|
+
OAuthGrantType: OAuthGrantTypeSchema,
|
|
203
|
+
OAuthResponseType: OAuthResponseTypeSchema,
|
|
204
|
+
OAuthGrantStatus: OAuthGrantStatusSchema,
|
|
205
|
+
OAuthGrantSortField: OAuthGrantSortFieldSchema,
|
|
206
|
+
OAuthGrantSortOrder: OAuthGrantSortOrderSchema,
|
|
207
|
+
// Clients registered against Vertesia's own OAuth server. `OAuthClientData` is composed into
|
|
208
|
+
// `OAuthClient` rather than hoisted, so it has no component of its own — as today.
|
|
209
|
+
OAuthClient: OAuthClientSchema,
|
|
210
|
+
OAuthClientArray: OAuthClientArraySchema,
|
|
211
|
+
OAuthClientCreateResponse: OAuthClientCreateResponseSchema,
|
|
212
|
+
OAuthClientScopeMetadata: OAuthClientScopeMetadataSchema,
|
|
213
|
+
CreateOAuthClientPayload: CreateOAuthClientPayloadSchema,
|
|
214
|
+
UpdateOAuthClientPayload: UpdateOAuthClientPayloadSchema,
|
|
215
|
+
// Grants. The two query components are registered like any other — they are expanded into
|
|
216
|
+
// parameters rather than published as component bodies, which is what every query contract does.
|
|
217
|
+
OAuthGrant: OAuthGrantSchema,
|
|
218
|
+
ListOAuthGrantsQuery: ListOAuthGrantsQuerySchema,
|
|
219
|
+
RevokeOAuthGrantQuery: RevokeOAuthGrantQuerySchema,
|
|
220
|
+
BulkRevokeOAuthGrantsPayload: BulkRevokeOAuthGrantsPayloadSchema,
|
|
221
|
+
OAuthGrantListResponse: OAuthGrantListResponseSchema,
|
|
222
|
+
OAuthGrantRevokeResponse: OAuthGrantRevokeResponseSchema,
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* The studio execution environments, and everything the twenty slots across `/environments` name.
|
|
226
|
+
*
|
|
227
|
+
* A fifth group, for the same reason the fourth exists: the declaration emit refuses a group much
|
|
228
|
+
* past thirty entries, and this is thirty-six.
|
|
229
|
+
*
|
|
230
|
+
* Half of it is llumiverse's rather than Vertesia's. `AIModel` and the embedding results describe
|
|
231
|
+
* what a driver produces, so their schemas live in `@llumiverse/common/schemas` and are registered
|
|
232
|
+
* from there — the same arrangement `ModelOptions` and `JSONSchema` already use. Registering them
|
|
233
|
+
* here rather than defining them here is the whole point: one definition, whichever package owns it.
|
|
234
|
+
*/
|
|
235
|
+
const ENVIRONMENT_SCHEMAS = {
|
|
236
|
+
// The environment itself. `ExecutionEnvironmentRef` is the secret-free projection: no
|
|
237
|
+
// environment endpoint returns it, but `ResolvedInteractionExecutionInfo` refs it.
|
|
238
|
+
SupportedProviders: SupportedProvidersSchema,
|
|
239
|
+
ExecutionEnvironmentRef: ExecutionEnvironmentRefSchema,
|
|
240
|
+
ExecutionEnvironment: ExecutionEnvironmentSchema,
|
|
241
|
+
ExecutionEnvironmentArray: ExecutionEnvironmentArraySchema,
|
|
242
|
+
ExecutionEnvironmentSettings: ExecutionEnvironmentSettingsSchema,
|
|
243
|
+
ExecutionEnvironmentCreatePayload: ExecutionEnvironmentCreatePayloadSchema,
|
|
244
|
+
ExecutionEnvironmentUpdatePayload: ExecutionEnvironmentUpdatePayloadSchema,
|
|
245
|
+
ExecutionEnvironmentConfigUpdatePayload: ExecutionEnvironmentConfigUpdatePayloadSchema,
|
|
246
|
+
EnableEnvironmentModelPayload: EnableEnvironmentModelPayloadSchema,
|
|
247
|
+
ListEnvironmentsQuery: ListEnvironmentsQuerySchema,
|
|
248
|
+
MigrateInteractionsPayload: MigrateInteractionsPayloadSchema,
|
|
249
|
+
MigrateInteractionsResult: MigrateInteractionsResultSchema,
|
|
250
|
+
// Virtual-environment configuration — the two shapes `config` may take on a virtual provider.
|
|
251
|
+
VirtualEnvEntry: VirtualEnvEntrySchema,
|
|
252
|
+
LoadBalancingEnvConfig: LoadBalancingEnvConfigSchema,
|
|
253
|
+
LoadBalancingEnvEntryConfig: LoadBalancingEnvEntryConfigSchema,
|
|
254
|
+
MediatorEnvConfig: MediatorEnvConfigSchema,
|
|
255
|
+
// Models, from `@llumiverse/common/schemas`. `ModelSearchPayload` is a query contract, so it is
|
|
256
|
+
// expanded into four parameters rather than published as a component body.
|
|
257
|
+
AIModel: AIModelSchema,
|
|
258
|
+
AIModelArray: AIModelArraySchema,
|
|
259
|
+
AIModelStatus: AIModelStatusSchema,
|
|
260
|
+
ModelType: ModelTypeSchema,
|
|
261
|
+
ModelSearchPayload: ModelSearchPayloadSchema,
|
|
262
|
+
// Run analytics, shared with the project-level `/analytics` endpoint.
|
|
263
|
+
RunAnalyticsQuery: RunAnalyticsQuerySchema,
|
|
264
|
+
RunAnalyticsResult: RunAnalyticsResultSchema,
|
|
265
|
+
RunAnalyticsResultArray: RunAnalyticsResultArraySchema,
|
|
266
|
+
RunAnalyticsGroupBy: RunAnalyticsGroupBySchema,
|
|
267
|
+
AnalyticsAxis: AnalyticsAxisSchema,
|
|
268
|
+
TimeResolution: TimeResolutionSchema,
|
|
269
|
+
// Embeddings. The request is Vertesia's (a JSON-friendly source rather than a stream); the
|
|
270
|
+
// result is llumiverse's, unchanged on the wire.
|
|
271
|
+
EmbeddingsApiRequest: EmbeddingsApiRequestSchema,
|
|
272
|
+
EmbeddingsApiInput: EmbeddingsApiInputSchema,
|
|
273
|
+
EmbeddingsApiSource: EmbeddingsApiSourceSchema,
|
|
274
|
+
EmbeddingsApiTextInput: EmbeddingsApiTextInputSchema,
|
|
275
|
+
EmbeddingsApiImageInput: EmbeddingsApiImageInputSchema,
|
|
276
|
+
EmbeddingsApiVideoInput: EmbeddingsApiVideoInputSchema,
|
|
277
|
+
EmbeddingsApiAudioInput: EmbeddingsApiAudioInputSchema,
|
|
278
|
+
EmbeddingTaskType: EmbeddingTaskTypeSchema,
|
|
279
|
+
EmbeddingsResult: EmbeddingsResultSchema,
|
|
280
|
+
EmbeddingResultItem: EmbeddingResultItemSchema,
|
|
281
|
+
EmbeddingOutput: EmbeddingOutputSchema,
|
|
282
|
+
EmbeddingsTokenUsage: EmbeddingsTokenUsageSchema,
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Interactions, prompts, runs and agent conversations: the sixty-eight slots across the six
|
|
286
|
+
* `/interactions`, `/runs` and `/execute` resources.
|
|
287
|
+
*
|
|
288
|
+
* These are one closure, not six. `Interaction` reaches `PromptSegmentDef` reaches
|
|
289
|
+
* `PromptTemplate`; `InteractionExecutionResult` reaches `ExecutionRun` reaches `ConversationState`
|
|
290
|
+
* reaches the agent plan, the channels and the tool-approval types. A canonical component may not
|
|
291
|
+
* `$ref` a TypeScript-derived one, so the closure holds together or not at all.
|
|
292
|
+
*
|
|
293
|
+
* A hundred and twenty-nine components is far past what one group serializes, so it is five, split
|
|
294
|
+
* along the lines the closure already has. The split is still only a compiler accommodation:
|
|
295
|
+
* nothing reads a component's group.
|
|
296
|
+
*
|
|
297
|
+
* The completion group is llumiverse's. A prompt segment, a tool call and a completion result are
|
|
298
|
+
* llumiverse types, so their schemas live in `@llumiverse/common/schemas` beside the types they
|
|
299
|
+
* derive — the arrangement `ModelOptions`, `JSONSchema` and `AIModel` already use.
|
|
300
|
+
*/
|
|
301
|
+
const LLM_COMPLETION_SCHEMAS = {
|
|
302
|
+
// What a prompt is made of.
|
|
303
|
+
JSONValue: JSONValueSchema,
|
|
304
|
+
JSONObject: JSONObjectSchema,
|
|
305
|
+
PromptRole: PromptRoleSchema,
|
|
306
|
+
Modalities: ModalitiesSchema,
|
|
307
|
+
DataSource: DataSourceSchema,
|
|
308
|
+
PromptSegment: PromptSegmentSchema,
|
|
309
|
+
// Tools, and what a model returns.
|
|
310
|
+
ToolDefinition: ToolDefinitionSchema,
|
|
311
|
+
ToolUse: ToolUseSchema,
|
|
312
|
+
TextResult: TextResultSchema,
|
|
313
|
+
JsonResult: JsonResultSchema,
|
|
314
|
+
ImageResult: ImageResultSchema,
|
|
315
|
+
CompletionResult: CompletionResultSchema,
|
|
316
|
+
ExecutionTokenUsage: ExecutionTokenUsageSchema,
|
|
317
|
+
// The options a caller may send. `PromptFormatter` is deliberately gone: see the note on
|
|
318
|
+
// `StatelessExecutionOptionsSchema`.
|
|
319
|
+
StatelessExecutionOptions: StatelessExecutionOptionsSchema,
|
|
320
|
+
};
|
|
321
|
+
const INTERACTION_SCHEMAS = {
|
|
322
|
+
// The interaction definition and the prompt tree under it.
|
|
323
|
+
InteractionStatus: InteractionStatusSchema,
|
|
324
|
+
InteractionVisibility: InteractionVisibilitySchema,
|
|
325
|
+
PromptModalities: PromptModalitiesSchema,
|
|
326
|
+
PromptStatus: PromptStatusSchema,
|
|
327
|
+
PromptSegmentDefType: PromptSegmentDefTypeSchema,
|
|
328
|
+
TemplateType: TemplateTypeSchema,
|
|
329
|
+
SchemaRef: SchemaRefSchema,
|
|
330
|
+
CachePolicy: CachePolicySchema,
|
|
331
|
+
PromptTemplate: PromptTemplateSchema,
|
|
332
|
+
PromptTemplateCreatePayload: PromptTemplateCreatePayloadSchema,
|
|
333
|
+
PromptTemplateUpdatePayload: PromptTemplateUpdatePayloadSchema,
|
|
334
|
+
PromptTemplateRef: PromptTemplateRefSchema,
|
|
335
|
+
PromptSegmentDef: PromptSegmentDefSchema,
|
|
336
|
+
PromptSegmentRef_PromptTemplateRef: PromptSegmentRef_PromptTemplateRefSchema,
|
|
337
|
+
InCodePrompt: InCodePromptSchema,
|
|
338
|
+
Interaction: InteractionSchema,
|
|
339
|
+
InteractionArray: InteractionArraySchema,
|
|
340
|
+
InteractionRef: InteractionRefSchema,
|
|
341
|
+
InteractionRefArray: InteractionRefArraySchema,
|
|
342
|
+
InteractionName: InteractionNameSchema,
|
|
343
|
+
InteractionNameArray: InteractionNameArraySchema,
|
|
344
|
+
// The export shape and the reduced prompt template it carries.
|
|
345
|
+
ExportedPromptTemplateRef: ExportedPromptTemplateRefSchema,
|
|
346
|
+
PromptSegmentRef_ExportedPromptTemplateRef: PromptSegmentRef_ExportedPromptTemplateRefSchema,
|
|
347
|
+
InteractionRefWithSchema: InteractionRefWithSchemaSchema,
|
|
348
|
+
InteractionRefWithSchemaArray: InteractionRefWithSchemaArraySchema,
|
|
349
|
+
InteractionTags: InteractionTagsSchema,
|
|
350
|
+
InteractionTagsArray: InteractionTagsArraySchema,
|
|
351
|
+
// Endpoints — an interaction's published, executable name.
|
|
352
|
+
InteractionEndpoint: InteractionEndpointSchema,
|
|
353
|
+
InteractionEndpointArray: InteractionEndpointArraySchema,
|
|
354
|
+
InteractionEndpointQuery: InteractionEndpointQuerySchema,
|
|
355
|
+
// Write and search contracts.
|
|
356
|
+
InteractionCreatePayload: InteractionCreatePayloadSchema,
|
|
357
|
+
InteractionUpdatePayload: InteractionUpdatePayloadSchema,
|
|
358
|
+
InteractionPublishPayload: InteractionPublishPayloadSchema,
|
|
359
|
+
InteractionForkPayload: InteractionForkPayloadSchema,
|
|
360
|
+
InteractionsExportPayload: InteractionsExportPayloadSchema,
|
|
361
|
+
InteractionSearchQuery: InteractionSearchQuerySchema,
|
|
362
|
+
ResolveInteractionQuery: ResolveInteractionQuerySchema,
|
|
363
|
+
// The catalog — in-code interactions an app or the system provides, alongside stored ones.
|
|
364
|
+
CatalogInteractionRef: CatalogInteractionRefSchema,
|
|
365
|
+
CatalogInteractionRefArray: CatalogInteractionRefArraySchema,
|
|
366
|
+
CatalogTagQuery: CatalogTagQuerySchema,
|
|
367
|
+
StoredCatalogInteractionsQuery: StoredCatalogInteractionsQuerySchema,
|
|
368
|
+
// What `GET /interactions/resolve/:nameOrId` answers with.
|
|
369
|
+
ModelSource: ModelSourceSchema,
|
|
370
|
+
ResolvedEnvironmentInfo: ResolvedEnvironmentInfoSchema,
|
|
371
|
+
ResolvedInteractionExecutionInfo: ResolvedInteractionExecutionInfoSchema,
|
|
372
|
+
// Facets over the interaction list.
|
|
373
|
+
FacetSpec: FacetSpecSchema,
|
|
374
|
+
NumberValueMap: NumberValueMapSchema,
|
|
375
|
+
ComputeInteractionFacetPayload: ComputeInteractionFacetPayloadSchema,
|
|
376
|
+
ComputedFacetResponse: ComputedFacetResponseSchema,
|
|
377
|
+
};
|
|
378
|
+
const INTERACTION_AUTHORING_SCHEMAS = {
|
|
379
|
+
// Prompt improvement, and the two generators behind the authoring screens.
|
|
380
|
+
ImprovePromptPayloadConfig: ImprovePromptPayloadConfigSchema,
|
|
381
|
+
ImprovePromptPayload: ImprovePromptPayloadSchema,
|
|
382
|
+
PromptImprovementResponse: PromptImprovementResponseSchema,
|
|
383
|
+
GenerateTestDataPayload: GenerateTestDataPayloadSchema,
|
|
384
|
+
GeneratedTestDataRecord: GeneratedTestDataRecordSchema,
|
|
385
|
+
GeneratedTestDataRecordArray: GeneratedTestDataRecordArraySchema,
|
|
386
|
+
GenerateInteractionPayload: GenerateInteractionPayloadSchema,
|
|
387
|
+
GeneratedInteractionDefinition: GeneratedInteractionDefinitionSchema,
|
|
388
|
+
GeneratedInteractionDefinitionArray: GeneratedInteractionDefinitionArraySchema,
|
|
389
|
+
GeneratedInteractionPromptTemplate: GeneratedInteractionPromptTemplateSchema,
|
|
390
|
+
GeneratedInteractionPromptSegment: GeneratedInteractionPromptSegmentSchema,
|
|
391
|
+
};
|
|
392
|
+
const AGENT_CONVERSATION_SCHEMAS = {
|
|
393
|
+
// How an agent run is configured.
|
|
394
|
+
AgentRunnerOptions: AgentRunnerOptionsSchema,
|
|
395
|
+
AgentSearchScope: AgentSearchScopeSchema,
|
|
396
|
+
AgentSearchScope_Collection: AgentSearchScope_CollectionSchema,
|
|
397
|
+
SkillContextTriggers: SkillContextTriggersSchema,
|
|
398
|
+
InitialToolCall: InitialToolCallSchema,
|
|
399
|
+
ConversationVisibility: ConversationVisibilitySchema,
|
|
400
|
+
ConversationStripOptions: ConversationStripOptionsSchema,
|
|
401
|
+
StreamingOptions: StreamingOptionsSchema,
|
|
402
|
+
StreamingTelemetryContext: StreamingTelemetryContextSchema,
|
|
403
|
+
ResolvedRuntimeConfig: ResolvedRuntimeConfigSchema,
|
|
404
|
+
LlmCallType: LlmCallTypeSchema,
|
|
405
|
+
// Where an interactive agent talks to a human.
|
|
406
|
+
InteractiveChannel: InteractiveChannelSchema,
|
|
407
|
+
EmailChannel: EmailChannelSchema,
|
|
408
|
+
UserChannel: UserChannelSchema,
|
|
409
|
+
// Tools: what was called, what came back, and what a human still has to approve.
|
|
410
|
+
ToolReference: ToolReferenceSchema,
|
|
411
|
+
ToolResult: ToolResultSchema,
|
|
412
|
+
ToolResultMeta: ToolResultMetaSchema,
|
|
413
|
+
ExternalizedToolInputRef: ExternalizedToolInputRefSchema,
|
|
414
|
+
ExternalizedToolInputRefs: ExternalizedToolInputRefsSchema,
|
|
415
|
+
ToolApprovalGrant: ToolApprovalGrantSchema,
|
|
416
|
+
ToolApprovalGrantMap: ToolApprovalGrantMapSchema,
|
|
417
|
+
AgentToolApprovalMode: AgentToolApprovalModeSchema,
|
|
418
|
+
PendingToolApprovalResults: PendingToolApprovalResultsSchema,
|
|
419
|
+
AgentResourceAction: AgentResourceActionSchema,
|
|
420
|
+
AgentResourceType: AgentResourceTypeSchema,
|
|
421
|
+
AgentResourceReference: AgentResourceReferenceSchema,
|
|
422
|
+
PendingMcpConnection: PendingMcpConnectionSchema,
|
|
423
|
+
// The conversation itself, and what it accumulates.
|
|
424
|
+
UsedSkill: UsedSkillSchema,
|
|
425
|
+
PlanTask: PlanTaskSchema,
|
|
426
|
+
Plan: PlanSchema,
|
|
427
|
+
WorkflowAncestor: WorkflowAncestorSchema,
|
|
428
|
+
TextArtifactReference: TextArtifactReferenceSchema,
|
|
429
|
+
ConversationState: ConversationStateSchema,
|
|
430
|
+
};
|
|
431
|
+
const EXECUTION_RUN_SCHEMAS = {
|
|
432
|
+
// A run: what was executed, by whom, and how it ended.
|
|
433
|
+
ExecutionRunStatus: ExecutionRunStatusSchema,
|
|
434
|
+
RunSourceTypes: RunSourceTypesSchema,
|
|
435
|
+
RunSource: RunSourceSchema,
|
|
436
|
+
ExecutionRunDocRef: ExecutionRunDocRefSchema,
|
|
437
|
+
ExecutionRunWorkflow: ExecutionRunWorkflowSchema,
|
|
438
|
+
ExecutionRunInteraction: ExecutionRunInteractionSchema,
|
|
439
|
+
ExecutionRun: ExecutionRunSchema,
|
|
440
|
+
ExecutionRunRef: ExecutionRunRefSchema,
|
|
441
|
+
ExecutionRunRefArray: ExecutionRunRefArraySchema,
|
|
442
|
+
UpdateExecutionRunPayload: UpdateExecutionRunPayloadSchema,
|
|
443
|
+
RunCreatePayload: RunCreatePayloadSchema,
|
|
444
|
+
// Listing and searching runs.
|
|
445
|
+
SortOrder: SortOrderSchema,
|
|
446
|
+
SortOption: SortOptionSchema,
|
|
447
|
+
RunSearchQuery: RunSearchQuerySchema,
|
|
448
|
+
RunListQuery: RunListQuerySchema,
|
|
449
|
+
RunSearchPayload: RunSearchPayloadSchema,
|
|
450
|
+
// Executing an interaction, synchronously or as a workflow.
|
|
451
|
+
InteractionExecutionPayload: InteractionExecutionPayloadSchema,
|
|
452
|
+
NamedInteractionExecutionPayload: NamedInteractionExecutionPayloadSchema,
|
|
453
|
+
InteractionExecutionResult: InteractionExecutionResultSchema,
|
|
454
|
+
// The retrieve variant, and the two pre-versioning result shapes. See the schema module for why
|
|
455
|
+
// the populated interaction cannot share a component with the create path.
|
|
456
|
+
PopulatedExecutionRunResult: PopulatedExecutionRunResultSchema,
|
|
457
|
+
LegacyExecutionRunResult: LegacyExecutionRunResultSchema,
|
|
458
|
+
LegacyPopulatedExecutionRunResult: LegacyPopulatedExecutionRunResultSchema,
|
|
459
|
+
InteractionExecutionError: InteractionExecutionErrorSchema,
|
|
460
|
+
ResultStorageOptions: ResultStorageOptionsSchema,
|
|
461
|
+
ExecuteInteractionByEndpointQuery: ExecuteInteractionByEndpointQuerySchema,
|
|
462
|
+
ExecuteInteractionByEndpointHeaders: ExecuteInteractionByEndpointHeadersSchema,
|
|
463
|
+
AsyncCompletionMode: AsyncCompletionModeSchema,
|
|
464
|
+
AsyncCompletionOptions: AsyncCompletionOptionsSchema,
|
|
465
|
+
AsyncExecutionPayload: AsyncExecutionPayloadSchema,
|
|
466
|
+
AsyncInteractionExecutionPayload: AsyncInteractionExecutionPayloadSchema,
|
|
467
|
+
AsyncConversationExecutionPayload: AsyncConversationExecutionPayloadSchema,
|
|
468
|
+
AsyncExecutionResult: AsyncExecutionResultSchema,
|
|
469
|
+
// The execution rate limiter.
|
|
470
|
+
RateLimitRequestPayload: RateLimitRequestPayloadSchema,
|
|
471
|
+
RateLimitRequestResponse: RateLimitRequestResponseSchema,
|
|
472
|
+
ComputeRunFacetPayload: ComputeRunFacetPayloadSchema,
|
|
473
|
+
RunSearchMetaResponse: RunSearchMetaResponseSchema,
|
|
474
|
+
ToolResultsPayload: ToolResultsPayloadSchema,
|
|
475
|
+
UserMessagePayload: UserMessagePayloadSchema,
|
|
476
|
+
ExecutionResponse: ExecutionResponseSchema,
|
|
477
|
+
RunClonePayload: RunClonePayloadSchema,
|
|
478
|
+
};
|
|
479
|
+
const FILE_STORAGE_SCHEMAS = {
|
|
480
|
+
StringValueMap: StringValueMapSchema,
|
|
481
|
+
CopyFilePayload: CopyFilePayloadSchema,
|
|
482
|
+
CopyFileResponse: CopyFileResponseSchema,
|
|
483
|
+
DeleteFileResult: DeleteFileResultSchema,
|
|
484
|
+
FileBucketResponse: FileBucketResponseSchema,
|
|
485
|
+
FileListResponse: FileListResponseSchema,
|
|
486
|
+
FileMetadataResponse: FileMetadataResponseSchema,
|
|
487
|
+
FileMetadataUpdateResult: FileMetadataUpdateResultSchema,
|
|
488
|
+
GetFileUrlPayload: GetFileUrlPayloadSchema,
|
|
489
|
+
GetFileUrlResponse: GetFileUrlResponseSchema,
|
|
490
|
+
GetUploadUrlPayload: GetUploadUrlPayloadSchema,
|
|
491
|
+
BulkUploadUrlsPayload: BulkUploadUrlsPayloadSchema,
|
|
492
|
+
BulkUploadUrlsResponse: BulkUploadUrlsResponseSchema,
|
|
493
|
+
SetFileMetadataPayload: SetFileMetadataPayloadSchema,
|
|
494
|
+
FileMetadataQuery: FileMetadataQuerySchema,
|
|
495
|
+
FileListQuery: FileListQuerySchema,
|
|
496
|
+
FileDeleteQuery: FileDeleteQuerySchema,
|
|
497
|
+
BucketReadAccessQuery: BucketReadAccessQuerySchema,
|
|
498
|
+
BucketReadAccessStatusResponse: BucketReadAccessStatusResponseSchema,
|
|
499
|
+
EnsureBucketReadAccessPayload: EnsureBucketReadAccessPayloadSchema,
|
|
500
|
+
EnsureBucketReadAccessResponse: EnsureBucketReadAccessResponseSchema,
|
|
501
|
+
};
|
|
502
|
+
const DURABLE_TASK_SCHEMAS = {
|
|
503
|
+
TaskFieldType: TaskFieldTypeSchema,
|
|
504
|
+
DurableTaskStatus: DurableTaskStatusSchema,
|
|
505
|
+
TaskSource: TaskSourceSchema,
|
|
506
|
+
TaskField: TaskFieldSchema,
|
|
507
|
+
Task: TaskSchema,
|
|
508
|
+
TaskArray: TaskArraySchema,
|
|
509
|
+
CreateTaskPayload: CreateTaskPayloadSchema,
|
|
510
|
+
UpdateTaskPayload: UpdateTaskPayloadSchema,
|
|
511
|
+
CompleteTaskPayload: CompleteTaskPayloadSchema,
|
|
512
|
+
ListTasksQuery: ListTasksQuerySchema,
|
|
513
|
+
};
|
|
514
|
+
const CONTENT_TYPE_CATALOG_SCHEMAS = {
|
|
515
|
+
ColumnLayout: ColumnLayoutSchema,
|
|
516
|
+
ContentTypeEditingPolicy: ContentTypeEditingPolicySchema,
|
|
517
|
+
ContentObjectTypeStatus: ContentObjectTypeStatusSchema,
|
|
518
|
+
ContentObjectTypeItem: ContentObjectTypeItemSchema,
|
|
519
|
+
ContentObjectTypeItemArray: ContentObjectTypeItemArraySchema,
|
|
520
|
+
ContentObjectTypeCatalogEntry: ContentObjectTypeCatalogEntrySchema,
|
|
521
|
+
ContentObjectTypeCatalogEntryArray: ContentObjectTypeCatalogEntryArraySchema,
|
|
522
|
+
InCodeTypeDefinition: InCodeTypeDefinitionSchema,
|
|
523
|
+
CreateContentObjectTypePayload: CreateContentObjectTypePayloadSchema,
|
|
524
|
+
UpdateContentObjectTypePayload: UpdateContentObjectTypePayloadSchema,
|
|
525
|
+
ContentObjectType: ContentObjectTypeSchema,
|
|
526
|
+
ContentObjectTypeCatalogQuery: ContentObjectTypeCatalogQuerySchema,
|
|
527
|
+
ContentObjectTypeListQuery: ContentObjectTypeListQuerySchema,
|
|
528
|
+
};
|
|
529
|
+
const MIGRATION_COMMAND_SCHEMAS = {
|
|
530
|
+
DeleteCountResult: DeleteCountResultSchema,
|
|
531
|
+
MigrationListResponse: MigrationListResponseSchema,
|
|
532
|
+
RunMigrationPayload: RunMigrationPayloadSchema,
|
|
533
|
+
RunMigrationResponse: RunMigrationResponseSchema,
|
|
534
|
+
};
|
|
535
|
+
const DASHBOARD_SCHEMAS = {
|
|
536
|
+
DashboardElasticsearchResultMapping: DashboardElasticsearchResultMappingSchema,
|
|
537
|
+
DashboardElasticsearchDsl: DashboardElasticsearchDslSchema,
|
|
538
|
+
DashboardSqlDataSource: DashboardSqlDataSourceSchema,
|
|
539
|
+
DashboardVersioningStatusResponse: DashboardVersioningStatusResponseSchema,
|
|
540
|
+
DashboardVersioningPayload: DashboardVersioningPayloadSchema,
|
|
541
|
+
PromoteDashboardVersionPayload: PromoteDashboardVersionPayloadSchema,
|
|
542
|
+
DashboardVersionItem: DashboardVersionItemSchema,
|
|
543
|
+
DashboardStatus: DashboardStatusSchema,
|
|
544
|
+
DashboardLayout: DashboardLayoutSchema,
|
|
545
|
+
DashboardPanelPosition: DashboardPanelPositionSchema,
|
|
546
|
+
DashboardQuery: DashboardQuerySchema,
|
|
547
|
+
DashboardBulkDeleteResult: DashboardBulkDeleteResultSchema,
|
|
548
|
+
DashboardArchiveResult: DashboardArchiveResultSchema,
|
|
549
|
+
CreateDashboardSnapshotPayload: CreateDashboardSnapshotPayloadSchema,
|
|
550
|
+
DashboardBulkArchiveResult: DashboardBulkArchiveResultSchema,
|
|
551
|
+
StringArrayMap: StringArrayMapSchema,
|
|
552
|
+
DashboardStoreElasticsearchDataSource: DashboardStoreElasticsearchDataSourceSchema,
|
|
553
|
+
DashboardVersionItemArray: DashboardVersionItemArraySchema,
|
|
554
|
+
DashboardItem: DashboardItemSchema,
|
|
555
|
+
DashboardPanel: DashboardPanelSchema,
|
|
556
|
+
DashboardDataSource: DashboardDataSourceSchema,
|
|
557
|
+
DashboardItemArray: DashboardItemArraySchema,
|
|
558
|
+
DashboardVersion: DashboardVersionSchema,
|
|
559
|
+
Dashboard: DashboardSchema,
|
|
560
|
+
CreateDashboardPayload: CreateDashboardPayloadSchema,
|
|
561
|
+
UpdateDashboardPayload: UpdateDashboardPayloadSchema,
|
|
562
|
+
};
|
|
563
|
+
const DATA_STORE_CORE_SCHEMAS = {
|
|
564
|
+
QueryValidationError: QueryValidationErrorSchema,
|
|
565
|
+
QueryValidationPayload: QueryValidationPayloadSchema,
|
|
566
|
+
ListDataStoreVersionsQuery: ListDataStoreVersionsQuerySchema,
|
|
567
|
+
GetDataStoreTableQuery: GetDataStoreTableQuerySchema,
|
|
568
|
+
DataTableSemanticType: DataTableSemanticTypeSchema,
|
|
569
|
+
DataIndex: DataIndexSchema,
|
|
570
|
+
DataForeignKey: DataForeignKeySchema,
|
|
571
|
+
SemanticColumnType: SemanticColumnTypeSchema,
|
|
572
|
+
DataColumnType: DataColumnTypeSchema,
|
|
573
|
+
DataColumnUpdate: DataColumnUpdateSchema,
|
|
574
|
+
DataRelationshipType: DataRelationshipTypeSchema,
|
|
575
|
+
QueryResultColumn: QueryResultColumnSchema,
|
|
576
|
+
BatchQueryPayload: BatchQueryPayloadSchema,
|
|
577
|
+
QueryResult: QueryResultSchema,
|
|
578
|
+
QueryPayload: QueryPayloadSchema,
|
|
579
|
+
DataStoreMutateRowsResult: DataStoreMutateRowsResultSchema,
|
|
580
|
+
DataStoreMutateRowsPayload: DataStoreMutateRowsPayloadSchema,
|
|
581
|
+
DataTableSummary: DataTableSummarySchema,
|
|
582
|
+
DataStoreVersionTableState: DataStoreVersionTableStateSchema,
|
|
583
|
+
DataStoreStatus: DataStoreStatusSchema,
|
|
584
|
+
ImportDataFormat: ImportDataFormatSchema,
|
|
585
|
+
ImportDataSource: ImportDataSourceSchema,
|
|
586
|
+
DataRelationshipForAI: DataRelationshipForAISchema,
|
|
587
|
+
DataForeignKeyForAI: DataForeignKeyForAISchema,
|
|
588
|
+
DataColumnForAI: DataColumnForAISchema,
|
|
589
|
+
ImportStatus: ImportStatusSchema,
|
|
590
|
+
DataStoreTableDropResult: DataStoreTableDropResultSchema,
|
|
591
|
+
DataStoreArchiveResult: DataStoreArchiveResultSchema,
|
|
592
|
+
CreateSnapshotPayload: CreateSnapshotPayloadSchema,
|
|
593
|
+
DataStoreDownloadInfo: DataStoreDownloadInfoSchema,
|
|
594
|
+
CreateDataStorePayload: CreateDataStorePayloadSchema,
|
|
595
|
+
};
|
|
596
|
+
const DATA_STORE_SCHEMA_SCHEMAS = {
|
|
597
|
+
QueryValidationResult: QueryValidationResultSchema,
|
|
598
|
+
DataColumn: DataColumnSchema,
|
|
599
|
+
AlterTableOperation: AlterTableOperationSchema,
|
|
600
|
+
DataRelationship: DataRelationshipSchema,
|
|
601
|
+
CreateTablePayload: CreateTablePayloadSchema,
|
|
602
|
+
BatchQueryResultItem: BatchQueryResultItemSchema,
|
|
603
|
+
DataTableSummaryArray: DataTableSummaryArraySchema,
|
|
604
|
+
DataStoreVersionTableStateMap: DataStoreVersionTableStateMapSchema,
|
|
605
|
+
DataStoreItem: DataStoreItemSchema,
|
|
606
|
+
ImportTableData: ImportTableDataSchema,
|
|
607
|
+
DataStoreTableDetail: DataStoreTableDetailSchema,
|
|
608
|
+
DataColumnForAIMap: DataColumnForAIMapSchema,
|
|
609
|
+
ImportJob: ImportJobSchema,
|
|
610
|
+
CreateTablesPayload: CreateTablesPayloadSchema,
|
|
611
|
+
DataTable: DataTableSchema,
|
|
612
|
+
AlterTablePayload: AlterTablePayloadSchema,
|
|
613
|
+
UpdateSchemaPayload: UpdateSchemaPayloadSchema,
|
|
614
|
+
BatchQueryResult: BatchQueryResultSchema,
|
|
615
|
+
DataStoreVersion: DataStoreVersionSchema,
|
|
616
|
+
DataStoreItemArray: DataStoreItemArraySchema,
|
|
617
|
+
ImportTableDataMap: ImportTableDataMapSchema,
|
|
618
|
+
DataTableForAI: DataTableForAISchema,
|
|
619
|
+
DataStoreFullSchemaResponse: DataStoreFullSchemaResponseSchema,
|
|
620
|
+
DataTableArray: DataTableArraySchema,
|
|
621
|
+
DataSchema: DataSchemaSchema,
|
|
622
|
+
DataStoreVersionArray: DataStoreVersionArraySchema,
|
|
623
|
+
ImportDataPayload: ImportDataPayloadSchema,
|
|
624
|
+
DataTableForAIMap: DataTableForAIMapSchema,
|
|
625
|
+
DataStore: DataStoreSchema,
|
|
626
|
+
DataSchemaForAI: DataSchemaForAISchema,
|
|
627
|
+
DataStoreSchemaResponse: DataStoreSchemaResponseSchema,
|
|
628
|
+
};
|
|
629
|
+
const COST_ANALYTICS_SCHEMAS = {
|
|
630
|
+
CostAnalyticsQuery: CostAnalyticsQuerySchema,
|
|
631
|
+
CostRunPriceQuery: CostRunPriceQuerySchema,
|
|
632
|
+
CostModelPricesQuery: CostModelPricesQuerySchema,
|
|
633
|
+
CostExportQuery: CostExportQuerySchema,
|
|
634
|
+
ModelPricing: ModelPricingSchema,
|
|
635
|
+
CostTimeSeriesPoint: CostTimeSeriesPointSchema,
|
|
636
|
+
CostSummary: CostSummarySchema,
|
|
637
|
+
ModelPriceComparison: ModelPriceComparisonSchema,
|
|
638
|
+
CostByDimension: CostByDimensionSchema,
|
|
639
|
+
ModelPriceComparisonResponse: ModelPriceComparisonResponseSchema,
|
|
640
|
+
CostAnalyticsResponse: CostAnalyticsResponseSchema,
|
|
641
|
+
CostRunPriceResponse: CostRunPriceResponseSchema,
|
|
642
|
+
PricingSyncPayload: PricingSyncPayloadSchema,
|
|
643
|
+
PricingSyncDayResult: PricingSyncDayResultSchema,
|
|
644
|
+
PricingSyncResult: PricingSyncResultSchema,
|
|
645
|
+
};
|
|
646
|
+
const BULK_CONTENT_OPERATION_SCHEMAS = {
|
|
647
|
+
BulkObjectDeleteResult: BulkObjectDeleteResultSchema,
|
|
648
|
+
BulkObjectUpdateResult: BulkObjectUpdateResultSchema,
|
|
649
|
+
BulkObjectCreateResult: BulkObjectCreateResultSchema,
|
|
650
|
+
BulkOperationResult: BulkOperationResultSchema,
|
|
651
|
+
BulkOperationPayload: BulkOperationPayloadSchema,
|
|
652
|
+
BulkOperationResponse: BulkOperationResponseSchema,
|
|
653
|
+
};
|
|
654
|
+
const DOCUMENT_PROCESSING_SCHEMAS = {
|
|
655
|
+
GroundedAssistantResponse: GroundedAssistantResponseSchema,
|
|
656
|
+
GroundedExtractionRequest: GroundedExtractionRequestSchema,
|
|
657
|
+
GroundedVerificationBreakdown: GroundedVerificationBreakdownSchema,
|
|
658
|
+
GroundedExtractionVerdict: GroundedExtractionVerdictSchema,
|
|
659
|
+
DocProcessorOutputFormat: DocProcessorOutputFormatSchema,
|
|
660
|
+
DocAnalyzerProgressStatus: DocAnalyzerProgressStatusSchema,
|
|
661
|
+
DocumentProcessingPhase: DocumentProcessingPhaseSchema,
|
|
662
|
+
WorkflowExecutionStatus: WorkflowExecutionStatusSchema,
|
|
663
|
+
DocumentPrepOptions: DocumentPrepOptionsSchema,
|
|
664
|
+
MarkdownRenditionFormat: MarkdownRenditionFormatSchema,
|
|
665
|
+
RenderMarkdownStatusQuery: RenderMarkdownStatusQuerySchema,
|
|
666
|
+
RenderMarkdownStartResponse: RenderMarkdownStartResponseSchema,
|
|
667
|
+
PdfRenderingMetadata: PdfRenderingMetadataSchema,
|
|
668
|
+
GroundedExtractionResultResponse: GroundedExtractionResultResponseSchema,
|
|
669
|
+
DocAnalyzerProgress: DocAnalyzerProgressSchema,
|
|
670
|
+
RenderMarkdownStatusResponse: RenderMarkdownStatusResponseSchema,
|
|
671
|
+
RenderMarkdownPayload: RenderMarkdownPayloadSchema,
|
|
672
|
+
DocAnalyzeRunStatusResponse: DocAnalyzeRunStatusResponseSchema,
|
|
673
|
+
};
|
|
674
|
+
const INDEXING_SCHEMAS = {
|
|
675
|
+
StartProjectReindexPayload: StartProjectReindexPayloadSchema,
|
|
676
|
+
ReindexAgentRunsResponse: ReindexAgentRunsResponseSchema,
|
|
677
|
+
ReindexAgentRunsPayload: ReindexAgentRunsPayloadSchema,
|
|
678
|
+
IndexingStatusResponse: IndexingStatusResponseSchema,
|
|
679
|
+
DriftAnalysisResult: DriftAnalysisResultSchema,
|
|
680
|
+
DriftAnalysisProgress: DriftAnalysisProgressSchema,
|
|
681
|
+
DriftAnalysisStatusResponse: DriftAnalysisStatusResponseSchema,
|
|
682
|
+
};
|
|
683
|
+
const EMBEDDING_ADMIN_SCHEMAS = {
|
|
684
|
+
EmbeddingsStatusResponse: EmbeddingsStatusResponseSchema,
|
|
685
|
+
ProjectConfigurationEmbeddingEnablePayload: ProjectConfigurationEmbeddingEnablePayloadSchema,
|
|
686
|
+
};
|
|
687
|
+
const COMMAND_SCHEMAS = {
|
|
688
|
+
GenericCommandResponse: GenericCommandResponseSchema,
|
|
689
|
+
};
|
|
690
|
+
const PROCESS_DSL_SCHEMAS = {
|
|
691
|
+
DurationValue: ProcessSchemas.DurationValueSchema,
|
|
692
|
+
JsonLogicRule: ProcessSchemas.JsonLogicRuleSchema,
|
|
693
|
+
DSLWorkflowDefinition: ProcessSchemas.DSLWorkflowDefinitionSchema,
|
|
694
|
+
ActivityFetchSpec: ProcessSchemas.ActivityFetchSpecSchema,
|
|
695
|
+
WorkflowSearchAttributeValue: ProcessSchemas.WorkflowSearchAttributeValueSchema,
|
|
696
|
+
DSLRetryPolicy: ProcessSchemas.DSLRetryPolicySchema,
|
|
697
|
+
ActivityFetchSpecMap: ProcessSchemas.ActivityFetchSpecMapSchema,
|
|
698
|
+
WorkflowSearchAttributeValueMap: ProcessSchemas.WorkflowSearchAttributeValueMapSchema,
|
|
699
|
+
DSLActivityOptions: ProcessSchemas.DSLActivityOptionsSchema,
|
|
700
|
+
DSLActivitySpec: ProcessSchemas.DSLActivitySpecSchema,
|
|
701
|
+
WorkflowSearchAttributes: ProcessSchemas.WorkflowSearchAttributesSchema,
|
|
702
|
+
DSLActivityStep: ProcessSchemas.DSLActivityStepSchema,
|
|
703
|
+
DSLChildWorkflowStep: ProcessSchemas.DSLChildWorkflowStepSchema,
|
|
704
|
+
DSLWorkflowDefinitionResponse: ProcessSchemas.DSLWorkflowDefinitionResponseSchema,
|
|
705
|
+
DSLWorkflowSpec: ProcessSchemas.DSLWorkflowSpecSchema,
|
|
706
|
+
DSLWorkflowSpecWithActivities: ProcessSchemas.DSLWorkflowSpecWithActivitiesSchema,
|
|
707
|
+
DSLWorkflowSpecWithSteps: ProcessSchemas.DSLWorkflowSpecWithStepsSchema,
|
|
708
|
+
DSLWorkflowStep: ProcessSchemas.DSLWorkflowStepSchema,
|
|
709
|
+
WorkflowDefinitionPayload: ProcessSchemas.WorkflowDefinitionPayloadSchema,
|
|
710
|
+
WorkflowDefinitionPayloadWithActivities: ProcessSchemas.WorkflowDefinitionPayloadWithActivitiesSchema,
|
|
711
|
+
WorkflowDefinitionPayloadWithSteps: ProcessSchemas.WorkflowDefinitionPayloadWithStepsSchema,
|
|
712
|
+
};
|
|
713
|
+
const AGENT_MESSAGE_SCHEMAS = {
|
|
714
|
+
AgentMessageType: AgentRunSchemas.AgentMessageTypeSchema,
|
|
715
|
+
ConversationFile: AgentRunSchemas.ConversationFileSchema,
|
|
716
|
+
AgentMessageDetails: AgentRunSchemas.AgentMessageDetailsSchema,
|
|
717
|
+
CompactMessage: AgentRunSchemas.CompactMessageSchema,
|
|
718
|
+
};
|
|
719
|
+
const PROCESS_DEFINITION_SCHEMAS = {
|
|
720
|
+
ProcessDefinitionMetadata: ProcessSchemas.ProcessDefinitionMetadataSchema,
|
|
721
|
+
BranchJoinPolicy: ProcessSchemas.BranchJoinPolicySchema,
|
|
722
|
+
ParallelFailurePolicy: ProcessSchemas.ParallelFailurePolicySchema,
|
|
723
|
+
ParallelCollectField: ProcessSchemas.ParallelCollectFieldSchema,
|
|
724
|
+
ParallelCollectMode: ProcessSchemas.ParallelCollectModeSchema,
|
|
725
|
+
HumanTaskDefinition: ProcessSchemas.HumanTaskDefinitionSchema,
|
|
726
|
+
TransitionTrigger: ProcessSchemas.TransitionTriggerSchema,
|
|
727
|
+
ProcessNodeReturnsDefinition: ProcessSchemas.ProcessNodeReturnsDefinitionSchema,
|
|
728
|
+
ProcessNodeRunType: ProcessSchemas.ProcessNodeRunTypeSchema,
|
|
729
|
+
ProcessNodeType: ProcessSchemas.ProcessNodeTypeSchema,
|
|
730
|
+
ProcessContextDefinition: ProcessSchemas.ProcessContextDefinitionSchema,
|
|
731
|
+
ProcessDefinitionFormatVersion: ProcessSchemas.ProcessDefinitionFormatVersionSchema,
|
|
732
|
+
ProcessDefinitionStatus: ProcessSchemas.ProcessDefinitionStatusSchema,
|
|
733
|
+
RevertProcessDefinitionPayload: ProcessSchemas.RevertProcessDefinitionPayloadSchema,
|
|
734
|
+
RetryProcessNodePayload: ProcessSchemas.RetryProcessNodePayloadSchema,
|
|
735
|
+
PublishProcessDefinitionPayload: ProcessSchemas.PublishProcessDefinitionPayloadSchema,
|
|
736
|
+
ProcessDefinitionRevisionInfo: ProcessSchemas.ProcessDefinitionRevisionInfoSchema,
|
|
737
|
+
NodeHistoryEntry: ProcessSchemas.NodeHistoryEntrySchema,
|
|
738
|
+
BranchDefinition: ProcessSchemas.BranchDefinitionSchema,
|
|
739
|
+
ParallelCollectDefinition: ProcessSchemas.ParallelCollectDefinitionSchema,
|
|
740
|
+
TransitionDefinition: ProcessSchemas.TransitionDefinitionSchema,
|
|
741
|
+
BranchNodeBranchDefinition: ProcessSchemas.BranchNodeBranchDefinitionSchema,
|
|
742
|
+
CreateProcessDefinitionPayload: ProcessSchemas.CreateProcessDefinitionPayloadSchema,
|
|
743
|
+
NodeDefinition: ProcessSchemas.NodeDefinitionSchema,
|
|
744
|
+
NodeDefinitionMap: ProcessSchemas.NodeDefinitionMapSchema,
|
|
745
|
+
ProcessDefinition: ProcessSchemas.ProcessDefinitionSchema,
|
|
746
|
+
ProcessDefinitionArray: ProcessSchemas.ProcessDefinitionArraySchema,
|
|
747
|
+
ProcessDefinitionBody: ProcessSchemas.ProcessDefinitionBodySchema,
|
|
748
|
+
UpdateProcessDefinitionPayload: ProcessSchemas.UpdateProcessDefinitionPayloadSchema,
|
|
749
|
+
ListProcessDefinitionsQuery: ProcessSchemas.ListProcessDefinitionsQuerySchema,
|
|
750
|
+
};
|
|
751
|
+
const PROCESS_SCRIPT_SCHEMAS = {
|
|
752
|
+
ProcessScriptInlineSource: ProcessSchemas.ProcessScriptInlineSourceSchema,
|
|
753
|
+
ProcessScriptLanguage: ProcessSchemas.ProcessScriptLanguageSchema,
|
|
754
|
+
ProcessScriptSource: ProcessSchemas.ProcessScriptSourceSchema,
|
|
755
|
+
ProcessScriptResource: ProcessSchemas.ProcessScriptResourceSchema,
|
|
756
|
+
ProcessScriptResourceMap: ProcessSchemas.ProcessScriptResourceMapSchema,
|
|
757
|
+
ProcessResourcesDefinition: ProcessSchemas.ProcessResourcesDefinitionSchema,
|
|
758
|
+
};
|
|
759
|
+
const CONTENT_OBJECT_SCHEMAS = {
|
|
760
|
+
GenerationRunMetadata: ContentSchemas.GenerationRunMetadataSchema,
|
|
761
|
+
ContentObjectUserPermissions: ContentSchemas.ContentObjectUserPermissionsSchema,
|
|
762
|
+
ContentSource: ContentSchemas.ContentSourceSchema,
|
|
763
|
+
ContentObjectStatus: ContentSchemas.ContentObjectStatusSchema,
|
|
764
|
+
InheritedPropertyMetadata: ContentSchemas.InheritedPropertyMetadataSchema,
|
|
765
|
+
TranscriptSegment: ContentSchemas.TranscriptSegmentSchema,
|
|
766
|
+
ContentObjectTypeArray: ContentSchemas.ContentObjectTypeArraySchema,
|
|
767
|
+
ContentObjectTextResponse: ContentSchemas.ContentObjectTextResponseSchema,
|
|
768
|
+
DeleteContentObjectResult: ContentSchemas.DeleteContentObjectResultSchema,
|
|
769
|
+
Transcript: ContentSchemas.TranscriptSchema,
|
|
770
|
+
CreateContentObjectPayload: ContentSchemas.CreateContentObjectPayloadSchema,
|
|
771
|
+
UpdateContentObjectPayload: ContentSchemas.UpdateContentObjectPayloadSchema,
|
|
772
|
+
ContentObjectApiTypeRef: ContentSchemas.ContentObjectApiTypeRefSchema,
|
|
773
|
+
ContentObjectApiResponse: ContentSchemas.ContentObjectApiResponseSchema,
|
|
774
|
+
ContentObjectItemApiResponse: ContentSchemas.ContentObjectItemApiResponseSchema,
|
|
775
|
+
ContentObjectItemApiResponseArray: ContentSchemas.ContentObjectItemApiResponseArraySchema,
|
|
776
|
+
ContentObjectProcessingPriority: ContentSchemas.ContentObjectProcessingPrioritySchema,
|
|
777
|
+
ContentObjectApiResponseArray: ContentSchemas.ContentObjectApiResponseArraySchema,
|
|
778
|
+
CreateContentObjectHeaders: ContentSchemas.CreateContentObjectHeadersSchema,
|
|
779
|
+
CreateContentObjectQuery: ContentSchemas.CreateContentObjectQuerySchema,
|
|
780
|
+
UpdateContentObjectHeaders: ContentSchemas.UpdateContentObjectHeadersSchema,
|
|
781
|
+
UpdateContentObjectQuery: ContentSchemas.UpdateContentObjectQuerySchema,
|
|
782
|
+
};
|
|
783
|
+
const CONTENT_EXPORT_SCHEMAS = {
|
|
784
|
+
RevisionInfo: ContentSchemas.RevisionInfoSchema,
|
|
785
|
+
StartContentObjectExportResponse: ContentSchemas.StartContentObjectExportResponseSchema,
|
|
786
|
+
ExportContentObjectsIncludeOptions: ContentSchemas.ExportContentObjectsIncludeOptionsSchema,
|
|
787
|
+
ExportContentObjectsFilter: ContentSchemas.ExportContentObjectsFilterSchema,
|
|
788
|
+
ContentObjectApiRevision: ContentSchemas.ContentObjectApiRevisionSchema,
|
|
789
|
+
ContentObjectExportArtifactFile: ContentSchemas.ContentObjectExportArtifactFileSchema,
|
|
790
|
+
GetRenditionResponse: ContentSchemas.GetRenditionResponseSchema,
|
|
791
|
+
ContentObjectExportResult: ContentSchemas.ContentObjectExportResultSchema,
|
|
792
|
+
ContentObjectExportProgress: ContentSchemas.ContentObjectExportProgressSchema,
|
|
793
|
+
ExportPropertiesResponse: ContentSchemas.ExportPropertiesResponseSchema,
|
|
794
|
+
DeleteContentObjectExportResponse: ContentSchemas.DeleteContentObjectExportResponseSchema,
|
|
795
|
+
StartContentObjectExportRequest: ContentSchemas.StartContentObjectExportRequestSchema,
|
|
796
|
+
ContentObjectExportArtifact: ContentSchemas.ContentObjectExportArtifactSchema,
|
|
797
|
+
ContentObjectExportStatusResponse: ContentSchemas.ContentObjectExportStatusResponseSchema,
|
|
798
|
+
ListContentObjectExportsResponse: ContentSchemas.ListContentObjectExportsResponseSchema,
|
|
799
|
+
ExportPropertiesPayload: ContentSchemas.ExportPropertiesPayloadSchema,
|
|
800
|
+
CostExportCsvResponse: ContentSchemas.CostExportCsvResponseSchema,
|
|
801
|
+
GetObjectRenditionQuery: ContentSchemas.GetObjectRenditionQuerySchema,
|
|
802
|
+
};
|
|
803
|
+
const CONTENT_SEARCH_SCHEMAS = {
|
|
804
|
+
scoreAggregationTypes: ContentSchemas.scoreAggregationTypesSchema,
|
|
805
|
+
dynamicScalingTypes: ContentSchemas.dynamicScalingTypesSchema,
|
|
806
|
+
Embedding: ContentSchemas.EmbeddingSchema,
|
|
807
|
+
SupportedEmbeddingTypes: ContentSchemas.SupportedEmbeddingTypesSchema,
|
|
808
|
+
SetObjectEmbeddingsResponse: ContentSchemas.SetObjectEmbeddingsResponseSchema,
|
|
809
|
+
Record_SearchTypes_number: ContentSchemas.Record_SearchTypes_numberSchema,
|
|
810
|
+
EmbeddingSearchConfig: ContentSchemas.EmbeddingSearchConfigSchema,
|
|
811
|
+
EmbeddingMap: ContentSchemas.EmbeddingMapSchema,
|
|
812
|
+
FindPayload: ContentSchemas.FindPayloadSchema,
|
|
813
|
+
ContentEmbeddingMap: ContentSchemas.ContentEmbeddingMapSchema,
|
|
814
|
+
VectorSearchQuery: ContentSchemas.VectorSearchQuerySchema,
|
|
815
|
+
ComplexSearchQuery: ContentSchemas.ComplexSearchQuerySchema,
|
|
816
|
+
ComputeObjectFacetPayload: ContentSchemas.ComputeObjectFacetPayloadSchema,
|
|
817
|
+
ComplexSearchPayload: ContentSchemas.ComplexSearchPayloadSchema,
|
|
818
|
+
ObjectSearchResponse: ContentSchemas.ObjectSearchResponseSchema,
|
|
819
|
+
};
|
|
820
|
+
const EVENT_SUBSCRIPTION_SCHEMAS = {
|
|
821
|
+
EventPriority: EventSchemas.EventPrioritySchema,
|
|
822
|
+
WorkflowRuleInputType: EventSchemas.WorkflowRuleInputTypeSchema,
|
|
823
|
+
WorkflowRuleItem: EventSchemas.WorkflowRuleItemSchema,
|
|
824
|
+
WorkflowRule: EventSchemas.WorkflowRuleSchema,
|
|
825
|
+
CreateWorkflowRulePayload: EventSchemas.CreateWorkflowRulePayloadSchema,
|
|
826
|
+
UpdateWorkflowRulePayload: EventSchemas.UpdateWorkflowRulePayloadSchema,
|
|
827
|
+
ListEventDeliveriesPayload: EventSchemas.ListEventDeliveriesPayloadSchema,
|
|
828
|
+
WorkflowRuleItemArray: EventSchemas.WorkflowRuleItemArraySchema,
|
|
829
|
+
EventSubscriptionFilter: EventSchemas.EventSubscriptionFilterSchema,
|
|
830
|
+
ListEventDeliveriesResponse: EventSchemas.ListEventDeliveriesResponseSchema,
|
|
831
|
+
CreateEventSubscriptionPayload: EventSchemas.CreateEventSubscriptionPayloadSchema,
|
|
832
|
+
EventSubscription: EventSchemas.EventSubscriptionSchema,
|
|
833
|
+
EventSubscriptionArray: EventSchemas.EventSubscriptionArraySchema,
|
|
834
|
+
EventSubscriptionMutationResponse: EventSchemas.EventSubscriptionMutationResponseSchema,
|
|
835
|
+
UpdateEventSubscriptionPayload: EventSchemas.UpdateEventSubscriptionPayloadSchema,
|
|
836
|
+
ServerSentEventsResponse: EventSchemas.ServerSentEventsResponseSchema,
|
|
837
|
+
StreamEventDeliveriesQuery: EventSchemas.StreamEventDeliveriesQuerySchema,
|
|
838
|
+
};
|
|
839
|
+
const PROCESS_RUNTIME_SCHEMAS = {
|
|
840
|
+
ProcessRunType: ProcessSchemas.ProcessRunTypeSchema,
|
|
841
|
+
ProcessRunConfig: ProcessSchemas.ProcessRunConfigSchema,
|
|
842
|
+
ProcessHistoryRef: ProcessSchemas.ProcessHistoryRefSchema,
|
|
843
|
+
ProcessHistoryResponse: ProcessSchemas.ProcessHistoryResponseSchema,
|
|
844
|
+
ProcessContextResponse: ProcessSchemas.ProcessContextResponseSchema,
|
|
845
|
+
WorkflowExecutionStartResult: ProcessSchemas.WorkflowExecutionStartResultSchema,
|
|
846
|
+
ImportSpec: ProcessSchemas.ImportSpecSchema,
|
|
847
|
+
AnswerProcessTaskPayload: ProcessSchemas.AnswerProcessTaskPayloadSchema,
|
|
848
|
+
AdvanceProcessPayload: ProcessSchemas.AdvanceProcessPayloadSchema,
|
|
849
|
+
ProcessState: ProcessSchemas.ProcessStateSchema,
|
|
850
|
+
WorkflowExecutionStartResultArray: ProcessSchemas.WorkflowExecutionStartResultArraySchema,
|
|
851
|
+
RecordProcessRunPayload: ProcessSchemas.RecordProcessRunPayloadSchema,
|
|
852
|
+
};
|
|
853
|
+
const EVENT_DELIVERY_SCHEMAS = {
|
|
854
|
+
AgentDeliveryMatchMode: EventSchemas.AgentDeliveryMatchModeSchema,
|
|
855
|
+
WebhookPayloadMode: EventSchemas.WebhookPayloadModeSchema,
|
|
856
|
+
WebhookSigningMode: EventSchemas.WebhookSigningModeSchema,
|
|
857
|
+
SemanticConditionOnError: EventSchemas.SemanticConditionOnErrorSchema,
|
|
858
|
+
SemanticConditionMode: EventSchemas.SemanticConditionModeSchema,
|
|
859
|
+
AgentSemanticEvaluator: EventSchemas.AgentSemanticEvaluatorSchema,
|
|
860
|
+
InteractionSemanticEvaluator: EventSchemas.InteractionSemanticEvaluatorSchema,
|
|
861
|
+
SemanticEvaluationStatus: EventSchemas.SemanticEvaluationStatusSchema,
|
|
862
|
+
EventDeliveryIntentStatus: EventSchemas.EventDeliveryIntentStatusSchema,
|
|
863
|
+
EventOutboxStatus: EventSchemas.EventOutboxStatusSchema,
|
|
864
|
+
EventDeliverySortField: EventSchemas.EventDeliverySortFieldSchema,
|
|
865
|
+
WebhookEventDeliveryTarget: EventSchemas.WebhookEventDeliveryTargetSchema,
|
|
866
|
+
WorkflowEventDeliveryTarget: EventSchemas.WorkflowEventDeliveryTargetSchema,
|
|
867
|
+
EventDeliveryQueueFailureSummary: EventSchemas.EventDeliveryQueueFailureSummarySchema,
|
|
868
|
+
EventOutboxQueueSummary: EventSchemas.EventOutboxQueueSummarySchema,
|
|
869
|
+
EventDeliveryQueueSortField: EventSchemas.EventDeliveryQueueSortFieldSchema,
|
|
870
|
+
AgentEventDeliveryTarget: EventSchemas.AgentEventDeliveryTargetSchema,
|
|
871
|
+
WebhookEventDeliveryTargetInput: EventSchemas.WebhookEventDeliveryTargetInputSchema,
|
|
872
|
+
WorkflowEventDeliveryTargetInput: EventSchemas.WorkflowEventDeliveryTargetInputSchema,
|
|
873
|
+
SemanticEvaluator: EventSchemas.SemanticEvaluatorSchema,
|
|
874
|
+
SemanticEvaluationRecord: EventSchemas.SemanticEvaluationRecordSchema,
|
|
875
|
+
EventDeliveryQueueSubscriptionSummary: EventSchemas.EventDeliveryQueueSubscriptionSummarySchema,
|
|
876
|
+
EventDeliveryQueueSummaryPayload: EventSchemas.EventDeliveryQueueSummaryPayloadSchema,
|
|
877
|
+
EventSemanticCondition: EventSchemas.EventSemanticConditionSchema,
|
|
878
|
+
EventDeliveryIntentSummary: EventSchemas.EventDeliveryIntentSummarySchema,
|
|
879
|
+
EventDeliveryQueueSummaryResponse: EventSchemas.EventDeliveryQueueSummaryResponseSchema,
|
|
880
|
+
EventDeliverySummary: EventSchemas.EventDeliverySummarySchema,
|
|
881
|
+
EventDeliveryTarget: EventSchemas.EventDeliveryTargetSchema,
|
|
882
|
+
EventDeliveryTargetInput: EventSchemas.EventDeliveryTargetInputSchema,
|
|
883
|
+
ProcessEventDeliveryTarget: EventSchemas.ProcessEventDeliveryTargetSchema,
|
|
884
|
+
};
|
|
885
|
+
const EVENT_INGEST_SCHEMAS = {
|
|
886
|
+
EventIngestSignatureEncoding: EventSchemas.EventIngestSignatureEncodingSchema,
|
|
887
|
+
EventIngestSignatureAlgorithm: EventSchemas.EventIngestSignatureAlgorithmSchema,
|
|
888
|
+
EventIngestResourceRule: EventSchemas.EventIngestResourceRuleSchema,
|
|
889
|
+
EventIngestSignatureConfig: EventSchemas.EventIngestSignatureConfigSchema,
|
|
890
|
+
EventIngestTransform: EventSchemas.EventIngestTransformSchema,
|
|
891
|
+
EventIngestChannel: EventSchemas.EventIngestChannelSchema,
|
|
892
|
+
EventIngestChannelMutationResponse: EventSchemas.EventIngestChannelMutationResponseSchema,
|
|
893
|
+
CreateEventIngestChannelPayload: EventSchemas.CreateEventIngestChannelPayloadSchema,
|
|
894
|
+
UpdateEventIngestChannelPayload: EventSchemas.UpdateEventIngestChannelPayloadSchema,
|
|
895
|
+
EventIngestChannelArray: EventSchemas.EventIngestChannelArraySchema,
|
|
896
|
+
};
|
|
897
|
+
const COLLECTION_SCHEMAS = {
|
|
898
|
+
CollectionSecuritySettingsResponse: ContentSchemas.CollectionSecuritySettingsResponseSchema,
|
|
899
|
+
CollectionMembersUpdateResult: ContentSchemas.CollectionMembersUpdateResultSchema,
|
|
900
|
+
CollectionMembersUpdatePayload: ContentSchemas.CollectionMembersUpdatePayloadSchema,
|
|
901
|
+
CollectionChildrenUpdateResult: ContentSchemas.CollectionChildrenUpdateResultSchema,
|
|
902
|
+
CollectionChildrenUpdatePayload: ContentSchemas.CollectionChildrenUpdatePayloadSchema,
|
|
903
|
+
CollectionStatus: ContentSchemas.CollectionStatusSchema,
|
|
904
|
+
CollectionPropagationResponse: ContentSchemas.CollectionPropagationResponseSchema,
|
|
905
|
+
CreateCollectionPayload: ContentSchemas.CreateCollectionPayloadSchema,
|
|
906
|
+
UpdateCollectionPayload: ContentSchemas.UpdateCollectionPayloadSchema,
|
|
907
|
+
ComplexCollectionSearchQuery: ContentSchemas.ComplexCollectionSearchQuerySchema,
|
|
908
|
+
Collection: ContentSchemas.CollectionSchema,
|
|
909
|
+
ComputeCollectionFacetPayload: ContentSchemas.ComputeCollectionFacetPayloadSchema,
|
|
910
|
+
CollectionArray: ContentSchemas.CollectionArraySchema,
|
|
911
|
+
CollectionMembersQuery: ContentSchemas.CollectionMembersQuerySchema,
|
|
912
|
+
};
|
|
913
|
+
const AGENT_ARTIFACT_SCHEMAS = {
|
|
914
|
+
UpdateAgentArtifactContentResponse: AgentRunSchemas.UpdateAgentArtifactContentResponseSchema,
|
|
915
|
+
UpdateAgentArtifactContentPayload: AgentRunSchemas.UpdateAgentArtifactContentPayloadSchema,
|
|
916
|
+
AgentArtifactContentResponse: AgentRunSchemas.AgentArtifactContentResponseSchema,
|
|
917
|
+
AgentArtifactUrlResponse: AgentRunSchemas.AgentArtifactUrlResponseSchema,
|
|
918
|
+
AgentRunArtifactPathArray: AgentRunSchemas.AgentRunArtifactPathArraySchema,
|
|
919
|
+
AgentRunArtifactUploadHeaders: AgentRunSchemas.AgentRunArtifactUploadHeadersSchema,
|
|
920
|
+
AgentRunArtifactQuery: AgentRunSchemas.AgentRunArtifactQuerySchema,
|
|
921
|
+
AgentRunArtifactsQuery: AgentRunSchemas.AgentRunArtifactsQuerySchema,
|
|
922
|
+
};
|
|
923
|
+
const AGENT_RUN_SCHEMAS = {
|
|
924
|
+
TerminateAgentRunResponse: AgentRunSchemas.TerminateAgentRunResponseSchema,
|
|
925
|
+
SignalAgentPayload: AgentRunSchemas.SignalAgentPayloadSchema,
|
|
926
|
+
PostAgentRunUpdateResponse: AgentRunSchemas.PostAgentRunUpdateResponseSchema,
|
|
927
|
+
FileProcessingStatus: AgentRunSchemas.FileProcessingStatusSchema,
|
|
928
|
+
AgentRunArchiveState: AgentRunSchemas.AgentRunArchiveStateSchema,
|
|
929
|
+
ResourceRef: AgentRunSchemas.ResourceRefSchema,
|
|
930
|
+
SignalAgentResponse: AgentRunSchemas.SignalAgentResponseSchema,
|
|
931
|
+
AutonomousRunResponse: AgentRunSchemas.AutonomousRunResponseSchema,
|
|
932
|
+
AgentRun: AgentRunSchemas.AgentRunSchema,
|
|
933
|
+
CreateAgentRunPayload: AgentRunSchemas.CreateAgentRunPayloadSchema,
|
|
934
|
+
CreateProcessRunByIdPayload: AgentRunSchemas.CreateProcessRunByIdPayloadSchema,
|
|
935
|
+
CreateProcessRunWithDefinitionPayload: AgentRunSchemas.CreateProcessRunWithDefinitionPayloadSchema,
|
|
936
|
+
CreateRunPayload: AgentRunSchemas.CreateRunPayloadSchema,
|
|
937
|
+
SearchAgentRunsResponse: AgentRunSchemas.SearchAgentRunsResponseSchema,
|
|
938
|
+
AgentRunUpdatesResponse: AgentRunSchemas.AgentRunUpdatesResponseSchema,
|
|
939
|
+
PostAgentRunUpdatePayload: AgentRunSchemas.PostAgentRunUpdatePayloadSchema,
|
|
940
|
+
AgentRunResponse: AgentRunSchemas.AgentRunResponseSchema,
|
|
941
|
+
ListAgentRunsResponse: AgentRunSchemas.ListAgentRunsResponseSchema,
|
|
942
|
+
ProgrammaticRunResponse: AgentRunSchemas.ProgrammaticRunResponseSchema,
|
|
943
|
+
SupervisedRunResponse: AgentRunSchemas.SupervisedRunResponseSchema,
|
|
944
|
+
AgentRunInternals: AgentRunSchemas.AgentRunInternalsSchema,
|
|
945
|
+
AgentRunDetailsQuery: AgentRunSchemas.AgentRunDetailsQuerySchema,
|
|
946
|
+
ListAgentRunsQuery: AgentRunSchemas.ListAgentRunsQuerySchema,
|
|
947
|
+
RecordAgentRunPayload: AgentRunSchemas.RecordAgentRunPayloadSchema,
|
|
948
|
+
RecordRunPayload: AgentRunSchemas.RecordRunPayloadSchema,
|
|
949
|
+
AgentRunUpdatesQuery: AgentRunSchemas.AgentRunUpdatesQuerySchema,
|
|
950
|
+
SearchAgentRunsQuery: AgentRunSchemas.SearchAgentRunsQuerySchema,
|
|
951
|
+
StreamAgentRunQuery: AgentRunSchemas.StreamAgentRunQuerySchema,
|
|
952
|
+
UpdateAgentRunStatusPayload: AgentRunSchemas.UpdateAgentRunStatusPayloadSchema,
|
|
953
|
+
AgentEvent: AgentRunSchemas.AgentEventSchema,
|
|
954
|
+
IngestAgentEventsPayload: AgentRunSchemas.IngestAgentEventsPayloadSchema,
|
|
955
|
+
IngestAgentEventsResponse: AgentRunSchemas.IngestAgentEventsResponseSchema,
|
|
956
|
+
};
|
|
957
|
+
const WORKFLOW_RUN_SCHEMAS = {
|
|
958
|
+
WorkflowQueryResult: WorkflowRunSchemas.WorkflowQueryResultSchema,
|
|
959
|
+
WorkflowUpdatePublishResponse: WorkflowRunSchemas.WorkflowUpdatePublishResponseSchema,
|
|
960
|
+
ListWorkflowRunsPayload: WorkflowRunSchemas.ListWorkflowRunsPayloadSchema,
|
|
961
|
+
WorkflowDefinitionRef: WorkflowRunSchemas.WorkflowDefinitionRefSchema,
|
|
962
|
+
WorkflowRun: WorkflowRunSchemas.WorkflowRunSchema,
|
|
963
|
+
EventError: WorkflowRunSchemas.EventErrorSchema,
|
|
964
|
+
SignalEventProperties: WorkflowRunSchemas.SignalEventPropertiesSchema,
|
|
965
|
+
WorkflowInputFile: WorkflowRunSchemas.WorkflowInputFileSchema,
|
|
966
|
+
WorkflowActionResponse: WorkflowRunSchemas.WorkflowActionResponseSchema,
|
|
967
|
+
WorkflowDefinitionRefArray: WorkflowRunSchemas.WorkflowDefinitionRefArraySchema,
|
|
968
|
+
ListWorkflowRunsResponse: WorkflowRunSchemas.ListWorkflowRunsResponseSchema,
|
|
969
|
+
WorkflowRunEvent: WorkflowRunSchemas.WorkflowRunEventSchema,
|
|
970
|
+
WorkflowInput: WorkflowRunSchemas.WorkflowInputSchema,
|
|
971
|
+
WorkflowRunUpdatesResponse: WorkflowRunSchemas.WorkflowRunUpdatesResponseSchema,
|
|
972
|
+
ExecuteWorkflowPayload: WorkflowRunSchemas.ExecuteWorkflowPayloadSchema,
|
|
973
|
+
WorkflowHistory: WorkflowRunSchemas.WorkflowHistorySchema,
|
|
974
|
+
WorkflowRunWithDetails: WorkflowRunSchemas.WorkflowRunWithDetailsSchema,
|
|
975
|
+
BindRunWorkflowPayload: WorkflowRunSchemas.BindRunWorkflowPayloadSchema,
|
|
976
|
+
WorkflowRunDetailsQuery: WorkflowRunSchemas.WorkflowRunDetailsQuerySchema,
|
|
977
|
+
WorkflowRunUpdatesQuery: WorkflowRunSchemas.WorkflowRunUpdatesQuerySchema,
|
|
978
|
+
WorkflowRunStreamQuery: WorkflowRunSchemas.WorkflowRunStreamQuerySchema,
|
|
979
|
+
ActivityTypeDefinition: WorkflowRunSchemas.ActivityTypeDefinitionSchema,
|
|
980
|
+
ActivityPropertyDefinition: WorkflowRunSchemas.ActivityPropertyDefinitionSchema,
|
|
981
|
+
ActivityDefinition: WorkflowRunSchemas.ActivityDefinitionSchema,
|
|
982
|
+
ActivityCatalog: WorkflowRunSchemas.ActivityCatalogSchema,
|
|
983
|
+
WorkflowInteractionVars: WorkflowRunSchemas.WorkflowInteractionVarsSchema,
|
|
984
|
+
ListWorkflowInteractionsResponse: WorkflowRunSchemas.ListWorkflowInteractionsResponseSchema,
|
|
985
|
+
};
|
|
986
|
+
const WORKFLOW_TASK_SCHEMAS = {
|
|
987
|
+
RestartAgentRunPayload: WorkflowRunSchemas.RestartAgentRunPayloadSchema,
|
|
988
|
+
TaskType_TIMER: WorkflowRunSchemas.TaskType_TIMERSchema,
|
|
989
|
+
TaskType_SIGNAL: WorkflowRunSchemas.TaskType_SIGNALSchema,
|
|
990
|
+
TaskType_CHILD_WORKFLOW: WorkflowRunSchemas.TaskType_CHILD_WORKFLOWSchema,
|
|
991
|
+
TaskType_ACTIVITY: WorkflowRunSchemas.TaskType_ACTIVITYSchema,
|
|
992
|
+
PendingActivity: WorkflowRunSchemas.PendingActivitySchema,
|
|
993
|
+
AgentTask: WorkflowRunSchemas.AgentTaskSchema,
|
|
994
|
+
TaskStatus: WorkflowRunSchemas.TaskStatusSchema,
|
|
995
|
+
TimerTask: WorkflowRunSchemas.TimerTaskSchema,
|
|
996
|
+
SignalTask: WorkflowRunSchemas.SignalTaskSchema,
|
|
997
|
+
ChildWorkflowTask: WorkflowRunSchemas.ChildWorkflowTaskSchema,
|
|
998
|
+
ActivityTask: WorkflowRunSchemas.ActivityTaskSchema,
|
|
999
|
+
WorkflowTask: WorkflowRunSchemas.WorkflowTaskSchema,
|
|
1000
|
+
};
|
|
1001
|
+
const VIEW_EXECUTION_SCHEMAS = {
|
|
1002
|
+
ViewNavigationNode: ViewExecutionSchemas.ViewNavigationNodeSchema,
|
|
1003
|
+
ViewHitAnnotation: ViewExecutionSchemas.ViewHitAnnotationSchema,
|
|
1004
|
+
ViewExecutionWarning: ViewExecutionSchemas.ViewExecutionWarningSchema,
|
|
1005
|
+
ViewQueryPlanningFailureCode: ViewExecutionSchemas.ViewQueryPlanningFailureCodeSchema,
|
|
1006
|
+
ExecuteViewRequest: ViewExecutionSchemas.ExecuteViewRequestSchema,
|
|
1007
|
+
ViewNavigationResult: ViewExecutionSchemas.ViewNavigationResultSchema,
|
|
1008
|
+
ViewExecutionQueryPlan: ViewExecutionSchemas.ViewExecutionQueryPlanSchema,
|
|
1009
|
+
ViewExecutionSearchConfiguration: ViewExecutionSchemas.ViewExecutionSearchConfigurationSchema,
|
|
1010
|
+
ViewNavigationResultMap: ViewExecutionSchemas.ViewNavigationResultMapSchema,
|
|
1011
|
+
ViewExecutionSearchResult: ViewExecutionSchemas.ViewExecutionSearchResultSchema,
|
|
1012
|
+
ViewHit: ViewExecutionSchemas.ViewHitSchema,
|
|
1013
|
+
ViewExecutionDefinition: ViewExecutionSchemas.ViewExecutionDefinitionSchema,
|
|
1014
|
+
ViewExperienceConfiguration: ViewExecutionSchemas.ViewExperienceConfigurationSchema,
|
|
1015
|
+
ViewExecutionResult: ViewExecutionSchemas.ViewExecutionResultSchema,
|
|
1016
|
+
PreviewViewExperienceRequest: ViewExecutionSchemas.PreviewViewExperienceRequestSchema,
|
|
1017
|
+
};
|
|
1018
|
+
export function mergeComponentGroups(groups) {
|
|
1019
|
+
const merged = {};
|
|
1020
|
+
const duplicates = [];
|
|
1021
|
+
for (const group of groups) {
|
|
1022
|
+
for (const [name, schema] of Object.entries(group)) {
|
|
1023
|
+
if (name in merged) {
|
|
1024
|
+
duplicates.push(name);
|
|
1025
|
+
}
|
|
1026
|
+
merged[name] = schema;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
if (duplicates.length > 0) {
|
|
1030
|
+
throw new Error(`API component${duplicates.length > 1 ? 's' : ''} registered in more than one group: ` +
|
|
1031
|
+
`${duplicates.sort().join(', ')}. Each component must be listed in exactly one group — ` +
|
|
1032
|
+
'a duplicate makes the runtime schema and ApiComponentType disagree.');
|
|
1033
|
+
}
|
|
1034
|
+
return merged;
|
|
1035
|
+
}
|
|
1036
|
+
const PROMPT_AUTHORING_SCHEMAS = {
|
|
1037
|
+
// The prompt-authoring endpoints: fork, render, search and the interaction usages a prompt
|
|
1038
|
+
// reports. `PromptTemplate` itself and its write payloads live with the interactions, which is
|
|
1039
|
+
// where the prompt tree they reference is defined.
|
|
1040
|
+
RenderPromptPayload: RenderPromptPayloadSchema,
|
|
1041
|
+
RenderPromptResponse: RenderPromptResponseSchema,
|
|
1042
|
+
PromptTemplateInteractionVersion: PromptTemplateInteractionVersionSchema,
|
|
1043
|
+
PromptTemplateForkPayload: PromptTemplateForkPayloadSchema,
|
|
1044
|
+
PromptSearchQuery: PromptSearchQuerySchema,
|
|
1045
|
+
PromptTemplateInteractionUsage: PromptTemplateInteractionUsageSchema,
|
|
1046
|
+
ComputePromptFacetPayload: ComputePromptFacetPayloadSchema,
|
|
1047
|
+
PromptTemplateInteractionsResponse: PromptTemplateInteractionsResponseSchema,
|
|
1048
|
+
PromptTemplateRefArray: PromptTemplateRefArraySchema,
|
|
1049
|
+
};
|
|
1050
|
+
const PROJECT_TOOL_SCHEMAS = {
|
|
1051
|
+
// The unified project-scoped tool registry: what `GET /tools` aggregates across
|
|
1052
|
+
// builtins, installed apps and interactions, and what `POST /tools/validate` resolves.
|
|
1053
|
+
ToolSource: ToolSourceSchema,
|
|
1054
|
+
ValidateToolNamesPayload: ValidateToolNamesPayloadSchema,
|
|
1055
|
+
ToolValidationResult: ToolValidationResultSchema,
|
|
1056
|
+
AggregatedTool: AggregatedToolSchema,
|
|
1057
|
+
ValidateToolNamesResponse: ValidateToolNamesResponseSchema,
|
|
1058
|
+
AggregatedToolArray: AggregatedToolArraySchema,
|
|
1059
|
+
ListProjectToolsQuery: ListProjectToolsQuerySchema,
|
|
1060
|
+
};
|
|
1061
|
+
const REMOTE_MCP_SCHEMAS = {
|
|
1062
|
+
// The OAuth handshake a remote MCP tool collection performs. Grouped by the
|
|
1063
|
+
// endpoints that serve it, though the schemas live in `./apps.js` beside the installation
|
|
1064
|
+
// they belong to.
|
|
1065
|
+
MCPToolAnnotations: MCPToolAnnotationsSchema,
|
|
1066
|
+
McpOAuthTokenResponse: McpOAuthTokenResponseSchema,
|
|
1067
|
+
McpOAuthTokenRequest: McpOAuthTokenRequestSchema,
|
|
1068
|
+
OAuthAuthStatus: OAuthAuthStatusSchema,
|
|
1069
|
+
OAuthMetadataResponse: OAuthMetadataResponseSchema,
|
|
1070
|
+
McpOAuthDisconnectResponse: McpOAuthDisconnectResponseSchema,
|
|
1071
|
+
McpOAuthConnectResponse: McpOAuthConnectResponseSchema,
|
|
1072
|
+
OAuthAuthorizeResponse: OAuthAuthorizeResponseSchema,
|
|
1073
|
+
OAuthAuthStatusArray: OAuthAuthStatusArraySchema,
|
|
1074
|
+
};
|
|
1075
|
+
const AUDIT_TRAIL_SCHEMAS = {
|
|
1076
|
+
// The audit trail: the events the endpoint pages through and the aggregation it
|
|
1077
|
+
// computes over them.
|
|
1078
|
+
AuditMeter: AuditMeterSchema,
|
|
1079
|
+
KnownAuditAction: KnownAuditActionSchema,
|
|
1080
|
+
EventCategory: EventCategorySchema,
|
|
1081
|
+
AuditAggregationDimensionMap: AuditAggregationDimensionMapSchema,
|
|
1082
|
+
AuditAggregationDistinctField: AuditAggregationDistinctFieldSchema,
|
|
1083
|
+
AuditAggregationOperation: AuditAggregationOperationSchema,
|
|
1084
|
+
AuditAggregationResolution: AuditAggregationResolutionSchema,
|
|
1085
|
+
AuditAggregationDimension: AuditAggregationDimensionSchema,
|
|
1086
|
+
AuditAggregationDetailField: AuditAggregationDetailFieldSchema,
|
|
1087
|
+
AuditAction: AuditActionSchema,
|
|
1088
|
+
AuditAggregationRow: AuditAggregationRowSchema,
|
|
1089
|
+
AuditAggregationMetric: AuditAggregationMetricSchema,
|
|
1090
|
+
AuditAggregationGroup: AuditAggregationGroupSchema,
|
|
1091
|
+
AuditAggregationDetailFilter: AuditAggregationDetailFilterSchema,
|
|
1092
|
+
AuditTrailEvent: AuditTrailEventSchema,
|
|
1093
|
+
AuditAggregationResponse: AuditAggregationResponseSchema,
|
|
1094
|
+
AuditAggregationFilter: AuditAggregationFilterSchema,
|
|
1095
|
+
AuditTrailResponse: AuditTrailResponseSchema,
|
|
1096
|
+
AuditAggregationQuery: AuditAggregationQuerySchema,
|
|
1097
|
+
AuditTrailQuery: AuditTrailQuerySchema,
|
|
1098
|
+
};
|
|
1099
|
+
const VIEW_EXPERIENCE_SCHEMAS = {
|
|
1100
|
+
// View experiences: the search, navigation, results and display configuration a curated content
|
|
1101
|
+
// view is assembled from.
|
|
1102
|
+
ViewExperienceSchemaVersion: ViewExperienceSchemaVersionSchema,
|
|
1103
|
+
ViewSortClause: ViewSortClauseSchema,
|
|
1104
|
+
ViewResultMedia: ViewResultMediaSchema,
|
|
1105
|
+
ViewResultFieldFormat: ViewResultFieldFormatSchema,
|
|
1106
|
+
ViewBoardColumn: ViewBoardColumnSchema,
|
|
1107
|
+
ViewTableColumn: ViewTableColumnSchema,
|
|
1108
|
+
AgenticViewSearchConfiguration: AgenticViewSearchConfigurationSchema,
|
|
1109
|
+
ViewSearchFieldType: ViewSearchFieldTypeSchema,
|
|
1110
|
+
ViewSearchFieldDefinition: ViewSearchFieldDefinitionSchema,
|
|
1111
|
+
ViewRangeDefinition: ViewRangeDefinitionSchema,
|
|
1112
|
+
ViewHierarchyLevel: ViewHierarchyLevelSchema,
|
|
1113
|
+
ViewTermsNavigation: ViewTermsNavigationSchema,
|
|
1114
|
+
ViewCollectionNavigation: ViewCollectionNavigationSchema,
|
|
1115
|
+
ViewLocationNavigation: ViewLocationNavigationSchema,
|
|
1116
|
+
ViewElasticsearchQuery: ViewElasticsearchQuerySchema,
|
|
1117
|
+
ViewExperienceLayout: ViewExperienceLayoutSchema,
|
|
1118
|
+
ViewSortOption: ViewSortOptionSchema,
|
|
1119
|
+
ViewResultField: ViewResultFieldSchema,
|
|
1120
|
+
ViewTableDisplay: ViewTableDisplaySchema,
|
|
1121
|
+
ViewListDisplay: ViewListDisplaySchema,
|
|
1122
|
+
ViewKeyTermDefinition: ViewKeyTermDefinitionSchema,
|
|
1123
|
+
ViewRangeNavigation: ViewRangeNavigationSchema,
|
|
1124
|
+
ViewHierarchyNavigation: ViewHierarchyNavigationSchema,
|
|
1125
|
+
ViewExperienceScope: ViewExperienceScopeSchema,
|
|
1126
|
+
ViewBoardCardConfiguration: ViewBoardCardConfigurationSchema,
|
|
1127
|
+
ViewSearchConfiguration: ViewSearchConfigurationSchema,
|
|
1128
|
+
ViewNavigationItem: ViewNavigationItemSchema,
|
|
1129
|
+
ViewBoardDisplay: ViewBoardDisplaySchema,
|
|
1130
|
+
ViewCardsDisplay: ViewCardsDisplaySchema,
|
|
1131
|
+
ViewGalleryDisplay: ViewGalleryDisplaySchema,
|
|
1132
|
+
ViewDisplayConfiguration: ViewDisplayConfigurationSchema,
|
|
1133
|
+
ViewResultsConfiguration: ViewResultsConfigurationSchema,
|
|
1134
|
+
CreateViewExperienceRequest: CreateViewExperienceRequestSchema,
|
|
1135
|
+
ViewExperience: ViewExperienceSchema,
|
|
1136
|
+
UpdateViewExperienceRequest: UpdateViewExperienceRequestSchema,
|
|
1137
|
+
ViewExperienceArray: ViewExperienceArraySchema,
|
|
1138
|
+
ViewExperienceListQuery: ViewExperienceListQuerySchema,
|
|
1139
|
+
};
|
|
1140
|
+
/**
|
|
1141
|
+
* Every registered component, keyed by the name it publishes under.
|
|
1142
|
+
*
|
|
1143
|
+
* Annotated rather than inferred: the precise per-key types live on the groups above, and this
|
|
1144
|
+
* is only ever iterated, so widening the values here is what keeps the merged object from
|
|
1145
|
+
* re-creating the type the split exists to avoid.
|
|
1146
|
+
*/
|
|
1147
|
+
const APP_LIFECYCLE_SCHEMAS = {
|
|
1148
|
+
// What an app does once it exists: versions, builds, scaffolds, git repositories,
|
|
1149
|
+
// development tasks, installations and inspection.
|
|
1150
|
+
UpdateAppInstallationToolAllowlistPayload: UpdateAppInstallationToolAllowlistPayloadSchema,
|
|
1151
|
+
ValidateUrlResponse: ValidateUrlResponseSchema,
|
|
1152
|
+
ValidateUrlRequest: ValidateUrlRequestSchema,
|
|
1153
|
+
AppVersionUrls: AppVersionUrlsSchema,
|
|
1154
|
+
AppVersionGitRefType: AppVersionGitRefTypeSchema,
|
|
1155
|
+
AppVersionTarget: AppVersionTargetSchema,
|
|
1156
|
+
AppVersionState: AppVersionStateSchema,
|
|
1157
|
+
AppVersionKind: AppVersionKindSchema,
|
|
1158
|
+
StartAppScaffoldResponse: StartAppScaffoldResponseSchema,
|
|
1159
|
+
AppScaffoldModule: AppScaffoldModuleSchema,
|
|
1160
|
+
AppBuildTrigger: AppBuildTriggerSchema,
|
|
1161
|
+
Extract_AppVersionGitRefType_branch_tag_commit: Extract_AppVersionGitRefType_branch_tag_commitSchema,
|
|
1162
|
+
StartAppBuildResponse: StartAppBuildResponseSchema,
|
|
1163
|
+
AgentToolApprovalClass: AgentToolApprovalClassSchema,
|
|
1164
|
+
AppDevelopmentTask: AppDevelopmentTaskSchema,
|
|
1165
|
+
AppInstallationProviderBinding: AppInstallationProviderBindingSchema,
|
|
1166
|
+
AppInstallationOAuthBinding: AppInstallationOAuthBindingSchema,
|
|
1167
|
+
OAuthClientCredentials: OAuthClientCredentialsSchema,
|
|
1168
|
+
AppPackageScope: AppPackageScopeSchema,
|
|
1169
|
+
AppInspectionCapabilityReport: AppInspectionCapabilityReportSchema,
|
|
1170
|
+
AppScaffoldProgressStatus: AppScaffoldProgressStatusSchema,
|
|
1171
|
+
AppRepoTreeEntry: AppRepoTreeEntrySchema,
|
|
1172
|
+
AppRepoRef: AppRepoRefSchema,
|
|
1173
|
+
AppRepoCommit: AppRepoCommitSchema,
|
|
1174
|
+
AgentRunType: AgentRunTypeSchema,
|
|
1175
|
+
EventRef: EventRefSchema,
|
|
1176
|
+
InCodeTypeRef: InCodeTypeRefSchema,
|
|
1177
|
+
StoredTypeRef: StoredTypeRefSchema,
|
|
1178
|
+
ConversationActivityState: ConversationActivityStateSchema,
|
|
1179
|
+
AgentRunStatus: AgentRunStatusSchema,
|
|
1180
|
+
RunKind: RunKindSchema,
|
|
1181
|
+
RunType: RunTypeSchema,
|
|
1182
|
+
AppBuildProgressStatus: AppBuildProgressStatusSchema,
|
|
1183
|
+
DeleteAppVersionResponse: DeleteAppVersionResponseSchema,
|
|
1184
|
+
AppRepoBranch: AppRepoBranchSchema,
|
|
1185
|
+
AppRepoDocumentCommit: AppRepoDocumentCommitSchema,
|
|
1186
|
+
AppVersionGitSource: AppVersionGitSourceSchema,
|
|
1187
|
+
StartAppScaffoldRequest: StartAppScaffoldRequestSchema,
|
|
1188
|
+
StartAppBuildRequest: StartAppBuildRequestSchema,
|
|
1189
|
+
AgentToolDefinition: AgentToolDefinitionSchema,
|
|
1190
|
+
AppDevelopmentTaskList: AppDevelopmentTaskListSchema,
|
|
1191
|
+
OAuthClientCredentialsMap: OAuthClientCredentialsMapSchema,
|
|
1192
|
+
AppOAuthCollectionParams: AppOAuthCollectionParamsSchema,
|
|
1193
|
+
AppInspectionIssue: AppInspectionIssueSchema,
|
|
1194
|
+
AppScaffoldProgress: AppScaffoldProgressSchema,
|
|
1195
|
+
AppRepoTree: AppRepoTreeSchema,
|
|
1196
|
+
AppRepoRefs: AppRepoRefsSchema,
|
|
1197
|
+
AppRepoCommits: AppRepoCommitsSchema,
|
|
1198
|
+
ContentObjectTypeRef: ContentObjectTypeRefSchema,
|
|
1199
|
+
AppBuildProgress: AppBuildProgressSchema,
|
|
1200
|
+
AppVersionStorage: AppVersionStorageSchema,
|
|
1201
|
+
AppToolCollection: AppToolCollectionSchema,
|
|
1202
|
+
AppOAuthProviderParams: AppOAuthProviderParamsSchema,
|
|
1203
|
+
AppInspectionResult: AppInspectionResultSchema,
|
|
1204
|
+
AppVersionRecord: AppVersionRecordSchema,
|
|
1205
|
+
AgentRunSearchHit: AgentRunSearchHitSchema,
|
|
1206
|
+
UpsertAppVersionRequest: UpsertAppVersionRequestSchema,
|
|
1207
|
+
AppInstallationPayload: AppInstallationPayloadSchema,
|
|
1208
|
+
AppDevelopmentTaskDetails: AppDevelopmentTaskDetailsSchema,
|
|
1209
|
+
AppVersionRecordArray: AppVersionRecordArraySchema,
|
|
1210
|
+
AppToolCollectionArray: AppToolCollectionArraySchema,
|
|
1211
|
+
AppInstallationKind: AppInstallationKindSchema,
|
|
1212
|
+
AppInstallationsQuery: AppInstallationsQuerySchema,
|
|
1213
|
+
AppInstallationProjectsQuery: AppInstallationProjectsQuerySchema,
|
|
1214
|
+
SystemPackageQuery: SystemPackageQuerySchema,
|
|
1215
|
+
};
|
|
1216
|
+
const SECRET_SCHEMAS = {
|
|
1217
|
+
WebsiteCredentialTotpAlgorithm: SecretSchemas.WebsiteCredentialTotpAlgorithmSchema,
|
|
1218
|
+
WebsiteCredentialTotpMetadata: SecretSchemas.WebsiteCredentialTotpMetadataSchema,
|
|
1219
|
+
WebsiteCredentialSecretInput: SecretSchemas.WebsiteCredentialSecretInputSchema,
|
|
1220
|
+
WebsiteCredentialCapability: SecretSchemas.WebsiteCredentialCapabilitySchema,
|
|
1221
|
+
WebsiteCredentialWebsite: SecretSchemas.WebsiteCredentialWebsiteSchema,
|
|
1222
|
+
SecretKind: SecretSchemas.SecretKindSchema,
|
|
1223
|
+
WebsiteCredentialRecord: SecretSchemas.WebsiteCredentialRecordSchema,
|
|
1224
|
+
WebsiteCredentialFillResponse: SecretSchemas.WebsiteCredentialFillResponseSchema,
|
|
1225
|
+
WebsiteCredentialFillRequest: SecretSchemas.WebsiteCredentialFillRequestSchema,
|
|
1226
|
+
DeleteSecretResponse: SecretSchemas.DeleteSecretResponseSchema,
|
|
1227
|
+
WebsiteCredentialMetadata: SecretSchemas.WebsiteCredentialMetadataSchema,
|
|
1228
|
+
WebsiteCredentialMetadataUpdate: SecretSchemas.WebsiteCredentialMetadataUpdateSchema,
|
|
1229
|
+
SecretRecord: SecretSchemas.SecretRecordSchema,
|
|
1230
|
+
CreateSecretRequest: SecretSchemas.CreateSecretRequestSchema,
|
|
1231
|
+
UpdateSecretRequest: SecretSchemas.UpdateSecretRequestSchema,
|
|
1232
|
+
ListSecretsResponse: SecretSchemas.ListSecretsResponseSchema,
|
|
1233
|
+
SecretProjectQuery: SecretSchemas.SecretProjectQuerySchema,
|
|
1234
|
+
ListSecretsQuery: SecretSchemas.ListSecretsQuerySchema,
|
|
1235
|
+
SecretLookupQuery: SecretSchemas.SecretLookupQuerySchema,
|
|
1236
|
+
EventWebhookSigningSecretRequest: SecretSchemas.EventWebhookSigningSecretRequestSchema,
|
|
1237
|
+
EventWebhookSigningSecretResponse: SecretSchemas.EventWebhookSigningSecretResponseSchema,
|
|
1238
|
+
SignEventWebhookRequest: SecretSchemas.SignEventWebhookRequestSchema,
|
|
1239
|
+
SignEventWebhookResponse: SecretSchemas.SignEventWebhookResponseSchema,
|
|
1240
|
+
EventIngestSigningSecretRequest: SecretSchemas.EventIngestSigningSecretRequestSchema,
|
|
1241
|
+
EventIngestSigningSecretResponse: SecretSchemas.EventIngestSigningSecretResponseSchema,
|
|
1242
|
+
VerifyEventIngestSignatureRequest: SecretSchemas.VerifyEventIngestSignatureRequestSchema,
|
|
1243
|
+
VerifyEventIngestSignatureResponse: SecretSchemas.VerifyEventIngestSignatureResponseSchema,
|
|
1244
|
+
GithubInstallationTokenRequest: SecretSchemas.GithubInstallationTokenRequestSchema,
|
|
1245
|
+
GithubInstallationTokenResponse: SecretSchemas.GithubInstallationTokenResponseSchema,
|
|
1246
|
+
InternalSecretDeleteResponse: SecretSchemas.InternalSecretDeleteResponseSchema,
|
|
1247
|
+
};
|
|
1248
|
+
const INTEGRATION_SCHEMAS = {
|
|
1249
|
+
SupportedIntegrations_ask_user_webhook: IntegrationSchemas.SupportedIntegrations_ask_user_webhookSchema,
|
|
1250
|
+
SupportedIntegrations_resend: IntegrationSchemas.SupportedIntegrations_resendSchema,
|
|
1251
|
+
SupportedIntegrations_linkup: IntegrationSchemas.SupportedIntegrations_linkupSchema,
|
|
1252
|
+
SupportedIntegrations_exa: IntegrationSchemas.SupportedIntegrations_exaSchema,
|
|
1253
|
+
SupportedIntegrations_serper: IntegrationSchemas.SupportedIntegrations_serperSchema,
|
|
1254
|
+
SupportedIntegrations_magic_pdf: IntegrationSchemas.SupportedIntegrations_magic_pdfSchema,
|
|
1255
|
+
SupportedIntegrations_aws: IntegrationSchemas.SupportedIntegrations_awsSchema,
|
|
1256
|
+
SupportedIntegrations_github: IntegrationSchemas.SupportedIntegrations_githubSchema,
|
|
1257
|
+
SupportedIntegrations_gladia: IntegrationSchemas.SupportedIntegrations_gladiaSchema,
|
|
1258
|
+
AskUserWebhookConfiguration: IntegrationSchemas.AskUserWebhookConfigurationSchema,
|
|
1259
|
+
ResendConfiguration: IntegrationSchemas.ResendConfigurationSchema,
|
|
1260
|
+
LinkupConfiguration: IntegrationSchemas.LinkupConfigurationSchema,
|
|
1261
|
+
ExaConfiguration: IntegrationSchemas.ExaConfigurationSchema,
|
|
1262
|
+
SerperConfiguration: IntegrationSchemas.SerperConfigurationSchema,
|
|
1263
|
+
GithubConfiguration: IntegrationSchemas.GithubConfigurationSchema,
|
|
1264
|
+
GladiaConfiguration: IntegrationSchemas.GladiaConfigurationSchema,
|
|
1265
|
+
RemoteActivityDefinition: IntegrationSchemas.RemoteActivityDefinitionSchema,
|
|
1266
|
+
AskUserWebhookConfigurationInput: IntegrationSchemas.AskUserWebhookConfigurationInputSchema,
|
|
1267
|
+
ResendConfigurationInput: IntegrationSchemas.ResendConfigurationInputSchema,
|
|
1268
|
+
LinkupConfigurationInput: IntegrationSchemas.LinkupConfigurationInputSchema,
|
|
1269
|
+
ExaConfigurationInput: IntegrationSchemas.ExaConfigurationInputSchema,
|
|
1270
|
+
SerperConfigurationInput: IntegrationSchemas.SerperConfigurationInputSchema,
|
|
1271
|
+
MagicPdfConfiguration: IntegrationSchemas.MagicPdfConfigurationSchema,
|
|
1272
|
+
AwsConfiguration: IntegrationSchemas.AwsConfigurationSchema,
|
|
1273
|
+
GithubConfigurationInput: IntegrationSchemas.GithubConfigurationInputSchema,
|
|
1274
|
+
GladiaConfigurationInput: IntegrationSchemas.GladiaConfigurationInputSchema,
|
|
1275
|
+
ProjectIntegrationConfigResponse: IntegrationSchemas.ProjectIntegrationConfigResponseSchema,
|
|
1276
|
+
ProjectIntegrationConfigRequest: IntegrationSchemas.ProjectIntegrationConfigRequestSchema,
|
|
1277
|
+
};
|
|
1278
|
+
const COMPOSITE_APP_SCHEMAS = {
|
|
1279
|
+
CompositeAppNavItemPermissions: AppRuntimeSchemas.CompositeAppNavItemPermissionsSchema,
|
|
1280
|
+
CompositeAppEntry: AppRuntimeSchemas.CompositeAppEntrySchema,
|
|
1281
|
+
CompositeAppHomePlugin: AppRuntimeSchemas.CompositeAppHomePluginSchema,
|
|
1282
|
+
CompositeAppThemeOverrides: AppRuntimeSchemas.CompositeAppThemeOverridesSchema,
|
|
1283
|
+
CompositeAppHeaderItemTarget: AppRuntimeSchemas.CompositeAppHeaderItemTargetSchema,
|
|
1284
|
+
CompositeAppHeaderItemKind: AppRuntimeSchemas.CompositeAppHeaderItemKindSchema,
|
|
1285
|
+
CompositeAppUserMenuOverrides: AppRuntimeSchemas.CompositeAppUserMenuOverridesSchema,
|
|
1286
|
+
CompositeAppHeaderOverrides: AppRuntimeSchemas.CompositeAppHeaderOverridesSchema,
|
|
1287
|
+
CompositeAppSidebarOverrides: AppRuntimeSchemas.CompositeAppSidebarOverridesSchema,
|
|
1288
|
+
CompositeAppSwitchersOverrides: AppRuntimeSchemas.CompositeAppSwitchersOverridesSchema,
|
|
1289
|
+
CompositeAppMessageStyle: AppRuntimeSchemas.CompositeAppMessageStyleSchema,
|
|
1290
|
+
CompositeAppLogoOverrides: AppRuntimeSchemas.CompositeAppLogoOverridesSchema,
|
|
1291
|
+
CompositeAppCardOverrides: AppRuntimeSchemas.CompositeAppCardOverridesSchema,
|
|
1292
|
+
CompositeAppMenuNavItem: AppRuntimeSchemas.CompositeAppMenuNavItemSchema,
|
|
1293
|
+
CompositeAppHeaderItem: AppRuntimeSchemas.CompositeAppHeaderItemSchema,
|
|
1294
|
+
CompositeAppMessageOverrides: AppRuntimeSchemas.CompositeAppMessageOverridesSchema,
|
|
1295
|
+
CompositeAppMenuSection: AppRuntimeSchemas.CompositeAppMenuSectionSchema,
|
|
1296
|
+
CompositeAppConfig: AppRuntimeSchemas.CompositeAppConfigSchema,
|
|
1297
|
+
CompositeAppConfigPayload: AppRuntimeSchemas.CompositeAppConfigPayloadSchema,
|
|
1298
|
+
};
|
|
1299
|
+
const APP_MANIFEST_SCHEMAS = {
|
|
1300
|
+
MCPOAuthConfigMap: AppRuntimeSchemas.MCPOAuthConfigMapSchema,
|
|
1301
|
+
AppWidgetInfo: AppRuntimeSchemas.AppWidgetInfoSchema,
|
|
1302
|
+
AppDashboardDefinition: AppRuntimeSchemas.AppDashboardDefinitionSchema,
|
|
1303
|
+
AppManifestData: AppRuntimeSchemas.AppManifestDataSchema,
|
|
1304
|
+
AppManifest: AppRuntimeSchemas.AppManifestSchema,
|
|
1305
|
+
AppManifestArray: AppRuntimeSchemas.AppManifestArraySchema,
|
|
1306
|
+
AppWidgetInfoMap: AppRuntimeSchemas.AppWidgetInfoMapSchema,
|
|
1307
|
+
PromoteAppVersionResponse: AppRuntimeSchemas.PromoteAppVersionResponseSchema,
|
|
1308
|
+
AppPackage: AppRuntimeSchemas.AppPackageSchema,
|
|
1309
|
+
ProjectPluginArray: AppRuntimeSchemas.ProjectPluginArraySchema,
|
|
1310
|
+
};
|
|
1311
|
+
const APP_INSTALLATION_SCHEMAS = {
|
|
1312
|
+
InCodeViewDefinition: AppRuntimeSchemas.InCodeViewDefinitionSchema,
|
|
1313
|
+
InCodeTypeDefinitionArray: AppRuntimeSchemas.InCodeTypeDefinitionArraySchema,
|
|
1314
|
+
RenderingTemplateDefinitionRefArray: AppRuntimeSchemas.RenderingTemplateDefinitionRefArraySchema,
|
|
1315
|
+
InCodeProcessDefinition: AppRuntimeSchemas.InCodeProcessDefinitionSchema,
|
|
1316
|
+
AppInstallation: AppRuntimeSchemas.AppInstallationSchema,
|
|
1317
|
+
InCodeViewDefinitionArray: AppRuntimeSchemas.InCodeViewDefinitionArraySchema,
|
|
1318
|
+
InCodeProcessDefinitionArray: AppRuntimeSchemas.InCodeProcessDefinitionArraySchema,
|
|
1319
|
+
AppInstallationWithManifest: AppRuntimeSchemas.AppInstallationWithManifestSchema,
|
|
1320
|
+
AppInstallationArray: AppRuntimeSchemas.AppInstallationArraySchema,
|
|
1321
|
+
AppInstallationListEntry: AppRuntimeSchemas.AppInstallationListEntrySchema,
|
|
1322
|
+
AppInstallationWithManifestArray: AppRuntimeSchemas.AppInstallationWithManifestArraySchema,
|
|
1323
|
+
AppInstallationListEntryArray: AppRuntimeSchemas.AppInstallationListEntryArraySchema,
|
|
1324
|
+
BinaryFileResponse: AppRuntimeSchemas.BinaryFileResponseSchema,
|
|
1325
|
+
};
|
|
1326
|
+
const STS_SCHEMAS = {
|
|
1327
|
+
SigningAlgorithm: StsSchemas.SigningAlgorithmSchema,
|
|
1328
|
+
ApiKeyTokenRequest: StsSchemas.ApiKeyTokenRequestSchema,
|
|
1329
|
+
UserTokenRequest: StsSchemas.UserTokenRequestSchema,
|
|
1330
|
+
ProjectTokenRequest: StsSchemas.ProjectTokenRequestSchema,
|
|
1331
|
+
EnvironmentTokenRequest: StsSchemas.EnvironmentTokenRequestSchema,
|
|
1332
|
+
AgentTokenRequest: StsSchemas.AgentTokenRequestSchema,
|
|
1333
|
+
ServiceAccountTokenRequest: StsSchemas.ServiceAccountTokenRequestSchema,
|
|
1334
|
+
IssueTokenRequest: StsSchemas.IssueTokenRequestSchema,
|
|
1335
|
+
IssueTokenResponse: StsSchemas.IssueTokenResponseSchema,
|
|
1336
|
+
IssueTokenUnavailableResponse: StsSchemas.IssueTokenUnavailableResponseSchema,
|
|
1337
|
+
};
|
|
1338
|
+
const API_SCHEMA_GROUPS = [
|
|
1339
|
+
IAM_AND_ACCOUNT_SCHEMAS,
|
|
1340
|
+
PROJECT_AND_APP_SCHEMAS,
|
|
1341
|
+
OAUTH_SCHEMAS,
|
|
1342
|
+
ENVIRONMENT_SCHEMAS,
|
|
1343
|
+
LLM_COMPLETION_SCHEMAS,
|
|
1344
|
+
INTERACTION_SCHEMAS,
|
|
1345
|
+
INTERACTION_AUTHORING_SCHEMAS,
|
|
1346
|
+
AGENT_CONVERSATION_SCHEMAS,
|
|
1347
|
+
EXECUTION_RUN_SCHEMAS,
|
|
1348
|
+
PROMPT_AUTHORING_SCHEMAS,
|
|
1349
|
+
PROJECT_TOOL_SCHEMAS,
|
|
1350
|
+
REMOTE_MCP_SCHEMAS,
|
|
1351
|
+
AUDIT_TRAIL_SCHEMAS,
|
|
1352
|
+
VIEW_EXPERIENCE_SCHEMAS,
|
|
1353
|
+
APP_LIFECYCLE_SCHEMAS,
|
|
1354
|
+
SECRET_SCHEMAS,
|
|
1355
|
+
INTEGRATION_SCHEMAS,
|
|
1356
|
+
COMPOSITE_APP_SCHEMAS,
|
|
1357
|
+
APP_MANIFEST_SCHEMAS,
|
|
1358
|
+
APP_INSTALLATION_SCHEMAS,
|
|
1359
|
+
STS_SCHEMAS,
|
|
1360
|
+
FILE_STORAGE_SCHEMAS,
|
|
1361
|
+
DURABLE_TASK_SCHEMAS,
|
|
1362
|
+
CONTENT_TYPE_CATALOG_SCHEMAS,
|
|
1363
|
+
MIGRATION_COMMAND_SCHEMAS,
|
|
1364
|
+
PROCESS_DSL_SCHEMAS,
|
|
1365
|
+
AGENT_MESSAGE_SCHEMAS,
|
|
1366
|
+
PROCESS_DEFINITION_SCHEMAS,
|
|
1367
|
+
PROCESS_SCRIPT_SCHEMAS,
|
|
1368
|
+
CONTENT_OBJECT_SCHEMAS,
|
|
1369
|
+
CONTENT_EXPORT_SCHEMAS,
|
|
1370
|
+
CONTENT_SEARCH_SCHEMAS,
|
|
1371
|
+
EVENT_SUBSCRIPTION_SCHEMAS,
|
|
1372
|
+
PROCESS_RUNTIME_SCHEMAS,
|
|
1373
|
+
EVENT_DELIVERY_SCHEMAS,
|
|
1374
|
+
EVENT_INGEST_SCHEMAS,
|
|
1375
|
+
COLLECTION_SCHEMAS,
|
|
1376
|
+
AGENT_ARTIFACT_SCHEMAS,
|
|
1377
|
+
AGENT_RUN_SCHEMAS,
|
|
1378
|
+
WORKFLOW_RUN_SCHEMAS,
|
|
1379
|
+
WORKFLOW_TASK_SCHEMAS,
|
|
1380
|
+
VIEW_EXECUTION_SCHEMAS,
|
|
1381
|
+
DASHBOARD_SCHEMAS,
|
|
1382
|
+
DATA_STORE_CORE_SCHEMAS,
|
|
1383
|
+
DATA_STORE_SCHEMA_SCHEMAS,
|
|
1384
|
+
COST_ANALYTICS_SCHEMAS,
|
|
1385
|
+
BULK_CONTENT_OPERATION_SCHEMAS,
|
|
1386
|
+
DOCUMENT_PROCESSING_SCHEMAS,
|
|
1387
|
+
INDEXING_SCHEMAS,
|
|
1388
|
+
EMBEDDING_ADMIN_SCHEMAS,
|
|
1389
|
+
COMMAND_SCHEMAS,
|
|
1390
|
+
];
|
|
1391
|
+
const API_SCHEMAS = mergeComponentGroups(API_SCHEMA_GROUPS);
|
|
1392
|
+
/**
|
|
1393
|
+
* Components that reject undeclared properties.
|
|
1394
|
+
*
|
|
1395
|
+
* These components publish `additionalProperties: false`; the same emitted objects are compiled by
|
|
1396
|
+
* AJV, so request enforcement and the published contract use one closedness policy.
|
|
1397
|
+
*
|
|
1398
|
+
* These are enforced, not merely documented: {@link validateApiRequest} compiles these exact
|
|
1399
|
+
* objects, so a body carrying an undeclared property is rejected rather than quietly accepted.
|
|
1400
|
+
*/
|
|
1401
|
+
const STRICT_COMPONENTS = new Set([
|
|
1402
|
+
'Account',
|
|
1403
|
+
'AccountBilling',
|
|
1404
|
+
'UpdateAccountPayload',
|
|
1405
|
+
'StripeBillingEnabled',
|
|
1406
|
+
'StripeBillingDisabled',
|
|
1407
|
+
// STS token contracts. The request root is a discriminated union; its six object branches and
|
|
1408
|
+
// both response objects are the closed components that carry the property policy.
|
|
1409
|
+
'ApiKeyTokenRequest',
|
|
1410
|
+
'UserTokenRequest',
|
|
1411
|
+
'ProjectTokenRequest',
|
|
1412
|
+
'EnvironmentTokenRequest',
|
|
1413
|
+
'AgentTokenRequest',
|
|
1414
|
+
'ServiceAccountTokenRequest',
|
|
1415
|
+
'IssueTokenResponse',
|
|
1416
|
+
'IssueTokenUnavailableResponse',
|
|
1417
|
+
'ApiKeyListQuery',
|
|
1418
|
+
// These payloads previously referenced closed generated utility components. They now own their
|
|
1419
|
+
// object shapes directly, so their published closedness belongs to the final component names.
|
|
1420
|
+
'PostAgentRunUpdatePayload',
|
|
1421
|
+
'CompositeAppConfigPayload',
|
|
1422
|
+
// The quota closure. Every object here is published closed today, so all of them are listed;
|
|
1423
|
+
// QuotaEffectiveTier is a string and takes no additionalProperties at all.
|
|
1424
|
+
'QuotaStandingResponse',
|
|
1425
|
+
'QuotaStandingResource',
|
|
1426
|
+
'QuotaStandingWindow',
|
|
1427
|
+
'QuotaStandingAdmissionClass',
|
|
1428
|
+
'QuotaTierResponse',
|
|
1429
|
+
// The IAM closure. PrincipalContext is composed into PrincipalIdentity rather than hoisted,
|
|
1430
|
+
// so it has no component of its own to list.
|
|
1431
|
+
'User',
|
|
1432
|
+
'UpdateUserPayload',
|
|
1433
|
+
'DeleteByIdResult',
|
|
1434
|
+
'PrincipalIdentity',
|
|
1435
|
+
'SignupData',
|
|
1436
|
+
'SignupPayload',
|
|
1437
|
+
// The group closure. UserRef is hoisted by UserRefArray rather than named by an endpoint, but it
|
|
1438
|
+
// is published closed today and must stay that way; the array components take no
|
|
1439
|
+
// additionalProperties at all.
|
|
1440
|
+
'UserRef',
|
|
1441
|
+
'UserGroup',
|
|
1442
|
+
'UserGroupRef',
|
|
1443
|
+
'CreateUserGroupPayload',
|
|
1444
|
+
'UpdateUserGroupPayload',
|
|
1445
|
+
// The roles / access-control closure. `AceConditions` is closed too, and has to be listed by
|
|
1446
|
+
// name: it is a hoisted component, so the parent's strict policy does not reach it.
|
|
1447
|
+
// `PropertyConditions` is deliberately absent — it is a map whose `additionalProperties` is a
|
|
1448
|
+
// value schema, not an object with declared properties.
|
|
1449
|
+
'AccessControlEntry',
|
|
1450
|
+
'ACECreatePayload',
|
|
1451
|
+
'ACEUpdatePayload',
|
|
1452
|
+
'AceConditions',
|
|
1453
|
+
'RoleDefinition',
|
|
1454
|
+
'SystemRoleDefinition',
|
|
1455
|
+
// The API key and account-invite closure. ProjectRef, AccountRef and the invite payload are
|
|
1456
|
+
// hoisted rather than named by an endpoint, and all three are published closed today.
|
|
1457
|
+
'ProjectRef',
|
|
1458
|
+
'AccountRef',
|
|
1459
|
+
'ApiKey',
|
|
1460
|
+
'ApiKeyWithValue',
|
|
1461
|
+
'ApiKeyReadResponse',
|
|
1462
|
+
'ApiKeyReadQuery',
|
|
1463
|
+
'CreateApiKeyPayload',
|
|
1464
|
+
'UpdateApiKeyPayload',
|
|
1465
|
+
'AuthTokenResponse',
|
|
1466
|
+
'DeleteOperationResult',
|
|
1467
|
+
'InviteUserRequestPayload',
|
|
1468
|
+
'InviteUserResponsePayload',
|
|
1469
|
+
'InviteAcceptanceResponse',
|
|
1470
|
+
'InviteDeclineResponse',
|
|
1471
|
+
'OnboardingProgress',
|
|
1472
|
+
'AccountProjectsResponse',
|
|
1473
|
+
'UserInviteTokenData',
|
|
1474
|
+
'TransientToken_UserInviteTokenData_',
|
|
1475
|
+
// The Projects closure. The two query components are expanded into parameters rather than
|
|
1476
|
+
// published, but the strict policy is what makes an undeclared query parameter a 400 rather than
|
|
1477
|
+
// a silent ignore, so they are listed like ApiKeyListQuery. ProjectIntegrationListEntry and
|
|
1478
|
+
// ProjectToolInfo are hoisted rather than named by an endpoint, and both are closed today.
|
|
1479
|
+
'ListProjectsQuery',
|
|
1480
|
+
'ProjectTagQuery',
|
|
1481
|
+
'ICreateProjectPayload',
|
|
1482
|
+
'ProjectPluginsUpdatePayload',
|
|
1483
|
+
'CountResult',
|
|
1484
|
+
'ProjectIntegrationListResponse',
|
|
1485
|
+
'ProjectIntegrationListEntry',
|
|
1486
|
+
'ProjectToolInfo',
|
|
1487
|
+
'RenderingTemplateDefinition',
|
|
1488
|
+
'RenderingTemplateDefinitionRef',
|
|
1489
|
+
// The ProjectConfiguration leaves. All are published closed today. The three enums and
|
|
1490
|
+
// `ProjectSearchPropertyMappingMap` are absent for the reasons `PropertyConditions` is: a string
|
|
1491
|
+
// takes no `additionalProperties`, and a map's is a value schema rather than a policy.
|
|
1492
|
+
'ModelDefault',
|
|
1493
|
+
'ModalityDefaults',
|
|
1494
|
+
'SystemDefaults',
|
|
1495
|
+
'ProjectModelDefaults',
|
|
1496
|
+
'ProjectSearchPropertyMapping',
|
|
1497
|
+
'ProjectIndexingConfiguration',
|
|
1498
|
+
'ProjectConfigurationEmbedding',
|
|
1499
|
+
'BrowserUseProjectConfiguration',
|
|
1500
|
+
'ProjectIntakeSniffConfiguration',
|
|
1501
|
+
// The agent configuration block under `ProjectConfiguration`, published closed on both sides.
|
|
1502
|
+
'AgentProjectConfiguration',
|
|
1503
|
+
'AgentCheckpointConfiguration',
|
|
1504
|
+
// Declared in @llumiverse/common beside the type, like the ModelOptions members above.
|
|
1505
|
+
'HttpTimeoutOptions',
|
|
1506
|
+
// The intake policy tree. Every object in it is published closed today, including the inline
|
|
1507
|
+
// nested ones, which the schemas spell `strictObject` so the emission carries it directly.
|
|
1508
|
+
'ContentTypeIntakePolicy',
|
|
1509
|
+
'ContentTypeExtractionGroundingPolicy',
|
|
1510
|
+
'ContentTypeExtractionGroundingReviewPolicy',
|
|
1511
|
+
'InteractionExecutionConfiguration',
|
|
1512
|
+
'EmbeddingTypeEnabledMap',
|
|
1513
|
+
// The intake configuration above the policy, and the two anonymous shapes it hoists. All three
|
|
1514
|
+
// are published closed today.
|
|
1515
|
+
'ProjectIntakeConfiguration',
|
|
1516
|
+
'IntakeVisionProfileSettingsUpdate',
|
|
1517
|
+
'IntakeVisionProfileSettingsMap',
|
|
1518
|
+
// The Project closure roots. Both are published closed today, as is the anonymous `embeddings`
|
|
1519
|
+
// object `ProjectConfiguration` publishes inline, and so are the two `Partial<>` update payloads.
|
|
1520
|
+
'Project',
|
|
1521
|
+
'ProjectConfiguration',
|
|
1522
|
+
'UpdateProjectPayload',
|
|
1523
|
+
'UpdateProjectConfigurationPayload',
|
|
1524
|
+
// Every member of the `ModelOptions` union. All twenty-three are published closed today, and
|
|
1525
|
+
// their Zod schemas are `strictObject`, so the published contract, the AJV enforcement and the
|
|
1526
|
+
// schema's own parse all reject the same undeclared option. `ModelOptions` itself is a union
|
|
1527
|
+
// and takes no `additionalProperties`, and neither do the four hoisted enums.
|
|
1528
|
+
//
|
|
1529
|
+
// `JSONSchema` is deliberately absent: it is OPEN by design and by long-standing publication —
|
|
1530
|
+
// a JSON Schema carries keywords the type never enumerated. `JSONSchemaProperties` is a map.
|
|
1531
|
+
'TextFallbackOptions',
|
|
1532
|
+
'ImagenOptions',
|
|
1533
|
+
'VertexAIClaudeOptions',
|
|
1534
|
+
'VertexAIGeminiOptions',
|
|
1535
|
+
'VertexAIGrokOptions',
|
|
1536
|
+
'NovaCanvasOptions',
|
|
1537
|
+
'BedrockConverseOptions',
|
|
1538
|
+
'BedrockNovaOptions',
|
|
1539
|
+
'BedrockMistralOptions',
|
|
1540
|
+
'BedrockAI21Options',
|
|
1541
|
+
'BedrockCohereCommandOptions',
|
|
1542
|
+
'BedrockClaudeOptions',
|
|
1543
|
+
'BedrockPalmyraOptions',
|
|
1544
|
+
'BedrockGptOssOptions',
|
|
1545
|
+
'TwelvelabsPegasusOptions',
|
|
1546
|
+
'BedrockMantleResponsesOptions',
|
|
1547
|
+
'BedrockMantleChatCompletionsOptions',
|
|
1548
|
+
'BedrockMantleClaudeOptions',
|
|
1549
|
+
'OpenAiThinkingOptions',
|
|
1550
|
+
'OpenAiTextOptions',
|
|
1551
|
+
'OpenAiDalleOptions',
|
|
1552
|
+
'OpenAiGptImageOptions',
|
|
1553
|
+
'GroqOptions',
|
|
1554
|
+
// The app-manifest leaves. Every object among them is published closed today, the nested `git`
|
|
1555
|
+
// block included, and it is spelled `strictObject` so the emission carries it directly. The five
|
|
1556
|
+
// enums take no `additionalProperties` at all.
|
|
1557
|
+
'AppManifestSource',
|
|
1558
|
+
'AppSourceConfig',
|
|
1559
|
+
'AppGitSourceConfig',
|
|
1560
|
+
'AppUIConfig',
|
|
1561
|
+
'AppUINavItem',
|
|
1562
|
+
'MCPOAuthConfig',
|
|
1563
|
+
'MCPToolCollectionObject',
|
|
1564
|
+
'VertesiaSDKToolCollectionObject',
|
|
1565
|
+
// File, task, content-type and command components. Every one is published closed
|
|
1566
|
+
// today; `StringValueMap`, `MigrationListResponse`, `TaskArray`, the two content-type array
|
|
1567
|
+
// wrappers and the three enums are not objects and take none.
|
|
1568
|
+
'CopyFilePayload',
|
|
1569
|
+
'CopyFileResponse',
|
|
1570
|
+
'DeleteFileResult',
|
|
1571
|
+
'FileBucketResponse',
|
|
1572
|
+
'FileListResponse',
|
|
1573
|
+
'FileMetadataResponse',
|
|
1574
|
+
'FileMetadataUpdateResult',
|
|
1575
|
+
'GetFileUrlPayload',
|
|
1576
|
+
'GetFileUrlResponse',
|
|
1577
|
+
'GetUploadUrlPayload',
|
|
1578
|
+
'BulkUploadUrlsPayload',
|
|
1579
|
+
'BulkUploadUrlsResponse',
|
|
1580
|
+
'SetFileMetadataPayload',
|
|
1581
|
+
// The four zeno query components. Expanded into parameters rather than published; listed for the
|
|
1582
|
+
// same reason ApiKeyListQuery is, so an endpoint can opt into rejecting an undeclared parameter.
|
|
1583
|
+
'FileMetadataQuery',
|
|
1584
|
+
'FileListQuery',
|
|
1585
|
+
'FileDeleteQuery',
|
|
1586
|
+
'TaskSource',
|
|
1587
|
+
'TaskField',
|
|
1588
|
+
'Task',
|
|
1589
|
+
'CreateTaskPayload',
|
|
1590
|
+
'UpdateTaskPayload',
|
|
1591
|
+
'CompleteTaskPayload',
|
|
1592
|
+
// Expanded into parameters rather than published, like ApiKeyListQuery and the two project query
|
|
1593
|
+
// components. Listed because the strict policy is what an endpoint opting into
|
|
1594
|
+
// `rejectUndeclaredQuery` rejects against; `GET /tasks` does not opt in today.
|
|
1595
|
+
'ListTasksQuery',
|
|
1596
|
+
'ColumnLayout',
|
|
1597
|
+
'ContentTypeEditingPolicy',
|
|
1598
|
+
'ContentObjectTypeItem',
|
|
1599
|
+
'ContentObjectTypeCatalogEntry',
|
|
1600
|
+
'InCodeTypeDefinition',
|
|
1601
|
+
'CreateContentObjectTypePayload',
|
|
1602
|
+
'UpdateContentObjectTypePayload',
|
|
1603
|
+
'ContentObjectType',
|
|
1604
|
+
'ContentObjectTypeCatalogQuery',
|
|
1605
|
+
'ContentObjectTypeListQuery',
|
|
1606
|
+
'DeleteCountResult',
|
|
1607
|
+
'RunMigrationPayload',
|
|
1608
|
+
'RunMigrationResponse',
|
|
1609
|
+
'MigrationListResponse',
|
|
1610
|
+
// Dashboards. StringArrayMap and the two array wrappers are not object schemas, while the
|
|
1611
|
+
// discriminated unions and enum carry closedness on their object members or no object policy.
|
|
1612
|
+
'DashboardElasticsearchDsl',
|
|
1613
|
+
'DashboardSqlDataSource',
|
|
1614
|
+
'DashboardVersioningStatusResponse',
|
|
1615
|
+
'DashboardVersioningPayload',
|
|
1616
|
+
'PromoteDashboardVersionPayload',
|
|
1617
|
+
'DashboardVersionItem',
|
|
1618
|
+
'DashboardLayout',
|
|
1619
|
+
'DashboardPanelPosition',
|
|
1620
|
+
'DashboardQuery',
|
|
1621
|
+
'DashboardBulkDeleteResult',
|
|
1622
|
+
'DashboardArchiveResult',
|
|
1623
|
+
'CreateDashboardSnapshotPayload',
|
|
1624
|
+
'DashboardBulkArchiveResult',
|
|
1625
|
+
'DashboardStoreElasticsearchDataSource',
|
|
1626
|
+
'DashboardItem',
|
|
1627
|
+
'DashboardPanel',
|
|
1628
|
+
'DashboardVersion',
|
|
1629
|
+
'Dashboard',
|
|
1630
|
+
'CreateDashboardPayload',
|
|
1631
|
+
'UpdateDashboardPayload',
|
|
1632
|
+
// Data stores. Map, array, enum and discriminated-union components carry no component-level
|
|
1633
|
+
// additionalProperties policy; every named object below is already closed in the published spec.
|
|
1634
|
+
'QueryValidationError',
|
|
1635
|
+
'QueryValidationPayload',
|
|
1636
|
+
'ListDataStoreVersionsQuery',
|
|
1637
|
+
'GetDataStoreTableQuery',
|
|
1638
|
+
'DataIndex',
|
|
1639
|
+
'DataForeignKey',
|
|
1640
|
+
'DataColumnUpdate',
|
|
1641
|
+
'QueryResultColumn',
|
|
1642
|
+
'BatchQueryPayload',
|
|
1643
|
+
'QueryResult',
|
|
1644
|
+
'QueryPayload',
|
|
1645
|
+
'DataStoreMutateRowsResult',
|
|
1646
|
+
'DataStoreMutateRowsPayload',
|
|
1647
|
+
'DataTableSummary',
|
|
1648
|
+
'DataStoreVersionTableState',
|
|
1649
|
+
'DataRelationshipForAI',
|
|
1650
|
+
'DataForeignKeyForAI',
|
|
1651
|
+
'DataColumnForAI',
|
|
1652
|
+
'DataStoreTableDropResult',
|
|
1653
|
+
'DataStoreArchiveResult',
|
|
1654
|
+
'CreateSnapshotPayload',
|
|
1655
|
+
'DataStoreDownloadInfo',
|
|
1656
|
+
'CreateDataStorePayload',
|
|
1657
|
+
'QueryValidationResult',
|
|
1658
|
+
'DataColumn',
|
|
1659
|
+
'DataRelationship',
|
|
1660
|
+
'CreateTablePayload',
|
|
1661
|
+
'BatchQueryResultItem',
|
|
1662
|
+
'DataStoreItem',
|
|
1663
|
+
'ImportTableData',
|
|
1664
|
+
'DataStoreTableDetail',
|
|
1665
|
+
'ImportJob',
|
|
1666
|
+
'CreateTablesPayload',
|
|
1667
|
+
'DataTable',
|
|
1668
|
+
'AlterTablePayload',
|
|
1669
|
+
'UpdateSchemaPayload',
|
|
1670
|
+
'BatchQueryResult',
|
|
1671
|
+
'DataStoreVersion',
|
|
1672
|
+
'DataTableForAI',
|
|
1673
|
+
'DataStoreFullSchemaResponse',
|
|
1674
|
+
'DataSchema',
|
|
1675
|
+
'ImportDataPayload',
|
|
1676
|
+
'DataStore',
|
|
1677
|
+
'DataSchemaForAI',
|
|
1678
|
+
// Cost analytics. The GET query components are intentionally open because query
|
|
1679
|
+
// enforcement ignores undeclared parameters; the two request bodies and all responses were
|
|
1680
|
+
// already published closed.
|
|
1681
|
+
'CostAnalyticsQuery',
|
|
1682
|
+
'CostRunPriceQuery',
|
|
1683
|
+
'ModelPricing',
|
|
1684
|
+
'CostTimeSeriesPoint',
|
|
1685
|
+
'CostSummary',
|
|
1686
|
+
'ModelPriceComparison',
|
|
1687
|
+
'CostByDimension',
|
|
1688
|
+
'ModelPriceComparisonResponse',
|
|
1689
|
+
'CostAnalyticsResponse',
|
|
1690
|
+
'CostRunPriceResponse',
|
|
1691
|
+
// Bulk content operations. The response union carries closedness on each branch rather
|
|
1692
|
+
// than on the union component itself.
|
|
1693
|
+
'BulkObjectDeleteResult',
|
|
1694
|
+
'BulkObjectUpdateResult',
|
|
1695
|
+
'BulkObjectCreateResult',
|
|
1696
|
+
'BulkOperationResult',
|
|
1697
|
+
'BulkOperationPayload',
|
|
1698
|
+
// Rendering and document analysis. Request/response objects reproduce the closed
|
|
1699
|
+
// published components; DocumentPrepOptions stays open by design, and the query follows the
|
|
1700
|
+
// shared query policy of validating declared fields without rejecting unrelated parameters.
|
|
1701
|
+
'GroundedAssistantResponse',
|
|
1702
|
+
'GroundedExtractionRequest',
|
|
1703
|
+
'GroundedVerificationBreakdown',
|
|
1704
|
+
'DocAnalyzerProgressStatus',
|
|
1705
|
+
'RenderMarkdownStartResponse',
|
|
1706
|
+
'PdfRenderingMetadata',
|
|
1707
|
+
'GroundedExtractionResultResponse',
|
|
1708
|
+
'DocAnalyzerProgress',
|
|
1709
|
+
'RenderMarkdownStatusResponse',
|
|
1710
|
+
'RenderMarkdownPayload',
|
|
1711
|
+
'DocAnalyzeRunStatusResponse',
|
|
1712
|
+
// Indexing, embedding and generic command contracts are all published closed today.
|
|
1713
|
+
'StartProjectReindexPayload',
|
|
1714
|
+
'ReindexAgentRunsResponse',
|
|
1715
|
+
'ReindexAgentRunsPayload',
|
|
1716
|
+
'IndexingStatusResponse',
|
|
1717
|
+
'DriftAnalysisResult',
|
|
1718
|
+
'DriftAnalysisProgress',
|
|
1719
|
+
'EmbeddingsStatusResponse',
|
|
1720
|
+
'ProjectConfigurationEmbeddingEnablePayload',
|
|
1721
|
+
'GenericCommandResponse',
|
|
1722
|
+
'DriftAnalysisStatusResponse',
|
|
1723
|
+
// Remaining content, process, event and workflow contracts were already published closed.
|
|
1724
|
+
'HumanTaskDefinition',
|
|
1725
|
+
'ProcessNodeReturnsDefinition',
|
|
1726
|
+
'ProcessContextDefinition',
|
|
1727
|
+
'ProcessScriptInlineSource',
|
|
1728
|
+
'GenerationRunMetadata',
|
|
1729
|
+
'ContentObjectUserPermissions',
|
|
1730
|
+
'RevisionInfo',
|
|
1731
|
+
'ContentSource',
|
|
1732
|
+
'InheritedPropertyMetadata',
|
|
1733
|
+
'TranscriptSegment',
|
|
1734
|
+
'Embedding',
|
|
1735
|
+
'AgentSemanticEvaluator',
|
|
1736
|
+
'InteractionSemanticEvaluator',
|
|
1737
|
+
'EventIngestResourceRule',
|
|
1738
|
+
'CollectionSecuritySettingsResponse',
|
|
1739
|
+
'CollectionMembersUpdateResult',
|
|
1740
|
+
'CollectionMembersUpdatePayload',
|
|
1741
|
+
'CollectionChildrenUpdateResult',
|
|
1742
|
+
'CollectionChildrenUpdatePayload',
|
|
1743
|
+
'UpdateAgentArtifactContentResponse',
|
|
1744
|
+
'UpdateAgentArtifactContentPayload',
|
|
1745
|
+
'TerminateAgentRunResponse',
|
|
1746
|
+
'StartContentObjectExportResponse',
|
|
1747
|
+
'ExportContentObjectsIncludeOptions',
|
|
1748
|
+
'ExportContentObjectsFilter',
|
|
1749
|
+
'SetObjectEmbeddingsResponse',
|
|
1750
|
+
'ContentObjectApiRevision',
|
|
1751
|
+
'InCodeTypeRef',
|
|
1752
|
+
'StoredTypeRef',
|
|
1753
|
+
'EventRef',
|
|
1754
|
+
'RevertProcessDefinitionPayload',
|
|
1755
|
+
'RetryProcessNodePayload',
|
|
1756
|
+
'RestartAgentRunPayload',
|
|
1757
|
+
'PublishProcessDefinitionPayload',
|
|
1758
|
+
'CollectionPropagationResponse',
|
|
1759
|
+
'ViewSortClause',
|
|
1760
|
+
'ViewResultMedia',
|
|
1761
|
+
'ViewBoardColumn',
|
|
1762
|
+
'ViewTableColumn',
|
|
1763
|
+
'AgenticViewSearchConfiguration',
|
|
1764
|
+
'ViewSearchFieldDefinition',
|
|
1765
|
+
'ViewRangeDefinition',
|
|
1766
|
+
'ViewHierarchyLevel',
|
|
1767
|
+
'ViewTermsNavigation',
|
|
1768
|
+
'ViewCollectionNavigation',
|
|
1769
|
+
'ViewLocationNavigation',
|
|
1770
|
+
'ViewExperienceLayout',
|
|
1771
|
+
'WorkflowUpdatePublishResponse',
|
|
1772
|
+
'PostAgentRunUpdateResponse',
|
|
1773
|
+
'ListWorkflowRunsPayload',
|
|
1774
|
+
'WorkflowRuleItem',
|
|
1775
|
+
'WorkflowDefinitionRef',
|
|
1776
|
+
'ProcessDefinitionRevisionInfo',
|
|
1777
|
+
'WebhookEventDeliveryTarget',
|
|
1778
|
+
'WorkflowEventDeliveryTarget',
|
|
1779
|
+
'ContentObjectExportArtifactFile',
|
|
1780
|
+
'ProcessRunConfig',
|
|
1781
|
+
'ProcessHistoryRef',
|
|
1782
|
+
'NodeHistoryEntry',
|
|
1783
|
+
'ResourceRef',
|
|
1784
|
+
'WorkflowRun',
|
|
1785
|
+
'ProcessHistoryResponse',
|
|
1786
|
+
'ProcessContextResponse',
|
|
1787
|
+
'ContentObjectTextResponse',
|
|
1788
|
+
'GetRenditionResponse',
|
|
1789
|
+
'EventDeliveryQueueFailureSummary',
|
|
1790
|
+
'EventOutboxQueueSummary',
|
|
1791
|
+
'ContentObjectExportResult',
|
|
1792
|
+
'ContentObjectExportProgress',
|
|
1793
|
+
'PendingActivity',
|
|
1794
|
+
'AgentTask',
|
|
1795
|
+
'EventError',
|
|
1796
|
+
'SignalEventProperties',
|
|
1797
|
+
'AgentArtifactContentResponse',
|
|
1798
|
+
'ExportPropertiesResponse',
|
|
1799
|
+
'WorkflowExecutionStartResult',
|
|
1800
|
+
'WorkflowInputFile',
|
|
1801
|
+
'ViewNavigationNode',
|
|
1802
|
+
'ViewHitAnnotation',
|
|
1803
|
+
'ViewExecutionWarning',
|
|
1804
|
+
'ExecuteViewRequest',
|
|
1805
|
+
'DeleteContentObjectResult',
|
|
1806
|
+
'DeleteContentObjectExportResponse',
|
|
1807
|
+
'WorkflowRule',
|
|
1808
|
+
'CreateWorkflowRulePayload',
|
|
1809
|
+
'ActivityFetchSpec',
|
|
1810
|
+
'CreateCollectionPayload',
|
|
1811
|
+
'AgentArtifactUrlResponse',
|
|
1812
|
+
'FindPayload',
|
|
1813
|
+
'WorkflowActionResponse',
|
|
1814
|
+
'AnswerProcessTaskPayload',
|
|
1815
|
+
'SignalAgentResponse',
|
|
1816
|
+
'AdvanceProcessPayload',
|
|
1817
|
+
'BranchDefinition',
|
|
1818
|
+
'ParallelCollectDefinition',
|
|
1819
|
+
'TransitionDefinition',
|
|
1820
|
+
'Transcript',
|
|
1821
|
+
'ContentEmbeddingMap',
|
|
1822
|
+
'AgentEventDeliveryTarget',
|
|
1823
|
+
'WebhookEventDeliveryTargetInput',
|
|
1824
|
+
'WorkflowEventDeliveryTargetInput',
|
|
1825
|
+
'EventIngestSignatureConfig',
|
|
1826
|
+
'EventIngestTransform',
|
|
1827
|
+
'StartContentObjectExportRequest',
|
|
1828
|
+
'SemanticEvaluationRecord',
|
|
1829
|
+
'ListEventDeliveriesPayload',
|
|
1830
|
+
'VectorSearchQuery',
|
|
1831
|
+
'ComplexCollectionSearchQuery',
|
|
1832
|
+
'AgentRunSearchHit',
|
|
1833
|
+
'ViewSortOption',
|
|
1834
|
+
'ViewResultField',
|
|
1835
|
+
'ViewTableDisplay',
|
|
1836
|
+
'ViewListDisplay',
|
|
1837
|
+
'ViewKeyTermDefinition',
|
|
1838
|
+
'ViewRangeNavigation',
|
|
1839
|
+
'ViewHierarchyNavigation',
|
|
1840
|
+
'ViewExperienceScope',
|
|
1841
|
+
'ConversationFile',
|
|
1842
|
+
'Collection',
|
|
1843
|
+
'EventIngestChannel',
|
|
1844
|
+
'ContentObjectExportArtifact',
|
|
1845
|
+
// `ProcessState` is deliberately absent: the process engine round-trips five `_`-prefixed
|
|
1846
|
+
// bookkeeping fields (`_current_node`, `_previous_node`, `_transition_count`, `_node_entries`,
|
|
1847
|
+
// `_node_tool_calls`) that are not part of the published contract. They cannot be published
|
|
1848
|
+
// either — `_current_node` and `current_node` normalize to the same Java/Go identifier — so the
|
|
1849
|
+
// component stays open and lets them pass rather than rejecting every process status update.
|
|
1850
|
+
'AutonomousRunResponse',
|
|
1851
|
+
'ListWorkflowRunsResponse',
|
|
1852
|
+
'EventDeliveryQueueSubscriptionSummary',
|
|
1853
|
+
'EventDeliveryQueueSummaryPayload',
|
|
1854
|
+
'ContentObjectExportStatusResponse',
|
|
1855
|
+
'TimerTask',
|
|
1856
|
+
'SignalTask',
|
|
1857
|
+
'ChildWorkflowTask',
|
|
1858
|
+
'ActivityTask',
|
|
1859
|
+
'WorkflowRunEvent',
|
|
1860
|
+
'ViewNavigationResult',
|
|
1861
|
+
'ViewExecutionQueryPlan',
|
|
1862
|
+
'ViewExecutionSearchConfiguration',
|
|
1863
|
+
'DSLRetryPolicy',
|
|
1864
|
+
'CreateContentObjectPayload',
|
|
1865
|
+
'EventIngestChannelMutationResponse',
|
|
1866
|
+
'CreateEventIngestChannelPayload',
|
|
1867
|
+
'AgentRun',
|
|
1868
|
+
'CreateAgentRunPayload',
|
|
1869
|
+
'ComputeCollectionFacetPayload',
|
|
1870
|
+
'ProcessScriptResource',
|
|
1871
|
+
'UpdateContentObjectPayload',
|
|
1872
|
+
'EventSemanticCondition',
|
|
1873
|
+
'UpdateEventIngestChannelPayload',
|
|
1874
|
+
'EventDeliveryIntentSummary',
|
|
1875
|
+
'ComplexSearchQuery',
|
|
1876
|
+
'SearchAgentRunsResponse',
|
|
1877
|
+
'ViewBoardCardConfiguration',
|
|
1878
|
+
'ViewSearchConfiguration',
|
|
1879
|
+
'ListContentObjectExportsResponse',
|
|
1880
|
+
'WorkflowRunUpdatesResponse',
|
|
1881
|
+
'EventDeliveryQueueSummaryResponse',
|
|
1882
|
+
'ExportPropertiesPayload',
|
|
1883
|
+
'ExecuteWorkflowPayload',
|
|
1884
|
+
'ViewExecutionSearchResult',
|
|
1885
|
+
'DSLActivityOptions',
|
|
1886
|
+
'DSLActivitySpec',
|
|
1887
|
+
'DSLActivityStep',
|
|
1888
|
+
'ContentObjectApiResponse',
|
|
1889
|
+
'ComputeObjectFacetPayload',
|
|
1890
|
+
'EventSubscriptionFilter',
|
|
1891
|
+
'EventDeliverySummary',
|
|
1892
|
+
'ContentObjectItemApiResponse',
|
|
1893
|
+
'ComplexSearchPayload',
|
|
1894
|
+
'ViewBoardDisplay',
|
|
1895
|
+
'AgentRunUpdatesResponse',
|
|
1896
|
+
'ViewHit',
|
|
1897
|
+
'ProcessResourcesDefinition',
|
|
1898
|
+
'ListEventDeliveriesResponse',
|
|
1899
|
+
'ObjectSearchResponse',
|
|
1900
|
+
'WorkflowRunWithDetails',
|
|
1901
|
+
'ViewResultsConfiguration',
|
|
1902
|
+
'ViewExecutionDefinition',
|
|
1903
|
+
'ViewExperienceConfiguration',
|
|
1904
|
+
'ViewExecutionResult',
|
|
1905
|
+
'PreviewViewExperienceRequest',
|
|
1906
|
+
'BranchNodeBranchDefinition',
|
|
1907
|
+
'CreateEventSubscriptionPayload',
|
|
1908
|
+
'CreateProcessDefinitionPayload',
|
|
1909
|
+
'DSLChildWorkflowStep',
|
|
1910
|
+
'DSLWorkflowDefinition',
|
|
1911
|
+
'DSLWorkflowDefinitionResponse',
|
|
1912
|
+
'DSLWorkflowSpecWithActivities',
|
|
1913
|
+
'DSLWorkflowSpecWithSteps',
|
|
1914
|
+
'EventSubscription',
|
|
1915
|
+
'EventSubscriptionMutationResponse',
|
|
1916
|
+
'ListAgentRunsResponse',
|
|
1917
|
+
'NodeDefinition',
|
|
1918
|
+
'ProcessDefinition',
|
|
1919
|
+
'ProcessDefinitionBody',
|
|
1920
|
+
'ProcessEventDeliveryTarget',
|
|
1921
|
+
'ProgrammaticRunResponse',
|
|
1922
|
+
'SupervisedRunResponse',
|
|
1923
|
+
'UpdateEventSubscriptionPayload',
|
|
1924
|
+
'UpdateProcessDefinitionPayload',
|
|
1925
|
+
'ViewCardsDisplay',
|
|
1926
|
+
'ViewGalleryDisplay',
|
|
1927
|
+
'CompactMessage',
|
|
1928
|
+
// The OAuth closure. Every object in it is published closed today; the ten enums and the two
|
|
1929
|
+
// array components take no additionalProperties at all, and `OAuthProviderData`/`OAuthClientData`
|
|
1930
|
+
// are composed rather than hoisted so they have no component to list.
|
|
1931
|
+
'SuccessResponse',
|
|
1932
|
+
'OAuthProvider',
|
|
1933
|
+
'CreateOAuthProviderPayload',
|
|
1934
|
+
'UpdateOAuthProviderPayload',
|
|
1935
|
+
'OAuthProviderAuthStatus',
|
|
1936
|
+
'OAuthProviderAuthorizeResponse',
|
|
1937
|
+
'OAuthProviderAccessTokenResponse',
|
|
1938
|
+
'OAuthProviderExchangePayload',
|
|
1939
|
+
'OAuthClient',
|
|
1940
|
+
'OAuthClientCreateResponse',
|
|
1941
|
+
'OAuthClientScopeMetadata',
|
|
1942
|
+
'CreateOAuthClientPayload',
|
|
1943
|
+
'UpdateOAuthClientPayload',
|
|
1944
|
+
'OAuthGrant',
|
|
1945
|
+
'BulkRevokeOAuthGrantsPayload',
|
|
1946
|
+
'OAuthGrantListResponse',
|
|
1947
|
+
'OAuthGrantRevokeResponse',
|
|
1948
|
+
// Expanded into parameters rather than published, like the zeno and project query components.
|
|
1949
|
+
'ListOAuthGrantsQuery',
|
|
1950
|
+
'RevokeOAuthGrantQuery',
|
|
1951
|
+
// The environment closure. Every object here is published closed today EXCEPT
|
|
1952
|
+
// `ExecutionEnvironmentSettings`, which carries an index signature and publishes
|
|
1953
|
+
// `additionalProperties: {}` so a driver-specific setting this build has never heard of still
|
|
1954
|
+
// round-trips; it is deliberately absent from this list. The six enums take no
|
|
1955
|
+
// additionalProperties at all.
|
|
1956
|
+
'ExecutionEnvironment',
|
|
1957
|
+
'ExecutionEnvironmentRef',
|
|
1958
|
+
'ExecutionEnvironmentCreatePayload',
|
|
1959
|
+
'ExecutionEnvironmentUpdatePayload',
|
|
1960
|
+
'ExecutionEnvironmentConfigUpdatePayload',
|
|
1961
|
+
'EnableEnvironmentModelPayload',
|
|
1962
|
+
'VirtualEnvEntry',
|
|
1963
|
+
'LoadBalancingEnvConfig',
|
|
1964
|
+
'LoadBalancingEnvEntryConfig',
|
|
1965
|
+
'MediatorEnvConfig',
|
|
1966
|
+
'AIModel',
|
|
1967
|
+
'RunAnalyticsQuery',
|
|
1968
|
+
'RunAnalyticsResult',
|
|
1969
|
+
'AnalyticsAxis',
|
|
1970
|
+
'EmbeddingsApiRequest',
|
|
1971
|
+
'EmbeddingsApiSource',
|
|
1972
|
+
'EmbeddingsApiTextInput',
|
|
1973
|
+
'EmbeddingsApiImageInput',
|
|
1974
|
+
'EmbeddingsApiVideoInput',
|
|
1975
|
+
'EmbeddingsApiAudioInput',
|
|
1976
|
+
'EmbeddingsResult',
|
|
1977
|
+
'EmbeddingResultItem',
|
|
1978
|
+
'EmbeddingOutput',
|
|
1979
|
+
'EmbeddingsTokenUsage',
|
|
1980
|
+
// Expanded into parameters. `ListEnvironmentsQuery` and `ModelSearchPayload` are the two the
|
|
1981
|
+
// `/environments` resources take.
|
|
1982
|
+
'ListEnvironmentsQuery',
|
|
1983
|
+
'ModelSearchPayload',
|
|
1984
|
+
// The interaction, prompt, run and agent-conversation closure. Every name here is published
|
|
1985
|
+
// closed today.
|
|
1986
|
+
//
|
|
1987
|
+
// What is deliberately absent, and why, because the list is long enough that absence has to be
|
|
1988
|
+
// readable: the enums and string constants (`InteractionStatus`, `PromptStatus`, `TemplateType`,
|
|
1989
|
+
// `PromptSegmentDefType`, `InteractionVisibility`, `ExecutionRunStatus`, `RunSourceTypes`,
|
|
1990
|
+
// `ModelSource`, `LlmCallType`, `AgentSearchScope`, `AgentSearchScope_Collection`,
|
|
1991
|
+
// `AgentResourceAction`, `AgentResourceType`, `AgentToolApprovalMode`, `ConversationVisibility`,
|
|
1992
|
+
// `SortOrder`, `AsyncCompletionMode`, `PromptRole`, `Modalities`) and the array components take
|
|
1993
|
+
// no `additionalProperties` at all; the unions (`UserChannel`, `CompletionResult`,
|
|
1994
|
+
// `AsyncExecutionPayload`) and the `$ref` alias `ExecutionRunInteraction` take none either; and
|
|
1995
|
+
// the maps (`NumberValueMap`, `ToolApprovalGrantMap`, `ExternalizedToolInputRefs`,
|
|
1996
|
+
// `GeneratedTestDataRecord`, `GeneratedTestDataRecordArray`, `JSONObject`,
|
|
1997
|
+
// `ComputedFacetResponse`) publish a VALUE schema there rather than a policy. `ToolResultMeta`,
|
|
1998
|
+
// `AsyncInteractionExecutionPayload` and `AsyncConversationExecutionPayload` are open today and
|
|
1999
|
+
// stay open.
|
|
2000
|
+
'PromptSegment',
|
|
2001
|
+
'DataSource',
|
|
2002
|
+
'ToolDefinition',
|
|
2003
|
+
'ToolUse',
|
|
2004
|
+
'TextResult',
|
|
2005
|
+
'JsonResult',
|
|
2006
|
+
'ImageResult',
|
|
2007
|
+
'ExecutionTokenUsage',
|
|
2008
|
+
'StatelessExecutionOptions',
|
|
2009
|
+
'SchemaRef',
|
|
2010
|
+
'CachePolicy',
|
|
2011
|
+
'PromptModalities',
|
|
2012
|
+
'PromptTemplate',
|
|
2013
|
+
'PromptTemplateCreatePayload',
|
|
2014
|
+
'PromptTemplateUpdatePayload',
|
|
2015
|
+
'PromptTemplateRef',
|
|
2016
|
+
'PromptSegmentDef',
|
|
2017
|
+
'PromptSegmentRef_PromptTemplateRef',
|
|
2018
|
+
'InCodePrompt',
|
|
2019
|
+
'Interaction',
|
|
2020
|
+
'InteractionRef',
|
|
2021
|
+
'InteractionName',
|
|
2022
|
+
'ExportedPromptTemplateRef',
|
|
2023
|
+
'PromptSegmentRef_ExportedPromptTemplateRef',
|
|
2024
|
+
'InteractionRefWithSchema',
|
|
2025
|
+
'InteractionTags',
|
|
2026
|
+
'InteractionEndpoint',
|
|
2027
|
+
'InteractionEndpointQuery',
|
|
2028
|
+
'InteractionCreatePayload',
|
|
2029
|
+
'InteractionUpdatePayload',
|
|
2030
|
+
'InteractionPublishPayload',
|
|
2031
|
+
'InteractionForkPayload',
|
|
2032
|
+
'InteractionsExportPayload',
|
|
2033
|
+
'CatalogInteractionRef',
|
|
2034
|
+
'ResolvedEnvironmentInfo',
|
|
2035
|
+
'ResolvedInteractionExecutionInfo',
|
|
2036
|
+
'FacetSpec',
|
|
2037
|
+
'ComputeInteractionFacetPayload',
|
|
2038
|
+
'ImprovePromptPayloadConfig',
|
|
2039
|
+
'ImprovePromptPayload',
|
|
2040
|
+
'PromptImprovementResponse',
|
|
2041
|
+
'GenerateTestDataPayload',
|
|
2042
|
+
'GenerateInteractionPayload',
|
|
2043
|
+
'GeneratedInteractionDefinition',
|
|
2044
|
+
'GeneratedInteractionPromptTemplate',
|
|
2045
|
+
'GeneratedInteractionPromptSegment',
|
|
2046
|
+
'AgentRunnerOptions',
|
|
2047
|
+
'SkillContextTriggers',
|
|
2048
|
+
'InitialToolCall',
|
|
2049
|
+
'ConversationStripOptions',
|
|
2050
|
+
'StreamingOptions',
|
|
2051
|
+
'StreamingTelemetryContext',
|
|
2052
|
+
'ResolvedRuntimeConfig',
|
|
2053
|
+
'InteractiveChannel',
|
|
2054
|
+
'EmailChannel',
|
|
2055
|
+
'ToolReference',
|
|
2056
|
+
'ToolResult',
|
|
2057
|
+
'ExternalizedToolInputRef',
|
|
2058
|
+
'ToolApprovalGrant',
|
|
2059
|
+
'PendingToolApprovalResults',
|
|
2060
|
+
'AgentResourceReference',
|
|
2061
|
+
'PendingMcpConnection',
|
|
2062
|
+
'UsedSkill',
|
|
2063
|
+
'PlanTask',
|
|
2064
|
+
'Plan',
|
|
2065
|
+
'WorkflowAncestor',
|
|
2066
|
+
'TextArtifactReference',
|
|
2067
|
+
'ConversationState',
|
|
2068
|
+
'RunSource',
|
|
2069
|
+
'ExecutionRunDocRef',
|
|
2070
|
+
'ExecutionRunWorkflow',
|
|
2071
|
+
'ExecutionRun',
|
|
2072
|
+
'ExecutionRunRef',
|
|
2073
|
+
'UpdateExecutionRunPayload',
|
|
2074
|
+
'RunCreatePayload',
|
|
2075
|
+
'SortOption',
|
|
2076
|
+
'RunSearchPayload',
|
|
2077
|
+
'InteractionExecutionPayload',
|
|
2078
|
+
'NamedInteractionExecutionPayload',
|
|
2079
|
+
'InteractionExecutionResult',
|
|
2080
|
+
'PopulatedExecutionRunResult',
|
|
2081
|
+
'LegacyExecutionRunResult',
|
|
2082
|
+
'LegacyPopulatedExecutionRunResult',
|
|
2083
|
+
'InteractionExecutionError',
|
|
2084
|
+
'ResultStorageOptions',
|
|
2085
|
+
'AsyncCompletionOptions',
|
|
2086
|
+
'AsyncExecutionResult',
|
|
2087
|
+
'RateLimitRequestPayload',
|
|
2088
|
+
'RateLimitRequestResponse',
|
|
2089
|
+
// Expanded into parameters rather than published, like every query contract above.
|
|
2090
|
+
// `ExecuteInteractionByEndpointHeaders` is listed for symmetry only: header validation matches
|
|
2091
|
+
// declared names and leaves everything else alone, so strictness cannot reject a real request.
|
|
2092
|
+
'InteractionSearchQuery',
|
|
2093
|
+
'RunSearchQuery',
|
|
2094
|
+
'RunListQuery',
|
|
2095
|
+
'CatalogTagQuery',
|
|
2096
|
+
'StoredCatalogInteractionsQuery',
|
|
2097
|
+
'ResolveInteractionQuery',
|
|
2098
|
+
'ExecuteInteractionByEndpointQuery',
|
|
2099
|
+
'ExecuteInteractionByEndpointHeaders',
|
|
2100
|
+
// The prompt-authoring, project-tool, remote-MCP, audit-trail and view-experience closures.
|
|
2101
|
+
// Every name here is published closed today.
|
|
2102
|
+
'ValidateToolNamesPayload',
|
|
2103
|
+
'ToolValidationResult',
|
|
2104
|
+
'AggregatedTool',
|
|
2105
|
+
'ValidateToolNamesResponse',
|
|
2106
|
+
'RenderPromptResponse',
|
|
2107
|
+
'PromptTemplateInteractionVersion',
|
|
2108
|
+
'PromptTemplateForkPayload',
|
|
2109
|
+
'PromptSearchQuery',
|
|
2110
|
+
'PromptTemplateInteractionUsage',
|
|
2111
|
+
'ComputePromptFacetPayload',
|
|
2112
|
+
'PromptTemplateInteractionsResponse',
|
|
2113
|
+
'MCPToolAnnotations',
|
|
2114
|
+
'McpOAuthTokenResponse',
|
|
2115
|
+
'McpOAuthTokenRequest',
|
|
2116
|
+
'OAuthAuthStatus',
|
|
2117
|
+
'OAuthMetadataResponse',
|
|
2118
|
+
'McpOAuthDisconnectResponse',
|
|
2119
|
+
'McpOAuthConnectResponse',
|
|
2120
|
+
'OAuthAuthorizeResponse',
|
|
2121
|
+
'AuditMeter',
|
|
2122
|
+
'AuditAggregationDimensionMap',
|
|
2123
|
+
'AuditAggregationRow',
|
|
2124
|
+
'AuditAggregationMetric',
|
|
2125
|
+
'AuditAggregationGroup',
|
|
2126
|
+
'AuditAggregationDetailFilter',
|
|
2127
|
+
'AuditTrailEvent',
|
|
2128
|
+
'AuditAggregationResponse',
|
|
2129
|
+
'AuditAggregationFilter',
|
|
2130
|
+
'AuditTrailResponse',
|
|
2131
|
+
'AuditAggregationQuery',
|
|
2132
|
+
'ViewSortClause',
|
|
2133
|
+
'ViewResultMedia',
|
|
2134
|
+
'ViewBoardColumn',
|
|
2135
|
+
'ViewTableColumn',
|
|
2136
|
+
'AgenticViewSearchConfiguration',
|
|
2137
|
+
'ViewSearchFieldDefinition',
|
|
2138
|
+
'ViewRangeDefinition',
|
|
2139
|
+
'ViewHierarchyLevel',
|
|
2140
|
+
'ViewTermsNavigation',
|
|
2141
|
+
'ViewCollectionNavigation',
|
|
2142
|
+
'ViewLocationNavigation',
|
|
2143
|
+
'ViewExperienceLayout',
|
|
2144
|
+
'ViewSortOption',
|
|
2145
|
+
'ViewResultField',
|
|
2146
|
+
'ViewTableDisplay',
|
|
2147
|
+
'ViewListDisplay',
|
|
2148
|
+
'ViewKeyTermDefinition',
|
|
2149
|
+
'ViewRangeNavigation',
|
|
2150
|
+
'ViewHierarchyNavigation',
|
|
2151
|
+
'ViewExperienceScope',
|
|
2152
|
+
'ViewBoardCardConfiguration',
|
|
2153
|
+
'ViewSearchConfiguration',
|
|
2154
|
+
'ViewBoardDisplay',
|
|
2155
|
+
'ViewCardsDisplay',
|
|
2156
|
+
'ViewGalleryDisplay',
|
|
2157
|
+
'ViewResultsConfiguration',
|
|
2158
|
+
'CreateViewExperienceRequest',
|
|
2159
|
+
'ViewExperience',
|
|
2160
|
+
'UpdateViewExperienceRequest',
|
|
2161
|
+
'ListProjectToolsQuery',
|
|
2162
|
+
'AuditTrailQuery',
|
|
2163
|
+
'ViewExperienceListQuery',
|
|
2164
|
+
'UpdateAppInstallationToolAllowlistPayload',
|
|
2165
|
+
'ValidateUrlResponse',
|
|
2166
|
+
'ValidateUrlRequest',
|
|
2167
|
+
'AppVersionUrls',
|
|
2168
|
+
'StartAppScaffoldResponse',
|
|
2169
|
+
'StartAppBuildResponse',
|
|
2170
|
+
'AppDevelopmentTask',
|
|
2171
|
+
'AppInstallationProviderBinding',
|
|
2172
|
+
'AppInstallationOAuthBinding',
|
|
2173
|
+
'OAuthClientCredentials',
|
|
2174
|
+
'AppInspectionCapabilityReport',
|
|
2175
|
+
'AppRepoTreeEntry',
|
|
2176
|
+
'AppRepoRef',
|
|
2177
|
+
'AppRepoCommit',
|
|
2178
|
+
'EventRef',
|
|
2179
|
+
'InCodeTypeRef',
|
|
2180
|
+
'StoredTypeRef',
|
|
2181
|
+
'DeleteAppVersionResponse',
|
|
2182
|
+
'AppRepoBranch',
|
|
2183
|
+
'AppRepoDocumentCommit',
|
|
2184
|
+
'AppVersionGitSource',
|
|
2185
|
+
'StartAppScaffoldRequest',
|
|
2186
|
+
'StartAppBuildRequest',
|
|
2187
|
+
'AgentToolDefinition',
|
|
2188
|
+
'AppDevelopmentTaskList',
|
|
2189
|
+
'AppInspectionIssue',
|
|
2190
|
+
'AppScaffoldProgress',
|
|
2191
|
+
'AppRepoTree',
|
|
2192
|
+
'AppRepoRefs',
|
|
2193
|
+
'AppRepoCommits',
|
|
2194
|
+
'AppBuildProgress',
|
|
2195
|
+
'AppVersionStorage',
|
|
2196
|
+
'AppToolCollection',
|
|
2197
|
+
'AppInspectionResult',
|
|
2198
|
+
'AppVersionRecord',
|
|
2199
|
+
'AgentRunSearchHit',
|
|
2200
|
+
'UpsertAppVersionRequest',
|
|
2201
|
+
'AppInstallationPayload',
|
|
2202
|
+
'AppDevelopmentTaskDetails',
|
|
2203
|
+
'AppInstallationsQuery',
|
|
2204
|
+
'AppInstallationProjectsQuery',
|
|
2205
|
+
'SystemPackageQuery',
|
|
2206
|
+
'WebsiteCredentialTotpMetadata',
|
|
2207
|
+
'WebsiteCredentialSecretInput',
|
|
2208
|
+
'WebsiteCredentialWebsite',
|
|
2209
|
+
'CompositeAppNavItemPermissions',
|
|
2210
|
+
'CompositeAppEntry',
|
|
2211
|
+
'CompositeAppHomePlugin',
|
|
2212
|
+
'CompositeAppThemeOverrides',
|
|
2213
|
+
'CompositeAppUserMenuOverrides',
|
|
2214
|
+
'CompositeAppHeaderOverrides',
|
|
2215
|
+
'CompositeAppSidebarOverrides',
|
|
2216
|
+
'CompositeAppSwitchersOverrides',
|
|
2217
|
+
'CompositeAppLogoOverrides',
|
|
2218
|
+
'CompositeAppCardOverrides',
|
|
2219
|
+
'WebsiteCredentialRecord',
|
|
2220
|
+
'InCodeViewDefinition',
|
|
2221
|
+
'InCodeProcessDefinition',
|
|
2222
|
+
'AppInstallation',
|
|
2223
|
+
'AskUserWebhookConfiguration',
|
|
2224
|
+
'ResendConfiguration',
|
|
2225
|
+
'LinkupConfiguration',
|
|
2226
|
+
'ExaConfiguration',
|
|
2227
|
+
'SerperConfiguration',
|
|
2228
|
+
'GithubConfiguration',
|
|
2229
|
+
'GladiaConfiguration',
|
|
2230
|
+
'RemoteActivityDefinition',
|
|
2231
|
+
'AppWidgetInfo',
|
|
2232
|
+
'AppDashboardDefinition',
|
|
2233
|
+
'WebsiteCredentialFillResponse',
|
|
2234
|
+
'WebsiteCredentialFillRequest',
|
|
2235
|
+
'DeleteSecretResponse',
|
|
2236
|
+
'WebsiteCredentialMetadata',
|
|
2237
|
+
'AppManifestData',
|
|
2238
|
+
'WebsiteCredentialMetadataUpdate',
|
|
2239
|
+
'AskUserWebhookConfigurationInput',
|
|
2240
|
+
'ResendConfigurationInput',
|
|
2241
|
+
'LinkupConfigurationInput',
|
|
2242
|
+
'ExaConfigurationInput',
|
|
2243
|
+
'SerperConfigurationInput',
|
|
2244
|
+
'MagicPdfConfiguration',
|
|
2245
|
+
'AwsConfiguration',
|
|
2246
|
+
'GithubConfigurationInput',
|
|
2247
|
+
'GladiaConfigurationInput',
|
|
2248
|
+
'CompositeAppMenuNavItem',
|
|
2249
|
+
'CompositeAppHeaderItem',
|
|
2250
|
+
'CompositeAppMessageOverrides',
|
|
2251
|
+
'AppManifest',
|
|
2252
|
+
'SecretRecord',
|
|
2253
|
+
'AppInstallationWithManifest',
|
|
2254
|
+
'AppInstallationListEntry',
|
|
2255
|
+
'CreateSecretRequest',
|
|
2256
|
+
'UpdateSecretRequest',
|
|
2257
|
+
'CompositeAppMenuSection',
|
|
2258
|
+
'PromoteAppVersionResponse',
|
|
2259
|
+
'ListSecretsResponse',
|
|
2260
|
+
'CompositeAppConfig',
|
|
2261
|
+
'AppPackage',
|
|
2262
|
+
'BucketReadAccessQuery',
|
|
2263
|
+
'BucketReadAccessStatusResponse',
|
|
2264
|
+
'EnsureBucketReadAccessPayload',
|
|
2265
|
+
'EnsureBucketReadAccessResponse',
|
|
2266
|
+
'MigrateInteractionsPayload',
|
|
2267
|
+
'MigrateInteractionsResult',
|
|
2268
|
+
'PricingSyncPayload',
|
|
2269
|
+
'PricingSyncDayResult',
|
|
2270
|
+
'PricingSyncResult',
|
|
2271
|
+
'ComputeRunFacetPayload',
|
|
2272
|
+
'RunSearchMetaResponse',
|
|
2273
|
+
'ToolResultsPayload',
|
|
2274
|
+
'UserMessagePayload',
|
|
2275
|
+
'ExecutionResponse',
|
|
2276
|
+
'RunClonePayload',
|
|
2277
|
+
'IngestAgentEventsPayload',
|
|
2278
|
+
'IngestAgentEventsResponse',
|
|
2279
|
+
'ActivityTypeDefinition',
|
|
2280
|
+
'ActivityPropertyDefinition',
|
|
2281
|
+
'ActivityDefinition',
|
|
2282
|
+
'ActivityCatalog',
|
|
2283
|
+
'WorkflowInteractionVars',
|
|
2284
|
+
'ListWorkflowInteractionsResponse',
|
|
2285
|
+
'EventWebhookSigningSecretRequest',
|
|
2286
|
+
'EventWebhookSigningSecretResponse',
|
|
2287
|
+
'SignEventWebhookRequest',
|
|
2288
|
+
'SignEventWebhookResponse',
|
|
2289
|
+
'EventIngestSigningSecretRequest',
|
|
2290
|
+
'EventIngestSigningSecretResponse',
|
|
2291
|
+
'VerifyEventIngestSignatureRequest',
|
|
2292
|
+
'VerifyEventIngestSignatureResponse',
|
|
2293
|
+
'GithubInstallationTokenRequest',
|
|
2294
|
+
'GithubInstallationTokenResponse',
|
|
2295
|
+
'InternalSecretDeleteResponse',
|
|
2296
|
+
]);
|
|
2297
|
+
/**
|
|
2298
|
+
* Emits raw JSON Schema for each registered schema.
|
|
2299
|
+
*
|
|
2300
|
+
* `io: 'input'` is deliberate and is NOT a request/response distinction — it selects the
|
|
2301
|
+
* permissive emission in which `additionalProperties` is omitted. Request and response contracts
|
|
2302
|
+
* that differ in fields or secret exposure need genuinely separate schemas; one schema cannot
|
|
2303
|
+
* serve both. The adapter applies the open/closed policy explicitly afterwards.
|
|
2304
|
+
*
|
|
2305
|
+
* `toJSONSchema` throws on constructs that cannot be represented (notably `.transform()`), which
|
|
2306
|
+
* is the guard we want: an API schema that cannot be published is a build failure, not a silent
|
|
2307
|
+
* divergence. Note that `.refine()` is silently DROPPED rather than rejected, so refinements must
|
|
2308
|
+
* not be used to express contract rules — they would be invisible to both the spec and AJV.
|
|
2309
|
+
*/
|
|
2310
|
+
function emitRawSchemas() {
|
|
2311
|
+
return Object.fromEntries(Object.entries(API_SCHEMAS).map(([name, schema]) => [
|
|
2312
|
+
name,
|
|
2313
|
+
z.toJSONSchema(schema, { target: 'draft-2020-12', io: 'input' }),
|
|
2314
|
+
]));
|
|
2315
|
+
}
|
|
2316
|
+
/**
|
|
2317
|
+
* The canonical `components.schemas` for all documented endpoints.
|
|
2318
|
+
*
|
|
2319
|
+
* This exact object is what the OpenAPI spec publishes AND what AJV compiles, so the published
|
|
2320
|
+
* contract and the enforced contract cannot diverge.
|
|
2321
|
+
*/
|
|
2322
|
+
export const ApiSchemaComponents = toOpenApiComponents(emitRawSchemas(), {
|
|
2323
|
+
strictComponents: STRICT_COMPONENTS,
|
|
2324
|
+
});
|
|
2325
|
+
/**
|
|
2326
|
+
* A canonical component as a SELF-CONTAINED JSON Schema, for consumers that compile it directly.
|
|
2327
|
+
*
|
|
2328
|
+
* The published component `$ref`s its neighbours through `#/components/schemas/...`, which resolves
|
|
2329
|
+
* only inside the OpenAPI document. AJV and the Monaco editor need a document they can compile on
|
|
2330
|
+
* its own, so the transitive closure is inlined under `$defs` and the pointers rewritten. Nothing
|
|
2331
|
+
* about the shapes changes — this is a re-rooting of the same objects, plus the removal of the
|
|
2332
|
+
* OpenAPI-only discriminator keywords described below, which is what lets a generated artifact be
|
|
2333
|
+
* compared with the component it came from.
|
|
2334
|
+
*/
|
|
2335
|
+
export function bundleCanonicalComponent(name) {
|
|
2336
|
+
const seen = new Set();
|
|
2337
|
+
const queue = [name];
|
|
2338
|
+
while (queue.length > 0) {
|
|
2339
|
+
const current = queue.shift();
|
|
2340
|
+
if (seen.has(current))
|
|
2341
|
+
continue;
|
|
2342
|
+
seen.add(current);
|
|
2343
|
+
for (const referenced of collectComponentRefs(ApiSchemaComponents[current])) {
|
|
2344
|
+
if (!seen.has(referenced))
|
|
2345
|
+
queue.push(referenced);
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
seen.delete(name);
|
|
2349
|
+
const defs = {};
|
|
2350
|
+
for (const dependency of [...seen].sort()) {
|
|
2351
|
+
defs[dependency] = toPlainJsonSchema(ApiSchemaComponents[dependency]);
|
|
2352
|
+
}
|
|
2353
|
+
const root = toPlainJsonSchema(ApiSchemaComponents[name]);
|
|
2354
|
+
return seen.size > 0 ? { ...root, $defs: defs } : root;
|
|
2355
|
+
}
|
|
2356
|
+
const COMPONENT_REF_PREFIX = '#/components/schemas/';
|
|
2357
|
+
/**
|
|
2358
|
+
* Re-roots the component pointers AND drops the discriminator keywords, which are OpenAPI's, not
|
|
2359
|
+
* JSON Schema's.
|
|
2360
|
+
*
|
|
2361
|
+
* `synthesizeDiscriminator` in the adapter gives a discriminated union a `discriminator` plus a
|
|
2362
|
+
* restated `type: 'object'` and `required: [propertyName]` ON THE UNION NODE, so a generated
|
|
2363
|
+
* Java/Go client can pick a subtype from the union rather than the branches. That restatement is a
|
|
2364
|
+
* codegen hint: the node carries no `properties`, so it says "an object that must have
|
|
2365
|
+
* `_option_id`" while declaring nothing that could be one.
|
|
2366
|
+
*
|
|
2367
|
+
* A JSON Schema validator does not mind — `required` needs no matching `properties`, and each
|
|
2368
|
+
* branch requires the same key anyway, so removing all three is validation-neutral. Gemini's
|
|
2369
|
+
* function-declaration validator does mind, and rejects the whole tool:
|
|
2370
|
+
*
|
|
2371
|
+
* schema at properties.intake.properties.extraction.properties.config.properties.model_options
|
|
2372
|
+
* requires unspecified property '_option_id'
|
|
2373
|
+
*
|
|
2374
|
+
* That was a 400 on every agent turn offering `create_or_update_type`, because the intake-policy
|
|
2375
|
+
* artifact reaches Vertex inside that tool's input schema. Stripping here rather than at the tool
|
|
2376
|
+
* keeps the next component someone bundles from reintroducing it. The OpenAPI document is untouched
|
|
2377
|
+
* — `ApiSchemaComponents` still carries the hint, and the generated clients still read it.
|
|
2378
|
+
*/
|
|
2379
|
+
function toPlainJsonSchema(value) {
|
|
2380
|
+
const rerooted = rerootComponentRefs(value);
|
|
2381
|
+
return stripDiscriminators(rerooted);
|
|
2382
|
+
}
|
|
2383
|
+
function stripDiscriminators(value) {
|
|
2384
|
+
if (Array.isArray(value))
|
|
2385
|
+
return value.map(stripDiscriminators);
|
|
2386
|
+
if (!value || typeof value !== 'object')
|
|
2387
|
+
return value;
|
|
2388
|
+
const node = value;
|
|
2389
|
+
// `properties` present means the node describes an object in its own right, so its `type` and
|
|
2390
|
+
// `required` are the schema's own rather than the restatement — only the OpenAPI keyword goes.
|
|
2391
|
+
const restated = node.discriminator !== undefined && node.properties === undefined;
|
|
2392
|
+
const out = {};
|
|
2393
|
+
for (const [key, item] of Object.entries(node)) {
|
|
2394
|
+
if (key === 'discriminator')
|
|
2395
|
+
continue;
|
|
2396
|
+
if (restated && (key === 'type' || key === 'required'))
|
|
2397
|
+
continue;
|
|
2398
|
+
out[key] = stripDiscriminators(item);
|
|
2399
|
+
}
|
|
2400
|
+
return out;
|
|
2401
|
+
}
|
|
2402
|
+
function collectComponentRefs(value, out = new Set()) {
|
|
2403
|
+
if (Array.isArray(value)) {
|
|
2404
|
+
for (const item of value)
|
|
2405
|
+
collectComponentRefs(item, out);
|
|
2406
|
+
return out;
|
|
2407
|
+
}
|
|
2408
|
+
if (!value || typeof value !== 'object')
|
|
2409
|
+
return out;
|
|
2410
|
+
for (const [key, item] of Object.entries(value)) {
|
|
2411
|
+
if (key === '$ref' && typeof item === 'string' && item.startsWith(COMPONENT_REF_PREFIX)) {
|
|
2412
|
+
out.add(item.slice(COMPONENT_REF_PREFIX.length));
|
|
2413
|
+
}
|
|
2414
|
+
else {
|
|
2415
|
+
collectComponentRefs(item, out);
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
return out;
|
|
2419
|
+
}
|
|
2420
|
+
function rerootComponentRefs(value) {
|
|
2421
|
+
if (Array.isArray(value))
|
|
2422
|
+
return value.map(rerootComponentRefs);
|
|
2423
|
+
if (!value || typeof value !== 'object')
|
|
2424
|
+
return value;
|
|
2425
|
+
const out = {};
|
|
2426
|
+
for (const [key, item] of Object.entries(value)) {
|
|
2427
|
+
out[key] =
|
|
2428
|
+
key === '$ref' && typeof item === 'string' && item.startsWith(COMPONENT_REF_PREFIX)
|
|
2429
|
+
? `#/$defs/${item.slice(COMPONENT_REF_PREFIX.length)}`
|
|
2430
|
+
: rerootComponentRefs(item);
|
|
2431
|
+
}
|
|
2432
|
+
return out;
|
|
2433
|
+
}
|
|
2434
|
+
/** The `$ref` pointer for a component, in the same spelling the spec publishes. */
|
|
2435
|
+
export function apiComponentRef(name) {
|
|
2436
|
+
return `#/components/schemas/${name}`;
|
|
2437
|
+
}
|
|
2438
|
+
/**
|
|
2439
|
+
* Validators compiled against the published components, through an envelope so the pointer AJV
|
|
2440
|
+
* resolves is the exact pointer the spec publishes. `strictSchema: false` tolerates the
|
|
2441
|
+
* `components` wrapper while leaving type and tuple checks active.
|
|
2442
|
+
*
|
|
2443
|
+
* Compiled lazily and cached: AJV compilation is the expensive step, and most components are
|
|
2444
|
+
* never validated in a given process.
|
|
2445
|
+
*/
|
|
2446
|
+
const validators = new Map();
|
|
2447
|
+
/**
|
|
2448
|
+
* One instance for the process, built on first validation.
|
|
2449
|
+
*
|
|
2450
|
+
* Per-component instances meant re-registering the whole thousand-component envelope for every
|
|
2451
|
+
* component ever validated, and AJV walks a schema when it is added. Sharing one instance also lets
|
|
2452
|
+
* it reuse the compiled form of a component that two others reference.
|
|
2453
|
+
*/
|
|
2454
|
+
let ajvInstance;
|
|
2455
|
+
function getAjv() {
|
|
2456
|
+
if (ajvInstance)
|
|
2457
|
+
return ajvInstance;
|
|
2458
|
+
const ajv = new Ajv2020({ strictSchema: false, allErrors: true });
|
|
2459
|
+
// Without this, AJV treats `format` as an annotation and ignores it, so a `date-time` property
|
|
2460
|
+
// would document a constraint nothing checks — the exact spec/enforcement gap this design is
|
|
2461
|
+
// meant to close.
|
|
2462
|
+
addFormats(ajv);
|
|
2463
|
+
ajv.addSchema({ $id: 'vertesia://openapi', components: { schemas: ApiSchemaComponents } });
|
|
2464
|
+
ajvInstance = ajv;
|
|
2465
|
+
return ajv;
|
|
2466
|
+
}
|
|
2467
|
+
function getValidator(name) {
|
|
2468
|
+
const cached = validators.get(name);
|
|
2469
|
+
if (cached)
|
|
2470
|
+
return cached;
|
|
2471
|
+
const validate = getAjv().compile({ $ref: `vertesia://openapi${apiComponentRef(name)}` });
|
|
2472
|
+
validators.set(name, validate);
|
|
2473
|
+
return validate;
|
|
2474
|
+
}
|
|
2475
|
+
function formatErrors(validate) {
|
|
2476
|
+
return (validate.errors ?? []).map((error) => {
|
|
2477
|
+
const where = error.instancePath || '/';
|
|
2478
|
+
// AJV writes "must NOT have additional properties" and puts the offending key in `params`,
|
|
2479
|
+
// so the message alone says a body is wrong without saying which property made it wrong.
|
|
2480
|
+
// Every other keyword names its subject already — `required` quotes the missing property,
|
|
2481
|
+
// `enum` and `type` describe the value in place — and this is the one a caller most often
|
|
2482
|
+
// trips, so it is the one worth spelling out rather than reformatting all of them.
|
|
2483
|
+
const additional = error.params?.additionalProperty;
|
|
2484
|
+
return additional ? `${where} ${error.message}: ${additional}` : `${where} ${error.message}`;
|
|
2485
|
+
});
|
|
2486
|
+
}
|
|
2487
|
+
/**
|
|
2488
|
+
* Validates an untyped request body against the component the endpoint publishes.
|
|
2489
|
+
*
|
|
2490
|
+
* Non-mutating by design. AJV's removal modes are never used here: the server would then accept a
|
|
2491
|
+
* body the published schema declares invalid, silently disagreeing with its own spec — and
|
|
2492
|
+
* `removeAdditional: 'all'` additionally empties freeform maps. An undeclared property is reported,
|
|
2493
|
+
* not deleted.
|
|
2494
|
+
*
|
|
2495
|
+
* The component type is handed back only on the `valid` branch, so a body missing required fields
|
|
2496
|
+
* cannot be typed as complete. What the caller does with a failure — reject, or log and continue —
|
|
2497
|
+
* is the endpoint's policy, not this function's.
|
|
2498
|
+
*/
|
|
2499
|
+
export function validateApiRequest(name, value) {
|
|
2500
|
+
const validate = getValidator(name);
|
|
2501
|
+
if (validate(value)) {
|
|
2502
|
+
return { valid: true, data: value };
|
|
2503
|
+
}
|
|
2504
|
+
return { valid: false, errors: formatErrors(validate) };
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
* Validates an already-mapped response against the component it is published as.
|
|
2508
|
+
*
|
|
2509
|
+
* Separate from {@link pruneAndValidateApiResponse} because a resource mapper has already produced
|
|
2510
|
+
* the wire shape: there is nothing to prune, and pruning would only mask a mapper bug. Use this at
|
|
2511
|
+
* the response boundary to detect drift between what the mapper builds and what the spec promises.
|
|
2512
|
+
*/
|
|
2513
|
+
export function validateApiResponse(name, value) {
|
|
2514
|
+
const validate = getValidator(name);
|
|
2515
|
+
if (validate(value)) {
|
|
2516
|
+
return { valid: true, data: value };
|
|
2517
|
+
}
|
|
2518
|
+
return { valid: false, errors: formatErrors(validate) };
|
|
2519
|
+
}
|
|
2520
|
+
/**
|
|
2521
|
+
* Best-effort normalization of a response payload towards the fields its published component
|
|
2522
|
+
* declares. Use this on the response path INSTEAD of an AJV removal mode, which would empty
|
|
2523
|
+
* freeform maps such as `Account.feature_flags`.
|
|
2524
|
+
*
|
|
2525
|
+
* NOT a secret-removal boundary. Ambiguous schema shapes pass values through untouched — see
|
|
2526
|
+
* {@link pruneToSchema} and check a component with {@link findUnprunablePaths} before treating its
|
|
2527
|
+
* output as closed. Fields that must never ship still need an explicit response mapper.
|
|
2528
|
+
*
|
|
2529
|
+
* Never throws and never rejects: an undocumented field is server-side drift, and failing the
|
|
2530
|
+
* response would punish the caller for it.
|
|
2531
|
+
*
|
|
2532
|
+
* Takes a value the caller has already typed as the component. Pruning only REMOVES undeclared
|
|
2533
|
+
* extras, so a conforming input yields a conforming output and the return type is honest. It does
|
|
2534
|
+
* NOT validate, which is why it cannot accept `unknown` — narrowing a payload that is missing
|
|
2535
|
+
* required fields would hand TypeScript a complete `Account` that does not exist at runtime. Use
|
|
2536
|
+
* {@link pruneAndValidateApiResponse} when the payload's shape is not already established.
|
|
2537
|
+
*
|
|
2538
|
+
* Request validation stays separate and non-mutating — pruning a request would make the server
|
|
2539
|
+
* silently disagree with the permissive schema it publishes.
|
|
2540
|
+
*/
|
|
2541
|
+
export function pruneApiResponse(name, value) {
|
|
2542
|
+
return pruneToSchema(value, { $ref: apiComponentRef(name) }, ApiSchemaComponents);
|
|
2543
|
+
}
|
|
2544
|
+
/**
|
|
2545
|
+
* Prunes an untyped payload and validates the result against the published component.
|
|
2546
|
+
*
|
|
2547
|
+
* The only sound entry point for a payload of unknown shape: the component type is handed back
|
|
2548
|
+
* exclusively on the `valid` branch, so a document missing required fields cannot be typed as
|
|
2549
|
+
* complete. On failure the pruned value is still returned — the caller decides whether to ship it
|
|
2550
|
+
* and log, or fail — which keeps the "never turn drift into a 500" property a policy choice rather
|
|
2551
|
+
* than something baked in here.
|
|
2552
|
+
*
|
|
2553
|
+
*/
|
|
2554
|
+
export function pruneAndValidateApiResponse(name, value) {
|
|
2555
|
+
const pruned = pruneToSchema(value, { $ref: apiComponentRef(name) }, ApiSchemaComponents);
|
|
2556
|
+
const validate = getValidator(name);
|
|
2557
|
+
if (validate(pruned)) {
|
|
2558
|
+
return { valid: true, data: pruned };
|
|
2559
|
+
}
|
|
2560
|
+
return { valid: false, data: pruned, errors: formatErrors(validate) };
|
|
2561
|
+
}
|
|
2562
|
+
/**
|
|
2563
|
+
* Paths inside a component where pruning cannot narrow. Empty means no STRUCTURAL gaps for
|
|
2564
|
+
* schema-conforming input — see {@link findUnprunablePaths} for why that is weaker than "nothing
|
|
2565
|
+
* can escape". Anything listed needs an explicit response mapper.
|
|
2566
|
+
*/
|
|
2567
|
+
export function findUnprunableApiPaths(name) {
|
|
2568
|
+
return findUnprunablePaths({ $ref: apiComponentRef(name) }, ApiSchemaComponents);
|
|
2569
|
+
}
|
|
2570
|
+
/**
|
|
2571
|
+
* Normalizes raw query or header text into the value a component describes.
|
|
2572
|
+
*
|
|
2573
|
+
* Binds {@link normalizeParameters} to {@link ApiSchemaComponents} — the same objects the OpenAPI
|
|
2574
|
+
* document publishes and {@link validateApiRequest} compiles. That is what keeps the published
|
|
2575
|
+
* parameter and the enforced one the same declaration: the scanner expands this component's
|
|
2576
|
+
* properties into `in: query` parameters, and the coercion below is decided by those same property
|
|
2577
|
+
* schemas, so neither can be changed without changing the other.
|
|
2578
|
+
*
|
|
2579
|
+
* Validate the result with {@link validateApiRequest}, which is non-coercing: everything type-related
|
|
2580
|
+
* has already happened here, so a value this could not coerce is reported against the published
|
|
2581
|
+
* schema rather than by a second rule.
|
|
2582
|
+
*/
|
|
2583
|
+
export function normalizeApiParameters(name, raw, location) {
|
|
2584
|
+
return normalizeParameters(name, raw, location, ApiSchemaComponents[name], ApiSchemaComponents);
|
|
2585
|
+
}
|
|
2586
|
+
//# sourceMappingURL=registry.js.map
|