@treeseed/sdk 0.12.62 → 0.13.0-rc.10
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 +13 -0
- package/README.md +33 -359
- package/dist/accounts/account-contracts.d.ts +170 -0
- package/dist/accounts/account-contracts.js +33 -0
- package/dist/agent-capacity/allocation.d.ts +186 -0
- package/dist/agent-capacity/allocation.js +226 -0
- package/dist/agent-capacity/artifact-mutation-receipt.d.ts +49 -0
- package/dist/agent-capacity/artifact-mutation-receipt.js +36 -0
- package/dist/agent-capacity/artifacts.d.ts +107 -0
- package/dist/agent-capacity/artifacts.js +39 -0
- package/dist/agent-capacity/authority/agent-authority-presets.d.ts +13 -0
- package/dist/agent-capacity/authority/agent-authority-presets.js +106 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +269 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.js +10 -0
- package/dist/agent-capacity/contracts/capacity/communication/communication-records.d.ts +101 -0
- package/dist/agent-capacity/contracts/capacity/communication/communication-records.js +9 -0
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +36 -0
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +4 -0
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +188 -0
- package/dist/agent-capacity/contracts/configuration/configuration.d.ts +11 -0
- package/dist/agent-capacity/contracts/configuration/configuration.js +20 -0
- package/dist/agent-capacity/contracts/operations/research-workflow.d.ts +59 -0
- package/dist/agent-capacity/contracts/operations/research-workflow.js +16 -0
- package/dist/agent-capacity/contracts/operations/workflow-promotion.d.ts +24 -0
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +37 -0
- package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +335 -0
- package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +185 -0
- package/dist/agent-capacity/contracts/support/agent-atlas.js +47 -0
- package/dist/agent-capacity/contracts/support/agent-lab-monitoring.d.ts +96 -0
- package/dist/agent-capacity/contracts/support/agent-lab-monitoring.js +14 -0
- package/dist/agent-capacity/contracts/support/authority/execution-mode.d.ts +10 -0
- package/dist/agent-capacity/contracts/support/authority/execution-mode.js +17 -0
- package/dist/agent-capacity/contracts/support/decision-work.d.ts +251 -0
- package/dist/agent-capacity/contracts/support/failure-records.d.ts +9 -0
- package/dist/agent-capacity/contracts/support/failure-records.js +0 -0
- package/dist/agent-capacity/contracts/support/financial-records.d.ts +124 -0
- package/dist/agent-capacity/contracts/support/financial-records.js +0 -0
- package/dist/agent-capacity/contracts/support/planning-records.d.ts +121 -0
- package/dist/agent-capacity/contracts/support/planning-records.js +0 -0
- package/dist/agent-capacity/contracts/support/research-citation.d.ts +15 -0
- package/dist/agent-capacity/contracts/support/research-citation.js +0 -0
- package/dist/agent-capacity/contracts/support/research-source-policy.d.ts +8 -0
- package/dist/agent-capacity/contracts/support/research-source-policy.js +0 -0
- package/dist/agent-capacity/contracts/support/time-capacity.d.ts +163 -0
- package/dist/agent-capacity/contracts/support/time-capacity.js +63 -0
- package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.d.ts +29 -0
- package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.js +110 -0
- package/dist/agent-capacity/validation/activity-profile.d.ts +12 -0
- package/dist/agent-capacity/validation/activity-profile.js +264 -0
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +9140 -0
- package/dist/agent-capacity/validation/agent-definition-schema.js +198 -0
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +234 -0
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +104 -0
- package/dist/agent-capacity/validation/agent-signal.d.ts +30 -0
- package/dist/agent-capacity/validation/agent-signal.js +31 -0
- package/dist/agent-capacity/validation/allocation.d.ts +12 -0
- package/dist/agent-capacity/validation/allocation.js +115 -0
- package/dist/agent-capacity/validation/assignment-records.d.ts +16 -0
- package/dist/agent-capacity/validation/assignment-records.js +92 -0
- package/dist/agent-capacity/validation/configuration.d.ts +14 -0
- package/dist/agent-capacity/validation/configuration.js +23 -0
- package/dist/agent-capacity/validation/index.d.ts +11 -0
- package/dist/agent-capacity/validation/index.js +11 -0
- package/dist/agent-capacity/validation/proposal-type.d.ts +22 -0
- package/dist/agent-capacity/validation/proposal-type.js +21 -0
- package/dist/agent-capacity/validation/research/citation.d.ts +16 -0
- package/dist/agent-capacity/validation/research/citation.js +47 -0
- package/dist/agent-capacity/validation/research/source-policy.d.ts +11 -0
- package/dist/agent-capacity/validation/research/source-policy.js +26 -0
- package/dist/agent-capacity/validation/research/workflow.d.ts +10 -0
- package/dist/agent-capacity/validation/research/workflow.js +31 -0
- package/dist/agent-capacity/validation/workflow-promotion.d.ts +2 -0
- package/dist/agent-capacity/validation/workflow-promotion.js +34 -0
- package/dist/agent-capacity/workday.d.ts +52 -0
- package/dist/agent-capacity/workday.js +105 -0
- package/dist/ai-appliance/contracts.d.ts +90 -0
- package/dist/ai-appliance/contracts.js +16 -0
- package/dist/ai-appliance/validation.d.ts +4 -0
- package/dist/ai-appliance/validation.js +62 -0
- package/dist/capacity/agents/agent-capacity.d.ts +21 -0
- package/dist/capacity/agents/agent-capacity.js +20 -0
- package/dist/capacity/capacity-core/capacity-pagination.d.ts +18 -0
- package/dist/capacity/capacity-core/capacity-pagination.js +33 -0
- package/dist/capacity/providers/capacity-provider.d.ts +1 -0
- package/dist/capacity/providers/capacity-provider.js +1 -0
- package/dist/capacity-provider/client.d.ts +56 -0
- package/dist/capacity-provider/client.js +163 -0
- package/dist/capacity-provider/contracts/capacity-facts.d.ts +64 -0
- package/dist/capacity-provider/contracts/capacity-facts.js +0 -0
- package/dist/capacity-provider/contracts/governance.d.ts +399 -0
- package/dist/capacity-provider/contracts/governance.js +18 -0
- package/dist/capacity-provider/contracts/index.d.ts +2 -0
- package/dist/capacity-provider/contracts/index.js +2 -0
- package/dist/capacity-provider/index.d.ts +3 -0
- package/dist/capacity-provider/index.js +3 -0
- package/dist/capacity-provider/validation.d.ts +27 -0
- package/dist/capacity-provider/validation.js +184 -0
- package/dist/configuration/secrets-capability.d.ts +4 -0
- package/dist/configuration/secrets-capability.js +4 -0
- package/dist/content/contracts.d.ts +12 -0
- package/dist/content/contracts.js +0 -0
- package/dist/content/validation/agent-operational-content-schemas.d.ts +1351 -0
- package/dist/content/validation/agent-operational-content-schemas.js +146 -0
- package/dist/content/validation/auxiliary-content-schemas.d.ts +1715 -0
- package/dist/content/validation/auxiliary-content-schemas.js +173 -0
- package/dist/content/validation/content-model-schemas.d.ts +21728 -0
- package/dist/content/validation/content-model-schemas.js +271 -0
- package/dist/content/validation/index.d.ts +3 -0
- package/dist/content/validation/index.js +3 -0
- package/dist/content/validation/portable-content-data.d.ts +2101 -0
- package/dist/content/validation/portable-content-data.js +49 -0
- package/dist/entrypoints/clients/control-plane-client.d.ts +112 -0
- package/dist/entrypoints/clients/control-plane-client.js +180 -0
- package/dist/entrypoints/models/field-aliases.d.ts +11 -0
- package/dist/entrypoints/models/model-registry.d.ts +3 -0
- package/dist/entrypoints/models/model-registry.js +3 -0
- package/dist/entrypoints/models/sdk-fields.d.ts +11 -0
- package/dist/entrypoints/models/sdk-types.d.ts +10 -0
- package/dist/entrypoints/models/sdk-types.js +10 -0
- package/dist/feedback/contracts.d.ts +142 -0
- package/dist/feedback/contracts.js +18 -0
- package/dist/feedback/index.d.ts +1 -0
- package/dist/feedback/index.js +1 -0
- package/dist/governance/groups/contracts.d.ts +102 -0
- package/dist/governance/groups/contracts.js +6 -0
- package/dist/graph/context-query-contracts.d.ts +19 -1
- package/dist/graph/context-query-contracts.js +49 -8
- package/dist/knowledge/contracts.d.ts +173 -0
- package/dist/knowledge/contracts.js +16 -0
- package/dist/knowledge/index.d.ts +1 -0
- package/dist/knowledge/index.js +1 -0
- package/dist/model-registry/agent-operational-models.d.ts +4 -0
- package/dist/model-registry/agent-operational-models.js +38 -0
- package/dist/model-registry/build-builtin-model-registry.d.ts +2 -0
- package/dist/model-registry/build-builtin-model-registry.js +426 -0
- package/dist/model-registry/content-root.d.ts +9 -0
- package/dist/model-registry/content-root.js +33 -0
- package/dist/model-registry/discussion-models.d.ts +4 -0
- package/dist/model-registry/discussion-models.js +84 -0
- package/dist/model-registry/group-models.d.ts +2 -0
- package/dist/model-registry/group-models.js +52 -0
- package/dist/model-registry/knowledge-models.d.ts +2 -0
- package/dist/model-registry/knowledge-models.js +89 -0
- package/dist/model-registry/normalize-definition.d.ts +8 -0
- package/dist/model-registry/normalize-definition.js +69 -0
- package/dist/operator-contracts/canonical-command-tree.d.ts +3 -0
- package/dist/operator-contracts/canonical-command-tree.js +81 -0
- package/dist/operator-contracts/command-tree.d.ts +79 -0
- package/dist/operator-contracts/command-tree.js +53 -0
- package/dist/operator-contracts/control-plane-operation.d.ts +80 -0
- package/dist/operator-contracts/control-plane-operation.js +75 -0
- package/dist/operator-contracts/control-plane-operations.d.ts +546 -0
- package/dist/operator-contracts/control-plane-operations.js +352 -0
- package/dist/operator-contracts/index.d.ts +8 -0
- package/dist/operator-contracts/index.js +8 -0
- package/dist/operator-contracts/mcp.d.ts +78 -0
- package/dist/operator-contracts/mcp.js +23 -0
- package/dist/operator-contracts/oauth.d.ts +46 -0
- package/dist/operator-contracts/oauth.js +0 -0
- package/dist/operator-contracts/workday-lifecycle.d.ts +157 -0
- package/dist/operator-contracts/workday-lifecycle.js +65 -0
- package/dist/operator-contracts/workday-profile.d.ts +72 -0
- package/dist/operator-contracts/workday-profile.js +106 -0
- package/dist/projects/projects-core/project-workflow.d.ts +179 -0
- package/dist/projects/projects-core/project-workflow.js +66 -0
- package/dist/sdk-types/configuration/sdk-dispatch-credential-source.d.ts +201 -0
- package/dist/sdk-types/configuration/sdk-dispatch-credential-source.js +0 -0
- package/dist/sdk-types/control-plane/resource-requests.d.ts +124 -0
- package/dist/sdk-types/control-plane/resource-requests.js +0 -0
- package/dist/sdk-types/governance/commons/commons-question-input.d.ts +61 -0
- package/dist/sdk-types/governance/commons/commons-question-input.js +0 -0
- package/dist/sdk-types/support/planning-policy.d.ts +210 -0
- package/dist/sdk-types/support/planning-policy.js +0 -0
- package/dist/sdk-types/support/platform-contracts.d.ts +178 -0
- package/dist/sdk-types/support/platform-contracts.js +15 -0
- package/dist/sdk-types/support/sdk-model-names.d.ts +44 -0
- package/dist/sdk-types/support/sdk-model-names.js +80 -0
- package/dist/sdk-types/support/sdk-search-request.d.ts +182 -0
- package/dist/sdk-types/support/sdk-search-request.js +0 -0
- package/dist/sdk-types/support/task-planning.d.ts +189 -0
- package/dist/sdk-types/support/task-planning.js +0 -0
- package/dist/sdk-types/treedx/graph/sdk-graph-query-request.d.ts +157 -0
- package/dist/sdk-types/treedx/graph/sdk-graph-query-request.js +0 -0
- package/dist/secrets-capability/provider-operation-contracts.d.ts +90 -0
- package/dist/secrets-capability/provider-operation-contracts.js +10 -0
- package/dist/secrets-capability/service-provider-contracts.d.ts +92 -0
- package/dist/secrets-capability/service-provider-contracts.js +183 -0
- package/dist/secrets-capability/service-vault-contracts.d.ts +61 -0
- package/dist/secrets-capability/service-vault-contracts.js +39 -0
- package/dist/secrets-capability/workflow-operation-contracts.d.ts +95 -0
- package/dist/secrets-capability/workflow-operation-contracts.js +0 -0
- package/dist/standards/canonicalize.d.ts +10 -0
- package/dist/standards/canonicalize.js +43 -0
- package/dist/standards/compatibility-attestation.d.ts +23 -0
- package/dist/standards/compatibility-attestation.js +40 -0
- package/dist/standards/composition.d.ts +15 -0
- package/dist/standards/composition.js +14 -0
- package/dist/standards/contract-bundle.d.ts +8 -0
- package/dist/standards/contract-bundle.js +23 -0
- package/dist/standards/contracts.d.ts +39 -0
- package/dist/standards/contracts.js +0 -0
- package/dist/standards/errors.d.ts +6 -0
- package/dist/standards/errors.js +13 -0
- package/dist/standards/index.d.ts +8 -0
- package/dist/standards/index.js +8 -0
- package/dist/standards/mcp/compare.d.ts +2 -0
- package/dist/standards/mcp/compare.js +38 -0
- package/dist/standards/mcp/contracts.d.ts +34 -0
- package/dist/standards/mcp/contracts.js +0 -0
- package/dist/standards/mcp/index.d.ts +3 -0
- package/dist/standards/mcp/index.js +3 -0
- package/dist/standards/mcp/normalize.d.ts +4 -0
- package/dist/standards/mcp/normalize.js +30 -0
- package/dist/standards/openapi/compare.d.ts +2 -0
- package/dist/standards/openapi/compare.js +112 -0
- package/dist/standards/openapi/contracts.d.ts +24 -0
- package/dist/standards/openapi/contracts.js +0 -0
- package/dist/standards/openapi/index.d.ts +3 -0
- package/dist/standards/openapi/index.js +3 -0
- package/dist/standards/openapi/normalize.d.ts +2 -0
- package/dist/standards/openapi/normalize.js +57 -0
- package/dist/standards/package-manifest.d.ts +37 -0
- package/dist/standards/package-manifest.js +89 -0
- package/dist/standards/portfolio-entry.d.ts +12 -0
- package/dist/standards/portfolio-entry.js +11 -0
- package/dist/standards/typescript/compare.d.ts +2 -0
- package/dist/standards/typescript/compare.js +88 -0
- package/dist/standards/typescript/contracts.d.ts +44 -0
- package/dist/standards/typescript/contracts.js +0 -0
- package/dist/standards/typescript/extract.d.ts +10 -0
- package/dist/standards/typescript/extract.js +244 -0
- package/dist/standards/typescript/index.d.ts +3 -0
- package/dist/standards/typescript/index.js +3 -0
- package/dist/treedx/accounts/auth.d.ts +17 -0
- package/dist/treedx/accounts/auth.js +48 -0
- package/dist/treedx/client/accounts/contracts/auth-mode.d.ts +3 -0
- package/dist/treedx/client/accounts/contracts/auth-mode.js +6 -0
- package/dist/treedx/client/build/creation/build-context.d.ts +3 -0
- package/dist/treedx/client/build/creation/build-context.js +7 -0
- package/dist/treedx/client/build/creation/build-snapshot.d.ts +3 -0
- package/dist/treedx/client/build/creation/build-snapshot.js +8 -0
- package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.d.ts +3 -0
- package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.js +7 -0
- package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.d.ts +6 -0
- package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.js +10 -0
- package/dist/treedx/client/methods.d.ts +102 -0
- package/dist/treedx/client/methods.js +209 -0
- package/dist/treedx/client/persistence/contracts/restore-storage.d.ts +3 -0
- package/dist/treedx/client/persistence/contracts/restore-storage.js +6 -0
- package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.d.ts +3 -0
- package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.js +6 -0
- package/dist/treedx/client/repositories/creation/register-repository.d.ts +3 -0
- package/dist/treedx/client/repositories/creation/register-repository.js +7 -0
- package/dist/treedx/client/repositories/queries/get-repository.d.ts +3 -0
- package/dist/treedx/client/repositories/queries/get-repository.js +7 -0
- package/dist/treedx/client/repositories/queries/list-repository-paths.d.ts +3 -0
- package/dist/treedx/client/repositories/queries/list-repository-paths.js +7 -0
- package/dist/treedx/client/repositories/queries/list-repository-refs.d.ts +3 -0
- package/dist/treedx/client/repositories/queries/list-repository-refs.js +12 -0
- package/dist/treedx/client/repositories/queries/query-repository.d.ts +3 -0
- package/dist/treedx/client/repositories/queries/query-repository.js +7 -0
- package/dist/treedx/client/repositories/queries/read-repository-file.d.ts +3 -0
- package/dist/treedx/client/repositories/queries/read-repository-file.js +6 -0
- package/dist/treedx/client/repositories/queries/read-repository-files.d.ts +3 -0
- package/dist/treedx/client/repositories/queries/read-repository-files.js +7 -0
- package/dist/treedx/client/repositories/queries/search-repository-files.d.ts +3 -0
- package/dist/treedx/client/repositories/queries/search-repository-files.js +7 -0
- package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.js +9 -0
- package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.js +6 -0
- package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.js +7 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.d.ts +5 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.js +7 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/health.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/health.js +6 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.js +7 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.d.ts +2 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.js +19 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.js +7 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/status.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/health/contracts/status.js +6 -0
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.js +7 -0
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.js +6 -0
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.js +7 -0
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.d.ts +6 -0
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.js +23 -0
- package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.js +8 -0
- package/dist/treedx/client/support/contracts/treedx/search/contracts/search.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/search/contracts/search.js +7 -0
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.js +8 -0
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.js +8 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.d.ts +2 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.js +15 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.d.ts +2 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.js +38 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.d.ts +2 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.js +15 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.d.ts +2 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.js +15 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.d.ts +2 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.js +14 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.d.ts +2 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.js +14 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.d.ts +6 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.js +41 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.d.ts +2 -0
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.js +14 -0
- package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.d.ts +3 -0
- package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.js +7 -0
- package/dist/treedx/client/support/creation/apply-changeset.d.ts +3 -0
- package/dist/treedx/client/support/creation/apply-changeset.js +10 -0
- package/dist/treedx/client/support/creation/apply-storage-migration.d.ts +3 -0
- package/dist/treedx/client/support/creation/apply-storage-migration.js +7 -0
- package/dist/treedx/client/support/creation/create-migration.d.ts +6 -0
- package/dist/treedx/client/support/creation/create-migration.js +7 -0
- package/dist/treedx/client/support/creation/export-artifact.d.ts +3 -0
- package/dist/treedx/client/support/creation/export-artifact.js +8 -0
- package/dist/treedx/client/support/creation/plan-storage-migration.d.ts +3 -0
- package/dist/treedx/client/support/creation/plan-storage-migration.js +7 -0
- package/dist/treedx/client/support/creation/request-binary.d.ts +6 -0
- package/dist/treedx/client/support/creation/request-binary.js +42 -0
- package/dist/treedx/client/support/creation/write-file.d.ts +3 -0
- package/dist/treedx/client/support/creation/write-file.js +10 -0
- package/dist/treedx/client/support/creation/write-files.d.ts +3 -0
- package/dist/treedx/client/support/creation/write-files.js +12 -0
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.js +7 -0
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.js +7 -0
- package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.js +9 -0
- package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.d.ts +4 -0
- package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.js +6 -0
- package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.js +7 -0
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.js +7 -0
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.js +7 -0
- package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.js +7 -0
- package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.js +10 -0
- package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.js +9 -0
- package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.js +7 -0
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.d.ts +6 -0
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.js +7 -0
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.d.ts +6 -0
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.js +7 -0
- package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.d.ts +6 -0
- package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.js +6 -0
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.d.ts +15 -0
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.js +6 -0
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.d.ts +3 -0
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.js +7 -0
- package/dist/treedx/client/support/retirement/cleanup-artifacts.d.ts +3 -0
- package/dist/treedx/client/support/retirement/cleanup-artifacts.js +7 -0
- package/dist/treedx/client/support/retirement/delete-artifact.d.ts +3 -0
- package/dist/treedx/client/support/retirement/delete-artifact.js +7 -0
- package/dist/treedx/client/support/retirement/delete-file.d.ts +3 -0
- package/dist/treedx/client/support/retirement/delete-file.js +10 -0
- package/dist/treedx/client/support/retirement/rollback-storage-migration.d.ts +3 -0
- package/dist/treedx/client/support/retirement/rollback-storage-migration.js +7 -0
- package/dist/treedx/client/support/updates/patch-file.d.ts +3 -0
- package/dist/treedx/client/support/updates/patch-file.js +10 -0
- package/dist/treedx/client/support/updates/refresh-search-index.d.ts +3 -0
- package/dist/treedx/client/support/updates/refresh-search-index.js +8 -0
- package/dist/treedx/client/treedx/blobs/contracts/download-blob.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/contracts/download-blob.js +6 -0
- package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.js +8 -0
- package/dist/treedx/client/treedx/blobs/creation/request-blob-download.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/creation/request-blob-download.js +27 -0
- package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.js +41 -0
- package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.js +27 -0
- package/dist/treedx/client/treedx/blobs/creation/upload-blob.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/creation/upload-blob.js +6 -0
- package/dist/treedx/client/treedx/blobs/creation/write-blob.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/creation/write-blob.js +8 -0
- package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.js +8 -0
- package/dist/treedx/client/treedx/blobs/queries/read-blob.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/queries/read-blob.js +10 -0
- package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.js +7 -0
- package/dist/treedx/client/treedx/blobs/retirement/delete-blob.d.ts +3 -0
- package/dist/treedx/client/treedx/blobs/retirement/delete-blob.js +8 -0
- package/dist/treedx/client/treedx/federation/contracts/federated-query.d.ts +3 -0
- package/dist/treedx/client/treedx/federation/contracts/federated-query.js +7 -0
- package/dist/treedx/client/treedx/federation/creation/plan-federated-query.d.ts +3 -0
- package/dist/treedx/client/treedx/federation/creation/plan-federated-query.js +6 -0
- package/dist/treedx/client/treedx/federation/queries/check-mirror-health.d.ts +3 -0
- package/dist/treedx/client/treedx/federation/queries/check-mirror-health.js +7 -0
- package/dist/treedx/client/treedx/federation/updates/promote-mirror.d.ts +3 -0
- package/dist/treedx/client/treedx/federation/updates/promote-mirror.js +7 -0
- package/dist/treedx/client/treedx/federation/updates/sync-mirror.d.ts +3 -0
- package/dist/treedx/client/treedx/federation/updates/sync-mirror.js +7 -0
- package/dist/treedx/client/treedx/graph/contracts/federated-context.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/contracts/federated-context.js +7 -0
- package/dist/treedx/client/treedx/graph/contracts/federated-graph.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/contracts/federated-graph.js +7 -0
- package/dist/treedx/client/treedx/graph/contracts/graph-search.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/contracts/graph-search.js +8 -0
- package/dist/treedx/client/treedx/graph/queries/get-graph-node.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/queries/get-graph-node.js +10 -0
- package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.js +7 -0
- package/dist/treedx/client/treedx/graph/queries/get-subgraph.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/queries/get-subgraph.js +7 -0
- package/dist/treedx/client/treedx/graph/queries/query-graph.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/queries/query-graph.js +7 -0
- package/dist/treedx/client/treedx/graph/queries/search-graph-entities.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/queries/search-graph-entities.js +6 -0
- package/dist/treedx/client/treedx/graph/queries/search-graph-files.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/queries/search-graph-files.js +6 -0
- package/dist/treedx/client/treedx/graph/queries/search-graph-sections.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/queries/search-graph-sections.js +6 -0
- package/dist/treedx/client/treedx/graph/updates/refresh-graph.d.ts +3 -0
- package/dist/treedx/client/treedx/graph/updates/refresh-graph.js +7 -0
- package/dist/treedx/client/treedx/search/contracts/federated-search.d.ts +3 -0
- package/dist/treedx/client/treedx/search/contracts/federated-search.js +7 -0
- package/dist/treedx/client/treedx/workspaces/creation/create-workspace.d.ts +3 -0
- package/dist/treedx/client/treedx/workspaces/creation/create-workspace.js +7 -0
- package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.d.ts +3 -0
- package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.js +12 -0
- package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.d.ts +2 -0
- package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.js +6 -0
- package/dist/treedx/generated/openapi-types.d.ts +104 -0
- package/dist/treedx/support/client.d.ts +251 -0
- package/dist/treedx/support/client.js +252 -0
- package/dist/treedx/support/errors.d.ts +13 -0
- package/dist/treedx/types/tree-dx-actor.d.ts +209 -0
- package/dist/treedx/types/tree-dx-actor.js +8 -0
- package/dist/treedx/types/tree-dx-artifact-list-response.d.ts +13 -0
- package/dist/treedx/types/tree-dx-artifact-list-response.js +0 -0
- package/dist/treedx/types/tree-dx-changeset.d.ts +51 -0
- package/dist/treedx/types/tree-dx-changeset.js +6 -0
- package/dist/treedx/types/tree-dx-context-request.d.ts +245 -0
- package/dist/treedx/types/tree-dx-context-request.js +0 -0
- package/dist/treedx/types/tree-dx-exec-result.d.ts +249 -0
- package/dist/treedx/types/tree-dx-exec-result.js +0 -0
- package/dist/treedx/types/tree-dx-list-tree-request.d.ts +222 -0
- package/dist/treedx/types/tree-dx-list-tree-request.js +0 -0
- package/dist/treedx/types/tree-dx-push-request.d.ts +229 -0
- package/dist/treedx/types/tree-dx-push-request.js +0 -0
- package/dist/treedx/types.d.ts +7 -1084
- package/dist/treedx/types.js +7 -8
- package/dist/types/agents/agent-activity-profile.d.ts +267 -0
- package/dist/types/agents/agent-activity-profile.js +0 -0
- package/dist/types/agents/agent-trigger-kinds.d.ts +189 -0
- package/dist/types/agents/agent-trigger-kinds.js +107 -0
- package/dist/types/agents/execution-run-ref.d.ts +136 -0
- package/dist/types/agents/execution-run-ref.js +0 -0
- package/dist/types/agents.d.ts +3 -493
- package/dist/types/agents.js +3 -95
- package/package.json +77 -362
- package/dist/agent-capacity.d.ts +0 -1100
- package/dist/agent-capacity.js +0 -1822
- package/dist/agent-tools.d.ts +0 -37
- package/dist/agent-tools.js +0 -301
- package/dist/api/app.d.ts +0 -8
- package/dist/api/app.js +0 -404
- package/dist/api/auth/d1-database.d.ts +0 -3
- package/dist/api/auth/d1-database.js +0 -20
- package/dist/api/auth/d1-provider.d.ts +0 -85
- package/dist/api/auth/d1-provider.js +0 -95
- package/dist/api/auth/d1-store.d.ts +0 -121
- package/dist/api/auth/d1-store.js +0 -990
- package/dist/api/auth/memory-provider.d.ts +0 -82
- package/dist/api/auth/memory-provider.js +0 -297
- package/dist/api/auth/rbac.d.ts +0 -22
- package/dist/api/auth/rbac.js +0 -162
- package/dist/api/auth/tokens.d.ts +0 -18
- package/dist/api/auth/tokens.js +0 -56
- package/dist/api/config.d.ts +0 -4
- package/dist/api/config.js +0 -149
- package/dist/api/http.d.ts +0 -28
- package/dist/api/http.js +0 -51
- package/dist/api/index.d.ts +0 -10
- package/dist/api/index.js +0 -29
- package/dist/api/operations-routes.d.ts +0 -11
- package/dist/api/operations-routes.js +0 -39
- package/dist/api/operations.d.ts +0 -3
- package/dist/api/operations.js +0 -26
- package/dist/api/providers.d.ts +0 -2
- package/dist/api/providers.js +0 -85
- package/dist/api/railway.d.ts +0 -53
- package/dist/api/railway.js +0 -71
- package/dist/api/sdk-dispatch.d.ts +0 -6
- package/dist/api/sdk-dispatch.js +0 -14
- package/dist/api/sdk-routes.d.ts +0 -11
- package/dist/api/sdk-routes.js +0 -29
- package/dist/api/templates.d.ts +0 -3
- package/dist/api/templates.js +0 -31
- package/dist/api/types.d.ts +0 -238
- package/dist/capacity-provider.d.ts +0 -494
- package/dist/capacity-provider.js +0 -727
- package/dist/capacity.d.ts +0 -483
- package/dist/capacity.js +0 -2331
- package/dist/cli-tools.d.ts +0 -3
- package/dist/cli-tools.js +0 -46
- package/dist/content-operations.d.ts +0 -97
- package/dist/content-operations.js +0 -250
- package/dist/content-store.d.ts +0 -25
- package/dist/content-store.js +0 -269
- package/dist/control-plane-client.d.ts +0 -203
- package/dist/control-plane-client.js +0 -540
- package/dist/control-plane.d.ts +0 -101
- package/dist/control-plane.js +0 -201
- package/dist/copilot.d.ts +0 -18
- package/dist/copilot.js +0 -90
- package/dist/d1-http.d.ts +0 -38
- package/dist/d1-http.js +0 -95
- package/dist/d1-store.d.ts +0 -336
- package/dist/d1-store.js +0 -1431
- package/dist/db/d1.d.ts +0 -246
- package/dist/db/d1.js +0 -8
- package/dist/db/index.d.ts +0 -3
- package/dist/db/index.js +0 -3
- package/dist/db/market-schema.d.ts +0 -83651
- package/dist/db/market-schema.js +0 -3725
- package/dist/db/node-sqlite.d.ts +0 -297
- package/dist/db/node-sqlite.js +0 -133
- package/dist/db/schema.d.ts +0 -483
- package/dist/db/schema.js +0 -29
- package/dist/dispatch.d.ts +0 -4
- package/dist/dispatch.js +0 -174
- package/dist/field-aliases.d.ts +0 -11
- package/dist/fixture-support.d.ts +0 -24
- package/dist/fixture-support.js +0 -385
- package/dist/frontmatter.d.ts +0 -6
- package/dist/frontmatter.js +0 -33
- package/dist/git-runtime.d.ts +0 -16
- package/dist/git-runtime.js +0 -69
- package/dist/governance.d.ts +0 -133
- package/dist/governance.js +0 -285
- package/dist/graph/build.d.ts +0 -19
- package/dist/graph/build.js +0 -949
- package/dist/graph/dsl.d.ts +0 -2
- package/dist/graph/dsl.js +0 -243
- package/dist/graph/query.d.ts +0 -47
- package/dist/graph/query.js +0 -447
- package/dist/graph/ranking.d.ts +0 -3
- package/dist/graph/ranking.js +0 -483
- package/dist/graph/schema.d.ts +0 -142
- package/dist/graph/schema.js +0 -137
- package/dist/graph.d.ts +0 -52
- package/dist/graph.js +0 -133
- package/dist/guarantees/index.d.ts +0 -512
- package/dist/guarantees/index.js +0 -1782
- package/dist/hosting/apps.d.ts +0 -12
- package/dist/hosting/apps.js +0 -107
- package/dist/hosting/builtins.d.ts +0 -25
- package/dist/hosting/builtins.js +0 -685
- package/dist/hosting/contracts.d.ts +0 -190
- package/dist/hosting/graph.d.ts +0 -110
- package/dist/hosting/graph.js +0 -993
- package/dist/hosting/index.d.ts +0 -4
- package/dist/hosting/index.js +0 -4
- package/dist/index.d.ts +0 -88
- package/dist/index.js +0 -757
- package/dist/local-dev/managed-dev.d.ts +0 -85
- package/dist/local-dev/managed-dev.js +0 -431
- package/dist/managed-dependencies.d.ts +0 -91
- package/dist/managed-dependencies.js +0 -1186
- package/dist/market-client.d.ts +0 -831
- package/dist/market-client.js +0 -1219
- package/dist/model-registry.d.ts +0 -8
- package/dist/model-registry.js +0 -674
- package/dist/operations/agent-tools.d.ts +0 -105
- package/dist/operations/agent-tools.js +0 -171
- package/dist/operations/providers/default.d.ts +0 -10
- package/dist/operations/providers/default.js +0 -1245
- package/dist/operations/repository-operations.d.ts +0 -158
- package/dist/operations/repository-operations.js +0 -851
- package/dist/operations/runtime.d.ts +0 -7
- package/dist/operations/runtime.js +0 -61
- package/dist/operations/services/bootstrap-runner.d.ts +0 -39
- package/dist/operations/services/bootstrap-runner.js +0 -191
- package/dist/operations/services/build-warning-policy.d.ts +0 -34
- package/dist/operations/services/build-warning-policy.js +0 -91
- package/dist/operations/services/commit-message-provider.d.ts +0 -65
- package/dist/operations/services/commit-message-provider.js +0 -496
- package/dist/operations/services/config-runtime.d.ts +0 -558
- package/dist/operations/services/config-runtime.js +0 -3494
- package/dist/operations/services/d1-migration.d.ts +0 -6
- package/dist/operations/services/d1-migration.js +0 -120
- package/dist/operations/services/deploy.d.ts +0 -645
- package/dist/operations/services/deploy.js +0 -3826
- package/dist/operations/services/deployment-readiness.d.ts +0 -30
- package/dist/operations/services/deployment-readiness.js +0 -217
- package/dist/operations/services/export-runtime.d.ts +0 -18
- package/dist/operations/services/export-runtime.js +0 -140
- package/dist/operations/services/git-remote-policy.d.ts +0 -9
- package/dist/operations/services/git-remote-policy.js +0 -63
- package/dist/operations/services/git-runner.d.ts +0 -68
- package/dist/operations/services/git-runner.js +0 -500
- package/dist/operations/services/git-workflow.d.ts +0 -255
- package/dist/operations/services/git-workflow.js +0 -845
- package/dist/operations/services/github-actions-verification.d.ts +0 -148
- package/dist/operations/services/github-actions-verification.js +0 -589
- package/dist/operations/services/github-api.d.ts +0 -279
- package/dist/operations/services/github-api.js +0 -936
- package/dist/operations/services/github-automation.d.ts +0 -230
- package/dist/operations/services/github-automation.js +0 -520
- package/dist/operations/services/github-credentials.d.ts +0 -13
- package/dist/operations/services/github-credentials.js +0 -59
- package/dist/operations/services/hosted-service-checks.d.ts +0 -82
- package/dist/operations/services/hosted-service-checks.js +0 -527
- package/dist/operations/services/hosting-audit.d.ts +0 -69
- package/dist/operations/services/hosting-audit.js +0 -638
- package/dist/operations/services/hub-launch.d.ts +0 -182
- package/dist/operations/services/hub-launch.js +0 -309
- package/dist/operations/services/hub-provider-launch.d.ts +0 -160
- package/dist/operations/services/hub-provider-launch.js +0 -1056
- package/dist/operations/services/key-agent.d.ts +0 -137
- package/dist/operations/services/key-agent.js +0 -641
- package/dist/operations/services/live-hosted-service-checks.d.ts +0 -30
- package/dist/operations/services/live-hosted-service-checks.js +0 -611
- package/dist/operations/services/local-cleanup.d.ts +0 -30
- package/dist/operations/services/local-cleanup.js +0 -77
- package/dist/operations/services/local-dev.d.ts +0 -8
- package/dist/operations/services/local-dev.js +0 -97
- package/dist/operations/services/managed-host-security.d.ts +0 -13
- package/dist/operations/services/managed-host-security.js +0 -56
- package/dist/operations/services/managed-repositories.d.ts +0 -37
- package/dist/operations/services/managed-repositories.js +0 -177
- package/dist/operations/services/market-packaging.d.ts +0 -59
- package/dist/operations/services/market-packaging.js +0 -234
- package/dist/operations/services/operations-runner-smoke.d.ts +0 -31
- package/dist/operations/services/operations-runner-smoke.js +0 -212
- package/dist/operations/services/package-adapters.d.ts +0 -184
- package/dist/operations/services/package-adapters.js +0 -912
- package/dist/operations/services/package-artifacts.d.ts +0 -37
- package/dist/operations/services/package-artifacts.js +0 -99
- package/dist/operations/services/package-reference-policy.d.ts +0 -64
- package/dist/operations/services/package-reference-policy.js +0 -364
- package/dist/operations/services/project-host-operations.d.ts +0 -153
- package/dist/operations/services/project-host-operations.js +0 -365
- package/dist/operations/services/project-platform.d.ts +0 -727
- package/dist/operations/services/project-platform.js +0 -1603
- package/dist/operations/services/project-web-monitor.d.ts +0 -15
- package/dist/operations/services/project-web-monitor.js +0 -377
- package/dist/operations/services/railway-api.d.ts +0 -494
- package/dist/operations/services/railway-api.js +0 -1874
- package/dist/operations/services/railway-cli.d.ts +0 -47
- package/dist/operations/services/railway-cli.js +0 -142
- package/dist/operations/services/railway-deploy.d.ts +0 -161
- package/dist/operations/services/railway-deploy.js +0 -1808
- package/dist/operations/services/railway-source-policy.d.ts +0 -25
- package/dist/operations/services/railway-source-policy.js +0 -111
- package/dist/operations/services/release-history.d.ts +0 -59
- package/dist/operations/services/release-history.js +0 -158
- package/dist/operations/services/release-proof-ledger.d.ts +0 -13
- package/dist/operations/services/release-proof-ledger.js +0 -81
- package/dist/operations/services/release-proof-planner.d.ts +0 -48
- package/dist/operations/services/release-proof-planner.js +0 -195
- package/dist/operations/services/release-proof-runner.d.ts +0 -16
- package/dist/operations/services/release-proof-runner.js +0 -169
- package/dist/operations/services/release-proof.d.ts +0 -81
- package/dist/operations/services/release-proof.js +0 -79
- package/dist/operations/services/repository-save-orchestrator.d.ts +0 -193
- package/dist/operations/services/repository-save-orchestrator.js +0 -2110
- package/dist/operations/services/runtime-paths.d.ts +0 -19
- package/dist/operations/services/runtime-paths.js +0 -54
- package/dist/operations/services/runtime-tools.d.ts +0 -35
- package/dist/operations/services/runtime-tools.js +0 -212
- package/dist/operations/services/save-deploy-preflight.d.ts +0 -32
- package/dist/operations/services/save-deploy-preflight.js +0 -82
- package/dist/operations/services/template-host-bindings.d.ts +0 -68
- package/dist/operations/services/template-host-bindings.js +0 -401
- package/dist/operations/services/template-registry.d.ts +0 -110
- package/dist/operations/services/template-registry.js +0 -595
- package/dist/operations/services/template-secret-sync.d.ts +0 -97
- package/dist/operations/services/template-secret-sync.js +0 -292
- package/dist/operations/services/verification-cache.d.ts +0 -25
- package/dist/operations/services/verification-cache.js +0 -71
- package/dist/operations/services/watch-dev.d.ts +0 -21
- package/dist/operations/services/watch-dev.js +0 -282
- package/dist/operations/services/workflow-timing.d.ts +0 -25
- package/dist/operations/services/workflow-timing.js +0 -79
- package/dist/operations/services/workspace-dependency-mode.d.ts +0 -74
- package/dist/operations/services/workspace-dependency-mode.js +0 -478
- package/dist/operations/services/workspace-preflight.d.ts +0 -40
- package/dist/operations/services/workspace-preflight.js +0 -172
- package/dist/operations/services/workspace-save-script.d.ts +0 -26
- package/dist/operations/services/workspace-save-script.js +0 -50
- package/dist/operations/services/workspace-save.d.ts +0 -76
- package/dist/operations/services/workspace-save.js +0 -453
- package/dist/operations/services/workspace-tools.d.ts +0 -17
- package/dist/operations/services/workspace-tools.js +0 -320
- package/dist/operations-registry.d.ts +0 -5
- package/dist/operations-registry.js +0 -98
- package/dist/operations-types.d.ts +0 -75
- package/dist/operations-types.js +0 -17
- package/dist/operations.d.ts +0 -17
- package/dist/operations.js +0 -114
- package/dist/platform/book-export.d.ts +0 -78
- package/dist/platform/book-export.js +0 -451
- package/dist/platform/books-data.d.ts +0 -28
- package/dist/platform/books-data.js +0 -111
- package/dist/platform/config.d.ts +0 -27
- package/dist/platform/config.js +0 -100
- package/dist/platform/content-runtime-source.d.ts +0 -54
- package/dist/platform/content-runtime-source.js +0 -169
- package/dist/platform/contracts.d.ts +0 -361
- package/dist/platform/deploy-config.d.ts +0 -17
- package/dist/platform/deploy-config.js +0 -731
- package/dist/platform/deploy-runtime.d.ts +0 -22
- package/dist/platform/deploy-runtime.js +0 -93
- package/dist/platform/desired-state.d.ts +0 -66
- package/dist/platform/desired-state.js +0 -1071
- package/dist/platform/env.yaml +0 -1126
- package/dist/platform/environment.d.ts +0 -159
- package/dist/platform/environment.js +0 -778
- package/dist/platform/local-content-materialization.d.ts +0 -9
- package/dist/platform/local-content-materialization.js +0 -212
- package/dist/platform/plugin.d.ts +0 -103
- package/dist/platform/plugin.js +0 -6
- package/dist/platform/plugins/constants.d.ts +0 -26
- package/dist/platform/plugins/constants.js +0 -33
- package/dist/platform/plugins/runtime.d.ts +0 -41
- package/dist/platform/plugins/runtime.js +0 -257
- package/dist/platform/plugins.d.ts +0 -6
- package/dist/platform/plugins.js +0 -42
- package/dist/platform/published-content-pipeline.d.ts +0 -84
- package/dist/platform/published-content-pipeline.js +0 -547
- package/dist/platform/published-content.d.ts +0 -224
- package/dist/platform/published-content.js +0 -611
- package/dist/platform/site-config-schema.d.ts +0 -1
- package/dist/platform/site-config-schema.js +0 -4
- package/dist/platform/tenant/runtime-config.d.ts +0 -154
- package/dist/platform/tenant/runtime-config.js +0 -69
- package/dist/platform/tenant-config.d.ts +0 -8
- package/dist/platform/tenant-config.js +0 -207
- package/dist/platform/utils/site-config-schema.d.ts +0 -154
- package/dist/platform/utils/site-config-schema.js +0 -450
- package/dist/platform-operation-store.d.ts +0 -94
- package/dist/platform-operation-store.js +0 -531
- package/dist/platform-operations.d.ts +0 -273
- package/dist/platform-operations.js +0 -440
- package/dist/plugin-default.d.ts +0 -28
- package/dist/plugin-default.js +0 -55
- package/dist/project-import.d.ts +0 -91
- package/dist/project-import.js +0 -257
- package/dist/project-workflow.d.ts +0 -233
- package/dist/project-workflow.js +0 -82
- package/dist/reconcile/bootstrap-systems.d.ts +0 -32
- package/dist/reconcile/bootstrap-systems.js +0 -175
- package/dist/reconcile/builtin-adapters.d.ts +0 -9
- package/dist/reconcile/builtin-adapters.js +0 -5545
- package/dist/reconcile/contracts.d.ts +0 -172
- package/dist/reconcile/desired-state.d.ts +0 -10
- package/dist/reconcile/desired-state.js +0 -322
- package/dist/reconcile/engine.d.ts +0 -118
- package/dist/reconcile/engine.js +0 -645
- package/dist/reconcile/errors.d.ts +0 -5
- package/dist/reconcile/errors.js +0 -13
- package/dist/reconcile/index.d.ts +0 -10
- package/dist/reconcile/index.js +0 -10
- package/dist/reconcile/live-acceptance.d.ts +0 -100
- package/dist/reconcile/live-acceptance.js +0 -2018
- package/dist/reconcile/platform.d.ts +0 -104
- package/dist/reconcile/platform.js +0 -100
- package/dist/reconcile/providers/docker-private.d.ts +0 -54
- package/dist/reconcile/providers/docker-private.js +0 -101
- package/dist/reconcile/providers/github-private.d.ts +0 -69
- package/dist/reconcile/providers/github-private.js +0 -145
- package/dist/reconcile/providers/local-private.d.ts +0 -28
- package/dist/reconcile/providers/local-private.js +0 -75
- package/dist/reconcile/providers/railway-iac.d.ts +0 -220
- package/dist/reconcile/providers/railway-iac.js +0 -621
- package/dist/reconcile/providers/release-private.d.ts +0 -89
- package/dist/reconcile/providers/release-private.js +0 -140
- package/dist/reconcile/registry.d.ts +0 -7
- package/dist/reconcile/registry.js +0 -79
- package/dist/reconcile/state.d.ts +0 -7
- package/dist/reconcile/state.js +0 -270
- package/dist/reconcile/units.d.ts +0 -6
- package/dist/reconcile/units.js +0 -72
- package/dist/remote.d.ts +0 -244
- package/dist/remote.js +0 -284
- package/dist/scenes/artifacts.d.ts +0 -16
- package/dist/scenes/artifacts.js +0 -61
- package/dist/scenes/auth.d.ts +0 -2
- package/dist/scenes/auth.js +0 -28
- package/dist/scenes/base-url.d.ts +0 -12
- package/dist/scenes/base-url.js +0 -123
- package/dist/scenes/builtin-plugins.d.ts +0 -2
- package/dist/scenes/builtin-plugins.js +0 -499
- package/dist/scenes/checkpoints.d.ts +0 -14
- package/dist/scenes/checkpoints.js +0 -33
- package/dist/scenes/device-matrix.d.ts +0 -2
- package/dist/scenes/device-matrix.js +0 -100
- package/dist/scenes/devices.d.ts +0 -11
- package/dist/scenes/devices.js +0 -40
- package/dist/scenes/diagnostics.d.ts +0 -5
- package/dist/scenes/diagnostics.js +0 -22
- package/dist/scenes/diagram-providers.d.ts +0 -2
- package/dist/scenes/diagram-providers.js +0 -181
- package/dist/scenes/diagram-validation.d.ts +0 -22
- package/dist/scenes/diagram-validation.js +0 -74
- package/dist/scenes/environment.d.ts +0 -2
- package/dist/scenes/environment.js +0 -65
- package/dist/scenes/evidence-bundle.d.ts +0 -5
- package/dist/scenes/evidence-bundle.js +0 -42
- package/dist/scenes/evidence-report.d.ts +0 -10
- package/dist/scenes/evidence-report.js +0 -73
- package/dist/scenes/evidence.d.ts +0 -16
- package/dist/scenes/evidence.js +0 -277
- package/dist/scenes/index.d.ts +0 -48
- package/dist/scenes/index.js +0 -312
- package/dist/scenes/inspect.d.ts +0 -9
- package/dist/scenes/inspect.js +0 -64
- package/dist/scenes/loader.d.ts +0 -3
- package/dist/scenes/loader.js +0 -38
- package/dist/scenes/logs.d.ts +0 -2
- package/dist/scenes/logs.js +0 -47
- package/dist/scenes/operations.d.ts +0 -3
- package/dist/scenes/operations.js +0 -128
- package/dist/scenes/phase0.d.ts +0 -9
- package/dist/scenes/phase0.js +0 -637
- package/dist/scenes/planner.d.ts +0 -12
- package/dist/scenes/planner.js +0 -166
- package/dist/scenes/playwright-adapter.d.ts +0 -2
- package/dist/scenes/playwright-adapter.js +0 -63
- package/dist/scenes/plugins.d.ts +0 -5
- package/dist/scenes/plugins.js +0 -115
- package/dist/scenes/progress.d.ts +0 -17
- package/dist/scenes/progress.js +0 -24
- package/dist/scenes/publish-destinations.d.ts +0 -12
- package/dist/scenes/publish-destinations.js +0 -99
- package/dist/scenes/publish-plan-report.d.ts +0 -10
- package/dist/scenes/publish-plan-report.js +0 -70
- package/dist/scenes/publish-plan.d.ts +0 -15
- package/dist/scenes/publish-plan.js +0 -248
- package/dist/scenes/publish-redaction.d.ts +0 -16
- package/dist/scenes/publish-redaction.js +0 -148
- package/dist/scenes/publish-release-record.d.ts +0 -13
- package/dist/scenes/publish-release-record.js +0 -34
- package/dist/scenes/publish-report.d.ts +0 -10
- package/dist/scenes/publish-report.js +0 -67
- package/dist/scenes/publish.d.ts +0 -16
- package/dist/scenes/publish.js +0 -298
- package/dist/scenes/registry.d.ts +0 -12
- package/dist/scenes/registry.js +0 -65
- package/dist/scenes/remotion-adapter.d.ts +0 -3
- package/dist/scenes/remotion-adapter.js +0 -94
- package/dist/scenes/remotion-composition-registry.d.ts +0 -2
- package/dist/scenes/remotion-composition-registry.js +0 -12
- package/dist/scenes/remotion-compositions.d.ts +0 -15
- package/dist/scenes/remotion-compositions.js +0 -464
- package/dist/scenes/remotion-diagrams.d.ts +0 -9
- package/dist/scenes/remotion-diagrams.js +0 -188
- package/dist/scenes/remotion-input.d.ts +0 -13
- package/dist/scenes/remotion-input.js +0 -291
- package/dist/scenes/remotion-visuals.d.ts +0 -29
- package/dist/scenes/remotion-visuals.js +0 -198
- package/dist/scenes/render-media-assets.d.ts +0 -9
- package/dist/scenes/render-media-assets.js +0 -117
- package/dist/scenes/render-report.d.ts +0 -10
- package/dist/scenes/render-report.js +0 -27
- package/dist/scenes/render.d.ts +0 -2
- package/dist/scenes/render.js +0 -218
- package/dist/scenes/reporter.d.ts +0 -3
- package/dist/scenes/reporter.js +0 -101
- package/dist/scenes/resume.d.ts +0 -2
- package/dist/scenes/resume.js +0 -79
- package/dist/scenes/runner.d.ts +0 -2
- package/dist/scenes/runner.js +0 -687
- package/dist/scenes/schema.d.ts +0 -6
- package/dist/scenes/schema.js +0 -1023
- package/dist/scenes/seed.d.ts +0 -2
- package/dist/scenes/seed.js +0 -83
- package/dist/scenes/segments.d.ts +0 -15
- package/dist/scenes/segments.js +0 -79
- package/dist/scenes/selectors.d.ts +0 -3
- package/dist/scenes/selectors.js +0 -21
- package/dist/scenes/timeline.d.ts +0 -11
- package/dist/scenes/timeline.js +0 -26
- package/dist/scenes/timeouts.d.ts +0 -6
- package/dist/scenes/timeouts.js +0 -17
- package/dist/scenes/training-captions.d.ts +0 -14
- package/dist/scenes/training-captions.js +0 -98
- package/dist/scenes/training-report.d.ts +0 -10
- package/dist/scenes/training-report.js +0 -78
- package/dist/scenes/training-transcript.d.ts +0 -24
- package/dist/scenes/training-transcript.js +0 -204
- package/dist/scenes/training.d.ts +0 -10
- package/dist/scenes/training.js +0 -134
- package/dist/scenes/types.d.ts +0 -1900
- package/dist/scenes/types.js +0 -8
- package/dist/scenes/visual-audit-contact-sheets.d.ts +0 -6
- package/dist/scenes/visual-audit-contact-sheets.js +0 -119
- package/dist/scenes/visual-audit-fixtures.d.ts +0 -25
- package/dist/scenes/visual-audit-fixtures.js +0 -247
- package/dist/scenes/visual-audit-report.d.ts +0 -11
- package/dist/scenes/visual-audit-report.js +0 -85
- package/dist/scenes/visual-audit-review.d.ts +0 -23
- package/dist/scenes/visual-audit-review.js +0 -829
- package/dist/scenes/visual-audit-routes.d.ts +0 -13
- package/dist/scenes/visual-audit-routes.js +0 -308
- package/dist/scenes/visual-audit.d.ts +0 -3
- package/dist/scenes/visual-audit.js +0 -596
- package/dist/scripts/aggregate-book.js +0 -16
- package/dist/scripts/assert-release-tag-version.js +0 -23
- package/dist/scripts/build-dist.js +0 -294
- package/dist/scripts/build-tenant-worker.js +0 -36
- package/dist/scripts/check-build-warnings.js +0 -51
- package/dist/scripts/cleanup-markdown.js +0 -377
- package/dist/scripts/cli-test-fixtures.js +0 -44
- package/dist/scripts/config-treeseed.js +0 -131
- package/dist/scripts/deployment-readiness.js +0 -20
- package/dist/scripts/generate-treedx-openapi-types.js +0 -186
- package/dist/scripts/install-managed-dependencies.js +0 -12
- package/dist/scripts/key-agent.js +0 -165
- package/dist/scripts/local-dev.js +0 -129
- package/dist/scripts/migrate-journey-csv-to-guarantees.js +0 -140
- package/dist/scripts/operations-runner-smoke.js +0 -16
- package/dist/scripts/package-tools.js +0 -85
- package/dist/scripts/patch-starlight-content-path.js +0 -173
- package/dist/scripts/prepare.js +0 -10
- package/dist/scripts/publish-package.js +0 -29
- package/dist/scripts/release-verify.js +0 -105
- package/dist/scripts/run-fixture-astro-command.js +0 -18
- package/dist/scripts/scaffold-site.js +0 -66
- package/dist/scripts/sync-template.js +0 -20
- package/dist/scripts/template-catalog.test.js +0 -86
- package/dist/scripts/template-command.js +0 -31
- package/dist/scripts/tenant-astro-command.js +0 -3
- package/dist/scripts/tenant-build.js +0 -48
- package/dist/scripts/tenant-check.js +0 -10
- package/dist/scripts/tenant-d1-migrate-local.js +0 -15
- package/dist/scripts/tenant-deploy.js +0 -220
- package/dist/scripts/tenant-destroy.js +0 -112
- package/dist/scripts/tenant-dev.js +0 -160
- package/dist/scripts/tenant-lint.js +0 -4
- package/dist/scripts/tenant-test.js +0 -4
- package/dist/scripts/tenant-workflow-action.js +0 -101
- package/dist/scripts/test-cloudflare-local.js +0 -209
- package/dist/scripts/test-scaffold.js +0 -300
- package/dist/scripts/test-smoke.js +0 -137
- package/dist/scripts/treeseed-assert-release-tag-version.js +0 -21
- package/dist/scripts/treeseed-build-dist.js +0 -131
- package/dist/scripts/treeseed-publish-package.js +0 -19
- package/dist/scripts/treeseed-release-verify.js +0 -131
- package/dist/scripts/validate-templates.js +0 -6
- package/dist/scripts/verify-driver.js +0 -45
- package/dist/scripts/workflow-commands.test.js +0 -31
- package/dist/scripts/workspace-command-e2e.js +0 -718
- package/dist/scripts/workspace-lint.js +0 -15
- package/dist/scripts/workspace-preflight.js +0 -22
- package/dist/scripts/workspace-publish-changed-packages.js +0 -16
- package/dist/scripts/workspace-release-test.js +0 -104
- package/dist/scripts/workspace-release-verify.js +0 -81
- package/dist/scripts/workspace-save.js +0 -64
- package/dist/scripts/workspace-start-warning.js +0 -3
- package/dist/scripts/workspace-test-unit.js +0 -4
- package/dist/scripts/workspace-test.js +0 -17
- package/dist/sdk-dispatch.d.ts +0 -12
- package/dist/sdk-dispatch.js +0 -126
- package/dist/sdk-fields.d.ts +0 -11
- package/dist/sdk-filters.d.ts +0 -4
- package/dist/sdk-filters.js +0 -74
- package/dist/sdk-types.d.ts +0 -3868
- package/dist/sdk-types.js +0 -542
- package/dist/sdk-version.d.ts +0 -2
- package/dist/sdk-version.js +0 -42
- package/dist/sdk.d.ts +0 -266
- package/dist/sdk.js +0 -825
- package/dist/secrets-capability.d.ts +0 -421
- package/dist/secrets-capability.js +0 -530
- package/dist/seeds/errors.d.ts +0 -5
- package/dist/seeds/errors.js +0 -22
- package/dist/seeds/index.d.ts +0 -20
- package/dist/seeds/index.js +0 -53
- package/dist/seeds/loader.d.ts +0 -8
- package/dist/seeds/loader.js +0 -32
- package/dist/seeds/normalize.d.ts +0 -13
- package/dist/seeds/normalize.js +0 -282
- package/dist/seeds/planner.d.ts +0 -10
- package/dist/seeds/planner.js +0 -149
- package/dist/seeds/schema.d.ts +0 -2
- package/dist/seeds/schema.js +0 -893
- package/dist/seeds/types.d.ts +0 -312
- package/dist/seeds/types.js +0 -12
- package/dist/service-credentials.d.ts +0 -54
- package/dist/service-credentials.js +0 -112
- package/dist/stores/cursor-store.d.ts +0 -10
- package/dist/stores/cursor-store.js +0 -164
- package/dist/stores/envelopes.d.ts +0 -116
- package/dist/stores/envelopes.js +0 -219
- package/dist/stores/helpers.d.ts +0 -12
- package/dist/stores/helpers.js +0 -42
- package/dist/stores/lease-store.d.ts +0 -18
- package/dist/stores/lease-store.js +0 -189
- package/dist/stores/message-store.d.ts +0 -12
- package/dist/stores/message-store.js +0 -273
- package/dist/stores/operational-store.d.ts +0 -55
- package/dist/stores/operational-store.js +0 -861
- package/dist/stores/project-workflow-store.d.ts +0 -56
- package/dist/stores/project-workflow-store.js +0 -482
- package/dist/stores/run-store.d.ts +0 -9
- package/dist/stores/run-store.js +0 -75
- package/dist/stores/subscription-store.d.ts +0 -8
- package/dist/stores/subscription-store.js +0 -73
- package/dist/template-catalog.d.ts +0 -13
- package/dist/template-catalog.js +0 -151
- package/dist/template-launch-requirements.d.ts +0 -118
- package/dist/template-launch-requirements.js +0 -768
- package/dist/template-launch-ui.d.ts +0 -85
- package/dist/template-launch-ui.js +0 -189
- package/dist/timing.d.ts +0 -20
- package/dist/timing.js +0 -73
- package/dist/treedx/adapters.d.ts +0 -6
- package/dist/treedx/adapters.js +0 -36
- package/dist/treedx/client.d.ts +0 -222
- package/dist/treedx/client.js +0 -871
- package/dist/treedx/errors.d.ts +0 -13
- package/dist/treedx/federated-client.d.ts +0 -27
- package/dist/treedx/federated-client.js +0 -158
- package/dist/treedx/graph-adapter.d.ts +0 -33
- package/dist/treedx/graph-adapter.js +0 -156
- package/dist/treedx/index.d.ts +0 -14
- package/dist/treedx/index.js +0 -48
- package/dist/treedx/market-integration.d.ts +0 -27
- package/dist/treedx/market-integration.js +0 -131
- package/dist/treedx/ports.d.ts +0 -166
- package/dist/treedx/ports.js +0 -231
- package/dist/treedx/query-adapter.d.ts +0 -19
- package/dist/treedx/query-adapter.js +0 -62
- package/dist/treedx/registry-client.d.ts +0 -11
- package/dist/treedx/registry-client.js +0 -19
- package/dist/treedx/repository-adapter.d.ts +0 -45
- package/dist/treedx/repository-adapter.js +0 -319
- package/dist/treedx/sdk-integration.d.ts +0 -27
- package/dist/treedx/sdk-integration.js +0 -63
- package/dist/treedx/workspace-adapter.d.ts +0 -27
- package/dist/treedx/workspace-adapter.js +0 -65
- package/dist/treedx-backends.d.ts +0 -220
- package/dist/treedx-backends.js +0 -634
- package/dist/treedx-client.d.ts +0 -89
- package/dist/treedx-client.js +0 -184
- package/dist/treeseed/services/compose.yml +0 -6
- package/dist/treeseed/template-catalog/catalog.fixture.json +0 -707
- package/dist/types/cloudflare.d.ts +0 -54
- package/dist/verification.d.ts +0 -31
- package/dist/verification.js +0 -430
- package/dist/workflow/operations.d.ts +0 -1516
- package/dist/workflow/operations.js +0 -7001
- package/dist/workflow/policy.d.ts +0 -12
- package/dist/workflow/policy.js +0 -70
- package/dist/workflow/runs.d.ts +0 -143
- package/dist/workflow/runs.js +0 -720
- package/dist/workflow/session.d.ts +0 -34
- package/dist/workflow/session.js +0 -160
- package/dist/workflow/worktrees.d.ts +0 -43
- package/dist/workflow/worktrees.js +0 -307
- package/dist/workflow-state.d.ts +0 -250
- package/dist/workflow-state.js +0 -844
- package/dist/workflow-support.d.ts +0 -28
- package/dist/workflow-support.js +0 -390
- package/dist/workflow.d.ts +0 -327
- package/dist/workflow.js +0 -140
- package/drizzle/d1/0000_treeseed_d1.sql +0 -19
- package/drizzle/market/0000_market_control_plane.sql +0 -3223
- package/drizzle/market/0001_capacity_budget_mode_default.sql +0 -4
- package/drizzle/market/0002_user_email_addresses.sql +0 -26
- package/drizzle/market/0003_project_team_slug_unique.sql +0 -4
- package/drizzle/market/0004_treedx_market_integration.sql +0 -99
- package/drizzle/market/0005_agent_capacity_coordination.sql +0 -145
- package/drizzle/market/0006_provider_assignment_lifecycle.sql +0 -9
- package/drizzle/market/0007_agent_architecture_gap_closure.sql +0 -157
- package/drizzle/market/0008_agent_capacity_operational_closure.sql +0 -27
- package/drizzle/market/0009_agent_capacity_runtime_hardening.sql +0 -29
- package/drizzle/market/0010_secrets_capability_persistence.sql +0 -130
- package/drizzle/market/0011_github_app_adapter.sql +0 -47
- package/drizzle/market/0012_workday_test_runs.sql +0 -44
- package/drizzle/market/0013_runtime_task_lifecycle.sql +0 -39
- package/drizzle/market/0014_governance_pipeline.sql +0 -189
- package/drizzle/market/0015_agent_decision_assignment_graphs.sql +0 -60
- package/scripts/verify-driver.ts +0 -51
- package/templates/github/deploy-web.workflow.yml +0 -168
- package/templates/github/hosted-project.workflow.yml +0 -76
- /package/dist/{api/types.js → agent-capacity/contracts/capacity/workdays/workday-records.js} +0 -0
- /package/dist/{hosting/contracts.js → agent-capacity/contracts/operations/workflow-promotion.js} +0 -0
- /package/dist/{platform/contracts.js → agent-capacity/contracts/projects/agents/project-agent-class.js} +0 -0
- /package/dist/{reconcile/contracts.js → agent-capacity/contracts/runtime/runtime-observability.js} +0 -0
- /package/dist/{types/cloudflare.js → agent-capacity/contracts/support/decision-work.js} +0 -0
- /package/dist/{field-aliases.js → entrypoints/models/field-aliases.js} +0 -0
- /package/dist/{sdk-fields.js → entrypoints/models/sdk-fields.js} +0 -0
- /package/dist/{runtime.d.ts → runtime/runtime.d.ts} +0 -0
- /package/dist/{runtime.js → runtime/runtime.js} +0 -0
- /package/dist/treedx/{errors.js → support/errors.js} +0 -0
|
@@ -1,3223 +0,0 @@
|
|
|
1
|
-
CREATE TABLE "agent_capacity_plans" (
|
|
2
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
-
"team_id" text NOT NULL,
|
|
4
|
-
"project_id" text NOT NULL,
|
|
5
|
-
"decision_id" text NOT NULL,
|
|
6
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
7
|
-
"scope_hash" text NOT NULL,
|
|
8
|
-
"allocation_set_id" text,
|
|
9
|
-
"work_day_id" text,
|
|
10
|
-
"expected_credits" real DEFAULT 0 NOT NULL,
|
|
11
|
-
"high_credits" real DEFAULT 0 NOT NULL,
|
|
12
|
-
"work_units_json" text DEFAULT '[]' NOT NULL,
|
|
13
|
-
"capability_needs_json" text DEFAULT '[]' NOT NULL,
|
|
14
|
-
"environment_needs_json" text DEFAULT '[]' NOT NULL,
|
|
15
|
-
"reserves_json" text DEFAULT '{}' NOT NULL,
|
|
16
|
-
"blockers_json" text DEFAULT '[]' NOT NULL,
|
|
17
|
-
"priority_rationale" text,
|
|
18
|
-
"review_json" text DEFAULT '{}' NOT NULL,
|
|
19
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
20
|
-
"accepted_at" text,
|
|
21
|
-
"scheduled_at" text,
|
|
22
|
-
"superseded_at" text,
|
|
23
|
-
"created_at" text NOT NULL,
|
|
24
|
-
"updated_at" text NOT NULL
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
CREATE TABLE "agent_messages" (
|
|
28
|
-
"id" serial PRIMARY KEY NOT NULL,
|
|
29
|
-
"type" text NOT NULL,
|
|
30
|
-
"payload_json" text NOT NULL,
|
|
31
|
-
"created_at" text NOT NULL
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
CREATE TABLE "agent_mode_runs" (
|
|
35
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
36
|
-
"team_id" text NOT NULL,
|
|
37
|
-
"project_id" text NOT NULL,
|
|
38
|
-
"provider_assignment_id" text NOT NULL,
|
|
39
|
-
"capacity_provider_id" text NOT NULL,
|
|
40
|
-
"execution_provider_id" text,
|
|
41
|
-
"project_agent_class_id" text NOT NULL,
|
|
42
|
-
"agent_id" text,
|
|
43
|
-
"handler_id" text,
|
|
44
|
-
"mode" text NOT NULL,
|
|
45
|
-
"status" text DEFAULT 'queued' NOT NULL,
|
|
46
|
-
"selected_input_json" text DEFAULT '{}' NOT NULL,
|
|
47
|
-
"capacity_envelope_json" text DEFAULT '{}' NOT NULL,
|
|
48
|
-
"outputs_json" text DEFAULT '{}' NOT NULL,
|
|
49
|
-
"trace_refs_json" text DEFAULT '{}' NOT NULL,
|
|
50
|
-
"usage_actual_json" text DEFAULT '{}' NOT NULL,
|
|
51
|
-
"validation_json" text DEFAULT '{}' NOT NULL,
|
|
52
|
-
"fallback_reason" text,
|
|
53
|
-
"started_at" text,
|
|
54
|
-
"completed_at" text,
|
|
55
|
-
"failed_at" text,
|
|
56
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
57
|
-
"created_at" text NOT NULL,
|
|
58
|
-
"updated_at" text NOT NULL
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
CREATE TABLE "agent_pool_registrations" (
|
|
62
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
63
|
-
"pool_id" text NOT NULL,
|
|
64
|
-
"project_id" text NOT NULL,
|
|
65
|
-
"runner_id" text,
|
|
66
|
-
"manager_id" text,
|
|
67
|
-
"service_name" text,
|
|
68
|
-
"heartbeat_at" text NOT NULL,
|
|
69
|
-
"desired_workers" integer,
|
|
70
|
-
"observed_queue_depth" integer,
|
|
71
|
-
"observed_active_leases" integer,
|
|
72
|
-
"metadata_json" text,
|
|
73
|
-
"created_at" text NOT NULL,
|
|
74
|
-
"updated_at" text NOT NULL
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
CREATE TABLE "agent_pool_scale_decisions" (
|
|
78
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
79
|
-
"pool_id" text NOT NULL,
|
|
80
|
-
"project_id" text NOT NULL,
|
|
81
|
-
"environment" text NOT NULL,
|
|
82
|
-
"desired_workers" integer NOT NULL,
|
|
83
|
-
"observed_queue_depth" integer DEFAULT 0 NOT NULL,
|
|
84
|
-
"observed_active_leases" integer DEFAULT 0 NOT NULL,
|
|
85
|
-
"work_day_id" text,
|
|
86
|
-
"reason" text NOT NULL,
|
|
87
|
-
"metadata_json" text NOT NULL,
|
|
88
|
-
"created_at" text NOT NULL,
|
|
89
|
-
"updated_at" text NOT NULL
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
CREATE TABLE "agent_pools" (
|
|
93
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
94
|
-
"project_id" text NOT NULL,
|
|
95
|
-
"team_id" text NOT NULL,
|
|
96
|
-
"environment" text NOT NULL,
|
|
97
|
-
"name" text NOT NULL,
|
|
98
|
-
"registration_identity" text,
|
|
99
|
-
"service_base_url" text,
|
|
100
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
101
|
-
"min_workers" integer DEFAULT 0 NOT NULL,
|
|
102
|
-
"max_workers" integer DEFAULT 1 NOT NULL,
|
|
103
|
-
"target_queue_depth" integer DEFAULT 1 NOT NULL,
|
|
104
|
-
"cooldown_seconds" integer DEFAULT 60 NOT NULL,
|
|
105
|
-
"metadata_json" text,
|
|
106
|
-
"created_at" text NOT NULL,
|
|
107
|
-
"updated_at" text NOT NULL
|
|
108
|
-
);
|
|
109
|
-
|
|
110
|
-
CREATE TABLE "agent_runs" (
|
|
111
|
-
"run_id" text PRIMARY KEY NOT NULL,
|
|
112
|
-
"agent_slug" text NOT NULL,
|
|
113
|
-
"status" text NOT NULL,
|
|
114
|
-
"created_at" text NOT NULL
|
|
115
|
-
);
|
|
116
|
-
|
|
117
|
-
CREATE TABLE "api_tokens" (
|
|
118
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
119
|
-
"user_id" text NOT NULL,
|
|
120
|
-
"kind" text NOT NULL,
|
|
121
|
-
"name" text NOT NULL,
|
|
122
|
-
"token_prefix" text NOT NULL,
|
|
123
|
-
"token_hash" text NOT NULL,
|
|
124
|
-
"scopes_json" text NOT NULL,
|
|
125
|
-
"expires_at" text,
|
|
126
|
-
"last_used_at" text,
|
|
127
|
-
"revoked_at" text,
|
|
128
|
-
"metadata_json" text,
|
|
129
|
-
"created_at" text NOT NULL,
|
|
130
|
-
"updated_at" text NOT NULL
|
|
131
|
-
);
|
|
132
|
-
|
|
133
|
-
CREATE TABLE "approval_requests" (
|
|
134
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
135
|
-
"team_id" text NOT NULL,
|
|
136
|
-
"project_id" text NOT NULL,
|
|
137
|
-
"work_day_id" text,
|
|
138
|
-
"task_id" text,
|
|
139
|
-
"kind" text NOT NULL,
|
|
140
|
-
"state" text DEFAULT 'pending' NOT NULL,
|
|
141
|
-
"severity" text DEFAULT 'medium' NOT NULL,
|
|
142
|
-
"requested_by_type" text DEFAULT 'worker' NOT NULL,
|
|
143
|
-
"requested_by_id" text,
|
|
144
|
-
"title" text NOT NULL,
|
|
145
|
-
"summary" text NOT NULL,
|
|
146
|
-
"options_json" text DEFAULT '[]' NOT NULL,
|
|
147
|
-
"recommendation_json" text DEFAULT '{}' NOT NULL,
|
|
148
|
-
"policy_snapshot_json" text DEFAULT '{}' NOT NULL,
|
|
149
|
-
"expires_at" text,
|
|
150
|
-
"decided_by_type" text,
|
|
151
|
-
"decided_by_id" text,
|
|
152
|
-
"decided_at" text,
|
|
153
|
-
"decision_json" text,
|
|
154
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
155
|
-
"created_at" text NOT NULL,
|
|
156
|
-
"updated_at" text NOT NULL
|
|
157
|
-
);
|
|
158
|
-
|
|
159
|
-
CREATE TABLE "audit_events" (
|
|
160
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
161
|
-
"actor_type" text NOT NULL,
|
|
162
|
-
"actor_id" text,
|
|
163
|
-
"event_type" text NOT NULL,
|
|
164
|
-
"target_type" text,
|
|
165
|
-
"target_id" text,
|
|
166
|
-
"data_json" text,
|
|
167
|
-
"created_at" text NOT NULL
|
|
168
|
-
);
|
|
169
|
-
|
|
170
|
-
CREATE TABLE "auth_sessions" (
|
|
171
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
172
|
-
"user_id" text NOT NULL,
|
|
173
|
-
"session_type" text NOT NULL,
|
|
174
|
-
"refresh_token_hash" text NOT NULL,
|
|
175
|
-
"scopes_json" text NOT NULL,
|
|
176
|
-
"expires_at" text NOT NULL,
|
|
177
|
-
"revoked_at" text,
|
|
178
|
-
"data_json" text,
|
|
179
|
-
"created_at" text NOT NULL,
|
|
180
|
-
"updated_at" text NOT NULL
|
|
181
|
-
);
|
|
182
|
-
|
|
183
|
-
CREATE TABLE "better_auth_account" (
|
|
184
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
185
|
-
"accountId" text NOT NULL,
|
|
186
|
-
"providerId" text NOT NULL,
|
|
187
|
-
"userId" text NOT NULL,
|
|
188
|
-
"accessToken" text,
|
|
189
|
-
"refreshToken" text,
|
|
190
|
-
"idToken" text,
|
|
191
|
-
"accessTokenExpiresAt" bigint,
|
|
192
|
-
"refreshTokenExpiresAt" bigint,
|
|
193
|
-
"scope" text,
|
|
194
|
-
"password" text,
|
|
195
|
-
"createdAt" bigint NOT NULL,
|
|
196
|
-
"updatedAt" bigint NOT NULL
|
|
197
|
-
);
|
|
198
|
-
|
|
199
|
-
CREATE TABLE "better_auth_session" (
|
|
200
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
201
|
-
"expiresAt" bigint NOT NULL,
|
|
202
|
-
"token" text NOT NULL,
|
|
203
|
-
"createdAt" bigint NOT NULL,
|
|
204
|
-
"updatedAt" bigint NOT NULL,
|
|
205
|
-
"ipAddress" text,
|
|
206
|
-
"userAgent" text,
|
|
207
|
-
"userId" text NOT NULL,
|
|
208
|
-
CONSTRAINT "better_auth_session_token_unique" UNIQUE("token")
|
|
209
|
-
);
|
|
210
|
-
|
|
211
|
-
CREATE TABLE "better_auth_user" (
|
|
212
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
213
|
-
"name" text NOT NULL,
|
|
214
|
-
"email" text NOT NULL,
|
|
215
|
-
"emailVerified" integer DEFAULT 0 NOT NULL,
|
|
216
|
-
"image" text,
|
|
217
|
-
"createdAt" bigint NOT NULL,
|
|
218
|
-
"updatedAt" bigint NOT NULL,
|
|
219
|
-
"username" text,
|
|
220
|
-
"firstName" text,
|
|
221
|
-
"lastName" text,
|
|
222
|
-
CONSTRAINT "better_auth_user_email_unique" UNIQUE("email")
|
|
223
|
-
);
|
|
224
|
-
|
|
225
|
-
CREATE TABLE "better_auth_verification" (
|
|
226
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
227
|
-
"identifier" text NOT NULL,
|
|
228
|
-
"value" text NOT NULL,
|
|
229
|
-
"expiresAt" bigint NOT NULL,
|
|
230
|
-
"createdAt" bigint NOT NULL,
|
|
231
|
-
"updatedAt" bigint NOT NULL
|
|
232
|
-
);
|
|
233
|
-
|
|
234
|
-
CREATE TABLE "capacity_allocation_sets" (
|
|
235
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
236
|
-
"team_id" text NOT NULL,
|
|
237
|
-
"version" text NOT NULL,
|
|
238
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
239
|
-
"effective_from" text,
|
|
240
|
-
"effective_until" text,
|
|
241
|
-
"policy_json" text DEFAULT '{}' NOT NULL,
|
|
242
|
-
"slices_json" text DEFAULT '[]' NOT NULL,
|
|
243
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
244
|
-
"created_by_id" text,
|
|
245
|
-
"activated_at" text,
|
|
246
|
-
"superseded_by_id" text,
|
|
247
|
-
"created_at" text NOT NULL,
|
|
248
|
-
"updated_at" text NOT NULL
|
|
249
|
-
);
|
|
250
|
-
|
|
251
|
-
CREATE TABLE "capacity_grants" (
|
|
252
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
253
|
-
"capacity_provider_id" text NOT NULL,
|
|
254
|
-
"lane_id" text,
|
|
255
|
-
"grant_scope" text DEFAULT 'team' NOT NULL,
|
|
256
|
-
"team_id" text NOT NULL,
|
|
257
|
-
"project_id" text,
|
|
258
|
-
"environment" text,
|
|
259
|
-
"state" text DEFAULT 'active' NOT NULL,
|
|
260
|
-
"daily_credit_limit" real,
|
|
261
|
-
"weekly_credit_limit" real,
|
|
262
|
-
"monthly_credit_limit" real,
|
|
263
|
-
"daily_usd_limit" real,
|
|
264
|
-
"weekly_quota_minutes" real,
|
|
265
|
-
"monthly_provider_units" real,
|
|
266
|
-
"priority_weight" real DEFAULT 1 NOT NULL,
|
|
267
|
-
"overflow_policy" text DEFAULT 'soft_grant' NOT NULL,
|
|
268
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
269
|
-
"created_at" text NOT NULL,
|
|
270
|
-
"updated_at" text NOT NULL
|
|
271
|
-
);
|
|
272
|
-
|
|
273
|
-
CREATE TABLE "capacity_ledger_entries" (
|
|
274
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
275
|
-
"capacity_provider_id" text NOT NULL,
|
|
276
|
-
"lane_id" text,
|
|
277
|
-
"reservation_id" text,
|
|
278
|
-
"assignment_id" text,
|
|
279
|
-
"mode_run_id" text,
|
|
280
|
-
"mode" text,
|
|
281
|
-
"team_id" text NOT NULL,
|
|
282
|
-
"project_id" text,
|
|
283
|
-
"work_day_id" text,
|
|
284
|
-
"task_id" text,
|
|
285
|
-
"phase" text NOT NULL,
|
|
286
|
-
"credits" real NOT NULL,
|
|
287
|
-
"provider_units" real,
|
|
288
|
-
"usd" real,
|
|
289
|
-
"source" text NOT NULL,
|
|
290
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
291
|
-
"created_at" text NOT NULL
|
|
292
|
-
);
|
|
293
|
-
|
|
294
|
-
CREATE TABLE "capacity_provider_api_keys" (
|
|
295
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
296
|
-
"capacity_provider_id" text NOT NULL,
|
|
297
|
-
"team_id" text NOT NULL,
|
|
298
|
-
"name" text NOT NULL,
|
|
299
|
-
"key_prefix" text NOT NULL,
|
|
300
|
-
"key_hash" text NOT NULL,
|
|
301
|
-
"scopes_json" text DEFAULT '[]' NOT NULL,
|
|
302
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
303
|
-
"last_used_at" text,
|
|
304
|
-
"rotated_from_key_id" text,
|
|
305
|
-
"expires_at" text,
|
|
306
|
-
"revoked_at" text,
|
|
307
|
-
"created_by_id" text,
|
|
308
|
-
"created_at" text NOT NULL,
|
|
309
|
-
"updated_at" text NOT NULL
|
|
310
|
-
);
|
|
311
|
-
|
|
312
|
-
CREATE TABLE "capacity_provider_deployments" (
|
|
313
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
314
|
-
"team_id" text NOT NULL,
|
|
315
|
-
"capacity_provider_id" text NOT NULL,
|
|
316
|
-
"launch_mode" text NOT NULL,
|
|
317
|
-
"host_kind" text NOT NULL,
|
|
318
|
-
"host_id" text,
|
|
319
|
-
"status" text NOT NULL,
|
|
320
|
-
"image_ref" text,
|
|
321
|
-
"service_refs_json" text DEFAULT '{}' NOT NULL,
|
|
322
|
-
"env_refs_json" text DEFAULT '{}' NOT NULL,
|
|
323
|
-
"result_json" text DEFAULT '{}' NOT NULL,
|
|
324
|
-
"error_json" text,
|
|
325
|
-
"created_by_id" text,
|
|
326
|
-
"created_at" text NOT NULL,
|
|
327
|
-
"updated_at" text NOT NULL,
|
|
328
|
-
"completed_at" text
|
|
329
|
-
);
|
|
330
|
-
|
|
331
|
-
CREATE TABLE "capacity_provider_hosts" (
|
|
332
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
333
|
-
"capacity_provider_id" text NOT NULL,
|
|
334
|
-
"host_id" text NOT NULL,
|
|
335
|
-
"role" text NOT NULL,
|
|
336
|
-
"required" integer DEFAULT 1 NOT NULL,
|
|
337
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
338
|
-
"created_at" text NOT NULL,
|
|
339
|
-
"updated_at" text NOT NULL
|
|
340
|
-
);
|
|
341
|
-
|
|
342
|
-
CREATE TABLE "capacity_provider_lanes" (
|
|
343
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
344
|
-
"capacity_provider_id" text NOT NULL,
|
|
345
|
-
"name" text NOT NULL,
|
|
346
|
-
"business_model" text DEFAULT 'custom' NOT NULL,
|
|
347
|
-
"model_family" text,
|
|
348
|
-
"model_class" text,
|
|
349
|
-
"region_policy" text,
|
|
350
|
-
"unit" text DEFAULT 'treeseed_credit' NOT NULL,
|
|
351
|
-
"scarcity_level" text DEFAULT 'medium' NOT NULL,
|
|
352
|
-
"hard_limits_json" text DEFAULT '{}' NOT NULL,
|
|
353
|
-
"routing_policy_json" text DEFAULT '{}' NOT NULL,
|
|
354
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
355
|
-
"created_at" text NOT NULL,
|
|
356
|
-
"updated_at" text NOT NULL
|
|
357
|
-
);
|
|
358
|
-
|
|
359
|
-
CREATE TABLE "capacity_provider_registrations" (
|
|
360
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
361
|
-
"capacity_provider_id" text NOT NULL,
|
|
362
|
-
"team_id" text NOT NULL,
|
|
363
|
-
"runtime_version" text NOT NULL,
|
|
364
|
-
"market_id" text NOT NULL,
|
|
365
|
-
"capabilities_json" text DEFAULT '[]' NOT NULL,
|
|
366
|
-
"budgets_json" text DEFAULT '{}' NOT NULL,
|
|
367
|
-
"health_json" text DEFAULT '{}' NOT NULL,
|
|
368
|
-
"status" text DEFAULT 'online' NOT NULL,
|
|
369
|
-
"registered_at" text NOT NULL,
|
|
370
|
-
"last_seen_at" text NOT NULL,
|
|
371
|
-
"disconnected_at" text,
|
|
372
|
-
"created_at" text NOT NULL,
|
|
373
|
-
"updated_at" text NOT NULL
|
|
374
|
-
);
|
|
375
|
-
|
|
376
|
-
CREATE TABLE "capacity_providers" (
|
|
377
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
378
|
-
"team_id" text,
|
|
379
|
-
"owner_team_id" text,
|
|
380
|
-
"name" text NOT NULL,
|
|
381
|
-
"kind" text NOT NULL,
|
|
382
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
383
|
-
"provider" text NOT NULL,
|
|
384
|
-
"billing_scope" text DEFAULT 'team' NOT NULL,
|
|
385
|
-
"monthly_credit_budget" real DEFAULT 0 NOT NULL,
|
|
386
|
-
"daily_credit_budget" real DEFAULT 0 NOT NULL,
|
|
387
|
-
"credit_budget_mode" text DEFAULT 'derived' NOT NULL,
|
|
388
|
-
"max_concurrent_workdays" integer DEFAULT 1 NOT NULL,
|
|
389
|
-
"max_concurrent_workers" integer DEFAULT 1 NOT NULL,
|
|
390
|
-
"capacity_model_json" text DEFAULT '{}' NOT NULL,
|
|
391
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
392
|
-
"created_at" text NOT NULL,
|
|
393
|
-
"updated_at" text NOT NULL
|
|
394
|
-
);
|
|
395
|
-
|
|
396
|
-
CREATE TABLE "capacity_reservations" (
|
|
397
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
398
|
-
"capacity_provider_id" text NOT NULL,
|
|
399
|
-
"execution_provider_id" text,
|
|
400
|
-
"lane_id" text NOT NULL,
|
|
401
|
-
"allocation_set_id" text,
|
|
402
|
-
"project_agent_class_id" text,
|
|
403
|
-
"assignment_id" text,
|
|
404
|
-
"mode" text,
|
|
405
|
-
"team_id" text NOT NULL,
|
|
406
|
-
"project_id" text NOT NULL,
|
|
407
|
-
"work_day_id" text,
|
|
408
|
-
"task_id" text,
|
|
409
|
-
"state" text DEFAULT 'reserved' NOT NULL,
|
|
410
|
-
"reserved_credits" real NOT NULL,
|
|
411
|
-
"consumed_credits" real DEFAULT 0 NOT NULL,
|
|
412
|
-
"native_unit" text,
|
|
413
|
-
"reserved_native_amount" real,
|
|
414
|
-
"consumed_native_amount" real,
|
|
415
|
-
"reserved_provider_units" real,
|
|
416
|
-
"consumed_provider_units" real,
|
|
417
|
-
"reserved_usd" real,
|
|
418
|
-
"consumed_usd" real,
|
|
419
|
-
"expires_at" text,
|
|
420
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
421
|
-
"created_at" text NOT NULL,
|
|
422
|
-
"updated_at" text NOT NULL
|
|
423
|
-
);
|
|
424
|
-
|
|
425
|
-
CREATE TABLE "capacity_routing_decisions" (
|
|
426
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
427
|
-
"task_id" text,
|
|
428
|
-
"work_day_id" text,
|
|
429
|
-
"project_id" text NOT NULL,
|
|
430
|
-
"selected_provider_id" text NOT NULL,
|
|
431
|
-
"selected_lane_id" text NOT NULL,
|
|
432
|
-
"selected_model" text,
|
|
433
|
-
"decision" text DEFAULT 'selected' NOT NULL,
|
|
434
|
-
"reason" text NOT NULL,
|
|
435
|
-
"candidate_json" text DEFAULT '[]' NOT NULL,
|
|
436
|
-
"score_json" text DEFAULT '{}' NOT NULL,
|
|
437
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
438
|
-
"created_at" text NOT NULL
|
|
439
|
-
);
|
|
440
|
-
|
|
441
|
-
CREATE TABLE "catalog_artifact_versions" (
|
|
442
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
443
|
-
"item_id" text NOT NULL,
|
|
444
|
-
"team_id" text NOT NULL,
|
|
445
|
-
"kind" text NOT NULL,
|
|
446
|
-
"version" text NOT NULL,
|
|
447
|
-
"content_key" text NOT NULL,
|
|
448
|
-
"manifest_key" text,
|
|
449
|
-
"metadata_json" text,
|
|
450
|
-
"published_at" text NOT NULL,
|
|
451
|
-
"created_at" text NOT NULL,
|
|
452
|
-
"updated_at" text NOT NULL
|
|
453
|
-
);
|
|
454
|
-
|
|
455
|
-
CREATE TABLE "catalog_item_collaborators" (
|
|
456
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
457
|
-
"item_id" text NOT NULL,
|
|
458
|
-
"subject_type" text NOT NULL,
|
|
459
|
-
"subject_id" text NOT NULL,
|
|
460
|
-
"role" text NOT NULL,
|
|
461
|
-
"metadata_json" text,
|
|
462
|
-
"created_at" text NOT NULL,
|
|
463
|
-
"updated_at" text NOT NULL
|
|
464
|
-
);
|
|
465
|
-
|
|
466
|
-
CREATE TABLE "catalog_items" (
|
|
467
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
468
|
-
"team_id" text NOT NULL,
|
|
469
|
-
"kind" text NOT NULL,
|
|
470
|
-
"slug" text NOT NULL,
|
|
471
|
-
"title" text NOT NULL,
|
|
472
|
-
"summary" text,
|
|
473
|
-
"visibility" text NOT NULL,
|
|
474
|
-
"listing_enabled" integer DEFAULT 0 NOT NULL,
|
|
475
|
-
"offer_mode" text NOT NULL,
|
|
476
|
-
"manifest_key" text,
|
|
477
|
-
"artifact_key" text,
|
|
478
|
-
"search_text" text,
|
|
479
|
-
"metadata_json" text,
|
|
480
|
-
"created_at" text NOT NULL,
|
|
481
|
-
"updated_at" text NOT NULL
|
|
482
|
-
);
|
|
483
|
-
|
|
484
|
-
CREATE TABLE "client_encrypted_escrow_records" (
|
|
485
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
486
|
-
"team_id" text NOT NULL,
|
|
487
|
-
"project_id" text,
|
|
488
|
-
"secret_id" text NOT NULL,
|
|
489
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
490
|
-
"ciphertext_ref" text NOT NULL,
|
|
491
|
-
"algorithm" text NOT NULL,
|
|
492
|
-
"wrapping_key_id" text NOT NULL,
|
|
493
|
-
"created_by_client_id" text,
|
|
494
|
-
"expires_at" text,
|
|
495
|
-
"migrated_to" text,
|
|
496
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
497
|
-
"created_at" text NOT NULL,
|
|
498
|
-
"updated_at" text NOT NULL,
|
|
499
|
-
"tombstoned_at" text
|
|
500
|
-
);
|
|
501
|
-
|
|
502
|
-
CREATE TABLE "commerce_buyer_stripe_customers" (
|
|
503
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
504
|
-
"buyer_team_id" text,
|
|
505
|
-
"buyer_user_id" text,
|
|
506
|
-
"vendor_id" text NOT NULL,
|
|
507
|
-
"connected_account_id" text NOT NULL,
|
|
508
|
-
"environment" text DEFAULT 'test' NOT NULL,
|
|
509
|
-
"stripe_customer_id" text NOT NULL,
|
|
510
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
511
|
-
"created_at" text NOT NULL,
|
|
512
|
-
"updated_at" text NOT NULL
|
|
513
|
-
);
|
|
514
|
-
|
|
515
|
-
CREATE TABLE "commerce_capacity_listing_inquiries" (
|
|
516
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
517
|
-
"listing_id" text NOT NULL,
|
|
518
|
-
"product_id" text NOT NULL,
|
|
519
|
-
"vendor_id" text NOT NULL,
|
|
520
|
-
"seller_team_id" text NOT NULL,
|
|
521
|
-
"buyer_team_id" text,
|
|
522
|
-
"buyer_user_id" text,
|
|
523
|
-
"status" text DEFAULT 'requested' NOT NULL,
|
|
524
|
-
"requested_service_type" text,
|
|
525
|
-
"requested_scope" text NOT NULL,
|
|
526
|
-
"data_access_requested_json" text DEFAULT '{}' NOT NULL,
|
|
527
|
-
"secret_access_requested_json" text DEFAULT '{}' NOT NULL,
|
|
528
|
-
"related_project_id" text,
|
|
529
|
-
"related_workday_id" text,
|
|
530
|
-
"governance_evidence_json" text DEFAULT '{}' NOT NULL,
|
|
531
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
532
|
-
"created_at" text NOT NULL,
|
|
533
|
-
"updated_at" text NOT NULL
|
|
534
|
-
);
|
|
535
|
-
|
|
536
|
-
CREATE TABLE "commerce_capacity_listings" (
|
|
537
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
538
|
-
"product_id" text NOT NULL,
|
|
539
|
-
"vendor_id" text NOT NULL,
|
|
540
|
-
"seller_team_id" text NOT NULL,
|
|
541
|
-
"capacity_provider_id" text,
|
|
542
|
-
"capacity_provider_lane_id" text,
|
|
543
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
544
|
-
"access_level" text DEFAULT 'public_summary' NOT NULL,
|
|
545
|
-
"runtime_isolation_level" text DEFAULT 'none' NOT NULL,
|
|
546
|
-
"human_involvement_level" text DEFAULT 'none' NOT NULL,
|
|
547
|
-
"ai_involvement_level" text DEFAULT 'none' NOT NULL,
|
|
548
|
-
"data_access_level" text DEFAULT 'none' NOT NULL,
|
|
549
|
-
"secret_access_level" text DEFAULT 'none' NOT NULL,
|
|
550
|
-
"supported_service_types_json" text DEFAULT '[]' NOT NULL,
|
|
551
|
-
"supported_regions_json" text DEFAULT '[]' NOT NULL,
|
|
552
|
-
"runtime_requirements_json" text DEFAULT '{}' NOT NULL,
|
|
553
|
-
"data_handling_summary" text,
|
|
554
|
-
"buyer_visible_risk_summary" text,
|
|
555
|
-
"governance_requirements_json" text DEFAULT '{}' NOT NULL,
|
|
556
|
-
"support_policy" text,
|
|
557
|
-
"availability_summary" text,
|
|
558
|
-
"ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
|
|
559
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
560
|
-
"created_at" text NOT NULL,
|
|
561
|
-
"updated_at" text NOT NULL
|
|
562
|
-
);
|
|
563
|
-
|
|
564
|
-
CREATE TABLE "commerce_cart_items" (
|
|
565
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
566
|
-
"cart_id" text NOT NULL,
|
|
567
|
-
"vendor_id" text NOT NULL,
|
|
568
|
-
"seller_team_id" text NOT NULL,
|
|
569
|
-
"product_id" text NOT NULL,
|
|
570
|
-
"product_version_id" text,
|
|
571
|
-
"offer_id" text NOT NULL,
|
|
572
|
-
"price_id" text,
|
|
573
|
-
"quantity" integer DEFAULT 1 NOT NULL,
|
|
574
|
-
"unit_amount" integer DEFAULT 0 NOT NULL,
|
|
575
|
-
"currency" text NOT NULL,
|
|
576
|
-
"mode" text NOT NULL,
|
|
577
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
578
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
579
|
-
"created_at" text NOT NULL,
|
|
580
|
-
"updated_at" text NOT NULL
|
|
581
|
-
);
|
|
582
|
-
|
|
583
|
-
CREATE TABLE "commerce_carts" (
|
|
584
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
585
|
-
"buyer_team_id" text,
|
|
586
|
-
"buyer_user_id" text,
|
|
587
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
588
|
-
"currency" text,
|
|
589
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
590
|
-
"created_at" text NOT NULL,
|
|
591
|
-
"updated_at" text NOT NULL
|
|
592
|
-
);
|
|
593
|
-
|
|
594
|
-
CREATE TABLE "commerce_checkouts" (
|
|
595
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
596
|
-
"cart_id" text NOT NULL,
|
|
597
|
-
"buyer_team_id" text,
|
|
598
|
-
"buyer_user_id" text,
|
|
599
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
600
|
-
"checkout_mode" text DEFAULT 'stripe_elements_grouped_vendor' NOT NULL,
|
|
601
|
-
"group_count" integer DEFAULT 0 NOT NULL,
|
|
602
|
-
"completed_group_count" integer DEFAULT 0 NOT NULL,
|
|
603
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
604
|
-
"created_at" text NOT NULL,
|
|
605
|
-
"updated_at" text NOT NULL
|
|
606
|
-
);
|
|
607
|
-
|
|
608
|
-
CREATE TABLE "commerce_contributions" (
|
|
609
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
610
|
-
"product_id" text NOT NULL,
|
|
611
|
-
"product_version_id" text,
|
|
612
|
-
"contributor_type" text NOT NULL,
|
|
613
|
-
"contributor_id" text,
|
|
614
|
-
"display_name" text,
|
|
615
|
-
"role" text NOT NULL,
|
|
616
|
-
"summary" text,
|
|
617
|
-
"attribution_visibility" text DEFAULT 'public' NOT NULL,
|
|
618
|
-
"agreement_ref" text,
|
|
619
|
-
"benefit_weight" real,
|
|
620
|
-
"effective_at" text NOT NULL,
|
|
621
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
622
|
-
"created_at" text NOT NULL,
|
|
623
|
-
"updated_at" text NOT NULL
|
|
624
|
-
);
|
|
625
|
-
|
|
626
|
-
CREATE TABLE "commerce_entitlements" (
|
|
627
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
628
|
-
"buyer_team_id" text,
|
|
629
|
-
"buyer_user_id" text,
|
|
630
|
-
"seller_team_id" text NOT NULL,
|
|
631
|
-
"product_id" text NOT NULL,
|
|
632
|
-
"product_version_id" text,
|
|
633
|
-
"offer_id" text NOT NULL,
|
|
634
|
-
"order_id" text,
|
|
635
|
-
"order_item_id" text,
|
|
636
|
-
"subscription_id" text,
|
|
637
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
638
|
-
"access_scope_json" text DEFAULT '{}' NOT NULL,
|
|
639
|
-
"starts_at" text,
|
|
640
|
-
"ends_at" text,
|
|
641
|
-
"renewal_state" text DEFAULT 'none' NOT NULL,
|
|
642
|
-
"fulfillment_artifact_refs_json" text DEFAULT '[]' NOT NULL,
|
|
643
|
-
"project_id" text,
|
|
644
|
-
"catalog_item_id" text,
|
|
645
|
-
"ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
|
|
646
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
647
|
-
"created_at" text NOT NULL,
|
|
648
|
-
"updated_at" text NOT NULL
|
|
649
|
-
);
|
|
650
|
-
|
|
651
|
-
CREATE TABLE "commerce_fulfillment_events" (
|
|
652
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
653
|
-
"order_id" text NOT NULL,
|
|
654
|
-
"order_item_id" text,
|
|
655
|
-
"entitlement_id" text,
|
|
656
|
-
"vendor_id" text NOT NULL,
|
|
657
|
-
"seller_team_id" text NOT NULL,
|
|
658
|
-
"product_id" text NOT NULL,
|
|
659
|
-
"product_version_id" text,
|
|
660
|
-
"catalog_item_id" text,
|
|
661
|
-
"catalog_artifact_version_id" text,
|
|
662
|
-
"event_type" text NOT NULL,
|
|
663
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
664
|
-
"artifact_refs_json" text DEFAULT '[]' NOT NULL,
|
|
665
|
-
"delivery_refs_json" text DEFAULT '[]' NOT NULL,
|
|
666
|
-
"message" text,
|
|
667
|
-
"actor_type" text NOT NULL,
|
|
668
|
-
"actor_id" text NOT NULL,
|
|
669
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
670
|
-
"created_at" text NOT NULL
|
|
671
|
-
);
|
|
672
|
-
|
|
673
|
-
CREATE TABLE "commerce_governance_events" (
|
|
674
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
675
|
-
"actor_type" text NOT NULL,
|
|
676
|
-
"actor_id" text,
|
|
677
|
-
"action" text NOT NULL,
|
|
678
|
-
"object_type" text NOT NULL,
|
|
679
|
-
"object_id" text NOT NULL,
|
|
680
|
-
"prior_state" text,
|
|
681
|
-
"next_state" text,
|
|
682
|
-
"reason" text,
|
|
683
|
-
"evidence_json" text DEFAULT '{}' NOT NULL,
|
|
684
|
-
"related_order_id" text,
|
|
685
|
-
"related_offer_id" text,
|
|
686
|
-
"related_product_id" text,
|
|
687
|
-
"related_team_id" text,
|
|
688
|
-
"created_at" text NOT NULL
|
|
689
|
-
);
|
|
690
|
-
|
|
691
|
-
CREATE TABLE "commerce_governance_policies" (
|
|
692
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
693
|
-
"product_id" text,
|
|
694
|
-
"team_id" text,
|
|
695
|
-
"policy_kind" text NOT NULL,
|
|
696
|
-
"title" text NOT NULL,
|
|
697
|
-
"approval_rules_json" text DEFAULT '{}' NOT NULL,
|
|
698
|
-
"quorum_rules_json" text DEFAULT '{}' NOT NULL,
|
|
699
|
-
"buyer_visible_summary" text,
|
|
700
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
701
|
-
"created_at" text NOT NULL,
|
|
702
|
-
"updated_at" text NOT NULL
|
|
703
|
-
);
|
|
704
|
-
|
|
705
|
-
CREATE TABLE "commerce_offers" (
|
|
706
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
707
|
-
"product_id" text NOT NULL,
|
|
708
|
-
"product_version_id" text,
|
|
709
|
-
"vendor_id" text NOT NULL,
|
|
710
|
-
"seller_team_id" text NOT NULL,
|
|
711
|
-
"mode" text NOT NULL,
|
|
712
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
713
|
-
"title" text NOT NULL,
|
|
714
|
-
"terms_summary" text,
|
|
715
|
-
"access_scope_json" text DEFAULT '{}' NOT NULL,
|
|
716
|
-
"support_scope_json" text DEFAULT '{}' NOT NULL,
|
|
717
|
-
"fulfillment_mode" text DEFAULT 'automatic' NOT NULL,
|
|
718
|
-
"active_price_id" text,
|
|
719
|
-
"stripe_product_id" text,
|
|
720
|
-
"stripe_product_status" text DEFAULT 'not_synced' NOT NULL,
|
|
721
|
-
"stripe_product_synced_at" text,
|
|
722
|
-
"stripe_product_sync_error" text,
|
|
723
|
-
"stripe_product_metadata_json" text DEFAULT '{}' NOT NULL,
|
|
724
|
-
"starts_at" text,
|
|
725
|
-
"ends_at" text,
|
|
726
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
727
|
-
"created_at" text NOT NULL,
|
|
728
|
-
"updated_at" text NOT NULL
|
|
729
|
-
);
|
|
730
|
-
|
|
731
|
-
CREATE TABLE "commerce_order_items" (
|
|
732
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
733
|
-
"order_id" text NOT NULL,
|
|
734
|
-
"vendor_id" text NOT NULL,
|
|
735
|
-
"seller_team_id" text NOT NULL,
|
|
736
|
-
"product_id" text NOT NULL,
|
|
737
|
-
"product_version_id" text,
|
|
738
|
-
"offer_id" text NOT NULL,
|
|
739
|
-
"price_id" text,
|
|
740
|
-
"mode" text NOT NULL,
|
|
741
|
-
"quantity" integer DEFAULT 1 NOT NULL,
|
|
742
|
-
"unit_amount" integer DEFAULT 0 NOT NULL,
|
|
743
|
-
"total_amount" integer DEFAULT 0 NOT NULL,
|
|
744
|
-
"refunded_amount" integer DEFAULT 0 NOT NULL,
|
|
745
|
-
"refund_status" text DEFAULT 'none' NOT NULL,
|
|
746
|
-
"currency" text NOT NULL,
|
|
747
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
748
|
-
"entitlement_id" text,
|
|
749
|
-
"ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
|
|
750
|
-
"access_scope_json" text DEFAULT '{}' NOT NULL,
|
|
751
|
-
"support_scope_json" text DEFAULT '{}' NOT NULL,
|
|
752
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
753
|
-
"created_at" text NOT NULL,
|
|
754
|
-
"updated_at" text NOT NULL
|
|
755
|
-
);
|
|
756
|
-
|
|
757
|
-
CREATE TABLE "commerce_orders" (
|
|
758
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
759
|
-
"checkout_id" text,
|
|
760
|
-
"cart_id" text,
|
|
761
|
-
"buyer_team_id" text,
|
|
762
|
-
"buyer_user_id" text,
|
|
763
|
-
"vendor_id" text,
|
|
764
|
-
"seller_team_id" text,
|
|
765
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
766
|
-
"currency" text NOT NULL,
|
|
767
|
-
"subtotal_amount" integer DEFAULT 0 NOT NULL,
|
|
768
|
-
"total_amount" integer DEFAULT 0 NOT NULL,
|
|
769
|
-
"refunded_amount" integer DEFAULT 0 NOT NULL,
|
|
770
|
-
"refund_status" text DEFAULT 'none' NOT NULL,
|
|
771
|
-
"stripe_checkout_session_id" text,
|
|
772
|
-
"stripe_payment_intent_id" text,
|
|
773
|
-
"stripe_subscription_id" text,
|
|
774
|
-
"stripe_customer_id" text,
|
|
775
|
-
"stripe_connected_account_id" text,
|
|
776
|
-
"ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
|
|
777
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
778
|
-
"created_at" text NOT NULL,
|
|
779
|
-
"updated_at" text NOT NULL
|
|
780
|
-
);
|
|
781
|
-
|
|
782
|
-
CREATE TABLE "commerce_ownership_records" (
|
|
783
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
784
|
-
"product_id" text NOT NULL,
|
|
785
|
-
"model" text NOT NULL,
|
|
786
|
-
"canonical_owner_type" text NOT NULL,
|
|
787
|
-
"canonical_owner_id" text,
|
|
788
|
-
"seller_team_id" text NOT NULL,
|
|
789
|
-
"steward_team_id" text,
|
|
790
|
-
"governance_policy_id" text,
|
|
791
|
-
"public_summary" text,
|
|
792
|
-
"buyer_visible" integer DEFAULT 1 NOT NULL,
|
|
793
|
-
"effective_at" text NOT NULL,
|
|
794
|
-
"superseded_at" text,
|
|
795
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
796
|
-
"created_at" text NOT NULL,
|
|
797
|
-
"updated_at" text NOT NULL
|
|
798
|
-
);
|
|
799
|
-
|
|
800
|
-
CREATE TABLE "commerce_ownership_transfers" (
|
|
801
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
802
|
-
"product_id" text NOT NULL,
|
|
803
|
-
"from_ownership_record_id" text NOT NULL,
|
|
804
|
-
"to_ownership_record_id" text NOT NULL,
|
|
805
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
806
|
-
"reason" text NOT NULL,
|
|
807
|
-
"approval_evidence_json" text DEFAULT '{}' NOT NULL,
|
|
808
|
-
"buyer_visible_impact" text,
|
|
809
|
-
"effective_at" text NOT NULL,
|
|
810
|
-
"requested_by_type" text DEFAULT 'user' NOT NULL,
|
|
811
|
-
"requested_by_id" text DEFAULT 'system' NOT NULL,
|
|
812
|
-
"approved_by_type" text,
|
|
813
|
-
"approved_by_id" text,
|
|
814
|
-
"approved_at" text,
|
|
815
|
-
"rejected_at" text,
|
|
816
|
-
"superseded_at" text,
|
|
817
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
818
|
-
"created_at" text NOT NULL
|
|
819
|
-
);
|
|
820
|
-
|
|
821
|
-
CREATE TABLE "commerce_payment_groups" (
|
|
822
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
823
|
-
"checkout_id" text NOT NULL,
|
|
824
|
-
"order_id" text NOT NULL,
|
|
825
|
-
"vendor_id" text NOT NULL,
|
|
826
|
-
"seller_team_id" text NOT NULL,
|
|
827
|
-
"connected_account_id" text,
|
|
828
|
-
"group_kind" text NOT NULL,
|
|
829
|
-
"billing_interval" text,
|
|
830
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
831
|
-
"currency" text NOT NULL,
|
|
832
|
-
"subtotal_amount" integer DEFAULT 0 NOT NULL,
|
|
833
|
-
"total_amount" integer DEFAULT 0 NOT NULL,
|
|
834
|
-
"stripe_payment_intent_id" text,
|
|
835
|
-
"stripe_subscription_id" text,
|
|
836
|
-
"stripe_customer_id" text,
|
|
837
|
-
"client_secret_last4" text,
|
|
838
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
839
|
-
"created_at" text NOT NULL,
|
|
840
|
-
"updated_at" text NOT NULL
|
|
841
|
-
);
|
|
842
|
-
|
|
843
|
-
CREATE TABLE "commerce_prices" (
|
|
844
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
845
|
-
"offer_id" text NOT NULL,
|
|
846
|
-
"amount" integer NOT NULL,
|
|
847
|
-
"currency" text NOT NULL,
|
|
848
|
-
"billing_interval" text NOT NULL,
|
|
849
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
850
|
-
"stripe_product_id" text,
|
|
851
|
-
"stripe_price_id" text,
|
|
852
|
-
"stripe_lookup_key" text,
|
|
853
|
-
"stripe_sync_status" text DEFAULT 'not_synced' NOT NULL,
|
|
854
|
-
"stripe_synced_at" text,
|
|
855
|
-
"stripe_sync_error" text,
|
|
856
|
-
"stripe_metadata_json" text DEFAULT '{}' NOT NULL,
|
|
857
|
-
"price_version" integer DEFAULT 1 NOT NULL,
|
|
858
|
-
"tax_behavior" text DEFAULT 'unspecified' NOT NULL,
|
|
859
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
860
|
-
"created_at" text NOT NULL,
|
|
861
|
-
"updated_at" text NOT NULL
|
|
862
|
-
);
|
|
863
|
-
|
|
864
|
-
CREATE TABLE "commerce_product_versions" (
|
|
865
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
866
|
-
"product_id" text NOT NULL,
|
|
867
|
-
"version" text NOT NULL,
|
|
868
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
869
|
-
"catalog_artifact_version_id" text,
|
|
870
|
-
"manifest_key" text,
|
|
871
|
-
"artifact_key" text,
|
|
872
|
-
"integrity" text,
|
|
873
|
-
"release_notes" text,
|
|
874
|
-
"compatibility_json" text DEFAULT '{}' NOT NULL,
|
|
875
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
876
|
-
"published_at" text,
|
|
877
|
-
"created_at" text NOT NULL,
|
|
878
|
-
"updated_at" text NOT NULL
|
|
879
|
-
);
|
|
880
|
-
|
|
881
|
-
CREATE TABLE "commerce_products" (
|
|
882
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
883
|
-
"vendor_id" text NOT NULL,
|
|
884
|
-
"seller_team_id" text NOT NULL,
|
|
885
|
-
"kind" text NOT NULL,
|
|
886
|
-
"slug" text NOT NULL,
|
|
887
|
-
"title" text NOT NULL,
|
|
888
|
-
"summary" text,
|
|
889
|
-
"description" text,
|
|
890
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
891
|
-
"visibility" text DEFAULT 'private' NOT NULL,
|
|
892
|
-
"catalog_item_id" text,
|
|
893
|
-
"current_version_id" text,
|
|
894
|
-
"ownership_model" text DEFAULT 'team_owned' NOT NULL,
|
|
895
|
-
"ownership_record_id" text,
|
|
896
|
-
"support_policy" text,
|
|
897
|
-
"license" text,
|
|
898
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
899
|
-
"created_at" text NOT NULL,
|
|
900
|
-
"updated_at" text NOT NULL
|
|
901
|
-
);
|
|
902
|
-
|
|
903
|
-
CREATE TABLE "commerce_refunds" (
|
|
904
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
905
|
-
"order_id" text NOT NULL,
|
|
906
|
-
"order_item_id" text,
|
|
907
|
-
"payment_group_id" text,
|
|
908
|
-
"vendor_id" text NOT NULL,
|
|
909
|
-
"seller_team_id" text NOT NULL,
|
|
910
|
-
"buyer_team_id" text,
|
|
911
|
-
"buyer_user_id" text,
|
|
912
|
-
"amount" integer NOT NULL,
|
|
913
|
-
"currency" text NOT NULL,
|
|
914
|
-
"status" text DEFAULT 'processing' NOT NULL,
|
|
915
|
-
"reason" text,
|
|
916
|
-
"stripe_refund_id" text,
|
|
917
|
-
"stripe_payment_intent_id" text,
|
|
918
|
-
"stripe_connected_account_id" text,
|
|
919
|
-
"idempotency_key" text NOT NULL,
|
|
920
|
-
"requested_by_type" text NOT NULL,
|
|
921
|
-
"requested_by_id" text NOT NULL,
|
|
922
|
-
"failure_reason" text,
|
|
923
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
924
|
-
"created_at" text NOT NULL,
|
|
925
|
-
"updated_at" text NOT NULL
|
|
926
|
-
);
|
|
927
|
-
|
|
928
|
-
CREATE TABLE "commerce_service_contracts" (
|
|
929
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
930
|
-
"request_id" text NOT NULL,
|
|
931
|
-
"quote_id" text NOT NULL,
|
|
932
|
-
"vendor_id" text NOT NULL,
|
|
933
|
-
"seller_team_id" text NOT NULL,
|
|
934
|
-
"buyer_team_id" text,
|
|
935
|
-
"buyer_user_id" text,
|
|
936
|
-
"product_id" text NOT NULL,
|
|
937
|
-
"offer_id" text NOT NULL,
|
|
938
|
-
"status" text DEFAULT 'pending_checkout' NOT NULL,
|
|
939
|
-
"amount" integer NOT NULL,
|
|
940
|
-
"currency" text NOT NULL,
|
|
941
|
-
"order_id" text,
|
|
942
|
-
"order_item_id" text,
|
|
943
|
-
"payment_group_id" text,
|
|
944
|
-
"entitlement_id" text,
|
|
945
|
-
"related_project_id" text,
|
|
946
|
-
"related_workday_id" text,
|
|
947
|
-
"ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
|
|
948
|
-
"access_approval_snapshot_json" text DEFAULT '{}' NOT NULL,
|
|
949
|
-
"fulfillment_summary" text,
|
|
950
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
951
|
-
"created_at" text NOT NULL,
|
|
952
|
-
"updated_at" text NOT NULL
|
|
953
|
-
);
|
|
954
|
-
|
|
955
|
-
CREATE TABLE "commerce_service_events" (
|
|
956
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
957
|
-
"request_id" text NOT NULL,
|
|
958
|
-
"quote_id" text,
|
|
959
|
-
"contract_id" text,
|
|
960
|
-
"event_type" text NOT NULL,
|
|
961
|
-
"actor_type" text NOT NULL,
|
|
962
|
-
"actor_id" text,
|
|
963
|
-
"prior_state" text,
|
|
964
|
-
"next_state" text,
|
|
965
|
-
"message" text,
|
|
966
|
-
"evidence_json" text DEFAULT '{}' NOT NULL,
|
|
967
|
-
"created_at" text NOT NULL
|
|
968
|
-
);
|
|
969
|
-
|
|
970
|
-
CREATE TABLE "commerce_service_quotes" (
|
|
971
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
972
|
-
"request_id" text NOT NULL,
|
|
973
|
-
"vendor_id" text NOT NULL,
|
|
974
|
-
"seller_team_id" text NOT NULL,
|
|
975
|
-
"buyer_team_id" text,
|
|
976
|
-
"buyer_user_id" text,
|
|
977
|
-
"quote_version" integer DEFAULT 1 NOT NULL,
|
|
978
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
979
|
-
"title" text NOT NULL,
|
|
980
|
-
"scope_summary" text NOT NULL,
|
|
981
|
-
"deliverables_json" text DEFAULT '[]' NOT NULL,
|
|
982
|
-
"assumptions_json" text DEFAULT '[]' NOT NULL,
|
|
983
|
-
"access_requirements_json" text DEFAULT '{}' NOT NULL,
|
|
984
|
-
"governance_requirements_json" text DEFAULT '{}' NOT NULL,
|
|
985
|
-
"amount" integer NOT NULL,
|
|
986
|
-
"currency" text NOT NULL,
|
|
987
|
-
"expires_at" text,
|
|
988
|
-
"buyer_approved_at" text,
|
|
989
|
-
"vendor_approved_at" text,
|
|
990
|
-
"accepted_at" text,
|
|
991
|
-
"rejected_at" text,
|
|
992
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
993
|
-
"created_at" text NOT NULL,
|
|
994
|
-
"updated_at" text NOT NULL
|
|
995
|
-
);
|
|
996
|
-
|
|
997
|
-
CREATE TABLE "commerce_service_requests" (
|
|
998
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
999
|
-
"buyer_team_id" text,
|
|
1000
|
-
"buyer_user_id" text,
|
|
1001
|
-
"vendor_id" text NOT NULL,
|
|
1002
|
-
"seller_team_id" text NOT NULL,
|
|
1003
|
-
"product_id" text NOT NULL,
|
|
1004
|
-
"offer_id" text NOT NULL,
|
|
1005
|
-
"status" text DEFAULT 'requested' NOT NULL,
|
|
1006
|
-
"requested_scope" text NOT NULL,
|
|
1007
|
-
"approved_scope" text,
|
|
1008
|
-
"access_needs_json" text DEFAULT '{}' NOT NULL,
|
|
1009
|
-
"buyer_visible_summary" text,
|
|
1010
|
-
"vendor_private_notes" text,
|
|
1011
|
-
"active_quote_id" text,
|
|
1012
|
-
"approved_quote_id" text,
|
|
1013
|
-
"contract_id" text,
|
|
1014
|
-
"related_project_id" text,
|
|
1015
|
-
"related_workday_id" text,
|
|
1016
|
-
"order_id" text,
|
|
1017
|
-
"entitlement_id" text,
|
|
1018
|
-
"ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
|
|
1019
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1020
|
-
"created_at" text NOT NULL,
|
|
1021
|
-
"updated_at" text NOT NULL
|
|
1022
|
-
);
|
|
1023
|
-
|
|
1024
|
-
CREATE TABLE "commerce_stewardship_assignments" (
|
|
1025
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1026
|
-
"ownership_record_id" text NOT NULL,
|
|
1027
|
-
"product_id" text NOT NULL,
|
|
1028
|
-
"role" text NOT NULL,
|
|
1029
|
-
"assignee_type" text NOT NULL,
|
|
1030
|
-
"assignee_id" text,
|
|
1031
|
-
"display_name" text,
|
|
1032
|
-
"responsibilities_json" text DEFAULT '[]' NOT NULL,
|
|
1033
|
-
"visible_to_buyers" integer DEFAULT 1 NOT NULL,
|
|
1034
|
-
"starts_at" text NOT NULL,
|
|
1035
|
-
"ends_at" text,
|
|
1036
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1037
|
-
"created_at" text NOT NULL,
|
|
1038
|
-
"updated_at" text NOT NULL
|
|
1039
|
-
);
|
|
1040
|
-
|
|
1041
|
-
CREATE TABLE "commerce_subscriptions" (
|
|
1042
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1043
|
-
"order_id" text NOT NULL,
|
|
1044
|
-
"vendor_id" text NOT NULL,
|
|
1045
|
-
"seller_team_id" text NOT NULL,
|
|
1046
|
-
"buyer_team_id" text,
|
|
1047
|
-
"buyer_user_id" text,
|
|
1048
|
-
"offer_id" text NOT NULL,
|
|
1049
|
-
"price_id" text NOT NULL,
|
|
1050
|
-
"status" text NOT NULL,
|
|
1051
|
-
"renewal_state" text DEFAULT 'active' NOT NULL,
|
|
1052
|
-
"stripe_subscription_id" text NOT NULL,
|
|
1053
|
-
"stripe_customer_id" text,
|
|
1054
|
-
"stripe_connected_account_id" text NOT NULL,
|
|
1055
|
-
"current_period_start" text,
|
|
1056
|
-
"current_period_end" text,
|
|
1057
|
-
"cancel_at_period_end" integer DEFAULT 0 NOT NULL,
|
|
1058
|
-
"canceled_at" text,
|
|
1059
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1060
|
-
"created_at" text NOT NULL,
|
|
1061
|
-
"updated_at" text NOT NULL
|
|
1062
|
-
);
|
|
1063
|
-
|
|
1064
|
-
CREATE TABLE "commerce_succession_events" (
|
|
1065
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1066
|
-
"product_id" text NOT NULL,
|
|
1067
|
-
"ownership_record_id" text,
|
|
1068
|
-
"stewardship_assignment_id" text,
|
|
1069
|
-
"successor_type" text NOT NULL,
|
|
1070
|
-
"successor_id" text NOT NULL,
|
|
1071
|
-
"event_type" text NOT NULL,
|
|
1072
|
-
"status" text DEFAULT 'submitted' NOT NULL,
|
|
1073
|
-
"reason" text,
|
|
1074
|
-
"evidence_json" text DEFAULT '{}' NOT NULL,
|
|
1075
|
-
"effective_at" text,
|
|
1076
|
-
"created_by_type" text NOT NULL,
|
|
1077
|
-
"created_by_id" text NOT NULL,
|
|
1078
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1079
|
-
"created_at" text NOT NULL
|
|
1080
|
-
);
|
|
1081
|
-
|
|
1082
|
-
CREATE TABLE "commerce_vendor_stripe_accounts" (
|
|
1083
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1084
|
-
"vendor_id" text NOT NULL,
|
|
1085
|
-
"team_id" text NOT NULL,
|
|
1086
|
-
"environment" text DEFAULT 'test' NOT NULL,
|
|
1087
|
-
"stripe_account_id" text NOT NULL,
|
|
1088
|
-
"account_status" text DEFAULT 'pending' NOT NULL,
|
|
1089
|
-
"onboarding_status" text DEFAULT 'not_started' NOT NULL,
|
|
1090
|
-
"charges_enabled" integer DEFAULT 0 NOT NULL,
|
|
1091
|
-
"payouts_enabled" integer DEFAULT 0 NOT NULL,
|
|
1092
|
-
"details_submitted" integer DEFAULT 0 NOT NULL,
|
|
1093
|
-
"requirements_currently_due_json" text DEFAULT '[]' NOT NULL,
|
|
1094
|
-
"requirements_eventually_due_json" text DEFAULT '[]' NOT NULL,
|
|
1095
|
-
"requirements_past_due_json" text DEFAULT '[]' NOT NULL,
|
|
1096
|
-
"requirements_disabled_reason" text,
|
|
1097
|
-
"capabilities_json" text DEFAULT '{}' NOT NULL,
|
|
1098
|
-
"onboarding_started_at" text,
|
|
1099
|
-
"onboarding_completed_at" text,
|
|
1100
|
-
"last_synced_at" text,
|
|
1101
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1102
|
-
"created_at" text NOT NULL,
|
|
1103
|
-
"updated_at" text NOT NULL
|
|
1104
|
-
);
|
|
1105
|
-
|
|
1106
|
-
CREATE TABLE "commerce_vendors" (
|
|
1107
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1108
|
-
"team_id" text NOT NULL,
|
|
1109
|
-
"display_name" text NOT NULL,
|
|
1110
|
-
"slug" text NOT NULL,
|
|
1111
|
-
"status" text DEFAULT 'submitted' NOT NULL,
|
|
1112
|
-
"trust_level" text DEFAULT 'public_publisher' NOT NULL,
|
|
1113
|
-
"professional_entitlement_id" text,
|
|
1114
|
-
"stripe_account_id" text,
|
|
1115
|
-
"sales_enabled" integer DEFAULT 0 NOT NULL,
|
|
1116
|
-
"service_sales_enabled" integer DEFAULT 0 NOT NULL,
|
|
1117
|
-
"capacity_listings_enabled" integer DEFAULT 0 NOT NULL,
|
|
1118
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1119
|
-
"created_at" text NOT NULL,
|
|
1120
|
-
"updated_at" text NOT NULL
|
|
1121
|
-
);
|
|
1122
|
-
|
|
1123
|
-
CREATE TABLE "commerce_webhook_events" (
|
|
1124
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1125
|
-
"provider" text DEFAULT 'stripe' NOT NULL,
|
|
1126
|
-
"environment" text DEFAULT 'test' NOT NULL,
|
|
1127
|
-
"event_id" text NOT NULL,
|
|
1128
|
-
"event_type" text NOT NULL,
|
|
1129
|
-
"connected_account_id" text,
|
|
1130
|
-
"status" text DEFAULT 'received' NOT NULL,
|
|
1131
|
-
"object_type" text,
|
|
1132
|
-
"object_id" text,
|
|
1133
|
-
"related_order_id" text,
|
|
1134
|
-
"related_subscription_id" text,
|
|
1135
|
-
"payload_hash" text NOT NULL,
|
|
1136
|
-
"processing_error" text,
|
|
1137
|
-
"received_at" text NOT NULL,
|
|
1138
|
-
"processed_at" text,
|
|
1139
|
-
"created_at" text NOT NULL,
|
|
1140
|
-
"updated_at" text NOT NULL
|
|
1141
|
-
);
|
|
1142
|
-
|
|
1143
|
-
CREATE TABLE "commons_decisions" (
|
|
1144
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1145
|
-
"proposal_id" text NOT NULL,
|
|
1146
|
-
"status" text DEFAULT 'proposed' NOT NULL,
|
|
1147
|
-
"decision_record_id" text,
|
|
1148
|
-
"decision_record_slug" text,
|
|
1149
|
-
"title" text NOT NULL,
|
|
1150
|
-
"summary" text NOT NULL,
|
|
1151
|
-
"steward_reason" text,
|
|
1152
|
-
"capacity_budget" text,
|
|
1153
|
-
"scheduled_for" text,
|
|
1154
|
-
"implemented_at" text,
|
|
1155
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1156
|
-
"created_at" text NOT NULL,
|
|
1157
|
-
"updated_at" text NOT NULL
|
|
1158
|
-
);
|
|
1159
|
-
|
|
1160
|
-
CREATE TABLE "commons_delegations" (
|
|
1161
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1162
|
-
"from_participant_id" text NOT NULL,
|
|
1163
|
-
"to_participant_id" text NOT NULL,
|
|
1164
|
-
"scope" text DEFAULT 'treeseed_commons' NOT NULL,
|
|
1165
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
1166
|
-
"weight_limit" real,
|
|
1167
|
-
"reason" text,
|
|
1168
|
-
"created_at" text NOT NULL,
|
|
1169
|
-
"revoked_at" text
|
|
1170
|
-
);
|
|
1171
|
-
|
|
1172
|
-
CREATE TABLE "commons_governance_events" (
|
|
1173
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1174
|
-
"event_type" text NOT NULL,
|
|
1175
|
-
"actor_type" text DEFAULT 'system' NOT NULL,
|
|
1176
|
-
"actor_id" text,
|
|
1177
|
-
"participant_id" text,
|
|
1178
|
-
"proposal_id" text,
|
|
1179
|
-
"question_id" text,
|
|
1180
|
-
"decision_id" text,
|
|
1181
|
-
"prior_state" text,
|
|
1182
|
-
"next_state" text,
|
|
1183
|
-
"message" text,
|
|
1184
|
-
"evidence_json" text DEFAULT '{}' NOT NULL,
|
|
1185
|
-
"created_at" text NOT NULL
|
|
1186
|
-
);
|
|
1187
|
-
|
|
1188
|
-
CREATE TABLE "commons_participants" (
|
|
1189
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1190
|
-
"user_id" text NOT NULL,
|
|
1191
|
-
"team_id" text NOT NULL,
|
|
1192
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
1193
|
-
"display_name" text,
|
|
1194
|
-
"verified_email" integer DEFAULT 0 NOT NULL,
|
|
1195
|
-
"base_weight" real DEFAULT 1 NOT NULL,
|
|
1196
|
-
"trust_weight" real DEFAULT 0 NOT NULL,
|
|
1197
|
-
"contribution_weight" real DEFAULT 0 NOT NULL,
|
|
1198
|
-
"stakeholder_weight" real DEFAULT 0 NOT NULL,
|
|
1199
|
-
"delegated_weight" real DEFAULT 0 NOT NULL,
|
|
1200
|
-
"total_weight" real DEFAULT 1 NOT NULL,
|
|
1201
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1202
|
-
"created_at" text NOT NULL,
|
|
1203
|
-
"updated_at" text NOT NULL
|
|
1204
|
-
);
|
|
1205
|
-
|
|
1206
|
-
CREATE TABLE "commons_proposal_backings" (
|
|
1207
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1208
|
-
"proposal_id" text NOT NULL,
|
|
1209
|
-
"participant_id" text NOT NULL,
|
|
1210
|
-
"user_id" text NOT NULL,
|
|
1211
|
-
"weight_snapshot_id" text NOT NULL,
|
|
1212
|
-
"weight" real NOT NULL,
|
|
1213
|
-
"reason" text,
|
|
1214
|
-
"created_at" text NOT NULL
|
|
1215
|
-
);
|
|
1216
|
-
|
|
1217
|
-
CREATE TABLE "commons_proposal_votes" (
|
|
1218
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1219
|
-
"proposal_id" text NOT NULL,
|
|
1220
|
-
"participant_id" text NOT NULL,
|
|
1221
|
-
"user_id" text NOT NULL,
|
|
1222
|
-
"vote" text NOT NULL,
|
|
1223
|
-
"weight_snapshot_id" text NOT NULL,
|
|
1224
|
-
"weight" real NOT NULL,
|
|
1225
|
-
"reason" text,
|
|
1226
|
-
"created_at" text NOT NULL,
|
|
1227
|
-
"updated_at" text NOT NULL
|
|
1228
|
-
);
|
|
1229
|
-
|
|
1230
|
-
CREATE TABLE "commons_proposals" (
|
|
1231
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1232
|
-
"participant_id" text NOT NULL,
|
|
1233
|
-
"user_id" text NOT NULL,
|
|
1234
|
-
"team_id" text NOT NULL,
|
|
1235
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
1236
|
-
"title" text NOT NULL,
|
|
1237
|
-
"summary" text NOT NULL,
|
|
1238
|
-
"body" text NOT NULL,
|
|
1239
|
-
"scope" text DEFAULT 'treeseed_commons' NOT NULL,
|
|
1240
|
-
"decision_type" text DEFAULT 'advisory' NOT NULL,
|
|
1241
|
-
"content_proposal_slug" text,
|
|
1242
|
-
"content_decision_slug" text,
|
|
1243
|
-
"backing_count" integer DEFAULT 0 NOT NULL,
|
|
1244
|
-
"vote_support_weight" real DEFAULT 0 NOT NULL,
|
|
1245
|
-
"vote_object_weight" real DEFAULT 0 NOT NULL,
|
|
1246
|
-
"vote_abstain_weight" real DEFAULT 0 NOT NULL,
|
|
1247
|
-
"qualified_at" text,
|
|
1248
|
-
"voting_starts_at" text,
|
|
1249
|
-
"voting_ends_at" text,
|
|
1250
|
-
"steward_decision_at" text,
|
|
1251
|
-
"steward_decision_by" text,
|
|
1252
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1253
|
-
"created_at" text NOT NULL,
|
|
1254
|
-
"updated_at" text NOT NULL
|
|
1255
|
-
);
|
|
1256
|
-
|
|
1257
|
-
CREATE TABLE "commons_questions" (
|
|
1258
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1259
|
-
"participant_id" text NOT NULL,
|
|
1260
|
-
"user_id" text NOT NULL,
|
|
1261
|
-
"team_id" text NOT NULL,
|
|
1262
|
-
"status" text DEFAULT 'open' NOT NULL,
|
|
1263
|
-
"title" text NOT NULL,
|
|
1264
|
-
"body" text NOT NULL,
|
|
1265
|
-
"answer" text,
|
|
1266
|
-
"converted_proposal_id" text,
|
|
1267
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1268
|
-
"created_at" text NOT NULL,
|
|
1269
|
-
"updated_at" text NOT NULL
|
|
1270
|
-
);
|
|
1271
|
-
|
|
1272
|
-
CREATE TABLE "commons_weight_snapshots" (
|
|
1273
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1274
|
-
"participant_id" text NOT NULL,
|
|
1275
|
-
"policy_version" text NOT NULL,
|
|
1276
|
-
"base_weight" real DEFAULT 1 NOT NULL,
|
|
1277
|
-
"verified_email_weight" real DEFAULT 0 NOT NULL,
|
|
1278
|
-
"account_age_weight" real DEFAULT 0 NOT NULL,
|
|
1279
|
-
"contribution_weight" real DEFAULT 0 NOT NULL,
|
|
1280
|
-
"stakeholder_weight" real DEFAULT 0 NOT NULL,
|
|
1281
|
-
"trust_role_weight" real DEFAULT 0 NOT NULL,
|
|
1282
|
-
"delegated_weight" real DEFAULT 0 NOT NULL,
|
|
1283
|
-
"total_weight" real DEFAULT 1 NOT NULL,
|
|
1284
|
-
"evidence_json" text DEFAULT '{}' NOT NULL,
|
|
1285
|
-
"created_at" text NOT NULL
|
|
1286
|
-
);
|
|
1287
|
-
|
|
1288
|
-
CREATE TABLE "contact_submissions" (
|
|
1289
|
-
"id" serial PRIMARY KEY NOT NULL,
|
|
1290
|
-
"email" text NOT NULL,
|
|
1291
|
-
"message" text NOT NULL,
|
|
1292
|
-
"created_at" text NOT NULL
|
|
1293
|
-
);
|
|
1294
|
-
|
|
1295
|
-
CREATE TABLE "credit_conversion_profiles" (
|
|
1296
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1297
|
-
"task_signature" text NOT NULL,
|
|
1298
|
-
"execution_profile_id" text DEFAULT 'standard-code-model' NOT NULL,
|
|
1299
|
-
"execution_provider_kind" text NOT NULL,
|
|
1300
|
-
"native_unit" text NOT NULL,
|
|
1301
|
-
"sample_count" integer DEFAULT 0 NOT NULL,
|
|
1302
|
-
"completed_sample_count" integer DEFAULT 0 NOT NULL,
|
|
1303
|
-
"interrupted_sample_count" integer DEFAULT 0 NOT NULL,
|
|
1304
|
-
"native_units_per_credit_p50" real,
|
|
1305
|
-
"native_units_per_credit_p90" real,
|
|
1306
|
-
"credits_per_native_unit_p50" real,
|
|
1307
|
-
"credits_per_native_unit_p90" real,
|
|
1308
|
-
"actual_credits_p50" real,
|
|
1309
|
-
"actual_credits_p90" real,
|
|
1310
|
-
"confidence" text DEFAULT 'low' NOT NULL,
|
|
1311
|
-
"formula_version" text NOT NULL,
|
|
1312
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1313
|
-
"created_at" text NOT NULL,
|
|
1314
|
-
"updated_at" text NOT NULL
|
|
1315
|
-
);
|
|
1316
|
-
|
|
1317
|
-
CREATE TABLE "cursor_state" (
|
|
1318
|
-
"agent_slug" text,
|
|
1319
|
-
"cursor_key" text,
|
|
1320
|
-
"status" text NOT NULL,
|
|
1321
|
-
"schema_version" integer DEFAULT 1 NOT NULL,
|
|
1322
|
-
"updated_at" text NOT NULL,
|
|
1323
|
-
"payload_json" text NOT NULL,
|
|
1324
|
-
"meta_json" text NOT NULL,
|
|
1325
|
-
CONSTRAINT "cursor_state_agent_slug_cursor_key_pk" PRIMARY KEY("agent_slug","cursor_key")
|
|
1326
|
-
);
|
|
1327
|
-
|
|
1328
|
-
CREATE TABLE "decision_execution_inputs" (
|
|
1329
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1330
|
-
"team_id" text NOT NULL,
|
|
1331
|
-
"project_id" text NOT NULL,
|
|
1332
|
-
"decision_id" text NOT NULL,
|
|
1333
|
-
"project_agent_class_id" text NOT NULL,
|
|
1334
|
-
"mode" text DEFAULT 'acting' NOT NULL,
|
|
1335
|
-
"status" text DEFAULT 'proposed' NOT NULL,
|
|
1336
|
-
"scope_hash" text NOT NULL,
|
|
1337
|
-
"input_json" text DEFAULT '{}' NOT NULL,
|
|
1338
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1339
|
-
"accepted_at" text,
|
|
1340
|
-
"revision_requested_at" text,
|
|
1341
|
-
"stale_at" text,
|
|
1342
|
-
"created_at" text NOT NULL,
|
|
1343
|
-
"updated_at" text NOT NULL
|
|
1344
|
-
);
|
|
1345
|
-
|
|
1346
|
-
CREATE TABLE "decision_planning_statuses" (
|
|
1347
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1348
|
-
"team_id" text NOT NULL,
|
|
1349
|
-
"project_id" text NOT NULL,
|
|
1350
|
-
"decision_id" text NOT NULL,
|
|
1351
|
-
"human_approval_state" text,
|
|
1352
|
-
"execution_readiness" text DEFAULT 'draft' NOT NULL,
|
|
1353
|
-
"planning_inputs_status" text DEFAULT 'requested' NOT NULL,
|
|
1354
|
-
"scope_hash" text NOT NULL,
|
|
1355
|
-
"stale_reason" text,
|
|
1356
|
-
"ready_at" text,
|
|
1357
|
-
"stale_at" text,
|
|
1358
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1359
|
-
"created_at" text NOT NULL,
|
|
1360
|
-
"updated_at" text NOT NULL
|
|
1361
|
-
);
|
|
1362
|
-
|
|
1363
|
-
CREATE TABLE "device_codes" (
|
|
1364
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1365
|
-
"device_code" text NOT NULL,
|
|
1366
|
-
"user_code" text NOT NULL,
|
|
1367
|
-
"requested_scopes_json" text NOT NULL,
|
|
1368
|
-
"expires_at" text NOT NULL,
|
|
1369
|
-
"interval_seconds" integer NOT NULL,
|
|
1370
|
-
"status" text NOT NULL,
|
|
1371
|
-
"user_id" text,
|
|
1372
|
-
"created_at" text NOT NULL,
|
|
1373
|
-
"updated_at" text NOT NULL,
|
|
1374
|
-
CONSTRAINT "device_codes_device_code_unique" UNIQUE("device_code"),
|
|
1375
|
-
CONSTRAINT "device_codes_user_code_unique" UNIQUE("user_code")
|
|
1376
|
-
);
|
|
1377
|
-
|
|
1378
|
-
CREATE TABLE "entitlements" (
|
|
1379
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1380
|
-
"team_id" text,
|
|
1381
|
-
"project_id" text,
|
|
1382
|
-
"tier" text NOT NULL,
|
|
1383
|
-
"status" text NOT NULL,
|
|
1384
|
-
"metadata_json" text,
|
|
1385
|
-
"created_at" text NOT NULL,
|
|
1386
|
-
"updated_at" text NOT NULL
|
|
1387
|
-
);
|
|
1388
|
-
|
|
1389
|
-
CREATE TABLE "execution_provider_native_limits" (
|
|
1390
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1391
|
-
"execution_provider_id" text NOT NULL,
|
|
1392
|
-
"scope" text NOT NULL,
|
|
1393
|
-
"native_unit" text NOT NULL,
|
|
1394
|
-
"limit_amount" real NOT NULL,
|
|
1395
|
-
"reserve_buffer_percent" real DEFAULT 0 NOT NULL,
|
|
1396
|
-
"reset_cadence" text,
|
|
1397
|
-
"reset_at" text,
|
|
1398
|
-
"confidence" text DEFAULT 'estimated' NOT NULL,
|
|
1399
|
-
"source" text DEFAULT 'configured' NOT NULL,
|
|
1400
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1401
|
-
"created_at" text NOT NULL,
|
|
1402
|
-
"updated_at" text NOT NULL
|
|
1403
|
-
);
|
|
1404
|
-
|
|
1405
|
-
CREATE TABLE "execution_provider_observations" (
|
|
1406
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1407
|
-
"execution_provider_id" text NOT NULL,
|
|
1408
|
-
"observed_at" text NOT NULL,
|
|
1409
|
-
"health" text DEFAULT 'unknown' NOT NULL,
|
|
1410
|
-
"active_workers" integer,
|
|
1411
|
-
"queued_tasks" integer,
|
|
1412
|
-
"throttle_state" text,
|
|
1413
|
-
"native_remaining_json" text DEFAULT '{}' NOT NULL,
|
|
1414
|
-
"reset_at" text,
|
|
1415
|
-
"confidence" text DEFAULT 'estimated' NOT NULL,
|
|
1416
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1417
|
-
"created_at" text NOT NULL
|
|
1418
|
-
);
|
|
1419
|
-
|
|
1420
|
-
CREATE TABLE "execution_providers" (
|
|
1421
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1422
|
-
"team_id" text NOT NULL,
|
|
1423
|
-
"capacity_provider_id" text,
|
|
1424
|
-
"name" text NOT NULL,
|
|
1425
|
-
"kind" text NOT NULL,
|
|
1426
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
1427
|
-
"native_unit" text NOT NULL,
|
|
1428
|
-
"quota_visibility" text DEFAULT 'opaque' NOT NULL,
|
|
1429
|
-
"max_concurrent_workers" integer DEFAULT 1 NOT NULL,
|
|
1430
|
-
"reset_cadence" text,
|
|
1431
|
-
"config_json" text DEFAULT '{}' NOT NULL,
|
|
1432
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1433
|
-
"created_at" text NOT NULL,
|
|
1434
|
-
"updated_at" text NOT NULL
|
|
1435
|
-
);
|
|
1436
|
-
|
|
1437
|
-
CREATE TABLE "github_app_installation_records" (
|
|
1438
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1439
|
-
"team_id" text NOT NULL,
|
|
1440
|
-
"installation_id" text NOT NULL,
|
|
1441
|
-
"account_login" text,
|
|
1442
|
-
"account_id" text,
|
|
1443
|
-
"account_type" text,
|
|
1444
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
1445
|
-
"permissions_json" text DEFAULT '{}' NOT NULL,
|
|
1446
|
-
"repository_selection" text,
|
|
1447
|
-
"drift_code" text,
|
|
1448
|
-
"observed_at" text,
|
|
1449
|
-
"revoked_at" text,
|
|
1450
|
-
"suspended_at" text,
|
|
1451
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1452
|
-
"created_at" text NOT NULL,
|
|
1453
|
-
"updated_at" text NOT NULL
|
|
1454
|
-
);
|
|
1455
|
-
|
|
1456
|
-
CREATE TABLE "github_app_token_issuance_records" (
|
|
1457
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1458
|
-
"team_id" text NOT NULL,
|
|
1459
|
-
"project_id" text,
|
|
1460
|
-
"assignment_id" text,
|
|
1461
|
-
"provider_id" text,
|
|
1462
|
-
"workday_id" text,
|
|
1463
|
-
"operation_id" text,
|
|
1464
|
-
"repository" text NOT NULL,
|
|
1465
|
-
"installation_id" text NOT NULL,
|
|
1466
|
-
"status" text DEFAULT 'issued' NOT NULL,
|
|
1467
|
-
"token_prefix" text,
|
|
1468
|
-
"token_hash" text,
|
|
1469
|
-
"permissions_json" text DEFAULT '{}' NOT NULL,
|
|
1470
|
-
"allowed_operations_json" text DEFAULT '[]' NOT NULL,
|
|
1471
|
-
"expires_at" text,
|
|
1472
|
-
"issued_at" text,
|
|
1473
|
-
"revoked_at" text,
|
|
1474
|
-
"fail_closed_code" text,
|
|
1475
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1476
|
-
"created_at" text NOT NULL,
|
|
1477
|
-
"updated_at" text NOT NULL
|
|
1478
|
-
);
|
|
1479
|
-
|
|
1480
|
-
CREATE TABLE "github_repository_grants" (
|
|
1481
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1482
|
-
"team_id" text NOT NULL,
|
|
1483
|
-
"project_id" text,
|
|
1484
|
-
"repository" text NOT NULL,
|
|
1485
|
-
"installation_id" text,
|
|
1486
|
-
"account_login" text,
|
|
1487
|
-
"account_id" text,
|
|
1488
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
1489
|
-
"permissions_json" text DEFAULT '{}' NOT NULL,
|
|
1490
|
-
"environments_json" text DEFAULT '[]' NOT NULL,
|
|
1491
|
-
"drift_code" text,
|
|
1492
|
-
"observed_at" text,
|
|
1493
|
-
"revoked_at" text,
|
|
1494
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1495
|
-
"created_at" text NOT NULL,
|
|
1496
|
-
"updated_at" text NOT NULL
|
|
1497
|
-
);
|
|
1498
|
-
|
|
1499
|
-
CREATE TABLE "graph_runs" (
|
|
1500
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1501
|
-
"work_day_id" text NOT NULL,
|
|
1502
|
-
"corpus_hash" text NOT NULL,
|
|
1503
|
-
"graph_version" text NOT NULL,
|
|
1504
|
-
"query_json" text,
|
|
1505
|
-
"seed_ids_json" text,
|
|
1506
|
-
"selected_node_ids_json" text,
|
|
1507
|
-
"stats_json" text,
|
|
1508
|
-
"snapshot_ref" text,
|
|
1509
|
-
"created_at" text NOT NULL
|
|
1510
|
-
);
|
|
1511
|
-
|
|
1512
|
-
CREATE TABLE "hub_content_sources" (
|
|
1513
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1514
|
-
"hub_id" text NOT NULL,
|
|
1515
|
-
"team_id" text NOT NULL,
|
|
1516
|
-
"content_repository_id" text,
|
|
1517
|
-
"production_source" text NOT NULL,
|
|
1518
|
-
"overlay_policy" text NOT NULL,
|
|
1519
|
-
"r2_bucket_name" text,
|
|
1520
|
-
"r2_manifest_key" text,
|
|
1521
|
-
"r2_public_base_url" text,
|
|
1522
|
-
"latest_publish_id" text,
|
|
1523
|
-
"latest_content_version" text,
|
|
1524
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1525
|
-
"created_at" text NOT NULL,
|
|
1526
|
-
"updated_at" text NOT NULL,
|
|
1527
|
-
CONSTRAINT "hub_content_sources_hub_id_unique" UNIQUE("hub_id")
|
|
1528
|
-
);
|
|
1529
|
-
|
|
1530
|
-
CREATE TABLE "hub_launch_events" (
|
|
1531
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1532
|
-
"launch_id" text NOT NULL,
|
|
1533
|
-
"seq" integer NOT NULL,
|
|
1534
|
-
"phase" text NOT NULL,
|
|
1535
|
-
"status" text NOT NULL,
|
|
1536
|
-
"title" text,
|
|
1537
|
-
"summary" text,
|
|
1538
|
-
"started_at" text,
|
|
1539
|
-
"finished_at" text,
|
|
1540
|
-
"error_json" text,
|
|
1541
|
-
"data_json" text DEFAULT '{}' NOT NULL,
|
|
1542
|
-
"created_at" text NOT NULL
|
|
1543
|
-
);
|
|
1544
|
-
|
|
1545
|
-
CREATE TABLE "hub_launches" (
|
|
1546
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1547
|
-
"hub_id" text NOT NULL,
|
|
1548
|
-
"team_id" text NOT NULL,
|
|
1549
|
-
"job_id" text,
|
|
1550
|
-
"intent_json" text NOT NULL,
|
|
1551
|
-
"plan_json" text DEFAULT '{}' NOT NULL,
|
|
1552
|
-
"state" text NOT NULL,
|
|
1553
|
-
"current_phase" text,
|
|
1554
|
-
"last_successful_phase" text,
|
|
1555
|
-
"result_json" text,
|
|
1556
|
-
"error_json" text,
|
|
1557
|
-
"created_at" text NOT NULL,
|
|
1558
|
-
"updated_at" text NOT NULL,
|
|
1559
|
-
"completed_at" text
|
|
1560
|
-
);
|
|
1561
|
-
|
|
1562
|
-
CREATE TABLE "hub_repositories" (
|
|
1563
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1564
|
-
"hub_id" text NOT NULL,
|
|
1565
|
-
"team_id" text NOT NULL,
|
|
1566
|
-
"role" text NOT NULL,
|
|
1567
|
-
"repository_host_id" text,
|
|
1568
|
-
"provider" text NOT NULL,
|
|
1569
|
-
"owner" text NOT NULL,
|
|
1570
|
-
"name" text NOT NULL,
|
|
1571
|
-
"url" text,
|
|
1572
|
-
"default_branch" text,
|
|
1573
|
-
"current_branch" text,
|
|
1574
|
-
"status" text DEFAULT 'queued' NOT NULL,
|
|
1575
|
-
"access_policy_json" text DEFAULT '{}' NOT NULL,
|
|
1576
|
-
"release_policy_json" text DEFAULT '{}' NOT NULL,
|
|
1577
|
-
"publish_policy_json" text DEFAULT '{}' NOT NULL,
|
|
1578
|
-
"submodule_path" text,
|
|
1579
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1580
|
-
"created_at" text NOT NULL,
|
|
1581
|
-
"updated_at" text NOT NULL
|
|
1582
|
-
);
|
|
1583
|
-
|
|
1584
|
-
CREATE TABLE "hub_workspace_links" (
|
|
1585
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1586
|
-
"hub_id" text NOT NULL,
|
|
1587
|
-
"team_id" text NOT NULL,
|
|
1588
|
-
"parent_repository_host_id" text,
|
|
1589
|
-
"parent_owner" text,
|
|
1590
|
-
"parent_name" text,
|
|
1591
|
-
"parent_url" text,
|
|
1592
|
-
"parent_branch" text,
|
|
1593
|
-
"hub_mount_path" text,
|
|
1594
|
-
"software_submodule_path" text,
|
|
1595
|
-
"content_submodule_path" text,
|
|
1596
|
-
"update_submodule_pointers_enabled" integer DEFAULT 0 NOT NULL,
|
|
1597
|
-
"access_policy_json" text DEFAULT '{}' NOT NULL,
|
|
1598
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1599
|
-
"created_at" text NOT NULL,
|
|
1600
|
-
"updated_at" text NOT NULL
|
|
1601
|
-
);
|
|
1602
|
-
|
|
1603
|
-
CREATE TABLE "knowledge_packs" (
|
|
1604
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1605
|
-
"team_id" text NOT NULL,
|
|
1606
|
-
"slug" text NOT NULL,
|
|
1607
|
-
"name" text NOT NULL,
|
|
1608
|
-
"summary" text,
|
|
1609
|
-
"source_kind" text NOT NULL,
|
|
1610
|
-
"source_ref" text,
|
|
1611
|
-
"install_strategy" text NOT NULL,
|
|
1612
|
-
"visibility" text NOT NULL,
|
|
1613
|
-
"metadata_json" text,
|
|
1614
|
-
"created_at" text NOT NULL,
|
|
1615
|
-
"updated_at" text NOT NULL,
|
|
1616
|
-
CONSTRAINT "knowledge_packs_slug_unique" UNIQUE("slug")
|
|
1617
|
-
);
|
|
1618
|
-
|
|
1619
|
-
CREATE TABLE "lease_state" (
|
|
1620
|
-
"model" text,
|
|
1621
|
-
"item_key" text,
|
|
1622
|
-
"status" text NOT NULL,
|
|
1623
|
-
"schema_version" integer DEFAULT 1 NOT NULL,
|
|
1624
|
-
"claimed_by" text,
|
|
1625
|
-
"claimed_at" text,
|
|
1626
|
-
"lease_expires_at" text,
|
|
1627
|
-
"created_at" text NOT NULL,
|
|
1628
|
-
"updated_at" text NOT NULL,
|
|
1629
|
-
"payload_json" text NOT NULL,
|
|
1630
|
-
"meta_json" text NOT NULL,
|
|
1631
|
-
CONSTRAINT "lease_state_model_item_key_pk" PRIMARY KEY("model","item_key")
|
|
1632
|
-
);
|
|
1633
|
-
|
|
1634
|
-
CREATE TABLE "market_auth_credentials" (
|
|
1635
|
-
"user_id" text PRIMARY KEY NOT NULL,
|
|
1636
|
-
"email" text NOT NULL,
|
|
1637
|
-
"username" text,
|
|
1638
|
-
"password_hash" text NOT NULL,
|
|
1639
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
1640
|
-
"created_at" text NOT NULL,
|
|
1641
|
-
"updated_at" text NOT NULL,
|
|
1642
|
-
CONSTRAINT "market_auth_credentials_email_unique" UNIQUE("email"),
|
|
1643
|
-
CONSTRAINT "market_auth_credentials_username_unique" UNIQUE("username")
|
|
1644
|
-
);
|
|
1645
|
-
|
|
1646
|
-
CREATE TABLE "market_auth_password_resets" (
|
|
1647
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1648
|
-
"user_id" text NOT NULL,
|
|
1649
|
-
"token_hash" text NOT NULL,
|
|
1650
|
-
"expires_at" text NOT NULL,
|
|
1651
|
-
"used_at" text,
|
|
1652
|
-
"created_at" text NOT NULL,
|
|
1653
|
-
CONSTRAINT "market_auth_password_resets_token_hash_unique" UNIQUE("token_hash")
|
|
1654
|
-
);
|
|
1655
|
-
|
|
1656
|
-
CREATE TABLE "market_operation_runners" (
|
|
1657
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1658
|
-
"runner_key" text NOT NULL,
|
|
1659
|
-
"name" text NOT NULL,
|
|
1660
|
-
"environment" text NOT NULL,
|
|
1661
|
-
"status" text DEFAULT 'online' NOT NULL,
|
|
1662
|
-
"version" text,
|
|
1663
|
-
"capabilities_json" text DEFAULT '[]' NOT NULL,
|
|
1664
|
-
"active_job_count" integer DEFAULT 0 NOT NULL,
|
|
1665
|
-
"max_concurrent_jobs" integer DEFAULT 1 NOT NULL,
|
|
1666
|
-
"heartbeat_at" text,
|
|
1667
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1668
|
-
"created_at" text NOT NULL,
|
|
1669
|
-
"updated_at" text NOT NULL,
|
|
1670
|
-
CONSTRAINT "market_operation_runners_runner_key_unique" UNIQUE("runner_key")
|
|
1671
|
-
);
|
|
1672
|
-
|
|
1673
|
-
CREATE TABLE "message_queue" (
|
|
1674
|
-
"id" serial PRIMARY KEY NOT NULL,
|
|
1675
|
-
"message_type" text NOT NULL,
|
|
1676
|
-
"status" text NOT NULL,
|
|
1677
|
-
"schema_version" integer DEFAULT 1 NOT NULL,
|
|
1678
|
-
"related_model" text,
|
|
1679
|
-
"related_id" text,
|
|
1680
|
-
"priority" integer DEFAULT 0 NOT NULL,
|
|
1681
|
-
"available_at" text NOT NULL,
|
|
1682
|
-
"claimed_by" text,
|
|
1683
|
-
"claimed_at" text,
|
|
1684
|
-
"lease_expires_at" text,
|
|
1685
|
-
"attempts" integer DEFAULT 0 NOT NULL,
|
|
1686
|
-
"max_attempts" integer DEFAULT 3 NOT NULL,
|
|
1687
|
-
"created_at" text NOT NULL,
|
|
1688
|
-
"updated_at" text NOT NULL,
|
|
1689
|
-
"payload_json" text NOT NULL,
|
|
1690
|
-
"meta_json" text NOT NULL
|
|
1691
|
-
);
|
|
1692
|
-
|
|
1693
|
-
CREATE TABLE "native_usage_observations" (
|
|
1694
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1695
|
-
"task_usage_actual_id" text,
|
|
1696
|
-
"task_id" text,
|
|
1697
|
-
"work_day_id" text,
|
|
1698
|
-
"project_id" text NOT NULL,
|
|
1699
|
-
"task_signature" text NOT NULL,
|
|
1700
|
-
"execution_profile_id" text DEFAULT 'standard-code-model' NOT NULL,
|
|
1701
|
-
"capacity_provider_id" text,
|
|
1702
|
-
"execution_provider_id" text,
|
|
1703
|
-
"native_unit" text,
|
|
1704
|
-
"native_usage_json" text DEFAULT '{}' NOT NULL,
|
|
1705
|
-
"observed_at" text NOT NULL,
|
|
1706
|
-
"source" text DEFAULT 'provider_report' NOT NULL,
|
|
1707
|
-
"formula_version" text DEFAULT 'treeseed.actual-credits.v1' NOT NULL,
|
|
1708
|
-
"actual_credits" real NOT NULL,
|
|
1709
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1710
|
-
"created_at" text NOT NULL
|
|
1711
|
-
);
|
|
1712
|
-
|
|
1713
|
-
CREATE TABLE "permissions" (
|
|
1714
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1715
|
-
"key" text NOT NULL,
|
|
1716
|
-
"resource" text NOT NULL,
|
|
1717
|
-
"action" text NOT NULL,
|
|
1718
|
-
"scope" text NOT NULL,
|
|
1719
|
-
"description" text,
|
|
1720
|
-
"created_at" text NOT NULL,
|
|
1721
|
-
CONSTRAINT "permissions_key_unique" UNIQUE("key")
|
|
1722
|
-
);
|
|
1723
|
-
|
|
1724
|
-
CREATE TABLE "planning_input_requests" (
|
|
1725
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1726
|
-
"team_id" text NOT NULL,
|
|
1727
|
-
"project_id" text NOT NULL,
|
|
1728
|
-
"decision_id" text NOT NULL,
|
|
1729
|
-
"project_agent_class_id" text,
|
|
1730
|
-
"mode" text DEFAULT 'planning' NOT NULL,
|
|
1731
|
-
"status" text DEFAULT 'requested' NOT NULL,
|
|
1732
|
-
"scope_hash" text NOT NULL,
|
|
1733
|
-
"prompt" text,
|
|
1734
|
-
"response_json" text DEFAULT '{}' NOT NULL,
|
|
1735
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1736
|
-
"requested_at" text NOT NULL,
|
|
1737
|
-
"completed_at" text,
|
|
1738
|
-
"stale_at" text
|
|
1739
|
-
);
|
|
1740
|
-
|
|
1741
|
-
CREATE TABLE "platform_operation_events" (
|
|
1742
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1743
|
-
"operation_id" text NOT NULL,
|
|
1744
|
-
"seq" integer NOT NULL,
|
|
1745
|
-
"kind" text NOT NULL,
|
|
1746
|
-
"data_json" text DEFAULT '{}' NOT NULL,
|
|
1747
|
-
"created_at" text NOT NULL
|
|
1748
|
-
);
|
|
1749
|
-
|
|
1750
|
-
CREATE TABLE "platform_operations" (
|
|
1751
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1752
|
-
"namespace" text NOT NULL,
|
|
1753
|
-
"operation" text NOT NULL,
|
|
1754
|
-
"status" text NOT NULL,
|
|
1755
|
-
"target" text NOT NULL,
|
|
1756
|
-
"idempotency_key" text,
|
|
1757
|
-
"input_json" text DEFAULT '{}' NOT NULL,
|
|
1758
|
-
"output_json" text,
|
|
1759
|
-
"error_json" text,
|
|
1760
|
-
"requested_by_type" text NOT NULL,
|
|
1761
|
-
"requested_by_id" text,
|
|
1762
|
-
"assigned_runner_id" text,
|
|
1763
|
-
"lease_expires_at" text,
|
|
1764
|
-
"created_at" text NOT NULL,
|
|
1765
|
-
"updated_at" text NOT NULL,
|
|
1766
|
-
"started_at" text,
|
|
1767
|
-
"finished_at" text,
|
|
1768
|
-
"cancelled_at" text
|
|
1769
|
-
);
|
|
1770
|
-
|
|
1771
|
-
CREATE TABLE "platform_repository_claims" (
|
|
1772
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1773
|
-
"repository_key" text NOT NULL,
|
|
1774
|
-
"runner_id" text NOT NULL,
|
|
1775
|
-
"workspace_path" text NOT NULL,
|
|
1776
|
-
"branch" text,
|
|
1777
|
-
"commit_sha" text,
|
|
1778
|
-
"claim_state" text DEFAULT 'active' NOT NULL,
|
|
1779
|
-
"lease_expires_at" text,
|
|
1780
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1781
|
-
"created_at" text NOT NULL,
|
|
1782
|
-
"updated_at" text NOT NULL
|
|
1783
|
-
);
|
|
1784
|
-
|
|
1785
|
-
CREATE TABLE "priority_overrides" (
|
|
1786
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1787
|
-
"project_id" text NOT NULL,
|
|
1788
|
-
"model" text NOT NULL,
|
|
1789
|
-
"subject_id" text NOT NULL,
|
|
1790
|
-
"priority" real DEFAULT 0 NOT NULL,
|
|
1791
|
-
"estimated_credits" real,
|
|
1792
|
-
"metadata_json" text NOT NULL,
|
|
1793
|
-
"created_at" text NOT NULL,
|
|
1794
|
-
"updated_at" text NOT NULL
|
|
1795
|
-
);
|
|
1796
|
-
|
|
1797
|
-
CREATE TABLE "priority_snapshots" (
|
|
1798
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1799
|
-
"project_id" text NOT NULL,
|
|
1800
|
-
"work_day_id" text,
|
|
1801
|
-
"snapshot_json" text NOT NULL,
|
|
1802
|
-
"metadata_json" text NOT NULL,
|
|
1803
|
-
"generated_at" text NOT NULL,
|
|
1804
|
-
"created_at" text NOT NULL,
|
|
1805
|
-
"updated_at" text NOT NULL
|
|
1806
|
-
);
|
|
1807
|
-
|
|
1808
|
-
CREATE TABLE "project_agent_classes" (
|
|
1809
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1810
|
-
"team_id" text NOT NULL,
|
|
1811
|
-
"project_id" text NOT NULL,
|
|
1812
|
-
"slug" text NOT NULL,
|
|
1813
|
-
"name" text NOT NULL,
|
|
1814
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
1815
|
-
"allowed_modes_json" text DEFAULT '[]' NOT NULL,
|
|
1816
|
-
"required_capabilities_json" text DEFAULT '[]' NOT NULL,
|
|
1817
|
-
"kernel_profile_json" text DEFAULT '{}' NOT NULL,
|
|
1818
|
-
"kernel_policy_json" text DEFAULT '{}' NOT NULL,
|
|
1819
|
-
"handler_refs_json" text DEFAULT '{}' NOT NULL,
|
|
1820
|
-
"output_contracts_json" text DEFAULT '{}' NOT NULL,
|
|
1821
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1822
|
-
"created_at" text NOT NULL,
|
|
1823
|
-
"updated_at" text NOT NULL
|
|
1824
|
-
);
|
|
1825
|
-
|
|
1826
|
-
CREATE TABLE "project_capability_grants" (
|
|
1827
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1828
|
-
"project_id" text NOT NULL,
|
|
1829
|
-
"label" text,
|
|
1830
|
-
"namespace" text NOT NULL,
|
|
1831
|
-
"operation" text NOT NULL,
|
|
1832
|
-
"execution_class" text NOT NULL,
|
|
1833
|
-
"allowed_targets_json" text NOT NULL,
|
|
1834
|
-
"default_dispatch_mode" text NOT NULL,
|
|
1835
|
-
"approval_policy_json" text DEFAULT '{}' NOT NULL,
|
|
1836
|
-
"resource_scope_json" text DEFAULT '{}' NOT NULL,
|
|
1837
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
1838
|
-
"enabled" integer DEFAULT 1 NOT NULL,
|
|
1839
|
-
"created_at" text NOT NULL,
|
|
1840
|
-
"updated_at" text NOT NULL
|
|
1841
|
-
);
|
|
1842
|
-
|
|
1843
|
-
CREATE TABLE "project_connections" (
|
|
1844
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1845
|
-
"project_id" text NOT NULL,
|
|
1846
|
-
"mode" text NOT NULL,
|
|
1847
|
-
"project_api_base_url" text,
|
|
1848
|
-
"execution_owner" text NOT NULL,
|
|
1849
|
-
"runner_registration_state" text DEFAULT 'pending' NOT NULL,
|
|
1850
|
-
"runner_key_prefix" text,
|
|
1851
|
-
"runner_key_hash" text,
|
|
1852
|
-
"runner_registered_at" text,
|
|
1853
|
-
"runner_last_seen_at" text,
|
|
1854
|
-
"metadata_json" text,
|
|
1855
|
-
"created_at" text NOT NULL,
|
|
1856
|
-
"updated_at" text NOT NULL,
|
|
1857
|
-
CONSTRAINT "project_connections_project_id_unique" UNIQUE("project_id")
|
|
1858
|
-
);
|
|
1859
|
-
|
|
1860
|
-
CREATE TABLE "project_deployment_events" (
|
|
1861
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1862
|
-
"deployment_id" text NOT NULL,
|
|
1863
|
-
"project_id" text NOT NULL,
|
|
1864
|
-
"team_id" text NOT NULL,
|
|
1865
|
-
"operation_id" text,
|
|
1866
|
-
"kind" text NOT NULL,
|
|
1867
|
-
"message" text NOT NULL,
|
|
1868
|
-
"status" text,
|
|
1869
|
-
"severity" text DEFAULT 'info' NOT NULL,
|
|
1870
|
-
"sequence" integer NOT NULL,
|
|
1871
|
-
"payload_json" text DEFAULT '{}' NOT NULL,
|
|
1872
|
-
"created_at" text NOT NULL
|
|
1873
|
-
);
|
|
1874
|
-
|
|
1875
|
-
CREATE TABLE "project_deployments" (
|
|
1876
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1877
|
-
"team_id" text NOT NULL,
|
|
1878
|
-
"project_id" text NOT NULL,
|
|
1879
|
-
"environment" text NOT NULL,
|
|
1880
|
-
"deployment_kind" text NOT NULL,
|
|
1881
|
-
"action" text DEFAULT 'deploy_web' NOT NULL,
|
|
1882
|
-
"status" text NOT NULL,
|
|
1883
|
-
"platform_operation_id" text,
|
|
1884
|
-
"retry_of_deployment_id" text,
|
|
1885
|
-
"resumed_from_deployment_id" text,
|
|
1886
|
-
"idempotency_key" text,
|
|
1887
|
-
"requested_by_user_id" text,
|
|
1888
|
-
"source_ref" text,
|
|
1889
|
-
"release_tag" text,
|
|
1890
|
-
"commit_sha" text,
|
|
1891
|
-
"triggered_by_type" text,
|
|
1892
|
-
"triggered_by_id" text,
|
|
1893
|
-
"repository_json" text DEFAULT '{}' NOT NULL,
|
|
1894
|
-
"external_workflow_json" text DEFAULT '{}' NOT NULL,
|
|
1895
|
-
"target_json" text DEFAULT '{}' NOT NULL,
|
|
1896
|
-
"monitor_json" text DEFAULT '{}' NOT NULL,
|
|
1897
|
-
"summary" text,
|
|
1898
|
-
"error_json" text DEFAULT '{}' NOT NULL,
|
|
1899
|
-
"metadata_json" text,
|
|
1900
|
-
"started_at" text,
|
|
1901
|
-
"finished_at" text,
|
|
1902
|
-
"created_at" text NOT NULL,
|
|
1903
|
-
"updated_at" text NOT NULL,
|
|
1904
|
-
"completed_at" text
|
|
1905
|
-
);
|
|
1906
|
-
|
|
1907
|
-
CREATE TABLE "project_environments" (
|
|
1908
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1909
|
-
"project_id" text NOT NULL,
|
|
1910
|
-
"environment" text NOT NULL,
|
|
1911
|
-
"deployment_profile" text NOT NULL,
|
|
1912
|
-
"base_url" text,
|
|
1913
|
-
"cloudflare_account_id" text,
|
|
1914
|
-
"pages_project_name" text,
|
|
1915
|
-
"worker_name" text,
|
|
1916
|
-
"r2_bucket_name" text,
|
|
1917
|
-
"d1_database_name" text,
|
|
1918
|
-
"queue_name" text,
|
|
1919
|
-
"railway_project_name" text,
|
|
1920
|
-
"metadata_json" text,
|
|
1921
|
-
"created_at" text NOT NULL,
|
|
1922
|
-
"updated_at" text NOT NULL
|
|
1923
|
-
);
|
|
1924
|
-
|
|
1925
|
-
CREATE TABLE "project_hosting" (
|
|
1926
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1927
|
-
"project_id" text NOT NULL,
|
|
1928
|
-
"hosting_kind" text NOT NULL,
|
|
1929
|
-
"registration" text DEFAULT 'none' NOT NULL,
|
|
1930
|
-
"market_base_url" text,
|
|
1931
|
-
"source_repo_owner" text,
|
|
1932
|
-
"source_repo_name" text,
|
|
1933
|
-
"source_repo_url" text,
|
|
1934
|
-
"source_repo_workflow_path" text,
|
|
1935
|
-
"metadata_json" text,
|
|
1936
|
-
"created_at" text NOT NULL,
|
|
1937
|
-
"updated_at" text NOT NULL,
|
|
1938
|
-
CONSTRAINT "project_hosting_project_id_unique" UNIQUE("project_id")
|
|
1939
|
-
);
|
|
1940
|
-
|
|
1941
|
-
CREATE TABLE "project_infrastructure_resources" (
|
|
1942
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1943
|
-
"project_id" text NOT NULL,
|
|
1944
|
-
"environment" text NOT NULL,
|
|
1945
|
-
"provider" text NOT NULL,
|
|
1946
|
-
"resource_kind" text NOT NULL,
|
|
1947
|
-
"logical_name" text NOT NULL,
|
|
1948
|
-
"locator" text,
|
|
1949
|
-
"metadata_json" text,
|
|
1950
|
-
"created_at" text NOT NULL,
|
|
1951
|
-
"updated_at" text NOT NULL
|
|
1952
|
-
);
|
|
1953
|
-
|
|
1954
|
-
CREATE TABLE "project_summary_snapshots" (
|
|
1955
|
-
"project_id" text PRIMARY KEY NOT NULL,
|
|
1956
|
-
"team_id" text NOT NULL,
|
|
1957
|
-
"summary_json" text NOT NULL,
|
|
1958
|
-
"generated_at" text NOT NULL,
|
|
1959
|
-
"created_at" text NOT NULL,
|
|
1960
|
-
"updated_at" text NOT NULL
|
|
1961
|
-
);
|
|
1962
|
-
|
|
1963
|
-
CREATE TABLE "project_update_plans" (
|
|
1964
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1965
|
-
"hub_id" text NOT NULL,
|
|
1966
|
-
"team_id" text NOT NULL,
|
|
1967
|
-
"source_kind" text NOT NULL,
|
|
1968
|
-
"source_ref" text,
|
|
1969
|
-
"source_version" text,
|
|
1970
|
-
"plan_json" text DEFAULT '{}' NOT NULL,
|
|
1971
|
-
"state" text DEFAULT 'planned' NOT NULL,
|
|
1972
|
-
"requires_decision" integer DEFAULT 0 NOT NULL,
|
|
1973
|
-
"decision_id" text,
|
|
1974
|
-
"created_by" text,
|
|
1975
|
-
"created_at" text NOT NULL,
|
|
1976
|
-
"updated_at" text NOT NULL
|
|
1977
|
-
);
|
|
1978
|
-
|
|
1979
|
-
CREATE TABLE "project_workday_summaries" (
|
|
1980
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1981
|
-
"project_id" text NOT NULL,
|
|
1982
|
-
"environment" text NOT NULL,
|
|
1983
|
-
"work_day_id" text NOT NULL,
|
|
1984
|
-
"kind" text NOT NULL,
|
|
1985
|
-
"state" text,
|
|
1986
|
-
"started_at" text,
|
|
1987
|
-
"ended_at" text,
|
|
1988
|
-
"summary_json" text NOT NULL,
|
|
1989
|
-
"metadata_json" text NOT NULL,
|
|
1990
|
-
"created_at" text NOT NULL,
|
|
1991
|
-
"updated_at" text NOT NULL
|
|
1992
|
-
);
|
|
1993
|
-
|
|
1994
|
-
CREATE TABLE "projects" (
|
|
1995
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
1996
|
-
"team_id" text NOT NULL,
|
|
1997
|
-
"slug" text NOT NULL,
|
|
1998
|
-
"name" text NOT NULL,
|
|
1999
|
-
"description" text,
|
|
2000
|
-
"metadata_json" text,
|
|
2001
|
-
"created_at" text NOT NULL,
|
|
2002
|
-
"updated_at" text NOT NULL
|
|
2003
|
-
);
|
|
2004
|
-
|
|
2005
|
-
CREATE TABLE "provider_assignments" (
|
|
2006
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2007
|
-
"team_id" text NOT NULL,
|
|
2008
|
-
"project_id" text NOT NULL,
|
|
2009
|
-
"capacity_provider_id" text NOT NULL,
|
|
2010
|
-
"provider_session_id" text,
|
|
2011
|
-
"execution_provider_id" text,
|
|
2012
|
-
"allocation_set_id" text,
|
|
2013
|
-
"project_agent_class_id" text NOT NULL,
|
|
2014
|
-
"reservation_id" text,
|
|
2015
|
-
"work_day_id" text,
|
|
2016
|
-
"task_id" text,
|
|
2017
|
-
"mode" text NOT NULL,
|
|
2018
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
2019
|
-
"lease_state" text DEFAULT 'unleased' NOT NULL,
|
|
2020
|
-
"lease_expires_at" text,
|
|
2021
|
-
"lease_token" text,
|
|
2022
|
-
"lease_renewed_at" text,
|
|
2023
|
-
"runner_id" text,
|
|
2024
|
-
"agent_id" text,
|
|
2025
|
-
"handler_id" text,
|
|
2026
|
-
"capacity_envelope_json" text DEFAULT '{}' NOT NULL,
|
|
2027
|
-
"decision_input_json" text DEFAULT '{}' NOT NULL,
|
|
2028
|
-
"workspace_context_json" text DEFAULT '{}' NOT NULL,
|
|
2029
|
-
"allowed_outputs_json" text DEFAULT '{}' NOT NULL,
|
|
2030
|
-
"explanation_json" text DEFAULT '{}' NOT NULL,
|
|
2031
|
-
"attempt_count" integer DEFAULT 0 NOT NULL,
|
|
2032
|
-
"assigned_at" text,
|
|
2033
|
-
"claimed_at" text,
|
|
2034
|
-
"completed_at" text,
|
|
2035
|
-
"returned_at" text,
|
|
2036
|
-
"failed_at" text,
|
|
2037
|
-
"lifecycle_reason" text,
|
|
2038
|
-
"lifecycle_code" text,
|
|
2039
|
-
"lifecycle_output_json" text DEFAULT '{}' NOT NULL,
|
|
2040
|
-
"synthesized_from" text,
|
|
2041
|
-
"synthesis_key" text,
|
|
2042
|
-
"decision_id" text,
|
|
2043
|
-
"proposal_id" text,
|
|
2044
|
-
"fallback_output_id" text,
|
|
2045
|
-
"treedx_proxy_handle_json" text DEFAULT '{}' NOT NULL,
|
|
2046
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2047
|
-
"created_at" text NOT NULL,
|
|
2048
|
-
"updated_at" text NOT NULL
|
|
2049
|
-
);
|
|
2050
|
-
|
|
2051
|
-
CREATE TABLE "provider_availability_sessions" (
|
|
2052
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2053
|
-
"team_id" text NOT NULL,
|
|
2054
|
-
"capacity_provider_id" text NOT NULL,
|
|
2055
|
-
"registration_id" text,
|
|
2056
|
-
"environment" text,
|
|
2057
|
-
"status" text DEFAULT 'open' NOT NULL,
|
|
2058
|
-
"checked_in_at" text NOT NULL,
|
|
2059
|
-
"available_from" text,
|
|
2060
|
-
"available_until" text,
|
|
2061
|
-
"execution_providers_json" text DEFAULT '[]' NOT NULL,
|
|
2062
|
-
"capabilities_json" text DEFAULT '[]' NOT NULL,
|
|
2063
|
-
"grants_json" text DEFAULT '[]' NOT NULL,
|
|
2064
|
-
"native_limits_json" text DEFAULT '{}' NOT NULL,
|
|
2065
|
-
"runner_pressure_json" text DEFAULT '{}' NOT NULL,
|
|
2066
|
-
"constraints_json" text DEFAULT '{}' NOT NULL,
|
|
2067
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2068
|
-
"created_at" text NOT NULL,
|
|
2069
|
-
"updated_at" text NOT NULL,
|
|
2070
|
-
"closed_at" text
|
|
2071
|
-
);
|
|
2072
|
-
|
|
2073
|
-
CREATE TABLE "provider_credential_sessions" (
|
|
2074
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2075
|
-
"team_id" text NOT NULL,
|
|
2076
|
-
"project_id" text,
|
|
2077
|
-
"job_id" text,
|
|
2078
|
-
"host_kind" text NOT NULL,
|
|
2079
|
-
"host_id" text NOT NULL,
|
|
2080
|
-
"purpose" text NOT NULL,
|
|
2081
|
-
"encrypted_payload_json" text NOT NULL,
|
|
2082
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
2083
|
-
"expires_at" text NOT NULL,
|
|
2084
|
-
"consumed_at" text,
|
|
2085
|
-
"created_by_id" text,
|
|
2086
|
-
"created_at" text NOT NULL,
|
|
2087
|
-
"updated_at" text NOT NULL,
|
|
2088
|
-
"metadata_json" text DEFAULT '{}' NOT NULL
|
|
2089
|
-
);
|
|
2090
|
-
|
|
2091
|
-
CREATE TABLE "remote_job_events" (
|
|
2092
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2093
|
-
"job_id" text NOT NULL,
|
|
2094
|
-
"seq" integer NOT NULL,
|
|
2095
|
-
"kind" text NOT NULL,
|
|
2096
|
-
"data_json" text,
|
|
2097
|
-
"created_at" text NOT NULL
|
|
2098
|
-
);
|
|
2099
|
-
|
|
2100
|
-
CREATE TABLE "remote_jobs" (
|
|
2101
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2102
|
-
"project_id" text NOT NULL,
|
|
2103
|
-
"namespace" text NOT NULL,
|
|
2104
|
-
"operation" text NOT NULL,
|
|
2105
|
-
"status" text NOT NULL,
|
|
2106
|
-
"preferred_mode" text NOT NULL,
|
|
2107
|
-
"selected_target" text NOT NULL,
|
|
2108
|
-
"capability_json" text NOT NULL,
|
|
2109
|
-
"input_json" text NOT NULL,
|
|
2110
|
-
"output_json" text,
|
|
2111
|
-
"error_json" text,
|
|
2112
|
-
"requested_by_type" text NOT NULL,
|
|
2113
|
-
"requested_by_id" text,
|
|
2114
|
-
"assigned_runner_id" text,
|
|
2115
|
-
"idempotency_key" text,
|
|
2116
|
-
"created_at" text NOT NULL,
|
|
2117
|
-
"updated_at" text NOT NULL,
|
|
2118
|
-
"started_at" text,
|
|
2119
|
-
"finished_at" text,
|
|
2120
|
-
"cancelled_at" text
|
|
2121
|
-
);
|
|
2122
|
-
|
|
2123
|
-
CREATE TABLE "reports" (
|
|
2124
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2125
|
-
"work_day_id" text NOT NULL,
|
|
2126
|
-
"kind" text NOT NULL,
|
|
2127
|
-
"body_json" text NOT NULL,
|
|
2128
|
-
"rendered_ref" text,
|
|
2129
|
-
"sent_at" text,
|
|
2130
|
-
"created_at" text NOT NULL
|
|
2131
|
-
);
|
|
2132
|
-
|
|
2133
|
-
CREATE TABLE "repository_claims" (
|
|
2134
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2135
|
-
"project_id" text NOT NULL,
|
|
2136
|
-
"repository_id" text NOT NULL,
|
|
2137
|
-
"runner_id" text NOT NULL,
|
|
2138
|
-
"runner_service_name" text NOT NULL,
|
|
2139
|
-
"volume_identity" text NOT NULL,
|
|
2140
|
-
"last_seen_commit" text,
|
|
2141
|
-
"last_task_at" text,
|
|
2142
|
-
"claim_state" text DEFAULT 'active' NOT NULL,
|
|
2143
|
-
"metadata_json" text NOT NULL,
|
|
2144
|
-
"created_at" text NOT NULL,
|
|
2145
|
-
"updated_at" text NOT NULL
|
|
2146
|
-
);
|
|
2147
|
-
|
|
2148
|
-
CREATE TABLE "repository_hosts" (
|
|
2149
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2150
|
-
"team_id" text,
|
|
2151
|
-
"provider" text NOT NULL,
|
|
2152
|
-
"ownership" text NOT NULL,
|
|
2153
|
-
"name" text NOT NULL,
|
|
2154
|
-
"account_label" text,
|
|
2155
|
-
"organization_or_owner" text NOT NULL,
|
|
2156
|
-
"default_visibility" text DEFAULT 'private' NOT NULL,
|
|
2157
|
-
"software_repository_name_template" text DEFAULT '{hub}-site' NOT NULL,
|
|
2158
|
-
"content_repository_name_template" text DEFAULT '{hub}-content' NOT NULL,
|
|
2159
|
-
"branch_policy_json" text DEFAULT '{}' NOT NULL,
|
|
2160
|
-
"workflow_policy_json" text DEFAULT '{}' NOT NULL,
|
|
2161
|
-
"encrypted_payload_json" text,
|
|
2162
|
-
"allowed_project_kinds_json" text DEFAULT '["knowledge_hub"]' NOT NULL,
|
|
2163
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2164
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
2165
|
-
"created_by_id" text,
|
|
2166
|
-
"updated_by_id" text,
|
|
2167
|
-
"created_at" text NOT NULL,
|
|
2168
|
-
"updated_at" text NOT NULL
|
|
2169
|
-
);
|
|
2170
|
-
|
|
2171
|
-
CREATE TABLE "role_permissions" (
|
|
2172
|
-
"role_id" text,
|
|
2173
|
-
"permission_id" text,
|
|
2174
|
-
"created_at" text NOT NULL,
|
|
2175
|
-
CONSTRAINT "role_permissions_role_id_permission_id_pk" PRIMARY KEY("role_id","permission_id")
|
|
2176
|
-
);
|
|
2177
|
-
|
|
2178
|
-
CREATE TABLE "roles" (
|
|
2179
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2180
|
-
"key" text NOT NULL,
|
|
2181
|
-
"description" text,
|
|
2182
|
-
"created_at" text NOT NULL,
|
|
2183
|
-
CONSTRAINT "roles_key_unique" UNIQUE("key")
|
|
2184
|
-
);
|
|
2185
|
-
|
|
2186
|
-
CREATE TABLE "runner_scale_decisions" (
|
|
2187
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2188
|
-
"project_id" text NOT NULL,
|
|
2189
|
-
"environment" text NOT NULL,
|
|
2190
|
-
"work_day_id" text,
|
|
2191
|
-
"runner_id" text,
|
|
2192
|
-
"runner_service_name" text,
|
|
2193
|
-
"action" text NOT NULL,
|
|
2194
|
-
"reason" text NOT NULL,
|
|
2195
|
-
"metadata_json" text NOT NULL,
|
|
2196
|
-
"created_at" text NOT NULL
|
|
2197
|
-
);
|
|
2198
|
-
|
|
2199
|
-
CREATE TABLE "runtime_envelopes" (
|
|
2200
|
-
"id" serial PRIMARY KEY NOT NULL,
|
|
2201
|
-
"record_type" text NOT NULL,
|
|
2202
|
-
"payload_json" text NOT NULL,
|
|
2203
|
-
"created_at" text NOT NULL
|
|
2204
|
-
);
|
|
2205
|
-
|
|
2206
|
-
CREATE TABLE "runtime_records" (
|
|
2207
|
-
"id" serial PRIMARY KEY NOT NULL,
|
|
2208
|
-
"record_type" text NOT NULL,
|
|
2209
|
-
"record_key" text NOT NULL,
|
|
2210
|
-
"lookup_key" text,
|
|
2211
|
-
"secondary_key" text,
|
|
2212
|
-
"status" text NOT NULL,
|
|
2213
|
-
"schema_version" integer DEFAULT 1 NOT NULL,
|
|
2214
|
-
"created_at" text NOT NULL,
|
|
2215
|
-
"updated_at" text NOT NULL,
|
|
2216
|
-
"payload_json" text NOT NULL,
|
|
2217
|
-
"meta_json" text NOT NULL
|
|
2218
|
-
);
|
|
2219
|
-
|
|
2220
|
-
CREATE TABLE "runtime_task_events" (
|
|
2221
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2222
|
-
"task_id" text NOT NULL,
|
|
2223
|
-
"kind" text NOT NULL,
|
|
2224
|
-
"data_json" text NOT NULL,
|
|
2225
|
-
"actor" text,
|
|
2226
|
-
"created_at" text NOT NULL
|
|
2227
|
-
);
|
|
2228
|
-
|
|
2229
|
-
CREATE TABLE "runtime_task_outputs" (
|
|
2230
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2231
|
-
"task_id" text NOT NULL,
|
|
2232
|
-
"output_json" text NOT NULL,
|
|
2233
|
-
"output_ref" text,
|
|
2234
|
-
"summary_json" text,
|
|
2235
|
-
"actor" text,
|
|
2236
|
-
"created_at" text NOT NULL,
|
|
2237
|
-
"updated_at" text NOT NULL
|
|
2238
|
-
);
|
|
2239
|
-
|
|
2240
|
-
CREATE TABLE "runtime_tasks" (
|
|
2241
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2242
|
-
"project_id" text NOT NULL,
|
|
2243
|
-
"work_day_id" text NOT NULL,
|
|
2244
|
-
"agent_id" text NOT NULL,
|
|
2245
|
-
"type" text NOT NULL,
|
|
2246
|
-
"idempotency_key" text NOT NULL,
|
|
2247
|
-
"payload_json" text NOT NULL,
|
|
2248
|
-
"state" text NOT NULL,
|
|
2249
|
-
"claimed_by" text,
|
|
2250
|
-
"claimed_at" text,
|
|
2251
|
-
"lease_expires_at" text,
|
|
2252
|
-
"attempts" integer DEFAULT 0 NOT NULL,
|
|
2253
|
-
"created_at" text NOT NULL,
|
|
2254
|
-
"updated_at" text NOT NULL,
|
|
2255
|
-
CONSTRAINT "runtime_tasks_idempotency_key_unique" UNIQUE("idempotency_key")
|
|
2256
|
-
);
|
|
2257
|
-
|
|
2258
|
-
CREATE TABLE "scale_decisions" (
|
|
2259
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2260
|
-
"project_id" text NOT NULL,
|
|
2261
|
-
"environment" text NOT NULL,
|
|
2262
|
-
"pool_name" text NOT NULL,
|
|
2263
|
-
"work_day_id" text,
|
|
2264
|
-
"desired_workers" integer NOT NULL,
|
|
2265
|
-
"observed_queue_depth" integer DEFAULT 0 NOT NULL,
|
|
2266
|
-
"observed_active_leases" integer DEFAULT 0 NOT NULL,
|
|
2267
|
-
"reason" text NOT NULL,
|
|
2268
|
-
"metadata_json" text NOT NULL,
|
|
2269
|
-
"created_at" text NOT NULL
|
|
2270
|
-
);
|
|
2271
|
-
|
|
2272
|
-
CREATE TABLE "secret_metadata_records" (
|
|
2273
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2274
|
-
"team_id" text NOT NULL,
|
|
2275
|
-
"project_id" text,
|
|
2276
|
-
"name" text NOT NULL,
|
|
2277
|
-
"secret_class" text NOT NULL,
|
|
2278
|
-
"custody_mode" text NOT NULL,
|
|
2279
|
-
"owner_kind" text NOT NULL,
|
|
2280
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
2281
|
-
"github_secret_target_json" text DEFAULT '{}' NOT NULL,
|
|
2282
|
-
"escrow_record_id" text,
|
|
2283
|
-
"api_decryptable" integer DEFAULT 0 NOT NULL,
|
|
2284
|
-
"plaintext_allowed" integer DEFAULT 0 NOT NULL,
|
|
2285
|
-
"fail_closed_code" text,
|
|
2286
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2287
|
-
"created_at" text NOT NULL,
|
|
2288
|
-
"updated_at" text NOT NULL,
|
|
2289
|
-
"tombstoned_at" text
|
|
2290
|
-
);
|
|
2291
|
-
|
|
2292
|
-
CREATE TABLE "seed_runs" (
|
|
2293
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2294
|
-
"seed_name" text NOT NULL,
|
|
2295
|
-
"seed_version" integer NOT NULL,
|
|
2296
|
-
"environments_json" text NOT NULL,
|
|
2297
|
-
"mode" text NOT NULL,
|
|
2298
|
-
"state" text NOT NULL,
|
|
2299
|
-
"actor_type" text,
|
|
2300
|
-
"actor_id" text,
|
|
2301
|
-
"manifest_hash" text NOT NULL,
|
|
2302
|
-
"plan_json" text NOT NULL,
|
|
2303
|
-
"result_json" text,
|
|
2304
|
-
"error_json" text,
|
|
2305
|
-
"created_at" text NOT NULL,
|
|
2306
|
-
"updated_at" text NOT NULL,
|
|
2307
|
-
"completed_at" text
|
|
2308
|
-
);
|
|
2309
|
-
|
|
2310
|
-
CREATE TABLE "service_credentials" (
|
|
2311
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2312
|
-
"service_id" text NOT NULL,
|
|
2313
|
-
"name" text NOT NULL,
|
|
2314
|
-
"secret_hash" text NOT NULL,
|
|
2315
|
-
"roles_json" text NOT NULL,
|
|
2316
|
-
"permissions_json" text NOT NULL,
|
|
2317
|
-
"revoked_at" text,
|
|
2318
|
-
"created_at" text NOT NULL,
|
|
2319
|
-
"updated_at" text NOT NULL,
|
|
2320
|
-
"last_used_at" text,
|
|
2321
|
-
CONSTRAINT "service_credentials_service_id_unique" UNIQUE("service_id")
|
|
2322
|
-
);
|
|
2323
|
-
|
|
2324
|
-
CREATE TABLE "subscribers" (
|
|
2325
|
-
"email" text PRIMARY KEY NOT NULL,
|
|
2326
|
-
"created_at" text NOT NULL
|
|
2327
|
-
);
|
|
2328
|
-
|
|
2329
|
-
CREATE TABLE "task_credit_ledger" (
|
|
2330
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2331
|
-
"project_id" text NOT NULL,
|
|
2332
|
-
"work_day_id" text NOT NULL,
|
|
2333
|
-
"task_id" text,
|
|
2334
|
-
"phase" text NOT NULL,
|
|
2335
|
-
"credits" real NOT NULL,
|
|
2336
|
-
"metadata_json" text NOT NULL,
|
|
2337
|
-
"created_at" text NOT NULL
|
|
2338
|
-
);
|
|
2339
|
-
|
|
2340
|
-
CREATE TABLE "task_estimate_profiles" (
|
|
2341
|
-
"task_signature" text,
|
|
2342
|
-
"execution_profile_id" text DEFAULT 'standard-code-model',
|
|
2343
|
-
"sample_count" integer DEFAULT 0 NOT NULL,
|
|
2344
|
-
"completed_sample_count" integer DEFAULT 0 NOT NULL,
|
|
2345
|
-
"interrupted_sample_count" integer DEFAULT 0 NOT NULL,
|
|
2346
|
-
"input_tokens_p50" integer,
|
|
2347
|
-
"input_tokens_p90" integer,
|
|
2348
|
-
"output_tokens_p50" integer,
|
|
2349
|
-
"output_tokens_p90" integer,
|
|
2350
|
-
"quota_minutes_p50" real,
|
|
2351
|
-
"quota_minutes_p90" real,
|
|
2352
|
-
"files_changed_p50" real,
|
|
2353
|
-
"files_changed_p90" real,
|
|
2354
|
-
"credits_p50" real,
|
|
2355
|
-
"credits_p90" real,
|
|
2356
|
-
"credits_variance" real,
|
|
2357
|
-
"confidence_score" real,
|
|
2358
|
-
"outlier_count" integer DEFAULT 0 NOT NULL,
|
|
2359
|
-
"partial_credits" real,
|
|
2360
|
-
"first_sample_at" text,
|
|
2361
|
-
"last_sample_at" text,
|
|
2362
|
-
"updated_at" text NOT NULL,
|
|
2363
|
-
CONSTRAINT "task_estimate_profiles_task_signature_execution_profile_id_pk" PRIMARY KEY("task_signature","execution_profile_id")
|
|
2364
|
-
);
|
|
2365
|
-
|
|
2366
|
-
CREATE TABLE "task_estimates" (
|
|
2367
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2368
|
-
"task_id" text,
|
|
2369
|
-
"work_day_id" text,
|
|
2370
|
-
"project_id" text NOT NULL,
|
|
2371
|
-
"estimate_phase" text NOT NULL,
|
|
2372
|
-
"task_signature" text NOT NULL,
|
|
2373
|
-
"confidence" text NOT NULL,
|
|
2374
|
-
"estimated_credits_p50" real NOT NULL,
|
|
2375
|
-
"estimated_credits_p90" real NOT NULL,
|
|
2376
|
-
"reserved_credits" real NOT NULL,
|
|
2377
|
-
"estimated_input_tokens_p50" integer,
|
|
2378
|
-
"estimated_input_tokens_p90" integer,
|
|
2379
|
-
"estimated_output_tokens_p50" integer,
|
|
2380
|
-
"estimated_output_tokens_p90" integer,
|
|
2381
|
-
"estimated_quota_minutes_p50" real,
|
|
2382
|
-
"estimated_quota_minutes_p90" real,
|
|
2383
|
-
"features_json" text DEFAULT '{}' NOT NULL,
|
|
2384
|
-
"created_at" text NOT NULL,
|
|
2385
|
-
"execution_profile_id" text DEFAULT 'standard-code-model' NOT NULL
|
|
2386
|
-
);
|
|
2387
|
-
|
|
2388
|
-
CREATE TABLE "task_usage_actuals" (
|
|
2389
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2390
|
-
"task_id" text,
|
|
2391
|
-
"work_day_id" text,
|
|
2392
|
-
"project_id" text NOT NULL,
|
|
2393
|
-
"task_signature" text NOT NULL,
|
|
2394
|
-
"assignment_id" text,
|
|
2395
|
-
"mode_run_id" text,
|
|
2396
|
-
"mode" text,
|
|
2397
|
-
"capacity_provider_id" text,
|
|
2398
|
-
"execution_provider_id" text,
|
|
2399
|
-
"lane_id" text,
|
|
2400
|
-
"business_model" text NOT NULL,
|
|
2401
|
-
"model_name" text,
|
|
2402
|
-
"input_tokens" integer,
|
|
2403
|
-
"output_tokens" integer,
|
|
2404
|
-
"cached_input_tokens" integer,
|
|
2405
|
-
"quota_minutes" real,
|
|
2406
|
-
"wall_minutes" real,
|
|
2407
|
-
"files_opened" integer,
|
|
2408
|
-
"files_changed" integer,
|
|
2409
|
-
"diff_lines_added" integer,
|
|
2410
|
-
"diff_lines_removed" integer,
|
|
2411
|
-
"test_runs" integer,
|
|
2412
|
-
"retry_count" integer,
|
|
2413
|
-
"actual_credits" real NOT NULL,
|
|
2414
|
-
"actual_usd" real,
|
|
2415
|
-
"credit_formula_version" text DEFAULT 'treeseed.actual-credits.v1' NOT NULL,
|
|
2416
|
-
"actual_credit_source" text DEFAULT 'central_calculator' NOT NULL,
|
|
2417
|
-
"native_usage_json" text DEFAULT '{}' NOT NULL,
|
|
2418
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2419
|
-
"created_at" text NOT NULL,
|
|
2420
|
-
"execution_profile_id" text DEFAULT 'standard-code-model' NOT NULL
|
|
2421
|
-
);
|
|
2422
|
-
|
|
2423
|
-
CREATE TABLE "team_api_keys" (
|
|
2424
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2425
|
-
"team_id" text NOT NULL,
|
|
2426
|
-
"name" text NOT NULL,
|
|
2427
|
-
"key_prefix" text NOT NULL,
|
|
2428
|
-
"key_hash" text NOT NULL,
|
|
2429
|
-
"permissions_json" text NOT NULL,
|
|
2430
|
-
"expires_at" text,
|
|
2431
|
-
"last_used_at" text,
|
|
2432
|
-
"revoked_at" text,
|
|
2433
|
-
"created_at" text NOT NULL,
|
|
2434
|
-
"updated_at" text NOT NULL
|
|
2435
|
-
);
|
|
2436
|
-
|
|
2437
|
-
CREATE TABLE "team_inbox_items" (
|
|
2438
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2439
|
-
"team_id" text NOT NULL,
|
|
2440
|
-
"project_id" text,
|
|
2441
|
-
"kind" text NOT NULL,
|
|
2442
|
-
"state" text NOT NULL,
|
|
2443
|
-
"title" text NOT NULL,
|
|
2444
|
-
"summary" text,
|
|
2445
|
-
"href" text,
|
|
2446
|
-
"item_key" text,
|
|
2447
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2448
|
-
"created_at" text NOT NULL,
|
|
2449
|
-
"updated_at" text NOT NULL
|
|
2450
|
-
);
|
|
2451
|
-
|
|
2452
|
-
CREATE TABLE "team_invites" (
|
|
2453
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2454
|
-
"team_id" text NOT NULL,
|
|
2455
|
-
"email" text NOT NULL,
|
|
2456
|
-
"role_key" text NOT NULL,
|
|
2457
|
-
"token_prefix" text NOT NULL,
|
|
2458
|
-
"token_hash" text NOT NULL,
|
|
2459
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
2460
|
-
"invited_by_user_id" text,
|
|
2461
|
-
"accepted_by_user_id" text,
|
|
2462
|
-
"accepted_at" text,
|
|
2463
|
-
"expires_at" text NOT NULL,
|
|
2464
|
-
"created_at" text NOT NULL,
|
|
2465
|
-
"updated_at" text NOT NULL
|
|
2466
|
-
);
|
|
2467
|
-
|
|
2468
|
-
CREATE TABLE "team_memberships" (
|
|
2469
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2470
|
-
"team_id" text NOT NULL,
|
|
2471
|
-
"user_id" text NOT NULL,
|
|
2472
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
2473
|
-
"created_at" text NOT NULL,
|
|
2474
|
-
"updated_at" text NOT NULL
|
|
2475
|
-
);
|
|
2476
|
-
|
|
2477
|
-
CREATE TABLE "team_role_bindings" (
|
|
2478
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2479
|
-
"team_membership_id" text NOT NULL,
|
|
2480
|
-
"role_id" text NOT NULL,
|
|
2481
|
-
"created_at" text NOT NULL
|
|
2482
|
-
);
|
|
2483
|
-
|
|
2484
|
-
CREATE TABLE "team_storage_locators" (
|
|
2485
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2486
|
-
"team_id" text NOT NULL,
|
|
2487
|
-
"bucket_name" text NOT NULL,
|
|
2488
|
-
"manifest_key_template" text NOT NULL,
|
|
2489
|
-
"preview_root_template" text NOT NULL,
|
|
2490
|
-
"public_base_url" text,
|
|
2491
|
-
"metadata_json" text,
|
|
2492
|
-
"created_at" text NOT NULL,
|
|
2493
|
-
"updated_at" text NOT NULL,
|
|
2494
|
-
CONSTRAINT "team_storage_locators_team_id_unique" UNIQUE("team_id")
|
|
2495
|
-
);
|
|
2496
|
-
|
|
2497
|
-
CREATE TABLE "team_web_hosts" (
|
|
2498
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2499
|
-
"team_id" text NOT NULL,
|
|
2500
|
-
"provider" text NOT NULL,
|
|
2501
|
-
"ownership" text NOT NULL,
|
|
2502
|
-
"name" text NOT NULL,
|
|
2503
|
-
"account_label" text,
|
|
2504
|
-
"allowed_environments_json" text DEFAULT '[]' NOT NULL,
|
|
2505
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
2506
|
-
"encrypted_payload_json" text,
|
|
2507
|
-
"metadata_json" text,
|
|
2508
|
-
"created_by_id" text,
|
|
2509
|
-
"updated_by_id" text,
|
|
2510
|
-
"created_at" text NOT NULL,
|
|
2511
|
-
"updated_at" text NOT NULL
|
|
2512
|
-
);
|
|
2513
|
-
|
|
2514
|
-
CREATE TABLE "teams" (
|
|
2515
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2516
|
-
"slug" text NOT NULL,
|
|
2517
|
-
"name" text NOT NULL,
|
|
2518
|
-
"metadata_json" text,
|
|
2519
|
-
"created_at" text NOT NULL,
|
|
2520
|
-
"updated_at" text NOT NULL,
|
|
2521
|
-
"display_name" text,
|
|
2522
|
-
"logo_url" text,
|
|
2523
|
-
"profile_summary" text,
|
|
2524
|
-
CONSTRAINT "teams_slug_unique" UNIQUE("slug")
|
|
2525
|
-
);
|
|
2526
|
-
|
|
2527
|
-
CREATE TABLE "treedx_credential_issuance_records" (
|
|
2528
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2529
|
-
"team_id" text NOT NULL,
|
|
2530
|
-
"project_id" text NOT NULL,
|
|
2531
|
-
"assignment_id" text,
|
|
2532
|
-
"repository" text,
|
|
2533
|
-
"credential_provider" text NOT NULL,
|
|
2534
|
-
"status" text DEFAULT 'issued' NOT NULL,
|
|
2535
|
-
"token_prefix" text,
|
|
2536
|
-
"token_hash" text,
|
|
2537
|
-
"scopes_json" text DEFAULT '[]' NOT NULL,
|
|
2538
|
-
"allowed_operations_json" text DEFAULT '[]' NOT NULL,
|
|
2539
|
-
"expires_at" text,
|
|
2540
|
-
"issued_at" text,
|
|
2541
|
-
"revoked_at" text,
|
|
2542
|
-
"fail_closed_code" text,
|
|
2543
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2544
|
-
"created_at" text NOT NULL,
|
|
2545
|
-
"updated_at" text NOT NULL
|
|
2546
|
-
);
|
|
2547
|
-
|
|
2548
|
-
CREATE TABLE "treedx_deployments" (
|
|
2549
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2550
|
-
"team_id" text NOT NULL,
|
|
2551
|
-
"instance_id" text,
|
|
2552
|
-
"provider" text NOT NULL,
|
|
2553
|
-
"status" text DEFAULT 'queued' NOT NULL,
|
|
2554
|
-
"image_ref" text,
|
|
2555
|
-
"volume_mount_path" text,
|
|
2556
|
-
"service_refs_json" text DEFAULT '{}' NOT NULL,
|
|
2557
|
-
"result_json" text DEFAULT '{}' NOT NULL,
|
|
2558
|
-
"error_json" text,
|
|
2559
|
-
"created_at" text NOT NULL,
|
|
2560
|
-
"updated_at" text NOT NULL,
|
|
2561
|
-
"completed_at" text
|
|
2562
|
-
);
|
|
2563
|
-
|
|
2564
|
-
CREATE TABLE "treedx_instances" (
|
|
2565
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2566
|
-
"team_id" text NOT NULL,
|
|
2567
|
-
"kind" text NOT NULL,
|
|
2568
|
-
"provider" text NOT NULL,
|
|
2569
|
-
"name" text NOT NULL,
|
|
2570
|
-
"base_url" text,
|
|
2571
|
-
"registry_url" text,
|
|
2572
|
-
"public_read" integer DEFAULT 0 NOT NULL,
|
|
2573
|
-
"primary" integer DEFAULT 1 NOT NULL,
|
|
2574
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
2575
|
-
"image_ref" text,
|
|
2576
|
-
"railway_project_id" text,
|
|
2577
|
-
"railway_service_id" text,
|
|
2578
|
-
"railway_environment_id" text,
|
|
2579
|
-
"volume_mount_path" text,
|
|
2580
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2581
|
-
"created_at" text NOT NULL,
|
|
2582
|
-
"updated_at" text NOT NULL
|
|
2583
|
-
);
|
|
2584
|
-
|
|
2585
|
-
CREATE TABLE "treedx_mirrors" (
|
|
2586
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2587
|
-
"team_id" text NOT NULL,
|
|
2588
|
-
"instance_id" text NOT NULL,
|
|
2589
|
-
"name" text NOT NULL,
|
|
2590
|
-
"direction" text DEFAULT 'bidirectional' NOT NULL,
|
|
2591
|
-
"target_kind" text NOT NULL,
|
|
2592
|
-
"target_url" text,
|
|
2593
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
2594
|
-
"instructions" text,
|
|
2595
|
-
"last_sync_at" text,
|
|
2596
|
-
"last_sync_status" text,
|
|
2597
|
-
"last_sync_metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2598
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2599
|
-
"created_at" text NOT NULL,
|
|
2600
|
-
"updated_at" text NOT NULL
|
|
2601
|
-
);
|
|
2602
|
-
|
|
2603
|
-
CREATE TABLE "treedx_project_libraries" (
|
|
2604
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2605
|
-
"team_id" text NOT NULL,
|
|
2606
|
-
"project_id" text NOT NULL,
|
|
2607
|
-
"instance_id" text NOT NULL,
|
|
2608
|
-
"library_id" text NOT NULL,
|
|
2609
|
-
"repository_id" text,
|
|
2610
|
-
"content_path" text DEFAULT 'src/content' NOT NULL,
|
|
2611
|
-
"content_repository_url" text,
|
|
2612
|
-
"content_repository_default_branch" text,
|
|
2613
|
-
"content_repository_ref" text,
|
|
2614
|
-
"r2_bucket_name" text,
|
|
2615
|
-
"r2_manifest_key" text,
|
|
2616
|
-
"topology_json" text DEFAULT '{}' NOT NULL,
|
|
2617
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2618
|
-
"created_at" text NOT NULL,
|
|
2619
|
-
"updated_at" text NOT NULL
|
|
2620
|
-
);
|
|
2621
|
-
|
|
2622
|
-
CREATE TABLE "treedx_project_proxy_audit" (
|
|
2623
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2624
|
-
"team_id" text NOT NULL,
|
|
2625
|
-
"project_id" text NOT NULL,
|
|
2626
|
-
"assignment_id" text,
|
|
2627
|
-
"actor_type" text NOT NULL,
|
|
2628
|
-
"actor_id" text,
|
|
2629
|
-
"method" text NOT NULL,
|
|
2630
|
-
"path" text NOT NULL,
|
|
2631
|
-
"handle_json" text DEFAULT '{}' NOT NULL,
|
|
2632
|
-
"result_status" text DEFAULT 'observed' NOT NULL,
|
|
2633
|
-
"reason_code" text,
|
|
2634
|
-
"reason" text,
|
|
2635
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2636
|
-
"created_at" text NOT NULL
|
|
2637
|
-
);
|
|
2638
|
-
|
|
2639
|
-
CREATE TABLE "treedx_proxy_handles" (
|
|
2640
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2641
|
-
"team_id" text NOT NULL,
|
|
2642
|
-
"project_id" text NOT NULL,
|
|
2643
|
-
"assignment_id" text,
|
|
2644
|
-
"repository_id" text,
|
|
2645
|
-
"workspace_id" text,
|
|
2646
|
-
"status" text DEFAULT 'issued' NOT NULL,
|
|
2647
|
-
"scopes_json" text DEFAULT '[]' NOT NULL,
|
|
2648
|
-
"allowed_operations_json" text DEFAULT '[]' NOT NULL,
|
|
2649
|
-
"allowed_paths_json" text DEFAULT '[]' NOT NULL,
|
|
2650
|
-
"token_hash" text,
|
|
2651
|
-
"expires_at" text,
|
|
2652
|
-
"issued_at" text NOT NULL,
|
|
2653
|
-
"revoked_at" text,
|
|
2654
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2655
|
-
"created_at" text NOT NULL,
|
|
2656
|
-
"updated_at" text NOT NULL
|
|
2657
|
-
);
|
|
2658
|
-
|
|
2659
|
-
CREATE TABLE "treedx_shares" (
|
|
2660
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2661
|
-
"team_id" text NOT NULL,
|
|
2662
|
-
"instance_id" text,
|
|
2663
|
-
"project_id" text,
|
|
2664
|
-
"library_id" text,
|
|
2665
|
-
"scope" text NOT NULL,
|
|
2666
|
-
"target_team_id" text,
|
|
2667
|
-
"trust_grant_json" text DEFAULT '{}' NOT NULL,
|
|
2668
|
-
"public_read" integer DEFAULT 0 NOT NULL,
|
|
2669
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
2670
|
-
"expires_at" text,
|
|
2671
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2672
|
-
"created_at" text NOT NULL,
|
|
2673
|
-
"updated_at" text NOT NULL,
|
|
2674
|
-
"revoked_at" text
|
|
2675
|
-
);
|
|
2676
|
-
|
|
2677
|
-
CREATE TABLE "user_email_addresses" (
|
|
2678
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2679
|
-
"user_id" text NOT NULL,
|
|
2680
|
-
"email" text NOT NULL,
|
|
2681
|
-
"normalized_email" text NOT NULL,
|
|
2682
|
-
"status" text DEFAULT 'pending' NOT NULL,
|
|
2683
|
-
"is_primary" integer DEFAULT 0 NOT NULL,
|
|
2684
|
-
"verification_requested_at" text,
|
|
2685
|
-
"verified_at" text,
|
|
2686
|
-
"created_at" text NOT NULL,
|
|
2687
|
-
"updated_at" text NOT NULL,
|
|
2688
|
-
CONSTRAINT "user_email_addresses_normalized_email_unique" UNIQUE("normalized_email")
|
|
2689
|
-
);
|
|
2690
|
-
|
|
2691
|
-
CREATE TABLE "user_identities" (
|
|
2692
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2693
|
-
"user_id" text NOT NULL,
|
|
2694
|
-
"provider" text NOT NULL,
|
|
2695
|
-
"provider_subject" text NOT NULL,
|
|
2696
|
-
"email" text,
|
|
2697
|
-
"email_verified" integer DEFAULT 0 NOT NULL,
|
|
2698
|
-
"profile_json" text,
|
|
2699
|
-
"created_at" text NOT NULL,
|
|
2700
|
-
"updated_at" text NOT NULL
|
|
2701
|
-
);
|
|
2702
|
-
|
|
2703
|
-
CREATE TABLE "user_preferences" (
|
|
2704
|
-
"user_id" text PRIMARY KEY NOT NULL,
|
|
2705
|
-
"color_scheme" text DEFAULT 'fern' NOT NULL,
|
|
2706
|
-
"theme_mode" text DEFAULT 'system' NOT NULL,
|
|
2707
|
-
"created_at" text NOT NULL,
|
|
2708
|
-
"updated_at" text NOT NULL
|
|
2709
|
-
);
|
|
2710
|
-
|
|
2711
|
-
CREATE TABLE "user_role_bindings" (
|
|
2712
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2713
|
-
"user_id" text NOT NULL,
|
|
2714
|
-
"role_id" text NOT NULL,
|
|
2715
|
-
"created_at" text NOT NULL
|
|
2716
|
-
);
|
|
2717
|
-
|
|
2718
|
-
CREATE TABLE "users" (
|
|
2719
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2720
|
-
"email" text,
|
|
2721
|
-
"display_name" text,
|
|
2722
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
2723
|
-
"metadata_json" text,
|
|
2724
|
-
"created_at" text NOT NULL,
|
|
2725
|
-
"updated_at" text NOT NULL,
|
|
2726
|
-
"username" text
|
|
2727
|
-
);
|
|
2728
|
-
|
|
2729
|
-
CREATE TABLE "web_sessions" (
|
|
2730
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2731
|
-
"user_id" text NOT NULL,
|
|
2732
|
-
"identity_id" text,
|
|
2733
|
-
"better_auth_session_id" text,
|
|
2734
|
-
"provider" text NOT NULL,
|
|
2735
|
-
"provider_subject" text NOT NULL,
|
|
2736
|
-
"email" text,
|
|
2737
|
-
"display_name" text,
|
|
2738
|
-
"principal_json" text NOT NULL,
|
|
2739
|
-
"csrf_token" text NOT NULL,
|
|
2740
|
-
"ip_address" text,
|
|
2741
|
-
"user_agent" text,
|
|
2742
|
-
"authenticated_at" text NOT NULL,
|
|
2743
|
-
"last_seen_at" text,
|
|
2744
|
-
"expires_at" text NOT NULL,
|
|
2745
|
-
"revoked_at" text,
|
|
2746
|
-
"created_at" text NOT NULL,
|
|
2747
|
-
"updated_at" text NOT NULL
|
|
2748
|
-
);
|
|
2749
|
-
|
|
2750
|
-
CREATE TABLE "work_days" (
|
|
2751
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2752
|
-
"project_id" text NOT NULL,
|
|
2753
|
-
"state" text NOT NULL,
|
|
2754
|
-
"capacity_budget" integer DEFAULT 0 NOT NULL,
|
|
2755
|
-
"capacity_used" integer DEFAULT 0 NOT NULL,
|
|
2756
|
-
"graph_version" text,
|
|
2757
|
-
"summary_json" text,
|
|
2758
|
-
"started_at" text NOT NULL,
|
|
2759
|
-
"ended_at" text,
|
|
2760
|
-
"created_at" text NOT NULL,
|
|
2761
|
-
"updated_at" text NOT NULL
|
|
2762
|
-
);
|
|
2763
|
-
|
|
2764
|
-
CREATE TABLE "work_policies" (
|
|
2765
|
-
"project_id" text,
|
|
2766
|
-
"environment" text,
|
|
2767
|
-
"schedule_json" text NOT NULL,
|
|
2768
|
-
"daily_task_credit_budget" integer DEFAULT 0 NOT NULL,
|
|
2769
|
-
"max_queued_tasks" integer DEFAULT 0 NOT NULL,
|
|
2770
|
-
"max_queued_credits" integer DEFAULT 0 NOT NULL,
|
|
2771
|
-
"autoscale_json" text NOT NULL,
|
|
2772
|
-
"credit_weights_json" text NOT NULL,
|
|
2773
|
-
"metadata_json" text NOT NULL,
|
|
2774
|
-
"created_at" text NOT NULL,
|
|
2775
|
-
"updated_at" text NOT NULL,
|
|
2776
|
-
"enabled" integer DEFAULT 1 NOT NULL,
|
|
2777
|
-
"start_cron" text DEFAULT '0 9 * * 1-5' NOT NULL,
|
|
2778
|
-
"duration_minutes" integer DEFAULT 480 NOT NULL,
|
|
2779
|
-
"max_runners" integer DEFAULT 1 NOT NULL,
|
|
2780
|
-
"max_workers_per_runner" integer DEFAULT 4 NOT NULL,
|
|
2781
|
-
"daily_credit_budget" integer DEFAULT 0 NOT NULL,
|
|
2782
|
-
"closeout_grace_minutes" integer DEFAULT 15 NOT NULL,
|
|
2783
|
-
CONSTRAINT "work_policies_project_id_environment_pk" PRIMARY KEY("project_id","environment")
|
|
2784
|
-
);
|
|
2785
|
-
|
|
2786
|
-
CREATE TABLE "workday_capacity_envelopes" (
|
|
2787
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2788
|
-
"team_id" text NOT NULL,
|
|
2789
|
-
"project_id" text NOT NULL,
|
|
2790
|
-
"allocation_set_id" text,
|
|
2791
|
-
"status" text DEFAULT 'draft' NOT NULL,
|
|
2792
|
-
"started_at" text,
|
|
2793
|
-
"paused_at" text,
|
|
2794
|
-
"completed_at" text,
|
|
2795
|
-
"envelope_json" text DEFAULT '{}' NOT NULL,
|
|
2796
|
-
"mode_splits_json" text DEFAULT '{}' NOT NULL,
|
|
2797
|
-
"caps_json" text DEFAULT '{}' NOT NULL,
|
|
2798
|
-
"reserves_json" text DEFAULT '{}' NOT NULL,
|
|
2799
|
-
"borrowing_rules_json" text DEFAULT '{}' NOT NULL,
|
|
2800
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2801
|
-
"created_at" text NOT NULL,
|
|
2802
|
-
"updated_at" text NOT NULL
|
|
2803
|
-
);
|
|
2804
|
-
|
|
2805
|
-
CREATE TABLE "workday_manager_leases" (
|
|
2806
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2807
|
-
"project_id" text NOT NULL,
|
|
2808
|
-
"environment" text NOT NULL,
|
|
2809
|
-
"work_day_id" text,
|
|
2810
|
-
"manager_id" text NOT NULL,
|
|
2811
|
-
"state" text DEFAULT 'active' NOT NULL,
|
|
2812
|
-
"heartbeat_at" text NOT NULL,
|
|
2813
|
-
"expires_at" text NOT NULL,
|
|
2814
|
-
"metadata_json" text NOT NULL,
|
|
2815
|
-
"created_at" text NOT NULL,
|
|
2816
|
-
"updated_at" text NOT NULL
|
|
2817
|
-
);
|
|
2818
|
-
|
|
2819
|
-
CREATE TABLE "workday_requests" (
|
|
2820
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2821
|
-
"project_id" text NOT NULL,
|
|
2822
|
-
"environment" text NOT NULL,
|
|
2823
|
-
"type" text NOT NULL,
|
|
2824
|
-
"state" text DEFAULT 'pending' NOT NULL,
|
|
2825
|
-
"work_day_id" text,
|
|
2826
|
-
"requested_by" text,
|
|
2827
|
-
"reason" text,
|
|
2828
|
-
"payload_json" text NOT NULL,
|
|
2829
|
-
"metadata_json" text NOT NULL,
|
|
2830
|
-
"created_at" text NOT NULL,
|
|
2831
|
-
"updated_at" text NOT NULL
|
|
2832
|
-
);
|
|
2833
|
-
|
|
2834
|
-
CREATE TABLE "worker_runners" (
|
|
2835
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2836
|
-
"project_id" text NOT NULL,
|
|
2837
|
-
"environment" text NOT NULL,
|
|
2838
|
-
"runner_id" text NOT NULL,
|
|
2839
|
-
"runner_service_name" text NOT NULL,
|
|
2840
|
-
"volume_identity" text NOT NULL,
|
|
2841
|
-
"state" text DEFAULT 'active' NOT NULL,
|
|
2842
|
-
"max_local_workers" integer DEFAULT 4 NOT NULL,
|
|
2843
|
-
"active_local_workers" integer DEFAULT 0 NOT NULL,
|
|
2844
|
-
"available_capacity" integer DEFAULT 4 NOT NULL,
|
|
2845
|
-
"last_heartbeat_at" text,
|
|
2846
|
-
"claimed_repository_ids_json" text NOT NULL,
|
|
2847
|
-
"metadata_json" text NOT NULL,
|
|
2848
|
-
"created_at" text NOT NULL,
|
|
2849
|
-
"updated_at" text NOT NULL
|
|
2850
|
-
);
|
|
2851
|
-
|
|
2852
|
-
CREATE TABLE "workflow_dispatch_records" (
|
|
2853
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2854
|
-
"team_id" text NOT NULL,
|
|
2855
|
-
"project_id" text,
|
|
2856
|
-
"workflow_operation_id" text NOT NULL,
|
|
2857
|
-
"platform_operation_id" text,
|
|
2858
|
-
"repository" text NOT NULL,
|
|
2859
|
-
"workflow_file" text NOT NULL,
|
|
2860
|
-
"ref" text,
|
|
2861
|
-
"status" text DEFAULT 'queued' NOT NULL,
|
|
2862
|
-
"inputs_json" text DEFAULT '{}' NOT NULL,
|
|
2863
|
-
"result_json" text DEFAULT '{}' NOT NULL,
|
|
2864
|
-
"fail_closed_code" text,
|
|
2865
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2866
|
-
"created_at" text NOT NULL,
|
|
2867
|
-
"updated_at" text NOT NULL,
|
|
2868
|
-
"dispatched_at" text,
|
|
2869
|
-
"completed_at" text
|
|
2870
|
-
);
|
|
2871
|
-
|
|
2872
|
-
CREATE TABLE "workflow_operation_records" (
|
|
2873
|
-
"id" text PRIMARY KEY NOT NULL,
|
|
2874
|
-
"team_id" text NOT NULL,
|
|
2875
|
-
"project_id" text,
|
|
2876
|
-
"name" text NOT NULL,
|
|
2877
|
-
"repository" text NOT NULL,
|
|
2878
|
-
"workflow_file" text NOT NULL,
|
|
2879
|
-
"secret_bearing" integer DEFAULT 0 NOT NULL,
|
|
2880
|
-
"trusted_execution_set_id" text NOT NULL,
|
|
2881
|
-
"dispatch_json" text DEFAULT '{}' NOT NULL,
|
|
2882
|
-
"inputs_json" text DEFAULT '[]' NOT NULL,
|
|
2883
|
-
"secret_classes_json" text DEFAULT '[]' NOT NULL,
|
|
2884
|
-
"status" text DEFAULT 'active' NOT NULL,
|
|
2885
|
-
"fail_closed_code" text,
|
|
2886
|
-
"metadata_json" text DEFAULT '{}' NOT NULL,
|
|
2887
|
-
"created_at" text NOT NULL,
|
|
2888
|
-
"updated_at" text NOT NULL,
|
|
2889
|
-
"blocked_at" text
|
|
2890
|
-
);
|
|
2891
|
-
|
|
2892
|
-
CREATE INDEX "idx_agent_capacity_plans_decision" ON "agent_capacity_plans" USING btree ("decision_id","status","created_at");
|
|
2893
|
-
CREATE INDEX "idx_agent_capacity_plans_project" ON "agent_capacity_plans" USING btree ("project_id","status","created_at");
|
|
2894
|
-
CREATE INDEX "idx_agent_capacity_plans_workday" ON "agent_capacity_plans" USING btree ("work_day_id","status","created_at");
|
|
2895
|
-
CREATE INDEX "idx_agent_mode_runs_assignment" ON "agent_mode_runs" USING btree ("provider_assignment_id","status");
|
|
2896
|
-
CREATE INDEX "idx_agent_mode_runs_project_mode" ON "agent_mode_runs" USING btree ("project_id","mode","created_at");
|
|
2897
|
-
CREATE INDEX "idx_agent_mode_runs_provider" ON "agent_mode_runs" USING btree ("capacity_provider_id","created_at");
|
|
2898
|
-
CREATE INDEX "idx_agent_pool_registrations_pool_heartbeat" ON "agent_pool_registrations" USING btree ("pool_id","heartbeat_at");
|
|
2899
|
-
CREATE INDEX "idx_agent_pool_scale_decisions_pool_created" ON "agent_pool_scale_decisions" USING btree ("pool_id","created_at");
|
|
2900
|
-
CREATE UNIQUE INDEX "idx_agent_pools_project_environment_name" ON "agent_pools" USING btree ("project_id","environment","name");
|
|
2901
|
-
CREATE INDEX "idx_api_tokens_user_id" ON "api_tokens" USING btree ("user_id");
|
|
2902
|
-
CREATE INDEX "idx_api_tokens_prefix" ON "api_tokens" USING btree ("token_prefix");
|
|
2903
|
-
CREATE INDEX "idx_approval_requests_team_state" ON "approval_requests" USING btree ("team_id","state","created_at");
|
|
2904
|
-
CREATE INDEX "idx_approval_requests_project_workday" ON "approval_requests" USING btree ("project_id","work_day_id","state","created_at");
|
|
2905
|
-
CREATE INDEX "idx_audit_events_target" ON "audit_events" USING btree ("target_type","target_id");
|
|
2906
|
-
CREATE INDEX "idx_auth_sessions_user_id" ON "auth_sessions" USING btree ("user_id");
|
|
2907
|
-
CREATE INDEX "idx_better_auth_account_userId" ON "better_auth_account" USING btree ("userId");
|
|
2908
|
-
CREATE UNIQUE INDEX "idx_better_auth_account_provider_account" ON "better_auth_account" USING btree ("providerId","accountId");
|
|
2909
|
-
CREATE INDEX "idx_better_auth_session_token" ON "better_auth_session" USING btree ("token");
|
|
2910
|
-
CREATE INDEX "idx_better_auth_session_userId" ON "better_auth_session" USING btree ("userId");
|
|
2911
|
-
CREATE UNIQUE INDEX "idx_better_auth_user_username" ON "better_auth_user" USING btree ("username");
|
|
2912
|
-
CREATE INDEX "idx_better_auth_verification_identifier" ON "better_auth_verification" USING btree ("identifier");
|
|
2913
|
-
CREATE INDEX "idx_capacity_allocation_sets_team_status" ON "capacity_allocation_sets" USING btree ("team_id","status","version");
|
|
2914
|
-
CREATE INDEX "idx_capacity_allocation_sets_team_created" ON "capacity_allocation_sets" USING btree ("team_id","created_at");
|
|
2915
|
-
CREATE INDEX "idx_capacity_grants_team_project" ON "capacity_grants" USING btree ("team_id","project_id","state");
|
|
2916
|
-
CREATE INDEX "idx_capacity_grants_provider_lane" ON "capacity_grants" USING btree ("capacity_provider_id","lane_id","state");
|
|
2917
|
-
CREATE INDEX "idx_capacity_ledger_project_workday_created" ON "capacity_ledger_entries" USING btree ("project_id","work_day_id","created_at");
|
|
2918
|
-
CREATE INDEX "idx_capacity_provider_api_keys_provider_status" ON "capacity_provider_api_keys" USING btree ("capacity_provider_id","status","created_at");
|
|
2919
|
-
CREATE INDEX "idx_capacity_provider_api_keys_prefix" ON "capacity_provider_api_keys" USING btree ("key_prefix");
|
|
2920
|
-
CREATE INDEX "idx_capacity_provider_deployments_provider_created" ON "capacity_provider_deployments" USING btree ("capacity_provider_id","created_at");
|
|
2921
|
-
CREATE UNIQUE INDEX "idx_capacity_provider_hosts_unique" ON "capacity_provider_hosts" USING btree ("capacity_provider_id","host_id","role");
|
|
2922
|
-
CREATE INDEX "idx_capacity_provider_lanes_provider" ON "capacity_provider_lanes" USING btree ("capacity_provider_id","business_model","scarcity_level");
|
|
2923
|
-
CREATE INDEX "idx_capacity_provider_registrations_provider_seen" ON "capacity_provider_registrations" USING btree ("capacity_provider_id","last_seen_at");
|
|
2924
|
-
CREATE INDEX "idx_capacity_providers_team_status" ON "capacity_providers" USING btree ("team_id","status","provider");
|
|
2925
|
-
CREATE INDEX "idx_capacity_reservations_project_workday_state" ON "capacity_reservations" USING btree ("project_id","work_day_id","state","created_at");
|
|
2926
|
-
CREATE INDEX "idx_capacity_reservations_provider_state" ON "capacity_reservations" USING btree ("capacity_provider_id","lane_id","state");
|
|
2927
|
-
CREATE INDEX "idx_capacity_reservations_execution_provider_state" ON "capacity_reservations" USING btree ("execution_provider_id","state","created_at");
|
|
2928
|
-
CREATE INDEX "idx_capacity_routing_decisions_project_workday" ON "capacity_routing_decisions" USING btree ("project_id","work_day_id","created_at");
|
|
2929
|
-
CREATE UNIQUE INDEX "idx_catalog_artifact_versions_item_version" ON "catalog_artifact_versions" USING btree ("item_id","version");
|
|
2930
|
-
CREATE INDEX "idx_catalog_artifact_versions_team_kind" ON "catalog_artifact_versions" USING btree ("team_id","kind","published_at");
|
|
2931
|
-
CREATE UNIQUE INDEX "idx_catalog_item_collaborators_subject_role" ON "catalog_item_collaborators" USING btree ("item_id","subject_type","subject_id","role");
|
|
2932
|
-
CREATE UNIQUE INDEX "idx_catalog_items_team_kind_slug" ON "catalog_items" USING btree ("team_id","kind","slug");
|
|
2933
|
-
CREATE INDEX "idx_catalog_items_team_kind" ON "catalog_items" USING btree ("team_id","kind","updated_at");
|
|
2934
|
-
CREATE INDEX "idx_catalog_items_visibility_listing" ON "catalog_items" USING btree ("visibility","listing_enabled","updated_at");
|
|
2935
|
-
CREATE INDEX "idx_client_encrypted_escrow_secret" ON "client_encrypted_escrow_records" USING btree ("secret_id","status");
|
|
2936
|
-
CREATE INDEX "idx_client_encrypted_escrow_project" ON "client_encrypted_escrow_records" USING btree ("team_id","project_id","status");
|
|
2937
|
-
CREATE UNIQUE INDEX "idx_commerce_buyer_stripe_customers_team" ON "commerce_buyer_stripe_customers" USING btree ("vendor_id","environment","buyer_team_id");
|
|
2938
|
-
CREATE UNIQUE INDEX "idx_commerce_buyer_stripe_customers_user" ON "commerce_buyer_stripe_customers" USING btree ("vendor_id","environment","buyer_user_id");
|
|
2939
|
-
CREATE UNIQUE INDEX "idx_commerce_buyer_stripe_customers_stripe" ON "commerce_buyer_stripe_customers" USING btree ("connected_account_id","stripe_customer_id");
|
|
2940
|
-
CREATE INDEX "idx_commerce_capacity_inquiries_listing_status" ON "commerce_capacity_listing_inquiries" USING btree ("listing_id","status","updated_at");
|
|
2941
|
-
CREATE INDEX "idx_commerce_capacity_inquiries_buyer_team" ON "commerce_capacity_listing_inquiries" USING btree ("buyer_team_id","status","updated_at");
|
|
2942
|
-
CREATE INDEX "idx_commerce_capacity_inquiries_buyer_user" ON "commerce_capacity_listing_inquiries" USING btree ("buyer_user_id","status","updated_at");
|
|
2943
|
-
CREATE INDEX "idx_commerce_capacity_inquiries_vendor_status" ON "commerce_capacity_listing_inquiries" USING btree ("vendor_id","status","updated_at");
|
|
2944
|
-
CREATE INDEX "idx_commerce_capacity_inquiries_seller_status" ON "commerce_capacity_listing_inquiries" USING btree ("seller_team_id","status","updated_at");
|
|
2945
|
-
CREATE INDEX "idx_commerce_capacity_inquiries_project" ON "commerce_capacity_listing_inquiries" USING btree ("related_project_id","status");
|
|
2946
|
-
CREATE INDEX "idx_commerce_capacity_inquiries_workday" ON "commerce_capacity_listing_inquiries" USING btree ("related_workday_id","status");
|
|
2947
|
-
CREATE UNIQUE INDEX "idx_commerce_capacity_listings_product" ON "commerce_capacity_listings" USING btree ("product_id");
|
|
2948
|
-
CREATE INDEX "idx_commerce_capacity_listings_vendor_status" ON "commerce_capacity_listings" USING btree ("vendor_id","status","updated_at");
|
|
2949
|
-
CREATE INDEX "idx_commerce_capacity_listings_seller_status" ON "commerce_capacity_listings" USING btree ("seller_team_id","status","updated_at");
|
|
2950
|
-
CREATE INDEX "idx_commerce_capacity_listings_provider_status" ON "commerce_capacity_listings" USING btree ("capacity_provider_id","status");
|
|
2951
|
-
CREATE INDEX "idx_commerce_capacity_listings_lane_status" ON "commerce_capacity_listings" USING btree ("capacity_provider_lane_id","status");
|
|
2952
|
-
CREATE INDEX "idx_commerce_capacity_listings_access_status" ON "commerce_capacity_listings" USING btree ("access_level","status","updated_at");
|
|
2953
|
-
CREATE INDEX "idx_commerce_cart_items_cart_status" ON "commerce_cart_items" USING btree ("cart_id","status");
|
|
2954
|
-
CREATE INDEX "idx_commerce_cart_items_vendor_status" ON "commerce_cart_items" USING btree ("vendor_id","status","updated_at");
|
|
2955
|
-
CREATE INDEX "idx_commerce_cart_items_offer" ON "commerce_cart_items" USING btree ("offer_id");
|
|
2956
|
-
CREATE INDEX "idx_commerce_cart_items_price" ON "commerce_cart_items" USING btree ("price_id");
|
|
2957
|
-
CREATE INDEX "idx_commerce_carts_buyer_team_status" ON "commerce_carts" USING btree ("buyer_team_id","status","updated_at");
|
|
2958
|
-
CREATE INDEX "idx_commerce_carts_buyer_user_status" ON "commerce_carts" USING btree ("buyer_user_id","status","updated_at");
|
|
2959
|
-
CREATE INDEX "idx_commerce_checkouts_cart" ON "commerce_checkouts" USING btree ("cart_id");
|
|
2960
|
-
CREATE INDEX "idx_commerce_checkouts_buyer_team_status" ON "commerce_checkouts" USING btree ("buyer_team_id","status","updated_at");
|
|
2961
|
-
CREATE INDEX "idx_commerce_checkouts_buyer_user_status" ON "commerce_checkouts" USING btree ("buyer_user_id","status","updated_at");
|
|
2962
|
-
CREATE INDEX "idx_commerce_contributions_product_effective" ON "commerce_contributions" USING btree ("product_id","effective_at");
|
|
2963
|
-
CREATE INDEX "idx_commerce_contributions_version_effective" ON "commerce_contributions" USING btree ("product_version_id","effective_at");
|
|
2964
|
-
CREATE INDEX "idx_commerce_contributions_contributor" ON "commerce_contributions" USING btree ("contributor_type","contributor_id");
|
|
2965
|
-
CREATE INDEX "idx_commerce_entitlements_buyer_team_status" ON "commerce_entitlements" USING btree ("buyer_team_id","status","updated_at");
|
|
2966
|
-
CREATE INDEX "idx_commerce_entitlements_buyer_user_status" ON "commerce_entitlements" USING btree ("buyer_user_id","status","updated_at");
|
|
2967
|
-
CREATE INDEX "idx_commerce_entitlements_product_status" ON "commerce_entitlements" USING btree ("product_id","status");
|
|
2968
|
-
CREATE INDEX "idx_commerce_entitlements_offer_status" ON "commerce_entitlements" USING btree ("offer_id","status");
|
|
2969
|
-
CREATE INDEX "idx_commerce_entitlements_order" ON "commerce_entitlements" USING btree ("order_id");
|
|
2970
|
-
CREATE INDEX "idx_commerce_entitlements_subscription" ON "commerce_entitlements" USING btree ("subscription_id");
|
|
2971
|
-
CREATE INDEX "idx_commerce_entitlements_catalog_item" ON "commerce_entitlements" USING btree ("catalog_item_id");
|
|
2972
|
-
CREATE INDEX "idx_commerce_fulfillment_events_order" ON "commerce_fulfillment_events" USING btree ("order_id","created_at");
|
|
2973
|
-
CREATE INDEX "idx_commerce_fulfillment_events_entitlement" ON "commerce_fulfillment_events" USING btree ("entitlement_id","created_at");
|
|
2974
|
-
CREATE INDEX "idx_commerce_fulfillment_events_vendor_status" ON "commerce_fulfillment_events" USING btree ("vendor_id","status","created_at");
|
|
2975
|
-
CREATE INDEX "idx_commerce_fulfillment_events_product" ON "commerce_fulfillment_events" USING btree ("product_id","created_at");
|
|
2976
|
-
CREATE INDEX "idx_commerce_governance_events_object" ON "commerce_governance_events" USING btree ("object_type","object_id","created_at");
|
|
2977
|
-
CREATE INDEX "idx_commerce_governance_events_product" ON "commerce_governance_events" USING btree ("related_product_id","created_at");
|
|
2978
|
-
CREATE INDEX "idx_commerce_governance_events_offer" ON "commerce_governance_events" USING btree ("related_offer_id","created_at");
|
|
2979
|
-
CREATE INDEX "idx_commerce_governance_events_team" ON "commerce_governance_events" USING btree ("related_team_id","created_at");
|
|
2980
|
-
CREATE INDEX "idx_commerce_governance_policies_product" ON "commerce_governance_policies" USING btree ("product_id","status");
|
|
2981
|
-
CREATE INDEX "idx_commerce_governance_policies_team" ON "commerce_governance_policies" USING btree ("team_id","policy_kind","status");
|
|
2982
|
-
CREATE INDEX "idx_commerce_offers_product_status" ON "commerce_offers" USING btree ("product_id","status","updated_at");
|
|
2983
|
-
CREATE INDEX "idx_commerce_offers_vendor_status" ON "commerce_offers" USING btree ("vendor_id","status","updated_at");
|
|
2984
|
-
CREATE INDEX "idx_commerce_offers_seller_status" ON "commerce_offers" USING btree ("seller_team_id","status","updated_at");
|
|
2985
|
-
CREATE INDEX "idx_commerce_offers_active_price" ON "commerce_offers" USING btree ("active_price_id");
|
|
2986
|
-
CREATE INDEX "idx_commerce_offers_stripe_product" ON "commerce_offers" USING btree ("stripe_product_id");
|
|
2987
|
-
CREATE INDEX "idx_commerce_offers_stripe_status" ON "commerce_offers" USING btree ("stripe_product_status","updated_at");
|
|
2988
|
-
CREATE INDEX "idx_commerce_order_items_order" ON "commerce_order_items" USING btree ("order_id");
|
|
2989
|
-
CREATE INDEX "idx_commerce_order_items_product_status" ON "commerce_order_items" USING btree ("product_id","status");
|
|
2990
|
-
CREATE INDEX "idx_commerce_order_items_offer_status" ON "commerce_order_items" USING btree ("offer_id","status");
|
|
2991
|
-
CREATE INDEX "idx_commerce_order_items_entitlement" ON "commerce_order_items" USING btree ("entitlement_id");
|
|
2992
|
-
CREATE INDEX "idx_commerce_orders_checkout" ON "commerce_orders" USING btree ("checkout_id");
|
|
2993
|
-
CREATE INDEX "idx_commerce_orders_buyer_team_status" ON "commerce_orders" USING btree ("buyer_team_id","status","updated_at");
|
|
2994
|
-
CREATE INDEX "idx_commerce_orders_buyer_user_status" ON "commerce_orders" USING btree ("buyer_user_id","status","updated_at");
|
|
2995
|
-
CREATE INDEX "idx_commerce_orders_vendor_status" ON "commerce_orders" USING btree ("vendor_id","status","updated_at");
|
|
2996
|
-
CREATE INDEX "idx_commerce_orders_stripe_payment_intent" ON "commerce_orders" USING btree ("stripe_payment_intent_id");
|
|
2997
|
-
CREATE INDEX "idx_commerce_orders_stripe_subscription" ON "commerce_orders" USING btree ("stripe_subscription_id");
|
|
2998
|
-
CREATE INDEX "idx_commerce_ownership_product_effective" ON "commerce_ownership_records" USING btree ("product_id","effective_at");
|
|
2999
|
-
CREATE INDEX "idx_commerce_ownership_seller_effective" ON "commerce_ownership_records" USING btree ("seller_team_id","effective_at");
|
|
3000
|
-
CREATE INDEX "idx_commerce_ownership_model_effective" ON "commerce_ownership_records" USING btree ("model","effective_at");
|
|
3001
|
-
CREATE INDEX "idx_commerce_ownership_transfers_product" ON "commerce_ownership_transfers" USING btree ("product_id","effective_at");
|
|
3002
|
-
CREATE INDEX "idx_commerce_ownership_transfers_product_status" ON "commerce_ownership_transfers" USING btree ("product_id","status","effective_at");
|
|
3003
|
-
CREATE INDEX "idx_commerce_ownership_transfers_from_status" ON "commerce_ownership_transfers" USING btree ("from_ownership_record_id","status");
|
|
3004
|
-
CREATE INDEX "idx_commerce_ownership_transfers_to_status" ON "commerce_ownership_transfers" USING btree ("to_ownership_record_id","status");
|
|
3005
|
-
CREATE INDEX "idx_commerce_payment_groups_checkout" ON "commerce_payment_groups" USING btree ("checkout_id");
|
|
3006
|
-
CREATE INDEX "idx_commerce_payment_groups_order" ON "commerce_payment_groups" USING btree ("order_id");
|
|
3007
|
-
CREATE INDEX "idx_commerce_payment_groups_vendor_status" ON "commerce_payment_groups" USING btree ("vendor_id","status","updated_at");
|
|
3008
|
-
CREATE INDEX "idx_commerce_payment_groups_payment_intent" ON "commerce_payment_groups" USING btree ("stripe_payment_intent_id");
|
|
3009
|
-
CREATE INDEX "idx_commerce_payment_groups_subscription" ON "commerce_payment_groups" USING btree ("stripe_subscription_id");
|
|
3010
|
-
CREATE UNIQUE INDEX "idx_commerce_prices_offer_version" ON "commerce_prices" USING btree ("offer_id","price_version");
|
|
3011
|
-
CREATE INDEX "idx_commerce_prices_offer_status" ON "commerce_prices" USING btree ("offer_id","status");
|
|
3012
|
-
CREATE INDEX "idx_commerce_prices_stripe_price" ON "commerce_prices" USING btree ("stripe_price_id");
|
|
3013
|
-
CREATE INDEX "idx_commerce_prices_stripe_sync_status" ON "commerce_prices" USING btree ("stripe_sync_status","updated_at");
|
|
3014
|
-
CREATE UNIQUE INDEX "idx_commerce_product_versions_product_version" ON "commerce_product_versions" USING btree ("product_id","version");
|
|
3015
|
-
CREATE INDEX "idx_commerce_product_versions_product_status" ON "commerce_product_versions" USING btree ("product_id","status","created_at");
|
|
3016
|
-
CREATE INDEX "idx_commerce_product_versions_catalog_artifact" ON "commerce_product_versions" USING btree ("catalog_artifact_version_id");
|
|
3017
|
-
CREATE UNIQUE INDEX "idx_commerce_products_team_kind_slug" ON "commerce_products" USING btree ("seller_team_id","kind","slug");
|
|
3018
|
-
CREATE INDEX "idx_commerce_products_vendor_status" ON "commerce_products" USING btree ("vendor_id","status","updated_at");
|
|
3019
|
-
CREATE INDEX "idx_commerce_products_catalog_item" ON "commerce_products" USING btree ("catalog_item_id");
|
|
3020
|
-
CREATE INDEX "idx_commerce_products_ownership_model" ON "commerce_products" USING btree ("ownership_model","updated_at");
|
|
3021
|
-
CREATE UNIQUE INDEX "idx_commerce_refunds_stripe" ON "commerce_refunds" USING btree ("stripe_refund_id","stripe_connected_account_id");
|
|
3022
|
-
CREATE UNIQUE INDEX "idx_commerce_refunds_idempotency" ON "commerce_refunds" USING btree ("idempotency_key");
|
|
3023
|
-
CREATE INDEX "idx_commerce_refunds_order" ON "commerce_refunds" USING btree ("order_id","created_at");
|
|
3024
|
-
CREATE INDEX "idx_commerce_refunds_vendor_status" ON "commerce_refunds" USING btree ("vendor_id","status","updated_at");
|
|
3025
|
-
CREATE INDEX "idx_commerce_refunds_seller_status" ON "commerce_refunds" USING btree ("seller_team_id","status","updated_at");
|
|
3026
|
-
CREATE UNIQUE INDEX "idx_commerce_service_contracts_request_quote" ON "commerce_service_contracts" USING btree ("request_id","quote_id");
|
|
3027
|
-
CREATE INDEX "idx_commerce_service_contracts_vendor" ON "commerce_service_contracts" USING btree ("vendor_id","status","updated_at");
|
|
3028
|
-
CREATE INDEX "idx_commerce_service_contracts_seller" ON "commerce_service_contracts" USING btree ("seller_team_id","status","updated_at");
|
|
3029
|
-
CREATE INDEX "idx_commerce_service_contracts_buyer_team" ON "commerce_service_contracts" USING btree ("buyer_team_id","status","updated_at");
|
|
3030
|
-
CREATE INDEX "idx_commerce_service_contracts_buyer_user" ON "commerce_service_contracts" USING btree ("buyer_user_id","status","updated_at");
|
|
3031
|
-
CREATE INDEX "idx_commerce_service_contracts_order" ON "commerce_service_contracts" USING btree ("order_id");
|
|
3032
|
-
CREATE INDEX "idx_commerce_service_contracts_entitlement" ON "commerce_service_contracts" USING btree ("entitlement_id");
|
|
3033
|
-
CREATE INDEX "idx_commerce_service_contracts_project" ON "commerce_service_contracts" USING btree ("related_project_id");
|
|
3034
|
-
CREATE INDEX "idx_commerce_service_contracts_workday" ON "commerce_service_contracts" USING btree ("related_workday_id");
|
|
3035
|
-
CREATE INDEX "idx_commerce_service_events_request" ON "commerce_service_events" USING btree ("request_id","created_at");
|
|
3036
|
-
CREATE INDEX "idx_commerce_service_events_quote" ON "commerce_service_events" USING btree ("quote_id","created_at");
|
|
3037
|
-
CREATE INDEX "idx_commerce_service_events_contract" ON "commerce_service_events" USING btree ("contract_id","created_at");
|
|
3038
|
-
CREATE INDEX "idx_commerce_service_events_type" ON "commerce_service_events" USING btree ("event_type","created_at");
|
|
3039
|
-
CREATE UNIQUE INDEX "idx_commerce_service_quotes_request_version" ON "commerce_service_quotes" USING btree ("request_id","quote_version");
|
|
3040
|
-
CREATE INDEX "idx_commerce_service_quotes_request" ON "commerce_service_quotes" USING btree ("request_id","status","updated_at");
|
|
3041
|
-
CREATE INDEX "idx_commerce_service_quotes_vendor" ON "commerce_service_quotes" USING btree ("vendor_id","status","updated_at");
|
|
3042
|
-
CREATE INDEX "idx_commerce_service_quotes_seller" ON "commerce_service_quotes" USING btree ("seller_team_id","status","updated_at");
|
|
3043
|
-
CREATE INDEX "idx_commerce_service_requests_buyer_team" ON "commerce_service_requests" USING btree ("buyer_team_id","status","updated_at");
|
|
3044
|
-
CREATE INDEX "idx_commerce_service_requests_buyer_user" ON "commerce_service_requests" USING btree ("buyer_user_id","status","updated_at");
|
|
3045
|
-
CREATE INDEX "idx_commerce_service_requests_vendor" ON "commerce_service_requests" USING btree ("vendor_id","status","updated_at");
|
|
3046
|
-
CREATE INDEX "idx_commerce_service_requests_seller" ON "commerce_service_requests" USING btree ("seller_team_id","status","updated_at");
|
|
3047
|
-
CREATE INDEX "idx_commerce_service_requests_offer" ON "commerce_service_requests" USING btree ("offer_id","status");
|
|
3048
|
-
CREATE INDEX "idx_commerce_service_requests_project" ON "commerce_service_requests" USING btree ("related_project_id","status");
|
|
3049
|
-
CREATE INDEX "idx_commerce_service_requests_workday" ON "commerce_service_requests" USING btree ("related_workday_id","status");
|
|
3050
|
-
CREATE INDEX "idx_commerce_stewards_product_role" ON "commerce_stewardship_assignments" USING btree ("product_id","role");
|
|
3051
|
-
CREATE INDEX "idx_commerce_stewards_ownership_role" ON "commerce_stewardship_assignments" USING btree ("ownership_record_id","role");
|
|
3052
|
-
CREATE INDEX "idx_commerce_stewards_assignee" ON "commerce_stewardship_assignments" USING btree ("assignee_type","assignee_id");
|
|
3053
|
-
CREATE UNIQUE INDEX "idx_commerce_subscriptions_stripe" ON "commerce_subscriptions" USING btree ("stripe_subscription_id","stripe_connected_account_id");
|
|
3054
|
-
CREATE INDEX "idx_commerce_subscriptions_buyer_team_status" ON "commerce_subscriptions" USING btree ("buyer_team_id","status","updated_at");
|
|
3055
|
-
CREATE INDEX "idx_commerce_subscriptions_vendor_status" ON "commerce_subscriptions" USING btree ("vendor_id","status","updated_at");
|
|
3056
|
-
CREATE INDEX "idx_commerce_subscriptions_offer_status" ON "commerce_subscriptions" USING btree ("offer_id","status");
|
|
3057
|
-
CREATE INDEX "idx_commerce_succession_events_product" ON "commerce_succession_events" USING btree ("product_id","event_type","created_at");
|
|
3058
|
-
CREATE INDEX "idx_commerce_succession_events_ownership" ON "commerce_succession_events" USING btree ("ownership_record_id","event_type");
|
|
3059
|
-
CREATE INDEX "idx_commerce_succession_events_successor" ON "commerce_succession_events" USING btree ("successor_type","successor_id");
|
|
3060
|
-
CREATE UNIQUE INDEX "idx_commerce_vendor_stripe_accounts_vendor_env" ON "commerce_vendor_stripe_accounts" USING btree ("vendor_id","environment");
|
|
3061
|
-
CREATE UNIQUE INDEX "idx_commerce_vendor_stripe_accounts_stripe_env" ON "commerce_vendor_stripe_accounts" USING btree ("stripe_account_id","environment");
|
|
3062
|
-
CREATE INDEX "idx_commerce_vendor_stripe_accounts_team_env" ON "commerce_vendor_stripe_accounts" USING btree ("team_id","environment");
|
|
3063
|
-
CREATE INDEX "idx_commerce_vendor_stripe_accounts_status" ON "commerce_vendor_stripe_accounts" USING btree ("account_status","updated_at");
|
|
3064
|
-
CREATE UNIQUE INDEX "idx_commerce_vendors_team_id" ON "commerce_vendors" USING btree ("team_id");
|
|
3065
|
-
CREATE UNIQUE INDEX "idx_commerce_vendors_slug" ON "commerce_vendors" USING btree ("slug");
|
|
3066
|
-
CREATE INDEX "idx_commerce_vendors_status" ON "commerce_vendors" USING btree ("status","updated_at");
|
|
3067
|
-
CREATE INDEX "idx_commerce_vendors_trust_level" ON "commerce_vendors" USING btree ("trust_level","updated_at");
|
|
3068
|
-
CREATE UNIQUE INDEX "idx_commerce_webhook_events_provider_event" ON "commerce_webhook_events" USING btree ("provider","environment","event_id");
|
|
3069
|
-
CREATE INDEX "idx_commerce_webhook_events_status_received" ON "commerce_webhook_events" USING btree ("status","received_at");
|
|
3070
|
-
CREATE INDEX "idx_commerce_webhook_events_connected_type" ON "commerce_webhook_events" USING btree ("connected_account_id","event_type","received_at");
|
|
3071
|
-
CREATE INDEX "idx_commerce_webhook_events_order" ON "commerce_webhook_events" USING btree ("related_order_id");
|
|
3072
|
-
CREATE INDEX "idx_commerce_webhook_events_subscription" ON "commerce_webhook_events" USING btree ("related_subscription_id");
|
|
3073
|
-
CREATE UNIQUE INDEX "idx_commons_decisions_proposal" ON "commons_decisions" USING btree ("proposal_id");
|
|
3074
|
-
CREATE INDEX "idx_commons_decisions_status" ON "commons_decisions" USING btree ("status","updated_at");
|
|
3075
|
-
CREATE UNIQUE INDEX "idx_commons_delegations_active" ON "commons_delegations" USING btree ("from_participant_id","to_participant_id","scope","status");
|
|
3076
|
-
CREATE INDEX "idx_commons_delegations_to" ON "commons_delegations" USING btree ("to_participant_id","status");
|
|
3077
|
-
CREATE INDEX "idx_commons_governance_events_proposal" ON "commons_governance_events" USING btree ("proposal_id","created_at");
|
|
3078
|
-
CREATE INDEX "idx_commons_governance_events_participant" ON "commons_governance_events" USING btree ("participant_id","created_at");
|
|
3079
|
-
CREATE INDEX "idx_commons_governance_events_type" ON "commons_governance_events" USING btree ("event_type","created_at");
|
|
3080
|
-
CREATE UNIQUE INDEX "idx_commons_participants_user" ON "commons_participants" USING btree ("user_id");
|
|
3081
|
-
CREATE INDEX "idx_commons_participants_team_status" ON "commons_participants" USING btree ("team_id","status","updated_at");
|
|
3082
|
-
CREATE UNIQUE INDEX "idx_commons_proposal_backings_once" ON "commons_proposal_backings" USING btree ("proposal_id","participant_id");
|
|
3083
|
-
CREATE INDEX "idx_commons_proposal_backings_proposal" ON "commons_proposal_backings" USING btree ("proposal_id","created_at");
|
|
3084
|
-
CREATE UNIQUE INDEX "idx_commons_proposal_votes_once" ON "commons_proposal_votes" USING btree ("proposal_id","participant_id");
|
|
3085
|
-
CREATE INDEX "idx_commons_proposal_votes_proposal" ON "commons_proposal_votes" USING btree ("proposal_id","vote","updated_at");
|
|
3086
|
-
CREATE INDEX "idx_commons_proposals_status" ON "commons_proposals" USING btree ("status","updated_at");
|
|
3087
|
-
CREATE INDEX "idx_commons_proposals_participant" ON "commons_proposals" USING btree ("participant_id","status","updated_at");
|
|
3088
|
-
CREATE INDEX "idx_commons_proposals_scope" ON "commons_proposals" USING btree ("scope","status","updated_at");
|
|
3089
|
-
CREATE INDEX "idx_commons_questions_status" ON "commons_questions" USING btree ("status","updated_at");
|
|
3090
|
-
CREATE INDEX "idx_commons_questions_participant" ON "commons_questions" USING btree ("participant_id","status","updated_at");
|
|
3091
|
-
CREATE INDEX "idx_commons_weight_snapshots_participant" ON "commons_weight_snapshots" USING btree ("participant_id","created_at");
|
|
3092
|
-
CREATE UNIQUE INDEX "idx_credit_conversion_profiles_profile_key" ON "credit_conversion_profiles" USING btree ("task_signature","execution_profile_id","execution_provider_kind","native_unit");
|
|
3093
|
-
CREATE INDEX "idx_credit_conversion_profiles_kind_unit" ON "credit_conversion_profiles" USING btree ("execution_provider_kind","native_unit","updated_at");
|
|
3094
|
-
CREATE INDEX "idx_cursor_state_updated" ON "cursor_state" USING btree ("updated_at");
|
|
3095
|
-
CREATE INDEX "idx_decision_execution_inputs_decision" ON "decision_execution_inputs" USING btree ("decision_id","status","created_at");
|
|
3096
|
-
CREATE INDEX "idx_decision_execution_inputs_project" ON "decision_execution_inputs" USING btree ("project_id","status","mode","created_at");
|
|
3097
|
-
CREATE UNIQUE INDEX "idx_decision_planning_statuses_decision" ON "decision_planning_statuses" USING btree ("decision_id");
|
|
3098
|
-
CREATE INDEX "idx_decision_planning_statuses_project" ON "decision_planning_statuses" USING btree ("project_id","execution_readiness","updated_at");
|
|
3099
|
-
CREATE UNIQUE INDEX "idx_entitlements_project" ON "entitlements" USING btree ("project_id");
|
|
3100
|
-
CREATE INDEX "idx_execution_provider_native_limits_provider_scope" ON "execution_provider_native_limits" USING btree ("execution_provider_id","scope","native_unit");
|
|
3101
|
-
CREATE INDEX "idx_execution_provider_observations_provider_observed" ON "execution_provider_observations" USING btree ("execution_provider_id","observed_at");
|
|
3102
|
-
CREATE INDEX "idx_execution_providers_team_status" ON "execution_providers" USING btree ("team_id","status","kind");
|
|
3103
|
-
CREATE INDEX "idx_execution_providers_capacity_provider" ON "execution_providers" USING btree ("capacity_provider_id","status");
|
|
3104
|
-
CREATE INDEX "idx_github_app_installations_team_status" ON "github_app_installation_records" USING btree ("team_id","status","updated_at");
|
|
3105
|
-
CREATE UNIQUE INDEX "idx_github_app_installations_team_installation" ON "github_app_installation_records" USING btree ("team_id","installation_id");
|
|
3106
|
-
CREATE INDEX "idx_github_app_token_issuance_project" ON "github_app_token_issuance_records" USING btree ("team_id","project_id","status","updated_at");
|
|
3107
|
-
CREATE INDEX "idx_github_app_token_issuance_operation" ON "github_app_token_issuance_records" USING btree ("operation_id","status","expires_at");
|
|
3108
|
-
CREATE INDEX "idx_github_app_token_issuance_assignment" ON "github_app_token_issuance_records" USING btree ("assignment_id","status","expires_at");
|
|
3109
|
-
CREATE INDEX "idx_github_repository_grants_project" ON "github_repository_grants" USING btree ("team_id","project_id","status");
|
|
3110
|
-
CREATE UNIQUE INDEX "idx_github_repository_grants_repository" ON "github_repository_grants" USING btree ("team_id","repository");
|
|
3111
|
-
CREATE UNIQUE INDEX "idx_hub_launch_events_launch_seq" ON "hub_launch_events" USING btree ("launch_id","seq");
|
|
3112
|
-
CREATE INDEX "idx_hub_launches_hub_created" ON "hub_launches" USING btree ("hub_id","created_at");
|
|
3113
|
-
CREATE UNIQUE INDEX "idx_hub_repositories_hub_role" ON "hub_repositories" USING btree ("hub_id","role");
|
|
3114
|
-
CREATE INDEX "idx_hub_workspace_links_hub" ON "hub_workspace_links" USING btree ("hub_id");
|
|
3115
|
-
CREATE INDEX "idx_knowledge_packs_team_id" ON "knowledge_packs" USING btree ("team_id");
|
|
3116
|
-
CREATE INDEX "idx_lease_state_status_expires" ON "lease_state" USING btree ("status","lease_expires_at");
|
|
3117
|
-
CREATE INDEX "idx_lease_state_claimed_by" ON "lease_state" USING btree ("claimed_by","updated_at");
|
|
3118
|
-
CREATE INDEX "idx_message_queue_claimable" ON "message_queue" USING btree ("status","available_at","priority");
|
|
3119
|
-
CREATE INDEX "idx_message_queue_related" ON "message_queue" USING btree ("related_model","related_id","created_at");
|
|
3120
|
-
CREATE INDEX "idx_native_usage_observations_profile" ON "native_usage_observations" USING btree ("project_id","task_signature","execution_profile_id","created_at");
|
|
3121
|
-
CREATE INDEX "idx_native_usage_observations_provider" ON "native_usage_observations" USING btree ("execution_provider_id","created_at");
|
|
3122
|
-
CREATE INDEX "idx_planning_input_requests_decision" ON "planning_input_requests" USING btree ("decision_id","status","requested_at");
|
|
3123
|
-
CREATE INDEX "idx_planning_input_requests_project" ON "planning_input_requests" USING btree ("project_id","status","requested_at");
|
|
3124
|
-
CREATE UNIQUE INDEX "idx_platform_operation_events_seq" ON "platform_operation_events" USING btree ("operation_id","seq");
|
|
3125
|
-
CREATE UNIQUE INDEX "idx_platform_operations_idempotency" ON "platform_operations" USING btree ("namespace","operation","idempotency_key");
|
|
3126
|
-
CREATE INDEX "idx_platform_operations_runnable" ON "platform_operations" USING btree ("status","created_at");
|
|
3127
|
-
CREATE UNIQUE INDEX "idx_platform_repository_claims_active" ON "platform_repository_claims" USING btree ("repository_key","runner_id");
|
|
3128
|
-
CREATE INDEX "idx_platform_repository_claims_runner" ON "platform_repository_claims" USING btree ("runner_id","claim_state");
|
|
3129
|
-
CREATE INDEX "idx_priority_overrides_project_priority" ON "priority_overrides" USING btree ("project_id","priority","updated_at");
|
|
3130
|
-
CREATE INDEX "idx_priority_snapshots_project_generated" ON "priority_snapshots" USING btree ("project_id","generated_at");
|
|
3131
|
-
CREATE UNIQUE INDEX "idx_project_agent_classes_project_slug" ON "project_agent_classes" USING btree ("project_id","slug");
|
|
3132
|
-
CREATE INDEX "idx_project_agent_classes_team_project" ON "project_agent_classes" USING btree ("team_id","project_id","status");
|
|
3133
|
-
CREATE UNIQUE INDEX "idx_project_capability_grants_project_operation" ON "project_capability_grants" USING btree ("project_id","namespace","operation");
|
|
3134
|
-
CREATE INDEX "idx_project_deployment_events_deployment_sequence" ON "project_deployment_events" USING btree ("deployment_id","sequence");
|
|
3135
|
-
CREATE INDEX "idx_project_deployment_events_project_created" ON "project_deployment_events" USING btree ("project_id","created_at");
|
|
3136
|
-
CREATE INDEX "idx_project_deployment_events_operation" ON "project_deployment_events" USING btree ("operation_id");
|
|
3137
|
-
CREATE INDEX "idx_project_deployments_project_created" ON "project_deployments" USING btree ("project_id","created_at");
|
|
3138
|
-
CREATE INDEX "idx_project_deployments_project_environment" ON "project_deployments" USING btree ("project_id","environment","created_at");
|
|
3139
|
-
CREATE INDEX "idx_project_deployments_project_status" ON "project_deployments" USING btree ("project_id","status","updated_at");
|
|
3140
|
-
CREATE INDEX "idx_project_deployments_operation" ON "project_deployments" USING btree ("platform_operation_id");
|
|
3141
|
-
CREATE INDEX "idx_project_deployments_team_created" ON "project_deployments" USING btree ("team_id","created_at");
|
|
3142
|
-
CREATE UNIQUE INDEX "idx_project_deployments_idempotency" ON "project_deployments" USING btree ("project_id","idempotency_key");
|
|
3143
|
-
CREATE UNIQUE INDEX "idx_project_environments_project_environment" ON "project_environments" USING btree ("project_id","environment");
|
|
3144
|
-
CREATE UNIQUE INDEX "idx_project_infrastructure_resource_unique" ON "project_infrastructure_resources" USING btree ("project_id","environment","provider","resource_kind","logical_name");
|
|
3145
|
-
CREATE INDEX "idx_project_summary_snapshots_team_generated" ON "project_summary_snapshots" USING btree ("team_id","generated_at");
|
|
3146
|
-
CREATE INDEX "idx_project_update_plans_hub" ON "project_update_plans" USING btree ("hub_id","created_at");
|
|
3147
|
-
CREATE INDEX "idx_project_workday_summaries_project_environment_created" ON "project_workday_summaries" USING btree ("project_id","environment","created_at");
|
|
3148
|
-
CREATE UNIQUE INDEX "idx_projects_team_slug" ON "projects" USING btree ("team_id","slug");
|
|
3149
|
-
CREATE INDEX "idx_projects_team_id" ON "projects" USING btree ("team_id");
|
|
3150
|
-
CREATE INDEX "idx_provider_assignments_provider_status" ON "provider_assignments" USING btree ("capacity_provider_id","status","lease_expires_at");
|
|
3151
|
-
CREATE INDEX "idx_provider_assignments_project_mode" ON "provider_assignments" USING btree ("project_id","mode","status");
|
|
3152
|
-
CREATE INDEX "idx_provider_assignments_lease" ON "provider_assignments" USING btree ("capacity_provider_id","lease_state","lease_expires_at");
|
|
3153
|
-
CREATE INDEX "idx_provider_assignments_runner" ON "provider_assignments" USING btree ("runner_id","lease_state");
|
|
3154
|
-
CREATE UNIQUE INDEX "idx_provider_assignments_synthesis_key" ON "provider_assignments" USING btree ("team_id","synthesis_key");
|
|
3155
|
-
CREATE INDEX "idx_provider_assignments_decision" ON "provider_assignments" USING btree ("decision_id","status");
|
|
3156
|
-
CREATE INDEX "idx_provider_assignments_team_created" ON "provider_assignments" USING btree ("team_id","created_at");
|
|
3157
|
-
CREATE INDEX "idx_provider_availability_sessions_provider_status" ON "provider_availability_sessions" USING btree ("capacity_provider_id","status","checked_in_at");
|
|
3158
|
-
CREATE INDEX "idx_provider_availability_sessions_team_status" ON "provider_availability_sessions" USING btree ("team_id","status","checked_in_at");
|
|
3159
|
-
CREATE INDEX "idx_provider_credential_sessions_team_host" ON "provider_credential_sessions" USING btree ("team_id","host_kind","host_id","status");
|
|
3160
|
-
CREATE INDEX "idx_provider_credential_sessions_job" ON "provider_credential_sessions" USING btree ("job_id","status");
|
|
3161
|
-
CREATE UNIQUE INDEX "idx_remote_job_events_job_seq" ON "remote_job_events" USING btree ("job_id","seq");
|
|
3162
|
-
CREATE INDEX "idx_remote_jobs_project_status" ON "remote_jobs" USING btree ("project_id","status","created_at");
|
|
3163
|
-
CREATE INDEX "idx_remote_jobs_project_idempotency" ON "remote_jobs" USING btree ("project_id","idempotency_key");
|
|
3164
|
-
CREATE UNIQUE INDEX "idx_repository_claims_runner_repo" ON "repository_claims" USING btree ("project_id","repository_id","runner_id");
|
|
3165
|
-
CREATE INDEX "idx_repository_claims_repo_state" ON "repository_claims" USING btree ("project_id","repository_id","claim_state","updated_at");
|
|
3166
|
-
CREATE INDEX "idx_repository_hosts_team_provider" ON "repository_hosts" USING btree ("team_id","provider","status");
|
|
3167
|
-
CREATE UNIQUE INDEX "idx_repository_hosts_team_provider_name" ON "repository_hosts" USING btree ("team_id","provider","name");
|
|
3168
|
-
CREATE UNIQUE INDEX "idx_repository_hosts_platform_provider_name" ON "repository_hosts" USING btree ("provider","name");
|
|
3169
|
-
CREATE INDEX "idx_runner_scale_decisions_project_workday" ON "runner_scale_decisions" USING btree ("project_id","environment","work_day_id","created_at");
|
|
3170
|
-
CREATE INDEX "idx_runtime_records_type_lookup_updated" ON "runtime_records" USING btree ("record_type","lookup_key","updated_at");
|
|
3171
|
-
CREATE INDEX "idx_runtime_records_type_status_updated" ON "runtime_records" USING btree ("record_type","status","updated_at");
|
|
3172
|
-
CREATE INDEX "idx_runtime_task_events_task_created" ON "runtime_task_events" USING btree ("task_id","created_at");
|
|
3173
|
-
CREATE INDEX "idx_runtime_task_outputs_task_created" ON "runtime_task_outputs" USING btree ("task_id","created_at");
|
|
3174
|
-
CREATE INDEX "idx_runtime_tasks_project_workday_state" ON "runtime_tasks" USING btree ("project_id","work_day_id","state","created_at");
|
|
3175
|
-
CREATE INDEX "idx_scale_decisions_project_environment_pool_created" ON "scale_decisions" USING btree ("project_id","environment","pool_name","created_at");
|
|
3176
|
-
CREATE INDEX "idx_secret_metadata_team_project" ON "secret_metadata_records" USING btree ("team_id","project_id","status");
|
|
3177
|
-
CREATE INDEX "idx_secret_metadata_custody" ON "secret_metadata_records" USING btree ("custody_mode","status");
|
|
3178
|
-
CREATE UNIQUE INDEX "idx_secret_metadata_team_name" ON "secret_metadata_records" USING btree ("team_id","project_id","name");
|
|
3179
|
-
CREATE INDEX "idx_seed_runs_seed_created" ON "seed_runs" USING btree ("seed_name","created_at");
|
|
3180
|
-
CREATE INDEX "idx_seed_runs_state_created" ON "seed_runs" USING btree ("state","created_at");
|
|
3181
|
-
CREATE INDEX "idx_task_credit_ledger_work_day_created" ON "task_credit_ledger" USING btree ("work_day_id","created_at");
|
|
3182
|
-
CREATE INDEX "idx_task_estimates_project_signature" ON "task_estimates" USING btree ("project_id","task_signature","created_at");
|
|
3183
|
-
CREATE INDEX "idx_task_estimates_project_signature_profile" ON "task_estimates" USING btree ("project_id","task_signature","execution_profile_id","created_at");
|
|
3184
|
-
CREATE INDEX "idx_task_usage_actuals_project_signature" ON "task_usage_actuals" USING btree ("project_id","task_signature","created_at");
|
|
3185
|
-
CREATE INDEX "idx_task_usage_actuals_project_signature_profile" ON "task_usage_actuals" USING btree ("project_id","task_signature","execution_profile_id","created_at");
|
|
3186
|
-
CREATE INDEX "idx_task_usage_actuals_execution_provider" ON "task_usage_actuals" USING btree ("execution_provider_id","created_at");
|
|
3187
|
-
CREATE INDEX "idx_team_api_keys_prefix" ON "team_api_keys" USING btree ("key_prefix");
|
|
3188
|
-
CREATE INDEX "idx_team_inbox_items_team_created" ON "team_inbox_items" USING btree ("team_id","created_at");
|
|
3189
|
-
CREATE INDEX "idx_team_invites_team_status" ON "team_invites" USING btree ("team_id","status","created_at");
|
|
3190
|
-
CREATE INDEX "idx_team_invites_token_prefix" ON "team_invites" USING btree ("token_prefix");
|
|
3191
|
-
CREATE UNIQUE INDEX "idx_team_memberships_team_user" ON "team_memberships" USING btree ("team_id","user_id");
|
|
3192
|
-
CREATE INDEX "idx_team_web_hosts_team_provider" ON "team_web_hosts" USING btree ("team_id","provider","status");
|
|
3193
|
-
CREATE UNIQUE INDEX "idx_team_web_hosts_team_provider_name" ON "team_web_hosts" USING btree ("team_id","provider","name");
|
|
3194
|
-
CREATE UNIQUE INDEX "idx_teams_name" ON "teams" USING btree ("name");
|
|
3195
|
-
CREATE INDEX "idx_treedx_credential_issuance_assignment" ON "treedx_credential_issuance_records" USING btree ("assignment_id","status","expires_at");
|
|
3196
|
-
CREATE INDEX "idx_treedx_credential_issuance_project" ON "treedx_credential_issuance_records" USING btree ("project_id","status","updated_at");
|
|
3197
|
-
CREATE INDEX "idx_treedx_deployments_team_instance" ON "treedx_deployments" USING btree ("team_id","instance_id","created_at");
|
|
3198
|
-
CREATE INDEX "idx_treedx_instances_team_status" ON "treedx_instances" USING btree ("team_id","status");
|
|
3199
|
-
CREATE INDEX "idx_treedx_mirrors_team_instance" ON "treedx_mirrors" USING btree ("team_id","instance_id");
|
|
3200
|
-
CREATE UNIQUE INDEX "idx_treedx_project_libraries_project" ON "treedx_project_libraries" USING btree ("project_id");
|
|
3201
|
-
CREATE INDEX "idx_treedx_project_libraries_instance" ON "treedx_project_libraries" USING btree ("instance_id");
|
|
3202
|
-
CREATE INDEX "idx_treedx_project_proxy_audit_project" ON "treedx_project_proxy_audit" USING btree ("project_id","created_at");
|
|
3203
|
-
CREATE INDEX "idx_treedx_project_proxy_audit_assignment" ON "treedx_project_proxy_audit" USING btree ("assignment_id","created_at");
|
|
3204
|
-
CREATE INDEX "idx_treedx_project_proxy_audit_result" ON "treedx_project_proxy_audit" USING btree ("project_id","result_status","created_at");
|
|
3205
|
-
CREATE INDEX "idx_treedx_proxy_handles_assignment" ON "treedx_proxy_handles" USING btree ("assignment_id","status","expires_at");
|
|
3206
|
-
CREATE INDEX "idx_treedx_proxy_handles_project" ON "treedx_proxy_handles" USING btree ("project_id","status","updated_at");
|
|
3207
|
-
CREATE INDEX "idx_treedx_shares_team_scope" ON "treedx_shares" USING btree ("team_id","scope","status");
|
|
3208
|
-
CREATE INDEX "idx_user_email_addresses_user" ON "user_email_addresses" USING btree ("user_id","status","is_primary");
|
|
3209
|
-
CREATE UNIQUE INDEX "idx_user_email_addresses_normalized" ON "user_email_addresses" USING btree ("normalized_email");
|
|
3210
|
-
CREATE UNIQUE INDEX "idx_user_identities_provider_subject" ON "user_identities" USING btree ("provider","provider_subject");
|
|
3211
|
-
CREATE UNIQUE INDEX "idx_user_role_bindings_user_role" ON "user_role_bindings" USING btree ("user_id","role_id");
|
|
3212
|
-
CREATE UNIQUE INDEX "idx_users_username" ON "users" USING btree ("username");
|
|
3213
|
-
CREATE INDEX "idx_web_sessions_user_id" ON "web_sessions" USING btree ("user_id");
|
|
3214
|
-
CREATE INDEX "idx_workday_capacity_envelopes_project_status" ON "workday_capacity_envelopes" USING btree ("project_id","status","created_at");
|
|
3215
|
-
CREATE INDEX "idx_workday_capacity_envelopes_team_status" ON "workday_capacity_envelopes" USING btree ("team_id","status","created_at");
|
|
3216
|
-
CREATE INDEX "idx_workday_manager_leases_active" ON "workday_manager_leases" USING btree ("project_id","environment","state","heartbeat_at");
|
|
3217
|
-
CREATE INDEX "idx_workday_requests_project_environment_state" ON "workday_requests" USING btree ("project_id","environment","state","created_at");
|
|
3218
|
-
CREATE UNIQUE INDEX "idx_worker_runners_identity" ON "worker_runners" USING btree ("project_id","environment","runner_id");
|
|
3219
|
-
CREATE INDEX "idx_worker_runners_state_capacity" ON "worker_runners" USING btree ("project_id","environment","state","available_capacity");
|
|
3220
|
-
CREATE INDEX "idx_workflow_dispatch_records_operation" ON "workflow_dispatch_records" USING btree ("workflow_operation_id","status","created_at");
|
|
3221
|
-
CREATE INDEX "idx_workflow_dispatch_records_platform" ON "workflow_dispatch_records" USING btree ("platform_operation_id");
|
|
3222
|
-
CREATE INDEX "idx_workflow_operation_records_project" ON "workflow_operation_records" USING btree ("team_id","project_id","status");
|
|
3223
|
-
CREATE UNIQUE INDEX "idx_workflow_operation_records_operation" ON "workflow_operation_records" USING btree ("team_id","id");
|