@xemahq/contracts 0.81.0 → 0.83.0
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/dist/.source-stamp.json +2 -2
- package/dist/address/lib/resource-instance-address.d.ts.map +1 -1
- package/dist/address/lib/resource-instance-address.js.map +1 -1
- package/dist/agent-composition/lib/agent-ref-resolution.d.ts.map +1 -1
- package/dist/agent-composition/lib/agent-ref-resolution.js.map +1 -1
- package/dist/agent-composition/lib/agent.d.ts.map +1 -1
- package/dist/agent-composition/lib/agent.js.map +1 -1
- package/dist/agent-session/lib/lifecycle.d.ts +1 -1
- package/dist/agent-workspace/index.d.ts +1 -0
- package/dist/agent-workspace/index.d.ts.map +1 -1
- package/dist/agent-workspace/index.js +1 -0
- package/dist/agent-workspace/index.js.map +1 -1
- package/dist/agent-workspace/lib/interactive-workspace-layout.d.ts +25 -0
- package/dist/agent-workspace/lib/interactive-workspace-layout.d.ts.map +1 -0
- package/dist/agent-workspace/lib/interactive-workspace-layout.js +72 -0
- package/dist/agent-workspace/lib/interactive-workspace-layout.js.map +1 -0
- package/dist/artifact-store/index.d.ts +3 -0
- package/dist/artifact-store/index.d.ts.map +1 -0
- package/dist/artifact-store/index.js +19 -0
- package/dist/artifact-store/index.js.map +1 -0
- package/dist/artifact-store/lib/artifact-store-errors.d.ts +14 -0
- package/dist/artifact-store/lib/artifact-store-errors.d.ts.map +1 -0
- package/dist/artifact-store/lib/artifact-store-errors.js +41 -0
- package/dist/artifact-store/lib/artifact-store-errors.js.map +1 -0
- package/dist/artifact-store/lib/artifact-versioning-mode.d.ts +6 -0
- package/dist/artifact-store/lib/artifact-versioning-mode.d.ts.map +1 -0
- package/dist/artifact-store/lib/artifact-versioning-mode.js +10 -0
- package/dist/artifact-store/lib/artifact-versioning-mode.js.map +1 -0
- package/dist/biome/lib/biome-component-requirements.d.ts.map +1 -1
- package/dist/biome/lib/biome-component-requirements.js.map +1 -1
- package/dist/biome/lib/biome-component.d.ts +24 -0
- package/dist/biome/lib/biome-component.d.ts.map +1 -1
- package/dist/biome/lib/biome-component.js +85 -18
- package/dist/biome/lib/biome-component.js.map +1 -1
- package/dist/biome/lib/biome-generated-index.d.ts +18 -3
- package/dist/biome/lib/biome-generated-index.d.ts.map +1 -1
- package/dist/biome/lib/biome-kind.d.ts.map +1 -1
- package/dist/biome/lib/biome-kind.js.map +1 -1
- package/dist/biome/lib/biome-manifest.d.ts +94 -0
- package/dist/biome/lib/biome-manifest.d.ts.map +1 -1
- package/dist/biome/lib/biome-manifest.js +26 -1
- package/dist/biome/lib/biome-manifest.js.map +1 -1
- package/dist/biome/xema-biome.schema.json +214 -2
- package/dist/biome-catalog/lib/biome-permission-digest.d.ts +18 -0
- package/dist/biome-catalog/lib/biome-permission-digest.d.ts.map +1 -1
- package/dist/biome-catalog/lib/biome-permission-digest.js +14 -0
- package/dist/biome-catalog/lib/biome-permission-digest.js.map +1 -1
- package/dist/biome-dependency/index.d.ts +1 -0
- package/dist/biome-dependency/index.d.ts.map +1 -1
- package/dist/biome-dependency/index.js +1 -0
- package/dist/biome-dependency/index.js.map +1 -1
- package/dist/biome-dependency/lib/biome-dependency-contract.d.ts +13 -2
- package/dist/biome-dependency/lib/biome-dependency-contract.d.ts.map +1 -1
- package/dist/biome-dependency/lib/biome-dependency-contract.js +19 -2
- package/dist/biome-dependency/lib/biome-dependency-contract.js.map +1 -1
- package/dist/biome-dependency/lib/package-peer-facts.d.ts +125 -0
- package/dist/biome-dependency/lib/package-peer-facts.d.ts.map +1 -0
- package/dist/biome-dependency/lib/package-peer-facts.js +77 -0
- package/dist/biome-dependency/lib/package-peer-facts.js.map +1 -0
- package/dist/biome-dependency/lib/peer-seam-table.d.ts +3 -1
- package/dist/biome-dependency/lib/peer-seam-table.d.ts.map +1 -1
- package/dist/biome-dependency/lib/peer-seam-table.js +12 -1
- package/dist/biome-dependency/lib/peer-seam-table.js.map +1 -1
- package/dist/biome-dependency/lib/service-peer-contract.d.ts +1 -1
- package/dist/caller-context/index.d.ts +20 -0
- package/dist/caller-context/index.d.ts.map +1 -0
- package/dist/caller-context/index.js +36 -0
- package/dist/caller-context/index.js.map +1 -0
- package/dist/caller-context/lib/acting-chain.d.ts +20 -0
- package/dist/caller-context/lib/acting-chain.d.ts.map +1 -0
- package/dist/caller-context/lib/acting-chain.js +46 -0
- package/dist/caller-context/lib/acting-chain.js.map +1 -0
- package/dist/caller-context/lib/approval-mode.d.ts +9 -0
- package/dist/caller-context/lib/approval-mode.d.ts.map +1 -0
- package/dist/caller-context/lib/approval-mode.js +27 -0
- package/dist/caller-context/lib/approval-mode.js.map +1 -0
- package/dist/caller-context/lib/boundary-context-brand.d.ts +5 -0
- package/dist/caller-context/lib/boundary-context-brand.d.ts.map +1 -0
- package/dist/caller-context/lib/boundary-context-brand.js +17 -0
- package/dist/caller-context/lib/boundary-context-brand.js.map +1 -0
- package/dist/caller-context/lib/caller-context.d.ts +28 -0
- package/dist/caller-context/lib/caller-context.d.ts.map +1 -0
- package/dist/caller-context/lib/caller-context.js +53 -0
- package/dist/caller-context/lib/caller-context.js.map +1 -0
- package/dist/caller-context/lib/caller-org-scope.d.ts +4 -0
- package/dist/caller-context/lib/caller-org-scope.d.ts.map +1 -0
- package/dist/caller-context/lib/caller-org-scope.js +22 -0
- package/dist/caller-context/lib/caller-org-scope.js.map +1 -0
- package/dist/caller-context/lib/direct-service-actor.d.ts +3 -0
- package/dist/caller-context/lib/direct-service-actor.d.ts.map +1 -0
- package/dist/caller-context/lib/direct-service-actor.js +8 -0
- package/dist/caller-context/lib/direct-service-actor.js.map +1 -0
- package/dist/caller-context/lib/holds-org-authority.d.ts +10 -0
- package/dist/caller-context/lib/holds-org-authority.d.ts.map +1 -0
- package/dist/caller-context/lib/holds-org-authority.js +16 -0
- package/dist/caller-context/lib/holds-org-authority.js.map +1 -0
- package/dist/caller-context/lib/lent-capability.d.ts +11 -0
- package/dist/caller-context/lib/lent-capability.d.ts.map +1 -0
- package/dist/caller-context/lib/lent-capability.js +19 -0
- package/dist/caller-context/lib/lent-capability.js.map +1 -0
- package/dist/caller-context/lib/org-authority.d.ts +29 -0
- package/dist/caller-context/lib/org-authority.d.ts.map +1 -0
- package/dist/caller-context/lib/org-authority.js +84 -0
- package/dist/caller-context/lib/org-authority.js.map +1 -0
- package/dist/caller-context/lib/org-claim.d.ts +15 -0
- package/dist/caller-context/lib/org-claim.d.ts.map +1 -0
- package/dist/caller-context/lib/org-claim.js +29 -0
- package/dist/caller-context/lib/org-claim.js.map +1 -0
- package/dist/caller-context/lib/org-role.d.ts +8 -0
- package/dist/caller-context/lib/org-role.d.ts.map +1 -0
- package/dist/caller-context/lib/org-role.js +59 -0
- package/dist/caller-context/lib/org-role.js.map +1 -0
- package/dist/caller-context/lib/org-scope-mint.d.ts +22 -0
- package/dist/caller-context/lib/org-scope-mint.d.ts.map +1 -0
- package/dist/caller-context/lib/org-scope-mint.js +36 -0
- package/dist/caller-context/lib/org-scope-mint.js.map +1 -0
- package/dist/caller-context/lib/platform-sweep.d.ts +68 -0
- package/dist/caller-context/lib/platform-sweep.d.ts.map +1 -0
- package/dist/caller-context/lib/platform-sweep.js +134 -0
- package/dist/caller-context/lib/platform-sweep.js.map +1 -0
- package/dist/caller-context/lib/receiver-audience.d.ts +13 -0
- package/dist/caller-context/lib/receiver-audience.d.ts.map +1 -0
- package/dist/caller-context/lib/receiver-audience.js +36 -0
- package/dist/caller-context/lib/receiver-audience.js.map +1 -0
- package/dist/caller-context/lib/receiver-operation.d.ts +10 -0
- package/dist/caller-context/lib/receiver-operation.d.ts.map +1 -0
- package/dist/caller-context/lib/receiver-operation.js +22 -0
- package/dist/caller-context/lib/receiver-operation.js.map +1 -0
- package/dist/caller-context/lib/request-context.d.ts +51 -0
- package/dist/caller-context/lib/request-context.d.ts.map +1 -0
- package/dist/caller-context/lib/request-context.js +25 -0
- package/dist/caller-context/lib/request-context.js.map +1 -0
- package/dist/caller-context/lib/resolve-acting-user.d.ts +8 -0
- package/dist/caller-context/lib/resolve-acting-user.d.ts.map +1 -0
- package/dist/caller-context/lib/resolve-acting-user.js +44 -0
- package/dist/caller-context/lib/resolve-acting-user.js.map +1 -0
- package/dist/caller-context/lib/worker-context.d.ts +13 -0
- package/dist/caller-context/lib/worker-context.d.ts.map +1 -0
- package/dist/caller-context/lib/worker-context.js +9 -0
- package/dist/caller-context/lib/worker-context.js.map +1 -0
- package/dist/caller-context/lib/workflow-step-credential.d.ts +120 -0
- package/dist/caller-context/lib/workflow-step-credential.d.ts.map +1 -0
- package/dist/caller-context/lib/workflow-step-credential.js +169 -0
- package/dist/caller-context/lib/workflow-step-credential.js.map +1 -0
- package/dist/capability/index.d.ts +3 -3
- package/dist/capability/index.d.ts.map +1 -1
- package/dist/capability/index.js +3 -3
- package/dist/capability/index.js.map +1 -1
- package/dist/capability/lib/capability-aperture.js +1 -1
- package/dist/capability/lib/capability-aperture.js.map +1 -1
- package/dist/capability/lib/capability-caller-constraint.d.ts +23 -0
- package/dist/capability/lib/capability-caller-constraint.d.ts.map +1 -0
- package/dist/capability/lib/capability-caller-constraint.js +45 -0
- package/dist/capability/lib/capability-caller-constraint.js.map +1 -0
- package/dist/capability/lib/capability-contribution.d.ts +3 -0
- package/dist/capability/lib/capability-contribution.d.ts.map +1 -1
- package/dist/capability/lib/capability-contribution.js +11 -0
- package/dist/capability/lib/capability-contribution.js.map +1 -1
- package/dist/capability/lib/capability-ref-error.d.ts +12 -0
- package/dist/capability/lib/capability-ref-error.d.ts.map +1 -0
- package/dist/capability/lib/capability-ref-error.js +18 -0
- package/dist/capability/lib/capability-ref-error.js.map +1 -0
- package/dist/capability/lib/capability-ref.js +7 -7
- package/dist/capability/lib/capability-ref.js.map +1 -1
- package/dist/capability/lib/connector-capability-ref.js +4 -4
- package/dist/capability/lib/connector-capability-ref.js.map +1 -1
- package/dist/capability-domain/index.d.ts +2 -0
- package/dist/capability-domain/index.d.ts.map +1 -0
- package/dist/capability-domain/index.js +18 -0
- package/dist/capability-domain/index.js.map +1 -0
- package/dist/capability-domain/lib/capability-domain.d.ts.map +1 -0
- package/dist/capability-domain/lib/capability-domain.js.map +1 -0
- package/dist/capability-error/index.d.ts +3 -0
- package/dist/capability-error/index.d.ts.map +1 -0
- package/dist/capability-error/index.js +19 -0
- package/dist/capability-error/index.js.map +1 -0
- package/dist/capability-error/lib/capability-invocation-descriptor.d.ts.map +1 -0
- package/dist/{capability → capability-error}/lib/capability-invocation-descriptor.js +2 -2
- package/dist/capability-error/lib/capability-invocation-descriptor.js.map +1 -0
- package/dist/{capability → capability-error}/lib/errors.d.ts +3 -7
- package/dist/capability-error/lib/errors.d.ts.map +1 -0
- package/dist/{capability → capability-error}/lib/errors.js +4 -12
- package/dist/capability-error/lib/errors.js.map +1 -0
- package/dist/capability-projection/lib/projected-capability.d.ts +1 -0
- package/dist/capability-projection/lib/projected-capability.d.ts.map +1 -1
- package/dist/conformance/customer-edition-definition.vectors.json +987 -0
- package/dist/conformance/edition-source-pins.vectors.json +298 -0
- package/dist/conformance/optional-operation-admission.vectors.json +44 -0
- package/dist/connector/index.d.ts +5 -0
- package/dist/connector/index.d.ts.map +1 -1
- package/dist/connector/index.js +5 -0
- package/dist/connector/index.js.map +1 -1
- package/dist/connector/lib/adapter-key.enum.d.ts +11 -0
- package/dist/connector/lib/adapter-key.enum.d.ts.map +1 -0
- package/dist/connector/lib/adapter-key.enum.js +15 -0
- package/dist/connector/lib/adapter-key.enum.js.map +1 -0
- package/dist/connector/lib/connector-adapter-contribution.d.ts +10 -3
- package/dist/connector/lib/connector-adapter-contribution.d.ts.map +1 -1
- package/dist/connector/lib/connector-adapter-contribution.js +78 -21
- package/dist/connector/lib/connector-adapter-contribution.js.map +1 -1
- package/dist/connector/lib/connector-endpoint-source-declaration.d.ts +19 -0
- package/dist/connector/lib/connector-endpoint-source-declaration.d.ts.map +1 -0
- package/dist/connector/lib/connector-endpoint-source-declaration.js +50 -0
- package/dist/connector/lib/connector-endpoint-source-declaration.js.map +1 -0
- package/dist/connector/lib/connector-endpoint-source.d.ts +5 -0
- package/dist/connector/lib/connector-endpoint-source.d.ts.map +1 -0
- package/dist/connector/lib/connector-endpoint-source.js +9 -0
- package/dist/connector/lib/connector-endpoint-source.js.map +1 -0
- package/dist/connector/lib/provider-descriptor.d.ts.map +1 -1
- package/dist/connector/lib/provider-descriptor.js.map +1 -1
- package/dist/connector/lib/routes.d.ts +3 -0
- package/dist/connector/lib/routes.d.ts.map +1 -0
- package/dist/connector/lib/routes.js +6 -0
- package/dist/connector/lib/routes.js.map +1 -0
- package/dist/connector/lib/webhook-entity-kind.enum.d.ts +13 -0
- package/dist/connector/lib/webhook-entity-kind.enum.d.ts.map +1 -0
- package/dist/connector/lib/webhook-entity-kind.enum.js +17 -0
- package/dist/connector/lib/webhook-entity-kind.enum.js.map +1 -0
- package/dist/contribution/lib/contribution-kind.d.ts.map +1 -1
- package/dist/contribution/lib/contribution-kind.js.map +1 -1
- package/dist/contribution/lib/sync.d.ts +6 -2
- package/dist/contribution/lib/sync.d.ts.map +1 -1
- package/dist/contribution/lib/sync.js +26 -6
- package/dist/contribution/lib/sync.js.map +1 -1
- package/dist/deliverable-validation/index.d.ts +4 -0
- package/dist/deliverable-validation/index.d.ts.map +1 -0
- package/dist/deliverable-validation/index.js +20 -0
- package/dist/deliverable-validation/index.js.map +1 -0
- package/dist/deliverable-validation/lib/outcome.d.ts +30 -0
- package/dist/deliverable-validation/lib/outcome.d.ts.map +1 -0
- package/dist/deliverable-validation/lib/outcome.js +47 -0
- package/dist/deliverable-validation/lib/outcome.js.map +1 -0
- package/dist/deliverable-validation/lib/phase.d.ts +11 -0
- package/dist/deliverable-validation/lib/phase.d.ts.map +1 -0
- package/dist/deliverable-validation/lib/phase.js +29 -0
- package/dist/deliverable-validation/lib/phase.js.map +1 -0
- package/dist/deliverable-validation/lib/validator-declaration.d.ts +19 -0
- package/dist/deliverable-validation/lib/validator-declaration.d.ts.map +1 -0
- package/dist/deliverable-validation/lib/validator-declaration.js +37 -0
- package/dist/deliverable-validation/lib/validator-declaration.js.map +1 -0
- package/dist/deployment/index.d.ts +6 -0
- package/dist/deployment/index.d.ts.map +1 -1
- package/dist/deployment/index.js +6 -0
- package/dist/deployment/index.js.map +1 -1
- package/dist/deployment/lib/artifact-signer-trust.d.ts +72 -9
- package/dist/deployment/lib/artifact-signer-trust.d.ts.map +1 -1
- package/dist/deployment/lib/artifact-signer-trust.js +235 -22
- package/dist/deployment/lib/artifact-signer-trust.js.map +1 -1
- package/dist/deployment/lib/code-unit-order.d.ts +2 -0
- package/dist/deployment/lib/code-unit-order.d.ts.map +1 -0
- package/dist/deployment/lib/code-unit-order.js +7 -0
- package/dist/deployment/lib/code-unit-order.js.map +1 -0
- package/dist/deployment/lib/event-subscription-grant.d.ts +46 -0
- package/dist/deployment/lib/event-subscription-grant.d.ts.map +1 -0
- package/dist/deployment/lib/event-subscription-grant.js +52 -0
- package/dist/deployment/lib/event-subscription-grant.js.map +1 -0
- package/dist/deployment/lib/installed-event-subscription-grant.d.ts +60 -0
- package/dist/deployment/lib/installed-event-subscription-grant.d.ts.map +1 -0
- package/dist/deployment/lib/installed-event-subscription-grant.js +107 -0
- package/dist/deployment/lib/installed-event-subscription-grant.js.map +1 -0
- package/dist/deployment/lib/installed-workload-grant.d.ts +80 -0
- package/dist/deployment/lib/installed-workload-grant.d.ts.map +1 -0
- package/dist/deployment/lib/installed-workload-grant.js +119 -0
- package/dist/deployment/lib/installed-workload-grant.js.map +1 -0
- package/dist/deployment/lib/operation-grant.d.ts +19 -0
- package/dist/deployment/lib/operation-grant.d.ts.map +1 -1
- package/dist/deployment/lib/operation-grant.js +18 -9
- package/dist/deployment/lib/operation-grant.js.map +1 -1
- package/dist/deployment/lib/org-context-relay.d.ts +10 -0
- package/dist/deployment/lib/org-context-relay.d.ts.map +1 -0
- package/dist/deployment/lib/org-context-relay.js +22 -0
- package/dist/deployment/lib/org-context-relay.js.map +1 -0
- package/dist/deployment/lib/organization-sweep-grant.d.ts.map +1 -1
- package/dist/deployment/lib/organization-sweep-grant.js +4 -6
- package/dist/deployment/lib/organization-sweep-grant.js.map +1 -1
- package/dist/deployment/lib/platform-sweep.d.ts +3 -1
- package/dist/deployment/lib/platform-sweep.d.ts.map +1 -1
- package/dist/deployment/lib/platform-sweep.js +17 -1
- package/dist/deployment/lib/platform-sweep.js.map +1 -1
- package/dist/deployment/lib/resolved-deployment.d.ts +121 -2
- package/dist/deployment/lib/resolved-deployment.d.ts.map +1 -1
- package/dist/deployment/lib/resolved-deployment.js +140 -13
- package/dist/deployment/lib/resolved-deployment.js.map +1 -1
- package/dist/deployment/lib/store-event-ceiling.d.ts +43 -0
- package/dist/deployment/lib/store-event-ceiling.d.ts.map +1 -0
- package/dist/deployment/lib/store-event-ceiling.js +80 -0
- package/dist/deployment/lib/store-event-ceiling.js.map +1 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.d.ts +59 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.d.ts.map +1 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.js +102 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.js.map +1 -0
- package/dist/distribution/index.d.ts +10 -0
- package/dist/distribution/index.d.ts.map +1 -1
- package/dist/distribution/index.js +19 -6
- package/dist/distribution/index.js.map +1 -1
- package/dist/distribution/lib/contract-required-service-targets.d.ts +3 -0
- package/dist/distribution/lib/contract-required-service-targets.d.ts.map +1 -0
- package/dist/distribution/lib/contract-required-service-targets.js +16 -0
- package/dist/distribution/lib/contract-required-service-targets.js.map +1 -0
- package/dist/distribution/lib/customer-edition-definition.d.ts +8 -1
- package/dist/distribution/lib/customer-edition-definition.d.ts.map +1 -1
- package/dist/distribution/lib/customer-edition-definition.js +51 -2
- package/dist/distribution/lib/customer-edition-definition.js.map +1 -1
- package/dist/distribution/lib/distribution-lock.d.ts +17 -1
- package/dist/distribution/lib/distribution-lock.d.ts.map +1 -1
- package/dist/distribution/lib/distribution-lock.js +85 -4
- package/dist/distribution/lib/distribution-lock.js.map +1 -1
- package/dist/distribution/lib/distribution.d.ts +16 -0
- package/dist/distribution/lib/distribution.d.ts.map +1 -1
- package/dist/distribution/lib/distribution.js +39 -1
- package/dist/distribution/lib/distribution.js.map +1 -1
- package/dist/distribution/lib/event-subscription-admission.d.ts +22 -0
- package/dist/distribution/lib/event-subscription-admission.d.ts.map +1 -0
- package/dist/distribution/lib/event-subscription-admission.js +72 -0
- package/dist/distribution/lib/event-subscription-admission.js.map +1 -0
- package/dist/distribution/lib/image-lock.d.ts.map +1 -1
- package/dist/distribution/lib/image-lock.js +2 -10
- package/dist/distribution/lib/image-lock.js.map +1 -1
- package/dist/distribution/lib/image-producer-evidence.d.ts +114 -10
- package/dist/distribution/lib/image-producer-evidence.d.ts.map +1 -1
- package/dist/distribution/lib/image-producer-evidence.js +78 -31
- package/dist/distribution/lib/image-producer-evidence.js.map +1 -1
- package/dist/distribution/lib/installed-operation-ceiling-admission.d.ts +21 -0
- package/dist/distribution/lib/installed-operation-ceiling-admission.d.ts.map +1 -0
- package/dist/distribution/lib/installed-operation-ceiling-admission.js +54 -0
- package/dist/distribution/lib/installed-operation-ceiling-admission.js.map +1 -0
- package/dist/distribution/lib/kernel-contract-source-paths.d.ts +1 -1
- package/dist/distribution/lib/kernel-contract-source-paths.d.ts.map +1 -1
- package/dist/distribution/lib/kernel-contract-source-paths.js +31 -3
- package/dist/distribution/lib/kernel-contract-source-paths.js.map +1 -1
- package/dist/distribution/lib/operation-grant-admission.d.ts +29 -2
- package/dist/distribution/lib/operation-grant-admission.d.ts.map +1 -1
- package/dist/distribution/lib/operation-grant-admission.js +97 -19
- package/dist/distribution/lib/operation-grant-admission.js.map +1 -1
- package/dist/distribution/lib/org-context-relay-admission.d.ts +19 -0
- package/dist/distribution/lib/org-context-relay-admission.d.ts.map +1 -0
- package/dist/distribution/lib/org-context-relay-admission.js +50 -0
- package/dist/distribution/lib/org-context-relay-admission.js.map +1 -0
- package/dist/distribution/lib/organization-sweep-admission.d.ts +1 -0
- package/dist/distribution/lib/organization-sweep-admission.d.ts.map +1 -1
- package/dist/distribution/lib/organization-sweep-admission.js +4 -0
- package/dist/distribution/lib/organization-sweep-admission.js.map +1 -1
- package/dist/distribution/lib/package-image-lock.d.ts +99 -0
- package/dist/distribution/lib/package-image-lock.d.ts.map +1 -0
- package/dist/distribution/lib/package-image-lock.js +167 -0
- package/dist/distribution/lib/package-image-lock.js.map +1 -0
- package/dist/distribution/lib/package-image-trust.d.ts +36 -0
- package/dist/distribution/lib/package-image-trust.d.ts.map +1 -0
- package/dist/distribution/lib/package-image-trust.js +112 -0
- package/dist/distribution/lib/package-image-trust.js.map +1 -0
- package/dist/distribution/lib/resolve-unsplit-deployment.d.ts.map +1 -1
- package/dist/distribution/lib/resolve-unsplit-deployment.js +31 -0
- package/dist/distribution/lib/resolve-unsplit-deployment.js.map +1 -1
- package/dist/distribution/lib/store-workload-ceiling-admission.d.ts +17 -0
- package/dist/distribution/lib/store-workload-ceiling-admission.d.ts.map +1 -0
- package/dist/distribution/lib/store-workload-ceiling-admission.js +40 -0
- package/dist/distribution/lib/store-workload-ceiling-admission.js.map +1 -0
- package/dist/distribution/lib/store-workload-ceiling.d.ts +6 -0
- package/dist/distribution/lib/store-workload-ceiling.d.ts.map +1 -0
- package/dist/distribution/lib/store-workload-ceiling.js +13 -0
- package/dist/distribution/lib/store-workload-ceiling.js.map +1 -0
- package/dist/distribution/lib/verify-resolved-deployment.d.ts +12 -0
- package/dist/distribution/lib/verify-resolved-deployment.d.ts.map +1 -1
- package/dist/distribution/lib/verify-resolved-deployment.js +148 -4
- package/dist/distribution/lib/verify-resolved-deployment.js.map +1 -1
- package/dist/distribution/server/index.d.ts +8 -0
- package/dist/distribution/server/index.d.ts.map +1 -1
- package/dist/distribution/server/index.js +10 -0
- package/dist/distribution/server/index.js.map +1 -1
- package/dist/edge-stream/index.d.ts +2 -0
- package/dist/edge-stream/index.d.ts.map +1 -0
- package/dist/edge-stream/index.js +18 -0
- package/dist/edge-stream/index.js.map +1 -0
- package/dist/edge-stream/lib/edge-budget.d.ts +5 -0
- package/dist/edge-stream/lib/edge-budget.d.ts.map +1 -0
- package/dist/edge-stream/lib/edge-budget.js +8 -0
- package/dist/edge-stream/lib/edge-budget.js.map +1 -0
- package/dist/edition-protocol/edition-contract.schema.json +1 -1
- package/dist/edition-protocol/edition-protocol.json +1 -1
- package/dist/edition-protocol/lib/edition-protocol.d.ts +1 -1
- package/dist/edition-protocol/lib/edition-protocol.d.ts.map +1 -1
- package/dist/edition-protocol/lib/edition-protocol.js +3 -2
- package/dist/edition-protocol/lib/edition-protocol.js.map +1 -1
- package/dist/event-subscription/index.d.ts +4 -0
- package/dist/event-subscription/index.d.ts.map +1 -0
- package/dist/event-subscription/index.js +20 -0
- package/dist/event-subscription/index.js.map +1 -0
- package/dist/event-subscription/lib/event-subscription-clause.d.ts +61 -0
- package/dist/event-subscription/lib/event-subscription-clause.d.ts.map +1 -0
- package/dist/event-subscription/lib/event-subscription-clause.js +102 -0
- package/dist/event-subscription/lib/event-subscription-clause.js.map +1 -0
- package/dist/event-subscription/lib/event-type-pattern.d.ts +12 -0
- package/dist/event-subscription/lib/event-type-pattern.d.ts.map +1 -0
- package/dist/event-subscription/lib/event-type-pattern.js +47 -0
- package/dist/event-subscription/lib/event-type-pattern.js.map +1 -0
- package/dist/event-subscription/lib/visibility-tier.d.ts +10 -0
- package/dist/event-subscription/lib/visibility-tier.d.ts.map +1 -0
- package/dist/event-subscription/lib/visibility-tier.js +22 -0
- package/dist/event-subscription/lib/visibility-tier.js.map +1 -0
- package/dist/exact-optional/index.d.ts +2 -0
- package/dist/exact-optional/index.d.ts.map +1 -0
- package/dist/exact-optional/index.js +18 -0
- package/dist/exact-optional/index.js.map +1 -0
- package/dist/exact-optional/lib/omit-undefined.d.ts +2 -0
- package/dist/exact-optional/lib/omit-undefined.d.ts.map +1 -0
- package/dist/exact-optional/lib/omit-undefined.js +9 -0
- package/dist/exact-optional/lib/omit-undefined.js.map +1 -0
- package/dist/execution-environment/lib/execution-environment.d.ts +4 -2
- package/dist/execution-environment/lib/execution-environment.d.ts.map +1 -1
- package/dist/execution-environment/lib/execution-environment.js +5 -6
- package/dist/execution-environment/lib/execution-environment.js.map +1 -1
- package/dist/generated-client/index.d.ts +2 -0
- package/dist/generated-client/index.d.ts.map +1 -0
- package/dist/generated-client/index.js +18 -0
- package/dist/generated-client/index.js.map +1 -0
- package/dist/generated-client/lib/orval-client-config.d.ts +34 -0
- package/dist/generated-client/lib/orval-client-config.d.ts.map +1 -0
- package/dist/generated-client/lib/orval-client-config.js +33 -0
- package/dist/generated-client/lib/orval-client-config.js.map +1 -0
- package/dist/growth/index.d.ts +4 -0
- package/dist/growth/index.d.ts.map +1 -0
- package/dist/growth/index.js +18 -0
- package/dist/growth/index.js.map +1 -0
- package/dist/growth/lib/growth-gate.d.ts +24 -0
- package/dist/growth/lib/growth-gate.d.ts.map +1 -0
- package/dist/growth/lib/growth-gate.js +46 -0
- package/dist/growth/lib/growth-gate.js.map +1 -0
- package/dist/growth/lib/member-shell-mode.d.ts +13 -0
- package/dist/growth/lib/member-shell-mode.d.ts.map +1 -0
- package/dist/growth/lib/member-shell-mode.js +9 -0
- package/dist/growth/lib/member-shell-mode.js.map +1 -0
- package/dist/growth/lib/org-growth-policy.d.ts +17 -0
- package/dist/growth/lib/org-growth-policy.d.ts.map +1 -0
- package/dist/growth/lib/org-growth-policy.js +24 -0
- package/dist/growth/lib/org-growth-policy.js.map +1 -0
- package/dist/http/index.d.ts +1 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +1 -0
- package/dist/http/index.js.map +1 -1
- package/dist/http/lib/problem-details.d.ts.map +1 -1
- package/dist/http/lib/problem-details.js.map +1 -1
- package/dist/http/lib/response-envelope.d.ts +2 -0
- package/dist/http/lib/response-envelope.d.ts.map +1 -0
- package/dist/http/lib/response-envelope.js +26 -0
- package/dist/http/lib/response-envelope.js.map +1 -0
- package/dist/http/lib/xema-error.d.ts.map +1 -1
- package/dist/http/lib/xema-error.js.map +1 -1
- package/dist/idempotency/index.d.ts +2 -0
- package/dist/idempotency/index.d.ts.map +1 -1
- package/dist/idempotency/index.js +2 -0
- package/dist/idempotency/index.js.map +1 -1
- package/dist/idempotency/lib/idempotency.service.d.ts +24 -0
- package/dist/idempotency/lib/idempotency.service.d.ts.map +1 -0
- package/dist/idempotency/lib/idempotency.service.js +23 -0
- package/dist/idempotency/lib/idempotency.service.js.map +1 -0
- package/dist/idempotency/lib/idempotency.tokens.d.ts +2 -0
- package/dist/idempotency/lib/idempotency.tokens.d.ts.map +1 -0
- package/dist/idempotency/lib/idempotency.tokens.js +5 -0
- package/dist/idempotency/lib/idempotency.tokens.js.map +1 -0
- package/dist/knowledge-graph/index.d.ts +2 -0
- package/dist/knowledge-graph/index.d.ts.map +1 -0
- package/dist/knowledge-graph/index.js +18 -0
- package/dist/knowledge-graph/index.js.map +1 -0
- package/dist/knowledge-graph/lib/knowledge-graph-errors.d.ts +5 -0
- package/dist/knowledge-graph/lib/knowledge-graph-errors.d.ts.map +1 -0
- package/dist/knowledge-graph/lib/knowledge-graph-errors.js +17 -0
- package/dist/knowledge-graph/lib/knowledge-graph-errors.js.map +1 -0
- package/dist/llm-gateway/index.d.ts +1 -0
- package/dist/llm-gateway/index.d.ts.map +1 -1
- package/dist/llm-gateway/index.js +1 -0
- package/dist/llm-gateway/index.js.map +1 -1
- package/dist/llm-gateway/lib/llm-gateway.d.ts +19 -0
- package/dist/llm-gateway/lib/llm-gateway.d.ts.map +1 -0
- package/dist/llm-gateway/lib/llm-gateway.js +51 -0
- package/dist/llm-gateway/lib/llm-gateway.js.map +1 -0
- package/dist/llm-stream/index.d.ts +6 -0
- package/dist/llm-stream/index.d.ts.map +1 -0
- package/dist/llm-stream/index.js +22 -0
- package/dist/llm-stream/index.js.map +1 -0
- package/dist/llm-stream/lib/consume-stream.d.ts +14 -0
- package/dist/llm-stream/lib/consume-stream.d.ts.map +1 -0
- package/dist/llm-stream/lib/consume-stream.js +57 -0
- package/dist/llm-stream/lib/consume-stream.js.map +1 -0
- package/dist/llm-stream/lib/progress.d.ts +17 -0
- package/dist/llm-stream/lib/progress.d.ts.map +1 -0
- package/dist/llm-stream/lib/progress.js +12 -0
- package/dist/llm-stream/lib/progress.js.map +1 -0
- package/dist/llm-stream/lib/reasoning-field.d.ts +29 -0
- package/dist/llm-stream/lib/reasoning-field.d.ts.map +1 -0
- package/dist/llm-stream/lib/reasoning-field.js +45 -0
- package/dist/llm-stream/lib/reasoning-field.js.map +1 -0
- package/dist/llm-stream/lib/think-tag-stream-parser.d.ts +17 -0
- package/dist/llm-stream/lib/think-tag-stream-parser.d.ts.map +1 -0
- package/dist/llm-stream/lib/think-tag-stream-parser.js +90 -0
- package/dist/llm-stream/lib/think-tag-stream-parser.js.map +1 -0
- package/dist/llm-stream/lib/types.d.ts +56 -0
- package/dist/llm-stream/lib/types.d.ts.map +1 -0
- package/dist/llm-stream/lib/types.js +3 -0
- package/dist/llm-stream/lib/types.js.map +1 -0
- package/dist/mcp-tool/index.d.ts +1 -0
- package/dist/mcp-tool/index.d.ts.map +1 -1
- package/dist/mcp-tool/index.js +1 -0
- package/dist/mcp-tool/index.js.map +1 -1
- package/dist/mcp-tool/lib/mcp-response-projection.d.ts +9 -0
- package/dist/mcp-tool/lib/mcp-response-projection.d.ts.map +1 -0
- package/dist/mcp-tool/lib/mcp-response-projection.js +57 -0
- package/dist/mcp-tool/lib/mcp-response-projection.js.map +1 -0
- package/dist/output/index.d.ts +1 -0
- package/dist/output/index.d.ts.map +1 -1
- package/dist/output/index.js +1 -0
- package/dist/output/index.js.map +1 -1
- package/dist/output/lib/deliverable-output-contract.d.ts +146 -0
- package/dist/output/lib/deliverable-output-contract.d.ts.map +1 -0
- package/dist/output/lib/deliverable-output-contract.js +162 -0
- package/dist/output/lib/deliverable-output-contract.js.map +1 -0
- package/dist/project-manifest/index.d.ts +4 -0
- package/dist/project-manifest/index.d.ts.map +1 -0
- package/dist/project-manifest/index.js +20 -0
- package/dist/project-manifest/index.js.map +1 -0
- package/dist/project-manifest/lib/manifest.enums.d.ts +55 -0
- package/dist/project-manifest/lib/manifest.enums.d.ts.map +1 -0
- package/dist/project-manifest/lib/manifest.enums.js +278 -0
- package/dist/project-manifest/lib/manifest.enums.js.map +1 -0
- package/dist/project-manifest/lib/manifest.types.d.ts +146 -0
- package/dist/project-manifest/lib/manifest.types.d.ts.map +1 -0
- package/dist/project-manifest/lib/manifest.types.js +54 -0
- package/dist/project-manifest/lib/manifest.types.js.map +1 -0
- package/dist/project-manifest/lib/manifest.validation.d.ts +17 -0
- package/dist/project-manifest/lib/manifest.validation.d.ts.map +1 -0
- package/dist/project-manifest/lib/manifest.validation.js +353 -0
- package/dist/project-manifest/lib/manifest.validation.js.map +1 -0
- package/dist/redaction/index.d.ts +4 -0
- package/dist/redaction/index.d.ts.map +1 -0
- package/dist/redaction/index.js +21 -0
- package/dist/redaction/index.js.map +1 -0
- package/dist/redaction/lib/default-rules.d.ts +3 -0
- package/dist/redaction/lib/default-rules.d.ts.map +1 -0
- package/dist/redaction/lib/default-rules.js +78 -0
- package/dist/redaction/lib/default-rules.js.map +1 -0
- package/dist/redaction/lib/problem-extensions.d.ts +24 -0
- package/dist/redaction/lib/problem-extensions.d.ts.map +1 -0
- package/dist/redaction/lib/problem-extensions.js +139 -0
- package/dist/redaction/lib/problem-extensions.js.map +1 -0
- package/dist/redaction/lib/redaction-rule.d.ts +8 -0
- package/dist/redaction/lib/redaction-rule.d.ts.map +1 -0
- package/dist/redaction/lib/redaction-rule.js +3 -0
- package/dist/redaction/lib/redaction-rule.js.map +1 -0
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts +21 -1
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts.map +1 -1
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js +76 -2
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js.map +1 -1
- package/dist/resource/lib/resource-kind.d.ts +7 -1
- package/dist/resource/lib/resource-kind.d.ts.map +1 -1
- package/dist/resource/lib/resource-kind.js +6 -0
- package/dist/resource/lib/resource-kind.js.map +1 -1
- package/dist/resource-accounting/index.d.ts +0 -1
- package/dist/resource-accounting/index.d.ts.map +1 -1
- package/dist/resource-accounting/index.js +0 -1
- package/dist/resource-accounting/index.js.map +1 -1
- package/dist/resource-accounting/lib/producer.d.ts +0 -2
- package/dist/resource-accounting/lib/producer.d.ts.map +1 -1
- package/dist/resource-accounting/lib/producer.js +0 -1
- package/dist/resource-accounting/lib/producer.js.map +1 -1
- package/dist/revision-target/lib/revision-target.d.ts +10 -4
- package/dist/revision-target/lib/revision-target.d.ts.map +1 -1
- package/dist/revision-target/lib/revision-target.js +26 -5
- package/dist/revision-target/lib/revision-target.js.map +1 -1
- package/dist/session-events/index.d.ts +4 -0
- package/dist/session-events/index.d.ts.map +1 -0
- package/dist/session-events/index.js +20 -0
- package/dist/session-events/index.js.map +1 -0
- package/dist/session-events/lib/agent-session.types.d.ts +166 -0
- package/dist/session-events/lib/agent-session.types.d.ts.map +1 -0
- package/dist/session-events/lib/agent-session.types.js +146 -0
- package/dist/session-events/lib/agent-session.types.js.map +1 -0
- package/dist/session-events/lib/safe-truncate.d.ts +2 -0
- package/dist/session-events/lib/safe-truncate.d.ts.map +1 -0
- package/dist/session-events/lib/safe-truncate.js +15 -0
- package/dist/session-events/lib/safe-truncate.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/actor.d.ts +12 -0
- package/dist/session-events/lib/session-event-payloads/actor.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/actor.js +9 -0
- package/dist/session-events/lib/session-event-payloads/actor.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/assistant-message-metadata.d.ts +25 -0
- package/dist/session-events/lib/session-event-payloads/assistant-message-metadata.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/assistant-message-metadata.js +26 -0
- package/dist/session-events/lib/session-event-payloads/assistant-message-metadata.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/delta-ledger-policy.d.ts +11 -0
- package/dist/session-events/lib/session-event-payloads/delta-ledger-policy.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/delta-ledger-policy.js +43 -0
- package/dist/session-events/lib/session-event-payloads/delta-ledger-policy.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/error-codes.d.ts +41 -0
- package/dist/session-events/lib/session-event-payloads/error-codes.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/error-codes.js +83 -0
- package/dist/session-events/lib/session-event-payloads/error-codes.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/index.d.ts +8 -0
- package/dist/session-events/lib/session-event-payloads/index.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/index.js +24 -0
- package/dist/session-events/lib/session-event-payloads/index.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/payloads.d.ts +140 -0
- package/dist/session-events/lib/session-event-payloads/payloads.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/payloads.js +148 -0
- package/dist/session-events/lib/session-event-payloads/payloads.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/tool-call-enums.d.ts +11 -0
- package/dist/session-events/lib/session-event-payloads/tool-call-enums.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/tool-call-enums.js +16 -0
- package/dist/session-events/lib/session-event-payloads/tool-call-enums.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/validation.d.ts +86 -0
- package/dist/session-events/lib/session-event-payloads/validation.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/validation.js +221 -0
- package/dist/session-events/lib/session-event-payloads/validation.js.map +1 -0
- package/dist/setting/index.d.ts +1 -0
- package/dist/setting/index.d.ts.map +1 -1
- package/dist/setting/index.js +1 -0
- package/dist/setting/index.js.map +1 -1
- package/dist/setting/lib/setting-lifecycle.d.ts +33 -0
- package/dist/setting/lib/setting-lifecycle.d.ts.map +1 -0
- package/dist/setting/lib/setting-lifecycle.js +64 -0
- package/dist/setting/lib/setting-lifecycle.js.map +1 -0
- package/dist/untrusted-content/index.d.ts +4 -0
- package/dist/untrusted-content/index.d.ts.map +1 -0
- package/dist/untrusted-content/index.js +20 -0
- package/dist/untrusted-content/index.js.map +1 -0
- package/dist/untrusted-content/lib/fence.d.ts +30 -0
- package/dist/untrusted-content/lib/fence.d.ts.map +1 -0
- package/dist/untrusted-content/lib/fence.js +94 -0
- package/dist/untrusted-content/lib/fence.js.map +1 -0
- package/dist/untrusted-content/lib/notice.d.ts +3 -0
- package/dist/untrusted-content/lib/notice.d.ts.map +1 -0
- package/dist/untrusted-content/lib/notice.js +11 -0
- package/dist/untrusted-content/lib/notice.js.map +1 -0
- package/dist/untrusted-content/lib/origin.d.ts +9 -0
- package/dist/untrusted-content/lib/origin.d.ts.map +1 -0
- package/dist/untrusted-content/lib/origin.js +13 -0
- package/dist/untrusted-content/lib/origin.js.map +1 -0
- package/dist/webapp-studio/index.d.ts +2 -0
- package/dist/webapp-studio/index.d.ts.map +1 -0
- package/dist/webapp-studio/index.js +18 -0
- package/dist/webapp-studio/index.js.map +1 -0
- package/dist/webapp-studio/lib/webapp-studio.d.ts +20 -0
- package/dist/webapp-studio/lib/webapp-studio.d.ts.map +1 -0
- package/dist/webapp-studio/lib/webapp-studio.js +27 -0
- package/dist/webapp-studio/lib/webapp-studio.js.map +1 -0
- package/dist/worker-runtime/lib/enums.d.ts +4 -1
- package/dist/worker-runtime/lib/enums.d.ts.map +1 -1
- package/dist/worker-runtime/lib/enums.js +3 -0
- package/dist/worker-runtime/lib/enums.js.map +1 -1
- package/dist/workflow/lib/compiled-run.d.ts +1 -1
- package/dist/workflow/lib/compiled-run.d.ts.map +1 -1
- package/dist/workflow/lib/enums.d.ts +2 -0
- package/dist/workflow/lib/enums.d.ts.map +1 -1
- package/dist/workflow/lib/enums.js +7 -1
- package/dist/workflow/lib/enums.js.map +1 -1
- package/dist/workflow/lib/errors.d.ts +1 -0
- package/dist/workflow/lib/errors.d.ts.map +1 -1
- package/dist/workflow/lib/errors.js +2 -0
- package/dist/workflow/lib/errors.js.map +1 -1
- package/package.json +4 -3
- package/dist/capability/lib/capability-domain.d.ts.map +0 -1
- package/dist/capability/lib/capability-domain.js.map +0 -1
- package/dist/capability/lib/capability-invocation-descriptor.d.ts.map +0 -1
- package/dist/capability/lib/capability-invocation-descriptor.js.map +0 -1
- package/dist/capability/lib/errors.d.ts.map +0 -1
- package/dist/capability/lib/errors.js.map +0 -1
- package/dist/resource-accounting/lib/reconciliation.d.ts +0 -81
- package/dist/resource-accounting/lib/reconciliation.d.ts.map +0 -1
- package/dist/resource-accounting/lib/reconciliation.js +0 -111
- package/dist/resource-accounting/lib/reconciliation.js.map +0 -1
- /package/dist/{capability → capability-domain}/lib/capability-domain.d.ts +0 -0
- /package/dist/{capability → capability-domain}/lib/capability-domain.js +0 -0
- /package/dist/{capability → capability-error}/lib/capability-invocation-descriptor.d.ts +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare enum SessionErrorPhase {
|
|
2
|
+
Chat = "chat",
|
|
3
|
+
Resume = "resume",
|
|
4
|
+
Provisioning = "provisioning"
|
|
5
|
+
}
|
|
6
|
+
export declare enum SessionErrorCode {
|
|
7
|
+
ThreadBusy = "CANOPY_THREAD_BUSY",
|
|
8
|
+
TurnFailed = "CANOPY_TURN_FAILED",
|
|
9
|
+
ConsentResumeFailed = "CANOPY_RESUME_FAILED",
|
|
10
|
+
ToolIterationLimit = "CANOPY_TOOL_ITERATION_LIMIT",
|
|
11
|
+
NoTerminalFrame = "CANOPY_NO_TERMINAL_FRAME",
|
|
12
|
+
WorkerTurnFailed = "SESSION_WORKER_TURN_FAILED",
|
|
13
|
+
LaunchConfigResolutionFailed = "config_resolution_failed",
|
|
14
|
+
LaunchSelectionInvalid = "launch_selection_invalid",
|
|
15
|
+
LaunchWorkerAcquireTimeout = "worker_acquire_timeout",
|
|
16
|
+
LaunchWorkerAcquireRejected = "worker_acquire_rejected",
|
|
17
|
+
LaunchWorkerAllocationLost = "worker_allocation_lost",
|
|
18
|
+
LaunchControlBundleFailed = "control_bundle_failed",
|
|
19
|
+
LaunchControlBundleRejected = "control_bundle_rejected",
|
|
20
|
+
LaunchBootstrapFailed = "bootstrap_failed",
|
|
21
|
+
LaunchBootstrapContractBroken = "bootstrap_contract_broken",
|
|
22
|
+
LaunchProvisionFailed = "provision_failed",
|
|
23
|
+
LaunchUnclassifiedFailure = "launch_unclassified",
|
|
24
|
+
LaunchWorkspaceRestoreFailed = "workspace_restore_failed",
|
|
25
|
+
LaunchWorkspaceSnapshotCorrupt = "workspace_snapshot_corrupt",
|
|
26
|
+
LaunchWorkspaceSnapshotRuntimeNewer = "workspace_snapshot_runtime_newer",
|
|
27
|
+
LaunchWorkingFileSourceMissing = "working_file_source_missing",
|
|
28
|
+
LaunchFinalizeFailed = "finalize_failed",
|
|
29
|
+
LaunchFinalizeReadinessFailed = "finalize_readiness_failed",
|
|
30
|
+
LaunchAgentUnavailable = "agent_unavailable",
|
|
31
|
+
LaunchDeadlineExceeded = "deadline_exceeded",
|
|
32
|
+
LaunchIllegalTransition = "illegal_transition",
|
|
33
|
+
LaunchAbandoned = "launch_abandoned"
|
|
34
|
+
}
|
|
35
|
+
export type SessionTurnErrorCode = SessionErrorCode.ThreadBusy | SessionErrorCode.TurnFailed | SessionErrorCode.ConsentResumeFailed | SessionErrorCode.ToolIterationLimit | SessionErrorCode.NoTerminalFrame | SessionErrorCode.WorkerTurnFailed;
|
|
36
|
+
export declare const SESSION_TURN_ERROR_CODES: readonly [SessionErrorCode.ThreadBusy, SessionErrorCode.TurnFailed, SessionErrorCode.ConsentResumeFailed, SessionErrorCode.ToolIterationLimit, SessionErrorCode.NoTerminalFrame, SessionErrorCode.WorkerTurnFailed];
|
|
37
|
+
export type SessionLaunchErrorCode = SessionErrorCode.LaunchConfigResolutionFailed | SessionErrorCode.LaunchSelectionInvalid | SessionErrorCode.LaunchWorkerAcquireTimeout | SessionErrorCode.LaunchWorkerAcquireRejected | SessionErrorCode.LaunchWorkerAllocationLost | SessionErrorCode.LaunchControlBundleFailed | SessionErrorCode.LaunchControlBundleRejected | SessionErrorCode.LaunchBootstrapFailed | SessionErrorCode.LaunchBootstrapContractBroken | SessionErrorCode.LaunchProvisionFailed | SessionErrorCode.LaunchUnclassifiedFailure | SessionErrorCode.LaunchWorkspaceRestoreFailed | SessionErrorCode.LaunchWorkspaceSnapshotCorrupt | SessionErrorCode.LaunchWorkspaceSnapshotRuntimeNewer | SessionErrorCode.LaunchWorkingFileSourceMissing | SessionErrorCode.LaunchFinalizeFailed | SessionErrorCode.LaunchFinalizeReadinessFailed | SessionErrorCode.LaunchAgentUnavailable | SessionErrorCode.LaunchDeadlineExceeded | SessionErrorCode.LaunchIllegalTransition | SessionErrorCode.LaunchAbandoned;
|
|
38
|
+
export declare const SESSION_LAUNCH_ERROR_CODES: readonly [SessionErrorCode.LaunchConfigResolutionFailed, SessionErrorCode.LaunchSelectionInvalid, SessionErrorCode.LaunchWorkerAcquireTimeout, SessionErrorCode.LaunchWorkerAcquireRejected, SessionErrorCode.LaunchWorkerAllocationLost, SessionErrorCode.LaunchControlBundleFailed, SessionErrorCode.LaunchControlBundleRejected, SessionErrorCode.LaunchBootstrapFailed, SessionErrorCode.LaunchBootstrapContractBroken, SessionErrorCode.LaunchProvisionFailed, SessionErrorCode.LaunchUnclassifiedFailure, SessionErrorCode.LaunchWorkspaceRestoreFailed, SessionErrorCode.LaunchWorkspaceSnapshotCorrupt, SessionErrorCode.LaunchWorkspaceSnapshotRuntimeNewer, SessionErrorCode.LaunchWorkingFileSourceMissing, SessionErrorCode.LaunchFinalizeFailed, SessionErrorCode.LaunchFinalizeReadinessFailed, SessionErrorCode.LaunchAgentUnavailable, SessionErrorCode.LaunchDeadlineExceeded, SessionErrorCode.LaunchIllegalTransition, SessionErrorCode.LaunchAbandoned];
|
|
39
|
+
export declare const SESSION_LAUNCH_FAILURE_CODES: Readonly<Record<string, SessionLaunchErrorCode>>;
|
|
40
|
+
export declare function mapLaunchFailureToSessionErrorCode(launchFailureKind: string): SessionLaunchErrorCode;
|
|
41
|
+
//# sourceMappingURL=error-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../../../src/session-events/lib/session-event-payloads/error-codes.ts"],"names":[],"mappings":"AA4BA,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,YAAY,iBAAiB;CAC9B;AA6BD,oBAAY,gBAAgB;IAM1B,UAAU,uBAAuB;IAMjC,UAAU,uBAAuB;IAUjC,mBAAmB,yBAAyB;IAO5C,kBAAkB,gCAAgC;IAKlD,eAAe,6BAA6B;IAU5C,gBAAgB,+BAA+B;IAkB/C,4BAA4B,6BAA6B;IAOzD,sBAAsB,6BAA6B;IAEnD,0BAA0B,2BAA2B;IAErD,2BAA2B,4BAA4B;IAWvD,0BAA0B,2BAA2B;IAQrD,yBAAyB,0BAA0B;IAenD,2BAA2B,4BAA4B;IAEvD,qBAAqB,qBAAqB;IAa1C,6BAA6B,8BAA8B;IAkB3D,qBAAqB,qBAAqB;IAsB1C,yBAAyB,wBAAwB;IAYjD,4BAA4B,6BAA6B;IAazD,8BAA8B,+BAA+B;IAsB7D,mCAAmC,qCAAqC;IAYxE,8BAA8B,gCAAgC;IAiB9D,oBAAoB,oBAAoB;IAWxC,6BAA6B,8BAA8B;IAM3D,sBAAsB,sBAAsB;IAW5C,sBAAsB,sBAAsB;IAE5C,uBAAuB,uBAAuB;IAK9C,eAAe,qBAAqB;CACrC;AAUD,MAAM,MAAM,oBAAoB,GAC5B,gBAAgB,CAAC,UAAU,GAC3B,gBAAgB,CAAC,UAAU,GAC3B,gBAAgB,CAAC,mBAAmB,GACpC,gBAAgB,CAAC,kBAAkB,GACnC,gBAAgB,CAAC,eAAe,GAChC,gBAAgB,CAAC,gBAAgB,CAAC;AAGtC,eAAO,MAAM,wBAAwB,qNAOe,CAAC;AAUrD,MAAM,MAAM,sBAAsB,GAC9B,gBAAgB,CAAC,4BAA4B,GAC7C,gBAAgB,CAAC,sBAAsB,GACvC,gBAAgB,CAAC,0BAA0B,GAC3C,gBAAgB,CAAC,2BAA2B,GAC5C,gBAAgB,CAAC,0BAA0B,GAC3C,gBAAgB,CAAC,yBAAyB,GAC1C,gBAAgB,CAAC,2BAA2B,GAC5C,gBAAgB,CAAC,qBAAqB,GACtC,gBAAgB,CAAC,6BAA6B,GAC9C,gBAAgB,CAAC,qBAAqB,GACtC,gBAAgB,CAAC,yBAAyB,GAC1C,gBAAgB,CAAC,4BAA4B,GAC7C,gBAAgB,CAAC,8BAA8B,GAC/C,gBAAgB,CAAC,mCAAmC,GACpD,gBAAgB,CAAC,8BAA8B,GAC/C,gBAAgB,CAAC,oBAAoB,GACrC,gBAAgB,CAAC,6BAA6B,GAC9C,gBAAgB,CAAC,sBAAsB,GACvC,gBAAgB,CAAC,sBAAsB,GACvC,gBAAgB,CAAC,uBAAuB,GACxC,gBAAgB,CAAC,eAAe,CAAC;AAGrC,eAAO,MAAM,0BAA0B,66BAsBe,CAAC;AAiBvD,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CACjD,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAKvC,CAAC;AAuBF,wBAAgB,kCAAkC,CAChD,iBAAiB,EAAE,MAAM,GACxB,sBAAsB,CAWxB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SESSION_LAUNCH_FAILURE_CODES = exports.SESSION_LAUNCH_ERROR_CODES = exports.SESSION_TURN_ERROR_CODES = exports.SessionErrorCode = exports.SessionErrorPhase = void 0;
|
|
4
|
+
exports.mapLaunchFailureToSessionErrorCode = mapLaunchFailureToSessionErrorCode;
|
|
5
|
+
var SessionErrorPhase;
|
|
6
|
+
(function (SessionErrorPhase) {
|
|
7
|
+
SessionErrorPhase["Chat"] = "chat";
|
|
8
|
+
SessionErrorPhase["Resume"] = "resume";
|
|
9
|
+
SessionErrorPhase["Provisioning"] = "provisioning";
|
|
10
|
+
})(SessionErrorPhase || (exports.SessionErrorPhase = SessionErrorPhase = {}));
|
|
11
|
+
var SessionErrorCode;
|
|
12
|
+
(function (SessionErrorCode) {
|
|
13
|
+
SessionErrorCode["ThreadBusy"] = "CANOPY_THREAD_BUSY";
|
|
14
|
+
SessionErrorCode["TurnFailed"] = "CANOPY_TURN_FAILED";
|
|
15
|
+
SessionErrorCode["ConsentResumeFailed"] = "CANOPY_RESUME_FAILED";
|
|
16
|
+
SessionErrorCode["ToolIterationLimit"] = "CANOPY_TOOL_ITERATION_LIMIT";
|
|
17
|
+
SessionErrorCode["NoTerminalFrame"] = "CANOPY_NO_TERMINAL_FRAME";
|
|
18
|
+
SessionErrorCode["WorkerTurnFailed"] = "SESSION_WORKER_TURN_FAILED";
|
|
19
|
+
SessionErrorCode["LaunchConfigResolutionFailed"] = "config_resolution_failed";
|
|
20
|
+
SessionErrorCode["LaunchSelectionInvalid"] = "launch_selection_invalid";
|
|
21
|
+
SessionErrorCode["LaunchWorkerAcquireTimeout"] = "worker_acquire_timeout";
|
|
22
|
+
SessionErrorCode["LaunchWorkerAcquireRejected"] = "worker_acquire_rejected";
|
|
23
|
+
SessionErrorCode["LaunchWorkerAllocationLost"] = "worker_allocation_lost";
|
|
24
|
+
SessionErrorCode["LaunchControlBundleFailed"] = "control_bundle_failed";
|
|
25
|
+
SessionErrorCode["LaunchControlBundleRejected"] = "control_bundle_rejected";
|
|
26
|
+
SessionErrorCode["LaunchBootstrapFailed"] = "bootstrap_failed";
|
|
27
|
+
SessionErrorCode["LaunchBootstrapContractBroken"] = "bootstrap_contract_broken";
|
|
28
|
+
SessionErrorCode["LaunchProvisionFailed"] = "provision_failed";
|
|
29
|
+
SessionErrorCode["LaunchUnclassifiedFailure"] = "launch_unclassified";
|
|
30
|
+
SessionErrorCode["LaunchWorkspaceRestoreFailed"] = "workspace_restore_failed";
|
|
31
|
+
SessionErrorCode["LaunchWorkspaceSnapshotCorrupt"] = "workspace_snapshot_corrupt";
|
|
32
|
+
SessionErrorCode["LaunchWorkspaceSnapshotRuntimeNewer"] = "workspace_snapshot_runtime_newer";
|
|
33
|
+
SessionErrorCode["LaunchWorkingFileSourceMissing"] = "working_file_source_missing";
|
|
34
|
+
SessionErrorCode["LaunchFinalizeFailed"] = "finalize_failed";
|
|
35
|
+
SessionErrorCode["LaunchFinalizeReadinessFailed"] = "finalize_readiness_failed";
|
|
36
|
+
SessionErrorCode["LaunchAgentUnavailable"] = "agent_unavailable";
|
|
37
|
+
SessionErrorCode["LaunchDeadlineExceeded"] = "deadline_exceeded";
|
|
38
|
+
SessionErrorCode["LaunchIllegalTransition"] = "illegal_transition";
|
|
39
|
+
SessionErrorCode["LaunchAbandoned"] = "launch_abandoned";
|
|
40
|
+
})(SessionErrorCode || (exports.SessionErrorCode = SessionErrorCode = {}));
|
|
41
|
+
exports.SESSION_TURN_ERROR_CODES = [
|
|
42
|
+
SessionErrorCode.ThreadBusy,
|
|
43
|
+
SessionErrorCode.TurnFailed,
|
|
44
|
+
SessionErrorCode.ConsentResumeFailed,
|
|
45
|
+
SessionErrorCode.ToolIterationLimit,
|
|
46
|
+
SessionErrorCode.NoTerminalFrame,
|
|
47
|
+
SessionErrorCode.WorkerTurnFailed,
|
|
48
|
+
];
|
|
49
|
+
exports.SESSION_LAUNCH_ERROR_CODES = [
|
|
50
|
+
SessionErrorCode.LaunchConfigResolutionFailed,
|
|
51
|
+
SessionErrorCode.LaunchSelectionInvalid,
|
|
52
|
+
SessionErrorCode.LaunchWorkerAcquireTimeout,
|
|
53
|
+
SessionErrorCode.LaunchWorkerAcquireRejected,
|
|
54
|
+
SessionErrorCode.LaunchWorkerAllocationLost,
|
|
55
|
+
SessionErrorCode.LaunchControlBundleFailed,
|
|
56
|
+
SessionErrorCode.LaunchControlBundleRejected,
|
|
57
|
+
SessionErrorCode.LaunchBootstrapFailed,
|
|
58
|
+
SessionErrorCode.LaunchBootstrapContractBroken,
|
|
59
|
+
SessionErrorCode.LaunchProvisionFailed,
|
|
60
|
+
SessionErrorCode.LaunchUnclassifiedFailure,
|
|
61
|
+
SessionErrorCode.LaunchWorkspaceRestoreFailed,
|
|
62
|
+
SessionErrorCode.LaunchWorkspaceSnapshotCorrupt,
|
|
63
|
+
SessionErrorCode.LaunchWorkspaceSnapshotRuntimeNewer,
|
|
64
|
+
SessionErrorCode.LaunchWorkingFileSourceMissing,
|
|
65
|
+
SessionErrorCode.LaunchFinalizeFailed,
|
|
66
|
+
SessionErrorCode.LaunchFinalizeReadinessFailed,
|
|
67
|
+
SessionErrorCode.LaunchAgentUnavailable,
|
|
68
|
+
SessionErrorCode.LaunchDeadlineExceeded,
|
|
69
|
+
SessionErrorCode.LaunchIllegalTransition,
|
|
70
|
+
SessionErrorCode.LaunchAbandoned,
|
|
71
|
+
];
|
|
72
|
+
exports.SESSION_LAUNCH_FAILURE_CODES = Object.freeze(Object.fromEntries(exports.SESSION_LAUNCH_ERROR_CODES.map((code) => [code, code])));
|
|
73
|
+
function mapLaunchFailureToSessionErrorCode(launchFailureKind) {
|
|
74
|
+
const code = exports.SESSION_LAUNCH_FAILURE_CODES[launchFailureKind];
|
|
75
|
+
if (code === undefined) {
|
|
76
|
+
throw new TypeError(`Launch failure kind "${launchFailureKind}" has no SessionErrorCode. ` +
|
|
77
|
+
`Add the member to SessionErrorCode's launch family (its wire value ` +
|
|
78
|
+
`must equal the LaunchFailureKind value) and to ` +
|
|
79
|
+
`SESSION_LAUNCH_ERROR_CODES.`);
|
|
80
|
+
}
|
|
81
|
+
return code;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=error-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../../src/session-events/lib/session-event-payloads/error-codes.ts"],"names":[],"mappings":";;;AA+c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AC3C,gBAAgB,CAAC,yBAAyB;IAC1C,gBAAgB,CAAC,2BAA2B;IAC5C,gBAAgB,CAAC,qBAAqB;IACtC,gBAAgB,CAAC,6BAA6B;IAC9C,gBAAgB,CAAC,qBAAqB;IACtC,gBAAgB,CAAC,yBAAyB;IAC1C,gBAAgB,CAAC,4BAA4B;IAC7C,gBAAgB,CAAC,8BAA8B;IAC/C,gBAAgB,CAAC,mCAAmC;IACpD,gBAAgB,CAAC,8BAA8B;IAC/C,gBAAgB,CAAC,oBAAoB;IACrC,gBAAgB,CAAC,6BAA6B;IAC9C,gBAAgB,CAAC,sBAAsB;IACvC,gBAAgB,CAAC,sBAAsB;IACvC,gBAAgB,CAAC,uBAAuB;IACxC,gBAAgB,CAAC,eAAe;CACoB,CAAC;AAiB1C,QAAA,4BAA4B,GAErC,MAAM,CAAC,MAAM,CACf,MAAM,CAAC,WAAW,CAChB,kCAA0B,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAc,EAAE,IAAI,CAAC,CAAC,CACvB,CAC5C,CAAC;AAuBF,SAAgB,kCAAkC,CAChD,iBAAyB;IAEzB,MAAM,IAAI,GAAG,oCAA4B,CAAC,iBAAiB,CAAC,CAAC;IAC7D,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,SAAS,CACjB,wBAAwB,iBAAiB,6BAA6B;YACpE,qEAAqE;YACrE,iDAAiD;YACjD,6BAA6B,CAChC,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './actor';
|
|
2
|
+
export * from './assistant-message-metadata';
|
|
3
|
+
export * from './delta-ledger-policy';
|
|
4
|
+
export * from './error-codes';
|
|
5
|
+
export * from './payloads';
|
|
6
|
+
export * from './tool-call-enums';
|
|
7
|
+
export * from './validation';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/session-events/lib/session-event-payloads/index.ts"],"names":[],"mappings":"AAyBA,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./actor"), exports);
|
|
18
|
+
__exportStar(require("./assistant-message-metadata"), exports);
|
|
19
|
+
__exportStar(require("./delta-ledger-policy"), exports);
|
|
20
|
+
__exportStar(require("./error-codes"), exports);
|
|
21
|
+
__exportStar(require("./payloads"), exports);
|
|
22
|
+
__exportStar(require("./tool-call-enums"), exports);
|
|
23
|
+
__exportStar(require("./validation"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/session-events/lib/session-event-payloads/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAyBA,0CAAwB;AACxB,+DAA6C;AAC7C,wDAAsC;AACtC,gDAA8B;AAC9B,6CAA2B;AAC3B,oDAAkC;AAClC,+CAA6B"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { SessionErrorPhase } from './error-codes';
|
|
2
|
+
import { SessionToolCallStatus } from './tool-call-enums';
|
|
3
|
+
import type { SessionEventActor } from './actor';
|
|
4
|
+
import type { SessionLaunchErrorCode, SessionTurnErrorCode } from './error-codes';
|
|
5
|
+
import type { SessionCapabilityOutcome } from './tool-call-enums';
|
|
6
|
+
export declare enum SessionEventMessageRole {
|
|
7
|
+
User = "user",
|
|
8
|
+
Assistant = "assistant"
|
|
9
|
+
}
|
|
10
|
+
export type SessionTurnId = string;
|
|
11
|
+
export type SessionMessageSentPayload = {
|
|
12
|
+
turnId: SessionTurnId;
|
|
13
|
+
role: SessionEventMessageRole.User;
|
|
14
|
+
actorId: string;
|
|
15
|
+
actor: SessionEventActor;
|
|
16
|
+
contentPreview: string;
|
|
17
|
+
executor?: string;
|
|
18
|
+
delegationId?: string;
|
|
19
|
+
};
|
|
20
|
+
export type SessionMessageReceivedPayload = {
|
|
21
|
+
turnId: SessionTurnId;
|
|
22
|
+
role: SessionEventMessageRole.Assistant;
|
|
23
|
+
contentPreview: string;
|
|
24
|
+
};
|
|
25
|
+
export type SessionTextDeltaPayload = {
|
|
26
|
+
turnId: SessionTurnId;
|
|
27
|
+
text: string;
|
|
28
|
+
};
|
|
29
|
+
export type SessionReasoningDeltaPayload = {
|
|
30
|
+
turnId: SessionTurnId;
|
|
31
|
+
text: string;
|
|
32
|
+
};
|
|
33
|
+
export type SessionTurnErrorPayload = {
|
|
34
|
+
phase: SessionErrorPhase.Chat;
|
|
35
|
+
turnId: SessionTurnId;
|
|
36
|
+
code: SessionTurnErrorCode;
|
|
37
|
+
message: string;
|
|
38
|
+
detail?: Record<string, unknown>;
|
|
39
|
+
};
|
|
40
|
+
export type SessionResumeErrorPayload = {
|
|
41
|
+
phase: SessionErrorPhase.Resume;
|
|
42
|
+
code: SessionLaunchErrorCode;
|
|
43
|
+
message: string;
|
|
44
|
+
agentSlug?: string;
|
|
45
|
+
};
|
|
46
|
+
export type SessionProvisioningErrorPayload = {
|
|
47
|
+
phase: SessionErrorPhase.Provisioning;
|
|
48
|
+
code: SessionLaunchErrorCode;
|
|
49
|
+
message: string;
|
|
50
|
+
};
|
|
51
|
+
export type SessionErrorPayload = SessionTurnErrorPayload | SessionResumeErrorPayload | SessionProvisioningErrorPayload;
|
|
52
|
+
export type SessionToolCallCapabilityStart = {
|
|
53
|
+
ref: string;
|
|
54
|
+
idempotencyKey?: string;
|
|
55
|
+
};
|
|
56
|
+
export type SessionToolCallCapabilityResult = SessionToolCallCapabilityStart & {
|
|
57
|
+
outcome: SessionCapabilityOutcome;
|
|
58
|
+
auditId: string;
|
|
59
|
+
};
|
|
60
|
+
export type SessionToolCallStartedPayload = {
|
|
61
|
+
turnId: SessionTurnId;
|
|
62
|
+
toolName: string;
|
|
63
|
+
status: SessionToolCallStatus.Started;
|
|
64
|
+
toolCallId?: string;
|
|
65
|
+
summary?: string;
|
|
66
|
+
capabilityRef?: string;
|
|
67
|
+
idempotencyKey?: string;
|
|
68
|
+
delegateSessionId?: string;
|
|
69
|
+
vista?: Record<string, unknown>;
|
|
70
|
+
};
|
|
71
|
+
export type SessionToolCallCompletedPayload = {
|
|
72
|
+
turnId: SessionTurnId;
|
|
73
|
+
toolName: string;
|
|
74
|
+
status: SessionToolCallStatus.Completed | SessionToolCallStatus.Error;
|
|
75
|
+
toolCallId?: string;
|
|
76
|
+
summary?: string;
|
|
77
|
+
errorMessage?: string;
|
|
78
|
+
capabilityRef?: string;
|
|
79
|
+
idempotencyKey?: string;
|
|
80
|
+
capabilityOutcome?: SessionCapabilityOutcome;
|
|
81
|
+
auditId?: string;
|
|
82
|
+
delegateSessionId?: string;
|
|
83
|
+
vista?: Record<string, unknown>;
|
|
84
|
+
};
|
|
85
|
+
export declare function buildMessageSentPayload(args: {
|
|
86
|
+
turnId: SessionTurnId;
|
|
87
|
+
actorId: string;
|
|
88
|
+
actor: SessionEventActor;
|
|
89
|
+
content: string;
|
|
90
|
+
executor?: string;
|
|
91
|
+
delegationId?: string;
|
|
92
|
+
}): SessionMessageSentPayload;
|
|
93
|
+
export declare function buildMessageReceivedPayload(args: {
|
|
94
|
+
turnId: SessionTurnId;
|
|
95
|
+
content: string;
|
|
96
|
+
}): SessionMessageReceivedPayload;
|
|
97
|
+
export declare function buildTextDeltaPayload(args: {
|
|
98
|
+
turnId: SessionTurnId;
|
|
99
|
+
text: string;
|
|
100
|
+
}): SessionTextDeltaPayload;
|
|
101
|
+
export declare function buildReasoningDeltaPayload(args: {
|
|
102
|
+
turnId: SessionTurnId;
|
|
103
|
+
text: string;
|
|
104
|
+
}): SessionReasoningDeltaPayload;
|
|
105
|
+
export declare function buildSessionTurnErrorPayload(args: {
|
|
106
|
+
turnId: SessionTurnId;
|
|
107
|
+
code: SessionTurnErrorCode;
|
|
108
|
+
message: string;
|
|
109
|
+
detail?: Record<string, unknown>;
|
|
110
|
+
}): SessionTurnErrorPayload;
|
|
111
|
+
export declare function buildSessionResumeErrorPayload(args: {
|
|
112
|
+
code: SessionLaunchErrorCode;
|
|
113
|
+
message: string;
|
|
114
|
+
agentSlug?: string;
|
|
115
|
+
}): SessionResumeErrorPayload;
|
|
116
|
+
export declare function buildSessionProvisioningErrorPayload(args: {
|
|
117
|
+
code: SessionLaunchErrorCode;
|
|
118
|
+
message: string;
|
|
119
|
+
}): SessionProvisioningErrorPayload;
|
|
120
|
+
export declare function buildToolCallStartedPayload(args: {
|
|
121
|
+
turnId: SessionTurnId;
|
|
122
|
+
toolName: string;
|
|
123
|
+
toolCallId?: string;
|
|
124
|
+
summary?: string;
|
|
125
|
+
capability?: SessionToolCallCapabilityStart;
|
|
126
|
+
delegateSessionId?: string;
|
|
127
|
+
vista?: Record<string, unknown>;
|
|
128
|
+
}): SessionToolCallStartedPayload;
|
|
129
|
+
export declare function buildToolCallCompletedPayload(args: {
|
|
130
|
+
turnId: SessionTurnId;
|
|
131
|
+
toolName: string;
|
|
132
|
+
status: SessionToolCallStatus.Completed | SessionToolCallStatus.Error;
|
|
133
|
+
toolCallId?: string;
|
|
134
|
+
summary?: string;
|
|
135
|
+
errorMessage?: string;
|
|
136
|
+
capability?: SessionToolCallCapabilityResult;
|
|
137
|
+
delegateSessionId?: string;
|
|
138
|
+
vista?: Record<string, unknown>;
|
|
139
|
+
}): SessionToolCallCompletedPayload;
|
|
140
|
+
//# sourceMappingURL=payloads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/session-events/lib/session-event-payloads/payloads.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAYlE,oBAAY,uBAAuB;IACjC,IAAI,SAAS;IACb,SAAS,cAAc;CACxB;AAmBD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAGnC,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAC;IAUnC,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,iBAAiB,CAAC;IAMzB,cAAc,EAAE,MAAM,CAAC;IAOvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,YAAY,CAAC,EAAE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CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC,GAAG,6BAA6B,CA4BhC;AASD,wBAAgB,6BAA6B,CAAC,IAAI,EAAE;IAClD,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,qBAAqB,CAAC,SAAS,GAAG,qBAAqB,CAAC,KAAK,CAAC;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,+BAA+B,CAAC;IAC7C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC,GAAG,+BAA+B,CAiClC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SessionEventMessageRole = void 0;
|
|
4
|
+
exports.buildMessageSentPayload = buildMessageSentPayload;
|
|
5
|
+
exports.buildMessageReceivedPayload = buildMessageReceivedPayload;
|
|
6
|
+
exports.buildTextDeltaPayload = buildTextDeltaPayload;
|
|
7
|
+
exports.buildReasoningDeltaPayload = buildReasoningDeltaPayload;
|
|
8
|
+
exports.buildSessionTurnErrorPayload = buildSessionTurnErrorPayload;
|
|
9
|
+
exports.buildSessionResumeErrorPayload = buildSessionResumeErrorPayload;
|
|
10
|
+
exports.buildSessionProvisioningErrorPayload = buildSessionProvisioningErrorPayload;
|
|
11
|
+
exports.buildToolCallStartedPayload = buildToolCallStartedPayload;
|
|
12
|
+
exports.buildToolCallCompletedPayload = buildToolCallCompletedPayload;
|
|
13
|
+
const agent_session_types_1 = require("../agent-session.types");
|
|
14
|
+
const safe_truncate_1 = require("../safe-truncate");
|
|
15
|
+
const error_codes_1 = require("./error-codes");
|
|
16
|
+
const tool_call_enums_1 = require("./tool-call-enums");
|
|
17
|
+
var SessionEventMessageRole;
|
|
18
|
+
(function (SessionEventMessageRole) {
|
|
19
|
+
SessionEventMessageRole["User"] = "user";
|
|
20
|
+
SessionEventMessageRole["Assistant"] = "assistant";
|
|
21
|
+
})(SessionEventMessageRole || (exports.SessionEventMessageRole = SessionEventMessageRole = {}));
|
|
22
|
+
function requireNonEmpty(value, field) {
|
|
23
|
+
if (value.length === 0) {
|
|
24
|
+
throw new TypeError(`Session event payload field "${field}" must be a non-empty string.`);
|
|
25
|
+
}
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
function buildMessageSentPayload(args) {
|
|
29
|
+
if ((args.executor === undefined) !== (args.delegationId === undefined)) {
|
|
30
|
+
throw new TypeError('Session event payload fields "executor" and "delegationId" must be given together or not at all.');
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
turnId: requireNonEmpty(args.turnId, 'turnId'),
|
|
34
|
+
role: SessionEventMessageRole.User,
|
|
35
|
+
actorId: requireNonEmpty(args.actorId, 'actorId'),
|
|
36
|
+
actor: {
|
|
37
|
+
subjectKind: args.actor.subjectKind,
|
|
38
|
+
subjectRef: requireNonEmpty(args.actor.subjectRef, 'actor.subjectRef'),
|
|
39
|
+
displayName: requireNonEmpty(args.actor.displayName, 'actor.displayName'),
|
|
40
|
+
...(args.actor.avatarUrl !== undefined && {
|
|
41
|
+
avatarUrl: args.actor.avatarUrl,
|
|
42
|
+
}),
|
|
43
|
+
},
|
|
44
|
+
contentPreview: (0, safe_truncate_1.safeTruncate)(args.content, agent_session_types_1.SESSION_EVENT_CONTENT_PREVIEW_LIMITS[agent_session_types_1.SessionEventType.MessageSent]),
|
|
45
|
+
...(args.executor !== undefined &&
|
|
46
|
+
args.delegationId !== undefined && {
|
|
47
|
+
executor: requireNonEmpty(args.executor, 'executor'),
|
|
48
|
+
delegationId: requireNonEmpty(args.delegationId, 'delegationId'),
|
|
49
|
+
}),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function buildMessageReceivedPayload(args) {
|
|
53
|
+
return {
|
|
54
|
+
turnId: requireNonEmpty(args.turnId, 'turnId'),
|
|
55
|
+
role: SessionEventMessageRole.Assistant,
|
|
56
|
+
contentPreview: (0, safe_truncate_1.safeTruncate)(args.content, agent_session_types_1.SESSION_EVENT_CONTENT_PREVIEW_LIMITS[agent_session_types_1.SessionEventType.MessageReceived]),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function buildTextDeltaPayload(args) {
|
|
60
|
+
return {
|
|
61
|
+
turnId: requireNonEmpty(args.turnId, 'turnId'),
|
|
62
|
+
text: requireNonEmpty(args.text, 'text'),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function buildReasoningDeltaPayload(args) {
|
|
66
|
+
return {
|
|
67
|
+
turnId: requireNonEmpty(args.turnId, 'turnId'),
|
|
68
|
+
text: requireNonEmpty(args.text, 'text'),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function buildSessionTurnErrorPayload(args) {
|
|
72
|
+
return {
|
|
73
|
+
phase: error_codes_1.SessionErrorPhase.Chat,
|
|
74
|
+
turnId: requireNonEmpty(args.turnId, 'turnId'),
|
|
75
|
+
code: args.code,
|
|
76
|
+
message: requireNonEmpty(args.message, 'message'),
|
|
77
|
+
...(args.detail !== undefined && { detail: args.detail }),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function buildSessionResumeErrorPayload(args) {
|
|
81
|
+
return {
|
|
82
|
+
phase: error_codes_1.SessionErrorPhase.Resume,
|
|
83
|
+
code: args.code,
|
|
84
|
+
message: requireNonEmpty(args.message, 'message'),
|
|
85
|
+
...(args.agentSlug !== undefined && {
|
|
86
|
+
agentSlug: requireNonEmpty(args.agentSlug, 'agentSlug'),
|
|
87
|
+
}),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function buildSessionProvisioningErrorPayload(args) {
|
|
91
|
+
return {
|
|
92
|
+
phase: error_codes_1.SessionErrorPhase.Provisioning,
|
|
93
|
+
code: args.code,
|
|
94
|
+
message: requireNonEmpty(args.message, 'message'),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function buildToolCallStartedPayload(args) {
|
|
98
|
+
return {
|
|
99
|
+
turnId: requireNonEmpty(args.turnId, 'turnId'),
|
|
100
|
+
toolName: requireNonEmpty(args.toolName, 'toolName'),
|
|
101
|
+
status: tool_call_enums_1.SessionToolCallStatus.Started,
|
|
102
|
+
...(args.toolCallId !== undefined && {
|
|
103
|
+
toolCallId: requireNonEmpty(args.toolCallId, 'toolCallId'),
|
|
104
|
+
}),
|
|
105
|
+
...(args.summary !== undefined && {
|
|
106
|
+
summary: requireNonEmpty(args.summary, 'summary'),
|
|
107
|
+
}),
|
|
108
|
+
...(args.capability !== undefined && {
|
|
109
|
+
capabilityRef: requireNonEmpty(args.capability.ref, 'capability.ref'),
|
|
110
|
+
...(args.capability.idempotencyKey !== undefined && {
|
|
111
|
+
idempotencyKey: requireNonEmpty(args.capability.idempotencyKey, 'capability.idempotencyKey'),
|
|
112
|
+
}),
|
|
113
|
+
}),
|
|
114
|
+
...(args.delegateSessionId !== undefined && {
|
|
115
|
+
delegateSessionId: requireNonEmpty(args.delegateSessionId, 'delegateSessionId'),
|
|
116
|
+
}),
|
|
117
|
+
...(args.vista !== undefined && { vista: args.vista }),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function buildToolCallCompletedPayload(args) {
|
|
121
|
+
return {
|
|
122
|
+
turnId: requireNonEmpty(args.turnId, 'turnId'),
|
|
123
|
+
toolName: requireNonEmpty(args.toolName, 'toolName'),
|
|
124
|
+
status: args.status,
|
|
125
|
+
...(args.toolCallId !== undefined && {
|
|
126
|
+
toolCallId: requireNonEmpty(args.toolCallId, 'toolCallId'),
|
|
127
|
+
}),
|
|
128
|
+
...(args.summary !== undefined && {
|
|
129
|
+
summary: requireNonEmpty(args.summary, 'summary'),
|
|
130
|
+
}),
|
|
131
|
+
...(args.errorMessage !== undefined && {
|
|
132
|
+
errorMessage: requireNonEmpty(args.errorMessage, 'errorMessage'),
|
|
133
|
+
}),
|
|
134
|
+
...(args.capability !== undefined && {
|
|
135
|
+
capabilityRef: requireNonEmpty(args.capability.ref, 'capability.ref'),
|
|
136
|
+
capabilityOutcome: args.capability.outcome,
|
|
137
|
+
auditId: requireNonEmpty(args.capability.auditId, 'capability.auditId'),
|
|
138
|
+
...(args.capability.idempotencyKey !== undefined && {
|
|
139
|
+
idempotencyKey: requireNonEmpty(args.capability.idempotencyKey, 'capability.idempotencyKey'),
|
|
140
|
+
}),
|
|
141
|
+
}),
|
|
142
|
+
...(args.delegateSessionId !== undefined && {
|
|
143
|
+
delegateSessionId: requireNonEmpty(args.delegateSessionId, 'delegateSessionId'),
|
|
144
|
+
}),
|
|
145
|
+
...(args.vista !== undefined && { vista: args.vista }),
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=payloads.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../../src/session-events/lib/session-event-payloads/payloads.ts"],"names":[],"mappings":";;;AAsUA,0DAmCC;AAGD,kEAYC;AAUD,sDAQC;AAGD,gEAQC;AAUD,oEAaC;AASD,wEAaC;AAGD,oFASC;AASD,kEAoCC;AASD,sEA2CC;AA/hBD,gEAGgC;AAChC,oDAAgD;AAEhD,+CAAkD;AAClD,uDAA0D;AAmB1D,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,wCAAa,CAAA;IACb,kDAAuB,CAAA;AACzB,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC;AAyQD,SAAS,eAAe,CAAC,KAAa,EAAE,KAAa;IACnD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,SAAS,CACjB,gCAAgC,KAAK,+BAA+B,CACrE,CAAC;IACJ,CAAC;IACD,OAAO,KAAK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C,iBAAiB,EAAE,eAAe,CAChC,IAAI,CAAC,iBAAiB,EACtB,mBAAmB,CACpB;SACF,CAAC;QACF,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;KACvD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum SessionToolCallStatus {
|
|
2
|
+
Started = "started",
|
|
3
|
+
Completed = "completed",
|
|
4
|
+
Error = "error"
|
|
5
|
+
}
|
|
6
|
+
export declare enum SessionCapabilityOutcome {
|
|
7
|
+
Allowed = "allowed",
|
|
8
|
+
Denied = "denied",
|
|
9
|
+
AwaitingApproval = "awaiting-approval"
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=tool-call-enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-call-enums.d.ts","sourceRoot":"","sources":["../../../../src/session-events/lib/session-event-payloads/tool-call-enums.ts"],"names":[],"mappings":"AAyBA,oBAAY,qBAAqB;IAC/B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,KAAK,UAAU;CAChB;AAeD,oBAAY,wBAAwB;IAClC,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,gBAAgB,sBAAsB;CACvC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SessionCapabilityOutcome = exports.SessionToolCallStatus = void 0;
|
|
4
|
+
var SessionToolCallStatus;
|
|
5
|
+
(function (SessionToolCallStatus) {
|
|
6
|
+
SessionToolCallStatus["Started"] = "started";
|
|
7
|
+
SessionToolCallStatus["Completed"] = "completed";
|
|
8
|
+
SessionToolCallStatus["Error"] = "error";
|
|
9
|
+
})(SessionToolCallStatus || (exports.SessionToolCallStatus = SessionToolCallStatus = {}));
|
|
10
|
+
var SessionCapabilityOutcome;
|
|
11
|
+
(function (SessionCapabilityOutcome) {
|
|
12
|
+
SessionCapabilityOutcome["Allowed"] = "allowed";
|
|
13
|
+
SessionCapabilityOutcome["Denied"] = "denied";
|
|
14
|
+
SessionCapabilityOutcome["AwaitingApproval"] = "awaiting-approval";
|
|
15
|
+
})(SessionCapabilityOutcome || (exports.SessionCapabilityOutcome = SessionCapabilityOutcome = {}));
|
|
16
|
+
//# sourceMappingURL=tool-call-enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-call-enums.js","sourceRoot":"","sources":["../../../../src/session-events/lib/session-event-payloads/tool-call-enums.ts"],"names":[],"mappings":";;;AAyBA,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,gDAAuB,CAAA;IACvB,wCAAe,CAAA;AACjB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAeD,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,6CAAiB,CAAA;IACjB,kEAAsC,CAAA;AACxC,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SessionEventType } from '../agent-session.types';
|
|
3
|
+
import { SessionEventActorSubjectKind } from './actor';
|
|
4
|
+
import { SessionErrorPhase } from './error-codes';
|
|
5
|
+
import { SessionEventMessageRole } from './payloads';
|
|
6
|
+
import { SessionCapabilityOutcome, SessionToolCallStatus } from './tool-call-enums';
|
|
7
|
+
export declare const SESSION_EVENT_PAYLOAD_SCHEMAS: {
|
|
8
|
+
readonly message_sent: z.ZodObject<{
|
|
9
|
+
turnId: z.ZodString;
|
|
10
|
+
role: z.ZodLiteral<SessionEventMessageRole.User>;
|
|
11
|
+
actorId: z.ZodString;
|
|
12
|
+
actor: z.ZodObject<{
|
|
13
|
+
subjectKind: z.ZodEnum<typeof SessionEventActorSubjectKind>;
|
|
14
|
+
subjectRef: z.ZodString;
|
|
15
|
+
displayName: z.ZodString;
|
|
16
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
contentPreview: z.ZodString;
|
|
19
|
+
executor: z.ZodOptional<z.ZodString>;
|
|
20
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
readonly message_received: z.ZodObject<{
|
|
23
|
+
turnId: z.ZodString;
|
|
24
|
+
role: z.ZodLiteral<SessionEventMessageRole.Assistant>;
|
|
25
|
+
contentPreview: z.ZodString;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
readonly text_delta: z.ZodObject<{
|
|
28
|
+
turnId: z.ZodString;
|
|
29
|
+
text: z.ZodString;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
readonly reasoning_delta: z.ZodObject<{
|
|
32
|
+
turnId: z.ZodString;
|
|
33
|
+
text: z.ZodString;
|
|
34
|
+
}, z.core.$strict>;
|
|
35
|
+
readonly tool_call_started: z.ZodObject<{
|
|
36
|
+
turnId: z.ZodString;
|
|
37
|
+
toolName: z.ZodString;
|
|
38
|
+
status: z.ZodLiteral<SessionToolCallStatus.Started>;
|
|
39
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
41
|
+
capabilityRef: z.ZodOptional<z.ZodString>;
|
|
42
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
43
|
+
delegateSessionId: z.ZodOptional<z.ZodString>;
|
|
44
|
+
vista: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
readonly tool_call_completed: z.ZodObject<{
|
|
47
|
+
turnId: z.ZodString;
|
|
48
|
+
toolName: z.ZodString;
|
|
49
|
+
status: z.ZodLiteral<SessionToolCallStatus.Completed | SessionToolCallStatus.Error>;
|
|
50
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
51
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
52
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
53
|
+
capabilityRef: z.ZodOptional<z.ZodString>;
|
|
54
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
55
|
+
capabilityOutcome: z.ZodOptional<z.ZodEnum<typeof SessionCapabilityOutcome>>;
|
|
56
|
+
auditId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
delegateSessionId: z.ZodOptional<z.ZodString>;
|
|
58
|
+
vista: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
readonly error: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
|
+
phase: z.ZodLiteral<SessionErrorPhase.Chat>;
|
|
62
|
+
turnId: z.ZodString;
|
|
63
|
+
code: z.ZodLiteral<import("./error-codes").SessionErrorCode.ThreadBusy | import("./error-codes").SessionErrorCode.TurnFailed | import("./error-codes").SessionErrorCode.ConsentResumeFailed | import("./error-codes").SessionErrorCode.ToolIterationLimit | import("./error-codes").SessionErrorCode.NoTerminalFrame | import("./error-codes").SessionErrorCode.WorkerTurnFailed>;
|
|
64
|
+
message: z.ZodString;
|
|
65
|
+
detail: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
66
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
67
|
+
phase: z.ZodLiteral<SessionErrorPhase.Resume>;
|
|
68
|
+
code: z.ZodLiteral<import("./error-codes").SessionErrorCode.LaunchConfigResolutionFailed | import("./error-codes").SessionErrorCode.LaunchSelectionInvalid | import("./error-codes").SessionErrorCode.LaunchWorkerAcquireTimeout | import("./error-codes").SessionErrorCode.LaunchWorkerAcquireRejected | import("./error-codes").SessionErrorCode.LaunchWorkerAllocationLost | import("./error-codes").SessionErrorCode.LaunchControlBundleFailed | import("./error-codes").SessionErrorCode.LaunchControlBundleRejected | import("./error-codes").SessionErrorCode.LaunchBootstrapFailed | import("./error-codes").SessionErrorCode.LaunchBootstrapContractBroken | import("./error-codes").SessionErrorCode.LaunchProvisionFailed | import("./error-codes").SessionErrorCode.LaunchUnclassifiedFailure | import("./error-codes").SessionErrorCode.LaunchWorkspaceRestoreFailed | import("./error-codes").SessionErrorCode.LaunchWorkspaceSnapshotCorrupt | import("./error-codes").SessionErrorCode.LaunchWorkspaceSnapshotRuntimeNewer | import("./error-codes").SessionErrorCode.LaunchWorkingFileSourceMissing | import("./error-codes").SessionErrorCode.LaunchFinalizeFailed | import("./error-codes").SessionErrorCode.LaunchFinalizeReadinessFailed | import("./error-codes").SessionErrorCode.LaunchAgentUnavailable | import("./error-codes").SessionErrorCode.LaunchDeadlineExceeded | import("./error-codes").SessionErrorCode.LaunchIllegalTransition | import("./error-codes").SessionErrorCode.LaunchAbandoned>;
|
|
69
|
+
message: z.ZodString;
|
|
70
|
+
agentSlug: z.ZodOptional<z.ZodString>;
|
|
71
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
72
|
+
phase: z.ZodLiteral<SessionErrorPhase.Provisioning>;
|
|
73
|
+
code: z.ZodLiteral<import("./error-codes").SessionErrorCode.LaunchConfigResolutionFailed | import("./error-codes").SessionErrorCode.LaunchSelectionInvalid | import("./error-codes").SessionErrorCode.LaunchWorkerAcquireTimeout | import("./error-codes").SessionErrorCode.LaunchWorkerAcquireRejected | import("./error-codes").SessionErrorCode.LaunchWorkerAllocationLost | import("./error-codes").SessionErrorCode.LaunchControlBundleFailed | import("./error-codes").SessionErrorCode.LaunchControlBundleRejected | import("./error-codes").SessionErrorCode.LaunchBootstrapFailed | import("./error-codes").SessionErrorCode.LaunchBootstrapContractBroken | import("./error-codes").SessionErrorCode.LaunchProvisionFailed | import("./error-codes").SessionErrorCode.LaunchUnclassifiedFailure | import("./error-codes").SessionErrorCode.LaunchWorkspaceRestoreFailed | import("./error-codes").SessionErrorCode.LaunchWorkspaceSnapshotCorrupt | import("./error-codes").SessionErrorCode.LaunchWorkspaceSnapshotRuntimeNewer | import("./error-codes").SessionErrorCode.LaunchWorkingFileSourceMissing | import("./error-codes").SessionErrorCode.LaunchFinalizeFailed | import("./error-codes").SessionErrorCode.LaunchFinalizeReadinessFailed | import("./error-codes").SessionErrorCode.LaunchAgentUnavailable | import("./error-codes").SessionErrorCode.LaunchDeadlineExceeded | import("./error-codes").SessionErrorCode.LaunchIllegalTransition | import("./error-codes").SessionErrorCode.LaunchAbandoned>;
|
|
74
|
+
message: z.ZodString;
|
|
75
|
+
}, z.core.$strict>], "phase">;
|
|
76
|
+
};
|
|
77
|
+
export type CoveredSessionEventType = keyof typeof SESSION_EVENT_PAYLOAD_SCHEMAS;
|
|
78
|
+
export declare class SessionEventPayloadContractError extends Error {
|
|
79
|
+
readonly subject: string;
|
|
80
|
+
readonly issues: readonly string[];
|
|
81
|
+
constructor(subject: string, issues: readonly string[]);
|
|
82
|
+
}
|
|
83
|
+
export declare function isSessionEventPayloadCovered(eventType: SessionEventType): eventType is CoveredSessionEventType;
|
|
84
|
+
export declare function assertValidSessionEventPayload(eventType: SessionEventType, payload: unknown): void;
|
|
85
|
+
export declare function assertValidAssistantMessageMetadata(metadata: unknown): void;
|
|
86
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/session-events/lib/session-event-payloads/validation.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAGL,iBAAiB,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAiO3B,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQhC,CAAC;AAGX,MAAM,MAAM,uBAAuB,GACjC,MAAM,OAAO,6BAA6B,CAAC;AAQ7C,qBAAa,gCAAiC,SAAQ,KAAK;IAEvD,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE;gBADzB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,MAAM,EAAE;CAQrC;AAGD,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,gBAAgB,GAC1B,SAAS,IAAI,uBAAuB,CAEtC;AAiBD,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,OAAO,GACf,IAAI,CAcN;AASD,wBAAgB,mCAAmC,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAQ3E"}
|