@qlever-llc/trellis 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/contracts/mod.d.ts +4 -0
- package/esm/contracts/mod.d.ts.map +1 -1
- package/esm/contracts/mod.js +2 -0
- package/esm/trellis/_sdk/activity/contract.d.ts +1 -1
- package/esm/trellis/_sdk/activity/contract.d.ts.map +1 -1
- package/esm/trellis/_sdk/activity/contract.js +2 -2
- package/esm/trellis/_sdk/activity/types.d.ts +1 -1
- package/esm/trellis/_sdk/activity/types.js +1 -1
- package/esm/trellis/_sdk/auth/contract.d.ts +1 -1
- package/esm/trellis/_sdk/auth/contract.d.ts.map +1 -1
- package/esm/trellis/_sdk/auth/contract.js +2 -2
- package/esm/trellis/_sdk/auth/types.d.ts +1 -1
- package/esm/trellis/_sdk/auth/types.js +1 -1
- package/esm/trellis/_sdk/core/contract.d.ts +1 -1
- package/esm/trellis/_sdk/core/contract.d.ts.map +1 -1
- package/esm/trellis/_sdk/core/contract.js +2 -2
- package/esm/trellis/_sdk/core/types.d.ts +1 -1
- package/esm/trellis/_sdk/core/types.js +1 -1
- package/package.json +3 -3
- package/script/contracts/mod.d.ts +4 -0
- package/script/contracts/mod.d.ts.map +1 -1
- package/script/contracts/mod.js +2 -0
- package/script/trellis/_sdk/activity/contract.d.ts +1 -1
- package/script/trellis/_sdk/activity/contract.d.ts.map +1 -1
- package/script/trellis/_sdk/activity/contract.js +2 -2
- package/script/trellis/_sdk/activity/types.d.ts +1 -1
- package/script/trellis/_sdk/activity/types.js +1 -1
- package/script/trellis/_sdk/auth/contract.d.ts +1 -1
- package/script/trellis/_sdk/auth/contract.d.ts.map +1 -1
- package/script/trellis/_sdk/auth/contract.js +2 -2
- package/script/trellis/_sdk/auth/types.d.ts +1 -1
- package/script/trellis/_sdk/auth/types.js +1 -1
- package/script/trellis/_sdk/core/contract.d.ts +1 -1
- package/script/trellis/_sdk/core/contract.d.ts.map +1 -1
- package/script/trellis/_sdk/core/contract.js +2 -2
- package/script/trellis/_sdk/core/types.d.ts +1 -1
- package/script/trellis/_sdk/core/types.js +1 -1
|
@@ -4,8 +4,8 @@ exports.useDefaults = exports.use = exports.auth = exports.CONTRACT = exports.CO
|
|
|
4
4
|
const api_js_1 = require("./api.js");
|
|
5
5
|
const CONTRACT_MODULE_METADATA = Symbol.for("../../../contracts/mod.js/contract-module");
|
|
6
6
|
exports.CONTRACT_ID = "trellis.auth@v1";
|
|
7
|
-
exports.CONTRACT_DIGEST = "
|
|
8
|
-
exports.CONTRACT = { "description": "Provide Trellis authentication, session, service install, and admin RPCs.", "displayName": "Trellis Auth", "events": { "Auth.Connect": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthConnectEvent" }, "subject": "events.v1.Auth.Connect", "version": "v1" }, "Auth.ConnectionKicked": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthConnectionKickedEvent" }, "subject": "events.v1.Auth.ConnectionKicked", "version": "v1" }, "Auth.Disconnect": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthDisconnectEvent" }, "subject": "events.v1.Auth.Disconnect", "version": "v1" }, "Auth.SessionRevoked": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthSessionRevokedEvent" }, "subject": "events.v1.Auth.SessionRevoked", "version": "v1" }, "Auth.WorkloadActivationReviewRequested": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["workload.review"] }, "event": { "schema": "AuthWorkloadActivationReviewRequestedEvent" }, "subject": "events.v1.Auth.WorkloadActivationReviewRequested", "version": "v1" } }, "format": "trellis.contract.v1", "id": "trellis.auth@v1", "operations": {}, "rpc": { "Auth.ActivateWorkload": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthActivateWorkloadRequest" }, "output": { "schema": "AuthActivateWorkloadResponse" }, "subject": "rpc.v1.Auth.ActivateWorkload", "version": "v1" }, "Auth.ClearLoginPortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthClearLoginPortalSelectionRequest" }, "output": { "schema": "AuthClearLoginPortalSelectionResponse" }, "subject": "rpc.v1.Auth.ClearLoginPortalSelection", "version": "v1" }, "Auth.ClearWorkloadPortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthClearWorkloadPortalSelectionRequest" }, "output": { "schema": "AuthClearWorkloadPortalSelectionResponse" }, "subject": "rpc.v1.Auth.ClearWorkloadPortalSelection", "version": "v1" }, "Auth.CreatePortal": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthCreatePortalRequest" }, "output": { "schema": "AuthCreatePortalResponse" }, "subject": "rpc.v1.Auth.CreatePortal", "version": "v1" }, "Auth.CreateWorkloadProfile": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthCreateWorkloadProfileRequest" }, "output": { "schema": "AuthCreateWorkloadProfileResponse" }, "subject": "rpc.v1.Auth.CreateWorkloadProfile", "version": "v1" }, "Auth.DecideWorkloadActivationReview": { "capabilities": { "call": ["admin", "workload.review"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthDecideWorkloadActivationReviewRequest" }, "output": { "schema": "AuthDecideWorkloadActivationReviewResponse" }, "subject": "rpc.v1.Auth.DecideWorkloadActivationReview", "version": "v1" }, "Auth.DisablePortal": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthDisablePortalRequest" }, "output": { "schema": "AuthDisablePortalResponse" }, "subject": "rpc.v1.Auth.DisablePortal", "version": "v1" }, "Auth.DisableWorkloadInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthDisableWorkloadInstanceRequest" }, "output": { "schema": "AuthDisableWorkloadInstanceResponse" }, "subject": "rpc.v1.Auth.DisableWorkloadInstance", "version": "v1" }, "Auth.DisableWorkloadProfile": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthDisableWorkloadProfileRequest" }, "output": { "schema": "AuthDisableWorkloadProfileResponse" }, "subject": "rpc.v1.Auth.DisableWorkloadProfile", "version": "v1" }, "Auth.GetInstalledContract": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthGetInstalledContractRequest" }, "output": { "schema": "AuthGetInstalledContractResponse" }, "subject": "rpc.v1.Auth.GetInstalledContract", "version": "v1" }, "Auth.GetLoginPortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthGetLoginPortalDefaultRequest" }, "output": { "schema": "AuthGetLoginPortalDefaultResponse" }, "subject": "rpc.v1.Auth.GetLoginPortalDefault", "version": "v1" }, "Auth.GetWorkloadActivationStatus": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthGetWorkloadActivationStatusRequest" }, "output": { "schema": "AuthGetWorkloadActivationStatusResponse" }, "subject": "rpc.v1.Auth.GetWorkloadActivationStatus", "version": "v1" }, "Auth.GetWorkloadConnectInfo": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthGetWorkloadConnectInfoRequest" }, "output": { "schema": "AuthGetWorkloadConnectInfoResponse" }, "subject": "rpc.v1.Auth.GetWorkloadConnectInfo", "version": "v1" }, "Auth.GetWorkloadPortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthGetWorkloadPortalDefaultRequest" }, "output": { "schema": "AuthGetWorkloadPortalDefaultResponse" }, "subject": "rpc.v1.Auth.GetWorkloadPortalDefault", "version": "v1" }, "Auth.Health": { "capabilities": { "call": [] }, "errors": [{ "type": "UnexpectedError" }], "input": { "schema": "HealthRequest" }, "output": { "schema": "HealthResponse" }, "subject": "rpc.v1.Auth.Health", "version": "v1" }, "Auth.InstallService": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthInstallServiceRequest" }, "output": { "schema": "AuthInstallServiceResponse" }, "subject": "rpc.v1.Auth.InstallService", "version": "v1" }, "Auth.KickConnection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthKickConnectionRequest" }, "output": { "schema": "AuthKickConnectionResponse" }, "subject": "rpc.v1.Auth.KickConnection", "version": "v1" }, "Auth.ListApprovals": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListApprovalsRequest" }, "output": { "schema": "AuthListApprovalsResponse" }, "subject": "rpc.v1.Auth.ListApprovals", "version": "v1" }, "Auth.ListConnections": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListConnectionsRequest" }, "output": { "schema": "AuthListConnectionsResponse" }, "subject": "rpc.v1.Auth.ListConnections", "version": "v1" }, "Auth.ListInstalledContracts": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListInstalledContractsRequest" }, "output": { "schema": "AuthListInstalledContractsResponse" }, "subject": "rpc.v1.Auth.ListInstalledContracts", "version": "v1" }, "Auth.ListLoginPortalSelections": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListLoginPortalSelectionsRequest" }, "output": { "schema": "AuthListLoginPortalSelectionsResponse" }, "subject": "rpc.v1.Auth.ListLoginPortalSelections", "version": "v1" }, "Auth.ListPortals": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListPortalsRequest" }, "output": { "schema": "AuthListPortalsResponse" }, "subject": "rpc.v1.Auth.ListPortals", "version": "v1" }, "Auth.ListServices": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListServicesRequest" }, "output": { "schema": "AuthListServicesResponse" }, "subject": "rpc.v1.Auth.ListServices", "version": "v1" }, "Auth.ListSessions": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListSessionsRequest" }, "output": { "schema": "AuthListSessionsResponse" }, "subject": "rpc.v1.Auth.ListSessions", "version": "v1" }, "Auth.ListUsers": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListUsersRequest" }, "output": { "schema": "AuthListUsersResponse" }, "subject": "rpc.v1.Auth.ListUsers", "version": "v1" }, "Auth.ListWorkloadActivationReviews": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListWorkloadActivationReviewsRequest" }, "output": { "schema": "AuthListWorkloadActivationReviewsResponse" }, "subject": "rpc.v1.Auth.ListWorkloadActivationReviews", "version": "v1" }, "Auth.ListWorkloadActivations": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListWorkloadActivationsRequest" }, "output": { "schema": "AuthListWorkloadActivationsResponse" }, "subject": "rpc.v1.Auth.ListWorkloadActivations", "version": "v1" }, "Auth.ListWorkloadInstances": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListWorkloadInstancesRequest" }, "output": { "schema": "AuthListWorkloadInstancesResponse" }, "subject": "rpc.v1.Auth.ListWorkloadInstances", "version": "v1" }, "Auth.ListWorkloadPortalSelections": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListWorkloadPortalSelectionsRequest" }, "output": { "schema": "AuthListWorkloadPortalSelectionsResponse" }, "subject": "rpc.v1.Auth.ListWorkloadPortalSelections", "version": "v1" }, "Auth.ListWorkloadProfiles": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListWorkloadProfilesRequest" }, "output": { "schema": "AuthListWorkloadProfilesResponse" }, "subject": "rpc.v1.Auth.ListWorkloadProfiles", "version": "v1" }, "Auth.Logout": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthLogoutRequest" }, "output": { "schema": "AuthLogoutResponse" }, "subject": "rpc.v1.Auth.Logout", "version": "v1" }, "Auth.Me": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthMeRequest" }, "output": { "schema": "AuthMeResponse" }, "subject": "rpc.v1.Auth.Me", "version": "v1" }, "Auth.ProvisionWorkloadInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthProvisionWorkloadInstanceRequest" }, "output": { "schema": "AuthProvisionWorkloadInstanceResponse" }, "subject": "rpc.v1.Auth.ProvisionWorkloadInstance", "version": "v1" }, "Auth.RenewBindingToken": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthRenewBindingTokenRequest" }, "output": { "schema": "AuthRenewBindingTokenResponse" }, "subject": "rpc.v1.Auth.RenewBindingToken", "version": "v1" }, "Auth.RevokeApproval": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthRevokeApprovalRequest" }, "output": { "schema": "AuthRevokeApprovalResponse" }, "subject": "rpc.v1.Auth.RevokeApproval", "version": "v1" }, "Auth.RevokeSession": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthRevokeSessionRequest" }, "output": { "schema": "AuthRevokeSessionResponse" }, "subject": "rpc.v1.Auth.RevokeSession", "version": "v1" }, "Auth.RevokeWorkloadActivation": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthRevokeWorkloadActivationRequest" }, "output": { "schema": "AuthRevokeWorkloadActivationResponse" }, "subject": "rpc.v1.Auth.RevokeWorkloadActivation", "version": "v1" }, "Auth.SetLoginPortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthSetLoginPortalDefaultRequest" }, "output": { "schema": "AuthSetLoginPortalDefaultResponse" }, "subject": "rpc.v1.Auth.SetLoginPortalDefault", "version": "v1" }, "Auth.SetLoginPortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthSetLoginPortalSelectionRequest" }, "output": { "schema": "AuthSetLoginPortalSelectionResponse" }, "subject": "rpc.v1.Auth.SetLoginPortalSelection", "version": "v1" }, "Auth.SetWorkloadPortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthSetWorkloadPortalDefaultRequest" }, "output": { "schema": "AuthSetWorkloadPortalDefaultResponse" }, "subject": "rpc.v1.Auth.SetWorkloadPortalDefault", "version": "v1" }, "Auth.SetWorkloadPortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthSetWorkloadPortalSelectionRequest" }, "output": { "schema": "AuthSetWorkloadPortalSelectionResponse" }, "subject": "rpc.v1.Auth.SetWorkloadPortalSelection", "version": "v1" }, "Auth.UpdateUser": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthUpdateUserRequest" }, "output": { "schema": "AuthUpdateUserResponse" }, "subject": "rpc.v1.Auth.UpdateUser", "version": "v1" }, "Auth.UpgradeServiceContract": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthUpgradeServiceContractRequest" }, "output": { "schema": "AuthUpgradeServiceContractResponse" }, "subject": "rpc.v1.Auth.UpgradeServiceContract", "version": "v1" }, "Auth.ValidateRequest": { "capabilities": { "call": ["service"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthValidateRequestRequest" }, "output": { "schema": "AuthValidateRequestResponse" }, "subject": "rpc.v1.Auth.ValidateRequest", "version": "v1" } }, "schemas": { "AuthActivateWorkloadRequest": { "additionalProperties": false, "properties": { "handoffId": { "minLength": 1, "type": "string" } }, "required": ["handoffId"], "type": "object" }, "AuthActivateWorkloadResponse": { "anyOf": [{ "additionalProperties": false, "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "confirmationCode": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "status": { "const": "activated", "type": "string" } }, "required": ["status", "instanceId", "profileId", "activatedAt"], "type": "object" }, { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "requestedAt"], "type": "object" }, { "additionalProperties": false, "properties": { "reason": { "minLength": 1, "type": "string" }, "status": { "const": "rejected", "type": "string" } }, "required": ["status"], "type": "object" }] }, "AuthClearLoginPortalSelectionRequest": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId"], "type": "object" }, "AuthClearLoginPortalSelectionResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthClearWorkloadPortalSelectionRequest": { "additionalProperties": false, "properties": { "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId"], "type": "object" }, "AuthClearWorkloadPortalSelectionResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthConnectEvent": { "allOf": [{ "properties": { "header": { "additionalProperties": false, "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" }] }, "AuthConnectionKickedEvent": { "allOf": [{ "properties": { "header": { "additionalProperties": false, "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" }] }, "AuthCreatePortalRequest": { "additionalProperties": false, "properties": { "appContractId": { "minLength": 1, "type": "string" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl"], "type": "object" }, "AuthCreatePortalResponse": { "additionalProperties": false, "properties": { "portal": { "additionalProperties": false, "properties": { "appContractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl", "disabled"], "type": "object" } }, "required": ["portal"], "type": "object" }, "AuthCreateWorkloadProfileRequest": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contract": { "additionalProperties": true, "properties": {}, "type": "object" }, "contractId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["profileId", "contractId", "allowedDigests"], "type": "object" }, "AuthCreateWorkloadProfileResponse": { "additionalProperties": false, "properties": { "profile": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "profileId": { "minLength": 1, "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["profileId", "contractId", "allowedDigests", "disabled"], "type": "object" } }, "required": ["profile"], "type": "object" }, "AuthDecideWorkloadActivationReviewRequest": { "additionalProperties": false, "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" }, "AuthDecideWorkloadActivationReviewResponse": { "additionalProperties": false, "properties": { "activation": { "additionalProperties": false, "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "additionalProperties": false, "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "activatedAt", "revokedAt"], "type": "object" }, "confirmationCode": { "minLength": 1, "type": "string" }, "review": { "additionalProperties": false, "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "requestedAt", "decidedAt"], "type": "object" } }, "required": ["review"], "type": "object" }, "AuthDisablePortalRequest": { "additionalProperties": false, "properties": { "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId"], "type": "object" }, "AuthDisablePortalResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthDisableWorkloadInstanceRequest": { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthDisableWorkloadInstanceResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthDisableWorkloadProfileRequest": { "additionalProperties": false, "properties": { "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId"], "type": "object" }, "AuthDisableWorkloadProfileResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthDisconnectEvent": { "allOf": [{ "properties": { "header": { "additionalProperties": false, "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" }] }, "AuthGetInstalledContractRequest": { "additionalProperties": false, "properties": { "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, "required": ["digest"], "type": "object" }, "AuthGetInstalledContractResponse": { "additionalProperties": false, "properties": { "contract": { "additionalProperties": false, "properties": { "analysis": { "additionalProperties": false, "properties": { "events": { "additionalProperties": false, "properties": { "events": { "items": { "additionalProperties": false, "properties": { "key": { "type": "string" }, "publishCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "subscribeCapabilities": { "items": { "type": "string" }, "type": "array" }, "wildcardSubject": { "type": "string" } }, "required": ["key", "subject", "wildcardSubject", "publishCapabilities", "subscribeCapabilities"], "type": "object" }, "type": "array" } }, "required": ["events"], "type": "object" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "nats": { "additionalProperties": false, "properties": { "publish": { "items": { "additionalProperties": false, "properties": { "kind": { "type": "string" }, "requiredCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["kind", "subject", "wildcardSubject", "requiredCapabilities"], "type": "object" }, "type": "array" }, "subscribe": { "items": { "additionalProperties": false, "properties": { "kind": { "type": "string" }, "requiredCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["kind", "subject", "wildcardSubject", "requiredCapabilities"], "type": "object" }, "type": "array" } }, "required": ["publish", "subscribe"], "type": "object" }, "resources": { "additionalProperties": false, "properties": { "jobs": { "items": { "additionalProperties": false, "properties": { "ackWaitMs": { "type": "number" }, "backoffMs": { "items": { "type": "number" }, "type": "array" }, "concurrency": { "type": "number" }, "defaultDeadlineMs": { "type": "number" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "type": "number" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" } }, "required": ["queueType", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" }, "type": "array" }, "kv": { "items": { "additionalProperties": false, "properties": { "alias": { "minLength": 1, "type": "string" }, "history": { "type": "number" }, "maxValueBytes": { "type": "number" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" }, "ttlMs": { "type": "number" } }, "required": ["alias", "purpose", "required", "history", "ttlMs"], "type": "object" }, "type": "array" }, "streams": { "items": { "additionalProperties": false, "properties": { "alias": { "minLength": 1, "type": "string" }, "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "type": "number" }, "maxBytes": { "type": "number" }, "maxMsgs": { "type": "number" }, "numReplicas": { "type": "number" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["alias", "purpose", "required", "subjects"], "type": "object" }, "type": "array" } }, "required": ["kv", "jobs", "streams"], "type": "object" }, "rpc": { "additionalProperties": false, "properties": { "methods": { "items": { "additionalProperties": false, "properties": { "callerCapabilities": { "items": { "type": "string" }, "type": "array" }, "key": { "type": "string" }, "subject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["key", "subject", "wildcardSubject", "callerCapabilities"], "type": "object" }, "type": "array" } }, "required": ["methods"], "type": "object" }, "subjects": { "additionalProperties": false, "properties": { "subjects": { "items": { "additionalProperties": false, "properties": { "key": { "type": "string" }, "publishCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "subscribeCapabilities": { "items": { "type": "string" }, "type": "array" } }, "required": ["key", "subject", "publishCapabilities", "subscribeCapabilities"], "type": "object" }, "type": "array" } }, "required": ["subjects"], "type": "object" } }, "required": ["namespaces", "rpc", "events", "nats", "resources"], "type": "object" }, "analysisSummary": { "additionalProperties": false, "properties": { "events": { "type": "number" }, "jobsQueues": { "type": "number" }, "kvResources": { "type": "number" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "natsPublish": { "type": "number" }, "natsSubscribe": { "type": "number" }, "rpcMethods": { "type": "number" }, "streamResources": { "type": "number" } }, "required": ["namespaces", "rpcMethods", "events", "natsPublish", "natsSubscribe", "kvResources", "jobsQueues", "streamResources"], "type": "object" }, "contract": { "type": "object" }, "description": { "minLength": 1, "type": "string" }, "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "installedAt": { "format": "date-time", "type": "string" }, "resourceBindings": { "properties": { "jobs": { "additionalProperties": false, "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "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": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "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" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "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" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "numReplicas": { "minimum": 1, "type": "integer" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["name", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "resources": { "properties": { "jobs": { "additionalProperties": false, "properties": { "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" } }, "required": ["payload"], "type": "object" } }, "type": "object" } }, "required": ["queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "history": { "default": 1, "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "default": true, "type": "boolean" }, "ttlMs": { "default": 0, "minimum": 0, "type": "integer" } }, "required": ["purpose"], "type": "object" } }, "type": "object" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "numReplicas": { "minimum": 1, "type": "integer" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "default": true, "type": "boolean" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["purpose", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["digest", "id", "displayName", "description", "installedAt", "contract"], "type": "object" } }, "required": ["contract"], "type": "object" }, "AuthGetLoginPortalDefaultRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthGetLoginPortalDefaultResponse": { "additionalProperties": false, "properties": { "defaultPortal": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthGetWorkloadActivationStatusRequest": { "additionalProperties": false, "properties": { "handoffId": { "minLength": 1, "type": "string" } }, "required": ["handoffId"], "type": "object" }, "AuthGetWorkloadActivationStatusResponse": { "anyOf": [{ "additionalProperties": false, "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "confirmationCode": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "status": { "const": "activated", "type": "string" } }, "required": ["status", "instanceId", "profileId", "activatedAt"], "type": "object" }, { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "requestedAt"], "type": "object" }, { "additionalProperties": false, "properties": { "reason": { "minLength": 1, "type": "string" }, "status": { "const": "rejected", "type": "string" } }, "required": ["status"], "type": "object" }] }, "AuthGetWorkloadConnectInfoRequest": { "additionalProperties": false, "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" }, "AuthGetWorkloadConnectInfoResponse": { "additionalProperties": false, "properties": { "connectInfo": { "additionalProperties": false, "properties": { "auth": { "additionalProperties": false, "properties": { "iatSkewSeconds": { "type": "number" }, "mode": { "const": "workload_identity", "type": "string" } }, "required": ["mode", "iatSkewSeconds"], "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "transport": { "additionalProperties": false, "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "sentinel": { "additionalProperties": false, "properties": { "jwt": { "minLength": 1, "type": "string" }, "seed": { "minLength": 1, "type": "string" } }, "required": ["jwt", "seed"], "type": "object" } }, "required": ["natsServers", "sentinel"], "type": "object" } }, "required": ["instanceId", "profileId", "contractId", "contractDigest", "transport", "auth"], "type": "object" }, "status": { "const": "ready", "type": "string" } }, "required": ["status", "connectInfo"], "type": "object" }, "AuthGetWorkloadPortalDefaultRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthGetWorkloadPortalDefaultResponse": { "additionalProperties": false, "properties": { "defaultPortal": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthInstallServiceRequest": { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "contract": { "type": "object" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "sessionKey": { "type": "string" } }, "required": ["sessionKey", "displayName", "namespaces", "description", "contract"], "type": "object" }, "AuthInstallServiceResponse": { "additionalProperties": false, "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "additionalProperties": false, "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "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": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "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" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "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" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "numReplicas": { "minimum": 1, "type": "integer" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["name", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "sessionKey": { "type": "string" }, "success": { "type": "boolean" } }, "required": ["success", "sessionKey", "contractId", "contractDigest", "resourceBindings"], "type": "object" }, "AuthKickConnectionRequest": { "additionalProperties": false, "properties": { "userNkey": { "type": "string" } }, "required": ["userNkey"], "type": "object" }, "AuthKickConnectionResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthListApprovalsRequest": { "additionalProperties": false, "properties": { "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "type": "object" }, "AuthListApprovalsResponse": { "additionalProperties": false, "properties": { "approvals": { "items": { "additionalProperties": false, "properties": { "answer": { "anyOf": [{ "const": "approved", "type": "string" }, { "const": "denied", "type": "string" }] }, "answeredAt": { "format": "date-time", "type": "string" }, "approval": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "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" }, "updatedAt": { "format": "date-time", "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "required": ["user", "answer", "answeredAt", "updatedAt", "approval"], "type": "object" }, "type": "array" } }, "required": ["approvals"], "type": "object" }, "AuthListConnectionsRequest": { "additionalProperties": false, "properties": { "sessionKey": { "type": "string" }, "user": { "type": "string" } }, "type": "object" }, "AuthListConnectionsResponse": { "additionalProperties": false, "properties": { "connections": { "items": { "additionalProperties": false, "properties": { "clientId": { "type": "number" }, "connectedAt": { "type": "string" }, "key": { "type": "string" }, "serverId": { "type": "string" } }, "required": ["key", "serverId", "clientId", "connectedAt"], "type": "object" }, "type": "array" } }, "required": ["connections"], "type": "object" }, "AuthListInstalledContractsRequest": { "additionalProperties": false, "properties": { "sessionKey": { "type": "string" } }, "type": "object" }, "AuthListInstalledContractsResponse": { "additionalProperties": false, "properties": { "contracts": { "items": { "additionalProperties": false, "properties": { "analysisSummary": { "additionalProperties": false, "properties": { "events": { "type": "number" }, "jobsQueues": { "type": "number" }, "kvResources": { "type": "number" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "natsPublish": { "type": "number" }, "natsSubscribe": { "type": "number" }, "rpcMethods": { "type": "number" }, "streamResources": { "type": "number" } }, "required": ["namespaces", "rpcMethods", "events", "natsPublish", "natsSubscribe", "kvResources", "jobsQueues", "streamResources"], "type": "object" }, "description": { "minLength": 1, "type": "string" }, "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "installedAt": { "format": "date-time", "type": "string" }, "resourceBindings": { "properties": { "jobs": { "additionalProperties": false, "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "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": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "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" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "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" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "numReplicas": { "minimum": 1, "type": "integer" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["name", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["digest", "id", "displayName", "description", "installedAt"], "type": "object" }, "type": "array" } }, "required": ["contracts"], "type": "object" }, "AuthListLoginPortalSelectionsRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthListLoginPortalSelectionsResponse": { "additionalProperties": false, "properties": { "selections": { "items": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" }, "type": "array" } }, "required": ["selections"], "type": "object" }, "AuthListPortalsRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthListPortalsResponse": { "additionalProperties": false, "properties": { "portals": { "items": { "additionalProperties": false, "properties": { "appContractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl", "disabled"], "type": "object" }, "type": "array" } }, "required": ["portals"], "type": "object" }, "AuthListServicesRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthListServicesResponse": { "additionalProperties": false, "properties": { "services": { "items": { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "description": { "type": "string" }, "displayName": { "type": "string" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "resourceBindings": { "properties": { "jobs": { "additionalProperties": false, "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "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": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "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" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "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" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "numReplicas": { "minimum": 1, "type": "integer" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["name", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["sessionKey", "displayName", "active", "capabilities", "namespaces", "description", "createdAt"], "type": "object" }, "type": "array" } }, "required": ["services"], "type": "object" }, "AuthListSessionsRequest": { "additionalProperties": false, "properties": { "user": { "type": "string" } }, "type": "object" }, "AuthListSessionsResponse": { "additionalProperties": false, "properties": { "sessions": { "items": { "additionalProperties": false, "properties": { "createdAt": { "type": "string" }, "key": { "type": "string" }, "lastAuth": { "type": "string" }, "type": { "anyOf": [{ "const": "user", "type": "string" }, { "const": "service", "type": "string" }, { "const": "workload", "type": "string" }] } }, "required": ["key", "type", "createdAt", "lastAuth"], "type": "object" }, "type": "array" } }, "required": ["sessions"], "type": "object" }, "AuthListUsersRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthListUsersResponse": { "additionalProperties": false, "properties": { "users": { "items": { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" } }, "required": ["origin", "id", "active", "capabilities"], "type": "object" }, "type": "array" } }, "required": ["users"], "type": "object" }, "AuthListWorkloadActivationReviewsRequest": { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "type": "object" }, "AuthListWorkloadActivationReviewsResponse": { "additionalProperties": false, "properties": { "reviews": { "items": { "additionalProperties": false, "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "requestedAt", "decidedAt"], "type": "object" }, "type": "array" } }, "required": ["reviews"], "type": "object" }, "AuthListWorkloadActivationsRequest": { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }] } }, "type": "object" }, "AuthListWorkloadActivationsResponse": { "additionalProperties": false, "properties": { "activations": { "items": { "additionalProperties": false, "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "additionalProperties": false, "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "activatedAt", "revokedAt"], "type": "object" }, "type": "array" } }, "required": ["activations"], "type": "object" }, "AuthListWorkloadInstancesRequest": { "additionalProperties": false, "properties": { "profileId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "type": "object" }, "AuthListWorkloadInstancesResponse": { "additionalProperties": false, "properties": { "instances": { "items": { "additionalProperties": false, "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "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", "profileId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" }, "type": "array" } }, "required": ["instances"], "type": "object" }, "AuthListWorkloadPortalSelectionsRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthListWorkloadPortalSelectionsResponse": { "additionalProperties": false, "properties": { "selections": { "items": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId", "portalId"], "type": "object" }, "type": "array" } }, "required": ["selections"], "type": "object" }, "AuthListWorkloadProfilesRequest": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" } }, "type": "object" }, "AuthListWorkloadProfilesResponse": { "additionalProperties": false, "properties": { "profiles": { "items": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "profileId": { "minLength": 1, "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["profileId", "contractId", "allowedDigests", "disabled"], "type": "object" }, "type": "array" } }, "required": ["profiles"], "type": "object" }, "AuthLogoutRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthLogoutResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthMeRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthMeResponse": { "additionalProperties": false, "properties": { "service": { "anyOf": [{ "additionalProperties": false, "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": [{ "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "id": { "type": "string" }, "image": { "type": "string" }, "lastLogin": { "format": "date-time", "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" } }, "required": ["id", "origin", "active", "name", "email", "capabilities"], "type": "object" }, { "type": "null" }] }, "workload": { "anyOf": [{ "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "type": { "const": "workload", "type": "string" } }, "required": ["type", "instanceId", "publicIdentityKey", "profileId", "active", "capabilities"], "type": "object" }, { "type": "null" }] } }, "required": ["user", "workload", "service"], "type": "object" }, "AuthProvisionWorkloadInstanceRequest": { "additionalProperties": false, "properties": { "activationKey": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" } }, "required": ["profileId", "publicIdentityKey", "activationKey"], "type": "object" }, "AuthProvisionWorkloadInstanceResponse": { "additionalProperties": false, "properties": { "instance": { "additionalProperties": false, "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "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", "profileId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthRenewBindingTokenRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthRenewBindingTokenResponse": { "additionalProperties": false, "properties": { "bindingToken": { "type": "string" }, "expires": { "type": "string" }, "inboxPrefix": { "type": "string" }, "natsServers": { "items": { "type": "string" }, "type": "array" }, "sentinel": { "additionalProperties": false, "properties": { "jwt": { "type": "string" }, "seed": { "type": "string" } }, "required": ["jwt", "seed"], "type": "object" }, "status": { "const": "bound", "type": "string" } }, "required": ["status", "bindingToken", "inboxPrefix", "expires", "sentinel", "natsServers"], "type": "object" }, "AuthRevokeApprovalRequest": { "additionalProperties": false, "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "required": ["contractDigest"], "type": "object" }, "AuthRevokeApprovalResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRevokeSessionRequest": { "additionalProperties": false, "properties": { "sessionKey": { "type": "string" } }, "required": ["sessionKey"], "type": "object" }, "AuthRevokeSessionResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRevokeWorkloadActivationRequest": { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthRevokeWorkloadActivationResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthSessionRevokedEvent": { "allOf": [{ "properties": { "header": { "additionalProperties": false, "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" }] }, "AuthSetLoginPortalDefaultRequest": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "AuthSetLoginPortalDefaultResponse": { "additionalProperties": false, "properties": { "defaultPortal": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthSetLoginPortalSelectionRequest": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" }, "AuthSetLoginPortalSelectionResponse": { "additionalProperties": false, "properties": { "selection": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" } }, "required": ["selection"], "type": "object" }, "AuthSetWorkloadPortalDefaultRequest": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "AuthSetWorkloadPortalDefaultResponse": { "additionalProperties": false, "properties": { "defaultPortal": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthSetWorkloadPortalSelectionRequest": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId", "portalId"], "type": "object" }, "AuthSetWorkloadPortalSelectionResponse": { "additionalProperties": false, "properties": { "selection": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId", "portalId"], "type": "object" } }, "required": ["selection"], "type": "object" }, "AuthUpdateUserRequest": { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "origin": { "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "AuthUpdateUserResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthUpgradeServiceContractRequest": { "additionalProperties": false, "properties": { "contract": { "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["sessionKey", "contract"], "type": "object" }, "AuthUpgradeServiceContractResponse": { "additionalProperties": false, "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "additionalProperties": false, "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "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": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "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" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "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" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "numReplicas": { "minimum": 1, "type": "integer" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["name", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "sessionKey": { "type": "string" }, "success": { "type": "boolean" } }, "required": ["success", "sessionKey", "contractId", "contractDigest", "resourceBindings"], "type": "object" }, "AuthValidateRequestRequest": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "payloadHash": { "type": "string" }, "proof": { "type": "string" }, "sessionKey": { "type": "string" }, "subject": { "type": "string" } }, "required": ["sessionKey", "proof", "subject", "payloadHash"], "type": "object" }, "AuthValidateRequestResponse": { "additionalProperties": false, "properties": { "allowed": { "type": "boolean" }, "caller": { "anyOf": [{ "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "id": { "type": "string" }, "image": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" }, "type": { "const": "user", "type": "string" } }, "required": ["type", "id", "origin", "active", "name", "email", "capabilities"], "type": "object" }, { "additionalProperties": false, "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" }, { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "type": { "const": "workload", "type": "string" } }, "required": ["type", "instanceId", "publicIdentityKey", "profileId", "active", "capabilities"], "type": "object" }] }, "inboxPrefix": { "type": "string" } }, "required": ["allowed", "inboxPrefix", "caller"], "type": "object" }, "AuthWorkloadActivationReviewRequestedEvent": { "additionalProperties": false, "properties": { "handoffId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "requestedBy": { "additionalProperties": false, "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "reviewId": { "minLength": 1, "type": "string" } }, "required": ["reviewId", "handoffId", "instanceId", "publicIdentityKey", "profileId", "requestedAt", "requestedBy"], "type": "object" }, "HealthRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "HealthResponse": { "additionalProperties": false, "properties": { "checks": { "items": { "additionalProperties": false, "properties": { "error": { "type": "string" }, "latencyMs": { "type": "number" }, "name": { "type": "string" }, "status": { "anyOf": [{ "const": "ok", "type": "string" }, { "const": "failed", "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" }, "LoginPortalDefault": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "LoginPortalSelection": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" }, "Portal": { "additionalProperties": false, "properties": { "appContractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl", "disabled"], "type": "object" }, "PortalFlowState": { "anyOf": [{ "additionalProperties": false, "properties": { "app": { "additionalProperties": false, "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" }, "providers": { "items": { "additionalProperties": false, "properties": { "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" } }, "required": ["id", "displayName"], "type": "object" }, "type": "array" }, "status": { "const": "choose_provider", "type": "string" } }, "required": ["status", "flowId", "providers", "app"], "type": "object" }, { "additionalProperties": false, "properties": { "approval": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "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": { "additionalProperties": false, "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" }, { "additionalProperties": false, "properties": { "approval": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "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" }, { "additionalProperties": false, "properties": { "approval": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "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": { "additionalProperties": false, "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" }, { "additionalProperties": false, "properties": { "location": { "minLength": 1, "type": "string" }, "status": { "const": "redirect", "type": "string" } }, "required": ["status", "location"], "type": "object" }, { "additionalProperties": false, "properties": { "status": { "const": "expired", "type": "string" } }, "required": ["status"], "type": "object" }] }, "Workload": { "additionalProperties": false, "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "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", "profileId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" }, "WorkloadActivationRecord": { "additionalProperties": false, "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "additionalProperties": false, "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "activatedAt", "revokedAt"], "type": "object" }, "WorkloadActivationReview": { "additionalProperties": false, "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "requestedAt", "decidedAt"], "type": "object" }, "WorkloadConnectInfo": { "additionalProperties": false, "properties": { "auth": { "additionalProperties": false, "properties": { "iatSkewSeconds": { "type": "number" }, "mode": { "const": "workload_identity", "type": "string" } }, "required": ["mode", "iatSkewSeconds"], "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "transport": { "additionalProperties": false, "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "sentinel": { "additionalProperties": false, "properties": { "jwt": { "minLength": 1, "type": "string" }, "seed": { "minLength": 1, "type": "string" } }, "required": ["jwt", "seed"], "type": "object" } }, "required": ["natsServers", "sentinel"], "type": "object" } }, "required": ["instanceId", "profileId", "contractId", "contractDigest", "transport", "auth"], "type": "object" }, "WorkloadPortalDefault": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "WorkloadPortalSelection": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId", "portalId"], "type": "object" }, "WorkloadProfile": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "profileId": { "minLength": 1, "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["profileId", "contractId", "allowedDigests", "disabled"], "type": "object" } } };
|
|
7
|
+
exports.CONTRACT_DIGEST = "PPC-QGjAoN2EdQhzlPGXvJxj7Ilj7Ksx3OAt2nGvKlE";
|
|
8
|
+
exports.CONTRACT = { "description": "Provide Trellis authentication, session, service install, and admin RPCs.", "displayName": "Trellis Auth", "events": { "Auth.Connect": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthConnectEvent" }, "subject": "events.v1.Auth.Connect", "version": "v1" }, "Auth.ConnectionKicked": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthConnectionKickedEvent" }, "subject": "events.v1.Auth.ConnectionKicked", "version": "v1" }, "Auth.Disconnect": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthDisconnectEvent" }, "subject": "events.v1.Auth.Disconnect", "version": "v1" }, "Auth.SessionRevoked": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthSessionRevokedEvent" }, "subject": "events.v1.Auth.SessionRevoked", "version": "v1" }, "Auth.WorkloadActivationReviewRequested": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["workload.review"] }, "event": { "schema": "AuthWorkloadActivationReviewRequestedEvent" }, "subject": "events.v1.Auth.WorkloadActivationReviewRequested", "version": "v1" } }, "format": "trellis.contract.v1", "id": "trellis.auth@v1", "kind": "service", "operations": {}, "rpc": { "Auth.ActivateWorkload": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthActivateWorkloadRequest" }, "output": { "schema": "AuthActivateWorkloadResponse" }, "subject": "rpc.v1.Auth.ActivateWorkload", "version": "v1" }, "Auth.ClearLoginPortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthClearLoginPortalSelectionRequest" }, "output": { "schema": "AuthClearLoginPortalSelectionResponse" }, "subject": "rpc.v1.Auth.ClearLoginPortalSelection", "version": "v1" }, "Auth.ClearWorkloadPortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthClearWorkloadPortalSelectionRequest" }, "output": { "schema": "AuthClearWorkloadPortalSelectionResponse" }, "subject": "rpc.v1.Auth.ClearWorkloadPortalSelection", "version": "v1" }, "Auth.CreatePortal": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthCreatePortalRequest" }, "output": { "schema": "AuthCreatePortalResponse" }, "subject": "rpc.v1.Auth.CreatePortal", "version": "v1" }, "Auth.CreateWorkloadProfile": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthCreateWorkloadProfileRequest" }, "output": { "schema": "AuthCreateWorkloadProfileResponse" }, "subject": "rpc.v1.Auth.CreateWorkloadProfile", "version": "v1" }, "Auth.DecideWorkloadActivationReview": { "capabilities": { "call": ["admin", "workload.review"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthDecideWorkloadActivationReviewRequest" }, "output": { "schema": "AuthDecideWorkloadActivationReviewResponse" }, "subject": "rpc.v1.Auth.DecideWorkloadActivationReview", "version": "v1" }, "Auth.DisablePortal": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthDisablePortalRequest" }, "output": { "schema": "AuthDisablePortalResponse" }, "subject": "rpc.v1.Auth.DisablePortal", "version": "v1" }, "Auth.DisableWorkloadInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthDisableWorkloadInstanceRequest" }, "output": { "schema": "AuthDisableWorkloadInstanceResponse" }, "subject": "rpc.v1.Auth.DisableWorkloadInstance", "version": "v1" }, "Auth.DisableWorkloadProfile": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthDisableWorkloadProfileRequest" }, "output": { "schema": "AuthDisableWorkloadProfileResponse" }, "subject": "rpc.v1.Auth.DisableWorkloadProfile", "version": "v1" }, "Auth.GetInstalledContract": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthGetInstalledContractRequest" }, "output": { "schema": "AuthGetInstalledContractResponse" }, "subject": "rpc.v1.Auth.GetInstalledContract", "version": "v1" }, "Auth.GetLoginPortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthGetLoginPortalDefaultRequest" }, "output": { "schema": "AuthGetLoginPortalDefaultResponse" }, "subject": "rpc.v1.Auth.GetLoginPortalDefault", "version": "v1" }, "Auth.GetWorkloadActivationStatus": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthGetWorkloadActivationStatusRequest" }, "output": { "schema": "AuthGetWorkloadActivationStatusResponse" }, "subject": "rpc.v1.Auth.GetWorkloadActivationStatus", "version": "v1" }, "Auth.GetWorkloadConnectInfo": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthGetWorkloadConnectInfoRequest" }, "output": { "schema": "AuthGetWorkloadConnectInfoResponse" }, "subject": "rpc.v1.Auth.GetWorkloadConnectInfo", "version": "v1" }, "Auth.GetWorkloadPortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthGetWorkloadPortalDefaultRequest" }, "output": { "schema": "AuthGetWorkloadPortalDefaultResponse" }, "subject": "rpc.v1.Auth.GetWorkloadPortalDefault", "version": "v1" }, "Auth.Health": { "capabilities": { "call": [] }, "errors": [{ "type": "UnexpectedError" }], "input": { "schema": "HealthRequest" }, "output": { "schema": "HealthResponse" }, "subject": "rpc.v1.Auth.Health", "version": "v1" }, "Auth.InstallService": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthInstallServiceRequest" }, "output": { "schema": "AuthInstallServiceResponse" }, "subject": "rpc.v1.Auth.InstallService", "version": "v1" }, "Auth.KickConnection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthKickConnectionRequest" }, "output": { "schema": "AuthKickConnectionResponse" }, "subject": "rpc.v1.Auth.KickConnection", "version": "v1" }, "Auth.ListApprovals": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListApprovalsRequest" }, "output": { "schema": "AuthListApprovalsResponse" }, "subject": "rpc.v1.Auth.ListApprovals", "version": "v1" }, "Auth.ListConnections": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListConnectionsRequest" }, "output": { "schema": "AuthListConnectionsResponse" }, "subject": "rpc.v1.Auth.ListConnections", "version": "v1" }, "Auth.ListInstalledContracts": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListInstalledContractsRequest" }, "output": { "schema": "AuthListInstalledContractsResponse" }, "subject": "rpc.v1.Auth.ListInstalledContracts", "version": "v1" }, "Auth.ListLoginPortalSelections": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListLoginPortalSelectionsRequest" }, "output": { "schema": "AuthListLoginPortalSelectionsResponse" }, "subject": "rpc.v1.Auth.ListLoginPortalSelections", "version": "v1" }, "Auth.ListPortals": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListPortalsRequest" }, "output": { "schema": "AuthListPortalsResponse" }, "subject": "rpc.v1.Auth.ListPortals", "version": "v1" }, "Auth.ListServices": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListServicesRequest" }, "output": { "schema": "AuthListServicesResponse" }, "subject": "rpc.v1.Auth.ListServices", "version": "v1" }, "Auth.ListSessions": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListSessionsRequest" }, "output": { "schema": "AuthListSessionsResponse" }, "subject": "rpc.v1.Auth.ListSessions", "version": "v1" }, "Auth.ListUsers": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListUsersRequest" }, "output": { "schema": "AuthListUsersResponse" }, "subject": "rpc.v1.Auth.ListUsers", "version": "v1" }, "Auth.ListWorkloadActivationReviews": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListWorkloadActivationReviewsRequest" }, "output": { "schema": "AuthListWorkloadActivationReviewsResponse" }, "subject": "rpc.v1.Auth.ListWorkloadActivationReviews", "version": "v1" }, "Auth.ListWorkloadActivations": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListWorkloadActivationsRequest" }, "output": { "schema": "AuthListWorkloadActivationsResponse" }, "subject": "rpc.v1.Auth.ListWorkloadActivations", "version": "v1" }, "Auth.ListWorkloadInstances": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListWorkloadInstancesRequest" }, "output": { "schema": "AuthListWorkloadInstancesResponse" }, "subject": "rpc.v1.Auth.ListWorkloadInstances", "version": "v1" }, "Auth.ListWorkloadPortalSelections": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListWorkloadPortalSelectionsRequest" }, "output": { "schema": "AuthListWorkloadPortalSelectionsResponse" }, "subject": "rpc.v1.Auth.ListWorkloadPortalSelections", "version": "v1" }, "Auth.ListWorkloadProfiles": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListWorkloadProfilesRequest" }, "output": { "schema": "AuthListWorkloadProfilesResponse" }, "subject": "rpc.v1.Auth.ListWorkloadProfiles", "version": "v1" }, "Auth.Logout": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthLogoutRequest" }, "output": { "schema": "AuthLogoutResponse" }, "subject": "rpc.v1.Auth.Logout", "version": "v1" }, "Auth.Me": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthMeRequest" }, "output": { "schema": "AuthMeResponse" }, "subject": "rpc.v1.Auth.Me", "version": "v1" }, "Auth.ProvisionWorkloadInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthProvisionWorkloadInstanceRequest" }, "output": { "schema": "AuthProvisionWorkloadInstanceResponse" }, "subject": "rpc.v1.Auth.ProvisionWorkloadInstance", "version": "v1" }, "Auth.RenewBindingToken": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthRenewBindingTokenRequest" }, "output": { "schema": "AuthRenewBindingTokenResponse" }, "subject": "rpc.v1.Auth.RenewBindingToken", "version": "v1" }, "Auth.RevokeApproval": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthRevokeApprovalRequest" }, "output": { "schema": "AuthRevokeApprovalResponse" }, "subject": "rpc.v1.Auth.RevokeApproval", "version": "v1" }, "Auth.RevokeSession": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthRevokeSessionRequest" }, "output": { "schema": "AuthRevokeSessionResponse" }, "subject": "rpc.v1.Auth.RevokeSession", "version": "v1" }, "Auth.RevokeWorkloadActivation": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthRevokeWorkloadActivationRequest" }, "output": { "schema": "AuthRevokeWorkloadActivationResponse" }, "subject": "rpc.v1.Auth.RevokeWorkloadActivation", "version": "v1" }, "Auth.SetLoginPortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthSetLoginPortalDefaultRequest" }, "output": { "schema": "AuthSetLoginPortalDefaultResponse" }, "subject": "rpc.v1.Auth.SetLoginPortalDefault", "version": "v1" }, "Auth.SetLoginPortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthSetLoginPortalSelectionRequest" }, "output": { "schema": "AuthSetLoginPortalSelectionResponse" }, "subject": "rpc.v1.Auth.SetLoginPortalSelection", "version": "v1" }, "Auth.SetWorkloadPortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthSetWorkloadPortalDefaultRequest" }, "output": { "schema": "AuthSetWorkloadPortalDefaultResponse" }, "subject": "rpc.v1.Auth.SetWorkloadPortalDefault", "version": "v1" }, "Auth.SetWorkloadPortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthSetWorkloadPortalSelectionRequest" }, "output": { "schema": "AuthSetWorkloadPortalSelectionResponse" }, "subject": "rpc.v1.Auth.SetWorkloadPortalSelection", "version": "v1" }, "Auth.UpdateUser": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthUpdateUserRequest" }, "output": { "schema": "AuthUpdateUserResponse" }, "subject": "rpc.v1.Auth.UpdateUser", "version": "v1" }, "Auth.UpgradeServiceContract": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthUpgradeServiceContractRequest" }, "output": { "schema": "AuthUpgradeServiceContractResponse" }, "subject": "rpc.v1.Auth.UpgradeServiceContract", "version": "v1" }, "Auth.ValidateRequest": { "capabilities": { "call": ["service"] }, "errors": [{ "type": "AuthError" }, { "type": "ValidationError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthValidateRequestRequest" }, "output": { "schema": "AuthValidateRequestResponse" }, "subject": "rpc.v1.Auth.ValidateRequest", "version": "v1" } }, "schemas": { "AuthActivateWorkloadRequest": { "additionalProperties": false, "properties": { "handoffId": { "minLength": 1, "type": "string" } }, "required": ["handoffId"], "type": "object" }, "AuthActivateWorkloadResponse": { "anyOf": [{ "additionalProperties": false, "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "confirmationCode": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "status": { "const": "activated", "type": "string" } }, "required": ["status", "instanceId", "profileId", "activatedAt"], "type": "object" }, { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "requestedAt"], "type": "object" }, { "additionalProperties": false, "properties": { "reason": { "minLength": 1, "type": "string" }, "status": { "const": "rejected", "type": "string" } }, "required": ["status"], "type": "object" }] }, "AuthClearLoginPortalSelectionRequest": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId"], "type": "object" }, "AuthClearLoginPortalSelectionResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthClearWorkloadPortalSelectionRequest": { "additionalProperties": false, "properties": { "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId"], "type": "object" }, "AuthClearWorkloadPortalSelectionResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthConnectEvent": { "allOf": [{ "properties": { "header": { "additionalProperties": false, "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" }] }, "AuthConnectionKickedEvent": { "allOf": [{ "properties": { "header": { "additionalProperties": false, "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" }] }, "AuthCreatePortalRequest": { "additionalProperties": false, "properties": { "appContractId": { "minLength": 1, "type": "string" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl"], "type": "object" }, "AuthCreatePortalResponse": { "additionalProperties": false, "properties": { "portal": { "additionalProperties": false, "properties": { "appContractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl", "disabled"], "type": "object" } }, "required": ["portal"], "type": "object" }, "AuthCreateWorkloadProfileRequest": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contract": { "additionalProperties": true, "properties": {}, "type": "object" }, "contractId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["profileId", "contractId", "allowedDigests"], "type": "object" }, "AuthCreateWorkloadProfileResponse": { "additionalProperties": false, "properties": { "profile": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "profileId": { "minLength": 1, "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["profileId", "contractId", "allowedDigests", "disabled"], "type": "object" } }, "required": ["profile"], "type": "object" }, "AuthDecideWorkloadActivationReviewRequest": { "additionalProperties": false, "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" }, "AuthDecideWorkloadActivationReviewResponse": { "additionalProperties": false, "properties": { "activation": { "additionalProperties": false, "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "additionalProperties": false, "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "activatedAt", "revokedAt"], "type": "object" }, "confirmationCode": { "minLength": 1, "type": "string" }, "review": { "additionalProperties": false, "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "requestedAt", "decidedAt"], "type": "object" } }, "required": ["review"], "type": "object" }, "AuthDisablePortalRequest": { "additionalProperties": false, "properties": { "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId"], "type": "object" }, "AuthDisablePortalResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthDisableWorkloadInstanceRequest": { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthDisableWorkloadInstanceResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthDisableWorkloadProfileRequest": { "additionalProperties": false, "properties": { "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId"], "type": "object" }, "AuthDisableWorkloadProfileResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthDisconnectEvent": { "allOf": [{ "properties": { "header": { "additionalProperties": false, "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" }] }, "AuthGetInstalledContractRequest": { "additionalProperties": false, "properties": { "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, "required": ["digest"], "type": "object" }, "AuthGetInstalledContractResponse": { "additionalProperties": false, "properties": { "contract": { "additionalProperties": false, "properties": { "analysis": { "additionalProperties": false, "properties": { "events": { "additionalProperties": false, "properties": { "events": { "items": { "additionalProperties": false, "properties": { "key": { "type": "string" }, "publishCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "subscribeCapabilities": { "items": { "type": "string" }, "type": "array" }, "wildcardSubject": { "type": "string" } }, "required": ["key", "subject", "wildcardSubject", "publishCapabilities", "subscribeCapabilities"], "type": "object" }, "type": "array" } }, "required": ["events"], "type": "object" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "nats": { "additionalProperties": false, "properties": { "publish": { "items": { "additionalProperties": false, "properties": { "kind": { "type": "string" }, "requiredCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["kind", "subject", "wildcardSubject", "requiredCapabilities"], "type": "object" }, "type": "array" }, "subscribe": { "items": { "additionalProperties": false, "properties": { "kind": { "type": "string" }, "requiredCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["kind", "subject", "wildcardSubject", "requiredCapabilities"], "type": "object" }, "type": "array" } }, "required": ["publish", "subscribe"], "type": "object" }, "resources": { "additionalProperties": false, "properties": { "jobs": { "items": { "additionalProperties": false, "properties": { "ackWaitMs": { "type": "number" }, "backoffMs": { "items": { "type": "number" }, "type": "array" }, "concurrency": { "type": "number" }, "defaultDeadlineMs": { "type": "number" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "type": "number" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" } }, "required": ["queueType", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" }, "type": "array" }, "kv": { "items": { "additionalProperties": false, "properties": { "alias": { "minLength": 1, "type": "string" }, "history": { "type": "number" }, "maxValueBytes": { "type": "number" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" }, "ttlMs": { "type": "number" } }, "required": ["alias", "purpose", "required", "history", "ttlMs"], "type": "object" }, "type": "array" }, "streams": { "items": { "additionalProperties": false, "properties": { "alias": { "minLength": 1, "type": "string" }, "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "type": "number" }, "maxBytes": { "type": "number" }, "maxMsgs": { "type": "number" }, "numReplicas": { "type": "number" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["alias", "purpose", "required", "subjects"], "type": "object" }, "type": "array" } }, "required": ["kv", "jobs", "streams"], "type": "object" }, "rpc": { "additionalProperties": false, "properties": { "methods": { "items": { "additionalProperties": false, "properties": { "callerCapabilities": { "items": { "type": "string" }, "type": "array" }, "key": { "type": "string" }, "subject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["key", "subject", "wildcardSubject", "callerCapabilities"], "type": "object" }, "type": "array" } }, "required": ["methods"], "type": "object" }, "subjects": { "additionalProperties": false, "properties": { "subjects": { "items": { "additionalProperties": false, "properties": { "key": { "type": "string" }, "publishCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "subscribeCapabilities": { "items": { "type": "string" }, "type": "array" } }, "required": ["key", "subject", "publishCapabilities", "subscribeCapabilities"], "type": "object" }, "type": "array" } }, "required": ["subjects"], "type": "object" } }, "required": ["namespaces", "rpc", "events", "nats", "resources"], "type": "object" }, "analysisSummary": { "additionalProperties": false, "properties": { "events": { "type": "number" }, "jobsQueues": { "type": "number" }, "kvResources": { "type": "number" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "natsPublish": { "type": "number" }, "natsSubscribe": { "type": "number" }, "rpcMethods": { "type": "number" }, "streamResources": { "type": "number" } }, "required": ["namespaces", "rpcMethods", "events", "natsPublish", "natsSubscribe", "kvResources", "jobsQueues", "streamResources"], "type": "object" }, "contract": { "type": "object" }, "description": { "minLength": 1, "type": "string" }, "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "installedAt": { "format": "date-time", "type": "string" }, "resourceBindings": { "properties": { "jobs": { "additionalProperties": false, "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "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": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "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" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "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" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "numReplicas": { "minimum": 1, "type": "integer" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["name", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "resources": { "properties": { "jobs": { "additionalProperties": false, "properties": { "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" } }, "required": ["payload"], "type": "object" } }, "type": "object" } }, "required": ["queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "history": { "default": 1, "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "default": true, "type": "boolean" }, "ttlMs": { "default": 0, "minimum": 0, "type": "integer" } }, "required": ["purpose"], "type": "object" } }, "type": "object" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "numReplicas": { "minimum": 1, "type": "integer" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "default": true, "type": "boolean" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["purpose", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["digest", "id", "displayName", "description", "installedAt", "contract"], "type": "object" } }, "required": ["contract"], "type": "object" }, "AuthGetLoginPortalDefaultRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthGetLoginPortalDefaultResponse": { "additionalProperties": false, "properties": { "defaultPortal": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthGetWorkloadActivationStatusRequest": { "additionalProperties": false, "properties": { "handoffId": { "minLength": 1, "type": "string" } }, "required": ["handoffId"], "type": "object" }, "AuthGetWorkloadActivationStatusResponse": { "anyOf": [{ "additionalProperties": false, "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "confirmationCode": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "status": { "const": "activated", "type": "string" } }, "required": ["status", "instanceId", "profileId", "activatedAt"], "type": "object" }, { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "requestedAt"], "type": "object" }, { "additionalProperties": false, "properties": { "reason": { "minLength": 1, "type": "string" }, "status": { "const": "rejected", "type": "string" } }, "required": ["status"], "type": "object" }] }, "AuthGetWorkloadConnectInfoRequest": { "additionalProperties": false, "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" }, "AuthGetWorkloadConnectInfoResponse": { "additionalProperties": false, "properties": { "connectInfo": { "additionalProperties": false, "properties": { "auth": { "additionalProperties": false, "properties": { "iatSkewSeconds": { "type": "number" }, "mode": { "const": "workload_identity", "type": "string" } }, "required": ["mode", "iatSkewSeconds"], "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "transport": { "additionalProperties": false, "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "sentinel": { "additionalProperties": false, "properties": { "jwt": { "minLength": 1, "type": "string" }, "seed": { "minLength": 1, "type": "string" } }, "required": ["jwt", "seed"], "type": "object" } }, "required": ["natsServers", "sentinel"], "type": "object" } }, "required": ["instanceId", "profileId", "contractId", "contractDigest", "transport", "auth"], "type": "object" }, "status": { "const": "ready", "type": "string" } }, "required": ["status", "connectInfo"], "type": "object" }, "AuthGetWorkloadPortalDefaultRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthGetWorkloadPortalDefaultResponse": { "additionalProperties": false, "properties": { "defaultPortal": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthInstallServiceRequest": { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "contract": { "type": "object" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "sessionKey": { "type": "string" } }, "required": ["sessionKey", "displayName", "namespaces", "description", "contract"], "type": "object" }, "AuthInstallServiceResponse": { "additionalProperties": false, "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "additionalProperties": false, "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "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": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "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" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "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" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "numReplicas": { "minimum": 1, "type": "integer" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["name", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "sessionKey": { "type": "string" }, "success": { "type": "boolean" } }, "required": ["success", "sessionKey", "contractId", "contractDigest", "resourceBindings"], "type": "object" }, "AuthKickConnectionRequest": { "additionalProperties": false, "properties": { "userNkey": { "type": "string" } }, "required": ["userNkey"], "type": "object" }, "AuthKickConnectionResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthListApprovalsRequest": { "additionalProperties": false, "properties": { "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "type": "object" }, "AuthListApprovalsResponse": { "additionalProperties": false, "properties": { "approvals": { "items": { "additionalProperties": false, "properties": { "answer": { "anyOf": [{ "const": "approved", "type": "string" }, { "const": "denied", "type": "string" }] }, "answeredAt": { "format": "date-time", "type": "string" }, "approval": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "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" }, "updatedAt": { "format": "date-time", "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "required": ["user", "answer", "answeredAt", "updatedAt", "approval"], "type": "object" }, "type": "array" } }, "required": ["approvals"], "type": "object" }, "AuthListConnectionsRequest": { "additionalProperties": false, "properties": { "sessionKey": { "type": "string" }, "user": { "type": "string" } }, "type": "object" }, "AuthListConnectionsResponse": { "additionalProperties": false, "properties": { "connections": { "items": { "additionalProperties": false, "properties": { "clientId": { "type": "number" }, "connectedAt": { "type": "string" }, "key": { "type": "string" }, "serverId": { "type": "string" } }, "required": ["key", "serverId", "clientId", "connectedAt"], "type": "object" }, "type": "array" } }, "required": ["connections"], "type": "object" }, "AuthListInstalledContractsRequest": { "additionalProperties": false, "properties": { "sessionKey": { "type": "string" } }, "type": "object" }, "AuthListInstalledContractsResponse": { "additionalProperties": false, "properties": { "contracts": { "items": { "additionalProperties": false, "properties": { "analysisSummary": { "additionalProperties": false, "properties": { "events": { "type": "number" }, "jobsQueues": { "type": "number" }, "kvResources": { "type": "number" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "natsPublish": { "type": "number" }, "natsSubscribe": { "type": "number" }, "rpcMethods": { "type": "number" }, "streamResources": { "type": "number" } }, "required": ["namespaces", "rpcMethods", "events", "natsPublish", "natsSubscribe", "kvResources", "jobsQueues", "streamResources"], "type": "object" }, "description": { "minLength": 1, "type": "string" }, "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "installedAt": { "format": "date-time", "type": "string" }, "resourceBindings": { "properties": { "jobs": { "additionalProperties": false, "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "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": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "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" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "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" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "numReplicas": { "minimum": 1, "type": "integer" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["name", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["digest", "id", "displayName", "description", "installedAt"], "type": "object" }, "type": "array" } }, "required": ["contracts"], "type": "object" }, "AuthListLoginPortalSelectionsRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthListLoginPortalSelectionsResponse": { "additionalProperties": false, "properties": { "selections": { "items": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" }, "type": "array" } }, "required": ["selections"], "type": "object" }, "AuthListPortalsRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthListPortalsResponse": { "additionalProperties": false, "properties": { "portals": { "items": { "additionalProperties": false, "properties": { "appContractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl", "disabled"], "type": "object" }, "type": "array" } }, "required": ["portals"], "type": "object" }, "AuthListServicesRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthListServicesResponse": { "additionalProperties": false, "properties": { "services": { "items": { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "description": { "type": "string" }, "displayName": { "type": "string" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "resourceBindings": { "properties": { "jobs": { "additionalProperties": false, "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "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": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "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" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "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" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "numReplicas": { "minimum": 1, "type": "integer" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["name", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["sessionKey", "displayName", "active", "capabilities", "namespaces", "description", "createdAt"], "type": "object" }, "type": "array" } }, "required": ["services"], "type": "object" }, "AuthListSessionsRequest": { "additionalProperties": false, "properties": { "user": { "type": "string" } }, "type": "object" }, "AuthListSessionsResponse": { "additionalProperties": false, "properties": { "sessions": { "items": { "additionalProperties": false, "properties": { "createdAt": { "type": "string" }, "key": { "type": "string" }, "lastAuth": { "type": "string" }, "type": { "anyOf": [{ "const": "user", "type": "string" }, { "const": "service", "type": "string" }, { "const": "workload", "type": "string" }] } }, "required": ["key", "type", "createdAt", "lastAuth"], "type": "object" }, "type": "array" } }, "required": ["sessions"], "type": "object" }, "AuthListUsersRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthListUsersResponse": { "additionalProperties": false, "properties": { "users": { "items": { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" } }, "required": ["origin", "id", "active", "capabilities"], "type": "object" }, "type": "array" } }, "required": ["users"], "type": "object" }, "AuthListWorkloadActivationReviewsRequest": { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "type": "object" }, "AuthListWorkloadActivationReviewsResponse": { "additionalProperties": false, "properties": { "reviews": { "items": { "additionalProperties": false, "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "requestedAt", "decidedAt"], "type": "object" }, "type": "array" } }, "required": ["reviews"], "type": "object" }, "AuthListWorkloadActivationsRequest": { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }] } }, "type": "object" }, "AuthListWorkloadActivationsResponse": { "additionalProperties": false, "properties": { "activations": { "items": { "additionalProperties": false, "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "additionalProperties": false, "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "activatedAt", "revokedAt"], "type": "object" }, "type": "array" } }, "required": ["activations"], "type": "object" }, "AuthListWorkloadInstancesRequest": { "additionalProperties": false, "properties": { "profileId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "type": "object" }, "AuthListWorkloadInstancesResponse": { "additionalProperties": false, "properties": { "instances": { "items": { "additionalProperties": false, "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "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", "profileId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" }, "type": "array" } }, "required": ["instances"], "type": "object" }, "AuthListWorkloadPortalSelectionsRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthListWorkloadPortalSelectionsResponse": { "additionalProperties": false, "properties": { "selections": { "items": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId", "portalId"], "type": "object" }, "type": "array" } }, "required": ["selections"], "type": "object" }, "AuthListWorkloadProfilesRequest": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" } }, "type": "object" }, "AuthListWorkloadProfilesResponse": { "additionalProperties": false, "properties": { "profiles": { "items": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "profileId": { "minLength": 1, "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["profileId", "contractId", "allowedDigests", "disabled"], "type": "object" }, "type": "array" } }, "required": ["profiles"], "type": "object" }, "AuthLogoutRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthLogoutResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthMeRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthMeResponse": { "additionalProperties": false, "properties": { "service": { "anyOf": [{ "additionalProperties": false, "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": [{ "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "id": { "type": "string" }, "image": { "type": "string" }, "lastLogin": { "format": "date-time", "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" } }, "required": ["id", "origin", "active", "name", "email", "capabilities"], "type": "object" }, { "type": "null" }] }, "workload": { "anyOf": [{ "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "type": { "const": "workload", "type": "string" } }, "required": ["type", "instanceId", "publicIdentityKey", "profileId", "active", "capabilities"], "type": "object" }, { "type": "null" }] } }, "required": ["user", "workload", "service"], "type": "object" }, "AuthProvisionWorkloadInstanceRequest": { "additionalProperties": false, "properties": { "activationKey": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" } }, "required": ["profileId", "publicIdentityKey", "activationKey"], "type": "object" }, "AuthProvisionWorkloadInstanceResponse": { "additionalProperties": false, "properties": { "instance": { "additionalProperties": false, "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "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", "profileId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthRenewBindingTokenRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "AuthRenewBindingTokenResponse": { "additionalProperties": false, "properties": { "bindingToken": { "type": "string" }, "expires": { "type": "string" }, "inboxPrefix": { "type": "string" }, "natsServers": { "items": { "type": "string" }, "type": "array" }, "sentinel": { "additionalProperties": false, "properties": { "jwt": { "type": "string" }, "seed": { "type": "string" } }, "required": ["jwt", "seed"], "type": "object" }, "status": { "const": "bound", "type": "string" } }, "required": ["status", "bindingToken", "inboxPrefix", "expires", "sentinel", "natsServers"], "type": "object" }, "AuthRevokeApprovalRequest": { "additionalProperties": false, "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "required": ["contractDigest"], "type": "object" }, "AuthRevokeApprovalResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRevokeSessionRequest": { "additionalProperties": false, "properties": { "sessionKey": { "type": "string" } }, "required": ["sessionKey"], "type": "object" }, "AuthRevokeSessionResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRevokeWorkloadActivationRequest": { "additionalProperties": false, "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthRevokeWorkloadActivationResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthSessionRevokedEvent": { "allOf": [{ "properties": { "header": { "additionalProperties": false, "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" }] }, "AuthSetLoginPortalDefaultRequest": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "AuthSetLoginPortalDefaultResponse": { "additionalProperties": false, "properties": { "defaultPortal": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthSetLoginPortalSelectionRequest": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" }, "AuthSetLoginPortalSelectionResponse": { "additionalProperties": false, "properties": { "selection": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" } }, "required": ["selection"], "type": "object" }, "AuthSetWorkloadPortalDefaultRequest": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "AuthSetWorkloadPortalDefaultResponse": { "additionalProperties": false, "properties": { "defaultPortal": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthSetWorkloadPortalSelectionRequest": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId", "portalId"], "type": "object" }, "AuthSetWorkloadPortalSelectionResponse": { "additionalProperties": false, "properties": { "selection": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId", "portalId"], "type": "object" } }, "required": ["selection"], "type": "object" }, "AuthUpdateUserRequest": { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "origin": { "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "AuthUpdateUserResponse": { "additionalProperties": false, "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthUpgradeServiceContractRequest": { "additionalProperties": false, "properties": { "contract": { "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["sessionKey", "contract"], "type": "object" }, "AuthUpgradeServiceContractResponse": { "additionalProperties": false, "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "additionalProperties": false, "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "additionalProperties": false, "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": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "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" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "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" }, "streams": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "discard": { "minLength": 1, "type": "string" }, "maxAgeMs": { "minimum": 0, "type": "integer" }, "maxBytes": { "type": "integer" }, "maxMsgs": { "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "numReplicas": { "minimum": 1, "type": "integer" }, "retention": { "minLength": 1, "type": "string" }, "sources": { "items": { "additionalProperties": false, "properties": { "filterSubject": { "minLength": 1, "type": "string" }, "fromAlias": { "minLength": 1, "type": "string" }, "streamName": { "minLength": 1, "type": "string" }, "subjectTransformDest": { "minLength": 1, "type": "string" } }, "required": ["fromAlias", "streamName"], "type": "object" }, "type": "array" }, "storage": { "minLength": 1, "type": "string" }, "subjects": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["name", "subjects"], "type": "object" } }, "type": "object" } }, "type": "object" }, "sessionKey": { "type": "string" }, "success": { "type": "boolean" } }, "required": ["success", "sessionKey", "contractId", "contractDigest", "resourceBindings"], "type": "object" }, "AuthValidateRequestRequest": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "payloadHash": { "type": "string" }, "proof": { "type": "string" }, "sessionKey": { "type": "string" }, "subject": { "type": "string" } }, "required": ["sessionKey", "proof", "subject", "payloadHash"], "type": "object" }, "AuthValidateRequestResponse": { "additionalProperties": false, "properties": { "allowed": { "type": "boolean" }, "caller": { "anyOf": [{ "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "id": { "type": "string" }, "image": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" }, "type": { "const": "user", "type": "string" } }, "required": ["type", "id", "origin", "active", "name", "email", "capabilities"], "type": "object" }, { "additionalProperties": false, "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" }, { "additionalProperties": false, "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "type": { "const": "workload", "type": "string" } }, "required": ["type", "instanceId", "publicIdentityKey", "profileId", "active", "capabilities"], "type": "object" }] }, "inboxPrefix": { "type": "string" } }, "required": ["allowed", "inboxPrefix", "caller"], "type": "object" }, "AuthWorkloadActivationReviewRequestedEvent": { "additionalProperties": false, "properties": { "handoffId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "requestedBy": { "additionalProperties": false, "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "reviewId": { "minLength": 1, "type": "string" } }, "required": ["reviewId", "handoffId", "instanceId", "publicIdentityKey", "profileId", "requestedAt", "requestedBy"], "type": "object" }, "HealthRequest": { "additionalProperties": false, "properties": {}, "type": "object" }, "HealthResponse": { "additionalProperties": false, "properties": { "checks": { "items": { "additionalProperties": false, "properties": { "error": { "type": "string" }, "latencyMs": { "type": "number" }, "name": { "type": "string" }, "status": { "anyOf": [{ "const": "ok", "type": "string" }, { "const": "failed", "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" }, "LoginPortalDefault": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "LoginPortalSelection": { "additionalProperties": false, "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" }, "Portal": { "additionalProperties": false, "properties": { "appContractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl", "disabled"], "type": "object" }, "PortalFlowState": { "anyOf": [{ "additionalProperties": false, "properties": { "app": { "additionalProperties": false, "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" }, "providers": { "items": { "additionalProperties": false, "properties": { "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" } }, "required": ["id", "displayName"], "type": "object" }, "type": "array" }, "status": { "const": "choose_provider", "type": "string" } }, "required": ["status", "flowId", "providers", "app"], "type": "object" }, { "additionalProperties": false, "properties": { "approval": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "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": { "additionalProperties": false, "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" }, { "additionalProperties": false, "properties": { "approval": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "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" }, { "additionalProperties": false, "properties": { "approval": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "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": { "additionalProperties": false, "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" }, { "additionalProperties": false, "properties": { "location": { "minLength": 1, "type": "string" }, "status": { "const": "redirect", "type": "string" } }, "required": ["status", "location"], "type": "object" }, { "additionalProperties": false, "properties": { "status": { "const": "expired", "type": "string" } }, "required": ["status"], "type": "object" }] }, "Workload": { "additionalProperties": false, "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "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", "profileId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" }, "WorkloadActivationRecord": { "additionalProperties": false, "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "additionalProperties": false, "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "activatedAt", "revokedAt"], "type": "object" }, "WorkloadActivationReview": { "additionalProperties": false, "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "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", "profileId", "state", "requestedAt", "decidedAt"], "type": "object" }, "WorkloadConnectInfo": { "additionalProperties": false, "properties": { "auth": { "additionalProperties": false, "properties": { "iatSkewSeconds": { "type": "number" }, "mode": { "const": "workload_identity", "type": "string" } }, "required": ["mode", "iatSkewSeconds"], "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "profileId": { "minLength": 1, "type": "string" }, "transport": { "additionalProperties": false, "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "sentinel": { "additionalProperties": false, "properties": { "jwt": { "minLength": 1, "type": "string" }, "seed": { "minLength": 1, "type": "string" } }, "required": ["jwt", "seed"], "type": "object" } }, "required": ["natsServers", "sentinel"], "type": "object" } }, "required": ["instanceId", "profileId", "contractId", "contractDigest", "transport", "auth"], "type": "object" }, "WorkloadPortalDefault": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "WorkloadPortalSelection": { "additionalProperties": false, "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "profileId": { "minLength": 1, "type": "string" } }, "required": ["profileId", "portalId"], "type": "object" }, "WorkloadProfile": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "profileId": { "minLength": 1, "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["profileId", "contractId", "allowedDigests", "disabled"], "type": "object" } } };
|
|
9
9
|
function assertSelectedKeysExist(kind, keys, api) {
|
|
10
10
|
if (!keys) {
|
|
11
11
|
return;
|