@treeseed/sdk 0.13.0-rc.11 → 0.13.0-rc.110
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/README.md +23 -9
- package/dist/.treeseed-build-complete.json +1 -0
- package/dist/accounts/account-contracts.d.ts +6 -0
- package/dist/agent-capacity/artifact-mutation-receipt.d.ts +1 -1
- package/dist/agent-capacity/artifacts.d.ts +17 -1
- package/dist/agent-capacity/authority/agent-authority-presets.js +2 -1
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +304 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.js +44 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +10 -1
- package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.d.ts +25 -0
- package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.js +67 -0
- package/dist/agent-capacity/contracts/capacity/communication/communication-records.d.ts +1 -1
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +0 -2
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +1 -1
- package/dist/agent-capacity/contracts/configuration/configuration.js +1 -1
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -1
- package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +3 -3
- package/dist/agent-capacity/contracts/support/decision-work.d.ts +2 -3
- package/dist/agent-capacity/validation/activity-profile.js +25 -12
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1092 -1170
- package/dist/agent-capacity/validation/agent-definition-schema.js +11 -29
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +20 -20
- package/dist/agent-capacity/validation/configuration.d.ts +1 -1
- package/dist/agent-capacity/validation/configuration.js +1 -2
- package/dist/capacity/agents/agent-capacity.d.ts +2 -0
- package/dist/capacity/agents/agent-capacity.js +2 -0
- package/dist/capacity-provider/capability-ontology.d.ts +1495 -0
- package/dist/capacity-provider/capability-ontology.js +221 -0
- package/dist/capacity-provider/client.d.ts +24 -0
- package/dist/capacity-provider/client.js +11 -1
- package/dist/capacity-provider/contracts/environment-profiles.d.ts +255 -0
- package/dist/capacity-provider/contracts/environment-profiles.js +71 -0
- package/dist/capacity-provider/contracts/governance.d.ts +103 -35
- package/dist/capacity-provider/contracts/index.d.ts +1 -0
- package/dist/capacity-provider/contracts/index.js +1 -0
- package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
- package/dist/capacity-provider/core-capability-catalog.js +49 -0
- package/dist/capacity-provider/environment-catalog.d.ts +877 -0
- package/dist/capacity-provider/environment-catalog.js +116 -0
- package/dist/capacity-provider/index.d.ts +5 -0
- package/dist/capacity-provider/index.js +5 -0
- package/dist/capacity-provider/install-configuration.d.ts +39 -0
- package/dist/capacity-provider/install-configuration.js +18 -0
- package/dist/capacity-provider/sandbox-contracts.d.ts +548 -0
- package/dist/capacity-provider/sandbox-contracts.js +86 -0
- package/dist/capacity-provider/sandbox.d.ts +1 -0
- package/dist/capacity-provider/sandbox.js +1 -0
- package/dist/capacity-provider/validation.d.ts +2 -2
- package/dist/capacity-provider/validation.js +91 -55
- package/dist/configuration/secrets-capability.d.ts +5 -1
- package/dist/configuration/secrets-capability.js +5 -1
- package/dist/content/validation/agent-operational-content-schemas.d.ts +490 -168
- package/dist/content/validation/agent-operational-content-schemas.js +18 -3
- package/dist/content/validation/auxiliary-content-schemas.d.ts +160 -160
- package/dist/content/validation/content-model-schemas.d.ts +2943 -2747
- package/dist/content/validation/portable-content-data.d.ts +296 -292
- package/dist/deployment/ai/storage.d.ts +158 -0
- package/dist/deployment/ai/storage.js +32 -0
- package/dist/deployment/ai-hosting.d.ts +297 -0
- package/dist/deployment/ai-hosting.js +63 -0
- package/dist/deployment/ai-instance.d.ts +65 -0
- package/dist/deployment/ai-instance.js +30 -0
- package/dist/deployment/ai-mode.d.ts +454 -0
- package/dist/deployment/ai-mode.js +67 -0
- package/dist/deployment/canonical.d.ts +2 -0
- package/dist/deployment/canonical.js +17 -0
- package/dist/deployment/catalog.d.ts +16 -0
- package/dist/deployment/catalog.js +48 -0
- package/dist/deployment/hosted-topology-template.d.ts +449 -0
- package/dist/deployment/hosted-topology-template.js +56 -0
- package/dist/deployment/hosted-topology.d.ts +2698 -0
- package/dist/deployment/hosted-topology.js +468 -0
- package/dist/deployment/index.d.ts +13 -0
- package/dist/deployment/index.js +13 -0
- package/dist/deployment/postgres/contracts.d.ts +418 -0
- package/dist/deployment/postgres/contracts.js +83 -0
- package/dist/deployment/postgres/requirements.d.ts +14 -0
- package/dist/deployment/postgres/requirements.js +30 -0
- package/dist/deployment/postgres/transfer.d.ts +97 -0
- package/dist/deployment/postgres/transfer.js +29 -0
- package/dist/deployment/schemas.d.ts +8625 -0
- package/dist/deployment/schemas.js +455 -0
- package/dist/deployment/topology.d.ts +9 -0
- package/dist/deployment/topology.js +35 -0
- package/dist/development/index.d.ts +1 -0
- package/dist/development/index.js +1 -0
- package/dist/development/schemas.d.ts +3578 -0
- package/dist/development/schemas.js +199 -0
- package/dist/development/session-migration.d.ts +3 -0
- package/dist/development/session-migration.js +25 -0
- package/dist/entrypoints/clients/control-plane-client.d.ts +9 -1
- package/dist/entrypoints/clients/control-plane-client.js +17 -5
- package/dist/graph/context-query-contracts.d.ts +16 -1
- package/dist/graph/context-query-contracts.js +5 -0
- package/dist/guarantees/evidence-trust.d.ts +32 -0
- package/dist/guarantees/evidence-trust.js +47 -0
- package/dist/guarantees/index.d.ts +130 -0
- package/dist/guarantees/index.js +44 -0
- package/dist/identity/browser-session.d.ts +233 -0
- package/dist/identity/browser-session.js +51 -0
- package/dist/identity/contracts.d.ts +191 -0
- package/dist/identity/contracts.js +72 -0
- package/dist/identity/index.d.ts +3 -0
- package/dist/identity/index.js +3 -0
- package/dist/identity/runtime.d.ts +186 -0
- package/dist/identity/runtime.js +49 -0
- package/dist/model-registry/agent-operational-models.js +1 -1
- package/dist/operator-contracts/canonical-command-tree.js +465 -16
- package/dist/operator-contracts/catalog/admin-account-team-operations.d.ts +36 -0
- package/dist/operator-contracts/catalog/admin-account-team-operations.js +52 -0
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +163 -0
- package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
- package/dist/operator-contracts/catalog/communication-operations.d.ts +437 -0
- package/dist/operator-contracts/catalog/communication-operations.js +92 -0
- package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
- package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
- package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +399 -0
- package/dist/operator-contracts/catalog/hosted-topology-operations.js +79 -0
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +261 -0
- package/dist/operator-contracts/catalog/inbox-operations.js +36 -0
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +53 -0
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +23 -0
- package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.d.ts +3 -0
- package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.js +15 -0
- package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +127 -0
- package/dist/operator-contracts/catalog/knowledge-share-operations.js +25 -0
- package/dist/operator-contracts/catalog/provider-environment-commands.d.ts +4 -0
- package/dist/operator-contracts/catalog/provider-environment-commands.js +69 -0
- package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +41 -0
- package/dist/operator-contracts/catalog/provider-environment-operations.js +61 -0
- package/dist/operator-contracts/catalog/services/identity-commands.d.ts +2 -0
- package/dist/operator-contracts/catalog/services/identity-commands.js +12 -0
- package/dist/operator-contracts/catalog/services/secret-commands.d.ts +2 -0
- package/dist/operator-contracts/catalog/services/secret-commands.js +31 -0
- package/dist/operator-contracts/catalog/services/secret-operations.d.ts +62 -0
- package/dist/operator-contracts/catalog/services/secret-operations.js +51 -0
- package/dist/operator-contracts/catalog/treeai-operations.d.ts +13 -0
- package/dist/operator-contracts/catalog/treeai-operations.js +61 -0
- package/dist/operator-contracts/command-tree.d.ts +28 -0
- package/dist/operator-contracts/command-tree.js +49 -0
- package/dist/operator-contracts/communication/addressing.d.ts +8 -0
- package/dist/operator-contracts/communication/addressing.js +57 -0
- package/dist/operator-contracts/communication/contracts.d.ts +1818 -0
- package/dist/operator-contracts/communication/contracts.js +188 -0
- package/dist/operator-contracts/control-plane-operation.d.ts +9 -0
- package/dist/operator-contracts/control-plane-operation.js +12 -2
- package/dist/operator-contracts/control-plane-operations.d.ts +2255 -195
- package/dist/operator-contracts/control-plane-operations.js +247 -85
- package/dist/operator-contracts/inbox/contracts.d.ts +1099 -0
- package/dist/operator-contracts/inbox/contracts.js +134 -0
- package/dist/operator-contracts/index.d.ts +6 -0
- package/dist/operator-contracts/index.js +6 -0
- package/dist/operator-contracts/knowledge/contracts.d.ts +130 -0
- package/dist/operator-contracts/knowledge/contracts.js +39 -0
- package/dist/operator-contracts/mcp.d.ts +5 -0
- package/dist/operator-contracts/mcp.js +61 -0
- package/dist/operator-contracts/oauth.d.ts +45 -0
- package/dist/operator-contracts/oauth.js +7 -0
- package/dist/operator-contracts/operation-builder.d.ts +18 -0
- package/dist/operator-contracts/operation-builder.js +78 -0
- package/dist/operator-contracts/seed/seed-bundle.d.ts +138 -0
- package/dist/operator-contracts/seed/seed-bundle.js +68 -0
- package/dist/platform/contracts.d.ts +429 -0
- package/dist/platform/contracts.js +93 -0
- package/dist/platform/index.d.ts +6 -0
- package/dist/platform/index.js +6 -0
- package/dist/platform/inventory.d.ts +11 -0
- package/dist/platform/inventory.js +53 -0
- package/dist/platform/project-create.d.ts +49 -0
- package/dist/platform/project-create.js +75 -0
- package/dist/platform/schemas.d.ts +986 -0
- package/dist/platform/schemas.js +73 -0
- package/dist/platform/verification.d.ts +9 -0
- package/dist/platform/verification.js +104 -0
- package/dist/platform/workset.d.ts +21 -0
- package/dist/platform/workset.js +106 -0
- package/dist/secrets-capability/github-actions-encryption.d.ts +2 -0
- package/dist/secrets-capability/github-actions-encryption.js +11 -0
- package/dist/secrets-capability/provider-operation-contracts.d.ts +15 -1
- package/dist/secrets-capability/secret-contracts.d.ts +33 -0
- package/dist/secrets-capability/secret-contracts.js +49 -0
- package/dist/secrets-capability/service-provider-contracts.d.ts +5 -3
- package/dist/secrets-capability/service-provider-contracts.js +66 -50
- package/dist/secrets-capability/shared-access.d.ts +51 -0
- package/dist/secrets-capability/shared-access.js +36 -0
- package/dist/secrets-capability/shared-resources.d.ts +376 -0
- package/dist/secrets-capability/shared-resources.js +91 -0
- package/dist/secrets-capability/vault-contracts.d.ts +132 -0
- package/dist/secrets-capability/vault-contracts.js +56 -0
- package/dist/security/encrypted-envelope.d.ts +177 -0
- package/dist/security/encrypted-envelope.js +34 -0
- package/dist/security/envelope-codec.d.ts +38 -0
- package/dist/security/envelope-codec.js +96 -0
- package/dist/security/index.d.ts +2 -0
- package/dist/security/index.js +2 -0
- package/dist/site-contracts/catalog.d.ts +16 -0
- package/dist/site-contracts/catalog.js +19 -0
- package/dist/site-contracts/cloudflare.d.ts +48 -0
- package/dist/site-contracts/platform.d.ts +94 -0
- package/dist/site-contracts/plugin.d.ts +63 -0
- package/dist/site-contracts/plugin.js +26 -0
- package/dist/treeai/catalog.d.ts +1 -0
- package/dist/treeai/catalog.js +1 -0
- package/dist/treeai/client.d.ts +793 -0
- package/dist/treeai/client.js +44 -0
- package/dist/treeai/contract.d.ts +41 -0
- package/dist/treeai/contract.js +51 -0
- package/dist/treeai/generated/upstream.d.ts +770 -0
- package/dist/treeai/generated/upstream.js +4 -0
- package/dist/treeai/index.d.ts +4 -0
- package/dist/treeai/index.js +4 -0
- package/dist/treedx/client.d.ts +605 -0
- package/dist/treedx/client.js +39 -0
- package/dist/treedx/contract.d.ts +32 -0
- package/dist/treedx/contract.js +63 -0
- package/dist/treedx/index.d.ts +3 -0
- package/dist/treedx/index.js +2 -0
- package/dist/treedx/types.d.ts +8 -7
- package/dist/treedx/types.js +0 -7
- package/dist/types/agents/agent-activity-profile.d.ts +18 -36
- package/dist/types/agents/agent-trigger-kinds.d.ts +3 -5
- package/dist/types/agents/agent-trigger-kinds.js +1 -13
- package/package.json +64 -11
- package/dist/secrets-capability/service-vault-contracts.d.ts +0 -61
- package/dist/secrets-capability/service-vault-contracts.js +0 -39
- package/dist/treedx/accounts/auth.d.ts +0 -17
- package/dist/treedx/accounts/auth.js +0 -48
- package/dist/treedx/client/accounts/contracts/auth-mode.d.ts +0 -3
- package/dist/treedx/client/accounts/contracts/auth-mode.js +0 -6
- package/dist/treedx/client/build/creation/build-context.d.ts +0 -3
- package/dist/treedx/client/build/creation/build-context.js +0 -7
- package/dist/treedx/client/build/creation/build-snapshot.d.ts +0 -3
- package/dist/treedx/client/build/creation/build-snapshot.js +0 -8
- package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.d.ts +0 -3
- package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.js +0 -7
- package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.d.ts +0 -6
- package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.js +0 -10
- package/dist/treedx/client/methods.d.ts +0 -102
- package/dist/treedx/client/methods.js +0 -209
- package/dist/treedx/client/persistence/contracts/restore-storage.d.ts +0 -3
- package/dist/treedx/client/persistence/contracts/restore-storage.js +0 -6
- package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.d.ts +0 -3
- package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.js +0 -6
- package/dist/treedx/client/repositories/creation/register-repository.d.ts +0 -3
- package/dist/treedx/client/repositories/creation/register-repository.js +0 -7
- package/dist/treedx/client/repositories/queries/get-repository.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/get-repository.js +0 -7
- package/dist/treedx/client/repositories/queries/list-repository-paths.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/list-repository-paths.js +0 -7
- package/dist/treedx/client/repositories/queries/list-repository-refs.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/list-repository-refs.js +0 -12
- package/dist/treedx/client/repositories/queries/query-repository.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/query-repository.js +0 -7
- package/dist/treedx/client/repositories/queries/read-repository-file.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/read-repository-file.js +0 -6
- package/dist/treedx/client/repositories/queries/read-repository-files.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/read-repository-files.js +0 -7
- package/dist/treedx/client/repositories/queries/search-repository-files.d.ts +0 -3
- package/dist/treedx/client/repositories/queries/search-repository-files.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.js +0 -9
- package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.js +0 -6
- package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.d.ts +0 -5
- package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/health/contracts/health.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/health/contracts/health.js +0 -6
- package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.js +0 -19
- package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/health/contracts/status.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/health/contracts/status.js +0 -6
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.js +0 -6
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.d.ts +0 -6
- package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.js +0 -23
- package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.js +0 -8
- package/dist/treedx/client/support/contracts/treedx/search/contracts/search.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/search/contracts/search.js +0 -7
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.js +0 -8
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.js +0 -8
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.js +0 -15
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.js +0 -38
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.js +0 -15
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.js +0 -15
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.js +0 -14
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.js +0 -14
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.d.ts +0 -6
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.js +0 -41
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.d.ts +0 -2
- package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.js +0 -14
- package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.d.ts +0 -3
- package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.js +0 -7
- package/dist/treedx/client/support/creation/apply-changeset.d.ts +0 -3
- package/dist/treedx/client/support/creation/apply-changeset.js +0 -10
- package/dist/treedx/client/support/creation/apply-storage-migration.d.ts +0 -3
- package/dist/treedx/client/support/creation/apply-storage-migration.js +0 -7
- package/dist/treedx/client/support/creation/create-migration.d.ts +0 -6
- package/dist/treedx/client/support/creation/create-migration.js +0 -7
- package/dist/treedx/client/support/creation/export-artifact.d.ts +0 -3
- package/dist/treedx/client/support/creation/export-artifact.js +0 -8
- package/dist/treedx/client/support/creation/plan-storage-migration.d.ts +0 -3
- package/dist/treedx/client/support/creation/plan-storage-migration.js +0 -7
- package/dist/treedx/client/support/creation/request-binary.d.ts +0 -6
- package/dist/treedx/client/support/creation/request-binary.js +0 -42
- package/dist/treedx/client/support/creation/write-file.d.ts +0 -3
- package/dist/treedx/client/support/creation/write-file.js +0 -10
- package/dist/treedx/client/support/creation/write-files.d.ts +0 -3
- package/dist/treedx/client/support/creation/write-files.js +0 -12
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.js +0 -7
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.js +0 -7
- package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.js +0 -9
- package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.d.ts +0 -4
- package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.js +0 -6
- package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.js +0 -7
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.js +0 -7
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.js +0 -7
- package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.js +0 -7
- package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.js +0 -10
- package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.js +0 -9
- package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.js +0 -7
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.d.ts +0 -6
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.js +0 -7
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.d.ts +0 -6
- package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.js +0 -7
- package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.d.ts +0 -6
- package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.js +0 -6
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.d.ts +0 -15
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.js +0 -6
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.d.ts +0 -3
- package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.js +0 -7
- package/dist/treedx/client/support/retirement/cleanup-artifacts.d.ts +0 -3
- package/dist/treedx/client/support/retirement/cleanup-artifacts.js +0 -7
- package/dist/treedx/client/support/retirement/delete-artifact.d.ts +0 -3
- package/dist/treedx/client/support/retirement/delete-artifact.js +0 -7
- package/dist/treedx/client/support/retirement/delete-file.d.ts +0 -3
- package/dist/treedx/client/support/retirement/delete-file.js +0 -10
- package/dist/treedx/client/support/retirement/rollback-storage-migration.d.ts +0 -3
- package/dist/treedx/client/support/retirement/rollback-storage-migration.js +0 -7
- package/dist/treedx/client/support/updates/patch-file.d.ts +0 -3
- package/dist/treedx/client/support/updates/patch-file.js +0 -10
- package/dist/treedx/client/support/updates/refresh-search-index.d.ts +0 -3
- package/dist/treedx/client/support/updates/refresh-search-index.js +0 -8
- package/dist/treedx/client/treedx/blobs/contracts/download-blob.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/contracts/download-blob.js +0 -6
- package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.js +0 -8
- package/dist/treedx/client/treedx/blobs/creation/request-blob-download.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/request-blob-download.js +0 -27
- package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.js +0 -41
- package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.js +0 -27
- package/dist/treedx/client/treedx/blobs/creation/upload-blob.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/upload-blob.js +0 -6
- package/dist/treedx/client/treedx/blobs/creation/write-blob.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/creation/write-blob.js +0 -8
- package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.js +0 -8
- package/dist/treedx/client/treedx/blobs/queries/read-blob.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/queries/read-blob.js +0 -10
- package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.js +0 -7
- package/dist/treedx/client/treedx/blobs/retirement/delete-blob.d.ts +0 -3
- package/dist/treedx/client/treedx/blobs/retirement/delete-blob.js +0 -8
- package/dist/treedx/client/treedx/federation/contracts/federated-query.d.ts +0 -3
- package/dist/treedx/client/treedx/federation/contracts/federated-query.js +0 -7
- package/dist/treedx/client/treedx/federation/creation/plan-federated-query.d.ts +0 -3
- package/dist/treedx/client/treedx/federation/creation/plan-federated-query.js +0 -6
- package/dist/treedx/client/treedx/federation/queries/check-mirror-health.d.ts +0 -3
- package/dist/treedx/client/treedx/federation/queries/check-mirror-health.js +0 -7
- package/dist/treedx/client/treedx/federation/updates/promote-mirror.d.ts +0 -3
- package/dist/treedx/client/treedx/federation/updates/promote-mirror.js +0 -7
- package/dist/treedx/client/treedx/federation/updates/sync-mirror.d.ts +0 -3
- package/dist/treedx/client/treedx/federation/updates/sync-mirror.js +0 -7
- package/dist/treedx/client/treedx/graph/contracts/federated-context.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/contracts/federated-context.js +0 -7
- package/dist/treedx/client/treedx/graph/contracts/federated-graph.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/contracts/federated-graph.js +0 -7
- package/dist/treedx/client/treedx/graph/contracts/graph-search.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/contracts/graph-search.js +0 -8
- package/dist/treedx/client/treedx/graph/queries/get-graph-node.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/get-graph-node.js +0 -10
- package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.js +0 -7
- package/dist/treedx/client/treedx/graph/queries/get-subgraph.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/get-subgraph.js +0 -7
- package/dist/treedx/client/treedx/graph/queries/query-graph.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/query-graph.js +0 -7
- package/dist/treedx/client/treedx/graph/queries/search-graph-entities.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/search-graph-entities.js +0 -6
- package/dist/treedx/client/treedx/graph/queries/search-graph-files.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/search-graph-files.js +0 -6
- package/dist/treedx/client/treedx/graph/queries/search-graph-sections.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/queries/search-graph-sections.js +0 -6
- package/dist/treedx/client/treedx/graph/updates/refresh-graph.d.ts +0 -3
- package/dist/treedx/client/treedx/graph/updates/refresh-graph.js +0 -7
- package/dist/treedx/client/treedx/search/contracts/federated-search.d.ts +0 -3
- package/dist/treedx/client/treedx/search/contracts/federated-search.js +0 -7
- package/dist/treedx/client/treedx/workspaces/creation/create-workspace.d.ts +0 -3
- package/dist/treedx/client/treedx/workspaces/creation/create-workspace.js +0 -7
- package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.d.ts +0 -3
- package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.js +0 -12
- package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.d.ts +0 -2
- package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.js +0 -6
- package/dist/treedx/generated/openapi-types.d.ts +0 -3662
- package/dist/treedx/support/client.d.ts +0 -251
- package/dist/treedx/support/client.js +0 -252
- package/dist/treedx/support/errors.d.ts +0 -13
- package/dist/treedx/support/errors.js +0 -17
- package/dist/treedx/types/tree-dx-actor.d.ts +0 -209
- package/dist/treedx/types/tree-dx-actor.js +0 -8
- package/dist/treedx/types/tree-dx-artifact-list-response.d.ts +0 -13
- package/dist/treedx/types/tree-dx-changeset.d.ts +0 -51
- package/dist/treedx/types/tree-dx-changeset.js +0 -6
- package/dist/treedx/types/tree-dx-context-request.d.ts +0 -245
- package/dist/treedx/types/tree-dx-context-request.js +0 -0
- package/dist/treedx/types/tree-dx-exec-result.d.ts +0 -249
- package/dist/treedx/types/tree-dx-exec-result.js +0 -0
- package/dist/treedx/types/tree-dx-list-tree-request.d.ts +0 -222
- package/dist/treedx/types/tree-dx-list-tree-request.js +0 -0
- package/dist/treedx/types/tree-dx-push-request.d.ts +0 -229
- package/dist/treedx/types/tree-dx-push-request.js +0 -0
- /package/dist/{treedx/generated/openapi-types.js → site-contracts/cloudflare.js} +0 -0
- /package/dist/{treedx/types/tree-dx-artifact-list-response.js → site-contracts/platform.js} +0 -0
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
export declare const HOSTED_TOPOLOGY_OPERATIONS: {
|
|
2
|
+
readonly plan: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
3
|
+
teamId: string;
|
|
4
|
+
}, {}, {
|
|
5
|
+
declaration: {
|
|
6
|
+
id: string;
|
|
7
|
+
schemaVersion: "treeseed.hosted-topology/v1";
|
|
8
|
+
resources: {
|
|
9
|
+
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
|
|
10
|
+
provider: "cloudflare" | "railway";
|
|
11
|
+
id: string;
|
|
12
|
+
adoption: {
|
|
13
|
+
mode: "adopt-or-create";
|
|
14
|
+
replacement: "forbidden";
|
|
15
|
+
externalIdInput?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
dependsOn?: string[] | undefined;
|
|
18
|
+
parameters?: Record<string, {
|
|
19
|
+
input: string;
|
|
20
|
+
} | {
|
|
21
|
+
artifact: string;
|
|
22
|
+
} | {
|
|
23
|
+
resourceOutput: {
|
|
24
|
+
resourceId: string;
|
|
25
|
+
output: string;
|
|
26
|
+
};
|
|
27
|
+
} | {
|
|
28
|
+
literal: string | number | boolean;
|
|
29
|
+
}> | undefined;
|
|
30
|
+
}[];
|
|
31
|
+
teamId: string;
|
|
32
|
+
platform: {
|
|
33
|
+
repository: "treeseed-ai/platform";
|
|
34
|
+
commit: string;
|
|
35
|
+
};
|
|
36
|
+
mutation: "agent-authorized";
|
|
37
|
+
environment: "production" | "staging";
|
|
38
|
+
artifacts: Record<string, {
|
|
39
|
+
kind: "archive";
|
|
40
|
+
digest: string;
|
|
41
|
+
source: string;
|
|
42
|
+
format: "tar+gzip";
|
|
43
|
+
} | {
|
|
44
|
+
kind: "file";
|
|
45
|
+
digest: string;
|
|
46
|
+
source: string;
|
|
47
|
+
mediaType: string;
|
|
48
|
+
} | {
|
|
49
|
+
identity: string;
|
|
50
|
+
kind: "oci-image";
|
|
51
|
+
digest: string;
|
|
52
|
+
}>;
|
|
53
|
+
deploymentId: string;
|
|
54
|
+
stackId: string;
|
|
55
|
+
stateBackend: {
|
|
56
|
+
connectionRef: string;
|
|
57
|
+
};
|
|
58
|
+
providerConnections: Partial<Record<"cloudflare" | "railway", {
|
|
59
|
+
connectionRef: string;
|
|
60
|
+
}>>;
|
|
61
|
+
};
|
|
62
|
+
}, Record<string, unknown>>;
|
|
63
|
+
readonly apply: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
64
|
+
teamId: string;
|
|
65
|
+
}, {}, {
|
|
66
|
+
plan: {
|
|
67
|
+
schemaVersion: "treeseed.hosted-topology-plan/v1";
|
|
68
|
+
blockers: {
|
|
69
|
+
code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
|
|
70
|
+
message: string;
|
|
71
|
+
resourceId?: string | undefined;
|
|
72
|
+
}[];
|
|
73
|
+
planDigest: string;
|
|
74
|
+
actions: {
|
|
75
|
+
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
|
|
76
|
+
provider: "cloudflare" | "railway";
|
|
77
|
+
action: "noop" | "create" | "adopt" | "update";
|
|
78
|
+
resourceId: string;
|
|
79
|
+
providerResourceId: string | null;
|
|
80
|
+
desiredResource: {
|
|
81
|
+
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
|
|
82
|
+
provider: "cloudflare" | "railway";
|
|
83
|
+
id: string;
|
|
84
|
+
adoption: {
|
|
85
|
+
mode: "adopt-or-create";
|
|
86
|
+
replacement: "forbidden";
|
|
87
|
+
externalIdInput?: string | undefined;
|
|
88
|
+
};
|
|
89
|
+
dependsOn?: string[] | undefined;
|
|
90
|
+
parameters?: Record<string, {
|
|
91
|
+
input: string;
|
|
92
|
+
} | {
|
|
93
|
+
artifact: string;
|
|
94
|
+
} | {
|
|
95
|
+
resourceOutput: {
|
|
96
|
+
resourceId: string;
|
|
97
|
+
output: string;
|
|
98
|
+
};
|
|
99
|
+
} | {
|
|
100
|
+
literal: string | number | boolean;
|
|
101
|
+
}> | undefined;
|
|
102
|
+
};
|
|
103
|
+
desiredDigest: string;
|
|
104
|
+
previousDigest: string | null;
|
|
105
|
+
}[];
|
|
106
|
+
teamId: string;
|
|
107
|
+
environment: "production" | "staging";
|
|
108
|
+
executable: false;
|
|
109
|
+
artifacts: Record<string, {
|
|
110
|
+
kind: "archive";
|
|
111
|
+
digest: string;
|
|
112
|
+
source: string;
|
|
113
|
+
format: "tar+gzip";
|
|
114
|
+
} | {
|
|
115
|
+
kind: "file";
|
|
116
|
+
digest: string;
|
|
117
|
+
source: string;
|
|
118
|
+
mediaType: string;
|
|
119
|
+
} | {
|
|
120
|
+
identity: string;
|
|
121
|
+
kind: "oci-image";
|
|
122
|
+
digest: string;
|
|
123
|
+
}>;
|
|
124
|
+
planId: string;
|
|
125
|
+
deploymentId: string;
|
|
126
|
+
stackId: string;
|
|
127
|
+
stateBackend: {
|
|
128
|
+
type: "s3";
|
|
129
|
+
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
130
|
+
key: string;
|
|
131
|
+
teamId: string;
|
|
132
|
+
environment: "production" | "staging";
|
|
133
|
+
deploymentId: string;
|
|
134
|
+
bucket: string;
|
|
135
|
+
stackId: string;
|
|
136
|
+
connectionRef: string;
|
|
137
|
+
region: string;
|
|
138
|
+
encryptionKeyRef: string;
|
|
139
|
+
bindingDigest: string;
|
|
140
|
+
endpoint?: string | undefined;
|
|
141
|
+
usePathStyle?: boolean | undefined;
|
|
142
|
+
} | null;
|
|
143
|
+
providerConnections: Partial<Record<"cloudflare" | "railway", {
|
|
144
|
+
connectionRef: string;
|
|
145
|
+
nonSecretConfig: Record<string, string | number | boolean>;
|
|
146
|
+
}>>;
|
|
147
|
+
declarationDigest: string;
|
|
148
|
+
topologyId: string;
|
|
149
|
+
platformCommit: string;
|
|
150
|
+
authorization: "authenticated-agent";
|
|
151
|
+
};
|
|
152
|
+
}, Record<string, unknown>>;
|
|
153
|
+
readonly status: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
154
|
+
teamId: string;
|
|
155
|
+
}, {}, undefined, {
|
|
156
|
+
operation: Record<string, unknown> | null;
|
|
157
|
+
receipt: {
|
|
158
|
+
state: "known-good";
|
|
159
|
+
schemaVersion: "treeseed.hosted-topology-receipt/v1";
|
|
160
|
+
resources: {
|
|
161
|
+
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
|
|
162
|
+
provider: "cloudflare" | "railway";
|
|
163
|
+
state: "missing" | "degraded" | "healthy";
|
|
164
|
+
resourceId: string;
|
|
165
|
+
providerResourceId: string | null;
|
|
166
|
+
managedBy: "external" | "treeseed" | null;
|
|
167
|
+
observedDigest: string | null;
|
|
168
|
+
observedAt: string;
|
|
169
|
+
}[];
|
|
170
|
+
planDigest: string;
|
|
171
|
+
teamId: string;
|
|
172
|
+
environment: "production" | "staging";
|
|
173
|
+
completedAt: string;
|
|
174
|
+
receiptId: string;
|
|
175
|
+
deploymentId: string;
|
|
176
|
+
stackId: string;
|
|
177
|
+
declarationDigest: string;
|
|
178
|
+
topologyId: string;
|
|
179
|
+
platformCommit: string;
|
|
180
|
+
backendBindingDigest: string;
|
|
181
|
+
previousResources: {
|
|
182
|
+
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
|
|
183
|
+
provider: "cloudflare" | "railway";
|
|
184
|
+
state: "missing" | "degraded" | "healthy";
|
|
185
|
+
resourceId: string;
|
|
186
|
+
providerResourceId: string | null;
|
|
187
|
+
managedBy: "external" | "treeseed" | null;
|
|
188
|
+
observedDigest: string | null;
|
|
189
|
+
observedAt: string;
|
|
190
|
+
}[];
|
|
191
|
+
} | null;
|
|
192
|
+
}>;
|
|
193
|
+
readonly rollback: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
194
|
+
teamId: string;
|
|
195
|
+
}, {}, {
|
|
196
|
+
execution: {
|
|
197
|
+
schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
|
|
198
|
+
teamId: string;
|
|
199
|
+
environment: "production" | "staging";
|
|
200
|
+
rollback: {
|
|
201
|
+
schemaVersion: "treeseed.hosted-topology-rollback/v1";
|
|
202
|
+
teamId: string;
|
|
203
|
+
environment: "production" | "staging";
|
|
204
|
+
operations: {
|
|
205
|
+
action: "noop" | "restore" | "delete-created";
|
|
206
|
+
resourceId: string;
|
|
207
|
+
providerResourceId: string;
|
|
208
|
+
targetDigest: string | null;
|
|
209
|
+
}[];
|
|
210
|
+
deploymentId: string;
|
|
211
|
+
stackId: string;
|
|
212
|
+
backendBindingDigest: string;
|
|
213
|
+
rollbackId: string;
|
|
214
|
+
sourceReceiptId: string;
|
|
215
|
+
rollbackDigest: string;
|
|
216
|
+
};
|
|
217
|
+
deploymentId: string;
|
|
218
|
+
stackId: string;
|
|
219
|
+
topologyId: string;
|
|
220
|
+
backendBindingDigest: string;
|
|
221
|
+
sourceReceiptId: string;
|
|
222
|
+
sourcePlanDigest: string;
|
|
223
|
+
targetPlanDigest: string;
|
|
224
|
+
executionDigest: string;
|
|
225
|
+
};
|
|
226
|
+
sourcePlan: {
|
|
227
|
+
schemaVersion: "treeseed.hosted-topology-plan/v1";
|
|
228
|
+
blockers: {
|
|
229
|
+
code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
|
|
230
|
+
message: string;
|
|
231
|
+
resourceId?: string | undefined;
|
|
232
|
+
}[];
|
|
233
|
+
planDigest: string;
|
|
234
|
+
actions: {
|
|
235
|
+
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
|
|
236
|
+
provider: "cloudflare" | "railway";
|
|
237
|
+
action: "noop" | "create" | "adopt" | "update";
|
|
238
|
+
resourceId: string;
|
|
239
|
+
providerResourceId: string | null;
|
|
240
|
+
desiredResource: {
|
|
241
|
+
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
|
|
242
|
+
provider: "cloudflare" | "railway";
|
|
243
|
+
id: string;
|
|
244
|
+
adoption: {
|
|
245
|
+
mode: "adopt-or-create";
|
|
246
|
+
replacement: "forbidden";
|
|
247
|
+
externalIdInput?: string | undefined;
|
|
248
|
+
};
|
|
249
|
+
dependsOn?: string[] | undefined;
|
|
250
|
+
parameters?: Record<string, {
|
|
251
|
+
input: string;
|
|
252
|
+
} | {
|
|
253
|
+
artifact: string;
|
|
254
|
+
} | {
|
|
255
|
+
resourceOutput: {
|
|
256
|
+
resourceId: string;
|
|
257
|
+
output: string;
|
|
258
|
+
};
|
|
259
|
+
} | {
|
|
260
|
+
literal: string | number | boolean;
|
|
261
|
+
}> | undefined;
|
|
262
|
+
};
|
|
263
|
+
desiredDigest: string;
|
|
264
|
+
previousDigest: string | null;
|
|
265
|
+
}[];
|
|
266
|
+
teamId: string;
|
|
267
|
+
environment: "production" | "staging";
|
|
268
|
+
executable: false;
|
|
269
|
+
artifacts: Record<string, {
|
|
270
|
+
kind: "archive";
|
|
271
|
+
digest: string;
|
|
272
|
+
source: string;
|
|
273
|
+
format: "tar+gzip";
|
|
274
|
+
} | {
|
|
275
|
+
kind: "file";
|
|
276
|
+
digest: string;
|
|
277
|
+
source: string;
|
|
278
|
+
mediaType: string;
|
|
279
|
+
} | {
|
|
280
|
+
identity: string;
|
|
281
|
+
kind: "oci-image";
|
|
282
|
+
digest: string;
|
|
283
|
+
}>;
|
|
284
|
+
planId: string;
|
|
285
|
+
deploymentId: string;
|
|
286
|
+
stackId: string;
|
|
287
|
+
stateBackend: {
|
|
288
|
+
type: "s3";
|
|
289
|
+
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
290
|
+
key: string;
|
|
291
|
+
teamId: string;
|
|
292
|
+
environment: "production" | "staging";
|
|
293
|
+
deploymentId: string;
|
|
294
|
+
bucket: string;
|
|
295
|
+
stackId: string;
|
|
296
|
+
connectionRef: string;
|
|
297
|
+
region: string;
|
|
298
|
+
encryptionKeyRef: string;
|
|
299
|
+
bindingDigest: string;
|
|
300
|
+
endpoint?: string | undefined;
|
|
301
|
+
usePathStyle?: boolean | undefined;
|
|
302
|
+
} | null;
|
|
303
|
+
providerConnections: Partial<Record<"cloudflare" | "railway", {
|
|
304
|
+
connectionRef: string;
|
|
305
|
+
nonSecretConfig: Record<string, string | number | boolean>;
|
|
306
|
+
}>>;
|
|
307
|
+
declarationDigest: string;
|
|
308
|
+
topologyId: string;
|
|
309
|
+
platformCommit: string;
|
|
310
|
+
authorization: "authenticated-agent";
|
|
311
|
+
};
|
|
312
|
+
targetPlan: {
|
|
313
|
+
schemaVersion: "treeseed.hosted-topology-plan/v1";
|
|
314
|
+
blockers: {
|
|
315
|
+
code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
|
|
316
|
+
message: string;
|
|
317
|
+
resourceId?: string | undefined;
|
|
318
|
+
}[];
|
|
319
|
+
planDigest: string;
|
|
320
|
+
actions: {
|
|
321
|
+
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
|
|
322
|
+
provider: "cloudflare" | "railway";
|
|
323
|
+
action: "noop" | "create" | "adopt" | "update";
|
|
324
|
+
resourceId: string;
|
|
325
|
+
providerResourceId: string | null;
|
|
326
|
+
desiredResource: {
|
|
327
|
+
kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
|
|
328
|
+
provider: "cloudflare" | "railway";
|
|
329
|
+
id: string;
|
|
330
|
+
adoption: {
|
|
331
|
+
mode: "adopt-or-create";
|
|
332
|
+
replacement: "forbidden";
|
|
333
|
+
externalIdInput?: string | undefined;
|
|
334
|
+
};
|
|
335
|
+
dependsOn?: string[] | undefined;
|
|
336
|
+
parameters?: Record<string, {
|
|
337
|
+
input: string;
|
|
338
|
+
} | {
|
|
339
|
+
artifact: string;
|
|
340
|
+
} | {
|
|
341
|
+
resourceOutput: {
|
|
342
|
+
resourceId: string;
|
|
343
|
+
output: string;
|
|
344
|
+
};
|
|
345
|
+
} | {
|
|
346
|
+
literal: string | number | boolean;
|
|
347
|
+
}> | undefined;
|
|
348
|
+
};
|
|
349
|
+
desiredDigest: string;
|
|
350
|
+
previousDigest: string | null;
|
|
351
|
+
}[];
|
|
352
|
+
teamId: string;
|
|
353
|
+
environment: "production" | "staging";
|
|
354
|
+
executable: false;
|
|
355
|
+
artifacts: Record<string, {
|
|
356
|
+
kind: "archive";
|
|
357
|
+
digest: string;
|
|
358
|
+
source: string;
|
|
359
|
+
format: "tar+gzip";
|
|
360
|
+
} | {
|
|
361
|
+
kind: "file";
|
|
362
|
+
digest: string;
|
|
363
|
+
source: string;
|
|
364
|
+
mediaType: string;
|
|
365
|
+
} | {
|
|
366
|
+
identity: string;
|
|
367
|
+
kind: "oci-image";
|
|
368
|
+
digest: string;
|
|
369
|
+
}>;
|
|
370
|
+
planId: string;
|
|
371
|
+
deploymentId: string;
|
|
372
|
+
stackId: string;
|
|
373
|
+
stateBackend: {
|
|
374
|
+
type: "s3";
|
|
375
|
+
schemaVersion: "treeseed.hosted-state-backend/v1";
|
|
376
|
+
key: string;
|
|
377
|
+
teamId: string;
|
|
378
|
+
environment: "production" | "staging";
|
|
379
|
+
deploymentId: string;
|
|
380
|
+
bucket: string;
|
|
381
|
+
stackId: string;
|
|
382
|
+
connectionRef: string;
|
|
383
|
+
region: string;
|
|
384
|
+
encryptionKeyRef: string;
|
|
385
|
+
bindingDigest: string;
|
|
386
|
+
endpoint?: string | undefined;
|
|
387
|
+
usePathStyle?: boolean | undefined;
|
|
388
|
+
} | null;
|
|
389
|
+
providerConnections: Partial<Record<"cloudflare" | "railway", {
|
|
390
|
+
connectionRef: string;
|
|
391
|
+
nonSecretConfig: Record<string, string | number | boolean>;
|
|
392
|
+
}>>;
|
|
393
|
+
declarationDigest: string;
|
|
394
|
+
topologyId: string;
|
|
395
|
+
platformCommit: string;
|
|
396
|
+
authorization: "authenticated-agent";
|
|
397
|
+
};
|
|
398
|
+
}, Record<string, unknown>>;
|
|
399
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { hostedTopologyDeclarationSchema, hostedTopologyPlanSchema, hostedTopologyReceiptSchema, hostedTopologyRollbackExecutionSchema } from "../../deployment/hosted-topology.js";
|
|
3
|
+
import { defineOperation } from "../operation-builder.js";
|
|
4
|
+
const teamPath = z.object({ teamId: z.string().min(1) }).strict();
|
|
5
|
+
const empty = z.object({}).strict();
|
|
6
|
+
const none = z.undefined();
|
|
7
|
+
const operationReceipt = z.record(z.unknown());
|
|
8
|
+
const HOSTED_TOPOLOGY_OPERATIONS = {
|
|
9
|
+
plan: defineOperation({
|
|
10
|
+
operationId: "infrastructure.topology.plan",
|
|
11
|
+
description: "Plan exact hosted topology reconciliation from authoritative provider observations.",
|
|
12
|
+
rest: { method: "POST", path: "/v1/teams/{teamId}/infrastructure/topology/plan" },
|
|
13
|
+
parameters: "treeseed.infrastructure.topology.plan.parameters/v1",
|
|
14
|
+
capability: "infrastructure.read",
|
|
15
|
+
authentication: "oauth",
|
|
16
|
+
oauthScopes: ["treeseed:read"],
|
|
17
|
+
kind: "read",
|
|
18
|
+
riskClass: "ordinary",
|
|
19
|
+
confirmation: "never",
|
|
20
|
+
surfaces: ["rest", "cli"],
|
|
21
|
+
cacheScope: "none",
|
|
22
|
+
pagination: "none",
|
|
23
|
+
idempotencyRequired: false
|
|
24
|
+
}, { path: teamPath, query: empty, body: z.object({ declaration: hostedTopologyDeclarationSchema }).strict(), output: operationReceipt }),
|
|
25
|
+
apply: defineOperation({
|
|
26
|
+
operationId: "infrastructure.topology.apply",
|
|
27
|
+
description: "Apply an exact agent-authorized hosted topology plan through the operations runner.",
|
|
28
|
+
rest: { method: "POST", path: "/v1/teams/{teamId}/infrastructure/topology/apply" },
|
|
29
|
+
parameters: "treeseed.infrastructure.topology.apply.parameters/v1",
|
|
30
|
+
capability: "infrastructure.write",
|
|
31
|
+
authentication: "oauth",
|
|
32
|
+
oauthScopes: ["treeseed:admin"],
|
|
33
|
+
kind: "mutation",
|
|
34
|
+
riskClass: "authority",
|
|
35
|
+
confirmation: "input_required",
|
|
36
|
+
surfaces: ["rest", "cli"],
|
|
37
|
+
cacheScope: "none",
|
|
38
|
+
pagination: "none",
|
|
39
|
+
concurrencyRequired: true
|
|
40
|
+
}, { path: teamPath, query: empty, body: z.object({ plan: hostedTopologyPlanSchema }).strict(), output: operationReceipt }),
|
|
41
|
+
status: defineOperation({
|
|
42
|
+
operationId: "infrastructure.topology.status",
|
|
43
|
+
description: "Read the latest authoritative hosted topology receipt and operation state.",
|
|
44
|
+
rest: { method: "GET", path: "/v1/teams/{teamId}/infrastructure/topology" },
|
|
45
|
+
parameters: "treeseed.infrastructure.topology.status.parameters/v1",
|
|
46
|
+
capability: "infrastructure.read",
|
|
47
|
+
authentication: "oauth",
|
|
48
|
+
oauthScopes: ["treeseed:read"],
|
|
49
|
+
kind: "read",
|
|
50
|
+
riskClass: "ordinary",
|
|
51
|
+
confirmation: "never",
|
|
52
|
+
surfaces: ["rest", "cli"],
|
|
53
|
+
cacheScope: "principal",
|
|
54
|
+
pagination: "none"
|
|
55
|
+
}, { path: teamPath, query: empty, body: none, output: z.object({ receipt: hostedTopologyReceiptSchema.nullable(), operation: operationReceipt.nullable() }).strict() }),
|
|
56
|
+
rollback: defineOperation({
|
|
57
|
+
operationId: "infrastructure.topology.rollback",
|
|
58
|
+
description: "Restore exact prior hosted topology lineage from a known-good receipt.",
|
|
59
|
+
rest: { method: "POST", path: "/v1/teams/{teamId}/infrastructure/topology/rollback" },
|
|
60
|
+
parameters: "treeseed.infrastructure.topology.rollback.parameters/v1",
|
|
61
|
+
capability: "infrastructure.write",
|
|
62
|
+
authentication: "oauth",
|
|
63
|
+
oauthScopes: ["treeseed:admin"],
|
|
64
|
+
kind: "mutation",
|
|
65
|
+
riskClass: "destructive",
|
|
66
|
+
confirmation: "input_required",
|
|
67
|
+
surfaces: ["rest", "cli"],
|
|
68
|
+
cacheScope: "none",
|
|
69
|
+
pagination: "none",
|
|
70
|
+
concurrencyRequired: true
|
|
71
|
+
}, { path: teamPath, query: empty, body: z.object({
|
|
72
|
+
execution: hostedTopologyRollbackExecutionSchema,
|
|
73
|
+
sourcePlan: hostedTopologyPlanSchema,
|
|
74
|
+
targetPlan: hostedTopologyPlanSchema
|
|
75
|
+
}).strict(), output: operationReceipt })
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
HOSTED_TOPOLOGY_OPERATIONS
|
|
79
|
+
};
|