@segmentstream/ontology 0.0.0-stage → 0.92.1
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/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +1655 -2
- package/dist/action.d.ts +193 -0
- package/dist/action.js +41 -0
- package/dist/agent-chat.d.ts +44 -0
- package/dist/agent-chat.js +91 -0
- package/dist/agent-task-contract.d.ts +64 -0
- package/dist/agent-task-contract.js +15 -0
- package/dist/agent-task.d.ts +39 -0
- package/dist/agent-task.js +112 -0
- package/dist/analyze.d.ts +215 -0
- package/dist/analyze.js +2438 -0
- package/dist/app-feedback.d.ts +167 -0
- package/dist/app-feedback.js +176 -0
- package/dist/authoring-input.d.ts +3 -0
- package/dist/authoring-input.js +107 -0
- package/dist/authoring-names.d.ts +4 -0
- package/dist/authoring-names.js +13 -0
- package/dist/authoring-records.d.ts +35 -0
- package/dist/authoring-records.js +264 -0
- package/dist/authoring.d.ts +15 -0
- package/dist/authoring.js +331 -0
- package/dist/bin/check.d.ts +30 -0
- package/dist/bin/check.js +99 -0
- package/dist/bin/load.d.ts +48 -0
- package/dist/bin/load.js +139 -0
- package/dist/bin/main.d.ts +31 -0
- package/dist/bin/main.js +121 -0
- package/dist/bin/migrate.d.ts +57 -0
- package/dist/bin/migrate.js +170 -0
- package/dist/bin/output.d.ts +31 -0
- package/dist/bin/output.js +84 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +31 -0
- package/dist/blob.d.ts +52 -0
- package/dist/blob.js +87 -0
- package/dist/channel-session.d.ts +16 -0
- package/dist/channel-session.js +16 -0
- package/dist/chat.d.ts +43 -0
- package/dist/chat.js +34 -0
- package/dist/confirmation.d.ts +46 -0
- package/dist/confirmation.js +41 -0
- package/dist/connection.d.ts +213 -0
- package/dist/connection.js +289 -0
- package/dist/deployment.d.ts +35 -0
- package/dist/deployment.js +76 -0
- package/dist/diagnostics.d.ts +27 -0
- package/dist/diagnostics.js +106 -0
- package/dist/emails.d.ts +70 -0
- package/dist/emails.js +221 -0
- package/dist/entity.d.ts +331 -0
- package/dist/entity.js +153 -0
- package/dist/errors.d.ts +154 -0
- package/dist/errors.js +109 -0
- package/dist/feedback-config.d.ts +24 -0
- package/dist/feedback-config.js +126 -0
- package/dist/files.d.ts +39 -0
- package/dist/files.js +4 -0
- package/dist/groups.d.ts +95 -0
- package/dist/groups.js +280 -0
- package/dist/index.d.ts +109 -0
- package/dist/index.js +70 -0
- package/dist/internal/diagnostics.js +594 -0
- package/dist/legacy.d.ts +160 -0
- package/dist/legacy.js +270 -0
- package/dist/manifest-compatibility.d.ts +8 -0
- package/dist/manifest-compatibility.js +87 -0
- package/dist/manifest.d.ts +3329 -0
- package/dist/manifest.js +757 -0
- package/dist/me.d.ts +46 -0
- package/dist/me.js +109 -0
- package/dist/metric-filters.d.ts +48 -0
- package/dist/metric-filters.js +252 -0
- package/dist/metric-routes.d.ts +132 -0
- package/dist/metric-routes.js +498 -0
- package/dist/metric.d.ts +172 -0
- package/dist/metric.js +132 -0
- package/dist/migrate/apply.d.ts +94 -0
- package/dist/migrate/apply.js +526 -0
- package/dist/migrate/errors.d.ts +46 -0
- package/dist/migrate/errors.js +38 -0
- package/dist/migrate/index.d.ts +10 -0
- package/dist/migrate/index.js +7 -0
- package/dist/migrate/model.d.ts +2311 -0
- package/dist/migrate/model.js +148 -0
- package/dist/migrate/plan.d.ts +51 -0
- package/dist/migrate/plan.js +1856 -0
- package/dist/migrate/preview.d.ts +13 -0
- package/dist/migrate/preview.js +65 -0
- package/dist/migrate/storage.d.ts +226 -0
- package/dist/migrate/storage.js +774 -0
- package/dist/model-metrics.d.ts +22 -0
- package/dist/model-metrics.js +545 -0
- package/dist/names.d.ts +49 -0
- package/dist/names.js +110 -0
- package/dist/navigation-artifact.d.ts +13 -0
- package/dist/navigation-artifact.js +11 -0
- package/dist/navigation-catalog.d.ts +55 -0
- package/dist/navigation-catalog.js +297 -0
- package/dist/nitro-navigation.d.ts +3 -0
- package/dist/nitro-navigation.js +64 -0
- package/dist/nitro-workflows.d.ts +108 -0
- package/dist/nitro-workflows.js +286 -0
- package/dist/nitro.d.ts +40 -0
- package/dist/nitro.js +50 -0
- package/dist/ontology.d.ts +41 -0
- package/dist/ontology.js +46 -0
- package/dist/permissions.d.ts +198 -0
- package/dist/permissions.js +272 -0
- package/dist/property.d.ts +188 -0
- package/dist/property.js +301 -0
- package/dist/query.d.ts +245 -0
- package/dist/query.js +615 -0
- package/dist/relationship.d.ts +99 -0
- package/dist/relationship.js +33 -0
- package/dist/render.d.ts +81 -0
- package/dist/render.js +512 -0
- package/dist/replication/baseline.d.ts +51 -0
- package/dist/replication/baseline.js +215 -0
- package/dist/replication/bigquery.d.ts +37 -0
- package/dist/replication/bigquery.js +211 -0
- package/dist/replication/coverage.d.ts +14 -0
- package/dist/replication/coverage.js +53 -0
- package/dist/replication/evolution.d.ts +25 -0
- package/dist/replication/evolution.js +184 -0
- package/dist/replication/identities.d.ts +6 -0
- package/dist/replication/identities.js +47 -0
- package/dist/replication/legacy-baseline.d.ts +27 -0
- package/dist/replication/legacy-baseline.js +109 -0
- package/dist/replication/legacy-store.d.ts +19 -0
- package/dist/replication/legacy-store.js +63 -0
- package/dist/replication/lineage.d.ts +36 -0
- package/dist/replication/lineage.js +72 -0
- package/dist/replication/migrate.d.ts +21 -0
- package/dist/replication/migrate.js +84 -0
- package/dist/replication/model.d.ts +52 -0
- package/dist/replication/model.js +99 -0
- package/dist/replication/scans.d.ts +34 -0
- package/dist/replication/scans.js +158 -0
- package/dist/replication/schema.d.ts +11 -0
- package/dist/replication/schema.js +226 -0
- package/dist/replication/shadow-schema.d.ts +4 -0
- package/dist/replication/shadow-schema.js +61 -0
- package/dist/replication/shadow.d.ts +127 -0
- package/dist/replication/shadow.js +614 -0
- package/dist/replication/source-replacement.d.ts +33 -0
- package/dist/replication/source-replacement.js +76 -0
- package/dist/replication/store.d.ts +36 -0
- package/dist/replication/store.js +382 -0
- package/dist/replication/transaction.d.ts +23 -0
- package/dist/replication/transaction.js +88 -0
- package/dist/role.d.ts +61 -0
- package/dist/role.js +76 -0
- package/dist/runtime/action-deadlocks.d.ts +21 -0
- package/dist/runtime/action-deadlocks.js +130 -0
- package/dist/runtime/action-transactions.d.ts +35 -0
- package/dist/runtime/action-transactions.js +54 -0
- package/dist/runtime/agent-counters.d.ts +26 -0
- package/dist/runtime/agent-counters.js +98 -0
- package/dist/runtime/agent-tasks.d.ts +63 -0
- package/dist/runtime/agent-tasks.js +120 -0
- package/dist/runtime/agents.d.ts +15 -0
- package/dist/runtime/agents.js +457 -0
- package/dist/runtime/batch-diagnostics.d.ts +22 -0
- package/dist/runtime/batch-diagnostics.js +89 -0
- package/dist/runtime/batch.d.ts +52 -0
- package/dist/runtime/batch.js +534 -0
- package/dist/runtime/channel-session-revocation.d.ts +3 -0
- package/dist/runtime/channel-session-revocation.js +5 -0
- package/dist/runtime/channel-sessions.d.ts +4 -0
- package/dist/runtime/channel-sessions.js +61 -0
- package/dist/runtime/confirmations.d.ts +29 -0
- package/dist/runtime/confirmations.js +57 -0
- package/dist/runtime/cursor.d.ts +23 -0
- package/dist/runtime/cursor.js +100 -0
- package/dist/runtime/deployment.d.ts +7 -0
- package/dist/runtime/deployment.js +4 -0
- package/dist/runtime/errors.d.ts +118 -0
- package/dist/runtime/errors.js +109 -0
- package/dist/runtime/federation-tables.d.ts +2 -0
- package/dist/runtime/federation-tables.js +20 -0
- package/dist/runtime/federation.d.ts +42 -0
- package/dist/runtime/federation.js +222 -0
- package/dist/runtime/files.d.ts +39 -0
- package/dist/runtime/files.js +44 -0
- package/dist/runtime/generated-actions.d.ts +37 -0
- package/dist/runtime/generated-actions.js +307 -0
- package/dist/runtime/history.d.ts +91 -0
- package/dist/runtime/history.js +77 -0
- package/dist/runtime/ids.d.ts +6 -0
- package/dist/runtime/ids.js +39 -0
- package/dist/runtime/member-tables.d.ts +8 -0
- package/dist/runtime/member-tables.js +33 -0
- package/dist/runtime/member-writes.d.ts +78 -0
- package/dist/runtime/member-writes.js +202 -0
- package/dist/runtime/metric-query.d.ts +19 -0
- package/dist/runtime/metric-query.js +411 -0
- package/dist/runtime/model.d.ts +67 -0
- package/dist/runtime/model.js +150 -0
- package/dist/runtime/new-user-hook.d.ts +6 -0
- package/dist/runtime/new-user-hook.js +37 -0
- package/dist/runtime/oauth.d.ts +9 -0
- package/dist/runtime/oauth.js +299 -0
- package/dist/runtime/pipeline.d.ts +155 -0
- package/dist/runtime/pipeline.js +597 -0
- package/dist/runtime/postgres-tls.d.ts +10 -0
- package/dist/runtime/postgres-tls.js +14 -0
- package/dist/runtime/principals.d.ts +302 -0
- package/dist/runtime/principals.js +1307 -0
- package/dist/runtime/reads.d.ts +55 -0
- package/dist/runtime/reads.js +313 -0
- package/dist/runtime/records.d.ts +42 -0
- package/dist/runtime/records.js +245 -0
- package/dist/runtime/resolve-agent-identity.d.ts +6 -0
- package/dist/runtime/resolve-agent-identity.js +181 -0
- package/dist/runtime/service-binding.d.ts +18 -0
- package/dist/runtime/service-binding.js +266 -0
- package/dist/runtime/sign-in-links.d.ts +68 -0
- package/dist/runtime/sign-in-links.js +147 -0
- package/dist/runtime/sql-runtime.d.ts +131 -0
- package/dist/runtime/sql-runtime.js +362 -0
- package/dist/runtime/statement.d.ts +18 -0
- package/dist/runtime/statement.js +31 -0
- package/dist/runtime/user-identities.d.ts +66 -0
- package/dist/runtime/user-identities.js +106 -0
- package/dist/runtime/user-identity-sql.d.ts +86 -0
- package/dist/runtime/user-identity-sql.js +297 -0
- package/dist/runtime/user-roles.d.ts +16 -0
- package/dist/runtime/user-roles.js +32 -0
- package/dist/runtime/validation.d.ts +16 -0
- package/dist/runtime/validation.js +26 -0
- package/dist/runtime/where.d.ts +57 -0
- package/dist/runtime/where.js +404 -0
- package/dist/runtime/workflow-admission.d.ts +49 -0
- package/dist/runtime/workflow-admission.js +92 -0
- package/dist/runtime/workflow-argument-codec.d.ts +10 -0
- package/dist/runtime/workflow-argument-codec.js +120 -0
- package/dist/runtime/workflow-arguments.d.ts +17 -0
- package/dist/runtime/workflow-arguments.js +99 -0
- package/dist/runtime/workflow-starts.d.ts +203 -0
- package/dist/runtime/workflow-starts.js +493 -0
- package/dist/runtime/workflow-users.d.ts +9 -0
- package/dist/runtime/workflow-users.js +17 -0
- package/dist/runtime/workload.d.ts +25 -0
- package/dist/runtime/workload.js +24 -0
- package/dist/runtime/writes.d.ts +108 -0
- package/dist/runtime/writes.js +491 -0
- package/dist/runtime-source.d.ts +22 -0
- package/dist/runtime-source.js +28 -0
- package/dist/runtime.d.ts +310 -0
- package/dist/runtime.js +31 -0
- package/dist/server.d.ts +23 -0
- package/dist/server.js +107 -0
- package/dist/service/agent/attachments.d.ts +33 -0
- package/dist/service/agent/attachments.js +228 -0
- package/dist/service/agent/authentication.d.ts +22 -0
- package/dist/service/agent/authentication.js +58 -0
- package/dist/service/agent/confirmations.d.ts +5 -0
- package/dist/service/agent/confirmations.js +73 -0
- package/dist/service/agent/conversation-routes.d.ts +14 -0
- package/dist/service/agent/conversation-routes.js +45 -0
- package/dist/service/agent/conversations.d.ts +40 -0
- package/dist/service/agent/conversations.js +69 -0
- package/dist/service/agent/files.d.ts +12 -0
- package/dist/service/agent/files.js +69 -0
- package/dist/service/agent/protocol.d.ts +90 -0
- package/dist/service/agent/protocol.js +114 -0
- package/dist/service/agent/server.d.ts +28 -0
- package/dist/service/agent/server.js +374 -0
- package/dist/service/agent/task-caller.d.ts +21 -0
- package/dist/service/agent/task-caller.js +35 -0
- package/dist/service/agent/task-start.d.ts +53 -0
- package/dist/service/agent/task-start.js +161 -0
- package/dist/service/agent/tasks.d.ts +40 -0
- package/dist/service/agent/tasks.js +155 -0
- package/dist/service/api.d.ts +50 -0
- package/dist/service/api.js +288 -0
- package/dist/service/authentication.d.ts +227 -0
- package/dist/service/authentication.js +767 -0
- package/dist/service/caller-context.d.ts +24 -0
- package/dist/service/caller-context.js +6 -0
- package/dist/service/catalog.d.ts +42 -0
- package/dist/service/catalog.js +66 -0
- package/dist/service/channel/provider.d.ts +10 -0
- package/dist/service/channel/provider.js +1 -0
- package/dist/service/channel/providers/telegram.d.ts +18 -0
- package/dist/service/channel/providers/telegram.js +108 -0
- package/dist/service/channel/sessions.d.ts +5 -0
- package/dist/service/channel/sessions.js +53 -0
- package/dist/service/channel/sign-in.d.ts +7 -0
- package/dist/service/channel/sign-in.js +78 -0
- package/dist/service/chat/archive.d.ts +64 -0
- package/dist/service/chat/archive.js +62 -0
- package/dist/service/chat/attribution.d.ts +26 -0
- package/dist/service/chat/attribution.js +28 -0
- package/dist/service/chat/delivery.d.ts +18 -0
- package/dist/service/chat/delivery.js +251 -0
- package/dist/service/chat/diagnostics.d.ts +2 -0
- package/dist/service/chat/diagnostics.js +35 -0
- package/dist/service/chat/envelope.d.ts +96 -0
- package/dist/service/chat/envelope.js +39 -0
- package/dist/service/chat/idempotency.d.ts +19 -0
- package/dist/service/chat/idempotency.js +37 -0
- package/dist/service/chat/providers/telegram.d.ts +36 -0
- package/dist/service/chat/providers/telegram.js +133 -0
- package/dist/service/chat/reads.d.ts +25 -0
- package/dist/service/chat/reads.js +75 -0
- package/dist/service/chat/resolve.d.ts +34 -0
- package/dist/service/chat/resolve.js +150 -0
- package/dist/service/chat/routes.d.ts +23 -0
- package/dist/service/chat/routes.js +75 -0
- package/dist/service/chat/schemas.d.ts +43 -0
- package/dist/service/chat/schemas.js +31 -0
- package/dist/service/config.d.ts +218 -0
- package/dist/service/config.js +265 -0
- package/dist/service/connection-stream.d.ts +10 -0
- package/dist/service/connection-stream.js +191 -0
- package/dist/service/connections.d.ts +60 -0
- package/dist/service/connections.js +271 -0
- package/dist/service/decisions.d.ts +35 -0
- package/dist/service/decisions.js +63 -0
- package/dist/service/descriptions.d.ts +8 -0
- package/dist/service/descriptions.js +20 -0
- package/dist/service/discovery-schemas.d.ts +92 -0
- package/dist/service/discovery-schemas.js +59 -0
- package/dist/service/discovery-search.d.ts +30 -0
- package/dist/service/discovery-search.js +95 -0
- package/dist/service/discovery.d.ts +37 -0
- package/dist/service/discovery.js +436 -0
- package/dist/service/docs.d.ts +9 -0
- package/dist/service/docs.js +197 -0
- package/dist/service/errors.d.ts +145 -0
- package/dist/service/errors.js +704 -0
- package/dist/service/federation-provider.d.ts +36 -0
- package/dist/service/federation-provider.js +110 -0
- package/dist/service/federation-server.d.ts +20 -0
- package/dist/service/federation-server.js +249 -0
- package/dist/service/federation-status.d.ts +40 -0
- package/dist/service/federation-status.js +151 -0
- package/dist/service/handlers.d.ts +18 -0
- package/dist/service/handlers.js +287 -0
- package/dist/service/mcp/confirmation.d.ts +68 -0
- package/dist/service/mcp/confirmation.js +178 -0
- package/dist/service/mcp/find-input.d.ts +12 -0
- package/dist/service/mcp/find-input.js +122 -0
- package/dist/service/mcp/input-schema.d.ts +6 -0
- package/dist/service/mcp/input-schema.js +126 -0
- package/dist/service/mcp/listing.d.ts +26 -0
- package/dist/service/mcp/listing.js +92 -0
- package/dist/service/mcp/metric-tools.d.ts +85 -0
- package/dist/service/mcp/metric-tools.js +258 -0
- package/dist/service/mcp/request-log.d.ts +5 -0
- package/dist/service/mcp/request-log.js +53 -0
- package/dist/service/mcp/runtime-policy.d.ts +27 -0
- package/dist/service/mcp/runtime-policy.js +62 -0
- package/dist/service/mcp/server.d.ts +52 -0
- package/dist/service/mcp/server.js +861 -0
- package/dist/service/mcp/tools.d.ts +99 -0
- package/dist/service/mcp/tools.js +938 -0
- package/dist/service/member-file-routes.d.ts +22 -0
- package/dist/service/member-file-routes.js +52 -0
- package/dist/service/member-files.d.ts +245 -0
- package/dist/service/member-files.js +258 -0
- package/dist/service/metric-query-platform.d.ts +77 -0
- package/dist/service/metric-query-platform.js +198 -0
- package/dist/service/metric-query-scopes.d.ts +43 -0
- package/dist/service/metric-query-scopes.js +147 -0
- package/dist/service/metric-query.d.ts +48 -0
- package/dist/service/metric-query.js +200 -0
- package/dist/service/name-suggestions.d.ts +3 -0
- package/dist/service/name-suggestions.js +38 -0
- package/dist/service/navigation-schemas.d.ts +80 -0
- package/dist/service/navigation-schemas.js +49 -0
- package/dist/service/navigation.d.ts +20 -0
- package/dist/service/navigation.js +165 -0
- package/dist/service/oauth/protocol.d.ts +70 -0
- package/dist/service/oauth/protocol.js +157 -0
- package/dist/service/oauth/refresh-replay.d.ts +2 -0
- package/dist/service/oauth/refresh-replay.js +20 -0
- package/dist/service/oauth/server.d.ts +28 -0
- package/dist/service/oauth/server.js +769 -0
- package/dist/service/operations.d.ts +170 -0
- package/dist/service/operations.js +392 -0
- package/dist/service/plan.d.ts +57 -0
- package/dist/service/plan.js +96 -0
- package/dist/service/rate-limit.d.ts +22 -0
- package/dist/service/rate-limit.js +52 -0
- package/dist/service/record-reads.d.ts +21 -0
- package/dist/service/record-reads.js +155 -0
- package/dist/service/replication.d.ts +5 -0
- package/dist/service/replication.js +39 -0
- package/dist/service/runtime-contract.d.ts +508 -0
- package/dist/service/runtime-contract.js +18 -0
- package/dist/service/runtime-identity.d.ts +71 -0
- package/dist/service/runtime-identity.js +122 -0
- package/dist/service/schemas.d.ts +961 -0
- package/dist/service/schemas.js +639 -0
- package/dist/service/service.d.ts +21 -0
- package/dist/service/service.js +526 -0
- package/dist/service/warehouse-platform.d.ts +17 -0
- package/dist/service/warehouse-platform.js +122 -0
- package/dist/service/warehouse-query.d.ts +24 -0
- package/dist/service/warehouse-query.js +280 -0
- package/dist/service/webhooks.d.ts +106 -0
- package/dist/service/webhooks.js +233 -0
- package/dist/service/workflow-admission-provider.d.ts +31 -0
- package/dist/service/workflow-admission-provider.js +205 -0
- package/dist/service/workflow-argument-serialization.d.ts +2 -0
- package/dist/service/workflow-argument-serialization.js +14 -0
- package/dist/service/workflow-callback.d.ts +22 -0
- package/dist/service/workflow-callback.js +75 -0
- package/dist/service/workflow-deployment.d.ts +8 -0
- package/dist/service/workflow-deployment.js +131 -0
- package/dist/service/workflow-diagnostics.d.ts +23 -0
- package/dist/service/workflow-diagnostics.js +263 -0
- package/dist/service/workflow-errors.d.ts +26 -0
- package/dist/service/workflow-errors.js +181 -0
- package/dist/service/workflow-logging.d.ts +2 -0
- package/dist/service/workflow-logging.js +50 -0
- package/dist/service/workflow-queue-fence.d.ts +6 -0
- package/dist/service/workflow-queue-fence.js +66 -0
- package/dist/service/workflows.d.ts +200 -0
- package/dist/service/workflows.js +1549 -0
- package/dist/sign-in.d.ts +58 -0
- package/dist/sign-in.js +57 -0
- package/dist/source.d.ts +30 -0
- package/dist/source.js +107 -0
- package/dist/start-recovery-contract.d.ts +49 -0
- package/dist/start-recovery-contract.js +26 -0
- package/dist/start-recovery.d.ts +27 -0
- package/dist/start-recovery.js +81 -0
- package/dist/storage/api.d.ts +4 -0
- package/dist/storage/api.js +40 -0
- package/dist/storage/attachments.d.ts +146 -0
- package/dist/storage/attachments.js +733 -0
- package/dist/storage/authorization.d.ts +38 -0
- package/dist/storage/authorization.js +83 -0
- package/dist/storage/file-access.d.ts +17 -0
- package/dist/storage/file-access.js +8 -0
- package/dist/storage/limits.d.ts +12 -0
- package/dist/storage/limits.js +17 -0
- package/dist/storage/maintenance-auth.d.ts +20 -0
- package/dist/storage/maintenance-auth.js +24 -0
- package/dist/storage/maintenance.d.ts +11 -0
- package/dist/storage/maintenance.js +67 -0
- package/dist/storage/neon.d.ts +4 -0
- package/dist/storage/neon.js +318 -0
- package/dist/storage/operator.d.ts +11 -0
- package/dist/storage/operator.js +30 -0
- package/dist/storage/provider.d.ts +93 -0
- package/dist/storage/provider.js +36 -0
- package/dist/storage/sessions.d.ts +184 -0
- package/dist/storage/sessions.js +688 -0
- package/dist/storage/tables.d.ts +54 -0
- package/dist/storage/tables.js +205 -0
- package/dist/storage/transfers.d.ts +16 -0
- package/dist/storage/transfers.js +153 -0
- package/dist/storage/writes.d.ts +7 -0
- package/dist/storage/writes.js +88 -0
- package/dist/telegram.d.ts +35 -0
- package/dist/telegram.js +173 -0
- package/dist/user-identity.d.ts +28 -0
- package/dist/user-identity.js +106 -0
- package/dist/user.d.ts +75 -0
- package/dist/user.js +111 -0
- package/dist/warehouse-backed.d.ts +6 -0
- package/dist/warehouse-backed.js +495 -0
- package/dist/webhook-token.d.ts +11 -0
- package/dist/webhook-token.js +18 -0
- package/dist/webhooks.d.ts +40 -0
- package/dist/webhooks.js +55 -0
- package/dist/wire.d.ts +10 -0
- package/dist/wire.js +35 -0
- package/dist/workflow-runtime.d.ts +116 -0
- package/dist/workflow-runtime.js +109 -0
- package/dist/workflow-topics.d.ts +28 -0
- package/dist/workflow-topics.js +28 -0
- package/dist/workflow.d.ts +284 -0
- package/dist/workflow.js +259 -0
- package/dist/workflows.d.ts +24 -0
- package/dist/workflows.js +18 -0
- package/package.json +127 -4
|
@@ -0,0 +1,961 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { METRIC_QUERY_FILTER_OPERATORS, ENTITY_METRIC_QUERY_FILTER_OPERATORS, type MetricQueryValue } from "../metric-filters.js";
|
|
3
|
+
import type { ApiPlan } from "./plan.js";
|
|
4
|
+
export { METRIC_QUERY_FILTER_OPERATORS, METRIC_QUERY_PERIOD_UNITS, METRIC_QUERY_PERIODS, ENTITY_METRIC_QUERY_FILTER_OPERATORS, } from "../metric-filters.js";
|
|
5
|
+
/** A record id in a path: a UUID. */
|
|
6
|
+
export declare const IdParam: Schema.String;
|
|
7
|
+
/** An observation's opaque source-key identity, returned by its find tool. */
|
|
8
|
+
export declare const WarehouseIdParam: Schema.String;
|
|
9
|
+
/** The schemas of one entity's records and queries. */
|
|
10
|
+
export interface EntitySchemas {
|
|
11
|
+
/** System fields, properties and `<relationship>_id` per stored `rel.one`. */
|
|
12
|
+
readonly record: Schema.Top;
|
|
13
|
+
/** A record with the relationships a query may include. */
|
|
14
|
+
readonly result: Schema.Top;
|
|
15
|
+
/** `POST /<entity>/query`: the entity's query from `src/query.ts`. */
|
|
16
|
+
readonly query: Schema.Top;
|
|
17
|
+
/** `GET /<entity>` and to-many traversals: the query as URL parameters. */
|
|
18
|
+
readonly queryParams: Schema.Top;
|
|
19
|
+
/** `GET /<entity>/{id}/<rel.one>`. */
|
|
20
|
+
readonly includeParams: Schema.Struct.Fields;
|
|
21
|
+
readonly findResult: Schema.Top;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The record and query schemas of every entity. Queries are `src/query.ts`'s, so the service and
|
|
25
|
+
* the runtime accept exactly the same language.
|
|
26
|
+
*/
|
|
27
|
+
export declare function entitySchemas(plan: ApiPlan): ReadonlyMap<string, EntitySchemas>;
|
|
28
|
+
/** The query parameters of a record's history. */
|
|
29
|
+
export declare const HistoryParams: {
|
|
30
|
+
after: Schema.optionalKey<Schema.String>;
|
|
31
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
32
|
+
};
|
|
33
|
+
export declare const ValidationIssue: Schema.Struct<{
|
|
34
|
+
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Number]>>;
|
|
35
|
+
readonly message: Schema.String;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const Validation: Schema.Struct<{
|
|
38
|
+
readonly ok: Schema.Boolean;
|
|
39
|
+
readonly issues: Schema.$Array<Schema.Struct<{
|
|
40
|
+
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Number]>>;
|
|
41
|
+
readonly message: Schema.String;
|
|
42
|
+
}>>;
|
|
43
|
+
}>;
|
|
44
|
+
export declare const HistoryEntry: Schema.decodeTo<Schema.Struct<{
|
|
45
|
+
readonly execution: Schema.optionalKey<Schema.Struct<{
|
|
46
|
+
readonly issuer: Schema.String;
|
|
47
|
+
readonly audience: Schema.String;
|
|
48
|
+
readonly organizationId: Schema.String;
|
|
49
|
+
readonly workspaceId: Schema.String;
|
|
50
|
+
readonly subject: Schema.String;
|
|
51
|
+
readonly deploymentId: Schema.String;
|
|
52
|
+
readonly ontologyDeploymentId: Schema.String;
|
|
53
|
+
readonly servingOntologyDeploymentId: Schema.String;
|
|
54
|
+
readonly ontologyOrigin: Schema.String;
|
|
55
|
+
readonly environment: Schema.Literals<readonly ["production", "preview"]>;
|
|
56
|
+
readonly jobName: Schema.NullOr<Schema.String>;
|
|
57
|
+
readonly runId: Schema.String;
|
|
58
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
59
|
+
readonly attemptId: Schema.String;
|
|
60
|
+
readonly generation: Schema.Number;
|
|
61
|
+
readonly tokenId: Schema.String;
|
|
62
|
+
readonly issuedAt: Schema.Number;
|
|
63
|
+
readonly expiresAt: Schema.Number;
|
|
64
|
+
}>>;
|
|
65
|
+
readonly id: Schema.String;
|
|
66
|
+
readonly recordId: Schema.String;
|
|
67
|
+
readonly action: Schema.String;
|
|
68
|
+
readonly actionId: Schema.String;
|
|
69
|
+
readonly kind: Schema.Literals<readonly ["create", "update", "delete", "link", "unlink"]>;
|
|
70
|
+
readonly principalId: Schema.NullOr<Schema.String>;
|
|
71
|
+
readonly at: Schema.String;
|
|
72
|
+
readonly changes: Schema.$Record<Schema.String, Schema.Struct<{
|
|
73
|
+
readonly before: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
74
|
+
readonly after: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
75
|
+
}>>;
|
|
76
|
+
}>, Schema.Struct<{
|
|
77
|
+
readonly execution: Schema.toEncoded<Schema.optionalKey<Schema.Struct<{
|
|
78
|
+
readonly issuer: Schema.String;
|
|
79
|
+
readonly audience: Schema.String;
|
|
80
|
+
readonly organizationId: Schema.String;
|
|
81
|
+
readonly workspaceId: Schema.String;
|
|
82
|
+
readonly subject: Schema.String;
|
|
83
|
+
readonly deploymentId: Schema.String;
|
|
84
|
+
readonly ontologyDeploymentId: Schema.String;
|
|
85
|
+
readonly servingOntologyDeploymentId: Schema.String;
|
|
86
|
+
readonly ontologyOrigin: Schema.String;
|
|
87
|
+
readonly environment: Schema.Literals<readonly ["production", "preview"]>;
|
|
88
|
+
readonly jobName: Schema.NullOr<Schema.String>;
|
|
89
|
+
readonly runId: Schema.String;
|
|
90
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
91
|
+
readonly attemptId: Schema.String;
|
|
92
|
+
readonly generation: Schema.Number;
|
|
93
|
+
readonly tokenId: Schema.String;
|
|
94
|
+
readonly issuedAt: Schema.Number;
|
|
95
|
+
readonly expiresAt: Schema.Number;
|
|
96
|
+
}>>>;
|
|
97
|
+
readonly id: Schema.toEncoded<Schema.String>;
|
|
98
|
+
readonly record_id: Schema.toEncoded<Schema.String>;
|
|
99
|
+
readonly action: Schema.toEncoded<Schema.String>;
|
|
100
|
+
readonly action_id: Schema.toEncoded<Schema.String>;
|
|
101
|
+
readonly kind: Schema.toEncoded<Schema.Literals<readonly ["create", "update", "delete", "link", "unlink"]>>;
|
|
102
|
+
readonly principal_id: Schema.toEncoded<Schema.NullOr<Schema.String>>;
|
|
103
|
+
readonly at: Schema.toEncoded<Schema.String>;
|
|
104
|
+
readonly changes: Schema.toEncoded<Schema.$Record<Schema.String, Schema.Struct<{
|
|
105
|
+
readonly before: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
106
|
+
readonly after: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
107
|
+
}>>>;
|
|
108
|
+
}>, never, never>;
|
|
109
|
+
export declare const HistoryPage: Schema.decodeTo<Schema.Struct<{
|
|
110
|
+
readonly items: Schema.$Array<Schema.decodeTo<Schema.Struct<{
|
|
111
|
+
readonly execution: Schema.optionalKey<Schema.Struct<{
|
|
112
|
+
readonly issuer: Schema.String;
|
|
113
|
+
readonly audience: Schema.String;
|
|
114
|
+
readonly organizationId: Schema.String;
|
|
115
|
+
readonly workspaceId: Schema.String;
|
|
116
|
+
readonly subject: Schema.String;
|
|
117
|
+
readonly deploymentId: Schema.String;
|
|
118
|
+
readonly ontologyDeploymentId: Schema.String;
|
|
119
|
+
readonly servingOntologyDeploymentId: Schema.String;
|
|
120
|
+
readonly ontologyOrigin: Schema.String;
|
|
121
|
+
readonly environment: Schema.Literals<readonly ["production", "preview"]>;
|
|
122
|
+
readonly jobName: Schema.NullOr<Schema.String>;
|
|
123
|
+
readonly runId: Schema.String;
|
|
124
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
125
|
+
readonly attemptId: Schema.String;
|
|
126
|
+
readonly generation: Schema.Number;
|
|
127
|
+
readonly tokenId: Schema.String;
|
|
128
|
+
readonly issuedAt: Schema.Number;
|
|
129
|
+
readonly expiresAt: Schema.Number;
|
|
130
|
+
}>>;
|
|
131
|
+
readonly id: Schema.String;
|
|
132
|
+
readonly recordId: Schema.String;
|
|
133
|
+
readonly action: Schema.String;
|
|
134
|
+
readonly actionId: Schema.String;
|
|
135
|
+
readonly kind: Schema.Literals<readonly ["create", "update", "delete", "link", "unlink"]>;
|
|
136
|
+
readonly principalId: Schema.NullOr<Schema.String>;
|
|
137
|
+
readonly at: Schema.String;
|
|
138
|
+
readonly changes: Schema.$Record<Schema.String, Schema.Struct<{
|
|
139
|
+
readonly before: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
140
|
+
readonly after: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
141
|
+
}>>;
|
|
142
|
+
}>, Schema.Struct<{
|
|
143
|
+
readonly execution: Schema.toEncoded<Schema.optionalKey<Schema.Struct<{
|
|
144
|
+
readonly issuer: Schema.String;
|
|
145
|
+
readonly audience: Schema.String;
|
|
146
|
+
readonly organizationId: Schema.String;
|
|
147
|
+
readonly workspaceId: Schema.String;
|
|
148
|
+
readonly subject: Schema.String;
|
|
149
|
+
readonly deploymentId: Schema.String;
|
|
150
|
+
readonly ontologyDeploymentId: Schema.String;
|
|
151
|
+
readonly servingOntologyDeploymentId: Schema.String;
|
|
152
|
+
readonly ontologyOrigin: Schema.String;
|
|
153
|
+
readonly environment: Schema.Literals<readonly ["production", "preview"]>;
|
|
154
|
+
readonly jobName: Schema.NullOr<Schema.String>;
|
|
155
|
+
readonly runId: Schema.String;
|
|
156
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
157
|
+
readonly attemptId: Schema.String;
|
|
158
|
+
readonly generation: Schema.Number;
|
|
159
|
+
readonly tokenId: Schema.String;
|
|
160
|
+
readonly issuedAt: Schema.Number;
|
|
161
|
+
readonly expiresAt: Schema.Number;
|
|
162
|
+
}>>>;
|
|
163
|
+
readonly id: Schema.toEncoded<Schema.String>;
|
|
164
|
+
readonly record_id: Schema.toEncoded<Schema.String>;
|
|
165
|
+
readonly action: Schema.toEncoded<Schema.String>;
|
|
166
|
+
readonly action_id: Schema.toEncoded<Schema.String>;
|
|
167
|
+
readonly kind: Schema.toEncoded<Schema.Literals<readonly ["create", "update", "delete", "link", "unlink"]>>;
|
|
168
|
+
readonly principal_id: Schema.toEncoded<Schema.NullOr<Schema.String>>;
|
|
169
|
+
readonly at: Schema.toEncoded<Schema.String>;
|
|
170
|
+
readonly changes: Schema.toEncoded<Schema.$Record<Schema.String, Schema.Struct<{
|
|
171
|
+
readonly before: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
172
|
+
readonly after: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
173
|
+
}>>>;
|
|
174
|
+
}>, never, never>>;
|
|
175
|
+
readonly nextCursor: Schema.NullOr<Schema.String>;
|
|
176
|
+
}>, Schema.Struct<{
|
|
177
|
+
readonly items: Schema.toEncoded<Schema.$Array<Schema.decodeTo<Schema.Struct<{
|
|
178
|
+
readonly execution: Schema.optionalKey<Schema.Struct<{
|
|
179
|
+
readonly issuer: Schema.String;
|
|
180
|
+
readonly audience: Schema.String;
|
|
181
|
+
readonly organizationId: Schema.String;
|
|
182
|
+
readonly workspaceId: Schema.String;
|
|
183
|
+
readonly subject: Schema.String;
|
|
184
|
+
readonly deploymentId: Schema.String;
|
|
185
|
+
readonly ontologyDeploymentId: Schema.String;
|
|
186
|
+
readonly servingOntologyDeploymentId: Schema.String;
|
|
187
|
+
readonly ontologyOrigin: Schema.String;
|
|
188
|
+
readonly environment: Schema.Literals<readonly ["production", "preview"]>;
|
|
189
|
+
readonly jobName: Schema.NullOr<Schema.String>;
|
|
190
|
+
readonly runId: Schema.String;
|
|
191
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
192
|
+
readonly attemptId: Schema.String;
|
|
193
|
+
readonly generation: Schema.Number;
|
|
194
|
+
readonly tokenId: Schema.String;
|
|
195
|
+
readonly issuedAt: Schema.Number;
|
|
196
|
+
readonly expiresAt: Schema.Number;
|
|
197
|
+
}>>;
|
|
198
|
+
readonly id: Schema.String;
|
|
199
|
+
readonly recordId: Schema.String;
|
|
200
|
+
readonly action: Schema.String;
|
|
201
|
+
readonly actionId: Schema.String;
|
|
202
|
+
readonly kind: Schema.Literals<readonly ["create", "update", "delete", "link", "unlink"]>;
|
|
203
|
+
readonly principalId: Schema.NullOr<Schema.String>;
|
|
204
|
+
readonly at: Schema.String;
|
|
205
|
+
readonly changes: Schema.$Record<Schema.String, Schema.Struct<{
|
|
206
|
+
readonly before: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
207
|
+
readonly after: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
208
|
+
}>>;
|
|
209
|
+
}>, Schema.Struct<{
|
|
210
|
+
readonly execution: Schema.toEncoded<Schema.optionalKey<Schema.Struct<{
|
|
211
|
+
readonly issuer: Schema.String;
|
|
212
|
+
readonly audience: Schema.String;
|
|
213
|
+
readonly organizationId: Schema.String;
|
|
214
|
+
readonly workspaceId: Schema.String;
|
|
215
|
+
readonly subject: Schema.String;
|
|
216
|
+
readonly deploymentId: Schema.String;
|
|
217
|
+
readonly ontologyDeploymentId: Schema.String;
|
|
218
|
+
readonly servingOntologyDeploymentId: Schema.String;
|
|
219
|
+
readonly ontologyOrigin: Schema.String;
|
|
220
|
+
readonly environment: Schema.Literals<readonly ["production", "preview"]>;
|
|
221
|
+
readonly jobName: Schema.NullOr<Schema.String>;
|
|
222
|
+
readonly runId: Schema.String;
|
|
223
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
224
|
+
readonly attemptId: Schema.String;
|
|
225
|
+
readonly generation: Schema.Number;
|
|
226
|
+
readonly tokenId: Schema.String;
|
|
227
|
+
readonly issuedAt: Schema.Number;
|
|
228
|
+
readonly expiresAt: Schema.Number;
|
|
229
|
+
}>>>;
|
|
230
|
+
readonly id: Schema.toEncoded<Schema.String>;
|
|
231
|
+
readonly record_id: Schema.toEncoded<Schema.String>;
|
|
232
|
+
readonly action: Schema.toEncoded<Schema.String>;
|
|
233
|
+
readonly action_id: Schema.toEncoded<Schema.String>;
|
|
234
|
+
readonly kind: Schema.toEncoded<Schema.Literals<readonly ["create", "update", "delete", "link", "unlink"]>>;
|
|
235
|
+
readonly principal_id: Schema.toEncoded<Schema.NullOr<Schema.String>>;
|
|
236
|
+
readonly at: Schema.toEncoded<Schema.String>;
|
|
237
|
+
readonly changes: Schema.toEncoded<Schema.$Record<Schema.String, Schema.Struct<{
|
|
238
|
+
readonly before: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
239
|
+
readonly after: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
240
|
+
}>>>;
|
|
241
|
+
}>, never, never>>>;
|
|
242
|
+
readonly next_cursor: Schema.toEncoded<Schema.NullOr<Schema.String>>;
|
|
243
|
+
}>, never, never>;
|
|
244
|
+
/** The body of `POST /<entity>/actions/<action>`, as documented. */
|
|
245
|
+
export declare function actionRequest(input: Schema.Top): Schema.Top;
|
|
246
|
+
/** The body of `POST /<entity>/actions/<action>`, as decoded: `runAction` validates the input. */
|
|
247
|
+
export declare const ActionEnvelope: Schema.Codec<{
|
|
248
|
+
readonly input: unknown;
|
|
249
|
+
readonly options?: {
|
|
250
|
+
readonly validateOnly?: boolean;
|
|
251
|
+
readonly idempotencyKey?: string;
|
|
252
|
+
readonly createIntent?: string;
|
|
253
|
+
};
|
|
254
|
+
}>;
|
|
255
|
+
export declare const ActionResponse: Schema.Struct<{
|
|
256
|
+
readonly result: Schema.Unknown;
|
|
257
|
+
readonly validation: Schema.Struct<{
|
|
258
|
+
readonly ok: Schema.Boolean;
|
|
259
|
+
readonly issues: Schema.$Array<Schema.Struct<{
|
|
260
|
+
readonly path: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Number]>>;
|
|
261
|
+
readonly message: Schema.String;
|
|
262
|
+
}>>;
|
|
263
|
+
}>;
|
|
264
|
+
readonly edits: Schema.$Array<Schema.Struct<{
|
|
265
|
+
readonly entity: Schema.String;
|
|
266
|
+
readonly id: Schema.String;
|
|
267
|
+
readonly kind: Schema.Literals<readonly ["create", "update", "delete", "link", "unlink"]>;
|
|
268
|
+
readonly changes: Schema.$Record<Schema.String, Schema.Struct<{
|
|
269
|
+
readonly before: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
270
|
+
readonly after: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
271
|
+
}>>;
|
|
272
|
+
}>>;
|
|
273
|
+
}>;
|
|
274
|
+
export declare const Catalog: Schema.decodeTo<Schema.Struct<{
|
|
275
|
+
readonly entities: Schema.$Array<Schema.encodeKeys<Schema.Struct<{
|
|
276
|
+
readonly metrics: Schema.optionalKey<Schema.$Array<Schema.encodeKeys<Schema.Struct<{
|
|
277
|
+
readonly name: Schema.String;
|
|
278
|
+
readonly label: Schema.String;
|
|
279
|
+
readonly description: Schema.String;
|
|
280
|
+
readonly unit: Schema.Literals<readonly ["number", "currency", "ratio", "percent"]>;
|
|
281
|
+
readonly format: Schema.Literals<readonly ["decimal", "currency", "percent"]>;
|
|
282
|
+
readonly expression: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
283
|
+
readonly balanceOver: Schema.optionalKey<Schema.String>;
|
|
284
|
+
}>, {
|
|
285
|
+
readonly balanceOver: "balance_over";
|
|
286
|
+
}>>>;
|
|
287
|
+
readonly properties: Schema.$Array<Schema.encodeKeys<Schema.Struct<{
|
|
288
|
+
readonly column: Schema.optionalKey<Schema.String>;
|
|
289
|
+
readonly scope: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
290
|
+
readonly name: Schema.String;
|
|
291
|
+
readonly type: Schema.Literals<readonly ["text", "email", "url", "integer", "number", "boolean", "date", "timestamp", "select", "json", "blob", "list"]>;
|
|
292
|
+
readonly label: Schema.String;
|
|
293
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
294
|
+
readonly optional: Schema.Boolean;
|
|
295
|
+
readonly unique: Schema.Boolean;
|
|
296
|
+
readonly managed: Schema.Boolean;
|
|
297
|
+
readonly default: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
298
|
+
readonly display: Schema.optionalKey<Schema.String>;
|
|
299
|
+
readonly renamedFrom: Schema.optionalKey<Schema.String>;
|
|
300
|
+
readonly min: Schema.optionalKey<Schema.Number>;
|
|
301
|
+
readonly max: Schema.optionalKey<Schema.Number>;
|
|
302
|
+
readonly maxLength: Schema.optionalKey<Schema.Number>;
|
|
303
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
304
|
+
readonly maxBytes: Schema.optionalKey<Schema.Number>;
|
|
305
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
306
|
+
readonly value: Schema.String;
|
|
307
|
+
readonly label: Schema.String;
|
|
308
|
+
readonly description: Schema.String;
|
|
309
|
+
}>>>;
|
|
310
|
+
readonly items: Schema.optionalKey<Schema.Literals<readonly ["text", "email", "url", "integer", "number", "boolean", "date", "timestamp", "select", "json", "blob", "list"]>>;
|
|
311
|
+
}>, {
|
|
312
|
+
readonly renamedFrom: "renamed_from";
|
|
313
|
+
readonly maxLength: "max_length";
|
|
314
|
+
readonly maxBytes: "max_bytes";
|
|
315
|
+
}>>;
|
|
316
|
+
readonly relationships: Schema.$Array<Schema.encodeKeys<Schema.Struct<{
|
|
317
|
+
readonly on: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
318
|
+
readonly property: Schema.String;
|
|
319
|
+
readonly targetProperty: Schema.String;
|
|
320
|
+
}>, {
|
|
321
|
+
readonly targetProperty: "target_property";
|
|
322
|
+
}>>;
|
|
323
|
+
readonly onDelete: Schema.optionalKey<Schema.decodeTo<Schema.Literals<readonly ["setNull", "cascade", "restrict"]>, Schema.Literals<readonly ["set_null", "cascade", "restrict"]>, never, never>>;
|
|
324
|
+
readonly name: Schema.String;
|
|
325
|
+
readonly to: Schema.String;
|
|
326
|
+
readonly inverse: Schema.String;
|
|
327
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
328
|
+
readonly optional: Schema.optionalKey<Schema.Boolean>;
|
|
329
|
+
readonly ordered: Schema.optionalKey<Schema.Boolean>;
|
|
330
|
+
readonly phrase: Schema.Tuple<readonly [Schema.String, Schema.String]>;
|
|
331
|
+
readonly description: Schema.String;
|
|
332
|
+
}>, {
|
|
333
|
+
readonly onDelete: "on_delete";
|
|
334
|
+
}>>;
|
|
335
|
+
readonly source: Schema.optionalKey<Schema.Struct<{
|
|
336
|
+
readonly asset: Schema.String;
|
|
337
|
+
readonly key: Schema.$Array<Schema.String>;
|
|
338
|
+
readonly currency: Schema.optionalKey<Schema.String>;
|
|
339
|
+
}>>;
|
|
340
|
+
readonly id: Schema.String;
|
|
341
|
+
readonly name: Schema.String;
|
|
342
|
+
readonly label: Schema.String;
|
|
343
|
+
readonly plural: Schema.String;
|
|
344
|
+
readonly title: Schema.String;
|
|
345
|
+
readonly description: Schema.String;
|
|
346
|
+
readonly builtIn: Schema.Boolean;
|
|
347
|
+
readonly renamedFrom: Schema.optionalKey<Schema.String>;
|
|
348
|
+
readonly guide: Schema.optionalKey<Schema.String>;
|
|
349
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
350
|
+
readonly properties: Schema.$Array<Schema.String>;
|
|
351
|
+
readonly unique: Schema.Boolean;
|
|
352
|
+
}>>;
|
|
353
|
+
readonly actions: Schema.$Array<Schema.Struct<{
|
|
354
|
+
readonly name: Schema.String;
|
|
355
|
+
readonly description: Schema.String;
|
|
356
|
+
readonly permission: Schema.optionalKey<Schema.String>;
|
|
357
|
+
readonly input: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
358
|
+
readonly retryOnDeadlock: Schema.optionalKey<Schema.Boolean>;
|
|
359
|
+
readonly writes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
360
|
+
readonly connections: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
361
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
362
|
+
readonly entity: Schema.String;
|
|
363
|
+
readonly property: Schema.String;
|
|
364
|
+
}>>>;
|
|
365
|
+
readonly hints: Schema.optionalKey<Schema.Struct<{
|
|
366
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
367
|
+
readonly connectionsReadOnly: Schema.optionalKey<Schema.Boolean>;
|
|
368
|
+
readonly destructive: Schema.optionalKey<Schema.Boolean>;
|
|
369
|
+
readonly irreversible: Schema.optionalKey<Schema.Boolean>;
|
|
370
|
+
readonly idempotent: Schema.optionalKey<Schema.Boolean>;
|
|
371
|
+
}>>;
|
|
372
|
+
}>>;
|
|
373
|
+
readonly permissions: Schema.optionalKey<Schema.Struct<{
|
|
374
|
+
readonly read: Schema.String;
|
|
375
|
+
readonly create: Schema.optionalKey<Schema.String>;
|
|
376
|
+
readonly update: Schema.optionalKey<Schema.String>;
|
|
377
|
+
readonly delete: Schema.optionalKey<Schema.String>;
|
|
378
|
+
readonly link: Schema.optionalKey<Schema.String>;
|
|
379
|
+
readonly unlink: Schema.optionalKey<Schema.String>;
|
|
380
|
+
}>>;
|
|
381
|
+
readonly writes: Schema.optionalKey<Schema.Literal<"actions">>;
|
|
382
|
+
}>, {
|
|
383
|
+
readonly builtIn: "built_in";
|
|
384
|
+
readonly renamedFrom: "renamed_from";
|
|
385
|
+
}>>;
|
|
386
|
+
readonly roles: Schema.$Array<Schema.encodeKeys<Schema.Struct<{
|
|
387
|
+
readonly name: Schema.String;
|
|
388
|
+
readonly description: Schema.String;
|
|
389
|
+
readonly builtIn: Schema.Boolean;
|
|
390
|
+
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
391
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
392
|
+
readonly permission: Schema.String;
|
|
393
|
+
readonly where: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
394
|
+
}>>>;
|
|
395
|
+
}>, {
|
|
396
|
+
readonly builtIn: "built_in";
|
|
397
|
+
}>>;
|
|
398
|
+
readonly feedback: Schema.optionalKey<Schema.Struct<{
|
|
399
|
+
readonly enabled: Schema.Boolean;
|
|
400
|
+
readonly files: Schema.Boolean;
|
|
401
|
+
readonly builders: Schema.$Array<Schema.String>;
|
|
402
|
+
readonly automaticFailureReports: Schema.optionalKey<Schema.Boolean>;
|
|
403
|
+
}>>;
|
|
404
|
+
readonly runtimeCapabilities: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
405
|
+
readonly executionCompatibility: Schema.optionalKey<Schema.Struct<{
|
|
406
|
+
readonly version: Schema.Int;
|
|
407
|
+
readonly hash: Schema.String;
|
|
408
|
+
}>>;
|
|
409
|
+
readonly version: Schema.Int;
|
|
410
|
+
readonly hash: Schema.String;
|
|
411
|
+
readonly signIn: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
412
|
+
readonly browser: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
413
|
+
readonly methods: Schema.$Array<Schema.String>;
|
|
414
|
+
readonly primary: Schema.String;
|
|
415
|
+
readonly autoRedirect: Schema.Boolean;
|
|
416
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
417
|
+
readonly port: Schema.Int;
|
|
418
|
+
}>>;
|
|
419
|
+
}>, {
|
|
420
|
+
readonly autoRedirect: "auto_redirect";
|
|
421
|
+
}>>;
|
|
422
|
+
readonly policy: Schema.String;
|
|
423
|
+
readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
424
|
+
readonly onNewUser: Schema.optionalKey<Schema.String>;
|
|
425
|
+
readonly codeLink: Schema.optionalKey<Schema.Boolean>;
|
|
426
|
+
}>, {
|
|
427
|
+
readonly onNewUser: "on_new_user";
|
|
428
|
+
readonly codeLink: "code_link";
|
|
429
|
+
}>>;
|
|
430
|
+
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
|
|
431
|
+
readonly subject: Schema.String;
|
|
432
|
+
readonly eyebrow: Schema.optionalKey<Schema.String>;
|
|
433
|
+
readonly heading: Schema.String;
|
|
434
|
+
readonly card: Schema.optionalKey<Schema.Struct<{
|
|
435
|
+
readonly title: Schema.String;
|
|
436
|
+
readonly detail: Schema.optionalKey<Schema.String>;
|
|
437
|
+
}>>;
|
|
438
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
439
|
+
readonly paragraphs: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
440
|
+
readonly action: Schema.String;
|
|
441
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
442
|
+
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
443
|
+
}>, {
|
|
444
|
+
readonly replyTo: "reply_to";
|
|
445
|
+
}>>>;
|
|
446
|
+
readonly connections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
447
|
+
readonly key: Schema.String;
|
|
448
|
+
readonly description: Schema.String;
|
|
449
|
+
readonly delivers: Schema.optionalKey<Schema.Literal<true>>;
|
|
450
|
+
}>>>;
|
|
451
|
+
readonly chat: Schema.optionalKey<Schema.Struct<{
|
|
452
|
+
readonly telegram: Schema.optionalKey<Schema.Struct<{
|
|
453
|
+
readonly connection: Schema.String;
|
|
454
|
+
}>>;
|
|
455
|
+
readonly attribution: Schema.optionalKey<Schema.Struct<{
|
|
456
|
+
readonly template: Schema.optionalKey<Schema.String>;
|
|
457
|
+
readonly separator: Schema.optionalKey<Schema.String>;
|
|
458
|
+
}>>;
|
|
459
|
+
}>>;
|
|
460
|
+
readonly metrics: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
461
|
+
readonly name: Schema.String;
|
|
462
|
+
readonly label: Schema.String;
|
|
463
|
+
readonly description: Schema.String;
|
|
464
|
+
readonly unit: Schema.Literals<readonly ["number", "currency", "ratio", "percent"]>;
|
|
465
|
+
readonly format: Schema.Literals<readonly ["decimal", "currency", "percent"]>;
|
|
466
|
+
readonly expression: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
467
|
+
readonly inputs: Schema.$Array<Schema.String>;
|
|
468
|
+
readonly align: Schema.$Array<Schema.$Record<Schema.String, Schema.NullOr<Schema.String>>>;
|
|
469
|
+
}>>>;
|
|
470
|
+
readonly workflows: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
471
|
+
readonly name: Schema.String;
|
|
472
|
+
readonly description: Schema.String;
|
|
473
|
+
readonly role: Schema.String;
|
|
474
|
+
readonly input: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
475
|
+
readonly connections: Schema.$Array<Schema.String>;
|
|
476
|
+
readonly triggers: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
477
|
+
readonly kind: Schema.Literal<"cron">;
|
|
478
|
+
readonly name: Schema.String;
|
|
479
|
+
readonly description: Schema.String;
|
|
480
|
+
readonly cron: Schema.String;
|
|
481
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
482
|
+
}>, Schema.Struct<{
|
|
483
|
+
readonly kind: Schema.Literal<"action">;
|
|
484
|
+
readonly name: Schema.String;
|
|
485
|
+
readonly description: Schema.String;
|
|
486
|
+
readonly entity: Schema.String;
|
|
487
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
488
|
+
}>, Schema.Struct<{
|
|
489
|
+
readonly kind: Schema.Literal<"webhook">;
|
|
490
|
+
readonly name: Schema.String;
|
|
491
|
+
readonly description: Schema.String;
|
|
492
|
+
readonly signature: Schema.optionalKey<Schema.Struct<{
|
|
493
|
+
readonly scheme: Schema.String;
|
|
494
|
+
readonly secret: Schema.String;
|
|
495
|
+
}>>;
|
|
496
|
+
readonly verification: Schema.optionalKey<Schema.Struct<{
|
|
497
|
+
readonly scheme: Schema.String;
|
|
498
|
+
readonly verifyToken: Schema.String;
|
|
499
|
+
}>>;
|
|
500
|
+
readonly headers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
501
|
+
}>, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
502
|
+
}>>>;
|
|
503
|
+
}>, Schema.Struct<{
|
|
504
|
+
readonly entities: Schema.toEncoded<Schema.$Array<Schema.encodeKeys<Schema.Struct<{
|
|
505
|
+
readonly metrics: Schema.optionalKey<Schema.$Array<Schema.encodeKeys<Schema.Struct<{
|
|
506
|
+
readonly name: Schema.String;
|
|
507
|
+
readonly label: Schema.String;
|
|
508
|
+
readonly description: Schema.String;
|
|
509
|
+
readonly unit: Schema.Literals<readonly ["number", "currency", "ratio", "percent"]>;
|
|
510
|
+
readonly format: Schema.Literals<readonly ["decimal", "currency", "percent"]>;
|
|
511
|
+
readonly expression: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
512
|
+
readonly balanceOver: Schema.optionalKey<Schema.String>;
|
|
513
|
+
}>, {
|
|
514
|
+
readonly balanceOver: "balance_over";
|
|
515
|
+
}>>>;
|
|
516
|
+
readonly properties: Schema.$Array<Schema.encodeKeys<Schema.Struct<{
|
|
517
|
+
readonly column: Schema.optionalKey<Schema.String>;
|
|
518
|
+
readonly scope: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
519
|
+
readonly name: Schema.String;
|
|
520
|
+
readonly type: Schema.Literals<readonly ["text", "email", "url", "integer", "number", "boolean", "date", "timestamp", "select", "json", "blob", "list"]>;
|
|
521
|
+
readonly label: Schema.String;
|
|
522
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
523
|
+
readonly optional: Schema.Boolean;
|
|
524
|
+
readonly unique: Schema.Boolean;
|
|
525
|
+
readonly managed: Schema.Boolean;
|
|
526
|
+
readonly default: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
527
|
+
readonly display: Schema.optionalKey<Schema.String>;
|
|
528
|
+
readonly renamedFrom: Schema.optionalKey<Schema.String>;
|
|
529
|
+
readonly min: Schema.optionalKey<Schema.Number>;
|
|
530
|
+
readonly max: Schema.optionalKey<Schema.Number>;
|
|
531
|
+
readonly maxLength: Schema.optionalKey<Schema.Number>;
|
|
532
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
533
|
+
readonly maxBytes: Schema.optionalKey<Schema.Number>;
|
|
534
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
535
|
+
readonly value: Schema.String;
|
|
536
|
+
readonly label: Schema.String;
|
|
537
|
+
readonly description: Schema.String;
|
|
538
|
+
}>>>;
|
|
539
|
+
readonly items: Schema.optionalKey<Schema.Literals<readonly ["text", "email", "url", "integer", "number", "boolean", "date", "timestamp", "select", "json", "blob", "list"]>>;
|
|
540
|
+
}>, {
|
|
541
|
+
readonly renamedFrom: "renamed_from";
|
|
542
|
+
readonly maxLength: "max_length";
|
|
543
|
+
readonly maxBytes: "max_bytes";
|
|
544
|
+
}>>;
|
|
545
|
+
readonly relationships: Schema.$Array<Schema.encodeKeys<Schema.Struct<{
|
|
546
|
+
readonly on: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
547
|
+
readonly property: Schema.String;
|
|
548
|
+
readonly targetProperty: Schema.String;
|
|
549
|
+
}>, {
|
|
550
|
+
readonly targetProperty: "target_property";
|
|
551
|
+
}>>;
|
|
552
|
+
readonly onDelete: Schema.optionalKey<Schema.decodeTo<Schema.Literals<readonly ["setNull", "cascade", "restrict"]>, Schema.Literals<readonly ["set_null", "cascade", "restrict"]>, never, never>>;
|
|
553
|
+
readonly name: Schema.String;
|
|
554
|
+
readonly to: Schema.String;
|
|
555
|
+
readonly inverse: Schema.String;
|
|
556
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
557
|
+
readonly optional: Schema.optionalKey<Schema.Boolean>;
|
|
558
|
+
readonly ordered: Schema.optionalKey<Schema.Boolean>;
|
|
559
|
+
readonly phrase: Schema.Tuple<readonly [Schema.String, Schema.String]>;
|
|
560
|
+
readonly description: Schema.String;
|
|
561
|
+
}>, {
|
|
562
|
+
readonly onDelete: "on_delete";
|
|
563
|
+
}>>;
|
|
564
|
+
readonly source: Schema.optionalKey<Schema.Struct<{
|
|
565
|
+
readonly asset: Schema.String;
|
|
566
|
+
readonly key: Schema.$Array<Schema.String>;
|
|
567
|
+
readonly currency: Schema.optionalKey<Schema.String>;
|
|
568
|
+
}>>;
|
|
569
|
+
readonly id: Schema.String;
|
|
570
|
+
readonly name: Schema.String;
|
|
571
|
+
readonly label: Schema.String;
|
|
572
|
+
readonly plural: Schema.String;
|
|
573
|
+
readonly title: Schema.String;
|
|
574
|
+
readonly description: Schema.String;
|
|
575
|
+
readonly builtIn: Schema.Boolean;
|
|
576
|
+
readonly renamedFrom: Schema.optionalKey<Schema.String>;
|
|
577
|
+
readonly guide: Schema.optionalKey<Schema.String>;
|
|
578
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
579
|
+
readonly properties: Schema.$Array<Schema.String>;
|
|
580
|
+
readonly unique: Schema.Boolean;
|
|
581
|
+
}>>;
|
|
582
|
+
readonly actions: Schema.$Array<Schema.Struct<{
|
|
583
|
+
readonly name: Schema.String;
|
|
584
|
+
readonly description: Schema.String;
|
|
585
|
+
readonly permission: Schema.optionalKey<Schema.String>;
|
|
586
|
+
readonly input: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
587
|
+
readonly retryOnDeadlock: Schema.optionalKey<Schema.Boolean>;
|
|
588
|
+
readonly writes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
589
|
+
readonly connections: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
590
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
591
|
+
readonly entity: Schema.String;
|
|
592
|
+
readonly property: Schema.String;
|
|
593
|
+
}>>>;
|
|
594
|
+
readonly hints: Schema.optionalKey<Schema.Struct<{
|
|
595
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
596
|
+
readonly connectionsReadOnly: Schema.optionalKey<Schema.Boolean>;
|
|
597
|
+
readonly destructive: Schema.optionalKey<Schema.Boolean>;
|
|
598
|
+
readonly irreversible: Schema.optionalKey<Schema.Boolean>;
|
|
599
|
+
readonly idempotent: Schema.optionalKey<Schema.Boolean>;
|
|
600
|
+
}>>;
|
|
601
|
+
}>>;
|
|
602
|
+
readonly permissions: Schema.optionalKey<Schema.Struct<{
|
|
603
|
+
readonly read: Schema.String;
|
|
604
|
+
readonly create: Schema.optionalKey<Schema.String>;
|
|
605
|
+
readonly update: Schema.optionalKey<Schema.String>;
|
|
606
|
+
readonly delete: Schema.optionalKey<Schema.String>;
|
|
607
|
+
readonly link: Schema.optionalKey<Schema.String>;
|
|
608
|
+
readonly unlink: Schema.optionalKey<Schema.String>;
|
|
609
|
+
}>>;
|
|
610
|
+
readonly writes: Schema.optionalKey<Schema.Literal<"actions">>;
|
|
611
|
+
}>, {
|
|
612
|
+
readonly builtIn: "built_in";
|
|
613
|
+
readonly renamedFrom: "renamed_from";
|
|
614
|
+
}>>>;
|
|
615
|
+
readonly roles: Schema.toEncoded<Schema.$Array<Schema.encodeKeys<Schema.Struct<{
|
|
616
|
+
readonly name: Schema.String;
|
|
617
|
+
readonly description: Schema.String;
|
|
618
|
+
readonly builtIn: Schema.Boolean;
|
|
619
|
+
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
620
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
621
|
+
readonly permission: Schema.String;
|
|
622
|
+
readonly where: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
623
|
+
}>>>;
|
|
624
|
+
}>, {
|
|
625
|
+
readonly builtIn: "built_in";
|
|
626
|
+
}>>>;
|
|
627
|
+
readonly feedback: Schema.toEncoded<Schema.optionalKey<Schema.Struct<{
|
|
628
|
+
readonly enabled: Schema.Boolean;
|
|
629
|
+
readonly files: Schema.Boolean;
|
|
630
|
+
readonly builders: Schema.$Array<Schema.String>;
|
|
631
|
+
readonly automaticFailureReports: Schema.optionalKey<Schema.Boolean>;
|
|
632
|
+
}>>>;
|
|
633
|
+
readonly runtimeCapabilities: Schema.toEncoded<Schema.optionalKey<Schema.$Array<Schema.String>>>;
|
|
634
|
+
readonly executionCompatibility: Schema.toEncoded<Schema.optionalKey<Schema.Struct<{
|
|
635
|
+
readonly version: Schema.Int;
|
|
636
|
+
readonly hash: Schema.String;
|
|
637
|
+
}>>>;
|
|
638
|
+
readonly version: Schema.toEncoded<Schema.Int>;
|
|
639
|
+
readonly hash: Schema.toEncoded<Schema.String>;
|
|
640
|
+
readonly sign_in: Schema.toEncoded<Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
641
|
+
readonly browser: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
642
|
+
readonly methods: Schema.$Array<Schema.String>;
|
|
643
|
+
readonly primary: Schema.String;
|
|
644
|
+
readonly autoRedirect: Schema.Boolean;
|
|
645
|
+
readonly local: Schema.optionalKey<Schema.Struct<{
|
|
646
|
+
readonly port: Schema.Int;
|
|
647
|
+
}>>;
|
|
648
|
+
}>, {
|
|
649
|
+
readonly autoRedirect: "auto_redirect";
|
|
650
|
+
}>>;
|
|
651
|
+
readonly policy: Schema.String;
|
|
652
|
+
readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
653
|
+
readonly onNewUser: Schema.optionalKey<Schema.String>;
|
|
654
|
+
readonly codeLink: Schema.optionalKey<Schema.Boolean>;
|
|
655
|
+
}>, {
|
|
656
|
+
readonly onNewUser: "on_new_user";
|
|
657
|
+
readonly codeLink: "code_link";
|
|
658
|
+
}>>>;
|
|
659
|
+
readonly emails: Schema.toEncoded<Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
|
|
660
|
+
readonly subject: Schema.String;
|
|
661
|
+
readonly eyebrow: Schema.optionalKey<Schema.String>;
|
|
662
|
+
readonly heading: Schema.String;
|
|
663
|
+
readonly card: Schema.optionalKey<Schema.Struct<{
|
|
664
|
+
readonly title: Schema.String;
|
|
665
|
+
readonly detail: Schema.optionalKey<Schema.String>;
|
|
666
|
+
}>>;
|
|
667
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
668
|
+
readonly paragraphs: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
669
|
+
readonly action: Schema.String;
|
|
670
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
671
|
+
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
672
|
+
}>, {
|
|
673
|
+
readonly replyTo: "reply_to";
|
|
674
|
+
}>>>>;
|
|
675
|
+
readonly connections: Schema.toEncoded<Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
676
|
+
readonly key: Schema.String;
|
|
677
|
+
readonly description: Schema.String;
|
|
678
|
+
readonly delivers: Schema.optionalKey<Schema.Literal<true>>;
|
|
679
|
+
}>>>>;
|
|
680
|
+
readonly chat: Schema.toEncoded<Schema.optionalKey<Schema.Struct<{
|
|
681
|
+
readonly telegram: Schema.optionalKey<Schema.Struct<{
|
|
682
|
+
readonly connection: Schema.String;
|
|
683
|
+
}>>;
|
|
684
|
+
readonly attribution: Schema.optionalKey<Schema.Struct<{
|
|
685
|
+
readonly template: Schema.optionalKey<Schema.String>;
|
|
686
|
+
readonly separator: Schema.optionalKey<Schema.String>;
|
|
687
|
+
}>>;
|
|
688
|
+
}>>>;
|
|
689
|
+
readonly metrics: Schema.toEncoded<Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
690
|
+
readonly name: Schema.String;
|
|
691
|
+
readonly label: Schema.String;
|
|
692
|
+
readonly description: Schema.String;
|
|
693
|
+
readonly unit: Schema.Literals<readonly ["number", "currency", "ratio", "percent"]>;
|
|
694
|
+
readonly format: Schema.Literals<readonly ["decimal", "currency", "percent"]>;
|
|
695
|
+
readonly expression: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
696
|
+
readonly inputs: Schema.$Array<Schema.String>;
|
|
697
|
+
readonly align: Schema.$Array<Schema.$Record<Schema.String, Schema.NullOr<Schema.String>>>;
|
|
698
|
+
}>>>>;
|
|
699
|
+
readonly workflows: Schema.toEncoded<Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
700
|
+
readonly name: Schema.String;
|
|
701
|
+
readonly description: Schema.String;
|
|
702
|
+
readonly role: Schema.String;
|
|
703
|
+
readonly input: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
704
|
+
readonly connections: Schema.$Array<Schema.String>;
|
|
705
|
+
readonly triggers: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
706
|
+
readonly kind: Schema.Literal<"cron">;
|
|
707
|
+
readonly name: Schema.String;
|
|
708
|
+
readonly description: Schema.String;
|
|
709
|
+
readonly cron: Schema.String;
|
|
710
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
711
|
+
}>, Schema.Struct<{
|
|
712
|
+
readonly kind: Schema.Literal<"action">;
|
|
713
|
+
readonly name: Schema.String;
|
|
714
|
+
readonly description: Schema.String;
|
|
715
|
+
readonly entity: Schema.String;
|
|
716
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
717
|
+
}>, Schema.Struct<{
|
|
718
|
+
readonly kind: Schema.Literal<"webhook">;
|
|
719
|
+
readonly name: Schema.String;
|
|
720
|
+
readonly description: Schema.String;
|
|
721
|
+
readonly signature: Schema.optionalKey<Schema.Struct<{
|
|
722
|
+
readonly scheme: Schema.String;
|
|
723
|
+
readonly secret: Schema.String;
|
|
724
|
+
}>>;
|
|
725
|
+
readonly verification: Schema.optionalKey<Schema.Struct<{
|
|
726
|
+
readonly scheme: Schema.String;
|
|
727
|
+
readonly verifyToken: Schema.String;
|
|
728
|
+
}>>;
|
|
729
|
+
readonly headers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
730
|
+
}>, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
731
|
+
}>>>>;
|
|
732
|
+
}>, never, never>;
|
|
733
|
+
export declare const Graph: Schema.Struct<{
|
|
734
|
+
readonly hash: Schema.String;
|
|
735
|
+
readonly entities: Schema.$Array<Schema.Struct<{
|
|
736
|
+
readonly name: Schema.String;
|
|
737
|
+
readonly label: Schema.String;
|
|
738
|
+
readonly plural: Schema.String;
|
|
739
|
+
readonly description: Schema.String;
|
|
740
|
+
}>>;
|
|
741
|
+
readonly relationships: Schema.$Array<Schema.Struct<{
|
|
742
|
+
readonly from: Schema.String;
|
|
743
|
+
readonly name: Schema.String;
|
|
744
|
+
readonly to: Schema.String;
|
|
745
|
+
readonly inverse: Schema.String;
|
|
746
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
747
|
+
/** The property pair of a relationship matched by value: one with a warehouse-backed end. */
|
|
748
|
+
readonly on: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
749
|
+
readonly property: Schema.String;
|
|
750
|
+
readonly targetProperty: Schema.String;
|
|
751
|
+
}>, {
|
|
752
|
+
readonly targetProperty: "target_property";
|
|
753
|
+
}>>;
|
|
754
|
+
readonly optional: Schema.Boolean;
|
|
755
|
+
readonly phrase: Schema.Tuple<readonly [Schema.String, Schema.String]>;
|
|
756
|
+
readonly forward: Schema.String;
|
|
757
|
+
readonly backward: Schema.String;
|
|
758
|
+
readonly description: Schema.String;
|
|
759
|
+
}>>;
|
|
760
|
+
}>;
|
|
761
|
+
export declare const Status: Schema.decodeTo<Schema.Struct<{
|
|
762
|
+
readonly deployment: Schema.optionalKey<Schema.Struct<{
|
|
763
|
+
readonly target: Schema.Literals<readonly ["production", "preview"]>;
|
|
764
|
+
readonly deploymentId: Schema.optionalKey<Schema.String>;
|
|
765
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
766
|
+
readonly capabilities: Schema.Struct<{
|
|
767
|
+
readonly warehouseRead: Schema.Boolean;
|
|
768
|
+
readonly pipelineRuns: Schema.Boolean;
|
|
769
|
+
readonly connections: Schema.Boolean;
|
|
770
|
+
readonly agents: Schema.Boolean;
|
|
771
|
+
readonly workflows: Schema.Boolean;
|
|
772
|
+
}>;
|
|
773
|
+
}>>;
|
|
774
|
+
readonly hash: Schema.String;
|
|
775
|
+
readonly appliedHash: Schema.NullOr<Schema.String>;
|
|
776
|
+
readonly upToDate: Schema.Boolean;
|
|
777
|
+
}>, Schema.Struct<{
|
|
778
|
+
readonly deployment: Schema.toEncoded<Schema.optionalKey<Schema.Struct<{
|
|
779
|
+
readonly target: Schema.Literals<readonly ["production", "preview"]>;
|
|
780
|
+
readonly deploymentId: Schema.optionalKey<Schema.String>;
|
|
781
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
782
|
+
readonly capabilities: Schema.Struct<{
|
|
783
|
+
readonly warehouseRead: Schema.Boolean;
|
|
784
|
+
readonly pipelineRuns: Schema.Boolean;
|
|
785
|
+
readonly connections: Schema.Boolean;
|
|
786
|
+
readonly agents: Schema.Boolean;
|
|
787
|
+
readonly workflows: Schema.Boolean;
|
|
788
|
+
}>;
|
|
789
|
+
}>>>;
|
|
790
|
+
readonly hash: Schema.toEncoded<Schema.String>;
|
|
791
|
+
readonly applied_hash: Schema.toEncoded<Schema.NullOr<Schema.String>>;
|
|
792
|
+
readonly up_to_date: Schema.toEncoded<Schema.Boolean>;
|
|
793
|
+
}>, never, never>;
|
|
794
|
+
/** The longest address `POST /api/ontology/sign-in/check` reads; RFC 5321 allows 254. */
|
|
795
|
+
export declare const SIGN_IN_CHECK_MAX_EMAIL_LENGTH = 320;
|
|
796
|
+
/** `POST /api/ontology/sign-in/check`: the address a person wants to sign in with. */
|
|
797
|
+
export declare const SignInCheckRequest: Schema.Struct<{
|
|
798
|
+
readonly email: Schema.String;
|
|
799
|
+
}>;
|
|
800
|
+
/** The bounds of a model-level metric query (docs/ontology-aggregates-spec.md, "Request"). */
|
|
801
|
+
export declare const METRIC_QUERY_LIMITS: {
|
|
802
|
+
readonly metrics: 30;
|
|
803
|
+
readonly dimensions: 20;
|
|
804
|
+
readonly filters: 50;
|
|
805
|
+
readonly values: 100;
|
|
806
|
+
readonly orderBy: 50;
|
|
807
|
+
readonly rows: 1000;
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* The granularities a date or timestamp dimension buckets by; `hour` applies to timestamps only.
|
|
811
|
+
*/
|
|
812
|
+
export declare const METRIC_QUERY_GRANULARITIES: readonly ["hour", "day", "week", "month", "quarter", "year"];
|
|
813
|
+
/** The longest `timezone` a request names. */
|
|
814
|
+
export declare const MAXIMUM_TIMEZONE_LENGTH = 64;
|
|
815
|
+
interface MetricQueryFilter<Operator extends string> {
|
|
816
|
+
readonly dimension: string;
|
|
817
|
+
readonly operator: Operator;
|
|
818
|
+
readonly value?: MetricQueryValue;
|
|
819
|
+
readonly values?: ReadonlyArray<MetricQueryValue>;
|
|
820
|
+
}
|
|
821
|
+
declare const MetricQueryValue: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
822
|
+
interface MetricQueryOrdering {
|
|
823
|
+
readonly metric?: string;
|
|
824
|
+
readonly dimension?: string;
|
|
825
|
+
readonly direction: "asc" | "desc";
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* `POST /api/ontology/query_metrics`, as documented: the current names only. The service checks the
|
|
829
|
+
* shape and the bounds, resolves the names against its manifest and forwards the body with the
|
|
830
|
+
* current names; SegmentStream checks everything else.
|
|
831
|
+
*/
|
|
832
|
+
export declare const MetricQueryBody: Schema.Codec<MetricQuery>;
|
|
833
|
+
/** `POST /api/ontology/query_metrics` as decoded: the documented body, or one with earlier names. */
|
|
834
|
+
export declare const MetricQuery: Schema.Codec<MetricQuery, unknown>;
|
|
835
|
+
export interface MetricQuery {
|
|
836
|
+
readonly metrics: ReadonlyArray<string>;
|
|
837
|
+
readonly dimensions?: ReadonlyArray<string>;
|
|
838
|
+
readonly filters?: ReadonlyArray<MetricQueryFilter<(typeof METRIC_QUERY_FILTER_OPERATORS)[number]>>;
|
|
839
|
+
readonly granularity?: (typeof METRIC_QUERY_GRANULARITIES)[number];
|
|
840
|
+
readonly granularityOf?: string;
|
|
841
|
+
readonly timezone?: string;
|
|
842
|
+
readonly orderBy?: ReadonlyArray<MetricQueryOrdering>;
|
|
843
|
+
readonly limit?: number;
|
|
844
|
+
}
|
|
845
|
+
/**
|
|
846
|
+
* `POST /api/ontology/<entity>/query_metrics`: SegmentStream's per-entity request, as documented. Names
|
|
847
|
+
* are relative to the entity (`revenue`, `product.brand`), and `dateRange` bounds a partitioned
|
|
848
|
+
* entity.
|
|
849
|
+
*/
|
|
850
|
+
export declare const EntityMetricQueryBody: Schema.Codec<EntityMetricQuery>;
|
|
851
|
+
/** `POST /api/ontology/<entity>/query_metrics` as decoded, earlier names included. */
|
|
852
|
+
export declare const EntityMetricQuery: Schema.Codec<EntityMetricQuery, unknown>;
|
|
853
|
+
export interface EntityMetricQuery {
|
|
854
|
+
readonly dimensions: ReadonlyArray<string>;
|
|
855
|
+
readonly metrics: ReadonlyArray<string>;
|
|
856
|
+
readonly dateRange?: {
|
|
857
|
+
readonly from: string;
|
|
858
|
+
readonly to: string;
|
|
859
|
+
};
|
|
860
|
+
readonly filters?: ReadonlyArray<MetricQueryFilter<(typeof ENTITY_METRIC_QUERY_FILTER_OPERATORS)[number]>>;
|
|
861
|
+
readonly granularity?: (typeof METRIC_QUERY_GRANULARITIES)[number];
|
|
862
|
+
readonly granularityOf?: string;
|
|
863
|
+
readonly timezone?: string;
|
|
864
|
+
readonly orderBy?: ReadonlyArray<MetricQueryOrdering>;
|
|
865
|
+
readonly limit?: number;
|
|
866
|
+
}
|
|
867
|
+
/** SegmentStream's answer to a metric query, which the service forwards unchanged. */
|
|
868
|
+
export declare const MetricQueryResult: Schema.Struct<{
|
|
869
|
+
readonly fields: Schema.$Array<Schema.Struct<{
|
|
870
|
+
readonly name: Schema.String;
|
|
871
|
+
readonly label: Schema.String;
|
|
872
|
+
readonly type: Schema.String;
|
|
873
|
+
readonly unit: Schema.optionalKey<Schema.String>;
|
|
874
|
+
readonly format: Schema.optionalKey<Schema.String>;
|
|
875
|
+
readonly scope: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
876
|
+
readonly implicit: Schema.optionalKey<Schema.Boolean>;
|
|
877
|
+
readonly additive: Schema.optionalKey<Schema.Boolean>;
|
|
878
|
+
readonly filters: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
879
|
+
readonly balanceOver: Schema.optionalKey<Schema.String>;
|
|
880
|
+
readonly inputs: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
881
|
+
}>>;
|
|
882
|
+
readonly rows: Schema.$Array<Schema.$Record<Schema.String, Schema.NullOr<Schema.Union<readonly [Schema.String, Schema.Boolean]>>>>;
|
|
883
|
+
readonly truncated: Schema.Boolean;
|
|
884
|
+
readonly execution: Schema.Struct<{
|
|
885
|
+
readonly elapsedMs: Schema.Number;
|
|
886
|
+
readonly bytesProcessed: Schema.optionalKey<Schema.String>;
|
|
887
|
+
readonly bytesBilled: Schema.optionalKey<Schema.String>;
|
|
888
|
+
readonly warnings: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
889
|
+
readonly sources: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
890
|
+
readonly entity: Schema.String;
|
|
891
|
+
readonly asOf: Schema.String;
|
|
892
|
+
}>>>;
|
|
893
|
+
readonly periods: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
894
|
+
readonly dimension: Schema.String;
|
|
895
|
+
readonly value: Schema.String;
|
|
896
|
+
readonly from: Schema.String;
|
|
897
|
+
readonly to: Schema.String;
|
|
898
|
+
readonly timezone: Schema.String;
|
|
899
|
+
}>>>;
|
|
900
|
+
}>;
|
|
901
|
+
readonly deploymentId: Schema.NullOr<Schema.String>;
|
|
902
|
+
readonly definitionDigest: Schema.String;
|
|
903
|
+
}>;
|
|
904
|
+
/** Whether the address may sign in, and with a code or a link. */
|
|
905
|
+
export declare const SignInCheckResult: Schema.Union<readonly [Schema.Struct<{
|
|
906
|
+
readonly allowed: Schema.Literal<false>;
|
|
907
|
+
}>, Schema.Struct<{
|
|
908
|
+
readonly allowed: Schema.Literal<true>;
|
|
909
|
+
readonly method: Schema.Literals<readonly ["code", "link"]>;
|
|
910
|
+
}>]>;
|
|
911
|
+
/** `GET /api/ontology/me`: who the caller is and what they may do, for the app to render. */
|
|
912
|
+
export declare const Me: Schema.Struct<{
|
|
913
|
+
readonly authentication: Schema.Struct<{
|
|
914
|
+
readonly kind: Schema.Literals<readonly ["member", "oauth", "runtime", "service", "workload", "unverified"]>;
|
|
915
|
+
readonly client: Schema.NullOr<Schema.Struct<{
|
|
916
|
+
readonly id: Schema.String;
|
|
917
|
+
readonly name: Schema.String;
|
|
918
|
+
}>>;
|
|
919
|
+
readonly scope: Schema.NullOr<Schema.String>;
|
|
920
|
+
}>;
|
|
921
|
+
readonly attribution: Schema.NullOr<Schema.String>;
|
|
922
|
+
readonly attribution_separator: Schema.optionalKey<Schema.String>;
|
|
923
|
+
readonly user: Schema.Struct<{
|
|
924
|
+
readonly id: Schema.String;
|
|
925
|
+
readonly name: Schema.String;
|
|
926
|
+
readonly email: Schema.NullOr<Schema.String>;
|
|
927
|
+
readonly kind: Schema.Literals<readonly ["member", "service"]>;
|
|
928
|
+
readonly active: Schema.Boolean;
|
|
929
|
+
}>;
|
|
930
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
931
|
+
readonly permissions: Schema.$Array<Schema.String>;
|
|
932
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
933
|
+
readonly permission: Schema.String;
|
|
934
|
+
readonly where: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
935
|
+
}>>>;
|
|
936
|
+
}>;
|
|
937
|
+
export declare const AsParams: {
|
|
938
|
+
as: Schema.optionalKey<Schema.Literal<"me">>;
|
|
939
|
+
};
|
|
940
|
+
export declare const ErrorSchemas: {
|
|
941
|
+
invalidRequest: Schema.Top;
|
|
942
|
+
unauthorized: Schema.Top;
|
|
943
|
+
forbidden: Schema.Top;
|
|
944
|
+
notInvited: Schema.Top;
|
|
945
|
+
notFound: Schema.Top;
|
|
946
|
+
conflict: Schema.Top;
|
|
947
|
+
unsupportedMediaType: Schema.Top;
|
|
948
|
+
unprocessable: Schema.Top;
|
|
949
|
+
rateLimited: Schema.Top;
|
|
950
|
+
internal: Schema.Top;
|
|
951
|
+
unavailable: Schema.Top;
|
|
952
|
+
storageUnavailable: Schema.Top;
|
|
953
|
+
invalidMetricQuery: Schema.Top;
|
|
954
|
+
readForbidden: Schema.Top;
|
|
955
|
+
metricQueriesUnavailable: Schema.Top;
|
|
956
|
+
warehouseReadUnavailable: Schema.Top;
|
|
957
|
+
metricQueryUpstreamUnavailable: Schema.Top;
|
|
958
|
+
connectionRequired: Schema.Top;
|
|
959
|
+
connectionResponseInvalid: Schema.Top;
|
|
960
|
+
connectionUnavailable: Schema.Top;
|
|
961
|
+
};
|