@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,842 @@
|
|
|
1
|
+
// Runtime schemas for the content API domain.
|
|
2
|
+
import { JSONObjectSchema } from '@llumiverse/common/schemas';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ContentObjectStatus } from '../store/store.js';
|
|
5
|
+
import { ContentObjectTypeRefSchema } from './app-lifecycle.js';
|
|
6
|
+
import { StringArrayMapSchema } from './dashboard.js';
|
|
7
|
+
import { ComputedFacetResponseSchema, FacetSpecSchema, SortOptionSchema } from './interaction.js';
|
|
8
|
+
import { nullableStringSchema } from './schema-primitives.js';
|
|
9
|
+
import { ColumnLayoutSchema, ContentObjectTypeSchema, EmbeddingTypeEnabledMapSchema } from './store.js';
|
|
10
|
+
export const scoreAggregationTypesSchema = z.enum(['rrf', 'rsf', 'smart']).meta({ id: 'scoreAggregationTypes' });
|
|
11
|
+
export const dynamicScalingTypesSchema = z.enum(['off', 'on']).meta({ id: 'dynamicScalingTypes' });
|
|
12
|
+
export const ContentObjectProcessingPrioritySchema = z
|
|
13
|
+
.enum(['normal', 'low'])
|
|
14
|
+
.meta({ id: 'ContentObjectProcessingPriority' });
|
|
15
|
+
export const CostExportCsvResponseSchema = z.string().meta({ id: 'CostExportCsvResponse' });
|
|
16
|
+
export const GenerationRunMetadataSchema = z
|
|
17
|
+
.strictObject({
|
|
18
|
+
id: z.string(),
|
|
19
|
+
date: z.string(),
|
|
20
|
+
model: z.string(),
|
|
21
|
+
target: z.string().optional(),
|
|
22
|
+
extraction_fingerprint: z
|
|
23
|
+
.string()
|
|
24
|
+
.meta({
|
|
25
|
+
description: 'Fingerprint of the inputs used by property extraction (content etag, type + its object schema, source, instructions, interaction). Lets a later run skip re-extraction when nothing changed.',
|
|
26
|
+
})
|
|
27
|
+
.optional(),
|
|
28
|
+
})
|
|
29
|
+
.meta({ id: 'GenerationRunMetadata' });
|
|
30
|
+
export const ContentObjectUserPermissionsSchema = z
|
|
31
|
+
.strictObject({
|
|
32
|
+
can_write: z.boolean(),
|
|
33
|
+
can_delete: z.boolean(),
|
|
34
|
+
})
|
|
35
|
+
.meta({
|
|
36
|
+
id: 'ContentObjectUserPermissions',
|
|
37
|
+
description: "Computed per-request permissions for the current user on a content object. Not stored in the database — computed on the fly by the API from the object's security field.",
|
|
38
|
+
});
|
|
39
|
+
export const RevisionInfoSchema = z
|
|
40
|
+
.strictObject({
|
|
41
|
+
parent: z.string().meta({ description: 'Direct parent revision id (omit on the first revision)' }).optional(),
|
|
42
|
+
root: z.string().meta({ description: 'The root revision id (omit on the first revision)' }),
|
|
43
|
+
head: z.boolean().meta({ description: 'True if this revision is the head revision' }),
|
|
44
|
+
label: z.string().meta({ description: 'Human‑friendly tag or state ("v1.2", "approved")' }).optional(),
|
|
45
|
+
})
|
|
46
|
+
.meta({ id: 'RevisionInfo' });
|
|
47
|
+
export const ContentSourceSchema = z
|
|
48
|
+
.strictObject({
|
|
49
|
+
source: z.string().optional(),
|
|
50
|
+
type: z.string().optional(),
|
|
51
|
+
name: z.string().optional(),
|
|
52
|
+
etag: z.string().optional(),
|
|
53
|
+
})
|
|
54
|
+
.meta({ id: 'ContentSource' });
|
|
55
|
+
export const ContentObjectStatusSchema = z.enum(ContentObjectStatus).meta({ id: 'ContentObjectStatus' });
|
|
56
|
+
export const InheritedPropertyMetadataSchema = z
|
|
57
|
+
.strictObject({
|
|
58
|
+
name: z.string().meta({ description: 'The property name that was inherited' }),
|
|
59
|
+
collection: z.string().meta({ description: 'The collection ID that provided this property' }),
|
|
60
|
+
})
|
|
61
|
+
.meta({ id: 'InheritedPropertyMetadata', description: 'Metadata about a single inherited property.' });
|
|
62
|
+
export const TranscriptSegmentSchema = z
|
|
63
|
+
.strictObject({
|
|
64
|
+
start: z.number(),
|
|
65
|
+
text: z.string(),
|
|
66
|
+
speaker: z.number().optional(),
|
|
67
|
+
end: z.number().optional(),
|
|
68
|
+
confidence: z.number().optional(),
|
|
69
|
+
language: z.string().optional(),
|
|
70
|
+
})
|
|
71
|
+
.meta({ id: 'TranscriptSegment' });
|
|
72
|
+
export const EmbeddingSchema = z
|
|
73
|
+
.strictObject({
|
|
74
|
+
model: z.string(),
|
|
75
|
+
values: z.array(z.number()),
|
|
76
|
+
etag: z.string().optional(),
|
|
77
|
+
})
|
|
78
|
+
.meta({ id: 'Embedding' });
|
|
79
|
+
export const CollectionSecuritySettingsResponseSchema = z
|
|
80
|
+
.strictObject({
|
|
81
|
+
id: z.string(),
|
|
82
|
+
security: StringArrayMapSchema,
|
|
83
|
+
})
|
|
84
|
+
.meta({ id: 'CollectionSecuritySettingsResponse' });
|
|
85
|
+
export const CollectionMembersUpdateResultSchema = z
|
|
86
|
+
.strictObject({
|
|
87
|
+
id: z.string(),
|
|
88
|
+
})
|
|
89
|
+
.meta({ id: 'CollectionMembersUpdateResult' });
|
|
90
|
+
export const CollectionMembersUpdatePayloadSchema = z
|
|
91
|
+
.strictObject({
|
|
92
|
+
action: z.enum(['add', 'delete']),
|
|
93
|
+
members: z.array(z.string()),
|
|
94
|
+
})
|
|
95
|
+
.meta({ id: 'CollectionMembersUpdatePayload' });
|
|
96
|
+
export const CollectionChildrenUpdateResultSchema = z
|
|
97
|
+
.strictObject({
|
|
98
|
+
count: z.number(),
|
|
99
|
+
})
|
|
100
|
+
.meta({ id: 'CollectionChildrenUpdateResult' });
|
|
101
|
+
export const CollectionChildrenUpdatePayloadSchema = z
|
|
102
|
+
.strictObject({
|
|
103
|
+
action: z.enum(['add', 'delete']),
|
|
104
|
+
children: z.array(z.string()),
|
|
105
|
+
})
|
|
106
|
+
.meta({ id: 'CollectionChildrenUpdatePayload' });
|
|
107
|
+
export const StartContentObjectExportResponseSchema = z
|
|
108
|
+
.strictObject({
|
|
109
|
+
workflow_id: z.string(),
|
|
110
|
+
run_id: z.string(),
|
|
111
|
+
export_id: z.string(),
|
|
112
|
+
})
|
|
113
|
+
.meta({ id: 'StartContentObjectExportResponse' });
|
|
114
|
+
export const ExportContentObjectsIncludeOptionsSchema = z
|
|
115
|
+
.strictObject({
|
|
116
|
+
embeddings: z
|
|
117
|
+
.boolean()
|
|
118
|
+
.meta({ description: 'Include stored embeddings. Disabled by default for generic object exports.' })
|
|
119
|
+
.optional(),
|
|
120
|
+
content: z.boolean().meta({ description: 'Include content source metadata. Enabled by default.' }).optional(),
|
|
121
|
+
status: z.boolean().meta({ description: 'Include object lifecycle status. Enabled by default.' }).optional(),
|
|
122
|
+
properties: z.boolean().meta({ description: 'Include object properties. Enabled by default.' }).optional(),
|
|
123
|
+
metadata: z
|
|
124
|
+
.boolean()
|
|
125
|
+
.meta({
|
|
126
|
+
description: 'Include technical object metadata. Disabled by default because metadata may be large.',
|
|
127
|
+
})
|
|
128
|
+
.optional(),
|
|
129
|
+
revision: z.boolean().meta({ description: 'Include object revision details. Enabled by default.' }).optional(),
|
|
130
|
+
})
|
|
131
|
+
.meta({
|
|
132
|
+
id: 'ExportContentObjectsIncludeOptions',
|
|
133
|
+
description: 'Optional object context to include in content object export rows.',
|
|
134
|
+
});
|
|
135
|
+
export const ExportContentObjectsFilterSchema = z
|
|
136
|
+
.strictObject({
|
|
137
|
+
types: z.array(z.string()).optional(),
|
|
138
|
+
created_from: z.string().optional(),
|
|
139
|
+
created_to: z.string().optional(),
|
|
140
|
+
updated_from: z.string().optional(),
|
|
141
|
+
updated_to: z.string().optional(),
|
|
142
|
+
})
|
|
143
|
+
.meta({
|
|
144
|
+
id: 'ExportContentObjectsFilter',
|
|
145
|
+
description: 'Bounded filters supported by the bulk content object export API.',
|
|
146
|
+
});
|
|
147
|
+
export const SupportedEmbeddingTypesSchema = z
|
|
148
|
+
.enum(['text', 'image', 'properties'])
|
|
149
|
+
.meta({ id: 'SupportedEmbeddingTypes' });
|
|
150
|
+
export const SetObjectEmbeddingsResponseSchema = z
|
|
151
|
+
.strictObject({
|
|
152
|
+
type: EmbeddingSchema.optional(),
|
|
153
|
+
})
|
|
154
|
+
.meta({ id: 'SetObjectEmbeddingsResponse' });
|
|
155
|
+
export const ContentObjectApiRevisionSchema = z
|
|
156
|
+
.strictObject({
|
|
157
|
+
parent: z.string().optional(),
|
|
158
|
+
root: z.string(),
|
|
159
|
+
head: z.boolean(),
|
|
160
|
+
label: z.string().optional(),
|
|
161
|
+
})
|
|
162
|
+
.meta({ id: 'ContentObjectApiRevision' });
|
|
163
|
+
export const Record_SearchTypes_numberSchema = z
|
|
164
|
+
.object({})
|
|
165
|
+
.catchall(z.number())
|
|
166
|
+
.meta({ id: 'Record_SearchTypes_number' });
|
|
167
|
+
export const EmbeddingSearchConfigSchema = EmbeddingTypeEnabledMapSchema.meta({ id: 'EmbeddingSearchConfig' });
|
|
168
|
+
export const CollectionStatusSchema = z
|
|
169
|
+
.enum(['active', 'archived'])
|
|
170
|
+
.meta({ id: 'CollectionStatus' });
|
|
171
|
+
export const CollectionPropagationResponseSchema = z
|
|
172
|
+
.strictObject({
|
|
173
|
+
id: z.string(),
|
|
174
|
+
message: z.string(),
|
|
175
|
+
security: StringArrayMapSchema.optional(),
|
|
176
|
+
shared_properties: z.array(z.string()).optional(),
|
|
177
|
+
})
|
|
178
|
+
.meta({ id: 'CollectionPropagationResponse' });
|
|
179
|
+
export const ContentObjectTypeArraySchema = z.array(ContentObjectTypeSchema).meta({ id: 'ContentObjectTypeArray' });
|
|
180
|
+
export const ContentObjectExportArtifactFileSchema = z
|
|
181
|
+
.strictObject({
|
|
182
|
+
role: z.enum(['data', 'manifest']),
|
|
183
|
+
path: z.string(),
|
|
184
|
+
filename: z.string(),
|
|
185
|
+
content_type: z.string(),
|
|
186
|
+
bytes: z.number(),
|
|
187
|
+
})
|
|
188
|
+
.meta({ id: 'ContentObjectExportArtifactFile' });
|
|
189
|
+
export const ContentObjectTextResponseSchema = z
|
|
190
|
+
.strictObject({
|
|
191
|
+
text: z.string().optional(),
|
|
192
|
+
})
|
|
193
|
+
.meta({ id: 'ContentObjectTextResponse' });
|
|
194
|
+
export const GetRenditionResponseSchema = z
|
|
195
|
+
.strictObject({
|
|
196
|
+
status: z.enum(['found', 'generating', 'failed']),
|
|
197
|
+
renditions: z.array(z.string()).optional(),
|
|
198
|
+
workflow_run_id: z.string().optional(),
|
|
199
|
+
})
|
|
200
|
+
.meta({ id: 'GetRenditionResponse' });
|
|
201
|
+
export const ContentObjectExportResultSchema = z
|
|
202
|
+
.strictObject({
|
|
203
|
+
status: z.literal('completed'),
|
|
204
|
+
path: z.string(),
|
|
205
|
+
filename: z.string(),
|
|
206
|
+
content_type: z.string(),
|
|
207
|
+
manifest_path: z.string().optional(),
|
|
208
|
+
manifest_filename: z.string().optional(),
|
|
209
|
+
manifest_content_type: z.string().optional(),
|
|
210
|
+
manifest_bytes: z.number().optional(),
|
|
211
|
+
records: z.number(),
|
|
212
|
+
bytes: z.number(),
|
|
213
|
+
started_at: z.string(),
|
|
214
|
+
completed_at: z.string(),
|
|
215
|
+
duration_ms: z.number(),
|
|
216
|
+
})
|
|
217
|
+
.meta({ id: 'ContentObjectExportResult' });
|
|
218
|
+
export const ContentObjectExportProgressSchema = z
|
|
219
|
+
.strictObject({
|
|
220
|
+
status: z.enum(['queued', 'planning', 'exporting', 'composing', 'completed', 'failed']),
|
|
221
|
+
records: z.number(),
|
|
222
|
+
bytes: z.number(),
|
|
223
|
+
path: z.string().optional(),
|
|
224
|
+
filename: z.string().optional(),
|
|
225
|
+
completed_shards: z.number().optional(),
|
|
226
|
+
total_shards: z.number().optional(),
|
|
227
|
+
started_at: z.string().optional(),
|
|
228
|
+
completed_at: z.string().optional(),
|
|
229
|
+
error: z.string().optional(),
|
|
230
|
+
})
|
|
231
|
+
.meta({ id: 'ContentObjectExportProgress' });
|
|
232
|
+
export const ExportPropertiesResponseSchema = z
|
|
233
|
+
.strictObject({
|
|
234
|
+
type: z.string(),
|
|
235
|
+
name: z.string(),
|
|
236
|
+
data: z.string(),
|
|
237
|
+
})
|
|
238
|
+
.meta({ id: 'ExportPropertiesResponse' });
|
|
239
|
+
export const DeleteContentObjectResultSchema = z
|
|
240
|
+
.strictObject({
|
|
241
|
+
id: z.string(),
|
|
242
|
+
count: z.number(),
|
|
243
|
+
})
|
|
244
|
+
.meta({ id: 'DeleteContentObjectResult' });
|
|
245
|
+
export const DeleteContentObjectExportResponseSchema = z
|
|
246
|
+
.strictObject({
|
|
247
|
+
success: z.boolean(),
|
|
248
|
+
export_id: z.string(),
|
|
249
|
+
path: z.string(),
|
|
250
|
+
})
|
|
251
|
+
.meta({ id: 'DeleteContentObjectExportResponse' });
|
|
252
|
+
export const EmbeddingMapSchema = z.object({}).catchall(EmbeddingSchema).meta({ id: 'EmbeddingMap' });
|
|
253
|
+
/**
|
|
254
|
+
* Everything a collection write accepts beyond its identity. Shared so the update payload below is
|
|
255
|
+
* the create payload with `name` and `dynamic` relaxed, and cannot drift from it.
|
|
256
|
+
*
|
|
257
|
+
* Spread rather than `.partial()`: Zod clones a schema's registry metadata, so a derived component
|
|
258
|
+
* keeps emitting under the base's `id` and collides with it in the published document.
|
|
259
|
+
*/
|
|
260
|
+
const collectionPayloadFields = {
|
|
261
|
+
description: z.string().optional(),
|
|
262
|
+
skip_head_sync: z.boolean().optional(),
|
|
263
|
+
tags: z.array(z.string()).optional(),
|
|
264
|
+
type: nullableStringSchema.optional(),
|
|
265
|
+
query: z.looseObject({}).optional(),
|
|
266
|
+
properties: z.looseObject({}).optional(),
|
|
267
|
+
parent: nullableStringSchema.optional(),
|
|
268
|
+
table_layout: z
|
|
269
|
+
.array(ColumnLayoutSchema)
|
|
270
|
+
.nullable()
|
|
271
|
+
.meta({ anyOf: undefined, type: ['array', 'null'], items: { $ref: 'ColumnLayout' } })
|
|
272
|
+
.optional(),
|
|
273
|
+
allowed_types: z.array(z.string()).optional(),
|
|
274
|
+
updated_by: z.string().optional(),
|
|
275
|
+
shared_properties: z.array(z.string()).optional(),
|
|
276
|
+
sensitivity: z.number().meta({ description: 'BLP sensitivity level for member documents' }).optional(),
|
|
277
|
+
compartments: z.array(z.string()).meta({ description: 'Compartments for member documents' }).optional(),
|
|
278
|
+
};
|
|
279
|
+
export const CreateCollectionPayloadSchema = z
|
|
280
|
+
.strictObject({ ...collectionPayloadFields, name: z.string(), dynamic: z.boolean() })
|
|
281
|
+
.meta({ id: 'CreateCollectionPayload' });
|
|
282
|
+
/**
|
|
283
|
+
* `PUT /collections/:id` applies whatever fields the body carries. It is not the create payload:
|
|
284
|
+
* naming that one demanded `name` and `dynamic` on every edit, so changing a single property — which
|
|
285
|
+
* is what the UI and the ABAC tests do — was rejected.
|
|
286
|
+
*/
|
|
287
|
+
export const UpdateCollectionPayloadSchema = z
|
|
288
|
+
.strictObject({
|
|
289
|
+
...collectionPayloadFields,
|
|
290
|
+
name: z.string().optional(),
|
|
291
|
+
dynamic: z.boolean().optional(),
|
|
292
|
+
})
|
|
293
|
+
.meta({ id: 'UpdateCollectionPayload', description: 'Fields to change on a collection. All optional.' });
|
|
294
|
+
export const FindPayloadSchema = z
|
|
295
|
+
.strictObject({
|
|
296
|
+
query: z.looseObject({}),
|
|
297
|
+
offset: z.number().optional(),
|
|
298
|
+
limit: z.number().optional(),
|
|
299
|
+
select: z.string().optional(),
|
|
300
|
+
all_revisions: z.boolean().optional(),
|
|
301
|
+
from_root: z.string().optional(),
|
|
302
|
+
})
|
|
303
|
+
.meta({ id: 'FindPayload' });
|
|
304
|
+
export const TranscriptSchema = z
|
|
305
|
+
.strictObject({
|
|
306
|
+
text: z.string().optional(),
|
|
307
|
+
segments: z.array(TranscriptSegmentSchema).optional(),
|
|
308
|
+
etag: z.string().optional(),
|
|
309
|
+
})
|
|
310
|
+
.meta({ id: 'Transcript' });
|
|
311
|
+
export const ContentEmbeddingMapSchema = z
|
|
312
|
+
.strictObject({
|
|
313
|
+
text: EmbeddingSchema.optional(),
|
|
314
|
+
image: EmbeddingSchema.optional(),
|
|
315
|
+
properties: EmbeddingSchema.optional(),
|
|
316
|
+
})
|
|
317
|
+
.meta({ id: 'ContentEmbeddingMap' });
|
|
318
|
+
export const StartContentObjectExportRequestSchema = z
|
|
319
|
+
.strictObject({
|
|
320
|
+
embedding_types: z
|
|
321
|
+
.array(SupportedEmbeddingTypesSchema)
|
|
322
|
+
.meta({
|
|
323
|
+
description: 'Embedding types to export when include.embeddings is true. Defaults to all supported embedding types.',
|
|
324
|
+
})
|
|
325
|
+
.optional(),
|
|
326
|
+
filter: ExportContentObjectsFilterSchema.meta({
|
|
327
|
+
description: "Explicit export filters. This intentionally does not accept the search API's full Mongo/search DSL.",
|
|
328
|
+
}).optional(),
|
|
329
|
+
all_revisions: z
|
|
330
|
+
.boolean()
|
|
331
|
+
.meta({ description: 'Include all revisions. Defaults to false, exporting only head revisions.' })
|
|
332
|
+
.optional(),
|
|
333
|
+
include: ExportContentObjectsIncludeOptionsSchema.meta({
|
|
334
|
+
description: 'Optional object context selectors.',
|
|
335
|
+
}).optional(),
|
|
336
|
+
compression: z.boolean().meta({ description: 'Compress the export with gzip. Defaults to true.' }).optional(),
|
|
337
|
+
})
|
|
338
|
+
.meta({ id: 'StartContentObjectExportRequest' });
|
|
339
|
+
export const VectorSearchQuerySchema = z
|
|
340
|
+
.strictObject({
|
|
341
|
+
objectId: z.string().optional(),
|
|
342
|
+
values: z.array(z.number()).optional(),
|
|
343
|
+
text: z.string().optional(),
|
|
344
|
+
image: z.string().optional(),
|
|
345
|
+
config: EmbeddingSearchConfigSchema.optional(),
|
|
346
|
+
})
|
|
347
|
+
.meta({ id: 'VectorSearchQuery' });
|
|
348
|
+
export const ComplexCollectionSearchQuerySchema = z
|
|
349
|
+
.strictObject({
|
|
350
|
+
parent: nullableStringSchema.optional(),
|
|
351
|
+
dynamic: z.boolean().optional(),
|
|
352
|
+
status: CollectionStatusSchema.optional(),
|
|
353
|
+
limit: z.number().optional(),
|
|
354
|
+
offset: z.number().optional(),
|
|
355
|
+
name: z.string().optional(),
|
|
356
|
+
type: z.string().optional(),
|
|
357
|
+
types: z.array(z.string()).optional(),
|
|
358
|
+
match: z.looseObject({}).optional(),
|
|
359
|
+
})
|
|
360
|
+
.meta({ id: 'ComplexCollectionSearchQuery' });
|
|
361
|
+
export const CollectionSchema = z
|
|
362
|
+
.strictObject({
|
|
363
|
+
id: z.string().meta({ description: 'Unique identifier for the object' }),
|
|
364
|
+
name: z.string().meta({ description: 'Human-readable name or title' }),
|
|
365
|
+
description: z.string().meta({ description: 'Optional detailed description of the object' }).optional(),
|
|
366
|
+
tags: z.array(z.string()).meta({ description: 'Optional array of categorization tags' }).optional(),
|
|
367
|
+
updated_by: z.string().meta({ description: 'Identifier of the user who last modified the object' }),
|
|
368
|
+
created_by: z.string().meta({ description: 'Identifier of the user who created the object' }),
|
|
369
|
+
created_at: z.string().meta({ description: 'ISO timestamp of when the object was created' }),
|
|
370
|
+
updated_at: z.string().meta({ description: 'ISO timestamp of when the object was last updated' }),
|
|
371
|
+
dynamic: z.boolean().meta({
|
|
372
|
+
description: 'A flag to indicate if the collection is dynamic or static. If the collection is dynamic, the members are determined by a query using the query field. If the collection is static, the members are explicitly defined using the members array.',
|
|
373
|
+
}),
|
|
374
|
+
status: CollectionStatusSchema,
|
|
375
|
+
type: ContentObjectTypeRefSchema.optional(),
|
|
376
|
+
skip_head_sync: z.boolean().meta({
|
|
377
|
+
description: 'A flag to indicate whether to track and sync member HEAD revisions. The default is to sync HEAD revisions for collection members (skip_head_sync: false)',
|
|
378
|
+
}),
|
|
379
|
+
parents: z
|
|
380
|
+
.array(z.string())
|
|
381
|
+
.nullable()
|
|
382
|
+
.meta({
|
|
383
|
+
anyOf: undefined,
|
|
384
|
+
type: ['array', 'null'],
|
|
385
|
+
items: { type: 'string' },
|
|
386
|
+
description: 'The parent collections if any. A collection can have multiple parents.',
|
|
387
|
+
})
|
|
388
|
+
.optional(),
|
|
389
|
+
table_layout: z
|
|
390
|
+
.array(ColumnLayoutSchema)
|
|
391
|
+
.meta({
|
|
392
|
+
description: 'The table layout to use for the collection. The layout defined in the type could serve as a fallback if not defined here.',
|
|
393
|
+
})
|
|
394
|
+
.optional(),
|
|
395
|
+
allowed_types: z.array(z.string()).meta({ description: 'The allowed types for the collection.' }).optional(),
|
|
396
|
+
properties: z.looseObject({}).optional(),
|
|
397
|
+
query: z.looseObject({}).optional(),
|
|
398
|
+
security: StringArrayMapSchema.optional(),
|
|
399
|
+
sensitivity: z
|
|
400
|
+
.number()
|
|
401
|
+
.meta({ description: 'BLP sensitivity level — propagated to member documents (max across collections)' })
|
|
402
|
+
.optional(),
|
|
403
|
+
compartments: z
|
|
404
|
+
.array(z.string())
|
|
405
|
+
.meta({ description: 'Compartments — propagated to member documents (union across collections)' })
|
|
406
|
+
.optional(),
|
|
407
|
+
shared_properties: z
|
|
408
|
+
.array(z.string())
|
|
409
|
+
.meta({
|
|
410
|
+
description: "List of property names from the collection's properties that should be shared with (injected into) member objects. These properties will be propagated to all members of this collection and merged as arrays.",
|
|
411
|
+
})
|
|
412
|
+
.optional(),
|
|
413
|
+
})
|
|
414
|
+
.meta({ id: 'Collection' });
|
|
415
|
+
export const ContentObjectExportArtifactSchema = z
|
|
416
|
+
.strictObject({
|
|
417
|
+
export_id: z.string(),
|
|
418
|
+
path: z.string(),
|
|
419
|
+
filename: z.string(),
|
|
420
|
+
content_type: z.string(),
|
|
421
|
+
bytes: z.number(),
|
|
422
|
+
created_at: z.string().optional(),
|
|
423
|
+
files: z.array(ContentObjectExportArtifactFileSchema).optional(),
|
|
424
|
+
})
|
|
425
|
+
.meta({ id: 'ContentObjectExportArtifact' });
|
|
426
|
+
export const ContentObjectExportStatusResponseSchema = z
|
|
427
|
+
.strictObject({
|
|
428
|
+
workflow_id: z.string(),
|
|
429
|
+
run_id: z.string(),
|
|
430
|
+
status: z.enum(['queued', 'running', 'completed', 'failed', 'canceled', 'terminated', 'timed_out', 'unknown']),
|
|
431
|
+
done: z.boolean(),
|
|
432
|
+
progress: ContentObjectExportProgressSchema.optional(),
|
|
433
|
+
result: ContentObjectExportResultSchema.optional(),
|
|
434
|
+
error: z.string().optional(),
|
|
435
|
+
})
|
|
436
|
+
.meta({ id: 'ContentObjectExportStatusResponse' });
|
|
437
|
+
export const CreateContentObjectPayloadSchema = z
|
|
438
|
+
.strictObject({
|
|
439
|
+
text: z.string().optional(),
|
|
440
|
+
text_etag: z.string().optional(),
|
|
441
|
+
embeddings: ContentEmbeddingMapSchema.optional(),
|
|
442
|
+
parts: z.array(z.string()).optional(),
|
|
443
|
+
parts_etag: z.string().optional(),
|
|
444
|
+
transcript: TranscriptSchema.optional(),
|
|
445
|
+
security: StringArrayMapSchema.optional(),
|
|
446
|
+
sensitivity: z
|
|
447
|
+
.number()
|
|
448
|
+
.meta({
|
|
449
|
+
description: 'BLP sensitivity level — set directly or inherited from collections (max across collections).',
|
|
450
|
+
})
|
|
451
|
+
.optional(),
|
|
452
|
+
compartments: z
|
|
453
|
+
.array(z.string())
|
|
454
|
+
.meta({
|
|
455
|
+
description: 'Compartments — set directly or inherited from collections (union across collections).',
|
|
456
|
+
})
|
|
457
|
+
.optional(),
|
|
458
|
+
inherited_properties: z
|
|
459
|
+
.array(InheritedPropertyMetadataSchema)
|
|
460
|
+
.meta({
|
|
461
|
+
description: 'Inherited properties metadata - tracks which properties were inherited from parent collections. Used to display readonly inherited properties in the UI and enable incremental sync optimization.',
|
|
462
|
+
})
|
|
463
|
+
.optional(),
|
|
464
|
+
parent: z.string().optional(),
|
|
465
|
+
location: z.string().meta({ description: 'An optional path based location for the object' }).optional(),
|
|
466
|
+
status: ContentObjectStatusSchema.meta({
|
|
467
|
+
description: 'Object status.\n- created: the object was created and is being processed\n- processing: the object is being processed\n- completed: the object was processed and is ready to use\n- failed: the object processing failed\n- archived: the object was archived and is no longer available',
|
|
468
|
+
}).optional(),
|
|
469
|
+
content: ContentSourceSchema.meta({
|
|
470
|
+
description: 'Content source information, typically a link to an object store',
|
|
471
|
+
}).optional(),
|
|
472
|
+
external_id: z
|
|
473
|
+
.string()
|
|
474
|
+
.meta({ description: 'External identifier for integration with other systems' })
|
|
475
|
+
.optional(),
|
|
476
|
+
properties: z
|
|
477
|
+
.looseObject({})
|
|
478
|
+
.meta({
|
|
479
|
+
description: 'The object properties. This is a JSON object that describes the object, matching the object type schema',
|
|
480
|
+
})
|
|
481
|
+
.optional(),
|
|
482
|
+
metadata: z.looseObject({}).meta({ description: 'Technical metadata of the object' }).optional(),
|
|
483
|
+
tokens: z
|
|
484
|
+
.strictObject({
|
|
485
|
+
count: z.number().optional(),
|
|
486
|
+
encoding: z.string().optional(),
|
|
487
|
+
etag: z.string().optional(),
|
|
488
|
+
})
|
|
489
|
+
.meta({ description: 'Token information' })
|
|
490
|
+
.optional(),
|
|
491
|
+
revision: RevisionInfoSchema.meta({
|
|
492
|
+
description: 'Revision information. This is used to track the history of the object.',
|
|
493
|
+
}).optional(),
|
|
494
|
+
is_deleted: z
|
|
495
|
+
.boolean()
|
|
496
|
+
.meta({
|
|
497
|
+
description: 'Soft delete flag. When true, the object should be considered deleted but is still retained in the database for historical purposes.',
|
|
498
|
+
})
|
|
499
|
+
.optional(),
|
|
500
|
+
is_locked: z
|
|
501
|
+
.boolean()
|
|
502
|
+
.meta({
|
|
503
|
+
description: 'Soft lock flag. When true, the object should be considered read-only and modification attempts should be rejected.',
|
|
504
|
+
})
|
|
505
|
+
.optional(),
|
|
506
|
+
score: z.number().meta({ description: 'The document score, used for ranking and sorting.' }).optional(),
|
|
507
|
+
user_permissions: ContentObjectUserPermissionsSchema.meta({
|
|
508
|
+
description: "Computed per-request: the current user's effective permissions on this object.",
|
|
509
|
+
}).optional(),
|
|
510
|
+
name: z.string().meta({ description: 'Human-readable name or title' }).optional(),
|
|
511
|
+
description: z.string().meta({ description: 'Optional detailed description of the object' }).optional(),
|
|
512
|
+
tags: z.array(z.string()).meta({ description: 'Optional array of categorization tags' }).optional(),
|
|
513
|
+
updated_by: z.string().meta({ description: 'Identifier of the user who last modified the object' }).optional(),
|
|
514
|
+
created_by: z.string().meta({ description: 'Identifier of the user who created the object' }).optional(),
|
|
515
|
+
id: z.string().optional(),
|
|
516
|
+
type: z.string().optional(),
|
|
517
|
+
generation_run_info: GenerationRunMetadataSchema.optional(),
|
|
518
|
+
})
|
|
519
|
+
.meta({
|
|
520
|
+
id: 'CreateContentObjectPayload',
|
|
521
|
+
description: 'When creating from an uploaded file the content should be an URL to the uploaded file',
|
|
522
|
+
});
|
|
523
|
+
export const ComputeCollectionFacetPayloadSchema = z
|
|
524
|
+
.strictObject({
|
|
525
|
+
facets: z.array(FacetSpecSchema),
|
|
526
|
+
query: ComplexCollectionSearchQuerySchema.optional(),
|
|
527
|
+
})
|
|
528
|
+
.meta({ id: 'ComputeCollectionFacetPayload' });
|
|
529
|
+
export const UpdateContentObjectPayloadSchema = z
|
|
530
|
+
.strictObject({
|
|
531
|
+
text: z.string().optional(),
|
|
532
|
+
text_etag: z.string().optional(),
|
|
533
|
+
embeddings: ContentEmbeddingMapSchema.optional(),
|
|
534
|
+
parts: z.array(z.string()).optional(),
|
|
535
|
+
parts_etag: z.string().optional(),
|
|
536
|
+
transcript: TranscriptSchema.optional(),
|
|
537
|
+
security: StringArrayMapSchema.optional(),
|
|
538
|
+
sensitivity: z
|
|
539
|
+
.number()
|
|
540
|
+
.meta({
|
|
541
|
+
description: 'BLP sensitivity level — set directly or inherited from collections (max across collections).',
|
|
542
|
+
})
|
|
543
|
+
.optional(),
|
|
544
|
+
compartments: z
|
|
545
|
+
.array(z.string())
|
|
546
|
+
.meta({
|
|
547
|
+
description: 'Compartments — set directly or inherited from collections (union across collections).',
|
|
548
|
+
})
|
|
549
|
+
.optional(),
|
|
550
|
+
inherited_properties: z
|
|
551
|
+
.array(InheritedPropertyMetadataSchema)
|
|
552
|
+
.meta({
|
|
553
|
+
description: 'Inherited properties metadata - tracks which properties were inherited from parent collections. Used to display readonly inherited properties in the UI and enable incremental sync optimization.',
|
|
554
|
+
})
|
|
555
|
+
.optional(),
|
|
556
|
+
parent: z.string().optional(),
|
|
557
|
+
location: z.string().meta({ description: 'An optional path based location for the object' }).optional(),
|
|
558
|
+
status: ContentObjectStatusSchema.meta({
|
|
559
|
+
description: 'Object status.\n- created: the object was created and is being processed\n- processing: the object is being processed\n- completed: the object was processed and is ready to use\n- failed: the object processing failed\n- archived: the object was archived and is no longer available',
|
|
560
|
+
}).optional(),
|
|
561
|
+
content: ContentSourceSchema.meta({
|
|
562
|
+
description: 'Content source information, typically a link to an object store',
|
|
563
|
+
}).optional(),
|
|
564
|
+
external_id: z
|
|
565
|
+
.string()
|
|
566
|
+
.meta({ description: 'External identifier for integration with other systems' })
|
|
567
|
+
.optional(),
|
|
568
|
+
properties: z
|
|
569
|
+
.looseObject({})
|
|
570
|
+
.meta({
|
|
571
|
+
description: 'The object properties. This is a JSON object that describes the object, matching the object type schema',
|
|
572
|
+
})
|
|
573
|
+
.optional(),
|
|
574
|
+
metadata: z.looseObject({}).meta({ description: 'Technical metadata of the object' }).optional(),
|
|
575
|
+
tokens: z
|
|
576
|
+
.strictObject({
|
|
577
|
+
count: z.number().optional(),
|
|
578
|
+
encoding: z.string().optional(),
|
|
579
|
+
etag: z.string().optional(),
|
|
580
|
+
})
|
|
581
|
+
.meta({ description: 'Token information' })
|
|
582
|
+
.optional(),
|
|
583
|
+
revision: RevisionInfoSchema.meta({
|
|
584
|
+
description: 'Revision information. This is used to track the history of the object.',
|
|
585
|
+
}).optional(),
|
|
586
|
+
is_deleted: z
|
|
587
|
+
.boolean()
|
|
588
|
+
.meta({
|
|
589
|
+
description: 'Soft delete flag. When true, the object should be considered deleted but is still retained in the database for historical purposes.',
|
|
590
|
+
})
|
|
591
|
+
.optional(),
|
|
592
|
+
is_locked: z
|
|
593
|
+
.boolean()
|
|
594
|
+
.meta({
|
|
595
|
+
description: 'Soft lock flag. When true, the object should be considered read-only and modification attempts should be rejected.',
|
|
596
|
+
})
|
|
597
|
+
.optional(),
|
|
598
|
+
score: z.number().meta({ description: 'The document score, used for ranking and sorting.' }).optional(),
|
|
599
|
+
user_permissions: ContentObjectUserPermissionsSchema.meta({
|
|
600
|
+
description: "Computed per-request: the current user's effective permissions on this object.",
|
|
601
|
+
}).optional(),
|
|
602
|
+
name: z.string().meta({ description: 'Human-readable name or title' }).optional(),
|
|
603
|
+
description: z.string().meta({ description: 'Optional detailed description of the object' }).optional(),
|
|
604
|
+
tags: z.array(z.string()).meta({ description: 'Optional array of categorization tags' }).optional(),
|
|
605
|
+
updated_by: z.string().meta({ description: 'Identifier of the user who last modified the object' }).optional(),
|
|
606
|
+
created_by: z.string().meta({ description: 'Identifier of the user who created the object' }).optional(),
|
|
607
|
+
id: z.string().optional(),
|
|
608
|
+
type: z.string().optional(),
|
|
609
|
+
generation_run_info: GenerationRunMetadataSchema.optional(),
|
|
610
|
+
})
|
|
611
|
+
.meta({
|
|
612
|
+
id: 'UpdateContentObjectPayload',
|
|
613
|
+
description: 'When creating from an uploaded file the content should be an URL to the uploaded file',
|
|
614
|
+
});
|
|
615
|
+
export const ContentObjectApiTypeRefSchema = ContentObjectTypeRefSchema.meta({ id: 'ContentObjectApiTypeRef' });
|
|
616
|
+
export const ComplexSearchQuerySchema = z
|
|
617
|
+
.strictObject({
|
|
618
|
+
name: z.string().optional(),
|
|
619
|
+
status: z.array(z.string()).optional(),
|
|
620
|
+
limit: z.number().optional(),
|
|
621
|
+
offset: z.number().optional(),
|
|
622
|
+
id: z.string().optional(),
|
|
623
|
+
ids: z.array(z.string()).optional(),
|
|
624
|
+
createdFrom: z.string().optional(),
|
|
625
|
+
createdTo: z.string().optional(),
|
|
626
|
+
updatedFrom: z.string().optional(),
|
|
627
|
+
updatedTo: z.string().optional(),
|
|
628
|
+
location: z.string().optional(),
|
|
629
|
+
parent: z.string().optional(),
|
|
630
|
+
type: z.string().optional(),
|
|
631
|
+
types: z.array(z.string()).optional(),
|
|
632
|
+
all_revisions: z.boolean().optional(),
|
|
633
|
+
from_root: z.string().optional(),
|
|
634
|
+
vector: VectorSearchQuerySchema.optional(),
|
|
635
|
+
full_text: z
|
|
636
|
+
.string()
|
|
637
|
+
.meta({ description: 'If present, do a full text search (snake_case version).' })
|
|
638
|
+
.optional(),
|
|
639
|
+
weights: Record_SearchTypes_numberSchema.optional(),
|
|
640
|
+
dynamic_scaling: dynamicScalingTypesSchema
|
|
641
|
+
.meta({
|
|
642
|
+
description: "dynamicScaling rescales the weights when a particular search type is not present in the results, per object. e.g. Weights of 5,3,2 will be treated as 0,3,2 if the first search type is not present in the results. Ignored when scoreAggregation is 'smart' Default is 'on'",
|
|
643
|
+
})
|
|
644
|
+
.optional(),
|
|
645
|
+
score_aggregation: scoreAggregationTypesSchema
|
|
646
|
+
.meta({
|
|
647
|
+
description: 'rrf: Reciprocal Rank Fusion rsf: Reciprocal Score Fusion smart: Our own algorithm (default and recommended)',
|
|
648
|
+
})
|
|
649
|
+
.optional(),
|
|
650
|
+
match: z.looseObject({}).optional(),
|
|
651
|
+
})
|
|
652
|
+
.meta({
|
|
653
|
+
id: 'ComplexSearchQuery',
|
|
654
|
+
description: 'ComplexSearchQuery is used for full-text search and vector embedding search.',
|
|
655
|
+
});
|
|
656
|
+
export const CollectionArraySchema = z.array(CollectionSchema).meta({ id: 'CollectionArray' });
|
|
657
|
+
export const ListContentObjectExportsResponseSchema = z
|
|
658
|
+
.strictObject({
|
|
659
|
+
items: z.array(ContentObjectExportArtifactSchema),
|
|
660
|
+
limit: z.number(),
|
|
661
|
+
})
|
|
662
|
+
.meta({ id: 'ListContentObjectExportsResponse' });
|
|
663
|
+
export const ExportPropertiesPayloadSchema = z
|
|
664
|
+
.strictObject({
|
|
665
|
+
objectIds: z.array(z.string()),
|
|
666
|
+
type: z.string(),
|
|
667
|
+
query: ComplexSearchQuerySchema.optional(),
|
|
668
|
+
table_layout: z.array(ColumnLayoutSchema).optional(),
|
|
669
|
+
})
|
|
670
|
+
.meta({ id: 'ExportPropertiesPayload' });
|
|
671
|
+
export const ContentObjectApiResponseSchema = z
|
|
672
|
+
.strictObject({
|
|
673
|
+
id: z.string().meta({ description: 'Unique identifier for the object' }),
|
|
674
|
+
name: z.string().meta({ description: 'Human-readable name or title' }),
|
|
675
|
+
description: z.string().meta({ description: 'Optional detailed description of the object' }).optional(),
|
|
676
|
+
tags: z.array(z.string()).meta({ description: 'Optional array of categorization tags' }).optional(),
|
|
677
|
+
updated_by: z.string().meta({ description: 'Identifier of the user who last modified the object' }),
|
|
678
|
+
created_by: z.string().meta({ description: 'Identifier of the user who created the object' }),
|
|
679
|
+
created_at: z.string().meta({ description: 'ISO timestamp of when the object was created' }),
|
|
680
|
+
updated_at: z.string().meta({ description: 'ISO timestamp of when the object was last updated' }),
|
|
681
|
+
parent: z.string().optional(),
|
|
682
|
+
location: z.string(),
|
|
683
|
+
status: ContentObjectStatusSchema,
|
|
684
|
+
type: ContentObjectApiTypeRefSchema.optional(),
|
|
685
|
+
content: ContentSourceSchema.optional(),
|
|
686
|
+
external_id: z.string().optional(),
|
|
687
|
+
properties: JSONObjectSchema,
|
|
688
|
+
metadata: z.looseObject({}).optional(),
|
|
689
|
+
tokens: z
|
|
690
|
+
.strictObject({
|
|
691
|
+
count: z.number().optional(),
|
|
692
|
+
encoding: z.string().optional(),
|
|
693
|
+
etag: z.string().optional(),
|
|
694
|
+
})
|
|
695
|
+
.optional(),
|
|
696
|
+
revision: ContentObjectApiRevisionSchema,
|
|
697
|
+
is_deleted: z.boolean().optional(),
|
|
698
|
+
is_locked: z.boolean().optional(),
|
|
699
|
+
score: z.number().optional(),
|
|
700
|
+
user_permissions: ContentObjectUserPermissionsSchema.optional(),
|
|
701
|
+
text: z.string().optional(),
|
|
702
|
+
text_etag: z.string().optional(),
|
|
703
|
+
embeddings: EmbeddingMapSchema.optional(),
|
|
704
|
+
parts: z.array(z.string()).optional(),
|
|
705
|
+
parts_etag: z.string().optional(),
|
|
706
|
+
transcript: z.looseObject({}).optional(),
|
|
707
|
+
security: StringArrayMapSchema.optional(),
|
|
708
|
+
inherited_properties: z.array(InheritedPropertyMetadataSchema).optional(),
|
|
709
|
+
})
|
|
710
|
+
.meta({ id: 'ContentObjectApiResponse' });
|
|
711
|
+
export const ComputeObjectFacetPayloadSchema = z
|
|
712
|
+
.strictObject({
|
|
713
|
+
facets: z.array(FacetSpecSchema),
|
|
714
|
+
query: ComplexSearchQuerySchema.optional(),
|
|
715
|
+
})
|
|
716
|
+
.meta({ id: 'ComputeObjectFacetPayload' });
|
|
717
|
+
export const ContentObjectItemApiResponseSchema = z
|
|
718
|
+
.strictObject({
|
|
719
|
+
id: z.string().meta({ description: 'Unique identifier for the object' }),
|
|
720
|
+
name: z.string().meta({ description: 'Human-readable name or title' }),
|
|
721
|
+
description: z.string().meta({ description: 'Optional detailed description of the object' }).optional(),
|
|
722
|
+
tags: z.array(z.string()).meta({ description: 'Optional array of categorization tags' }).optional(),
|
|
723
|
+
updated_by: z.string().meta({ description: 'Identifier of the user who last modified the object' }),
|
|
724
|
+
created_by: z.string().meta({ description: 'Identifier of the user who created the object' }),
|
|
725
|
+
created_at: z.string().meta({ description: 'ISO timestamp of when the object was created' }),
|
|
726
|
+
updated_at: z.string().meta({ description: 'ISO timestamp of when the object was last updated' }),
|
|
727
|
+
parent: z.string().optional(),
|
|
728
|
+
location: z.string(),
|
|
729
|
+
status: ContentObjectStatusSchema,
|
|
730
|
+
type: ContentObjectApiTypeRefSchema.optional(),
|
|
731
|
+
content: ContentSourceSchema.optional(),
|
|
732
|
+
external_id: z.string().optional(),
|
|
733
|
+
properties: JSONObjectSchema,
|
|
734
|
+
metadata: z.looseObject({}).optional(),
|
|
735
|
+
tokens: z
|
|
736
|
+
.strictObject({
|
|
737
|
+
count: z.number().optional(),
|
|
738
|
+
encoding: z.string().optional(),
|
|
739
|
+
etag: z.string().optional(),
|
|
740
|
+
})
|
|
741
|
+
.optional(),
|
|
742
|
+
revision: ContentObjectApiRevisionSchema,
|
|
743
|
+
is_deleted: z.boolean().optional(),
|
|
744
|
+
is_locked: z.boolean().optional(),
|
|
745
|
+
score: z.number().optional(),
|
|
746
|
+
user_permissions: ContentObjectUserPermissionsSchema.optional(),
|
|
747
|
+
})
|
|
748
|
+
.meta({ id: 'ContentObjectItemApiResponse' });
|
|
749
|
+
export const ComplexSearchPayloadSchema = z
|
|
750
|
+
.strictObject({
|
|
751
|
+
facets: z.array(FacetSpecSchema).optional(),
|
|
752
|
+
limit_facets: z
|
|
753
|
+
.boolean()
|
|
754
|
+
.meta({
|
|
755
|
+
description: 'If the facets should be limited to the current page of results. Defaults to false. When false, the facets are independent of the search results page.',
|
|
756
|
+
})
|
|
757
|
+
.optional(),
|
|
758
|
+
limit: z.number().optional(),
|
|
759
|
+
offset: z.number().optional(),
|
|
760
|
+
select: z.string().optional(),
|
|
761
|
+
all_revisions: z.boolean().optional(),
|
|
762
|
+
from_root: z.string().optional(),
|
|
763
|
+
sort: z
|
|
764
|
+
.array(SortOptionSchema)
|
|
765
|
+
.meta({
|
|
766
|
+
description: 'Sort criteria. Multiple entries enable multi-field sorting (first entry is primary).',
|
|
767
|
+
})
|
|
768
|
+
.optional(),
|
|
769
|
+
aggs: z
|
|
770
|
+
.looseObject({})
|
|
771
|
+
.meta({
|
|
772
|
+
description: 'Arbitrary Elasticsearch aggregation definitions. Ignored when search falls back to MongoDB.',
|
|
773
|
+
})
|
|
774
|
+
.optional(),
|
|
775
|
+
query: ComplexSearchQuerySchema.optional(),
|
|
776
|
+
})
|
|
777
|
+
.meta({ id: 'ComplexSearchPayload' });
|
|
778
|
+
export const ContentObjectItemApiResponseArraySchema = z
|
|
779
|
+
.array(ContentObjectItemApiResponseSchema)
|
|
780
|
+
.meta({ id: 'ContentObjectItemApiResponseArray' });
|
|
781
|
+
export const ObjectSearchResponseSchema = z
|
|
782
|
+
.strictObject({
|
|
783
|
+
results: z.array(ContentObjectItemApiResponseSchema),
|
|
784
|
+
facets: ComputedFacetResponseSchema,
|
|
785
|
+
aggregations: z.looseObject({}).optional(),
|
|
786
|
+
})
|
|
787
|
+
.meta({ id: 'ObjectSearchResponse' });
|
|
788
|
+
export const CreateContentObjectHeadersSchema = z
|
|
789
|
+
.object({
|
|
790
|
+
'x-collection-id': z.string().optional(),
|
|
791
|
+
'x-processing-priority': ContentObjectProcessingPrioritySchema.optional(),
|
|
792
|
+
})
|
|
793
|
+
.meta({ id: 'CreateContentObjectHeaders' });
|
|
794
|
+
export const CreateContentObjectQuerySchema = z
|
|
795
|
+
.object({
|
|
796
|
+
collection_id: z.string().optional(),
|
|
797
|
+
processing_priority: ContentObjectProcessingPrioritySchema.optional(),
|
|
798
|
+
})
|
|
799
|
+
.meta({ id: 'CreateContentObjectQuery' });
|
|
800
|
+
export const GetObjectRenditionQuerySchema = z
|
|
801
|
+
.object({
|
|
802
|
+
block_on_generation: z.boolean().optional(),
|
|
803
|
+
generate_if_missing: z.boolean().optional(),
|
|
804
|
+
max_hw: z.number().optional(),
|
|
805
|
+
sign_url: z.boolean().optional(),
|
|
806
|
+
})
|
|
807
|
+
.meta({ id: 'GetObjectRenditionQuery' });
|
|
808
|
+
export const CollectionMembersQuerySchema = z
|
|
809
|
+
.object({
|
|
810
|
+
status: z.string().optional(),
|
|
811
|
+
type: z.string().optional(),
|
|
812
|
+
limit: z.number().optional(),
|
|
813
|
+
offset: z.number().optional(),
|
|
814
|
+
})
|
|
815
|
+
.meta({ id: 'CollectionMembersQuery' });
|
|
816
|
+
export const UpdateContentObjectHeadersSchema = z
|
|
817
|
+
.object({
|
|
818
|
+
'if-match': z.string().optional(),
|
|
819
|
+
'x-create-revision': z.boolean().optional(),
|
|
820
|
+
'x-revision-label': z.string().optional(),
|
|
821
|
+
'x-processing-priority': ContentObjectProcessingPrioritySchema.optional(),
|
|
822
|
+
'x-suppress-workflows': z
|
|
823
|
+
.boolean()
|
|
824
|
+
.meta({
|
|
825
|
+
description: 'Deprecated: Events are now always emitted. This suppresses the Temporal-backed delivery targets (workflow, agent, and process) — webhook deliveries still fire.',
|
|
826
|
+
deprecated: true,
|
|
827
|
+
'x-deprecated-message': 'Events are now always emitted. This suppresses the Temporal-backed delivery targets (workflow, agent, and process) — webhook deliveries still fire.',
|
|
828
|
+
})
|
|
829
|
+
.optional(),
|
|
830
|
+
})
|
|
831
|
+
.meta({ id: 'UpdateContentObjectHeaders' });
|
|
832
|
+
export const UpdateContentObjectQuerySchema = z
|
|
833
|
+
.object({
|
|
834
|
+
create_revision: z.boolean().optional(),
|
|
835
|
+
revision_label: z.string().optional(),
|
|
836
|
+
processing_priority: ContentObjectProcessingPrioritySchema.optional(),
|
|
837
|
+
})
|
|
838
|
+
.meta({ id: 'UpdateContentObjectQuery' });
|
|
839
|
+
export const ContentObjectApiResponseArraySchema = z
|
|
840
|
+
.array(ContentObjectApiResponseSchema)
|
|
841
|
+
.meta({ id: 'ContentObjectApiResponseArray' });
|
|
842
|
+
//# sourceMappingURL=content.js.map
|