@qlever-llc/trellis 0.10.7 → 0.10.9

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.
Files changed (57) hide show
  1. package/esm/auth/protocol.d.ts +120 -3
  2. package/esm/auth/protocol.d.ts.map +1 -1
  3. package/esm/auth/protocol.js +43 -1
  4. package/esm/contract_support/mod.d.ts +1 -1
  5. package/esm/contract_support/mod.d.ts.map +1 -1
  6. package/esm/contract_support/mod.js +1 -1
  7. package/esm/contract_support/protocol.d.ts +67 -0
  8. package/esm/contract_support/protocol.d.ts.map +1 -1
  9. package/esm/contract_support/protocol.js +90 -0
  10. package/esm/generated-sdk/auth/contract.d.ts +1 -1
  11. package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
  12. package/esm/generated-sdk/auth/contract.js +2 -2
  13. package/esm/generated-sdk/auth/schemas.d.ts +329 -2
  14. package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
  15. package/esm/generated-sdk/auth/schemas.js +3 -3
  16. package/esm/generated-sdk/auth/types.d.ts +47 -3
  17. package/esm/generated-sdk/auth/types.d.ts.map +1 -1
  18. package/esm/generated-sdk/auth/types.js +1 -1
  19. package/esm/index.d.ts +2 -2
  20. package/esm/index.d.ts.map +1 -1
  21. package/esm/index.js +1 -1
  22. package/esm/server/service.d.ts +11 -2
  23. package/esm/server/service.d.ts.map +1 -1
  24. package/esm/server/service.js +28 -4
  25. package/package.json +2 -2
  26. package/script/auth/protocol.d.ts +120 -3
  27. package/script/auth/protocol.d.ts.map +1 -1
  28. package/script/auth/protocol.js +47 -5
  29. package/script/contract_support/mod.d.ts +1 -1
  30. package/script/contract_support/mod.d.ts.map +1 -1
  31. package/script/contract_support/mod.js +8 -1
  32. package/script/contract_support/protocol.d.ts +67 -0
  33. package/script/contract_support/protocol.d.ts.map +1 -1
  34. package/script/contract_support/protocol.js +96 -1
  35. package/script/generated-sdk/auth/contract.d.ts +1 -1
  36. package/script/generated-sdk/auth/contract.d.ts.map +1 -1
  37. package/script/generated-sdk/auth/contract.js +2 -2
  38. package/script/generated-sdk/auth/schemas.d.ts +329 -2
  39. package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
  40. package/script/generated-sdk/auth/schemas.js +3 -3
  41. package/script/generated-sdk/auth/types.d.ts +47 -3
  42. package/script/generated-sdk/auth/types.d.ts.map +1 -1
  43. package/script/generated-sdk/auth/types.js +1 -1
  44. package/script/index.d.ts +2 -2
  45. package/script/index.d.ts.map +1 -1
  46. package/script/index.js +9 -2
  47. package/script/server/service.d.ts +11 -2
  48. package/script/server/service.d.ts.map +1 -1
  49. package/script/server/service.js +27 -3
  50. package/src/auth/protocol.ts +55 -1
  51. package/src/contract_support/mod.ts +12 -0
  52. package/src/contract_support/protocol.ts +137 -0
  53. package/src/index.ts +12 -0
  54. package/src/sdk/_generated/auth/contract.ts +2 -2
  55. package/src/sdk/_generated/auth/schemas.ts +3 -3
  56. package/src/sdk/_generated/auth/types.ts +4 -4
  57. package/src/server/service.ts +52 -3
@@ -5,8 +5,8 @@ import { API } from "./api.js";
5
5
  const CONTRACT_MODULE_METADATA = Symbol.for("@qlever-llc/trellis/contracts/contract-module");
6
6
 
7
7
  export const CONTRACT_ID = "trellis.auth@v1" as const;
8
- export const CONTRACT_DIGEST = "gLadyuZkZX2uxa3wnVMUJkDDddoVgRrDEzH8TIdeDyw" as const;
9
- export const CONTRACT = {"capabilities":{"trellis.auth::device.review":{"description":"Review and decide pending device activation requests.","displayName":"Review device activation"},"trellis.auth::events.auth":{"description":"Publish or subscribe to Trellis auth lifecycle events.","displayName":"Observe auth events"}},"description":"Provide Trellis authentication, session, deployment, instance, and admin RPCs.","displayName":"Trellis Auth","docs":{"markdown":"Owns Trellis sessions, identity grants, deployment authority, devices, portals, capability groups, and request validation.","summary":"Authentication and authorization APIs."},"events":{"Auth.Connections.Closed":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::events.auth"]},"docs":{"markdown":"Published when an authenticated connection closes.","summary":"Connection closed."},"event":{"schema":"AuthConnectionsClosedEvent"},"subject":"events.v1.Auth.Connections.Closed","version":"v1"},"Auth.Connections.Kicked":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::events.auth"]},"docs":{"markdown":"Published when auth disconnects a connection administratively.","summary":"Connection kicked."},"event":{"schema":"AuthConnectionsKickedEvent"},"subject":"events.v1.Auth.Connections.Kicked","version":"v1"},"Auth.Connections.Opened":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::events.auth"]},"docs":{"markdown":"Published when an authenticated connection opens.","summary":"Connection opened."},"event":{"schema":"AuthConnectionsOpenedEvent"},"subject":"events.v1.Auth.Connections.Opened","version":"v1"},"Auth.DeviceUserAuthorities.Approved":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::device.review"]},"docs":{"markdown":"Published when requested device user authorities are approved.","summary":"Authorities approved."},"event":{"schema":"AuthDeviceUserAuthoritiesApprovedEvent"},"params":["/deploymentId"],"subject":"events.v1.Auth.DeviceUserAuthorities.Approved.{/deploymentId}","version":"v1"},"Auth.DeviceUserAuthorities.Requested":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::device.review"]},"docs":{"markdown":"Published when a device requests user authorities.","summary":"Authorities requested."},"event":{"schema":"AuthDeviceUserAuthoritiesRequestedEvent"},"params":["/deploymentId"],"subject":"events.v1.Auth.DeviceUserAuthorities.Requested.{/deploymentId}","version":"v1"},"Auth.DeviceUserAuthorities.Resolved":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::device.review","trellis.auth::events.auth"]},"docs":{"markdown":"Published when a device authority resolution completes.","summary":"Authorities resolved."},"event":{"schema":"AuthDeviceUserAuthoritiesResolvedEvent"},"params":["/deploymentId"],"subject":"events.v1.Auth.DeviceUserAuthorities.Resolved.{/deploymentId}","version":"v1"},"Auth.DeviceUserAuthorities.ReviewRequested":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::device.review"]},"docs":{"markdown":"Published when a device authority request needs review.","summary":"Review requested."},"event":{"schema":"AuthDeviceUserAuthoritiesReviewRequestedEvent"},"params":["/deploymentId"],"subject":"events.v1.Auth.DeviceUserAuthorities.ReviewRequested.{/deploymentId}","version":"v1"},"Auth.Sessions.Revoked":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::events.auth"]},"docs":{"markdown":"Published when a user session is revoked.","summary":"Session revoked."},"event":{"schema":"AuthSessionsRevokedEvent"},"subject":"events.v1.Auth.Sessions.Revoked","version":"v1"}},"format":"trellis.contract.v1","id":"trellis.auth@v1","kind":"service","operations":{"Auth.DeviceUserAuthorities.Resolve":{"capabilities":{"call":[]},"docs":{"markdown":"Runs the asynchronous workflow that resolves requested user authorities for a device.","summary":"Resolve device authorities."},"input":{"schema":"AuthResolveDeviceUserAuthoritiesRequest"},"output":{"schema":"AuthResolveDeviceUserAuthoritiesResponse"},"progress":{"schema":"AuthResolveDeviceUserAuthoritiesProgress"},"subject":"operations.v1.Auth.DeviceUserAuthorities.Resolve","version":"v1"}},"rpc":{"Auth.Capabilities.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists capability definitions known to auth.","summary":"List capabilities."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCapabilitiesListRequest"},"output":{"schema":"AuthCapabilitiesListResponse"},"subject":"rpc.v1.Auth.Capabilities.List","version":"v1"},"Auth.CapabilityGroups.Delete":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Deletes a reusable capability group.","summary":"Delete capability group."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCapabilityGroupsDeleteRequest"},"output":{"schema":"AuthCapabilityGroupsDeleteResponse"},"subject":"rpc.v1.Auth.CapabilityGroups.Delete","version":"v1"},"Auth.CapabilityGroups.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns one reusable capability group.","summary":"Read capability group."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCapabilityGroupsGetRequest"},"output":{"schema":"AuthCapabilityGroupsGetResponse"},"subject":"rpc.v1.Auth.CapabilityGroups.Get","version":"v1"},"Auth.CapabilityGroups.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists reusable capability groups.","summary":"List capability groups."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCapabilityGroupsListRequest"},"output":{"schema":"AuthCapabilityGroupsListResponse"},"subject":"rpc.v1.Auth.CapabilityGroups.List","version":"v1"},"Auth.CapabilityGroups.Put":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates or replaces a reusable capability group.","summary":"Write capability group."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCapabilityGroupsPutRequest"},"output":{"schema":"AuthCapabilityGroupsPutResponse"},"subject":"rpc.v1.Auth.CapabilityGroups.Put","version":"v1"},"Auth.CatalogIssues.Resolve":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Marks an auth catalog issue as resolved.","summary":"Resolve catalog issue."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCatalogIssuesResolveRequest"},"output":{"schema":"AuthCatalogIssuesResolveResponse"},"subject":"rpc.v1.Auth.CatalogIssues.Resolve","version":"v1"},"Auth.Connections.Kick":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Disconnects an active authenticated connection.","summary":"Kick one connection."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthConnectionsKickRequest"},"output":{"schema":"AuthConnectionsKickResponse"},"subject":"rpc.v1.Auth.Connections.Kick","version":"v1"},"Auth.Connections.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists live authenticated connections visible to administrators.","summary":"List active connections."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthConnectionsListRequest"},"output":{"schema":"AuthConnectionsListResponse"},"subject":"rpc.v1.Auth.Connections.List","version":"v1"},"Auth.DeploymentAuthority.AcceptMigration":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Accepts an acknowledged authority migration plan.","summary":"Accept authority migration."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityAcceptMigrationRequest"},"output":{"schema":"AuthDeploymentAuthorityAcceptResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.AcceptMigration","version":"v1"},"Auth.DeploymentAuthority.AcceptUpdate":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Accepts a non-breaking authority update plan.","summary":"Accept authority update."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityAcceptUpdateRequest"},"output":{"schema":"AuthDeploymentAuthorityAcceptResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.AcceptUpdate","version":"v1"},"Auth.DeploymentAuthority.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns desired deployment authority and current materialized authority.","summary":"Read deployment authority."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityGetRequest"},"output":{"schema":"AuthDeploymentAuthorityGetResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Get","version":"v1"},"Auth.DeploymentAuthority.GrantOverrides.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists deployment authority grant overrides.","summary":"List grant overrides."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityGrantOverridesListRequest"},"output":{"schema":"AuthDeploymentAuthorityGrantOverridesListResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.GrantOverrides.List","version":"v1"},"Auth.DeploymentAuthority.GrantOverrides.Put":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Replaces deployment authority grant overrides for one deployment.","summary":"Set grant overrides."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityGrantOverridesPutRequest"},"output":{"schema":"AuthDeploymentAuthorityGrantOverridesResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.GrantOverrides.Put","version":"v1"},"Auth.DeploymentAuthority.GrantOverrides.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes matching deployment authority grant overrides.","summary":"Remove grant overrides."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityGrantOverridesRemoveRequest"},"output":{"schema":"AuthDeploymentAuthorityGrantOverridesResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.GrantOverrides.Remove","version":"v1"},"Auth.DeploymentAuthority.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists deployment-owned desired authority.","summary":"List deployment authority."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityListRequest"},"output":{"schema":"AuthDeploymentAuthorityListResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.List","version":"v1"},"Auth.DeploymentAuthority.Plan":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Builds an authority update or migration plan from a contract.","summary":"Plan deployment authority."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityPlanRequest"},"output":{"schema":"AuthDeploymentAuthorityPlanResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Plan","version":"v1"},"Auth.DeploymentAuthority.Plans.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns one pending or historical deployment authority plan.","summary":"Read authority plan."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityPlansGetRequest"},"output":{"schema":"AuthDeploymentAuthorityPlansGetResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Plans.Get","version":"v1"},"Auth.DeploymentAuthority.Plans.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists pending and historical deployment authority plans with optional filters.","summary":"List authority plans."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"}],"input":{"schema":"AuthDeploymentAuthorityPlansListRequest"},"output":{"schema":"AuthDeploymentAuthorityPlansListResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Plans.List","version":"v1"},"Auth.DeploymentAuthority.Reconcile":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Triggers convergence from desired authority to materialized authority.","summary":"Reconcile deployment authority."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityReconcileRequest"},"output":{"schema":"AuthDeploymentAuthorityReconcileResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Reconcile","version":"v1"},"Auth.DeploymentAuthority.Reject":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Rejects a pending authority plan without mutating desired state.","summary":"Reject authority plan."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityRejectRequest"},"output":{"schema":"AuthDeploymentAuthorityRejectResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Reject","version":"v1"},"Auth.Deployments.Create":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates a deployment boundary for services, apps, or devices.","summary":"Create deployment."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentsCreateRequest"},"output":{"schema":"AuthDeploymentsCreateResponse"},"subject":"rpc.v1.Auth.Deployments.Create","version":"v1"},"Auth.Deployments.Disable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Disables a deployment boundary without removing it.","summary":"Disable deployment."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentsDisableRequest"},"output":{"schema":"AuthDeploymentsDisableResponse"},"subject":"rpc.v1.Auth.Deployments.Disable","version":"v1"},"Auth.Deployments.Enable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Re-enables a disabled deployment boundary.","summary":"Enable deployment."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentsEnableRequest"},"output":{"schema":"AuthDeploymentsEnableResponse"},"subject":"rpc.v1.Auth.Deployments.Enable","version":"v1"},"Auth.Deployments.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists deployment boundaries and their current state.","summary":"List deployments."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentsListRequest"},"output":{"schema":"AuthDeploymentsListResponse"},"subject":"rpc.v1.Auth.Deployments.List","version":"v1"},"Auth.Deployments.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes a deployment boundary.","summary":"Remove deployment."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentsRemoveRequest"},"output":{"schema":"AuthDeploymentsRemoveResponse"},"subject":"rpc.v1.Auth.Deployments.Remove","version":"v1"},"Auth.DeviceUserAuthorities.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists user authority grants for devices.","summary":"List device authorities."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeviceUserAuthoritiesListRequest"},"output":{"schema":"AuthDeviceUserAuthoritiesListResponse"},"subject":"rpc.v1.Auth.DeviceUserAuthorities.List","version":"v1"},"Auth.DeviceUserAuthorities.Reviews.Decide":{"capabilities":{"call":["trellis.auth::device.review"]},"docs":{"markdown":"Approves or rejects a device authority review.","summary":"Decide device review."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeviceUserAuthoritiesReviewsDecideRequest"},"output":{"schema":"AuthDeviceUserAuthoritiesReviewsDecideResponse"},"subject":"rpc.v1.Auth.DeviceUserAuthorities.Reviews.Decide","version":"v1"},"Auth.DeviceUserAuthorities.Reviews.List":{"capabilities":{"call":["trellis.auth::device.review"]},"docs":{"markdown":"Lists pending device authority reviews.","summary":"List device reviews."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeviceUserAuthoritiesReviewsListRequest"},"output":{"schema":"AuthDeviceUserAuthoritiesReviewsListResponse"},"subject":"rpc.v1.Auth.DeviceUserAuthorities.Reviews.List","version":"v1"},"Auth.DeviceUserAuthorities.Revoke":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Revokes one user authority grant for a device.","summary":"Revoke device authority."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeviceUserAuthoritiesRevokeRequest"},"output":{"schema":"AuthDeviceUserAuthoritiesRevokeResponse"},"subject":"rpc.v1.Auth.DeviceUserAuthorities.Revoke","version":"v1"},"Auth.Devices.ConnectInfo.Get":{"capabilities":{"call":[]},"docs":{"markdown":"Returns activation connection information for a device.","summary":"Read device connect info."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesConnectInfoGetRequest"},"output":{"schema":"AuthDevicesConnectInfoGetResponse"},"subject":"rpc.v1.Auth.Devices.ConnectInfo.Get","version":"v1"},"Auth.Devices.Disable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Disables an activated or registered device.","summary":"Disable device."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesDisableRequest"},"output":{"schema":"AuthDevicesDisableResponse"},"subject":"rpc.v1.Auth.Devices.Disable","version":"v1"},"Auth.Devices.Enable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Re-enables a disabled device.","summary":"Enable device."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesEnableRequest"},"output":{"schema":"AuthDevicesEnableResponse"},"subject":"rpc.v1.Auth.Devices.Enable","version":"v1"},"Auth.Devices.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists registered and activated devices.","summary":"List devices."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesListRequest"},"output":{"schema":"AuthDevicesListResponse"},"subject":"rpc.v1.Auth.Devices.List","version":"v1"},"Auth.Devices.Provision":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates a preregistered device record and activation material.","summary":"Provision device."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesProvisionRequest"},"output":{"schema":"AuthDevicesProvisionResponse"},"subject":"rpc.v1.Auth.Devices.Provision","version":"v1"},"Auth.Devices.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes a device record.","summary":"Remove device."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesRemoveRequest"},"output":{"schema":"AuthDevicesRemoveResponse"},"subject":"rpc.v1.Auth.Devices.Remove","version":"v1"},"Auth.Health":{"capabilities":{"call":[]},"docs":{"markdown":"Returns auth service health details.","summary":"Check auth service health."},"errors":[{"type":"UnexpectedError"}],"input":{"schema":"HealthRequest"},"output":{"schema":"HealthResponse"},"subject":"rpc.v1.Auth.Health","version":"v1"},"Auth.Identities.List":{"capabilities":{"call":[]},"docs":{"markdown":"Lists known authenticated identities.","summary":"List identities."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthIdentitiesListRequest"},"output":{"schema":"AuthIdentitiesListResponse"},"subject":"rpc.v1.Auth.Identities.List","version":"v1"},"Auth.IdentityGrants.List":{"capabilities":{"call":[]},"docs":{"markdown":"Lists identity grants for the caller or an admin-selected user.","summary":"List identity grants."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"}],"input":{"schema":"AuthIdentityGrantsListRequest"},"output":{"schema":"AuthIdentityGrantsListResponse"},"subject":"rpc.v1.Auth.IdentityGrants.List","version":"v1"},"Auth.IdentityGrants.Revoke":{"capabilities":{"call":[]},"docs":{"markdown":"Revokes deployment access for one identity grant.","summary":"Revoke identity grant."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthIdentityGrantsRevokeRequest"},"output":{"schema":"AuthIdentityGrantsRevokeResponse"},"subject":"rpc.v1.Auth.IdentityGrants.Revoke","version":"v1"},"Auth.Portals.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns one authentication portal configuration.","summary":"Read portal."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsGetRequest"},"output":{"schema":"AuthPortalsGetResponse"},"subject":"rpc.v1.Auth.Portals.Get","version":"v1"},"Auth.Portals.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists configured authentication portals.","summary":"List portals."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"}],"input":{"schema":"AuthPortalsListRequest"},"output":{"schema":"AuthPortalsListResponse"},"subject":"rpc.v1.Auth.Portals.List","version":"v1"},"Auth.Portals.LoginSettings.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns login settings for an authentication portal.","summary":"Read login settings."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsLoginSettingsGetRequest"},"output":{"schema":"AuthPortalsLoginSettingsResponse"},"subject":"rpc.v1.Auth.Portals.LoginSettings.Get","version":"v1"},"Auth.Portals.LoginSettings.Update":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Updates login settings for an authentication portal.","summary":"Update login settings."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsLoginSettingsUpdateRequest"},"output":{"schema":"AuthPortalsLoginSettingsResponse"},"subject":"rpc.v1.Auth.Portals.LoginSettings.Update","version":"v1"},"Auth.Portals.Put":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates or replaces an authentication portal configuration.","summary":"Write portal."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsPutRequest"},"output":{"schema":"AuthPortalsPutResponse"},"subject":"rpc.v1.Auth.Portals.Put","version":"v1"},"Auth.Portals.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes an authentication portal configuration.","summary":"Remove portal."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsRemoveRequest"},"output":{"schema":"AuthPortalsRemoveResponse"},"subject":"rpc.v1.Auth.Portals.Remove","version":"v1"},"Auth.Portals.Routes.Put":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates or replaces a route for an authentication portal.","summary":"Write portal route."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsRoutesPutRequest"},"output":{"schema":"AuthPortalsRoutesPutResponse"},"subject":"rpc.v1.Auth.Portals.Routes.Put","version":"v1"},"Auth.Portals.Routes.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes a route from an authentication portal.","summary":"Remove portal route."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsRoutesRemoveRequest"},"output":{"schema":"AuthPortalsRoutesRemoveResponse"},"subject":"rpc.v1.Auth.Portals.Routes.Remove","version":"v1"},"Auth.Requests.Validate":{"capabilities":{"call":["service"]},"docs":{"markdown":"Validates an inbound request envelope for service-side authorization.","summary":"Validate request auth."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthRequestsValidateRequest"},"output":{"schema":"AuthRequestsValidateResponse"},"subject":"rpc.v1.Auth.Requests.Validate","version":"v1"},"Auth.ServiceInstances.Disable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Disables a provisioned service instance.","summary":"Disable service instance."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthServiceInstancesDisableRequest"},"output":{"schema":"AuthServiceInstancesDisableResponse"},"subject":"rpc.v1.Auth.ServiceInstances.Disable","version":"v1"},"Auth.ServiceInstances.Enable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Re-enables a provisioned service instance.","summary":"Enable service instance."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthServiceInstancesEnableRequest"},"output":{"schema":"AuthServiceInstancesEnableResponse"},"subject":"rpc.v1.Auth.ServiceInstances.Enable","version":"v1"},"Auth.ServiceInstances.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists provisioned service instances.","summary":"List service instances."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthServiceInstancesListRequest"},"output":{"schema":"AuthServiceInstancesListResponse"},"subject":"rpc.v1.Auth.ServiceInstances.List","version":"v1"},"Auth.ServiceInstances.Provision":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates credentials and metadata for a service instance.","summary":"Provision service instance."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthServiceInstancesProvisionRequest"},"output":{"schema":"AuthServiceInstancesProvisionResponse"},"subject":"rpc.v1.Auth.ServiceInstances.Provision","version":"v1"},"Auth.ServiceInstances.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes a provisioned service instance.","summary":"Remove service instance."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthServiceInstancesRemoveRequest"},"output":{"schema":"AuthServiceInstancesRemoveResponse"},"subject":"rpc.v1.Auth.ServiceInstances.Remove","version":"v1"},"Auth.Sessions.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists authenticated sessions visible to administrators.","summary":"List sessions."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthSessionsListRequest"},"output":{"schema":"AuthSessionsListResponse"},"subject":"rpc.v1.Auth.Sessions.List","version":"v1"},"Auth.Sessions.Logout":{"capabilities":{"call":[]},"docs":{"markdown":"Revokes the caller's active session.","summary":"Log out current session."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"}],"input":{"schema":"AuthSessionsLogoutRequest"},"output":{"schema":"AuthSessionsLogoutResponse"},"subject":"rpc.v1.Auth.Sessions.Logout","version":"v1"},"Auth.Sessions.Me":{"capabilities":{"call":[]},"docs":{"markdown":"Returns identity and capability details for the caller's session.","summary":"Read current session."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"}],"input":{"schema":"AuthSessionsMeRequest"},"output":{"schema":"AuthSessionsMeResponse"},"subject":"rpc.v1.Auth.Sessions.Me","version":"v1"},"Auth.Sessions.Revoke":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Revokes a user session by administrative request.","summary":"Revoke a session."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthSessionsRevokeRequest"},"output":{"schema":"AuthSessionsRevokeResponse"},"subject":"rpc.v1.Auth.Sessions.Revoke","version":"v1"},"Auth.UserIdentities.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists external identities linked to a user.","summary":"List user identities."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUserIdentitiesListRequest"},"output":{"schema":"AuthUserIdentitiesListResponse"},"subject":"rpc.v1.Auth.UserIdentities.List","version":"v1"},"Auth.UserIdentities.Unlink":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes an external identity link from a user.","summary":"Unlink user identity."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUserIdentitiesUnlinkRequest"},"output":{"schema":"AuthUserIdentitiesUnlinkResponse"},"subject":"rpc.v1.Auth.UserIdentities.Unlink","version":"v1"},"Auth.Users.Create":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates a user account.","summary":"Create user."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersCreateRequest"},"output":{"schema":"AuthUsersCreateResponse"},"subject":"rpc.v1.Auth.Users.Create","version":"v1"},"Auth.Users.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns one user account.","summary":"Read user."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersGetRequest"},"output":{"schema":"AuthUsersGetResponse"},"subject":"rpc.v1.Auth.Users.Get","version":"v1"},"Auth.Users.IdentityLink.Create":{"capabilities":{"call":[]},"docs":{"markdown":"Starts an account flow to link an external identity.","summary":"Start identity link."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersIdentityLinkCreateRequest"},"output":{"schema":"AuthUsersAccountFlowCreateResponse"},"subject":"rpc.v1.Auth.Users.IdentityLink.Create","version":"v1"},"Auth.Users.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists user accounts.","summary":"List users."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersListRequest"},"output":{"schema":"AuthUsersListResponse"},"subject":"rpc.v1.Auth.Users.List","version":"v1"},"Auth.Users.Password.Change":{"capabilities":{"call":[]},"docs":{"markdown":"Changes the caller's password.","summary":"Change password."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersPasswordChangeRequest"},"output":{"schema":"AuthUsersPasswordChangeResponse"},"subject":"rpc.v1.Auth.Users.Password.Change","version":"v1"},"Auth.Users.PasswordReset.Create":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Starts an account flow to reset a user password.","summary":"Start password reset."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersPasswordResetCreateRequest"},"output":{"schema":"AuthUsersAccountFlowCreateResponse"},"subject":"rpc.v1.Auth.Users.PasswordReset.Create","version":"v1"},"Auth.Users.Update":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Updates user account metadata or status.","summary":"Update user."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersUpdateRequest"},"output":{"schema":"AuthUsersUpdateResponse"},"subject":"rpc.v1.Auth.Users.Update","version":"v1"}},"schemas":{"AuthCapabilitiesListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthCapabilitiesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"consequence":{"minLength":1,"type":"string"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractDisplayName":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"key":{"minLength":1,"type":"string"},"source":{"anyOf":[{"const":"contract","type":"string"},{"const":"platform","type":"string"}]}},"required":["key","displayName","description","source"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthCapabilityGroupsDeleteRequest":{"properties":{"groupKey":{"minLength":1,"type":"string"}},"required":["groupKey"],"type":"object"},"AuthCapabilityGroupsDeleteResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthCapabilityGroupsGetRequest":{"properties":{"groupKey":{"minLength":1,"type":"string"}},"required":["groupKey"],"type":"object"},"AuthCapabilityGroupsGetResponse":{"properties":{"group":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"groupKey":{"minLength":1,"type":"string"},"includedGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"updatedAt":{"format":"date-time","type":"string"}},"required":["groupKey","displayName","description","capabilities","includedGroups","createdAt","updatedAt"],"type":"object"}},"required":["group"],"type":"object"},"AuthCapabilityGroupsListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthCapabilityGroupsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"groupKey":{"minLength":1,"type":"string"},"includedGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"updatedAt":{"format":"date-time","type":"string"}},"required":["groupKey","displayName","description","capabilities","includedGroups","createdAt","updatedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthCapabilityGroupsPutRequest":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"groupKey":{"minLength":1,"type":"string"},"includedGroups":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["groupKey","displayName","description"],"type":"object"},"AuthCapabilityGroupsPutResponse":{"properties":{"group":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"groupKey":{"minLength":1,"type":"string"},"includedGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"updatedAt":{"format":"date-time","type":"string"}},"required":["groupKey","displayName","description","capabilities","includedGroups","createdAt","updatedAt"],"type":"object"}},"required":["group"],"type":"object"},"AuthCatalogIssuesResolveRequest":{"properties":{"action":{"anyOf":[{"const":"keep-current","type":"string"},{"const":"force-replace","type":"string"}]},"issueId":{"minLength":1,"type":"string"}},"required":["issueId","action"],"type":"object"},"AuthCatalogIssuesResolveResponse":{"properties":{"action":{"anyOf":[{"const":"keep-current","type":"string"},{"const":"force-replace","type":"string"}]},"issueId":{"minLength":1,"type":"string"},"success":{"const":true,"type":"boolean"}},"required":["success","issueId","action"],"type":"object"},"AuthConnectionsClosedEvent":{"allOf":[{"properties":{"header":{"properties":{"id":{"type":"string"},"time":{"format":"date-time","type":"string"}},"required":["id","time"],"type":"object"}},"required":["header"],"type":"object"},{"properties":{"id":{"type":"string"},"origin":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["origin","id","sessionKey","userNkey"],"type":"object"}]},"AuthConnectionsKickRequest":{"properties":{"userNkey":{"type":"string"}},"required":["userNkey"],"type":"object"},"AuthConnectionsKickResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthConnectionsKickedEvent":{"allOf":[{"properties":{"header":{"properties":{"id":{"type":"string"},"time":{"format":"date-time","type":"string"}},"required":["id","time"],"type":"object"}},"required":["header"],"type":"object"},{"properties":{"id":{"type":"string"},"kickedBy":{"type":"string"},"origin":{"type":"string"},"userNkey":{"type":"string"}},"required":["origin","id","userNkey","kickedBy"],"type":"object"}]},"AuthConnectionsListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"sessionKey":{"type":"string"},"user":{"type":"string"}},"required":["limit"],"type":"object"},"AuthConnectionsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"anyOf":[{"properties":{"clientId":{"type":"number"},"connectedAt":{"type":"string"},"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"key":{"type":"string"},"participantKind":{"const":"app","type":"string"},"principal":{"properties":{"identity":{"properties":{"identityId":{"type":"string"},"provider":{"type":"string"},"subject":{"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"name":{"type":"string"},"type":{"const":"user","type":"string"},"userId":{"type":"string"}},"required":["type","userId","identity","name"],"type":"object"},"serverId":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["key","userNkey","sessionKey","serverId","clientId","connectedAt","participantKind","principal","contractId","contractDisplayName"],"type":"object"},{"properties":{"clientId":{"type":"number"},"connectedAt":{"type":"string"},"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"key":{"type":"string"},"participantKind":{"const":"agent","type":"string"},"principal":{"properties":{"identity":{"properties":{"identityId":{"type":"string"},"provider":{"type":"string"},"subject":{"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"name":{"type":"string"},"type":{"const":"user","type":"string"},"userId":{"type":"string"}},"required":["type","userId","identity","name"],"type":"object"},"serverId":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["key","userNkey","sessionKey","serverId","clientId","connectedAt","participantKind","principal","contractId","contractDisplayName"],"type":"object"},{"properties":{"clientId":{"type":"number"},"connectedAt":{"type":"string"},"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"key":{"type":"string"},"participantKind":{"const":"device","type":"string"},"principal":{"properties":{"deploymentId":{"type":"string"},"deviceId":{"type":"string"},"deviceType":{"type":"string"},"runtimePublicKey":{"type":"string"},"type":{"const":"device","type":"string"}},"required":["type","deviceId","deviceType","runtimePublicKey","deploymentId"],"type":"object"},"serverId":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["key","userNkey","sessionKey","serverId","clientId","connectedAt","participantKind","principal","contractId"],"type":"object"},{"properties":{"clientId":{"type":"number"},"connectedAt":{"type":"string"},"key":{"type":"string"},"participantKind":{"const":"service","type":"string"},"principal":{"properties":{"deploymentId":{"type":"string"},"id":{"type":"string"},"instanceId":{"type":"string"},"name":{"type":"string"},"type":{"const":"service","type":"string"}},"required":["type","id","name","instanceId","deploymentId"],"type":"object"},"serverId":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["key","userNkey","sessionKey","serverId","clientId","connectedAt","participantKind","principal"],"type":"object"}]},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthConnectionsOpenedEvent":{"allOf":[{"properties":{"header":{"properties":{"id":{"type":"string"},"time":{"format":"date-time","type":"string"}},"required":["id","time"],"type":"object"}},"required":["header"],"type":"object"},{"properties":{"id":{"type":"string"},"origin":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["origin","id","sessionKey","userNkey"],"type":"object"}]},"AuthDeployment":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces","disabled"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId","disabled"],"type":"object"}]},"AuthDeploymentAuthorityAcceptMigrationRequest":{"properties":{"acknowledgement":{"minLength":1,"type":"string"},"expectedDesiredVersion":{"minLength":1,"type":"string"},"planId":{"minLength":1,"type":"string"}},"required":["planId","acknowledgement"],"type":"object"},"AuthDeploymentAuthorityAcceptResponse":{"properties":{"authority":{"properties":{"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"desiredState":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"needs":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"resources":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"type":"array"},"surfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"}},"required":["needs","capabilities","resources","surfaces"],"type":"object"},"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"version":{"minLength":1,"type":"string"}},"required":["deploymentId","kind","disabled","desiredState","version","createdAt","updatedAt"],"type":"object"}},"required":["authority"],"type":"object"},"AuthDeploymentAuthorityAcceptUpdateRequest":{"properties":{"expectedDesiredVersion":{"minLength":1,"type":"string"},"planId":{"minLength":1,"type":"string"}},"required":["planId"],"type":"object"},"AuthDeploymentAuthorityGetRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"}},"required":["deploymentId"],"type":"object"},"AuthDeploymentAuthorityGetResponse":{"properties":{"authority":{"properties":{"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"desiredState":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"needs":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"resources":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"type":"array"},"surfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"}},"required":["needs","capabilities","resources","surfaces"],"type":"object"},"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"version":{"minLength":1,"type":"string"}},"required":["deploymentId","kind","disabled","desiredState","version","createdAt","updatedAt"],"type":"object"},"grantOverrides":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"type":"array"},"materializedAuthority":{"anyOf":[{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"},"error":{"minLength":1,"type":"string"},"grants":{"items":{"type":"object"},"type":"array"},"reconciledAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"resourceBindings":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"binding":{"patternProperties":{"^.*$":{}},"type":"object"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"limits":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","kind","alias","binding","limits","createdAt","updatedAt"],"type":"object"},"type":"array"},"status":{"anyOf":[{"const":"current","type":"string"},{"const":"pending","type":"string"},{"const":"failed","type":"string"}]}},"required":["deploymentId","desiredVersion","status","resourceBindings","grants","reconciledAt"],"type":"object"},{"type":"null"}]},"portalRoute":{"anyOf":[{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","portalId","entryUrl","disabled","updatedAt"],"type":"object"},{"type":"null"}]}},"required":["authority","materializedAuthority","portalRoute","grantOverrides"],"type":"object"},"AuthDeploymentAuthorityGrantOverridesListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthDeploymentAuthorityGrantOverridesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeploymentAuthorityGrantOverridesPutRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"overrides":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"type":"array"}},"required":["deploymentId","overrides"],"type":"object"},"AuthDeploymentAuthorityGrantOverridesRemoveRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"overrides":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"type":"array"}},"required":["deploymentId","overrides"],"type":"object"},"AuthDeploymentAuthorityGrantOverridesResponse":{"properties":{"grantOverrides":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"type":"array"}},"required":["grantOverrides"],"type":"object"},"AuthDeploymentAuthorityListRequest":{"properties":{"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthDeploymentAuthorityListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"desiredState":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"needs":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"resources":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"type":"array"},"surfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"}},"required":["needs","capabilities","resources","surfaces"],"type":"object"},"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"version":{"minLength":1,"type":"string"}},"required":["deploymentId","kind","disabled","desiredState","version","createdAt","updatedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeploymentAuthorityPlanRequest":{"properties":{"contract":{"type":"object"},"deploymentId":{"minLength":1,"type":"string"},"expectedDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},"required":["deploymentId","contract","expectedDigest"],"type":"object"},"AuthDeploymentAuthorityPlanResponse":{"properties":{"plan":{"anyOf":[{"properties":{"classification":{"const":"update","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification"],"type":"object"},{"properties":{"acknowledgementRequired":{"type":"boolean"},"classification":{"const":"migration","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification","acknowledgementRequired"],"type":"object"}]}},"required":["plan"],"type":"object"},"AuthDeploymentAuthorityPlansGetRequest":{"properties":{"planId":{"minLength":1,"type":"string"}},"required":["planId"],"type":"object"},"AuthDeploymentAuthorityPlansGetResponse":{"properties":{"plan":{"anyOf":[{"properties":{"classification":{"const":"update","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification"],"type":"object"},{"properties":{"acknowledgementRequired":{"type":"boolean"},"classification":{"const":"migration","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification","acknowledgementRequired"],"type":"object"}]}},"required":["plan"],"type":"object"},"AuthDeploymentAuthorityPlansListRequest":{"properties":{"classification":{"anyOf":[{"const":"update","type":"string"},{"const":"migration","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]}},"required":["limit"],"type":"object"},"AuthDeploymentAuthorityPlansListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"anyOf":[{"properties":{"classification":{"const":"update","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification"],"type":"object"},{"properties":{"acknowledgementRequired":{"type":"boolean"},"classification":{"const":"migration","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification","acknowledgementRequired"],"type":"object"}]},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeploymentAuthorityReconcileRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"}},"required":["deploymentId"],"type":"object"},"AuthDeploymentAuthorityReconcileResponse":{"properties":{"authority":{"properties":{"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"desiredState":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"needs":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"resources":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"type":"array"},"surfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"}},"required":["needs","capabilities","resources","surfaces"],"type":"object"},"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"version":{"minLength":1,"type":"string"}},"required":["deploymentId","kind","disabled","desiredState","version","createdAt","updatedAt"],"type":"object"},"materializedAuthority":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"},"error":{"minLength":1,"type":"string"},"grants":{"items":{"type":"object"},"type":"array"},"reconciledAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"resourceBindings":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"binding":{"patternProperties":{"^.*$":{}},"type":"object"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"limits":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","kind","alias","binding","limits","createdAt","updatedAt"],"type":"object"},"type":"array"},"status":{"anyOf":[{"const":"current","type":"string"},{"const":"pending","type":"string"},{"const":"failed","type":"string"}]}},"required":["deploymentId","desiredVersion","status","resourceBindings","grants","reconciledAt"],"type":"object"},"reconciliation":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"},"finishedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"message":{"minLength":1,"type":"string"},"startedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"idle","type":"string"},{"const":"running","type":"string"},{"const":"succeeded","type":"string"},{"const":"failed","type":"string"}]}},"required":["deploymentId","desiredVersion","state","startedAt","finishedAt"],"type":"object"}},"required":["authority","materializedAuthority"],"type":"object"},"AuthDeploymentAuthorityRejectRequest":{"properties":{"planId":{"minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"}},"required":["planId"],"type":"object"},"AuthDeploymentAuthorityRejectResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthDeploymentsCreateRequest":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId"],"type":"object"}]},"AuthDeploymentsCreateResponse":{"properties":{"deployment":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces","disabled"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId","disabled"],"type":"object"}]}},"required":["deployment"],"type":"object"},"AuthDeploymentsDisableRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"}]}},"required":["kind","deploymentId"],"type":"object"},"AuthDeploymentsDisableResponse":{"properties":{"deployment":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces","disabled"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId","disabled"],"type":"object"}]}},"required":["deployment"],"type":"object"},"AuthDeploymentsEnableRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"}]}},"required":["kind","deploymentId"],"type":"object"},"AuthDeploymentsEnableResponse":{"properties":{"deployment":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces","disabled"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId","disabled"],"type":"object"}]}},"required":["deployment"],"type":"object"},"AuthDeploymentsListRequest":{"properties":{"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"}]},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthDeploymentsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces","disabled"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId","disabled"],"type":"object"}]},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeploymentsRemoveRequest":{"properties":{"cascade":{"type":"boolean"},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"}]},"purgeUnusedContracts":{"type":"boolean"}},"required":["kind","deploymentId"],"type":"object"},"AuthDeploymentsRemoveResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthDeviceUserAuthoritiesApprovedEvent":{"properties":{"approvedAt":{"format":"date-time","type":"string"},"approvedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"deploymentId":{"minLength":1,"type":"string"},"flowId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"requestedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"reviewId":{"minLength":1,"type":"string"}},"required":["reviewId","flowId","instanceId","publicIdentityKey","deploymentId","requestedAt","approvedAt","requestedBy","approvedBy"],"type":"object"},"AuthDeviceUserAuthoritiesListRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"state":{"anyOf":[{"const":"activated","type":"string"},{"const":"revoked","type":"string"}]}},"required":["limit"],"type":"object"},"AuthDeviceUserAuthoritiesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"activatedAt":{"format":"date-time","type":"string"},"activatedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"activated","type":"string"},{"const":"revoked","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","activatedAt","revokedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeviceUserAuthoritiesRequestedEvent":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"flowId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"requestedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"}},"required":["flowId","instanceId","publicIdentityKey","deploymentId","requestedAt","requestedBy"],"type":"object"},"AuthDeviceUserAuthoritiesResolvedEvent":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"flowId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"resolvedAt":{"format":"date-time","type":"string"},"resolvedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"reviewId":{"minLength":1,"type":"string"}},"required":["instanceId","publicIdentityKey","deploymentId","resolvedAt","resolvedBy"],"type":"object"},"AuthDeviceUserAuthoritiesReviewRequestedEvent":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"flowId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"requestedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"reviewId":{"minLength":1,"type":"string"}},"required":["reviewId","flowId","instanceId","publicIdentityKey","deploymentId","requestedAt","requestedBy"],"type":"object"},"AuthDeviceUserAuthoritiesReviewsDecideRequest":{"properties":{"decision":{"anyOf":[{"const":"approve","type":"string"},{"const":"reject","type":"string"}]},"reason":{"minLength":1,"type":"string"},"reviewId":{"minLength":1,"type":"string"}},"required":["reviewId","decision"],"type":"object"},"AuthDeviceUserAuthoritiesReviewsDecideResponse":{"properties":{"activation":{"properties":{"activatedAt":{"format":"date-time","type":"string"},"activatedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"activated","type":"string"},{"const":"revoked","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","activatedAt","revokedAt"],"type":"object"},"confirmationCode":{"minLength":1,"type":"string"},"review":{"properties":{"decidedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"reviewId":{"minLength":1,"type":"string"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"approved","type":"string"},{"const":"rejected","type":"string"}]}},"required":["reviewId","instanceId","publicIdentityKey","deploymentId","state","requestedAt","decidedAt"],"type":"object"}},"required":["review"],"type":"object"},"AuthDeviceUserAuthoritiesReviewsListRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"approved","type":"string"},{"const":"rejected","type":"string"}]}},"required":["limit"],"type":"object"},"AuthDeviceUserAuthoritiesReviewsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"decidedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"reviewId":{"minLength":1,"type":"string"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"approved","type":"string"},{"const":"rejected","type":"string"}]}},"required":["reviewId","instanceId","publicIdentityKey","deploymentId","state","requestedAt","decidedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeviceUserAuthoritiesRevokeRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthDeviceUserAuthoritiesRevokeResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthDevicesConnectInfoGetRequest":{"properties":{"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"iat":{"type":"number"},"publicIdentityKey":{"minLength":1,"type":"string"},"sig":{"minLength":1,"type":"string"}},"required":["publicIdentityKey","contractDigest","iat","sig"],"type":"object"},"AuthDevicesConnectInfoGetResponse":{"properties":{"connectInfo":{"properties":{"auth":{"properties":{"authority":{"anyOf":[{"const":"admin_reviewed","type":"string"},{"const":"user_delegated","type":"string"}]},"iatSkewSeconds":{"type":"number"},"mode":{"const":"device_identity","type":"string"}},"required":["mode","authority","iatSkewSeconds"],"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"transport":{"properties":{"sentinel":{"properties":{"jwt":{"type":"string"},"seed":{"type":"string"}},"required":["jwt","seed"],"type":"object"}},"required":["sentinel"],"type":"object"},"transports":{"properties":{"native":{"properties":{"natsServers":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["natsServers"],"type":"object"},"websocket":{"properties":{"natsServers":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["natsServers"],"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","contractId","contractDigest","transports","transport","auth"],"type":"object"},"status":{"const":"ready","type":"string"}},"required":["status","connectInfo"],"type":"object"},"AuthDevicesDisableRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthDevicesDisableResponse":{"properties":{"instance":{"properties":{"activatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","createdAt","activatedAt","revokedAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthDevicesEnableRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthDevicesEnableResponse":{"properties":{"instance":{"properties":{"activatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","createdAt","activatedAt","revokedAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthDevicesListRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["limit"],"type":"object"},"AuthDevicesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"activatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","createdAt","activatedAt","revokedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDevicesProvisionRequest":{"properties":{"activationKey":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"}},"required":["deploymentId","publicIdentityKey","activationKey"],"type":"object"},"AuthDevicesProvisionResponse":{"properties":{"instance":{"properties":{"activatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","createdAt","activatedAt","revokedAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthDevicesRemoveRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthDevicesRemoveResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthIdentitiesListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"user":{"minLength":1,"type":"string"}},"required":["limit"],"type":"object"},"AuthIdentitiesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"answer":{"anyOf":[{"const":"approved","type":"string"},{"const":"denied","type":"string"}]},"answeredAt":{"format":"date-time","type":"string"},"capabilities":{"patternProperties":{"^.*$":{"properties":{"consequence":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"}},"required":["displayName","description"],"type":"object"}},"type":"object"},"contractEvidence":{"properties":{"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"}},"required":["contractDigest","contractId"],"type":"object"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"identityAnchor":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"}},"required":["kind","contractId","origin"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"cli","type":"string"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["kind","contractId","sessionPublicKey"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"native","type":"string"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["kind","contractId","sessionPublicKey"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"devicePublicKey":{"minLength":1,"type":"string"},"kind":{"const":"device-user","type":"string"}},"required":["kind","contractId","devicePublicKey"],"type":"object"}]},"identityGrantId":{"minLength":1,"type":"string"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"user":{"minLength":1,"type":"string"}},"required":["user","answer","answeredAt","updatedAt","identityGrantId","identityAnchor","contractEvidence","displayName","description","capabilities","participantKind"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthIdentityGrantsListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"user":{"minLength":1,"type":"string"}},"required":["limit"],"type":"object"},"AuthIdentityGrantsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"contractEvidence":{"properties":{"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"}},"required":["contractDigest","contractId"],"type":"object"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"grantedAt":{"format":"date-time","type":"string"},"identityAnchor":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"}},"required":["kind","contractId","origin"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"cli","type":"string"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["kind","contractId","sessionPublicKey"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"native","type":"string"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["kind","contractId","sessionPublicKey"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"devicePublicKey":{"minLength":1,"type":"string"},"kind":{"const":"device-user","type":"string"}},"required":["kind","contractId","devicePublicKey"],"type":"object"}]},"identityGrantId":{"minLength":1,"type":"string"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["identityGrantId","identityAnchor","contractEvidence","displayName","description","participantKind","capabilities","grantedAt","updatedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthIdentityGrantsRevokeRequest":{"properties":{"identityGrantId":{"minLength":1,"type":"string"},"user":{"minLength":1,"type":"string"}},"required":["identityGrantId"],"type":"object"},"AuthIdentityGrantsRevokeResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthPortalsGetRequest":{"properties":{"portalId":{"minLength":1,"type":"string"}},"required":["portalId"],"type":"object"},"AuthPortalsGetResponse":{"properties":{"defaultCapabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"defaultCapabilityGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"federatedProviders":{"items":{"properties":{"displayName":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"},"type":{"minLength":1,"type":"string"}},"required":["id","displayName","type"],"type":"object"},"type":"array"},"portal":{"properties":{"builtIn":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","displayName","entryUrl","builtIn","disabled","createdAt","updatedAt"],"type":"object"},"routes":{"items":{"properties":{"contractId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"disabled":{"type":"boolean"},"origin":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"routeKey":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["routeKey","portalId","contractId","origin","disabled","updatedAt"],"type":"object"},"type":"array"},"settings":{"properties":{"allowedFederatedProviders":{"anyOf":[{"items":{"minLength":1,"type":"string"},"type":"array"},{"type":"null"}]},"federatedRegistrationEnabled":{"type":"boolean"},"localRegistrationEnabled":{"type":"boolean"},"portalId":{"minLength":1,"type":"string"},"selfRegisteredAccountActive":{"type":"boolean"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","localRegistrationEnabled","federatedRegistrationEnabled","allowedFederatedProviders","selfRegisteredAccountActive","updatedAt"],"type":"object"}},"required":["portal","settings","routes","defaultCapabilities","defaultCapabilityGroups","federatedProviders"],"type":"object"},"AuthPortalsListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthPortalsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"activeRouteCount":{"minimum":0,"type":"integer"},"builtIn":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"routeCount":{"minimum":0,"type":"integer"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","displayName","entryUrl","builtIn","disabled","createdAt","updatedAt","routeCount","activeRouteCount"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthPortalsLoginSettingsGetRequest":{"properties":{"portalId":{"minLength":1,"type":"string"}},"required":["portalId"],"type":"object"},"AuthPortalsLoginSettingsResponse":{"properties":{"defaultCapabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"defaultCapabilityGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"federatedProviders":{"items":{"properties":{"displayName":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"},"type":{"minLength":1,"type":"string"}},"required":["id","displayName","type"],"type":"object"},"type":"array"},"portal":{"properties":{"builtIn":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","displayName","entryUrl","builtIn","disabled","createdAt","updatedAt"],"type":"object"},"settings":{"properties":{"allowedFederatedProviders":{"anyOf":[{"items":{"minLength":1,"type":"string"},"type":"array"},{"type":"null"}]},"federatedRegistrationEnabled":{"type":"boolean"},"localRegistrationEnabled":{"type":"boolean"},"portalId":{"minLength":1,"type":"string"},"selfRegisteredAccountActive":{"type":"boolean"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","localRegistrationEnabled","federatedRegistrationEnabled","allowedFederatedProviders","selfRegisteredAccountActive","updatedAt"],"type":"object"}},"required":["portal","settings","defaultCapabilities","defaultCapabilityGroups","federatedProviders"],"type":"object"},"AuthPortalsLoginSettingsUpdateRequest":{"properties":{"allowedFederatedProviders":{"anyOf":[{"items":{"minLength":1,"type":"string"},"type":"array"},{"type":"null"}]},"defaultCapabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"defaultCapabilityGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"federatedRegistrationEnabled":{"type":"boolean"},"localRegistrationEnabled":{"type":"boolean"},"portalId":{"minLength":1,"type":"string"},"selfRegisteredAccountActive":{"type":"boolean"}},"required":["portalId","localRegistrationEnabled","federatedRegistrationEnabled","allowedFederatedProviders","selfRegisteredAccountActive","defaultCapabilities","defaultCapabilityGroups"],"type":"object"},"AuthPortalsPutRequest":{"properties":{"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"minLength":1,"type":"string"},"portalId":{"minLength":1,"type":"string"}},"required":["portalId","displayName","entryUrl"],"type":"object"},"AuthPortalsPutResponse":{"properties":{"portal":{"properties":{"builtIn":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","displayName","entryUrl","builtIn","disabled","createdAt","updatedAt"],"type":"object"}},"required":["portal"],"type":"object"},"AuthPortalsRemoveRequest":{"properties":{"portalId":{"minLength":1,"type":"string"}},"required":["portalId"],"type":"object"},"AuthPortalsRemoveResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthPortalsRoutesPutRequest":{"properties":{"contractId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"disabled":{"type":"boolean"},"origin":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"}},"required":["portalId"],"type":"object"},"AuthPortalsRoutesPutResponse":{"properties":{"route":{"properties":{"contractId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"disabled":{"type":"boolean"},"origin":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"routeKey":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["routeKey","portalId","contractId","origin","disabled","updatedAt"],"type":"object"}},"required":["route"],"type":"object"},"AuthPortalsRoutesRemoveRequest":{"properties":{"contractId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"origin":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"}},"required":["portalId"],"type":"object"},"AuthPortalsRoutesRemoveResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthRequestsValidateRequest":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"iat":{"type":"integer"},"payloadHash":{"minLength":1,"type":"string"},"proof":{"minLength":1,"type":"string"},"requestId":{"minLength":1,"type":"string"},"sessionKey":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["sessionKey","proof","subject","payloadHash","iat","requestId"],"type":"object"},"AuthRequestsValidateResponse":{"properties":{"allowed":{"type":"boolean"},"caller":{"anyOf":[{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"image":{"type":"string"},"lastAuth":{"format":"date-time","type":"string"},"name":{"type":"string"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"type":{"const":"user","type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["type","participantKind","userId","identity","active","name","email","capabilities","lastAuth"],"type":"object"},{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"name":{"type":"string"},"type":{"const":"service","type":"string"}},"required":["type","id","name","active","capabilities"],"type":"object"},{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"deploymentId":{"minLength":1,"type":"string"},"deviceId":{"minLength":1,"type":"string"},"deviceType":{"minLength":1,"type":"string"},"runtimePublicKey":{"minLength":1,"type":"string"},"type":{"const":"device","type":"string"}},"required":["type","deviceId","deviceType","runtimePublicKey","deploymentId","active","capabilities"],"type":"object"}]},"inboxPrefix":{"type":"string"}},"required":["allowed","inboxPrefix","caller"],"type":"object"},"AuthResolveDeviceUserAuthoritiesProgress":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"reviewId":{"minLength":1,"type":"string"},"status":{"const":"pending_review","type":"string"}},"required":["status","reviewId","instanceId","deploymentId","requestedAt"],"type":"object"},"AuthResolveDeviceUserAuthoritiesRequest":{"properties":{"flowId":{"minLength":1,"type":"string"}},"required":["flowId"],"type":"object"},"AuthResolveDeviceUserAuthoritiesResponse":{"anyOf":[{"properties":{"activatedAt":{"format":"date-time","type":"string"},"confirmationCode":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"status":{"const":"activated","type":"string"}},"required":["status","instanceId","deploymentId","activatedAt"],"type":"object"},{"properties":{"reason":{"minLength":1,"type":"string"},"status":{"const":"rejected","type":"string"}},"required":["status"],"type":"object"}]},"AuthServiceInstancesDisableRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthServiceInstancesDisableResponse":{"properties":{"instance":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"instanceId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"},"resourceBindings":{"properties":{"eventConsumers":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"filterSubjects":{"items":{"minLength":1,"type":"string"},"type":"array"},"maxDeliver":{"minimum":1,"type":"integer"},"ordering":{"const":"strict","type":"string"},"replay":{"anyOf":[{"const":"new","type":"string"},{"const":"all","type":"string"}]},"stream":{"minLength":1,"type":"string"}},"required":["stream","consumerName","filterSubjects","replay","ordering","concurrency","ackWaitMs","maxDeliver","backoffMs"],"type":"object"}},"type":"object"},"jobs":{"properties":{"namespace":{"minLength":1,"type":"string"},"queues":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"defaultDeadlineMs":{"minimum":1,"type":"integer"},"dlq":{"type":"boolean"},"logs":{"type":"boolean"},"maxDeliver":{"minimum":1,"type":"integer"},"payload":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"progress":{"type":"boolean"},"publishPrefix":{"minLength":1,"type":"string"},"queueType":{"minLength":1,"type":"string"},"result":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"workSubject":{"minLength":1,"type":"string"}},"required":["queueType","publishPrefix","workSubject","consumerName","payload","maxDeliver","backoffMs","ackWaitMs","progress","logs","dlq","concurrency"],"type":"object"}},"type":"object"},"workStream":{"minLength":1,"type":"string"}},"required":["namespace","queues"],"type":"object"},"kv":{"patternProperties":{"^.*$":{"properties":{"bucket":{"minLength":1,"type":"string"},"history":{"minimum":1,"type":"integer"},"maxValueBytes":{"minimum":1,"type":"integer"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["bucket","history","ttlMs"],"type":"object"}},"type":"object"},"store":{"patternProperties":{"^.*$":{"properties":{"maxObjectBytes":{"minimum":1,"type":"integer"},"maxTotalBytes":{"minimum":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["name","ttlMs"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","instanceKey","disabled","capabilities","createdAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthServiceInstancesEnableRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthServiceInstancesEnableResponse":{"properties":{"instance":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"instanceId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"},"resourceBindings":{"properties":{"eventConsumers":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"filterSubjects":{"items":{"minLength":1,"type":"string"},"type":"array"},"maxDeliver":{"minimum":1,"type":"integer"},"ordering":{"const":"strict","type":"string"},"replay":{"anyOf":[{"const":"new","type":"string"},{"const":"all","type":"string"}]},"stream":{"minLength":1,"type":"string"}},"required":["stream","consumerName","filterSubjects","replay","ordering","concurrency","ackWaitMs","maxDeliver","backoffMs"],"type":"object"}},"type":"object"},"jobs":{"properties":{"namespace":{"minLength":1,"type":"string"},"queues":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"defaultDeadlineMs":{"minimum":1,"type":"integer"},"dlq":{"type":"boolean"},"logs":{"type":"boolean"},"maxDeliver":{"minimum":1,"type":"integer"},"payload":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"progress":{"type":"boolean"},"publishPrefix":{"minLength":1,"type":"string"},"queueType":{"minLength":1,"type":"string"},"result":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"workSubject":{"minLength":1,"type":"string"}},"required":["queueType","publishPrefix","workSubject","consumerName","payload","maxDeliver","backoffMs","ackWaitMs","progress","logs","dlq","concurrency"],"type":"object"}},"type":"object"},"workStream":{"minLength":1,"type":"string"}},"required":["namespace","queues"],"type":"object"},"kv":{"patternProperties":{"^.*$":{"properties":{"bucket":{"minLength":1,"type":"string"},"history":{"minimum":1,"type":"integer"},"maxValueBytes":{"minimum":1,"type":"integer"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["bucket","history","ttlMs"],"type":"object"}},"type":"object"},"store":{"patternProperties":{"^.*$":{"properties":{"maxObjectBytes":{"minimum":1,"type":"integer"},"maxTotalBytes":{"minimum":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["name","ttlMs"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","instanceKey","disabled","capabilities","createdAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthServiceInstancesListRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthServiceInstancesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"instanceId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"},"resourceBindings":{"properties":{"eventConsumers":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"filterSubjects":{"items":{"minLength":1,"type":"string"},"type":"array"},"maxDeliver":{"minimum":1,"type":"integer"},"ordering":{"const":"strict","type":"string"},"replay":{"anyOf":[{"const":"new","type":"string"},{"const":"all","type":"string"}]},"stream":{"minLength":1,"type":"string"}},"required":["stream","consumerName","filterSubjects","replay","ordering","concurrency","ackWaitMs","maxDeliver","backoffMs"],"type":"object"}},"type":"object"},"jobs":{"properties":{"namespace":{"minLength":1,"type":"string"},"queues":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"defaultDeadlineMs":{"minimum":1,"type":"integer"},"dlq":{"type":"boolean"},"logs":{"type":"boolean"},"maxDeliver":{"minimum":1,"type":"integer"},"payload":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"progress":{"type":"boolean"},"publishPrefix":{"minLength":1,"type":"string"},"queueType":{"minLength":1,"type":"string"},"result":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"workSubject":{"minLength":1,"type":"string"}},"required":["queueType","publishPrefix","workSubject","consumerName","payload","maxDeliver","backoffMs","ackWaitMs","progress","logs","dlq","concurrency"],"type":"object"}},"type":"object"},"workStream":{"minLength":1,"type":"string"}},"required":["namespace","queues"],"type":"object"},"kv":{"patternProperties":{"^.*$":{"properties":{"bucket":{"minLength":1,"type":"string"},"history":{"minimum":1,"type":"integer"},"maxValueBytes":{"minimum":1,"type":"integer"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["bucket","history","ttlMs"],"type":"object"}},"type":"object"},"store":{"patternProperties":{"^.*$":{"properties":{"maxObjectBytes":{"minimum":1,"type":"integer"},"maxTotalBytes":{"minimum":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["name","ttlMs"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","instanceKey","disabled","capabilities","createdAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthServiceInstancesProvisionRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"}},"required":["deploymentId","instanceKey"],"type":"object"},"AuthServiceInstancesProvisionResponse":{"properties":{"instance":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"instanceId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"},"resourceBindings":{"properties":{"eventConsumers":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"filterSubjects":{"items":{"minLength":1,"type":"string"},"type":"array"},"maxDeliver":{"minimum":1,"type":"integer"},"ordering":{"const":"strict","type":"string"},"replay":{"anyOf":[{"const":"new","type":"string"},{"const":"all","type":"string"}]},"stream":{"minLength":1,"type":"string"}},"required":["stream","consumerName","filterSubjects","replay","ordering","concurrency","ackWaitMs","maxDeliver","backoffMs"],"type":"object"}},"type":"object"},"jobs":{"properties":{"namespace":{"minLength":1,"type":"string"},"queues":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"defaultDeadlineMs":{"minimum":1,"type":"integer"},"dlq":{"type":"boolean"},"logs":{"type":"boolean"},"maxDeliver":{"minimum":1,"type":"integer"},"payload":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"progress":{"type":"boolean"},"publishPrefix":{"minLength":1,"type":"string"},"queueType":{"minLength":1,"type":"string"},"result":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"workSubject":{"minLength":1,"type":"string"}},"required":["queueType","publishPrefix","workSubject","consumerName","payload","maxDeliver","backoffMs","ackWaitMs","progress","logs","dlq","concurrency"],"type":"object"}},"type":"object"},"workStream":{"minLength":1,"type":"string"}},"required":["namespace","queues"],"type":"object"},"kv":{"patternProperties":{"^.*$":{"properties":{"bucket":{"minLength":1,"type":"string"},"history":{"minimum":1,"type":"integer"},"maxValueBytes":{"minimum":1,"type":"integer"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["bucket","history","ttlMs"],"type":"object"}},"type":"object"},"store":{"patternProperties":{"^.*$":{"properties":{"maxObjectBytes":{"minimum":1,"type":"integer"},"maxTotalBytes":{"minimum":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["name","ttlMs"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","instanceKey","disabled","capabilities","createdAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthServiceInstancesRemoveRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthServiceInstancesRemoveResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthSessionsListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"user":{"type":"string"}},"required":["limit"],"type":"object"},"AuthSessionsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"anyOf":[{"properties":{"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"createdAt":{"type":"string"},"key":{"type":"string"},"lastAuth":{"type":"string"},"participantKind":{"const":"app","type":"string"},"principal":{"properties":{"identity":{"properties":{"identityId":{"type":"string"},"provider":{"type":"string"},"subject":{"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"name":{"type":"string"},"type":{"const":"user","type":"string"},"userId":{"type":"string"}},"required":["type","userId","identity","name"],"type":"object"},"sessionKey":{"type":"string"}},"required":["key","sessionKey","createdAt","lastAuth","participantKind","principal","contractId","contractDisplayName"],"type":"object"},{"properties":{"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"createdAt":{"type":"string"},"key":{"type":"string"},"lastAuth":{"type":"string"},"participantKind":{"const":"agent","type":"string"},"principal":{"properties":{"identity":{"properties":{"identityId":{"type":"string"},"provider":{"type":"string"},"subject":{"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"name":{"type":"string"},"type":{"const":"user","type":"string"},"userId":{"type":"string"}},"required":["type","userId","identity","name"],"type":"object"},"sessionKey":{"type":"string"}},"required":["key","sessionKey","createdAt","lastAuth","participantKind","principal","contractId","contractDisplayName"],"type":"object"},{"properties":{"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"createdAt":{"type":"string"},"key":{"type":"string"},"lastAuth":{"type":"string"},"participantKind":{"const":"device","type":"string"},"principal":{"properties":{"deploymentId":{"type":"string"},"deviceId":{"type":"string"},"deviceType":{"type":"string"},"runtimePublicKey":{"type":"string"},"type":{"const":"device","type":"string"}},"required":["type","deviceId","deviceType","runtimePublicKey","deploymentId"],"type":"object"},"sessionKey":{"type":"string"}},"required":["key","sessionKey","createdAt","lastAuth","participantKind","principal","contractId"],"type":"object"},{"properties":{"createdAt":{"type":"string"},"key":{"type":"string"},"lastAuth":{"type":"string"},"participantKind":{"const":"service","type":"string"},"principal":{"properties":{"deploymentId":{"type":"string"},"id":{"type":"string"},"instanceId":{"type":"string"},"name":{"type":"string"},"type":{"const":"service","type":"string"}},"required":["type","id","name","instanceId","deploymentId"],"type":"object"},"sessionKey":{"type":"string"}},"required":["key","sessionKey","createdAt","lastAuth","participantKind","principal"],"type":"object"}]},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthSessionsLogoutRequest":{"properties":{},"type":"object"},"AuthSessionsLogoutResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthSessionsMeRequest":{"properties":{},"type":"object"},"AuthSessionsMeResponse":{"properties":{"device":{"anyOf":[{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"deploymentId":{"minLength":1,"type":"string"},"deviceId":{"minLength":1,"type":"string"},"deviceType":{"minLength":1,"type":"string"},"runtimePublicKey":{"minLength":1,"type":"string"},"type":{"const":"device","type":"string"}},"required":["type","deviceId","deviceType","runtimePublicKey","deploymentId","active","capabilities"],"type":"object"},{"type":"null"}]},"participantKind":{"anyOf":[{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},{"const":"device","type":"string"},{"const":"service","type":"string"}]},"service":{"anyOf":[{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"name":{"type":"string"},"type":{"const":"service","type":"string"}},"required":["type","id","name","active","capabilities"],"type":"object"},{"type":"null"}]},"user":{"anyOf":[{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"image":{"type":"string"},"lastLogin":{"format":"date-time","type":"string"},"name":{"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId","active","name","email","capabilities","identity"],"type":"object"},{"type":"null"}]}},"required":["participantKind","user","device","service"],"type":"object"},"AuthSessionsRevokeRequest":{"properties":{"sessionKey":{"type":"string"}},"required":["sessionKey"],"type":"object"},"AuthSessionsRevokeResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthSessionsRevokedEvent":{"allOf":[{"properties":{"header":{"properties":{"id":{"type":"string"},"time":{"format":"date-time","type":"string"}},"required":["id","time"],"type":"object"}},"required":["header"],"type":"object"},{"properties":{"id":{"type":"string"},"origin":{"type":"string"},"revokedBy":{"type":"string"},"sessionKey":{"type":"string"}},"required":["origin","id","sessionKey","revokedBy"],"type":"object"}]},"AuthUserIdentitiesListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"userId":{"minLength":1,"type":"string"}},"required":["userId","limit"],"type":"object"},"AuthUserIdentitiesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"displayName":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"identityId":{"minLength":1,"type":"string"},"lastLoginAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"linkedAt":{"format":"date-time","type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject","displayName","email","emailVerified","linkedAt","lastLoginAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthUserIdentitiesUnlinkRequest":{"properties":{"identityId":{"minLength":1,"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId","identityId"],"type":"object"},"AuthUserIdentitiesUnlinkResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthUsersAccountFlowCreateResponse":{"properties":{"expiresAt":{"format":"date-time","type":"string"},"flowId":{"minLength":1,"type":"string"},"url":{"minLength":1,"type":"string"}},"required":["flowId","url","expiresAt"],"type":"object"},"AuthUsersCreateRequest":{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"capabilityGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"email":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"username":{"minLength":1,"type":"string"}},"type":"object"},"AuthUsersCreateResponse":{"properties":{"user":{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"capabilityGroups":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"identities":{"items":{"properties":{"displayName":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"identityId":{"minLength":1,"type":"string"},"lastLoginAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"linkedAt":{"format":"date-time","type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject","displayName","email","emailVerified","linkedAt","lastLoginAt"],"type":"object"},"type":"array"},"name":{"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId","active","capabilities","capabilityGroups","identities"],"type":"object"}},"required":["user"],"type":"object"},"AuthUsersGetRequest":{"properties":{"userId":{"minLength":1,"type":"string"}},"required":["userId"],"type":"object"},"AuthUsersGetResponse":{"properties":{"user":{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"capabilityGroups":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"identities":{"items":{"properties":{"displayName":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"identityId":{"minLength":1,"type":"string"},"lastLoginAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"linkedAt":{"format":"date-time","type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject","displayName","email","emailVerified","linkedAt","lastLoginAt"],"type":"object"},"type":"array"},"name":{"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId","active","capabilities","capabilityGroups","identities"],"type":"object"}},"required":["user"],"type":"object"},"AuthUsersIdentityLinkCreateRequest":{"properties":{"returnTo":{"minLength":1,"type":"string"}},"type":"object"},"AuthUsersListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthUsersListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"capabilityGroups":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"identities":{"items":{"properties":{"displayName":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"identityId":{"minLength":1,"type":"string"},"lastLoginAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"linkedAt":{"format":"date-time","type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject","displayName","email","emailVerified","linkedAt","lastLoginAt"],"type":"object"},"type":"array"},"name":{"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId","active","capabilities","capabilityGroups","identities"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthUsersPasswordChangeRequest":{"properties":{"currentPassword":{"minLength":1,"type":"string"},"newPassword":{"minLength":1,"type":"string"}},"required":["currentPassword","newPassword"],"type":"object"},"AuthUsersPasswordChangeResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthUsersPasswordResetCreateRequest":{"properties":{"expiresInSeconds":{"maximum":2592000,"minimum":60,"type":"integer"},"userId":{"minLength":1,"type":"string"}},"required":["userId"],"type":"object"},"AuthUsersUpdateRequest":{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"capabilityGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"email":{"type":"string"},"name":{"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId"],"type":"object"},"AuthUsersUpdateResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"DeploymentAuthority":{"properties":{"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"desiredState":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"needs":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"resources":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"type":"array"},"surfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"}},"required":["needs","capabilities","resources","surfaces"],"type":"object"},"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"version":{"minLength":1,"type":"string"}},"required":["deploymentId","kind","disabled","desiredState","version","createdAt","updatedAt"],"type":"object"},"DeploymentAuthorityGrantOverride":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"DeploymentAuthorityMaterialization":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"},"error":{"minLength":1,"type":"string"},"grants":{"items":{"type":"object"},"type":"array"},"reconciledAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"resourceBindings":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"binding":{"patternProperties":{"^.*$":{}},"type":"object"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"limits":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","kind","alias","binding","limits","createdAt","updatedAt"],"type":"object"},"type":"array"},"status":{"anyOf":[{"const":"current","type":"string"},{"const":"pending","type":"string"},{"const":"failed","type":"string"}]}},"required":["deploymentId","desiredVersion","status","resourceBindings","grants","reconciledAt"],"type":"object"},"DeploymentAuthorityMigration":{"properties":{"acknowledgementRequired":{"type":"boolean"},"classification":{"const":"migration","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification","acknowledgementRequired"],"type":"object"},"DeploymentAuthorityNeed":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"DeploymentAuthorityProposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"DeploymentAuthorityReconciliationStatus":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"},"finishedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"message":{"minLength":1,"type":"string"},"startedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"idle","type":"string"},{"const":"running","type":"string"},{"const":"succeeded","type":"string"},{"const":"failed","type":"string"}]}},"required":["deploymentId","desiredVersion","state","startedAt","finishedAt"],"type":"object"},"DeploymentAuthorityResource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"DeploymentAuthoritySurface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"DeploymentAuthorityUpdate":{"properties":{"classification":{"const":"update","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification"],"type":"object"},"DeploymentPortalRoute":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","portalId","entryUrl","disabled","updatedAt"],"type":"object"},"DeploymentResourceBinding":{"properties":{"alias":{"minLength":1,"type":"string"},"binding":{"patternProperties":{"^.*$":{}},"type":"object"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"limits":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","kind","alias","binding","limits","createdAt","updatedAt"],"type":"object"},"Device":{"properties":{"activatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","createdAt","activatedAt","revokedAt"],"type":"object"},"DeviceActivationRecord":{"properties":{"activatedAt":{"format":"date-time","type":"string"},"activatedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"activated","type":"string"},{"const":"revoked","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","activatedAt","revokedAt"],"type":"object"},"DeviceActivationReview":{"properties":{"decidedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"reviewId":{"minLength":1,"type":"string"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"approved","type":"string"},{"const":"rejected","type":"string"}]}},"required":["reviewId","instanceId","publicIdentityKey","deploymentId","state","requestedAt","decidedAt"],"type":"object"},"DeviceConnectInfo":{"properties":{"auth":{"properties":{"authority":{"anyOf":[{"const":"admin_reviewed","type":"string"},{"const":"user_delegated","type":"string"}]},"iatSkewSeconds":{"type":"number"},"mode":{"const":"device_identity","type":"string"}},"required":["mode","authority","iatSkewSeconds"],"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"transport":{"properties":{"sentinel":{"properties":{"jwt":{"type":"string"},"seed":{"type":"string"}},"required":["jwt","seed"],"type":"object"}},"required":["sentinel"],"type":"object"},"transports":{"properties":{"native":{"properties":{"natsServers":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["natsServers"],"type":"object"},"websocket":{"properties":{"natsServers":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["natsServers"],"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","contractId","contractDigest","transports","transport","auth"],"type":"object"},"DeviceDeployment":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["deploymentId","disabled"],"type":"object"},"HealthRequest":{"properties":{},"type":"object"},"HealthResponse":{"properties":{"checks":{"items":{"properties":{"error":{"type":"string"},"info":{"patternProperties":{"^.*$":{}},"type":"object"},"latencyMs":{"type":"number"},"name":{"type":"string"},"status":{"anyOf":[{"const":"ok","type":"string"},{"const":"failed","type":"string"}]},"summary":{"type":"string"}},"required":["name","status","latencyMs"],"type":"object"},"type":"array"},"service":{"type":"string"},"status":{"anyOf":[{"const":"healthy","type":"string"},{"const":"unhealthy","type":"string"},{"const":"degraded","type":"string"}]},"timestamp":{"format":"date-time","type":"string"}},"required":["status","service","timestamp","checks"],"type":"object"},"ImplementationOffer":{"properties":{"acceptedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"deploymentKind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"}]},"expiresAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"firstOfferedAt":{"format":"date-time","type":"string"},"instanceId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"lastRefreshedAt":{"format":"date-time","type":"string"},"lineageKey":{"minLength":1,"type":"string"},"liveness":{"anyOf":[{"const":"unknown","type":"string"},{"const":"healthy","type":"string"},{"const":"unhealthy","type":"string"},{"const":"disconnected","type":"string"}]},"offerId":{"minLength":1,"type":"string"},"staleAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"offered","type":"string"},{"const":"accepted","type":"string"},{"const":"stale","type":"string"},{"const":"expired","type":"string"},{"const":"withdrawn","type":"string"}]}},"required":["offerId","deploymentKind","deploymentId","instanceId","contractId","contractDigest","lineageKey","status","liveness","firstOfferedAt","acceptedAt","lastRefreshedAt","staleAt","expiresAt"],"type":"object"},"PortalFlowState":{"anyOf":[{"properties":{"app":{"properties":{"context":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"}},"required":["contractId","contractDigest","displayName","description"],"type":"object"},"flowId":{"minLength":1,"type":"string"},"portal":{"properties":{"builtIn":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","displayName","entryUrl","builtIn","disabled","createdAt","updatedAt"],"type":"object"},"providers":{"items":{"properties":{"displayName":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"}},"required":["id","displayName"],"type":"object"},"type":"array"},"registration":{"properties":{"federatedIdentity":{"properties":{"available":{"type":"boolean"},"providers":{"items":{"properties":{"displayName":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"}},"required":["id","displayName"],"type":"object"},"type":"array"}},"required":["available","providers"],"type":"object"},"localIdentity":{"properties":{"available":{"type":"boolean"}},"required":["available"],"type":"object"}},"required":["localIdentity","federatedIdentity"],"type":"object"},"status":{"const":"choose_provider","type":"string"}},"required":["status","flowId","providers","app"],"type":"object"},{"properties":{"approval":{"properties":{"capabilities":{"patternProperties":{"^.*$":{"properties":{"consequence":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"}},"required":["displayName","description"],"type":"object"}},"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"}},"required":["contractDigest","contractId","displayName","description","capabilities"],"type":"object"},"flowId":{"minLength":1,"type":"string"},"status":{"const":"approval_required","type":"string"},"user":{"properties":{"email":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"},"image":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"origin":{"minLength":1,"type":"string"}},"required":["origin","id"],"type":"object"}},"required":["status","flowId","user","approval"],"type":"object"},{"properties":{"approval":{"properties":{"capabilities":{"patternProperties":{"^.*$":{"properties":{"consequence":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"}},"required":["displayName","description"],"type":"object"}},"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"}},"required":["contractDigest","contractId","displayName","description","capabilities"],"type":"object"},"flowId":{"minLength":1,"type":"string"},"returnLocation":{"minLength":1,"type":"string"},"status":{"const":"approval_denied","type":"string"}},"required":["status","flowId","approval"],"type":"object"},{"properties":{"approval":{"properties":{"capabilities":{"patternProperties":{"^.*$":{"properties":{"consequence":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"}},"required":["displayName","description"],"type":"object"}},"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"}},"required":["contractDigest","contractId","displayName","description","capabilities"],"type":"object"},"flowId":{"minLength":1,"type":"string"},"missingCapabilities":{"items":{"type":"string"},"type":"array"},"returnLocation":{"minLength":1,"type":"string"},"status":{"const":"insufficient_capabilities","type":"string"},"user":{"properties":{"id":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"origin":{"minLength":1,"type":"string"}},"required":["origin","id"],"type":"object"},"userCapabilities":{"items":{"type":"string"},"type":"array"}},"required":["status","flowId","approval","missingCapabilities","userCapabilities"],"type":"object"},{"properties":{"location":{"minLength":1,"type":"string"},"status":{"const":"redirect","type":"string"}},"required":["status","location"],"type":"object"},{"properties":{"status":{"const":"expired","type":"string"}},"required":["status"],"type":"object"}]},"ServiceDeployment":{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["deploymentId","namespaces","disabled"],"type":"object"},"ServiceInstance":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"instanceId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"},"resourceBindings":{"properties":{"eventConsumers":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"filterSubjects":{"items":{"minLength":1,"type":"string"},"type":"array"},"maxDeliver":{"minimum":1,"type":"integer"},"ordering":{"const":"strict","type":"string"},"replay":{"anyOf":[{"const":"new","type":"string"},{"const":"all","type":"string"}]},"stream":{"minLength":1,"type":"string"}},"required":["stream","consumerName","filterSubjects","replay","ordering","concurrency","ackWaitMs","maxDeliver","backoffMs"],"type":"object"}},"type":"object"},"jobs":{"properties":{"namespace":{"minLength":1,"type":"string"},"queues":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"defaultDeadlineMs":{"minimum":1,"type":"integer"},"dlq":{"type":"boolean"},"logs":{"type":"boolean"},"maxDeliver":{"minimum":1,"type":"integer"},"payload":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"progress":{"type":"boolean"},"publishPrefix":{"minLength":1,"type":"string"},"queueType":{"minLength":1,"type":"string"},"result":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"workSubject":{"minLength":1,"type":"string"}},"required":["queueType","publishPrefix","workSubject","consumerName","payload","maxDeliver","backoffMs","ackWaitMs","progress","logs","dlq","concurrency"],"type":"object"}},"type":"object"},"workStream":{"minLength":1,"type":"string"}},"required":["namespace","queues"],"type":"object"},"kv":{"patternProperties":{"^.*$":{"properties":{"bucket":{"minLength":1,"type":"string"},"history":{"minimum":1,"type":"integer"},"maxValueBytes":{"minimum":1,"type":"integer"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["bucket","history","ttlMs"],"type":"object"}},"type":"object"},"store":{"patternProperties":{"^.*$":{"properties":{"maxObjectBytes":{"minimum":1,"type":"integer"},"maxTotalBytes":{"minimum":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["name","ttlMs"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","instanceKey","disabled","capabilities","createdAt"],"type":"object"}},"uses":{"required":{"health":{"contract":"trellis.health@v1","events":{"publish":["Health.Heartbeat"]}}}}} as TrellisContractV1;
8
+ export const CONTRACT_DIGEST = "XdqgSxkrIhWOu1ODbOk6-QHLTlI52ZP-6qhYJpIdCMc" as const;
9
+ export const CONTRACT = {"capabilities":{"trellis.auth::device.review":{"description":"Review and decide pending device activation requests.","displayName":"Review device activation"},"trellis.auth::events.auth":{"description":"Publish or subscribe to Trellis auth lifecycle events.","displayName":"Observe auth events"}},"description":"Provide Trellis authentication, session, deployment, instance, and admin RPCs.","displayName":"Trellis Auth","docs":{"markdown":"Owns Trellis sessions, identity grants, deployment authority, devices, portals, capability groups, and request validation.","summary":"Authentication and authorization APIs."},"events":{"Auth.Connections.Closed":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::events.auth"]},"docs":{"markdown":"Published when an authenticated connection closes.","summary":"Connection closed."},"event":{"schema":"AuthConnectionsClosedEvent"},"subject":"events.v1.Auth.Connections.Closed","version":"v1"},"Auth.Connections.Kicked":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::events.auth"]},"docs":{"markdown":"Published when auth disconnects a connection administratively.","summary":"Connection kicked."},"event":{"schema":"AuthConnectionsKickedEvent"},"subject":"events.v1.Auth.Connections.Kicked","version":"v1"},"Auth.Connections.Opened":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::events.auth"]},"docs":{"markdown":"Published when an authenticated connection opens.","summary":"Connection opened."},"event":{"schema":"AuthConnectionsOpenedEvent"},"subject":"events.v1.Auth.Connections.Opened","version":"v1"},"Auth.DeviceUserAuthorities.Approved":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::device.review"]},"docs":{"markdown":"Published when requested device user authorities are approved.","summary":"Authorities approved."},"event":{"schema":"AuthDeviceUserAuthoritiesApprovedEvent"},"params":["/deploymentId"],"subject":"events.v1.Auth.DeviceUserAuthorities.Approved.{/deploymentId}","version":"v1"},"Auth.DeviceUserAuthorities.Requested":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::device.review"]},"docs":{"markdown":"Published when a device requests user authorities.","summary":"Authorities requested."},"event":{"schema":"AuthDeviceUserAuthoritiesRequestedEvent"},"params":["/deploymentId"],"subject":"events.v1.Auth.DeviceUserAuthorities.Requested.{/deploymentId}","version":"v1"},"Auth.DeviceUserAuthorities.Resolved":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::device.review","trellis.auth::events.auth"]},"docs":{"markdown":"Published when a device authority resolution completes.","summary":"Authorities resolved."},"event":{"schema":"AuthDeviceUserAuthoritiesResolvedEvent"},"params":["/deploymentId"],"subject":"events.v1.Auth.DeviceUserAuthorities.Resolved.{/deploymentId}","version":"v1"},"Auth.DeviceUserAuthorities.ReviewRequested":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::device.review"]},"docs":{"markdown":"Published when a device authority request needs review.","summary":"Review requested."},"event":{"schema":"AuthDeviceUserAuthoritiesReviewRequestedEvent"},"params":["/deploymentId"],"subject":"events.v1.Auth.DeviceUserAuthorities.ReviewRequested.{/deploymentId}","version":"v1"},"Auth.Sessions.Revoked":{"capabilities":{"publish":["trellis.auth::events.auth"],"subscribe":["trellis.auth::events.auth"]},"docs":{"markdown":"Published when a user session is revoked.","summary":"Session revoked."},"event":{"schema":"AuthSessionsRevokedEvent"},"subject":"events.v1.Auth.Sessions.Revoked","version":"v1"}},"format":"trellis.contract.v1","id":"trellis.auth@v1","kind":"service","operations":{"Auth.DeviceUserAuthorities.Resolve":{"capabilities":{"call":[]},"docs":{"markdown":"Runs the asynchronous workflow that resolves requested user authorities for a device.","summary":"Resolve device authorities."},"input":{"schema":"AuthResolveDeviceUserAuthoritiesRequest"},"output":{"schema":"AuthResolveDeviceUserAuthoritiesResponse"},"progress":{"schema":"AuthResolveDeviceUserAuthoritiesProgress"},"subject":"operations.v1.Auth.DeviceUserAuthorities.Resolve","version":"v1"}},"rpc":{"Auth.Capabilities.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists capability definitions known to auth.","summary":"List capabilities."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCapabilitiesListRequest"},"output":{"schema":"AuthCapabilitiesListResponse"},"subject":"rpc.v1.Auth.Capabilities.List","version":"v1"},"Auth.CapabilityGroups.Delete":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Deletes a reusable capability group.","summary":"Delete capability group."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCapabilityGroupsDeleteRequest"},"output":{"schema":"AuthCapabilityGroupsDeleteResponse"},"subject":"rpc.v1.Auth.CapabilityGroups.Delete","version":"v1"},"Auth.CapabilityGroups.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns one reusable capability group.","summary":"Read capability group."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCapabilityGroupsGetRequest"},"output":{"schema":"AuthCapabilityGroupsGetResponse"},"subject":"rpc.v1.Auth.CapabilityGroups.Get","version":"v1"},"Auth.CapabilityGroups.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists reusable capability groups.","summary":"List capability groups."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCapabilityGroupsListRequest"},"output":{"schema":"AuthCapabilityGroupsListResponse"},"subject":"rpc.v1.Auth.CapabilityGroups.List","version":"v1"},"Auth.CapabilityGroups.Put":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates or replaces a reusable capability group.","summary":"Write capability group."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCapabilityGroupsPutRequest"},"output":{"schema":"AuthCapabilityGroupsPutResponse"},"subject":"rpc.v1.Auth.CapabilityGroups.Put","version":"v1"},"Auth.CatalogIssues.Resolve":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Marks an auth catalog issue as resolved.","summary":"Resolve catalog issue."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthCatalogIssuesResolveRequest"},"output":{"schema":"AuthCatalogIssuesResolveResponse"},"subject":"rpc.v1.Auth.CatalogIssues.Resolve","version":"v1"},"Auth.Connections.Kick":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Disconnects an active authenticated connection.","summary":"Kick one connection."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthConnectionsKickRequest"},"output":{"schema":"AuthConnectionsKickResponse"},"subject":"rpc.v1.Auth.Connections.Kick","version":"v1"},"Auth.Connections.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists live authenticated connections visible to administrators.","summary":"List active connections."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthConnectionsListRequest"},"output":{"schema":"AuthConnectionsListResponse"},"subject":"rpc.v1.Auth.Connections.List","version":"v1"},"Auth.DeploymentAuthority.AcceptMigration":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Accepts an acknowledged authority migration plan.","summary":"Accept authority migration."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityAcceptMigrationRequest"},"output":{"schema":"AuthDeploymentAuthorityAcceptResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.AcceptMigration","version":"v1"},"Auth.DeploymentAuthority.AcceptUpdate":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Accepts a non-breaking authority update plan.","summary":"Accept authority update."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityAcceptUpdateRequest"},"output":{"schema":"AuthDeploymentAuthorityAcceptResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.AcceptUpdate","version":"v1"},"Auth.DeploymentAuthority.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns desired deployment authority and current materialized authority.","summary":"Read deployment authority."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityGetRequest"},"output":{"schema":"AuthDeploymentAuthorityGetResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Get","version":"v1"},"Auth.DeploymentAuthority.GrantOverrides.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists deployment authority grant overrides.","summary":"List grant overrides."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityGrantOverridesListRequest"},"output":{"schema":"AuthDeploymentAuthorityGrantOverridesListResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.GrantOverrides.List","version":"v1"},"Auth.DeploymentAuthority.GrantOverrides.Put":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Replaces deployment authority grant overrides for one deployment.","summary":"Set grant overrides."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityGrantOverridesPutRequest"},"output":{"schema":"AuthDeploymentAuthorityGrantOverridesResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.GrantOverrides.Put","version":"v1"},"Auth.DeploymentAuthority.GrantOverrides.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes matching deployment authority grant overrides.","summary":"Remove grant overrides."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityGrantOverridesRemoveRequest"},"output":{"schema":"AuthDeploymentAuthorityGrantOverridesResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.GrantOverrides.Remove","version":"v1"},"Auth.DeploymentAuthority.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists deployment-owned desired authority.","summary":"List deployment authority."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityListRequest"},"output":{"schema":"AuthDeploymentAuthorityListResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.List","version":"v1"},"Auth.DeploymentAuthority.Plan":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Builds an authority update or migration plan from a contract.","summary":"Plan deployment authority."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityPlanRequest"},"output":{"schema":"AuthDeploymentAuthorityPlanResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Plan","version":"v1"},"Auth.DeploymentAuthority.Plans.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns one pending or historical deployment authority plan.","summary":"Read authority plan."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityPlansGetRequest"},"output":{"schema":"AuthDeploymentAuthorityPlansGetResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Plans.Get","version":"v1"},"Auth.DeploymentAuthority.Plans.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists pending and historical deployment authority plans with optional filters.","summary":"List authority plans."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"}],"input":{"schema":"AuthDeploymentAuthorityPlansListRequest"},"output":{"schema":"AuthDeploymentAuthorityPlansListResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Plans.List","version":"v1"},"Auth.DeploymentAuthority.Reconcile":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Triggers convergence from desired authority to materialized authority.","summary":"Reconcile deployment authority."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityReconcileRequest"},"output":{"schema":"AuthDeploymentAuthorityReconcileResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Reconcile","version":"v1"},"Auth.DeploymentAuthority.Reject":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Rejects a pending authority plan without mutating desired state.","summary":"Reject authority plan."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentAuthorityRejectRequest"},"output":{"schema":"AuthDeploymentAuthorityRejectResponse"},"subject":"rpc.v1.Auth.DeploymentAuthority.Reject","version":"v1"},"Auth.Deployments.Create":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates a deployment boundary for services, apps, or devices.","summary":"Create deployment."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentsCreateRequest"},"output":{"schema":"AuthDeploymentsCreateResponse"},"subject":"rpc.v1.Auth.Deployments.Create","version":"v1"},"Auth.Deployments.Disable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Disables a deployment boundary without removing it.","summary":"Disable deployment."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentsDisableRequest"},"output":{"schema":"AuthDeploymentsDisableResponse"},"subject":"rpc.v1.Auth.Deployments.Disable","version":"v1"},"Auth.Deployments.Enable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Re-enables a disabled deployment boundary.","summary":"Enable deployment."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentsEnableRequest"},"output":{"schema":"AuthDeploymentsEnableResponse"},"subject":"rpc.v1.Auth.Deployments.Enable","version":"v1"},"Auth.Deployments.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists deployment boundaries and their current state.","summary":"List deployments."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentsListRequest"},"output":{"schema":"AuthDeploymentsListResponse"},"subject":"rpc.v1.Auth.Deployments.List","version":"v1"},"Auth.Deployments.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes a deployment boundary.","summary":"Remove deployment."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeploymentsRemoveRequest"},"output":{"schema":"AuthDeploymentsRemoveResponse"},"subject":"rpc.v1.Auth.Deployments.Remove","version":"v1"},"Auth.DeviceUserAuthorities.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists user authority grants for devices.","summary":"List device authorities."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeviceUserAuthoritiesListRequest"},"output":{"schema":"AuthDeviceUserAuthoritiesListResponse"},"subject":"rpc.v1.Auth.DeviceUserAuthorities.List","version":"v1"},"Auth.DeviceUserAuthorities.Reviews.Decide":{"capabilities":{"call":["trellis.auth::device.review"]},"docs":{"markdown":"Approves or rejects a device authority review.","summary":"Decide device review."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeviceUserAuthoritiesReviewsDecideRequest"},"output":{"schema":"AuthDeviceUserAuthoritiesReviewsDecideResponse"},"subject":"rpc.v1.Auth.DeviceUserAuthorities.Reviews.Decide","version":"v1"},"Auth.DeviceUserAuthorities.Reviews.List":{"capabilities":{"call":["trellis.auth::device.review"]},"docs":{"markdown":"Lists pending device authority reviews.","summary":"List device reviews."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeviceUserAuthoritiesReviewsListRequest"},"output":{"schema":"AuthDeviceUserAuthoritiesReviewsListResponse"},"subject":"rpc.v1.Auth.DeviceUserAuthorities.Reviews.List","version":"v1"},"Auth.DeviceUserAuthorities.Revoke":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Revokes one user authority grant for a device.","summary":"Revoke device authority."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDeviceUserAuthoritiesRevokeRequest"},"output":{"schema":"AuthDeviceUserAuthoritiesRevokeResponse"},"subject":"rpc.v1.Auth.DeviceUserAuthorities.Revoke","version":"v1"},"Auth.Devices.ConnectInfo.Get":{"capabilities":{"call":[]},"docs":{"markdown":"Returns activation connection information for a device.","summary":"Read device connect info."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesConnectInfoGetRequest"},"output":{"schema":"AuthDevicesConnectInfoGetResponse"},"subject":"rpc.v1.Auth.Devices.ConnectInfo.Get","version":"v1"},"Auth.Devices.Disable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Disables an activated or registered device.","summary":"Disable device."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesDisableRequest"},"output":{"schema":"AuthDevicesDisableResponse"},"subject":"rpc.v1.Auth.Devices.Disable","version":"v1"},"Auth.Devices.Enable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Re-enables a disabled device.","summary":"Enable device."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesEnableRequest"},"output":{"schema":"AuthDevicesEnableResponse"},"subject":"rpc.v1.Auth.Devices.Enable","version":"v1"},"Auth.Devices.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists registered and activated devices.","summary":"List devices."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesListRequest"},"output":{"schema":"AuthDevicesListResponse"},"subject":"rpc.v1.Auth.Devices.List","version":"v1"},"Auth.Devices.Provision":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates a preregistered device record and activation material.","summary":"Provision device."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesProvisionRequest"},"output":{"schema":"AuthDevicesProvisionResponse"},"subject":"rpc.v1.Auth.Devices.Provision","version":"v1"},"Auth.Devices.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes a device record.","summary":"Remove device."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthDevicesRemoveRequest"},"output":{"schema":"AuthDevicesRemoveResponse"},"subject":"rpc.v1.Auth.Devices.Remove","version":"v1"},"Auth.Health":{"capabilities":{"call":[]},"docs":{"markdown":"Returns auth service health details.","summary":"Check auth service health."},"errors":[{"type":"UnexpectedError"}],"input":{"schema":"HealthRequest"},"output":{"schema":"HealthResponse"},"subject":"rpc.v1.Auth.Health","version":"v1"},"Auth.Identities.List":{"capabilities":{"call":[]},"docs":{"markdown":"Lists known authenticated identities.","summary":"List identities."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthIdentitiesListRequest"},"output":{"schema":"AuthIdentitiesListResponse"},"subject":"rpc.v1.Auth.Identities.List","version":"v1"},"Auth.IdentityGrants.List":{"capabilities":{"call":[]},"docs":{"markdown":"Lists identity grants for the caller or an admin-selected user.","summary":"List identity grants."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"}],"input":{"schema":"AuthIdentityGrantsListRequest"},"output":{"schema":"AuthIdentityGrantsListResponse"},"subject":"rpc.v1.Auth.IdentityGrants.List","version":"v1"},"Auth.IdentityGrants.Revoke":{"capabilities":{"call":[]},"docs":{"markdown":"Revokes deployment access for one identity grant.","summary":"Revoke identity grant."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthIdentityGrantsRevokeRequest"},"output":{"schema":"AuthIdentityGrantsRevokeResponse"},"subject":"rpc.v1.Auth.IdentityGrants.Revoke","version":"v1"},"Auth.Portals.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns one authentication portal configuration.","summary":"Read portal."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsGetRequest"},"output":{"schema":"AuthPortalsGetResponse"},"subject":"rpc.v1.Auth.Portals.Get","version":"v1"},"Auth.Portals.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists configured authentication portals.","summary":"List portals."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"}],"input":{"schema":"AuthPortalsListRequest"},"output":{"schema":"AuthPortalsListResponse"},"subject":"rpc.v1.Auth.Portals.List","version":"v1"},"Auth.Portals.LoginSettings.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns login settings for an authentication portal.","summary":"Read login settings."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsLoginSettingsGetRequest"},"output":{"schema":"AuthPortalsLoginSettingsResponse"},"subject":"rpc.v1.Auth.Portals.LoginSettings.Get","version":"v1"},"Auth.Portals.LoginSettings.Update":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Updates login settings for an authentication portal.","summary":"Update login settings."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsLoginSettingsUpdateRequest"},"output":{"schema":"AuthPortalsLoginSettingsResponse"},"subject":"rpc.v1.Auth.Portals.LoginSettings.Update","version":"v1"},"Auth.Portals.Put":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates or replaces an authentication portal configuration.","summary":"Write portal."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsPutRequest"},"output":{"schema":"AuthPortalsPutResponse"},"subject":"rpc.v1.Auth.Portals.Put","version":"v1"},"Auth.Portals.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes an authentication portal configuration.","summary":"Remove portal."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsRemoveRequest"},"output":{"schema":"AuthPortalsRemoveResponse"},"subject":"rpc.v1.Auth.Portals.Remove","version":"v1"},"Auth.Portals.Routes.Put":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates or replaces a route for an authentication portal.","summary":"Write portal route."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsRoutesPutRequest"},"output":{"schema":"AuthPortalsRoutesPutResponse"},"subject":"rpc.v1.Auth.Portals.Routes.Put","version":"v1"},"Auth.Portals.Routes.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes a route from an authentication portal.","summary":"Remove portal route."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthPortalsRoutesRemoveRequest"},"output":{"schema":"AuthPortalsRoutesRemoveResponse"},"subject":"rpc.v1.Auth.Portals.Routes.Remove","version":"v1"},"Auth.Requests.Validate":{"capabilities":{"call":["service"]},"docs":{"markdown":"Validates an inbound request envelope for service-side authorization.","summary":"Validate request auth."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthRequestsValidateRequest"},"output":{"schema":"AuthRequestsValidateResponse"},"subject":"rpc.v1.Auth.Requests.Validate","version":"v1"},"Auth.ServiceInstances.Disable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Disables a provisioned service instance.","summary":"Disable service instance."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthServiceInstancesDisableRequest"},"output":{"schema":"AuthServiceInstancesDisableResponse"},"subject":"rpc.v1.Auth.ServiceInstances.Disable","version":"v1"},"Auth.ServiceInstances.Enable":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Re-enables a provisioned service instance.","summary":"Enable service instance."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthServiceInstancesEnableRequest"},"output":{"schema":"AuthServiceInstancesEnableResponse"},"subject":"rpc.v1.Auth.ServiceInstances.Enable","version":"v1"},"Auth.ServiceInstances.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists provisioned service instances.","summary":"List service instances."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthServiceInstancesListRequest"},"output":{"schema":"AuthServiceInstancesListResponse"},"subject":"rpc.v1.Auth.ServiceInstances.List","version":"v1"},"Auth.ServiceInstances.Provision":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates credentials and metadata for a service instance.","summary":"Provision service instance."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthServiceInstancesProvisionRequest"},"output":{"schema":"AuthServiceInstancesProvisionResponse"},"subject":"rpc.v1.Auth.ServiceInstances.Provision","version":"v1"},"Auth.ServiceInstances.Remove":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes a provisioned service instance.","summary":"Remove service instance."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthServiceInstancesRemoveRequest"},"output":{"schema":"AuthServiceInstancesRemoveResponse"},"subject":"rpc.v1.Auth.ServiceInstances.Remove","version":"v1"},"Auth.Sessions.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists authenticated sessions visible to administrators.","summary":"List sessions."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthSessionsListRequest"},"output":{"schema":"AuthSessionsListResponse"},"subject":"rpc.v1.Auth.Sessions.List","version":"v1"},"Auth.Sessions.Logout":{"capabilities":{"call":[]},"docs":{"markdown":"Revokes the caller's active session.","summary":"Log out current session."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"}],"input":{"schema":"AuthSessionsLogoutRequest"},"output":{"schema":"AuthSessionsLogoutResponse"},"subject":"rpc.v1.Auth.Sessions.Logout","version":"v1"},"Auth.Sessions.Me":{"capabilities":{"call":[]},"docs":{"markdown":"Returns identity and capability details for the caller's session.","summary":"Read current session."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"}],"input":{"schema":"AuthSessionsMeRequest"},"output":{"schema":"AuthSessionsMeResponse"},"subject":"rpc.v1.Auth.Sessions.Me","version":"v1"},"Auth.Sessions.Revoke":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Revokes a user session by administrative request.","summary":"Revoke a session."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthSessionsRevokeRequest"},"output":{"schema":"AuthSessionsRevokeResponse"},"subject":"rpc.v1.Auth.Sessions.Revoke","version":"v1"},"Auth.UserIdentities.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists external identities linked to a user.","summary":"List user identities."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUserIdentitiesListRequest"},"output":{"schema":"AuthUserIdentitiesListResponse"},"subject":"rpc.v1.Auth.UserIdentities.List","version":"v1"},"Auth.UserIdentities.Unlink":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Removes an external identity link from a user.","summary":"Unlink user identity."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUserIdentitiesUnlinkRequest"},"output":{"schema":"AuthUserIdentitiesUnlinkResponse"},"subject":"rpc.v1.Auth.UserIdentities.Unlink","version":"v1"},"Auth.Users.Create":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Creates a user account.","summary":"Create user."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersCreateRequest"},"output":{"schema":"AuthUsersCreateResponse"},"subject":"rpc.v1.Auth.Users.Create","version":"v1"},"Auth.Users.Get":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Returns one user account.","summary":"Read user."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersGetRequest"},"output":{"schema":"AuthUsersGetResponse"},"subject":"rpc.v1.Auth.Users.Get","version":"v1"},"Auth.Users.IdentityLink.Create":{"capabilities":{"call":[]},"docs":{"markdown":"Starts an account flow to link an external identity.","summary":"Start identity link."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersIdentityLinkCreateRequest"},"output":{"schema":"AuthUsersAccountFlowCreateResponse"},"subject":"rpc.v1.Auth.Users.IdentityLink.Create","version":"v1"},"Auth.Users.List":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Lists user accounts.","summary":"List users."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersListRequest"},"output":{"schema":"AuthUsersListResponse"},"subject":"rpc.v1.Auth.Users.List","version":"v1"},"Auth.Users.Password.Change":{"capabilities":{"call":[]},"docs":{"markdown":"Changes the caller's password.","summary":"Change password."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersPasswordChangeRequest"},"output":{"schema":"AuthUsersPasswordChangeResponse"},"subject":"rpc.v1.Auth.Users.Password.Change","version":"v1"},"Auth.Users.PasswordReset.Create":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Starts an account flow to reset a user password.","summary":"Start password reset."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersPasswordResetCreateRequest"},"output":{"schema":"AuthUsersAccountFlowCreateResponse"},"subject":"rpc.v1.Auth.Users.PasswordReset.Create","version":"v1"},"Auth.Users.Update":{"capabilities":{"call":["admin"]},"docs":{"markdown":"Updates user account metadata or status.","summary":"Update user."},"errors":[{"type":"AuthError"},{"type":"UnexpectedError"},{"type":"ValidationError"}],"input":{"schema":"AuthUsersUpdateRequest"},"output":{"schema":"AuthUsersUpdateResponse"},"subject":"rpc.v1.Auth.Users.Update","version":"v1"}},"schemas":{"AuthCapabilitiesListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthCapabilitiesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"consequence":{"minLength":1,"type":"string"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractDisplayName":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"description":{"minLength":1,"type":"string"},"direction":{"anyOf":[{"const":"creates","type":"string"},{"const":"given","type":"string"}]},"displayName":{"minLength":1,"type":"string"},"key":{"minLength":1,"type":"string"},"source":{"anyOf":[{"const":"contract","type":"string"},{"const":"platform","type":"string"}]}},"required":["key","displayName","description","source"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthCapabilityGroupsDeleteRequest":{"properties":{"groupKey":{"minLength":1,"type":"string"}},"required":["groupKey"],"type":"object"},"AuthCapabilityGroupsDeleteResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthCapabilityGroupsGetRequest":{"properties":{"groupKey":{"minLength":1,"type":"string"}},"required":["groupKey"],"type":"object"},"AuthCapabilityGroupsGetResponse":{"properties":{"group":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"groupKey":{"minLength":1,"type":"string"},"includedGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"updatedAt":{"format":"date-time","type":"string"}},"required":["groupKey","displayName","description","capabilities","includedGroups","createdAt","updatedAt"],"type":"object"}},"required":["group"],"type":"object"},"AuthCapabilityGroupsListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthCapabilityGroupsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"groupKey":{"minLength":1,"type":"string"},"includedGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"updatedAt":{"format":"date-time","type":"string"}},"required":["groupKey","displayName","description","capabilities","includedGroups","createdAt","updatedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthCapabilityGroupsPutRequest":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"groupKey":{"minLength":1,"type":"string"},"includedGroups":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["groupKey","displayName","description"],"type":"object"},"AuthCapabilityGroupsPutResponse":{"properties":{"group":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"groupKey":{"minLength":1,"type":"string"},"includedGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"updatedAt":{"format":"date-time","type":"string"}},"required":["groupKey","displayName","description","capabilities","includedGroups","createdAt","updatedAt"],"type":"object"}},"required":["group"],"type":"object"},"AuthCatalogIssuesResolveRequest":{"properties":{"action":{"anyOf":[{"const":"keep-current","type":"string"},{"const":"force-replace","type":"string"}]},"issueId":{"minLength":1,"type":"string"}},"required":["issueId","action"],"type":"object"},"AuthCatalogIssuesResolveResponse":{"properties":{"action":{"anyOf":[{"const":"keep-current","type":"string"},{"const":"force-replace","type":"string"}]},"issueId":{"minLength":1,"type":"string"},"success":{"const":true,"type":"boolean"}},"required":["success","issueId","action"],"type":"object"},"AuthConnectionsClosedEvent":{"allOf":[{"properties":{"header":{"properties":{"id":{"type":"string"},"time":{"format":"date-time","type":"string"}},"required":["id","time"],"type":"object"}},"required":["header"],"type":"object"},{"properties":{"id":{"type":"string"},"origin":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["origin","id","sessionKey","userNkey"],"type":"object"}]},"AuthConnectionsKickRequest":{"properties":{"userNkey":{"type":"string"}},"required":["userNkey"],"type":"object"},"AuthConnectionsKickResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthConnectionsKickedEvent":{"allOf":[{"properties":{"header":{"properties":{"id":{"type":"string"},"time":{"format":"date-time","type":"string"}},"required":["id","time"],"type":"object"}},"required":["header"],"type":"object"},{"properties":{"id":{"type":"string"},"kickedBy":{"type":"string"},"origin":{"type":"string"},"userNkey":{"type":"string"}},"required":["origin","id","userNkey","kickedBy"],"type":"object"}]},"AuthConnectionsListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"sessionKey":{"type":"string"},"user":{"type":"string"}},"required":["limit"],"type":"object"},"AuthConnectionsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"anyOf":[{"properties":{"clientId":{"type":"number"},"connectedAt":{"type":"string"},"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"key":{"type":"string"},"participantKind":{"const":"app","type":"string"},"principal":{"properties":{"identity":{"properties":{"identityId":{"type":"string"},"provider":{"type":"string"},"subject":{"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"name":{"type":"string"},"type":{"const":"user","type":"string"},"userId":{"type":"string"}},"required":["type","userId","identity","name"],"type":"object"},"serverId":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["key","userNkey","sessionKey","serverId","clientId","connectedAt","participantKind","principal","contractId","contractDisplayName"],"type":"object"},{"properties":{"clientId":{"type":"number"},"connectedAt":{"type":"string"},"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"key":{"type":"string"},"participantKind":{"const":"agent","type":"string"},"principal":{"properties":{"identity":{"properties":{"identityId":{"type":"string"},"provider":{"type":"string"},"subject":{"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"name":{"type":"string"},"type":{"const":"user","type":"string"},"userId":{"type":"string"}},"required":["type","userId","identity","name"],"type":"object"},"serverId":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["key","userNkey","sessionKey","serverId","clientId","connectedAt","participantKind","principal","contractId","contractDisplayName"],"type":"object"},{"properties":{"clientId":{"type":"number"},"connectedAt":{"type":"string"},"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"key":{"type":"string"},"participantKind":{"const":"device","type":"string"},"principal":{"properties":{"deploymentId":{"type":"string"},"deviceId":{"type":"string"},"deviceType":{"type":"string"},"runtimePublicKey":{"type":"string"},"type":{"const":"device","type":"string"}},"required":["type","deviceId","deviceType","runtimePublicKey","deploymentId"],"type":"object"},"serverId":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["key","userNkey","sessionKey","serverId","clientId","connectedAt","participantKind","principal","contractId"],"type":"object"},{"properties":{"clientId":{"type":"number"},"connectedAt":{"type":"string"},"key":{"type":"string"},"participantKind":{"const":"service","type":"string"},"principal":{"properties":{"deploymentId":{"type":"string"},"id":{"type":"string"},"instanceId":{"type":"string"},"name":{"type":"string"},"type":{"const":"service","type":"string"}},"required":["type","id","name","instanceId","deploymentId"],"type":"object"},"serverId":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["key","userNkey","sessionKey","serverId","clientId","connectedAt","participantKind","principal"],"type":"object"}]},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthConnectionsOpenedEvent":{"allOf":[{"properties":{"header":{"properties":{"id":{"type":"string"},"time":{"format":"date-time","type":"string"}},"required":["id","time"],"type":"object"}},"required":["header"],"type":"object"},{"properties":{"id":{"type":"string"},"origin":{"type":"string"},"sessionKey":{"type":"string"},"userNkey":{"type":"string"}},"required":["origin","id","sessionKey","userNkey"],"type":"object"}]},"AuthDeployment":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces","disabled"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId","disabled"],"type":"object"}]},"AuthDeploymentAuthorityAcceptMigrationRequest":{"properties":{"acknowledgement":{"minLength":1,"type":"string"},"expectedDesiredVersion":{"minLength":1,"type":"string"},"planId":{"minLength":1,"type":"string"}},"required":["planId","acknowledgement"],"type":"object"},"AuthDeploymentAuthorityAcceptResponse":{"properties":{"authority":{"properties":{"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"desiredState":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"needs":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"resources":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"type":"array"},"surfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"}},"required":["needs","capabilities","resources","surfaces"],"type":"object"},"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"version":{"minLength":1,"type":"string"}},"required":["deploymentId","kind","disabled","desiredState","version","createdAt","updatedAt"],"type":"object"}},"required":["authority"],"type":"object"},"AuthDeploymentAuthorityAcceptUpdateRequest":{"properties":{"expectedDesiredVersion":{"minLength":1,"type":"string"},"planId":{"minLength":1,"type":"string"}},"required":["planId"],"type":"object"},"AuthDeploymentAuthorityGetRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"}},"required":["deploymentId"],"type":"object"},"AuthDeploymentAuthorityGetResponse":{"properties":{"authority":{"properties":{"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"desiredState":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"needs":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"resources":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"type":"array"},"surfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"}},"required":["needs","capabilities","resources","surfaces"],"type":"object"},"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"version":{"minLength":1,"type":"string"}},"required":["deploymentId","kind","disabled","desiredState","version","createdAt","updatedAt"],"type":"object"},"grantOverrides":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"type":"array"},"materializedAuthority":{"anyOf":[{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"},"error":{"minLength":1,"type":"string"},"grants":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"}},"required":["kind","capability"],"type":"object"},{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"const":"surface","type":"string"},"name":{"minLength":1,"type":"string"},"surfaceKind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]}},"required":["kind","contractId","surfaceKind","name"],"type":"object"},{"properties":{"direction":{"anyOf":[{"const":"publish","type":"string"},{"const":"subscribe","type":"string"}]},"grantSource":{"anyOf":[{"const":"owned-surface","type":"string"},{"const":"used-surface","type":"string"},{"const":"resource-binding","type":"string"},{"const":"platform-service","type":"string"},{"const":"transfer","type":"string"}]},"kind":{"const":"nats","type":"string"},"requiredCapabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"subject":{"minLength":1,"type":"string"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","direction","subject","requiredCapabilities","grantSource"],"type":"object"}]},"type":"array"},"reconciledAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"resourceBindings":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"binding":{"patternProperties":{"^.*$":{}},"type":"object"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"limits":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","kind","alias","binding","limits","createdAt","updatedAt"],"type":"object"},"type":"array"},"status":{"anyOf":[{"const":"current","type":"string"},{"const":"pending","type":"string"},{"const":"failed","type":"string"}]}},"required":["deploymentId","desiredVersion","status","resourceBindings","grants","reconciledAt"],"type":"object"},{"type":"null"}]},"portalRoute":{"anyOf":[{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","portalId","entryUrl","disabled","updatedAt"],"type":"object"},{"type":"null"}]}},"required":["authority","materializedAuthority","portalRoute","grantOverrides"],"type":"object"},"AuthDeploymentAuthorityGrantOverridesListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthDeploymentAuthorityGrantOverridesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeploymentAuthorityGrantOverridesPutRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"overrides":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"type":"array"}},"required":["deploymentId","overrides"],"type":"object"},"AuthDeploymentAuthorityGrantOverridesRemoveRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"overrides":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"type":"array"}},"required":["deploymentId","overrides"],"type":"object"},"AuthDeploymentAuthorityGrantOverridesResponse":{"properties":{"grantOverrides":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"type":"array"}},"required":["grantOverrides"],"type":"object"},"AuthDeploymentAuthorityListRequest":{"properties":{"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthDeploymentAuthorityListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"desiredState":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"needs":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"resources":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"type":"array"},"surfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"}},"required":["needs","capabilities","resources","surfaces"],"type":"object"},"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"version":{"minLength":1,"type":"string"}},"required":["deploymentId","kind","disabled","desiredState","version","createdAt","updatedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeploymentAuthorityPlanRequest":{"properties":{"contract":{"type":"object"},"deploymentId":{"minLength":1,"type":"string"},"expectedDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},"required":["deploymentId","contract","expectedDigest"],"type":"object"},"AuthDeploymentAuthorityPlanResponse":{"properties":{"plan":{"anyOf":[{"properties":{"classification":{"const":"update","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification"],"type":"object"},{"properties":{"acknowledgementRequired":{"type":"boolean"},"classification":{"const":"migration","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification","acknowledgementRequired"],"type":"object"}]}},"required":["plan"],"type":"object"},"AuthDeploymentAuthorityPlansGetRequest":{"properties":{"planId":{"minLength":1,"type":"string"}},"required":["planId"],"type":"object"},"AuthDeploymentAuthorityPlansGetResponse":{"properties":{"plan":{"anyOf":[{"properties":{"classification":{"const":"update","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification"],"type":"object"},{"properties":{"acknowledgementRequired":{"type":"boolean"},"classification":{"const":"migration","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification","acknowledgementRequired"],"type":"object"}]}},"required":["plan"],"type":"object"},"AuthDeploymentAuthorityPlansListRequest":{"properties":{"classification":{"anyOf":[{"const":"update","type":"string"},{"const":"migration","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]}},"required":["limit"],"type":"object"},"AuthDeploymentAuthorityPlansListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"anyOf":[{"properties":{"classification":{"const":"update","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification"],"type":"object"},{"properties":{"acknowledgementRequired":{"type":"boolean"},"classification":{"const":"migration","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification","acknowledgementRequired"],"type":"object"}]},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeploymentAuthorityReconcileRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"}},"required":["deploymentId"],"type":"object"},"AuthDeploymentAuthorityReconcileResponse":{"properties":{"authority":{"properties":{"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"desiredState":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"needs":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"resources":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"type":"array"},"surfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"}},"required":["needs","capabilities","resources","surfaces"],"type":"object"},"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"version":{"minLength":1,"type":"string"}},"required":["deploymentId","kind","disabled","desiredState","version","createdAt","updatedAt"],"type":"object"},"materializedAuthority":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"},"error":{"minLength":1,"type":"string"},"grants":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"}},"required":["kind","capability"],"type":"object"},{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"const":"surface","type":"string"},"name":{"minLength":1,"type":"string"},"surfaceKind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]}},"required":["kind","contractId","surfaceKind","name"],"type":"object"},{"properties":{"direction":{"anyOf":[{"const":"publish","type":"string"},{"const":"subscribe","type":"string"}]},"grantSource":{"anyOf":[{"const":"owned-surface","type":"string"},{"const":"used-surface","type":"string"},{"const":"resource-binding","type":"string"},{"const":"platform-service","type":"string"},{"const":"transfer","type":"string"}]},"kind":{"const":"nats","type":"string"},"requiredCapabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"subject":{"minLength":1,"type":"string"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","direction","subject","requiredCapabilities","grantSource"],"type":"object"}]},"type":"array"},"reconciledAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"resourceBindings":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"binding":{"patternProperties":{"^.*$":{}},"type":"object"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"limits":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","kind","alias","binding","limits","createdAt","updatedAt"],"type":"object"},"type":"array"},"status":{"anyOf":[{"const":"current","type":"string"},{"const":"pending","type":"string"},{"const":"failed","type":"string"}]}},"required":["deploymentId","desiredVersion","status","resourceBindings","grants","reconciledAt"],"type":"object"},"reconciliation":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"},"finishedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"message":{"minLength":1,"type":"string"},"startedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"idle","type":"string"},{"const":"running","type":"string"},{"const":"succeeded","type":"string"},{"const":"failed","type":"string"}]}},"required":["deploymentId","desiredVersion","state","startedAt","finishedAt"],"type":"object"}},"required":["authority","materializedAuthority"],"type":"object"},"AuthDeploymentAuthorityRejectRequest":{"properties":{"planId":{"minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"}},"required":["planId"],"type":"object"},"AuthDeploymentAuthorityRejectResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthDeploymentsCreateRequest":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId"],"type":"object"}]},"AuthDeploymentsCreateResponse":{"properties":{"deployment":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces","disabled"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId","disabled"],"type":"object"}]}},"required":["deployment"],"type":"object"},"AuthDeploymentsDisableRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"}]}},"required":["kind","deploymentId"],"type":"object"},"AuthDeploymentsDisableResponse":{"properties":{"deployment":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces","disabled"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId","disabled"],"type":"object"}]}},"required":["deployment"],"type":"object"},"AuthDeploymentsEnableRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"}]}},"required":["kind","deploymentId"],"type":"object"},"AuthDeploymentsEnableResponse":{"properties":{"deployment":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces","disabled"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId","disabled"],"type":"object"}]}},"required":["deployment"],"type":"object"},"AuthDeploymentsListRequest":{"properties":{"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"}]},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthDeploymentsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"anyOf":[{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"service","type":"string"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["kind","deploymentId","namespaces","disabled"],"type":"object"},{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"kind":{"const":"device","type":"string"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["kind","deploymentId","disabled"],"type":"object"}]},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeploymentsRemoveRequest":{"properties":{"cascade":{"type":"boolean"},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"}]},"purgeUnusedContracts":{"type":"boolean"}},"required":["kind","deploymentId"],"type":"object"},"AuthDeploymentsRemoveResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthDeviceUserAuthoritiesApprovedEvent":{"properties":{"approvedAt":{"format":"date-time","type":"string"},"approvedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"deploymentId":{"minLength":1,"type":"string"},"flowId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"requestedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"reviewId":{"minLength":1,"type":"string"}},"required":["reviewId","flowId","instanceId","publicIdentityKey","deploymentId","requestedAt","approvedAt","requestedBy","approvedBy"],"type":"object"},"AuthDeviceUserAuthoritiesListRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"state":{"anyOf":[{"const":"activated","type":"string"},{"const":"revoked","type":"string"}]}},"required":["limit"],"type":"object"},"AuthDeviceUserAuthoritiesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"activatedAt":{"format":"date-time","type":"string"},"activatedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"activated","type":"string"},{"const":"revoked","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","activatedAt","revokedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeviceUserAuthoritiesRequestedEvent":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"flowId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"requestedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"}},"required":["flowId","instanceId","publicIdentityKey","deploymentId","requestedAt","requestedBy"],"type":"object"},"AuthDeviceUserAuthoritiesResolvedEvent":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"flowId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"resolvedAt":{"format":"date-time","type":"string"},"resolvedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"reviewId":{"minLength":1,"type":"string"}},"required":["instanceId","publicIdentityKey","deploymentId","resolvedAt","resolvedBy"],"type":"object"},"AuthDeviceUserAuthoritiesReviewRequestedEvent":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"flowId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"requestedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"reviewId":{"minLength":1,"type":"string"}},"required":["reviewId","flowId","instanceId","publicIdentityKey","deploymentId","requestedAt","requestedBy"],"type":"object"},"AuthDeviceUserAuthoritiesReviewsDecideRequest":{"properties":{"decision":{"anyOf":[{"const":"approve","type":"string"},{"const":"reject","type":"string"}]},"reason":{"minLength":1,"type":"string"},"reviewId":{"minLength":1,"type":"string"}},"required":["reviewId","decision"],"type":"object"},"AuthDeviceUserAuthoritiesReviewsDecideResponse":{"properties":{"activation":{"properties":{"activatedAt":{"format":"date-time","type":"string"},"activatedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"activated","type":"string"},{"const":"revoked","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","activatedAt","revokedAt"],"type":"object"},"confirmationCode":{"minLength":1,"type":"string"},"review":{"properties":{"decidedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"reviewId":{"minLength":1,"type":"string"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"approved","type":"string"},{"const":"rejected","type":"string"}]}},"required":["reviewId","instanceId","publicIdentityKey","deploymentId","state","requestedAt","decidedAt"],"type":"object"}},"required":["review"],"type":"object"},"AuthDeviceUserAuthoritiesReviewsListRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"approved","type":"string"},{"const":"rejected","type":"string"}]}},"required":["limit"],"type":"object"},"AuthDeviceUserAuthoritiesReviewsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"decidedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"reviewId":{"minLength":1,"type":"string"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"approved","type":"string"},{"const":"rejected","type":"string"}]}},"required":["reviewId","instanceId","publicIdentityKey","deploymentId","state","requestedAt","decidedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDeviceUserAuthoritiesRevokeRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthDeviceUserAuthoritiesRevokeResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthDevicesConnectInfoGetRequest":{"properties":{"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"iat":{"type":"number"},"publicIdentityKey":{"minLength":1,"type":"string"},"sig":{"minLength":1,"type":"string"}},"required":["publicIdentityKey","contractDigest","iat","sig"],"type":"object"},"AuthDevicesConnectInfoGetResponse":{"properties":{"connectInfo":{"properties":{"auth":{"properties":{"authority":{"anyOf":[{"const":"admin_reviewed","type":"string"},{"const":"user_delegated","type":"string"}]},"iatSkewSeconds":{"type":"number"},"mode":{"const":"device_identity","type":"string"}},"required":["mode","authority","iatSkewSeconds"],"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"transport":{"properties":{"sentinel":{"properties":{"jwt":{"type":"string"},"seed":{"type":"string"}},"required":["jwt","seed"],"type":"object"}},"required":["sentinel"],"type":"object"},"transports":{"properties":{"native":{"properties":{"natsServers":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["natsServers"],"type":"object"},"websocket":{"properties":{"natsServers":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["natsServers"],"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","contractId","contractDigest","transports","transport","auth"],"type":"object"},"status":{"const":"ready","type":"string"}},"required":["status","connectInfo"],"type":"object"},"AuthDevicesDisableRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthDevicesDisableResponse":{"properties":{"instance":{"properties":{"activatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","createdAt","activatedAt","revokedAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthDevicesEnableRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthDevicesEnableResponse":{"properties":{"instance":{"properties":{"activatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","createdAt","activatedAt","revokedAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthDevicesListRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["limit"],"type":"object"},"AuthDevicesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"activatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","createdAt","activatedAt","revokedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthDevicesProvisionRequest":{"properties":{"activationKey":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"}},"required":["deploymentId","publicIdentityKey","activationKey"],"type":"object"},"AuthDevicesProvisionResponse":{"properties":{"instance":{"properties":{"activatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","createdAt","activatedAt","revokedAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthDevicesRemoveRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthDevicesRemoveResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthIdentitiesListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"user":{"minLength":1,"type":"string"}},"required":["limit"],"type":"object"},"AuthIdentitiesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"answer":{"anyOf":[{"const":"approved","type":"string"},{"const":"denied","type":"string"}]},"answeredAt":{"format":"date-time","type":"string"},"capabilities":{"patternProperties":{"^.*$":{"properties":{"consequence":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"}},"required":["displayName","description"],"type":"object"}},"type":"object"},"contractEvidence":{"properties":{"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"}},"required":["contractDigest","contractId"],"type":"object"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"identityAnchor":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"}},"required":["kind","contractId","origin"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"cli","type":"string"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["kind","contractId","sessionPublicKey"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"native","type":"string"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["kind","contractId","sessionPublicKey"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"devicePublicKey":{"minLength":1,"type":"string"},"kind":{"const":"device-user","type":"string"}},"required":["kind","contractId","devicePublicKey"],"type":"object"}]},"identityGrantId":{"minLength":1,"type":"string"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"user":{"minLength":1,"type":"string"}},"required":["user","answer","answeredAt","updatedAt","identityGrantId","identityAnchor","contractEvidence","displayName","description","capabilities","participantKind"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthIdentityGrantsListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"user":{"minLength":1,"type":"string"}},"required":["limit"],"type":"object"},"AuthIdentityGrantsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"contractEvidence":{"properties":{"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"}},"required":["contractDigest","contractId"],"type":"object"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"},"grantedAt":{"format":"date-time","type":"string"},"identityAnchor":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"}},"required":["kind","contractId","origin"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"cli","type":"string"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["kind","contractId","sessionPublicKey"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"native","type":"string"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["kind","contractId","sessionPublicKey"],"type":"object"},{"properties":{"contractId":{"minLength":1,"type":"string"},"devicePublicKey":{"minLength":1,"type":"string"},"kind":{"const":"device-user","type":"string"}},"required":["kind","contractId","devicePublicKey"],"type":"object"}]},"identityGrantId":{"minLength":1,"type":"string"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["identityGrantId","identityAnchor","contractEvidence","displayName","description","participantKind","capabilities","grantedAt","updatedAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthIdentityGrantsRevokeRequest":{"properties":{"identityGrantId":{"minLength":1,"type":"string"},"user":{"minLength":1,"type":"string"}},"required":["identityGrantId"],"type":"object"},"AuthIdentityGrantsRevokeResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthPortalsGetRequest":{"properties":{"portalId":{"minLength":1,"type":"string"}},"required":["portalId"],"type":"object"},"AuthPortalsGetResponse":{"properties":{"defaultCapabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"defaultCapabilityGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"federatedProviders":{"items":{"properties":{"displayName":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"},"type":{"minLength":1,"type":"string"}},"required":["id","displayName","type"],"type":"object"},"type":"array"},"portal":{"properties":{"builtIn":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","displayName","entryUrl","builtIn","disabled","createdAt","updatedAt"],"type":"object"},"routes":{"items":{"properties":{"contractId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"disabled":{"type":"boolean"},"origin":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"routeKey":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["routeKey","portalId","contractId","origin","disabled","updatedAt"],"type":"object"},"type":"array"},"settings":{"properties":{"allowedFederatedProviders":{"anyOf":[{"items":{"minLength":1,"type":"string"},"type":"array"},{"type":"null"}]},"federatedRegistrationEnabled":{"type":"boolean"},"localRegistrationEnabled":{"type":"boolean"},"portalId":{"minLength":1,"type":"string"},"selfRegisteredAccountActive":{"type":"boolean"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","localRegistrationEnabled","federatedRegistrationEnabled","allowedFederatedProviders","selfRegisteredAccountActive","updatedAt"],"type":"object"}},"required":["portal","settings","routes","defaultCapabilities","defaultCapabilityGroups","federatedProviders"],"type":"object"},"AuthPortalsListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthPortalsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"activeRouteCount":{"minimum":0,"type":"integer"},"builtIn":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"routeCount":{"minimum":0,"type":"integer"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","displayName","entryUrl","builtIn","disabled","createdAt","updatedAt","routeCount","activeRouteCount"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthPortalsLoginSettingsGetRequest":{"properties":{"portalId":{"minLength":1,"type":"string"}},"required":["portalId"],"type":"object"},"AuthPortalsLoginSettingsResponse":{"properties":{"defaultCapabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"defaultCapabilityGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"federatedProviders":{"items":{"properties":{"displayName":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"},"type":{"minLength":1,"type":"string"}},"required":["id","displayName","type"],"type":"object"},"type":"array"},"portal":{"properties":{"builtIn":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","displayName","entryUrl","builtIn","disabled","createdAt","updatedAt"],"type":"object"},"settings":{"properties":{"allowedFederatedProviders":{"anyOf":[{"items":{"minLength":1,"type":"string"},"type":"array"},{"type":"null"}]},"federatedRegistrationEnabled":{"type":"boolean"},"localRegistrationEnabled":{"type":"boolean"},"portalId":{"minLength":1,"type":"string"},"selfRegisteredAccountActive":{"type":"boolean"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","localRegistrationEnabled","federatedRegistrationEnabled","allowedFederatedProviders","selfRegisteredAccountActive","updatedAt"],"type":"object"}},"required":["portal","settings","defaultCapabilities","defaultCapabilityGroups","federatedProviders"],"type":"object"},"AuthPortalsLoginSettingsUpdateRequest":{"properties":{"allowedFederatedProviders":{"anyOf":[{"items":{"minLength":1,"type":"string"},"type":"array"},{"type":"null"}]},"defaultCapabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"defaultCapabilityGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"federatedRegistrationEnabled":{"type":"boolean"},"localRegistrationEnabled":{"type":"boolean"},"portalId":{"minLength":1,"type":"string"},"selfRegisteredAccountActive":{"type":"boolean"}},"required":["portalId","localRegistrationEnabled","federatedRegistrationEnabled","allowedFederatedProviders","selfRegisteredAccountActive","defaultCapabilities","defaultCapabilityGroups"],"type":"object"},"AuthPortalsPutRequest":{"properties":{"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"minLength":1,"type":"string"},"portalId":{"minLength":1,"type":"string"}},"required":["portalId","displayName","entryUrl"],"type":"object"},"AuthPortalsPutResponse":{"properties":{"portal":{"properties":{"builtIn":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","displayName","entryUrl","builtIn","disabled","createdAt","updatedAt"],"type":"object"}},"required":["portal"],"type":"object"},"AuthPortalsRemoveRequest":{"properties":{"portalId":{"minLength":1,"type":"string"}},"required":["portalId"],"type":"object"},"AuthPortalsRemoveResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthPortalsRoutesPutRequest":{"properties":{"contractId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"disabled":{"type":"boolean"},"origin":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"}},"required":["portalId"],"type":"object"},"AuthPortalsRoutesPutResponse":{"properties":{"route":{"properties":{"contractId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"disabled":{"type":"boolean"},"origin":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"routeKey":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["routeKey","portalId","contractId","origin","disabled","updatedAt"],"type":"object"}},"required":["route"],"type":"object"},"AuthPortalsRoutesRemoveRequest":{"properties":{"contractId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"origin":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"}},"required":["portalId"],"type":"object"},"AuthPortalsRoutesRemoveResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthRequestsValidateRequest":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"iat":{"type":"integer"},"payloadHash":{"minLength":1,"type":"string"},"proof":{"minLength":1,"type":"string"},"requestId":{"minLength":1,"type":"string"},"sessionKey":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["sessionKey","proof","subject","payloadHash","iat","requestId"],"type":"object"},"AuthRequestsValidateResponse":{"properties":{"allowed":{"type":"boolean"},"caller":{"anyOf":[{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"image":{"type":"string"},"lastAuth":{"format":"date-time","type":"string"},"name":{"type":"string"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"type":{"const":"user","type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["type","participantKind","userId","identity","active","name","email","capabilities","lastAuth"],"type":"object"},{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"name":{"type":"string"},"type":{"const":"service","type":"string"}},"required":["type","id","name","active","capabilities"],"type":"object"},{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"deploymentId":{"minLength":1,"type":"string"},"deviceId":{"minLength":1,"type":"string"},"deviceType":{"minLength":1,"type":"string"},"runtimePublicKey":{"minLength":1,"type":"string"},"type":{"const":"device","type":"string"}},"required":["type","deviceId","deviceType","runtimePublicKey","deploymentId","active","capabilities"],"type":"object"}]},"inboxPrefix":{"type":"string"}},"required":["allowed","inboxPrefix","caller"],"type":"object"},"AuthResolveDeviceUserAuthoritiesProgress":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"reviewId":{"minLength":1,"type":"string"},"status":{"const":"pending_review","type":"string"}},"required":["status","reviewId","instanceId","deploymentId","requestedAt"],"type":"object"},"AuthResolveDeviceUserAuthoritiesRequest":{"properties":{"flowId":{"minLength":1,"type":"string"}},"required":["flowId"],"type":"object"},"AuthResolveDeviceUserAuthoritiesResponse":{"anyOf":[{"properties":{"activatedAt":{"format":"date-time","type":"string"},"confirmationCode":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"status":{"const":"activated","type":"string"}},"required":["status","instanceId","deploymentId","activatedAt"],"type":"object"},{"properties":{"reason":{"minLength":1,"type":"string"},"status":{"const":"rejected","type":"string"}},"required":["status"],"type":"object"}]},"AuthServiceInstancesDisableRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthServiceInstancesDisableResponse":{"properties":{"instance":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"instanceId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"},"resourceBindings":{"properties":{"eventConsumers":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"filterSubjects":{"items":{"minLength":1,"type":"string"},"type":"array"},"maxDeliver":{"minimum":1,"type":"integer"},"ordering":{"const":"strict","type":"string"},"replay":{"anyOf":[{"const":"new","type":"string"},{"const":"all","type":"string"}]},"stream":{"minLength":1,"type":"string"}},"required":["stream","consumerName","filterSubjects","replay","ordering","concurrency","ackWaitMs","maxDeliver","backoffMs"],"type":"object"}},"type":"object"},"jobs":{"properties":{"namespace":{"minLength":1,"type":"string"},"queues":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"defaultDeadlineMs":{"minimum":1,"type":"integer"},"dlq":{"type":"boolean"},"logs":{"type":"boolean"},"maxDeliver":{"minimum":1,"type":"integer"},"payload":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"progress":{"type":"boolean"},"publishPrefix":{"minLength":1,"type":"string"},"queueType":{"minLength":1,"type":"string"},"result":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"workSubject":{"minLength":1,"type":"string"}},"required":["queueType","publishPrefix","workSubject","consumerName","payload","maxDeliver","backoffMs","ackWaitMs","progress","logs","dlq","concurrency"],"type":"object"}},"type":"object"},"workStream":{"minLength":1,"type":"string"}},"required":["namespace","queues"],"type":"object"},"kv":{"patternProperties":{"^.*$":{"properties":{"bucket":{"minLength":1,"type":"string"},"history":{"minimum":1,"type":"integer"},"maxValueBytes":{"minimum":1,"type":"integer"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["bucket","history","ttlMs"],"type":"object"}},"type":"object"},"store":{"patternProperties":{"^.*$":{"properties":{"maxObjectBytes":{"minimum":1,"type":"integer"},"maxTotalBytes":{"minimum":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["name","ttlMs"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","instanceKey","disabled","capabilities","createdAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthServiceInstancesEnableRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthServiceInstancesEnableResponse":{"properties":{"instance":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"instanceId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"},"resourceBindings":{"properties":{"eventConsumers":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"filterSubjects":{"items":{"minLength":1,"type":"string"},"type":"array"},"maxDeliver":{"minimum":1,"type":"integer"},"ordering":{"const":"strict","type":"string"},"replay":{"anyOf":[{"const":"new","type":"string"},{"const":"all","type":"string"}]},"stream":{"minLength":1,"type":"string"}},"required":["stream","consumerName","filterSubjects","replay","ordering","concurrency","ackWaitMs","maxDeliver","backoffMs"],"type":"object"}},"type":"object"},"jobs":{"properties":{"namespace":{"minLength":1,"type":"string"},"queues":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"defaultDeadlineMs":{"minimum":1,"type":"integer"},"dlq":{"type":"boolean"},"logs":{"type":"boolean"},"maxDeliver":{"minimum":1,"type":"integer"},"payload":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"progress":{"type":"boolean"},"publishPrefix":{"minLength":1,"type":"string"},"queueType":{"minLength":1,"type":"string"},"result":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"workSubject":{"minLength":1,"type":"string"}},"required":["queueType","publishPrefix","workSubject","consumerName","payload","maxDeliver","backoffMs","ackWaitMs","progress","logs","dlq","concurrency"],"type":"object"}},"type":"object"},"workStream":{"minLength":1,"type":"string"}},"required":["namespace","queues"],"type":"object"},"kv":{"patternProperties":{"^.*$":{"properties":{"bucket":{"minLength":1,"type":"string"},"history":{"minimum":1,"type":"integer"},"maxValueBytes":{"minimum":1,"type":"integer"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["bucket","history","ttlMs"],"type":"object"}},"type":"object"},"store":{"patternProperties":{"^.*$":{"properties":{"maxObjectBytes":{"minimum":1,"type":"integer"},"maxTotalBytes":{"minimum":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["name","ttlMs"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","instanceKey","disabled","capabilities","createdAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthServiceInstancesListRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthServiceInstancesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"instanceId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"},"resourceBindings":{"properties":{"eventConsumers":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"filterSubjects":{"items":{"minLength":1,"type":"string"},"type":"array"},"maxDeliver":{"minimum":1,"type":"integer"},"ordering":{"const":"strict","type":"string"},"replay":{"anyOf":[{"const":"new","type":"string"},{"const":"all","type":"string"}]},"stream":{"minLength":1,"type":"string"}},"required":["stream","consumerName","filterSubjects","replay","ordering","concurrency","ackWaitMs","maxDeliver","backoffMs"],"type":"object"}},"type":"object"},"jobs":{"properties":{"namespace":{"minLength":1,"type":"string"},"queues":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"defaultDeadlineMs":{"minimum":1,"type":"integer"},"dlq":{"type":"boolean"},"logs":{"type":"boolean"},"maxDeliver":{"minimum":1,"type":"integer"},"payload":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"progress":{"type":"boolean"},"publishPrefix":{"minLength":1,"type":"string"},"queueType":{"minLength":1,"type":"string"},"result":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"workSubject":{"minLength":1,"type":"string"}},"required":["queueType","publishPrefix","workSubject","consumerName","payload","maxDeliver","backoffMs","ackWaitMs","progress","logs","dlq","concurrency"],"type":"object"}},"type":"object"},"workStream":{"minLength":1,"type":"string"}},"required":["namespace","queues"],"type":"object"},"kv":{"patternProperties":{"^.*$":{"properties":{"bucket":{"minLength":1,"type":"string"},"history":{"minimum":1,"type":"integer"},"maxValueBytes":{"minimum":1,"type":"integer"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["bucket","history","ttlMs"],"type":"object"}},"type":"object"},"store":{"patternProperties":{"^.*$":{"properties":{"maxObjectBytes":{"minimum":1,"type":"integer"},"maxTotalBytes":{"minimum":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["name","ttlMs"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","instanceKey","disabled","capabilities","createdAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthServiceInstancesProvisionRequest":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"}},"required":["deploymentId","instanceKey"],"type":"object"},"AuthServiceInstancesProvisionResponse":{"properties":{"instance":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"instanceId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"},"resourceBindings":{"properties":{"eventConsumers":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"filterSubjects":{"items":{"minLength":1,"type":"string"},"type":"array"},"maxDeliver":{"minimum":1,"type":"integer"},"ordering":{"const":"strict","type":"string"},"replay":{"anyOf":[{"const":"new","type":"string"},{"const":"all","type":"string"}]},"stream":{"minLength":1,"type":"string"}},"required":["stream","consumerName","filterSubjects","replay","ordering","concurrency","ackWaitMs","maxDeliver","backoffMs"],"type":"object"}},"type":"object"},"jobs":{"properties":{"namespace":{"minLength":1,"type":"string"},"queues":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"defaultDeadlineMs":{"minimum":1,"type":"integer"},"dlq":{"type":"boolean"},"logs":{"type":"boolean"},"maxDeliver":{"minimum":1,"type":"integer"},"payload":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"progress":{"type":"boolean"},"publishPrefix":{"minLength":1,"type":"string"},"queueType":{"minLength":1,"type":"string"},"result":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"workSubject":{"minLength":1,"type":"string"}},"required":["queueType","publishPrefix","workSubject","consumerName","payload","maxDeliver","backoffMs","ackWaitMs","progress","logs","dlq","concurrency"],"type":"object"}},"type":"object"},"workStream":{"minLength":1,"type":"string"}},"required":["namespace","queues"],"type":"object"},"kv":{"patternProperties":{"^.*$":{"properties":{"bucket":{"minLength":1,"type":"string"},"history":{"minimum":1,"type":"integer"},"maxValueBytes":{"minimum":1,"type":"integer"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["bucket","history","ttlMs"],"type":"object"}},"type":"object"},"store":{"patternProperties":{"^.*$":{"properties":{"maxObjectBytes":{"minimum":1,"type":"integer"},"maxTotalBytes":{"minimum":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["name","ttlMs"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","instanceKey","disabled","capabilities","createdAt"],"type":"object"}},"required":["instance"],"type":"object"},"AuthServiceInstancesRemoveRequest":{"properties":{"instanceId":{"minLength":1,"type":"string"}},"required":["instanceId"],"type":"object"},"AuthServiceInstancesRemoveResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthSessionsListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"user":{"type":"string"}},"required":["limit"],"type":"object"},"AuthSessionsListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"anyOf":[{"properties":{"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"createdAt":{"type":"string"},"key":{"type":"string"},"lastAuth":{"type":"string"},"participantKind":{"const":"app","type":"string"},"principal":{"properties":{"identity":{"properties":{"identityId":{"type":"string"},"provider":{"type":"string"},"subject":{"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"name":{"type":"string"},"type":{"const":"user","type":"string"},"userId":{"type":"string"}},"required":["type","userId","identity","name"],"type":"object"},"sessionKey":{"type":"string"}},"required":["key","sessionKey","createdAt","lastAuth","participantKind","principal","contractId","contractDisplayName"],"type":"object"},{"properties":{"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"createdAt":{"type":"string"},"key":{"type":"string"},"lastAuth":{"type":"string"},"participantKind":{"const":"agent","type":"string"},"principal":{"properties":{"identity":{"properties":{"identityId":{"type":"string"},"provider":{"type":"string"},"subject":{"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"name":{"type":"string"},"type":{"const":"user","type":"string"},"userId":{"type":"string"}},"required":["type","userId","identity","name"],"type":"object"},"sessionKey":{"type":"string"}},"required":["key","sessionKey","createdAt","lastAuth","participantKind","principal","contractId","contractDisplayName"],"type":"object"},{"properties":{"contractDisplayName":{"type":"string"},"contractId":{"type":"string"},"createdAt":{"type":"string"},"key":{"type":"string"},"lastAuth":{"type":"string"},"participantKind":{"const":"device","type":"string"},"principal":{"properties":{"deploymentId":{"type":"string"},"deviceId":{"type":"string"},"deviceType":{"type":"string"},"runtimePublicKey":{"type":"string"},"type":{"const":"device","type":"string"}},"required":["type","deviceId","deviceType","runtimePublicKey","deploymentId"],"type":"object"},"sessionKey":{"type":"string"}},"required":["key","sessionKey","createdAt","lastAuth","participantKind","principal","contractId"],"type":"object"},{"properties":{"createdAt":{"type":"string"},"key":{"type":"string"},"lastAuth":{"type":"string"},"participantKind":{"const":"service","type":"string"},"principal":{"properties":{"deploymentId":{"type":"string"},"id":{"type":"string"},"instanceId":{"type":"string"},"name":{"type":"string"},"type":{"const":"service","type":"string"}},"required":["type","id","name","instanceId","deploymentId"],"type":"object"},"sessionKey":{"type":"string"}},"required":["key","sessionKey","createdAt","lastAuth","participantKind","principal"],"type":"object"}]},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthSessionsLogoutRequest":{"properties":{},"type":"object"},"AuthSessionsLogoutResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthSessionsMeRequest":{"properties":{},"type":"object"},"AuthSessionsMeResponse":{"properties":{"device":{"anyOf":[{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"deploymentId":{"minLength":1,"type":"string"},"deviceId":{"minLength":1,"type":"string"},"deviceType":{"minLength":1,"type":"string"},"runtimePublicKey":{"minLength":1,"type":"string"},"type":{"const":"device","type":"string"}},"required":["type","deviceId","deviceType","runtimePublicKey","deploymentId","active","capabilities"],"type":"object"},{"type":"null"}]},"participantKind":{"anyOf":[{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},{"const":"device","type":"string"},{"const":"service","type":"string"}]},"service":{"anyOf":[{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"name":{"type":"string"},"type":{"const":"service","type":"string"}},"required":["type","id","name","active","capabilities"],"type":"object"},{"type":"null"}]},"user":{"anyOf":[{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"image":{"type":"string"},"lastLogin":{"format":"date-time","type":"string"},"name":{"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId","active","name","email","capabilities","identity"],"type":"object"},{"type":"null"}]}},"required":["participantKind","user","device","service"],"type":"object"},"AuthSessionsRevokeRequest":{"properties":{"sessionKey":{"type":"string"}},"required":["sessionKey"],"type":"object"},"AuthSessionsRevokeResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthSessionsRevokedEvent":{"allOf":[{"properties":{"header":{"properties":{"id":{"type":"string"},"time":{"format":"date-time","type":"string"}},"required":["id","time"],"type":"object"}},"required":["header"],"type":"object"},{"properties":{"id":{"type":"string"},"origin":{"type":"string"},"revokedBy":{"type":"string"},"sessionKey":{"type":"string"}},"required":["origin","id","sessionKey","revokedBy"],"type":"object"}]},"AuthUserIdentitiesListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"userId":{"minLength":1,"type":"string"}},"required":["userId","limit"],"type":"object"},"AuthUserIdentitiesListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"displayName":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"identityId":{"minLength":1,"type":"string"},"lastLoginAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"linkedAt":{"format":"date-time","type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject","displayName","email","emailVerified","linkedAt","lastLoginAt"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthUserIdentitiesUnlinkRequest":{"properties":{"identityId":{"minLength":1,"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId","identityId"],"type":"object"},"AuthUserIdentitiesUnlinkResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthUsersAccountFlowCreateResponse":{"properties":{"expiresAt":{"format":"date-time","type":"string"},"flowId":{"minLength":1,"type":"string"},"url":{"minLength":1,"type":"string"}},"required":["flowId","url","expiresAt"],"type":"object"},"AuthUsersCreateRequest":{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"capabilityGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"email":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"username":{"minLength":1,"type":"string"}},"type":"object"},"AuthUsersCreateResponse":{"properties":{"user":{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"capabilityGroups":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"identities":{"items":{"properties":{"displayName":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"identityId":{"minLength":1,"type":"string"},"lastLoginAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"linkedAt":{"format":"date-time","type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject","displayName","email","emailVerified","linkedAt","lastLoginAt"],"type":"object"},"type":"array"},"name":{"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId","active","capabilities","capabilityGroups","identities"],"type":"object"}},"required":["user"],"type":"object"},"AuthUsersGetRequest":{"properties":{"userId":{"minLength":1,"type":"string"}},"required":["userId"],"type":"object"},"AuthUsersGetResponse":{"properties":{"user":{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"capabilityGroups":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"identities":{"items":{"properties":{"displayName":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"identityId":{"minLength":1,"type":"string"},"lastLoginAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"linkedAt":{"format":"date-time","type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject","displayName","email","emailVerified","linkedAt","lastLoginAt"],"type":"object"},"type":"array"},"name":{"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId","active","capabilities","capabilityGroups","identities"],"type":"object"}},"required":["user"],"type":"object"},"AuthUsersIdentityLinkCreateRequest":{"properties":{"returnTo":{"minLength":1,"type":"string"}},"type":"object"},"AuthUsersListRequest":{"properties":{"limit":{"maximum":500,"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"AuthUsersListResponse":{"properties":{"count":{"minimum":0,"type":"integer"},"entries":{"default":[],"items":{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"capabilityGroups":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"identities":{"items":{"properties":{"displayName":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"identityId":{"minLength":1,"type":"string"},"lastLoginAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"linkedAt":{"format":"date-time","type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject","displayName","email","emailVerified","linkedAt","lastLoginAt"],"type":"object"},"type":"array"},"name":{"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId","active","capabilities","capabilityGroups","identities"],"type":"object"},"type":"array"},"limit":{"minimum":0,"type":"integer"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"}},"required":["entries","count","offset","limit"],"type":"object"},"AuthUsersPasswordChangeRequest":{"properties":{"currentPassword":{"minLength":1,"type":"string"},"newPassword":{"minLength":1,"type":"string"}},"required":["currentPassword","newPassword"],"type":"object"},"AuthUsersPasswordChangeResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"AuthUsersPasswordResetCreateRequest":{"properties":{"expiresInSeconds":{"maximum":2592000,"minimum":60,"type":"integer"},"userId":{"minLength":1,"type":"string"}},"required":["userId"],"type":"object"},"AuthUsersUpdateRequest":{"properties":{"active":{"type":"boolean"},"capabilities":{"items":{"type":"string"},"type":"array"},"capabilityGroups":{"items":{"minLength":1,"type":"string"},"type":"array"},"email":{"type":"string"},"name":{"type":"string"},"userId":{"minLength":1,"type":"string"}},"required":["userId"],"type":"object"},"AuthUsersUpdateResponse":{"properties":{"success":{"type":"boolean"}},"required":["success"],"type":"object"},"DeploymentAuthority":{"properties":{"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"desiredState":{"properties":{"capabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"needs":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"resources":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"type":"array"},"surfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"}},"required":["needs","capabilities","resources","surfaces"],"type":"object"},"disabled":{"type":"boolean"},"kind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"},{"const":"app","type":"string"},{"const":"cli","type":"string"},{"const":"native","type":"string"},{"const":"device-user","type":"string"}]},"updatedAt":{"format":"date-time","type":"string"},"version":{"minLength":1,"type":"string"}},"required":["deploymentId","kind","disabled","desiredState","version","createdAt","updatedAt"],"type":"object"},"DeploymentAuthorityGrantOverride":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"web","type":"string"},"origin":{"minLength":1,"type":"string"},"sessionPublicKey":{"type":"null"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"capabilityGroupKey":{"type":"null"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"},{"properties":{"capability":{"type":"null"},"capabilityGroupKey":{"minLength":1,"type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"grantKind":{"const":"capability-group","type":"string"},"identityKind":{"const":"session","type":"string"},"origin":{"type":"null"},"sessionPublicKey":{"minLength":1,"type":"string"}},"required":["deploymentId","identityKind","grantKind","contractId","origin","sessionPublicKey","capability","capabilityGroupKey"],"type":"object"}]},"DeploymentAuthorityMaterialization":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"},"error":{"minLength":1,"type":"string"},"grants":{"items":{"anyOf":[{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"}},"required":["kind","capability"],"type":"object"},{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"const":"surface","type":"string"},"name":{"minLength":1,"type":"string"},"surfaceKind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]}},"required":["kind","contractId","surfaceKind","name"],"type":"object"},{"properties":{"direction":{"anyOf":[{"const":"publish","type":"string"},{"const":"subscribe","type":"string"}]},"grantSource":{"anyOf":[{"const":"owned-surface","type":"string"},{"const":"used-surface","type":"string"},{"const":"resource-binding","type":"string"},{"const":"platform-service","type":"string"},{"const":"transfer","type":"string"}]},"kind":{"const":"nats","type":"string"},"requiredCapabilities":{"items":{"minLength":1,"type":"string"},"type":"array"},"subject":{"minLength":1,"type":"string"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","direction","subject","requiredCapabilities","grantSource"],"type":"object"}]},"type":"array"},"reconciledAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"resourceBindings":{"items":{"properties":{"alias":{"minLength":1,"type":"string"},"binding":{"patternProperties":{"^.*$":{}},"type":"object"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"limits":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","kind","alias","binding","limits","createdAt","updatedAt"],"type":"object"},"type":"array"},"status":{"anyOf":[{"const":"current","type":"string"},{"const":"pending","type":"string"},{"const":"failed","type":"string"}]}},"required":["deploymentId","desiredVersion","status","resourceBindings","grants","reconciledAt"],"type":"object"},"DeploymentAuthorityMigration":{"properties":{"acknowledgementRequired":{"type":"boolean"},"classification":{"const":"migration","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification","acknowledgementRequired"],"type":"object"},"DeploymentAuthorityNeed":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"DeploymentAuthorityProposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"DeploymentAuthorityReconciliationStatus":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"desiredVersion":{"minLength":1,"type":"string"},"finishedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"message":{"minLength":1,"type":"string"},"startedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"idle","type":"string"},{"const":"running","type":"string"},{"const":"succeeded","type":"string"},{"const":"failed","type":"string"}]}},"required":["deploymentId","desiredVersion","state","startedAt","finishedAt"],"type":"object"},"DeploymentAuthorityResource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"},"DeploymentAuthoritySurface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"DeploymentAuthorityUpdate":{"properties":{"classification":{"const":"update","type":"string"},"createdAt":{"format":"date-time","type":"string"},"decisionAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"decisionBy":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"decisionReason":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"desiredChange":{"type":"object"},"expiresAt":{"format":"date-time","type":"string"},"materializationPreview":{"type":"object"},"planId":{"minLength":1,"type":"string"},"proposal":{"properties":{"contract":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"proposalId":{"minLength":1,"type":"string"},"providedSurfaces":{"items":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"},"type":"array"},"requestedNeeds":{"items":{"anyOf":[{"properties":{"contractId":{"minLength":1,"type":"string"},"kind":{"const":"contract","type":"string"},"required":{"type":"boolean"}},"required":["kind","contractId","required"],"type":"object"},{"properties":{"kind":{"const":"surface","type":"string"},"required":{"type":"boolean"},"surface":{"properties":{"action":{"anyOf":[{"const":"call","type":"string"},{"const":"publish","type":"string"},{"const":"subscribe","type":"string"},{"const":"observe","type":"string"},{"const":"cancel","type":"string"}]},"contractId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"rpc","type":"string"},{"const":"operation","type":"string"},{"const":"event","type":"string"},{"const":"feed","type":"string"}]},"name":{"minLength":1,"type":"string"}},"required":["contractId","kind","name"],"type":"object"}},"required":["kind","surface","required"],"type":"object"},{"properties":{"capability":{"minLength":1,"type":"string"},"kind":{"const":"capability","type":"string"},"required":{"type":"boolean"}},"required":["kind","capability","required"],"type":"object"},{"properties":{"kind":{"const":"resource","type":"string"},"required":{"type":"boolean"},"resource":{"properties":{"alias":{"minLength":1,"type":"string"},"definition":{"type":"object"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"required":{"type":"boolean"}},"required":["kind","alias","required"],"type":"object"}},"required":["kind","resource","required"],"type":"object"}]},"type":"array"},"summary":{"type":"object"}},"required":["deploymentId","contractId","contractDigest","requestedNeeds","providedSurfaces"],"type":"object"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"accepted","type":"string"},{"const":"rejected","type":"string"},{"const":"expired","type":"string"}]},"warnings":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["planId","deploymentId","proposal","desiredChange","materializationPreview","warnings","createdAt","classification"],"type":"object"},"DeploymentPortalRoute":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","portalId","entryUrl","disabled","updatedAt"],"type":"object"},"DeploymentResourceBinding":{"properties":{"alias":{"minLength":1,"type":"string"},"binding":{"patternProperties":{"^.*$":{}},"type":"object"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"kind":{"anyOf":[{"const":"kv","type":"string"},{"const":"store","type":"string"},{"const":"jobs","type":"string"},{"const":"event-consumer","type":"string"},{"const":"transfer","type":"string"}]},"limits":{"anyOf":[{"patternProperties":{"^.*$":{}},"type":"object"},{"type":"null"}]},"updatedAt":{"format":"date-time","type":"string"}},"required":["deploymentId","kind","alias","binding","limits","createdAt","updatedAt"],"type":"object"},"Device":{"properties":{"activatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"metadata":{"patternProperties":{"^.*$":{"minLength":1,"type":"string"}},"type":"object"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"registered","type":"string"},{"const":"activated","type":"string"},{"const":"revoked","type":"string"},{"const":"disabled","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","createdAt","activatedAt","revokedAt"],"type":"object"},"DeviceActivationRecord":{"properties":{"activatedAt":{"format":"date-time","type":"string"},"activatedBy":{"properties":{"identity":{"properties":{"identityId":{"minLength":1,"type":"string"},"provider":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["identityId","provider","subject"],"type":"object"},"participantKind":{"anyOf":[{"const":"app","type":"string"},{"const":"agent","type":"string"}]},"userId":{"minLength":1,"type":"string"}},"required":["participantKind","userId","identity"],"type":"object"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"revokedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"activated","type":"string"},{"const":"revoked","type":"string"}]}},"required":["instanceId","publicIdentityKey","deploymentId","state","activatedAt","revokedAt"],"type":"object"},"DeviceActivationReview":{"properties":{"decidedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"publicIdentityKey":{"minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"},"requestedAt":{"format":"date-time","type":"string"},"reviewId":{"minLength":1,"type":"string"},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"approved","type":"string"},{"const":"rejected","type":"string"}]}},"required":["reviewId","instanceId","publicIdentityKey","deploymentId","state","requestedAt","decidedAt"],"type":"object"},"DeviceConnectInfo":{"properties":{"auth":{"properties":{"authority":{"anyOf":[{"const":"admin_reviewed","type":"string"},{"const":"user_delegated","type":"string"}]},"iatSkewSeconds":{"type":"number"},"mode":{"const":"device_identity","type":"string"}},"required":["mode","authority","iatSkewSeconds"],"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"instanceId":{"minLength":1,"type":"string"},"transport":{"properties":{"sentinel":{"properties":{"jwt":{"type":"string"},"seed":{"type":"string"}},"required":["jwt","seed"],"type":"object"}},"required":["sentinel"],"type":"object"},"transports":{"properties":{"native":{"properties":{"natsServers":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["natsServers"],"type":"object"},"websocket":{"properties":{"natsServers":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["natsServers"],"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","contractId","contractDigest","transports","transport","auth"],"type":"object"},"DeviceDeployment":{"properties":{"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"reviewMode":{"anyOf":[{"const":"none","type":"string"},{"const":"required","type":"string"}]}},"required":["deploymentId","disabled"],"type":"object"},"HealthRequest":{"properties":{},"type":"object"},"HealthResponse":{"properties":{"checks":{"items":{"properties":{"error":{"type":"string"},"info":{"patternProperties":{"^.*$":{}},"type":"object"},"latencyMs":{"type":"number"},"name":{"type":"string"},"status":{"anyOf":[{"const":"ok","type":"string"},{"const":"failed","type":"string"}]},"summary":{"type":"string"}},"required":["name","status","latencyMs"],"type":"object"},"type":"array"},"service":{"type":"string"},"status":{"anyOf":[{"const":"healthy","type":"string"},{"const":"unhealthy","type":"string"},{"const":"degraded","type":"string"}]},"timestamp":{"format":"date-time","type":"string"}},"required":["status","service","timestamp","checks"],"type":"object"},"ImplementationOffer":{"properties":{"acceptedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"deploymentId":{"minLength":1,"type":"string"},"deploymentKind":{"anyOf":[{"const":"service","type":"string"},{"const":"device","type":"string"}]},"expiresAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"firstOfferedAt":{"format":"date-time","type":"string"},"instanceId":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"lastRefreshedAt":{"format":"date-time","type":"string"},"lineageKey":{"minLength":1,"type":"string"},"liveness":{"anyOf":[{"const":"unknown","type":"string"},{"const":"healthy","type":"string"},{"const":"unhealthy","type":"string"},{"const":"disconnected","type":"string"}]},"offerId":{"minLength":1,"type":"string"},"staleAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"offered","type":"string"},{"const":"accepted","type":"string"},{"const":"stale","type":"string"},{"const":"expired","type":"string"},{"const":"withdrawn","type":"string"}]}},"required":["offerId","deploymentKind","deploymentId","instanceId","contractId","contractDigest","lineageKey","status","liveness","firstOfferedAt","acceptedAt","lastRefreshedAt","staleAt","expiresAt"],"type":"object"},"PortalFlowState":{"anyOf":[{"properties":{"app":{"properties":{"context":{"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"}},"required":["contractId","contractDigest","displayName","description"],"type":"object"},"flowId":{"minLength":1,"type":"string"},"portal":{"properties":{"builtIn":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"disabled":{"type":"boolean"},"displayName":{"minLength":1,"type":"string"},"entryUrl":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"portalId":{"minLength":1,"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["portalId","displayName","entryUrl","builtIn","disabled","createdAt","updatedAt"],"type":"object"},"providers":{"items":{"properties":{"displayName":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"}},"required":["id","displayName"],"type":"object"},"type":"array"},"registration":{"properties":{"federatedIdentity":{"properties":{"available":{"type":"boolean"},"providers":{"items":{"properties":{"displayName":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"}},"required":["id","displayName"],"type":"object"},"type":"array"}},"required":["available","providers"],"type":"object"},"localIdentity":{"properties":{"available":{"type":"boolean"}},"required":["available"],"type":"object"}},"required":["localIdentity","federatedIdentity"],"type":"object"},"status":{"const":"choose_provider","type":"string"}},"required":["status","flowId","providers","app"],"type":"object"},{"properties":{"approval":{"properties":{"capabilities":{"patternProperties":{"^.*$":{"properties":{"consequence":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"}},"required":["displayName","description"],"type":"object"}},"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"}},"required":["contractDigest","contractId","displayName","description","capabilities"],"type":"object"},"flowId":{"minLength":1,"type":"string"},"status":{"const":"approval_required","type":"string"},"user":{"properties":{"email":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"},"image":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"origin":{"minLength":1,"type":"string"}},"required":["origin","id"],"type":"object"}},"required":["status","flowId","user","approval"],"type":"object"},{"properties":{"approval":{"properties":{"capabilities":{"patternProperties":{"^.*$":{"properties":{"consequence":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"}},"required":["displayName","description"],"type":"object"}},"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"}},"required":["contractDigest","contractId","displayName","description","capabilities"],"type":"object"},"flowId":{"minLength":1,"type":"string"},"returnLocation":{"minLength":1,"type":"string"},"status":{"const":"approval_denied","type":"string"}},"required":["status","flowId","approval"],"type":"object"},{"properties":{"approval":{"properties":{"capabilities":{"patternProperties":{"^.*$":{"properties":{"consequence":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"}},"required":["displayName","description"],"type":"object"}},"type":"object"},"contractDigest":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"contractId":{"minLength":1,"type":"string"},"description":{"minLength":1,"type":"string"},"displayName":{"minLength":1,"type":"string"}},"required":["contractDigest","contractId","displayName","description","capabilities"],"type":"object"},"flowId":{"minLength":1,"type":"string"},"missingCapabilities":{"items":{"type":"string"},"type":"array"},"returnLocation":{"minLength":1,"type":"string"},"status":{"const":"insufficient_capabilities","type":"string"},"user":{"properties":{"id":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"origin":{"minLength":1,"type":"string"}},"required":["origin","id"],"type":"object"},"userCapabilities":{"items":{"type":"string"},"type":"array"}},"required":["status","flowId","approval","missingCapabilities","userCapabilities"],"type":"object"},{"properties":{"location":{"minLength":1,"type":"string"},"status":{"const":"redirect","type":"string"}},"required":["status","location"],"type":"object"},{"properties":{"status":{"const":"expired","type":"string"}},"required":["status"],"type":"object"}]},"ServiceDeployment":{"properties":{"contractCompatibilityMode":{"anyOf":[{"const":"strict","type":"string"},{"const":"mutable-dev","type":"string"}]},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"namespaces":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["deploymentId","namespaces","disabled"],"type":"object"},"ServiceInstance":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"deploymentId":{"minLength":1,"type":"string"},"disabled":{"type":"boolean"},"instanceId":{"minLength":1,"type":"string"},"instanceKey":{"minLength":1,"type":"string"},"resourceBindings":{"properties":{"eventConsumers":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"filterSubjects":{"items":{"minLength":1,"type":"string"},"type":"array"},"maxDeliver":{"minimum":1,"type":"integer"},"ordering":{"const":"strict","type":"string"},"replay":{"anyOf":[{"const":"new","type":"string"},{"const":"all","type":"string"}]},"stream":{"minLength":1,"type":"string"}},"required":["stream","consumerName","filterSubjects","replay","ordering","concurrency","ackWaitMs","maxDeliver","backoffMs"],"type":"object"}},"type":"object"},"jobs":{"properties":{"namespace":{"minLength":1,"type":"string"},"queues":{"patternProperties":{"^.*$":{"properties":{"ackWaitMs":{"minimum":1,"type":"integer"},"backoffMs":{"items":{"minimum":0,"type":"integer"},"type":"array"},"concurrency":{"minimum":1,"type":"integer"},"consumerName":{"minLength":1,"type":"string"},"defaultDeadlineMs":{"minimum":1,"type":"integer"},"dlq":{"type":"boolean"},"logs":{"type":"boolean"},"maxDeliver":{"minimum":1,"type":"integer"},"payload":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"progress":{"type":"boolean"},"publishPrefix":{"minLength":1,"type":"string"},"queueType":{"minLength":1,"type":"string"},"result":{"properties":{"schema":{"minLength":1,"type":"string"}},"required":["schema"],"type":"object"},"workSubject":{"minLength":1,"type":"string"}},"required":["queueType","publishPrefix","workSubject","consumerName","payload","maxDeliver","backoffMs","ackWaitMs","progress","logs","dlq","concurrency"],"type":"object"}},"type":"object"},"workStream":{"minLength":1,"type":"string"}},"required":["namespace","queues"],"type":"object"},"kv":{"patternProperties":{"^.*$":{"properties":{"bucket":{"minLength":1,"type":"string"},"history":{"minimum":1,"type":"integer"},"maxValueBytes":{"minimum":1,"type":"integer"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["bucket","history","ttlMs"],"type":"object"}},"type":"object"},"store":{"patternProperties":{"^.*$":{"properties":{"maxObjectBytes":{"minimum":1,"type":"integer"},"maxTotalBytes":{"minimum":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"ttlMs":{"minimum":0,"type":"integer"}},"required":["name","ttlMs"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["instanceId","deploymentId","instanceKey","disabled","capabilities","createdAt"],"type":"object"}},"uses":{"required":{"health":{"contract":"trellis.health@v1","events":{"publish":["Health.Heartbeat"]}}}}} as TrellisContractV1;
10
10
 
11
11
  function assertSelectedKeysExist(
12
12
  kind: "rpc" | "operations" | "events" | "feeds",