{
    "components": {
        "schemas": {
            "authwise.identity.v1alpha1.ApplyMessageTemplateResponse": {
                "properties": {
                    "created": {
                        "description": "True when no copy existed for (key, channel, locale) before this call.",
                        "type": "boolean"
                    },
                    "messageTemplate": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageTemplate"
                    },
                    "revision": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageTemplateRevision"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.AssetDownloadResponse": {
                "properties": {
                    "data": {
                        "format": "byte",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.AuthenticationContextVariable": {
                "properties": {
                    "description": {
                        "type": "string"
                    },
                    "name": {
                        "description": "The CEL path, e.g. risk.level.",
                        "type": "string"
                    },
                    "type": {
                        "description": "The CEL type, e.g. string, list(string), map(string, string).",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.AuthenticationFactorType": {
                "properties": {
                    "amr": {
                        "description": "RFC 8176 values a verification asserts.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "classes": {
                        "description": "What verifying it proves: knowledge, possession, inherence.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "configMessage": {
                        "description": "The message Factor.config carries for this type, empty for none.",
                        "type": "string"
                    },
                    "enabled": {
                        "description": "Whether this build runs it; a Factor of a type it does not is refused.",
                        "type": "boolean"
                    },
                    "factorType": {
                        "description": "The slug a Factor row and a rule name.",
                        "type": "string"
                    },
                    "phishingResistant": {
                        "type": "boolean"
                    },
                    "recovery": {
                        "description": "A look-up secret; never the method a requirement is met by.",
                        "type": "boolean"
                    },
                    "restricted": {
                        "description": "NIST's restricted class (SMS): offered only beside an unrestricted method.",
                        "type": "boolean"
                    },
                    "supportsEnrollment": {
                        "description": "False where enrollment happens elsewhere (Duo).",
                        "type": "boolean"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.AuthenticationProviderType": {
                "properties": {
                    "configMessage": {
                        "description": "The message Provider.config carries for this type, empty for none.",
                        "type": "string"
                    },
                    "enabled": {
                        "description": "Whether this build runs it; a Provider of a type it does not cannot sign anyone in.",
                        "type": "boolean"
                    },
                    "kind": {
                        "description": "local, passwordless or federated.",
                        "type": "string"
                    },
                    "providerType": {
                        "description": "The slug a Provider row's provider_type takes.",
                        "type": "string"
                    },
                    "restricted": {
                        "description": "NIST's restricted class (SMS): offered only beside an unrestricted method.",
                        "type": "boolean"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.CheckEndpointResponse": {
                "properties": {
                    "authScheme": {
                        "description": "none, bearer, basic, header or kit_token.",
                        "type": "string"
                    },
                    "credentialResolved": {
                        "description": "The credential's secret opened or its token was signed; nothing about whether the far side accepted it.",
                        "type": "boolean"
                    },
                    "error": {
                        "description": "One line in the transport's words, the credential redacted; empty when nothing failed.",
                        "type": "string"
                    },
                    "httpStatus": {
                        "description": "REST: the HEAD's status; 0 when none came back.",
                        "format": "int32",
                        "type": "integer"
                    },
                    "latencyMs": {
                        "description": "The whole check, in milliseconds.",
                        "format": "int32",
                        "type": "integer"
                    },
                    "reachable": {
                        "description": "A connection was made and, for TLS, the handshake completed; a REST 401 is reachable.",
                        "type": "boolean"
                    },
                    "resolvedAddress": {
                        "description": "What the dialer connected to, after resolution.",
                        "type": "string"
                    },
                    "services": {
                        "description": "gRPC: from server reflection, or grpc.health.v1.Health when only health answered.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "servicesKnown": {
                        "description": "The services came from reflection, so the list is complete.",
                        "type": "boolean"
                    },
                    "tls": {
                        "$ref": "#/components/schemas/authwise.identity.v1alpha1.EndpointCheckTls"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ClearedSignInLimit": {
                "properties": {
                    "hits": {
                        "description": "The hits it held, summed over the person's keys.",
                        "format": "int32",
                        "type": "integer"
                    },
                    "keyKind": {
                        "description": "identifier, user or authenticator.",
                        "type": "string"
                    },
                    "rule": {
                        "description": "The limit, e.g. authn:magic-link-identifier.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.CreateApplicationSecretResponse": {
                "properties": {
                    "applicationSecret": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ApplicationSecret"
                    },
                    "secret": {
                        "description": "The secret to authenticate with, as \u003cid\u003e_\u003cplaintext\u003e. Returned exactly once and never retrievable again.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.CreateScimTokenResponse": {
                "properties": {
                    "scimToken": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ScimToken"
                    },
                    "secret": {
                        "description": "The secret to authenticate with, as \u003cid\u003e_\u003cplaintext\u003e. Returned exactly once and never retrievable again.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.CustomDomainsCapability": {
                "properties": {
                    "enabled": {
                        "description": "A domains controller runs beside this install; the console shows the Domains page only when true.",
                        "type": "boolean"
                    },
                    "provider": {
                        "description": "gcpCertificateManager, awsAcm or certManager; empty when not enabled. Decides the console's wording for the records.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.EnableAccountPageResponse": {
                "properties": {
                    "created": {
                        "description": "True when the call created the account page client; false when the issuer had one.",
                        "type": "boolean"
                    },
                    "issuer": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Issuer"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.EndpointCheckTls": {
                "properties": {
                    "attempted": {
                        "description": "Always true when set.",
                        "type": "boolean"
                    },
                    "error": {
                        "description": "The handshake's failure, if it failed.",
                        "type": "string"
                    },
                    "issuer": {
                        "type": "string"
                    },
                    "notAfter": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "subject": {
                        "description": "The endpoint certificate's subject, reported even when it was not trusted.",
                        "type": "string"
                    },
                    "verified": {
                        "description": "The chain and name verified; false under insecure_skip_verify.",
                        "type": "boolean"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.EndpointReferrer": {
                "properties": {
                    "field": {
                        "description": "Where in the referrer, in proto field names, e.g. config.flow_integration_config.endpoint_name.",
                        "type": "string"
                    },
                    "referrerName": {
                        "description": "The referrer's resource name.",
                        "type": "string"
                    },
                    "referrerType": {
                        "description": "issuer, client, audience, realm, provider, factor, accessResourceType or accessSubjectType.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.EventSearchHistogramResponse": {
                "properties": {
                    "histogram": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HistogramResult"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.EventSearchPredicatesResponse": {
                "properties": {
                    "predicates": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.SearchPredicateDescriptor"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.EventSearchResult": {
                "properties": {
                    "entity": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Event"
                    },
                    "score": {
                        "format": "float",
                        "type": "number"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ExportApplicationSamlMetadataResponse": {
                "properties": {
                    "endpointUrl": {
                        "description": "The endpoint the partner sends to: the ACS in the SP role, the SSO service in the IdP role.",
                        "type": "string"
                    },
                    "entityId": {
                        "description": "Our entity id, as it appears in the document.",
                        "type": "string"
                    },
                    "metadataXml": {
                        "description": "The document to hand the partner.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ExportProviderSamlMetadataResponse": {
                "properties": {
                    "endpointUrl": {
                        "description": "The endpoint the partner sends to: the ACS in the SP role, the SSO service in the IdP role.",
                        "type": "string"
                    },
                    "entityId": {
                        "description": "Our entity id, as it appears in the document.",
                        "type": "string"
                    },
                    "metadataXml": {
                        "description": "The document to hand the partner.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.HomeSummary": {
                "properties": {
                    "asOf": {
                        "description": "When the numbers were computed; the window ends here. Cached for api.homeSummary.ttl (60 s by default).",
                        "format": "date-time",
                        "type": "string"
                    },
                    "events": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HomeSummaryEvents"
                    },
                    "people": {
                        "description": "One entry per realm of the tenant, refused ones included.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HomeSummaryDirectory"
                        },
                        "type": "array"
                    },
                    "range": {
                        "type": "string"
                    },
                    "window": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HomeSummaryWindow"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ImportApplicationSamlMetadataResponse": {
                "properties": {
                    "application": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Application"
                    },
                    "certificates": {
                        "description": "Every certificate the document published, in document order. Existing rows are reused, not duplicated.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Certificate"
                        },
                        "type": "array"
                    },
                    "changes": {
                        "description": "One line per field the document changes, for an operator to read before confirming.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "warnings": {
                        "description": "Things the document says that kit cannot act on — an expired certificate, more signing certificates than kit can verify against.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ImportProviderSamlMetadataResponse": {
                "properties": {
                    "certificates": {
                        "description": "Every certificate the document published, in document order. Existing rows are reused, not duplicated.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Certificate"
                        },
                        "type": "array"
                    },
                    "changes": {
                        "description": "One line per field the document changes, for an operator to read before confirming.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "provider": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Provider"
                    },
                    "warnings": {
                        "description": "Things the document says that kit cannot act on — an expired certificate, more signing certificates than kit can verify against.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.InstallCapabilities": {
                "properties": {
                    "customDomains": {
                        "$ref": "#/components/schemas/authwise.identity.v1alpha1.CustomDomainsCapability"
                    },
                    "features": {
                        "description": "Named kit behaviours a product may require, e.g. guard.tenant-collapse. Check membership; absent means this kit lacks it.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "kitVersion": {
                        "description": "This kit build's version. Informational: never compare it, check features.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.InstallLicenseKeys": {
                "properties": {
                    "source": {
                        "description": "embedded (built into this release), file (license.keys) or fetched (from the portal).",
                        "type": "string"
                    },
                    "updatedAt": {
                        "description": "The set's own updated_at; the newest set is used.",
                        "format": "date-time",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.InstallLicenseStatus": {
                "properties": {
                    "checkedAt": {
                        "description": "When the license was last checked: at boot and daily.",
                        "format": "date-time",
                        "type": "string"
                    },
                    "exp": {
                        "description": "When the license expires; unset unless it verified.",
                        "format": "date-time",
                        "type": "string"
                    },
                    "graceUntil": {
                        "description": "exp plus the license's grace days; unset unless it verified.",
                        "format": "date-time",
                        "type": "string"
                    },
                    "keys": {
                        "$ref": "#/components/schemas/authwise.identity.v1alpha1.InstallLicenseKeys"
                    },
                    "licenseId": {
                        "description": "The license's id (lic-…); empty unless the license verified.",
                        "type": "string"
                    },
                    "org": {
                        "description": "The licensed organization's id (org-…); empty unless the license verified.",
                        "type": "string"
                    },
                    "plan": {
                        "description": "The license's plan, e.g. FREE; empty unless the license verified.",
                        "type": "string"
                    },
                    "state": {
                        "description": "absent, valid, grace, expired, revoked or invalid. Recorded and reported only: no state changes what the install does.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.InstallRegistrationStatus": {
                "properties": {
                    "enabled": {
                        "description": "Whether the install registers: on when a license is set, unless install.register is false.",
                        "type": "boolean"
                    },
                    "lastAttemptAt": {
                        "description": "When registration was last attempted; unset if never.",
                        "format": "date-time",
                        "type": "string"
                    },
                    "lastResult": {
                        "description": "ok, or the error of the last attempt; empty if never attempted.",
                        "type": "string"
                    },
                    "payload": {
                        "description": "Exactly the JSON the install sends, or would send, to the portal. For an offline install, upload this verbatim.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.InstallStatus": {
                "properties": {
                    "id": {
                        "description": "install.id, set by the operator; empty when unset.",
                        "type": "string"
                    },
                    "kitVersion": {
                        "description": "This kit build's version.",
                        "type": "string"
                    },
                    "license": {
                        "$ref": "#/components/schemas/authwise.identity.v1alpha1.InstallLicenseStatus"
                    },
                    "name": {
                        "description": "install.name.",
                        "type": "string"
                    },
                    "registration": {
                        "$ref": "#/components/schemas/authwise.identity.v1alpha1.InstallRegistrationStatus"
                    },
                    "url": {
                        "description": "install.url; empty when unset.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.Invitation": {
                "properties": {
                    "clientId": {
                        "description": "The client the person signs in to after accepting, when the inviter named one.",
                        "type": "string"
                    },
                    "consumeTime": {
                        "description": "When it was accepted. Unset unless CONSUMED.",
                        "format": "date-time",
                        "type": "string"
                    },
                    "continueUrl": {
                        "description": "Where the accept page continues, as the inviter set it. Never carries the token.",
                        "type": "string"
                    },
                    "createTime": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "expireTime": {
                        "description": "When the link stops working.",
                        "format": "date-time",
                        "type": "string"
                    },
                    "identifier": {
                        "description": "The sign-in identifier the invitation establishes, as the inviter typed it.",
                        "type": "string"
                    },
                    "invitedBy": {
                        "description": "Who sent it (u-… or c-…). Empty for invitations sent before kit#987 recorded it.",
                        "type": "string"
                    },
                    "providerId": {
                        "description": "The provider the invitation establishes a credential with.",
                        "type": "string"
                    },
                    "state": {
                        "description": "PENDING (the link works), CONSUMED (accepted) or EXPIRED (past expire_time, not accepted). Expired rows are removed by the reaper after a while.",
                        "type": "string"
                    },
                    "userId": {
                        "description": "The invited user (u-…). RevokeInvitation takes this user's name.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.InviteUserResponse": {
                "properties": {
                    "acceptUrl": {
                        "description": "Carries the plaintext token. Returned exactly once per creation and never retrievable again.",
                        "type": "string"
                    },
                    "createdUser": {
                        "description": "False when the invitation attached to a user that already existed.",
                        "type": "boolean"
                    },
                    "deliveryMessageId": {
                        "description": "Platform's id for the message when one was enqueued. Empty when SKIPPED.",
                        "type": "string"
                    },
                    "deliveryReason": {
                        "description": "Why the message was not queued: platform's rejection reason, or kit's skip reason (delivery-unconfigured, recipient-not-email).",
                        "type": "string"
                    },
                    "deliveryStatus": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageDeliveryStatus"
                    },
                    "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "identifier": {
                        "type": "string"
                    },
                    "reissued": {
                        "type": "boolean"
                    },
                    "userId": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListAccessPermissionsByScopeResponse": {
                "properties": {
                    "accessPermissions": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.AccessPermission"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListApplicationSecretsResponse": {
                "properties": {
                    "applicationSecrets": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ApplicationSecret"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListApplicationsResponse": {
                "properties": {
                    "applications": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Application"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListAssetsResponse": {
                "properties": {
                    "assets": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Asset"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListAudiencesResponse": {
                "properties": {
                    "audiences": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Audience"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListCertificatesResponse": {
                "properties": {
                    "certificates": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Certificate"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListDomainsResponse": {
                "properties": {
                    "domains": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Domain"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListEndpointReferrersResponse": {
                "properties": {
                    "referrers": {
                        "description": "Every row of the tenant naming the endpoint; empty when a delete would be allowed.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.EndpointReferrer"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListEndpointsResponse": {
                "properties": {
                    "endpoints": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Endpoint"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListEventsResponse": {
                "properties": {
                    "events": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Event"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListFactorsResponse": {
                "properties": {
                    "factors": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Factor"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListGroupsByUserResponse": {
                "properties": {
                    "groups": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Group"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListGroupsResponse": {
                "properties": {
                    "groups": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Group"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListInvitationsResponse": {
                "properties": {
                    "invitations": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.Invitation"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListIssuerDomainBindingsResponse": {
                "properties": {
                    "issuerDomainBindings": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomainBinding"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListIssuerDomainsResponse": {
                "properties": {
                    "issuerDomains": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomain"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListIssuersResponse": {
                "properties": {
                    "issuers": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Issuer"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListMessageKeysResponse": {
                "properties": {
                    "canSendPasswordReset": {
                        "description": "True when this install can send a password-reset e-mail: it delivers messages (messaging.delivery is not none) and no operator has disabled the password-recovery message. Exactly the check ResetUserPassword refuses on (no_delivery_channel, message_disabled) and the self-service reset is offered on — a realm's self_service_reset shows the login page's link only where this is true too. Install-wide. kit#384.",
                        "type": "boolean"
                    },
                    "messageKeys": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.MessageKeyMetadata"
                        },
                        "type": "array"
                    },
                    "templatesReadOnly": {
                        "description": "True when this install serves message templates from its overlay rather than a database, so every write would be refused. A console reads this to decide whether to offer an editor or a viewer — asking here beats discovering it from a failed save.",
                        "type": "boolean"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListMessageTemplateRevisionsResponse": {
                "properties": {
                    "revisions": {
                        "description": "Newest first. At most 50.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageTemplateRevision"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListMessageTemplatesResponse": {
                "properties": {
                    "messageTemplates": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageTemplate"
                        },
                        "type": "array"
                    },
                    "nextPageToken": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListPasswordRuleSetsResponse": {
                "properties": {
                    "passwordRuleSets": {
                        "description": "Every value ProvisioningPolicy.password_rule_set may take: the default (authwise-baseline) first, `custom` last.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.PasswordRuleSet"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListProvidersResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "providers": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Provider"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListRealmsResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "realms": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Realm"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListScimConnectionsResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "scimConnections": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ScimConnection"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListScimTokensResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "scimTokens": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ScimToken"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListScopesResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "scopes": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Scope"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListSecretsResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "secrets": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Secret"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListThemeVariantsResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "themeVariants": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ThemeVariant"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListThemesResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "themes": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Theme"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListUserAuthenticatorsResponse": {
                "properties": {
                    "authenticators": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.UserAuthenticatorMetadata"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListUserDevicesResponse": {
                "properties": {
                    "devices": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.UserDeviceMetadata"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListUserIdentifiersResponse": {
                "properties": {
                    "identifiers": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.UserIdentifierMetadata"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListUsersByGroupResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "users": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.User"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ListUsersResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "users": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.User"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.MakeDefaultThemeVariantResponse": {
                "properties": {
                    "default": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ThemeVariant"
                    },
                    "previous": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ThemeVariant"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.MessageKeyMetadata": {
                "properties": {
                    "channels": {
                        "description": "The channels this key renders in. Only \"email\" today.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "defaults": {
                        "description": "The template sources kit ships for this key, one entry per channel and shipped locale — what a recipient gets when the tenant has no copy. Template SOURCE, not rendered output: a console prefills an editor from it, and \"Start over from kit's default\" restores it. Read only, so it needs no permission beyond listing the keys. kit#673.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.MessageTemplateDefault"
                        },
                        "type": "array"
                    },
                    "description": {
                        "description": "What this message is and when it is sent.",
                        "type": "string"
                    },
                    "disabled": {
                        "description": "True when an operator has switched this message off in this install's configuration (messaging.keys.\u003ckey\u003e.disabled), so kit sends nothing for it and reports SKIPPED with reason key-disabled. Read it before telling an author their message is live: :sendTest deliberately still delivers on a disabled key, so that a message can be inspected before it is turned on — which means a test send that arrives is NOT evidence that real sends happen. False for a key no operator has named, which is also what an older server reports, so the safe reading is the default one. Install-wide rather than per-tenant, unlike locales.",
                        "type": "boolean"
                    },
                    "key": {
                        "description": "The key a MessageTemplate row names, e.g. \"tenant-invitation\".",
                        "type": "string"
                    },
                    "locales": {
                        "description": "The locales this key can be rendered in for this tenant: the ones the build ships plus any the tenant has added by overriding them. A tenant may write a locale kit does not ship, and that locale then appears here.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "parts": {
                        "description": "The message's named parts, in the order the built-in layout shows them (kit#953). A copy in the texts shape sets any of them by name; a part it leaves out keeps the built-in wording.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.MessagePart"
                        },
                        "type": "array"
                    },
                    "sample": {
                        "description": "Realistic values for those variables. The same ones save-time validation renders against and :render previews with, so \"it validated\" and \"the preview looked right\" are one fact rather than two that can disagree.",
                        "type": "object"
                    },
                    "variables": {
                        "description": "The variables a template for this key may reference, as a JSON Schema object. Derived from the Go struct the templates render against, so what a console offers and what a template may use cannot disagree. Every leaf carries title (the human label), description, x-source (where the value comes from: theme_variant, tenant, issuer, realm, recipient or ceremony) and x-role (how a template may use it: text, url, color, datetime, flag or list). kit#702.",
                        "type": "object"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.MessagePart": {
                "properties": {
                    "channel": {
                        "description": "\"email\" or \"sms\".",
                        "type": "string"
                    },
                    "defaults": {
                        "description": "The built-in wording, one entry per shipped locale: template source in kit's syntax, which may branch on the variants' cases.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.MessagePartDefault"
                        },
                        "type": "array"
                    },
                    "description": {
                        "description": "What the part is for and where it appears.",
                        "type": "string"
                    },
                    "name": {
                        "description": "The texts key, e.g. \"subject\", \"greeting\", \"body\", \"button\", \"details\", \"note\", or \"text\" for a text message.",
                        "type": "string"
                    },
                    "title": {
                        "description": "The part's label, in words.",
                        "type": "string"
                    },
                    "variants": {
                        "description": "The cases this part's built-in wording differs by, in the order kit tries them; empty when it says one thing. A copy may set the part for every case (texts[\"body\"]) or for one case (texts[\"body.administration\"]); per send kit uses the case's own text, then the part's, then the built-in for that case.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.MessagePartVariant"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.MessagePartDefault": {
                "properties": {
                    "locale": {
                        "type": "string"
                    },
                    "source": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.MessagePartVariant": {
                "properties": {
                    "defaults": {
                        "description": "The built-in wording for this case, one entry per shipped locale: what a send in this case says when the copy sets neither this case nor the part.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.MessagePartDefault"
                        },
                        "type": "array"
                    },
                    "name": {
                        "description": "The case's name; texts key \u003cpart\u003e.\u003cname\u003e.",
                        "type": "string"
                    },
                    "title": {
                        "description": "The case in a few words, e.g. \"Invited to administer a tenant\".",
                        "type": "string"
                    },
                    "when": {
                        "description": "When this case applies, as a sentence for a person. The last case may be \"Otherwise\".",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.MessageTemplateDefault": {
                "properties": {
                    "channel": {
                        "description": "\"email\" or \"sms\".",
                        "type": "string"
                    },
                    "htmlBody": {
                        "description": "The HTML body's html/template source: what a recipient's mail client shows until the tenant publishes a copy. Email only.",
                        "type": "string"
                    },
                    "locale": {
                        "description": "A locale kit ships for this key. A locale only a tenant has written has no default and no entry.",
                        "type": "string"
                    },
                    "mjml": {
                        "description": "A starter for the layout editor: MJML saying what html_body says, built only from mj-section, mj-column, mj-text, mj-button, mj-image, mj-divider and mj-spacer, with template actions kept inline as text. Never sent: html_body stays the default until a tenant publishes. Email only.",
                        "type": "string"
                    },
                    "subject": {
                        "description": "The subject's text/template source. Email only.",
                        "type": "string"
                    },
                    "textBody": {
                        "description": "The plain body's text/template source: the text part of an e-mail, or the whole of a text message.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.PasswordRule": {
                "properties": {
                    "description": {
                        "description": "What the form shows, e.g. \"At least 12 characters\".",
                        "type": "string"
                    },
                    "parameters": {
                        "description": "The rule's parameters as a form reads them, e.g. {\"min\": 12}; server_only marks a rule only the submit checks.",
                        "type": "object"
                    },
                    "type": {
                        "description": "min_length, max_length, regexp, entropy, common_password or not_identifier.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.PasswordRuleSet": {
                "properties": {
                    "description": {
                        "type": "string"
                    },
                    "name": {
                        "description": "What ProvisioningPolicy.password_rule_set names; an empty field means authwise-baseline.",
                        "type": "string"
                    },
                    "passwordRules": {
                        "description": "The rules a realm naming this set with no extras applies, built-in floor included, in the order and shape a set-password form's password_rules lists them.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.PasswordRule"
                        },
                        "type": "array"
                    },
                    "since": {
                        "description": "The date (YYYY-MM-DD) the set last changed. A shipped set only ever strengthens; the release note says how.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.PublishMessageTemplateResponse": {
                "properties": {
                    "messageTemplate": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageTemplate"
                    },
                    "revision": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageTemplateRevision"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.RealmAuthenticationContextSchema": {
                "properties": {
                    "factorTypes": {
                        "description": "Every factor type kit knows, and whether this build runs it.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.AuthenticationFactorType"
                        },
                        "type": "array"
                    },
                    "providerTypes": {
                        "description": "Every provider type kit knows, and whether this build runs it (kit#600).",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.AuthenticationProviderType"
                        },
                        "type": "array"
                    },
                    "variables": {
                        "description": "What a rule condition may read, in the order the docs list them.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.AuthenticationContextVariable"
                        },
                        "type": "array"
                    },
                    "warnings": {
                        "description": "The realm's stored policy judged against its enabled factors: what a write would return as Authwise-Warning.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.RemoveUserIdentifierResponse": {
                "properties": {
                    "removed": {
                        "$ref": "#/components/schemas/authwise.identity.v1alpha1.UserIdentifierMetadata"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.RenderMessageTemplateResponse": {
                "properties": {
                    "brandIssuer": {
                        "description": "The issuer the brand was resolved for (i-…); empty when brand_source is \"sample\".",
                        "type": "string"
                    },
                    "brandSource": {
                        "description": "Where Brand.DisplayName came from: \"branding\" (the tenant's branding.display_name, kit#953), \"tenant\" (its display name), \"issuer_host\" (neither named one), or \"sample\" (the tenant has no issuer, so the catalog's sample brand was used). A theme variant's display_name is its label and never names the brand (kit#945). kit#701.",
                        "type": "string"
                    },
                    "brandThemeVariant": {
                        "description": "The theme variant that was read (ap-…), whether or not it named the brand — the place to change it. Empty when the issuer has none.",
                        "type": "string"
                    },
                    "htmlBody": {
                        "type": "string"
                    },
                    "locale": {
                        "description": "The locale that was actually rendered, which is not always the one requested. Returned so a console can say \"showing en, you asked for fr-CA\" rather than silently showing the wrong thing.",
                        "type": "string"
                    },
                    "subject": {
                        "type": "string"
                    },
                    "textBody": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ReportDomainResponse": {
                "properties": {
                    "applied": {
                        "description": "False when the transition made no sense for the row's state and was ignored (and logged).",
                        "type": "boolean"
                    },
                    "domain": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Domain"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ReportIssuerDomainResponse": {
                "properties": {
                    "applied": {
                        "description": "False when the transition made no sense for the row's state and was ignored (and logged).",
                        "type": "boolean"
                    },
                    "issuerDomain": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomain"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ResetSignInLimitsResponse": {
                "properties": {
                    "cleared": {
                        "description": "The limits that held hits and are now clear; empty when none did.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.ClearedSignInLimit"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.ResetUserPasswordResponse": {
                "properties": {
                    "deliveryMessageId": {
                        "description": "Platform's id for the message when one was enqueued.",
                        "type": "string"
                    },
                    "deliveryReason": {
                        "description": "Why the message was not queued, when it was not.",
                        "type": "string"
                    },
                    "deliveryStatus": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageDeliveryStatus"
                    },
                    "expiresAt": {
                        "description": "When the link stops working.",
                        "format": "date-time",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.RevokeInvitationResponse": {
                "properties": {
                    "revokedCount": {
                        "description": "Pending invitations withdrawn: their links now answer as unknown. The user stays; DeleteUser removes it.",
                        "format": "int32",
                        "type": "integer"
                    },
                    "userId": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.RotateCertificateResponse": {
                "properties": {
                    "predecessor": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Certificate"
                    },
                    "successor": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Certificate"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.SearchEventsResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "results": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.EventSearchResult"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.SearchUsersResponse": {
                "properties": {
                    "nextPageToken": {
                        "type": "string"
                    },
                    "results": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.identity.v1alpha1.UserSearchResult"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.SendTestMessageResponse": {
                "properties": {
                    "brandIssuer": {
                        "description": "The issuer the brand was resolved for (i-…); empty when brand_source is \"sample\".",
                        "type": "string"
                    },
                    "brandSource": {
                        "description": "Where Brand.DisplayName came from: \"branding\" (the tenant's branding.display_name, kit#953), \"tenant\" (its display name), \"issuer_host\" (neither named one), or \"sample\" (the tenant has no issuer, so the catalog's sample brand was used). A theme variant's display_name is its label and never names the brand (kit#945). kit#701.",
                        "type": "string"
                    },
                    "brandThemeVariant": {
                        "description": "The theme variant that was read (ap-…), whether or not it named the brand — the place to change it. Empty when the issuer has none.",
                        "type": "string"
                    },
                    "deliveryStatus": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageDeliveryStatus"
                    },
                    "locale": {
                        "description": "The locale that was sent, as for :render.",
                        "type": "string"
                    },
                    "messageId": {
                        "type": "string"
                    },
                    "reason": {
                        "description": "Why delivery did not happen, when it did not. Empty on success.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.UserAuthenticatorMetadata": {
                "properties": {
                    "createdAt": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "displayName": {
                        "type": "string"
                    },
                    "factorType": {
                        "description": "totp, webauthn, otp-email, otp-sms, recovery-code, duo, external.",
                        "type": "string"
                    },
                    "id": {
                        "description": "The authenticator's id, what revokeAuthenticator takes.",
                        "type": "string"
                    },
                    "lastUsedAt": {
                        "description": "Unset when it was never used.",
                        "format": "date-time",
                        "type": "string"
                    },
                    "status": {
                        "description": "active, or disabled after repeated failures.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.UserDeviceMetadata": {
                "properties": {
                    "displayName": {
                        "type": "string"
                    },
                    "id": {
                        "description": "The device's id, what revokeDevice takes. Never the cookie digest.",
                        "type": "string"
                    },
                    "lastIp": {
                        "type": "string"
                    },
                    "lastSeenAt": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "revokedAt": {
                        "description": "Set when trust has ended.",
                        "format": "date-time",
                        "type": "string"
                    },
                    "trustedUntil": {
                        "description": "Unset once revoked.",
                        "format": "date-time",
                        "type": "string"
                    },
                    "userAgentFamily": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.UserIdentifierMetadata": {
                "properties": {
                    "createdAt": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "credentialEstablished": {
                        "description": "Whether a password is set. Never the credential itself — this answers \"can they sign in yet\", which is the question the surface exists for. False is normal for a federated identifier, where the upstream provider authenticates.",
                        "type": "boolean"
                    },
                    "identifier": {
                        "description": "The login identifier itself — normally an email address or username.",
                        "type": "string"
                    },
                    "kind": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.UserIdentifierKind"
                    },
                    "lastUsedAt": {
                        "description": "The last completed sign-in through this identifier. Unset means never.",
                        "format": "date-time",
                        "type": "string"
                    },
                    "providerDisplayName": {
                        "description": "The provider's display name, for a page to print.",
                        "type": "string"
                    },
                    "providerId": {
                        "description": "The provider this identifier signs in through.",
                        "type": "string"
                    },
                    "providerType": {
                        "description": "The provider's type — google, oidc, usernamePassword, magicLink. The mark a page shows derives from it.",
                        "type": "string"
                    },
                    "updatedAt": {
                        "description": "Moves when the credential is re-established, so it doubles as \"password last changed\".",
                        "format": "date-time",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.UserSearchHistogramResponse": {
                "properties": {
                    "histogram": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HistogramResult"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.UserSearchPredicatesResponse": {
                "properties": {
                    "predicates": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.SearchPredicateDescriptor"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.identity.v1alpha1.UserSearchResult": {
                "properties": {
                    "entity": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.User"
                    },
                    "score": {
                        "format": "float",
                        "type": "number"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.AccessConfig": {
                "description": "AccessConfig holds the audience-level Authwise Access settings.\nPer-resource-type and per-subject-type expansion settings live in\nruntime tables managed via the access.v1 API; the fields here are\naudience-level defaults consulted when a type does not declare its\nown override.\n\nThere is no longer a mode that gates them. Every audience's catalog is\nlive for its own tokens (kit#506), so an audience that declares no\nexpander endpoints simply has no pull-mode defaults, which is a\ndifferent statement from \"Access is off here\".",
                "properties": {
                    "decisionSampling": {
                        "description": "decision_sampling is the percentage of ALLOW decisions recorded as\n`access.decision` audit events, 0-100 (docswip/EVENTS.md §4.9).\n\nDENY is never sampled and this field cannot turn it off. A refused\nauthorization is the fact the catalog exists to record; an allow is\nevidence, and evidence at one row per check is a firehose — the runtime\nsurface answers a Check per protected action of every caller, which is\norders of magnitude more traffic than the admin API produces.\n\nThe zero value records no allows, which is the safe default and the\nhonest reading of an unset field: an install that has said nothing\nabout sampling has not asked for the volume.\n\n# Why this is on the audience and not on the realm\n\nThe design staged it as a realm setting, and the realm is the wrong\nscope for the thing being sampled. An Access decision is evaluated\nagainst a CATALOG, and a catalog is an audience (kit#506): the rows the\nevaluator reads are the audience's roles, permissions, bindings and\nconditions, and the runtime credential model resolves a tenant, an\nissuer and an audience from the bearer — never a realm. A realm-keyed\nknob would be a setting no decision could ever look up, which is worse\nthan no knob at all: it would report as configured and sample nothing.",
                        "format": "int32",
                        "type": "integer"
                    },
                    "defaultResourceExpanderEndpointName": {
                        "description": "Default Endpoint name for pull-mode resource-parent expansion when\na resource type does not declare its own endpoint. References an\nEndpoint row by name (see authwise.types.core.v1alpha1.Endpoint).",
                        "type": "string"
                    },
                    "defaultSubjectExpanderEndpointName": {
                        "description": "Default Endpoint name for pull-mode subject-group expansion.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.AccessPermission": {
                "description": "AccessPermission is a namespaced action (e.g. \"idm.tenants.create\",\n\"invoices.read\"). resource_type is optional and constrains the\npermission to a specific resource type. Provenance is `service`, which\nalready namespaces the shared admin audience (identity.* vs\nguardcontrol.*).",
                "properties": {
                    "description": {
                        "type": "string"
                    },
                    "name": {
                        "description": "The resource name, which for this resource is also its KEY. Unlike every\nother resource in this file it is client-supplied and REQUIRED on create:\nthere is no generated id for the server to render a name from, so the\ncreate service reads this field and uses it as the row's key. It is\nignored on update — renaming is not an operation.\n\nThis comment must never contain the phrase protoc-gen-openapiv2 keys\nreadOnly off — it matches the words wherever they appear, not only at\nthe start, so even quoting them here to say \"not that\" marked all four\nof these fields read-only and would have broken every create. Making\nthe surface uniform means giving create a separate client-specified id\nfield (AIP-133); it is a change to the create surface, not a comment.",
                        "type": "string"
                    },
                    "resourceType": {
                        "title": "@gotags: yaml:\"resource_type\"",
                        "type": "string"
                    },
                    "service": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.AcrLevel": {
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "require": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Requirement"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.Application": {
                "properties": {
                    "applicationUrl": {
                        "title": "@gotags: yaml:\"application_url\"",
                        "type": "string"
                    },
                    "audienceId": {
                        "type": "string"
                    },
                    "config": {
                        "$ref": "#/components/schemas/google.protobuf.Any"
                    },
                    "displayName": {
                        "type": "string"
                    },
                    "expiresAt": {
                        "description": "When set, the token endpoint refuses the client after it.\n\n@gotags: yaml:\"expires_at\"",
                        "format": "date-time",
                        "type": "string"
                    },
                    "grantTypes": {
                        "description": "The grants the client may use at the token endpoint, RFC 7591 §2\nvalues: authorization_code, refresh_token, client_credentials, and\nsaml_idp for a SAML relying party. A grant not listed is refused\nunauthorized_client, and a refresh token is issued only to a client\nthat lists refresh_token. Required.\n\n@gotags: yaml:\"grant_types\"",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "kind": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ApplicationKind"
                    },
                    "labels": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "loginUrl": {
                        "title": "@gotags: yaml:\"login_url\"",
                        "type": "string"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.\nFor a human-readable label, use display_name.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "owningTenantId": {
                        "description": "Output only. The tenant this client is a service account of (kit#755,\ndocswip/SERVICE_ACCOUNTS.md): set by the tenancy surface's\nCreateServiceAccount and never changed after. Empty on every other\nclient. A create naming it, or an update changing it, is refused\nINVALID_ARGUMENT; an update leaving it empty keeps the stored value.\n\n@gotags: yaml:\"owning_tenant_id\"",
                        "readOnly": true,
                        "type": "string"
                    },
                    "postLogoutRedirectUris": {
                        "items": {
                            "type": "string"
                        },
                        "title": "@gotags: yaml:\"post_logout_redirect_uris\"",
                        "type": "array"
                    },
                    "status": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ApplicationStatus"
                    },
                    "themeVariantId": {
                        "title": "@gotags: yaml:\"theme_variant_id\"",
                        "type": "string"
                    },
                    "tokenEndpointAuthMethod": {
                        "description": "How the client authenticates at the token endpoint, RFC 7591 §2:\nclient_secret_basic, client_secret_post or none. `none` is a public\nclient — it may hold no secret and must use PKCE — and only an\nAPPLICATION may be one. private_key_jwt is refused until kit#411.\nDefaults to none for an APPLICATION, client_secret_basic otherwise.\n\n@gotags: yaml:\"token_endpoint_auth_method\"",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.ApplicationKind": {
                "default": "APPLICATION_KIND_UNSPECIFIED",
                "description": "ClientKind is what a client is (kit#404, AGENT_SECURITY.md §3.2).\nINTERACTIVE signs people in; SERVICE is a machine principal; AGENT is a\nservice that may also act for users. It sets the defaults a client gets\nand what it may be registered with — `none` authentication is\nINTERACTIVE's alone.",
                "enum": [
                    "APPLICATION_KIND_UNSPECIFIED",
                    "APPLICATION_KIND_INTERACTIVE",
                    "APPLICATION_KIND_SERVICE",
                    "APPLICATION_KIND_AGENT"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.ApplicationSecret": {
                "properties": {
                    "expiresAt": {
                        "description": "expires_at is optional; nil means the secret never expires.\n\n@gotags: yaml:\"expires_at,omitempty\"",
                        "format": "date-time",
                        "type": "string"
                    },
                    "hashEnabled": {
                        "title": "@gotags: yaml:\"hash_enabled\"",
                        "type": "boolean"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.",
                        "readOnly": true,
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.ApplicationStatus": {
                "default": "APPLICATION_STATUS_UNSPECIFIED",
                "description": "ApplicationStatus is the application's standing (kit#404). DISABLED and QUARANTINED\nboth refuse the token endpoint with invalid_client, and introspection\nanswers their tokens inactive. QUARANTINED is the kill switch: kit#428\nadds revoking every live token of the client.",
                "enum": [
                    "APPLICATION_STATUS_UNSPECIFIED",
                    "APPLICATION_STATUS_ACTIVE",
                    "APPLICATION_STATUS_DISABLED",
                    "APPLICATION_STATUS_QUARANTINED"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.Asset": {
                "properties": {
                    "displayName": {
                        "type": "string"
                    },
                    "labels": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "mimeType": {
                        "title": "@gotags: yaml:\"media_type\"",
                        "type": "string"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.\nFor a human-readable label, use display_name.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "path": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.AssociationRequest": {
                "properties": {
                    "remove": {
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "set": {
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.Audience": {
                "properties": {
                    "config": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.AudienceConfig"
                    },
                    "displayName": {
                        "type": "string"
                    },
                    "labels": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.\nFor a human-readable label, use display_name.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "status": {
                        "description": "\"active\" (the default; empty reads as active) or \"disabled\" (kit#972).\nTurning this audience off stops token issue for it at once, the refresh grant included. Nothing under it is removed, and\nturning it on restores it. A whole-record update that leaves status\nempty keeps the stored one. The administration tenant's own audiences cannot\nbe turned off.",
                        "type": "string"
                    },
                    "themeVariantId": {
                        "title": "@gotags: yaml:\"theme_variant_id\"",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.AudienceAuthorizationConfig": {
                "description": "AudienceAuthorizationConfig configures the audience's Authwise Access\nsettings.\n\nField 1 was `AuthorizationMode mode`, the SIMPLE-or-ACCESS selector\nadded in kit#21 and removed in kit#506. There is one authorization\nscheme — Authwise Access — and the flat `roles` / `permissions` claims\nare a projection of root-anchored bindings rather than a second model\n(docswip/AW_AUTHZ.md Turn 8, kit#505). A field that selected between\ntwo schemes has nothing left to select between, and leaving it in\nplace would keep offering a choice the engine no longer honours.\n\nThe number and the name are reserved rather than reused: a stored\nconfig written by the console before kit#506 still carries `mode`, and\na future field at 1 would silently inherit its value.",
                "properties": {
                    "access": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.AccessConfig"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.AudienceConfig": {
                "properties": {
                    "accessTokenClaimScopes": {
                        "description": "The OpenID Connect scopes whose claims are also written into the access\ntokens created for this audience (kit#892), so a resource server that\nvalidates the bearer can show who called without a userinfo round trip.\nAny of `profile`, `email`, `phone`, each at most once; anything else is\nrefused. Default empty: the access token carries no profile claims.\n\nA claim is copied only when the grant was given its scope, so the access\ntoken carries exactly what the ID token for the same grant carries for\nthose scopes and never more: `email` listed here and not granted to the\nclient puts no email in the token.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "accessTokenExpireSeconds": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "authorization": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.AudienceAuthorizationConfig"
                    },
                    "cors": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.CorsConfig"
                    },
                    "flowIntegrationConfig": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IntegrationConfig"
                    },
                    "interactionForwardUri": {
                        "type": "string"
                    },
                    "refreshTokenAbsoluteExpireSeconds": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "refreshTokenExpireSeconds": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "scopes": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ScopesConfig"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.AuthenticationPolicy": {
                "description": "AuthenticationPolicy is how strongly a person must prove who they are to\nthis realm (docswip/AUTHENTICATION.md §6.1).\n\nOrdered RULES rather than an execution tree. A Keycloak-style tree of\nREQUIRED / ALTERNATIVE / CONDITIONAL nodes is what a rule set COMPILES to,\nand authoring it directly is the part every operator gets wrong and that\nterraform cannot validate. A rule is a condition and an outcome; the tree\nis the plan compiler's business.\n\nThe FLOOR is the whole reason rules are safe. Adaptive authentication\nmeans rules may RELAX a requirement — no second factor on a trusted device\nat low risk is the point of the feature — and a misjudged rule, or a\ncompromised external risk evaluator, must not be able to relax below what\nthe realm meant. Every rule's outcome is raised to the floor, so the worst\na bad rule can do is ask for more.",
                "properties": {
                    "acrLevels": {
                        "description": "The acr vocabulary this realm can emit: a name and what a session must\nsatisfy to have earned it. Evaluated in order and the LAST satisfied\nentry is the emitted acr, so they are listed weakest first.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.AcrLevel"
                        },
                        "type": "array"
                    },
                    "enrollment": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.EnrollmentPolicy"
                    },
                    "floor": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Requirement"
                    },
                    "rememberDevice": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.RememberDevicePolicy"
                    },
                    "risk": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.RiskPolicy"
                    },
                    "rules": {
                        "description": "Rules, evaluated in order; the first whose condition holds decides. A\nrealm with no rules behaves as one rule `true` -\u003e the floor.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.AuthenticationRule"
                        },
                        "type": "array"
                    },
                    "session": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.SessionPolicy"
                    },
                    "throttle": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.FactorThrottle"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.AuthenticationRule": {
                "properties": {
                    "condition": {
                        "description": "condition is CEL over the authentication context (§6.2). Empty or\n\"true\" always matches, which is what makes a default rule last.",
                        "type": "string"
                    },
                    "name": {
                        "description": "name is the `rule` attribute on the authn.login row. It is how an\noperator answers \"why was I asked for a factor\", so an unnamed rule is\nrefused by admission.",
                        "type": "string"
                    },
                    "require": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Requirement"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.AuthorizationConfig": {
                "properties": {
                    "includePermissions": {
                        "type": "boolean"
                    },
                    "includeRoles": {
                        "type": "boolean"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.BotProtection": {
                "description": "BotProtection is a realm's challenge at the anonymous request surfaces:\nmagic-link request and resend, the one-time-code resend, and userpass\nsignup (docswip/AUTHENTICATION.md §35).\n\nThe login UI renders the provider's widget with site_key and posts the\ntoken it yields as `bot_token`; kit verifies it before the surface does\nanything — before its throttles too, so a script that cannot pass the\nchallenge cannot spend a person's request budget either.",
                "properties": {
                    "endpointName": {
                        "description": "endpoint_name is the Endpoint serving AuthwiseBotCheckService, for\nENDPOINT.",
                        "type": "string"
                    },
                    "failMode": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.BotProtection.FailMode"
                    },
                    "minScore": {
                        "description": "min_score is the lowest score a SCORE key's token may carry, 0 to 1; a\ntoken below it is refused like a failed check. 0 means the default,\n0.5. Refused for anything but a SCORE key.",
                        "format": "float",
                        "type": "number"
                    },
                    "mode": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.BotProtection.Mode"
                    },
                    "provider": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.BotProtection.Provider"
                    },
                    "recaptchaKeyType": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.BotProtection.RecaptchaKeyType"
                    },
                    "refuseDisposableSignup": {
                        "description": "refuse_disposable_signup refuses account CREATION from an address on\nthe disposable-domain list (§35.6). Without it the domain is a risk\nsignal and an audit attribute only. Existing accounts still sign in.",
                        "type": "boolean"
                    },
                    "secretRef": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.SecretRef"
                    },
                    "siteKey": {
                        "description": "site_key is the provider's PUBLIC key, exported to the login UI so it\ncan render the widget. Never a secret.",
                        "type": "string"
                    },
                    "timeout": {
                        "description": "timeout bounds one verification. Default 3s.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.BotProtection.FailMode": {
                "default": "CLOSED",
                "description": " - CLOSED: CLOSED — a verifier that cannot be reached has not said the request\nis a person's, so it is treated as failed. The default.",
                "enum": [
                    "CLOSED",
                    "OPEN"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.BotProtection.Mode": {
                "default": "OFF",
                "description": " - OFF: OFF — no challenge. The default.\n - ALWAYS: ALWAYS — every request on the guarded surfaces carries a token.\n - ADAPTIVE: ADAPTIVE — reserved, and refused at admission: a challenge only when\nthe request looks automated needs a pre-authentication signal kit\ndoes not compute yet (§35.1 B2).",
                "enum": [
                    "OFF",
                    "ALWAYS",
                    "ADAPTIVE"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.BotProtection.Provider": {
                "default": "PROVIDER_UNSPECIFIED",
                "description": " - TURNSTILE: Cloudflare Turnstile, verified at its siteverify URL.\n - HCAPTCHA: hCaptcha, verified at its siteverify URL.\n - ENDPOINT: ENDPOINT — any other verifier, behind an Endpoint row that serves\nAuthwiseBotCheckService.\n - RECAPTCHA: Google reCAPTCHA, verified at its SiteVerify URL with the key's\nlegacy secret key (kit#981). Needs recaptcha_key_type. A Google Cloud\nproject without billing that passes Google's free monthly quota\nanswers every token \"success\" with a static score; kit treats that\nanswer as a failed check, so the fix is billing on the project.",
                "enum": [
                    "PROVIDER_UNSPECIFIED",
                    "TURNSTILE",
                    "HCAPTCHA",
                    "ENDPOINT",
                    "RECAPTCHA"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.BotProtection.RecaptchaKeyType": {
                "default": "RECAPTCHA_KEY_TYPE_UNSPECIFIED",
                "description": "The reCAPTCHA key's type (kit#981). Required for RECAPTCHA, refused for\nany other provider.\n\n - CHECKBOX: CHECKBOX — a v2 checkbox key: a visible widget.\n - SCORE: SCORE — a v3 score key: no widget, a score per request.",
                "enum": [
                    "RECAPTCHA_KEY_TYPE_UNSPECIFIED",
                    "CHECKBOX",
                    "SCORE"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.Branding": {
                "description": "Branding is a tenant's brand, by reference to its own assets. kit never\nrenders it; the admin console and the mail brand resolver do.",
                "properties": {
                    "displayName": {
                        "description": "The brand's name as a person reads it in mail: the message text and\nthe From name (kit#953, kit#945). At most 64 characters, with no\ncontrol character and none of \u003c \u003e \". Unset: the tenant's display name,\nthen the issuer's host. A theme variant's display_name is its\nlabel in the console and never reaches mail.",
                        "type": "string"
                    },
                    "logoAssetId": {
                        "description": "The id segment of an Asset in this tenant whose mime_type is an image\ntype (authwise.io/Asset). Refused when it names no such asset in this\ntenant; deleting the asset is refused while this names it.",
                        "type": "string"
                    },
                    "logoDarkAssetId": {
                        "description": "The same, for a dark colour scheme. Optional: a reader falls back to\nlogo_asset_id. Refused without logo_asset_id — a dark variant of no\nlogo is not a logo.",
                        "type": "string"
                    },
                    "themeId": {
                        "description": "The tenant's look: a Theme of this tenant, by id, the default theme\nwherever no theme variant applies (kit#968), and a tenant created\nafter kit#953 starts with one. Refused when it names no theme of this\ntenant; deleting the theme is refused while this names it.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.Certificate": {
                "description": "Certificate is metadata over a row in the keys table: everything an\noperator or an API client needs to reason about a certificate, and nothing\nthat would let them extract the private half.\n\ncertificate_pem is the public certificate only. There is no RPC that\nreturns private material and there is not going to be one; has_private_key\nis a boolean because that is the entire answer a caller is owed.",
                "properties": {
                    "certificatePem": {
                        "description": "Output only. The public certificate, PEM encoded.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "displayName": {
                        "type": "string"
                    },
                    "fingerprintSha256": {
                        "description": "Output only. Lower-case hex SHA-256 over the DER. Unique per tenant: it\nis what makes importing the same partner certificate twice idempotent.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "hasPrivateKey": {
                        "description": "Output only. False for an imported partner certificate.",
                        "readOnly": true,
                        "type": "boolean"
                    },
                    "importCertificatePem": {
                        "description": "Input only, and only on import: the partner's certificate, PEM encoded.\nOn a read, certificate_pem carries the public certificate of any row,\nimported or created.",
                        "type": "string"
                    },
                    "keyId": {
                        "description": "Output only. The keys row holding the material. This is the id the saml\nlibrary addresses when it signs or verifies.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "keySize": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "labels": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.\nFor a human-readable label, use display_name.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "notAfter": {
                        "description": "Output only. Read from the certificate.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "notBefore": {
                        "description": "Output only. Read from the certificate.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "origin": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.CertificateOrigin"
                    },
                    "status": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.CertificateStatus"
                    },
                    "subject": {
                        "description": "Output only. RFC 4514 distinguished name, read from the certificate.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "subjectCommonName": {
                        "description": "Input only, and only on create: the parameters the key pair is created\nwith. They describe how to make the material, not the material, so they\nare never echoed back on a read — subject, not_before and not_after are\nthe answers, read from what was actually produced.\n\nDefaults are applied when unset: the common name falls back to\ndisplay_name, validity to 825 days (the CA/Browser Forum's maximum for a\nserver certificate, and a reasonable SAML rollover period), and the key\nto RSA-2048.",
                        "type": "string"
                    },
                    "use": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.CertificateUse"
                    },
                    "validityDays": {
                        "format": "int32",
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.CertificateOrigin": {
                "default": "CERTIFICATE_ORIGIN_UNSPECIFIED",
                "description": "Where a Certificate's material came from. GENERATED means kit created the\nkey pair and holds the private half, wrapped by Platform. IMPORTED means a\npartner sent a public certificate and there is no private half at all —\nwhich is why keys.key is nullable.",
                "enum": [
                    "CERTIFICATE_ORIGIN_UNSPECIFIED",
                    "CERTIFICATE_ORIGIN_GENERATED",
                    "CERTIFICATE_ORIGIN_IMPORTED"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.CertificateStatus": {
                "default": "CERTIFICATE_STATUS_UNSPECIFIED",
                "description": "Where a Certificate sits in a rollover. Signing uses ACTIVE; verification\naccepts RETIRING as well, so a partner that has not yet picked up the new\ncertificate still validates. RETIRED is neither.",
                "enum": [
                    "CERTIFICATE_STATUS_UNSPECIFIED",
                    "CERTIFICATE_STATUS_ACTIVE",
                    "CERTIFICATE_STATUS_RETIRING",
                    "CERTIFICATE_STATUS_RETIRED"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.CertificateUse": {
                "default": "CERTIFICATE_USE_UNSPECIFIED",
                "description": "What a Certificate may be used for. A partner's metadata declares this per\nKeyDescriptor, and an empty `use` there means both — hence the combined\nvalue rather than a repeated field.",
                "enum": [
                    "CERTIFICATE_USE_UNSPECIFIED",
                    "CERTIFICATE_USE_SIGNING",
                    "CERTIFICATE_USE_ENCRYPTION",
                    "CERTIFICATE_USE_SIGNING_AND_ENCRYPTION"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.CimdConfig": {
                "description": "CimdConfig admits URL-form client_ids on an issuer\n(draft-ietf-oauth-client-id-metadata-document, kit#413; ruled 2026-11-04:\nthe gate is the issuer's, because a client is resolved before any realm).\n\nA URL client is fetched through kit's outbound-URL rule (https, no\nprivate, loopback or link-local destination, no redirects), validated, and\nkept as an APPLICATION client of the audience its request's RFC 8707\n`resource` names, one row per (document URL, audience).",
                "properties": {
                    "allowAnyHost": {
                        "description": "Accept a document from any https host, the MCP \"open server\" posture.\nThe only way to open the issuer to every host; refused beside a\nnon-empty trusted_domains, which it would make meaningless.",
                        "type": "boolean"
                    },
                    "enabled": {
                        "description": "Accept URL-form client_ids. Default false.",
                        "type": "boolean"
                    },
                    "trustedDomains": {
                        "description": "Hosts whose documents are accepted, matched exactly against the URL's\nhost (lower case, no port). Required while enabled, unless\nallow_any_host: fail closed, so turning CIMD on cannot open the issuer\nto every host by leaving the list empty.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.ClaimMap": {
                "description": "ClaimMap maps target names to source paths. It is declared here, rather than\ninside a SAML message, because the same shaping is wanted for OIDC\nfederation and for custom claims on a token; those adopt it without a\nsecond vocabulary to learn.\n\nEvery field is map\u003cstring, string\u003e or repeated string on purpose: tfinfra\ncannot model `repeated \u003cmessage\u003e`, so anything richer would be unreachable\nfrom Terraform, and Terraform is how most of this gets configured.\n\nSource paths are a closed vocabulary, validated at admission — an unknown\npath is InvalidArgument rather than a claim that silently never populates.\nThe list is in docswip/SAML.md §5.1, with the OAuth-family prefixes in\ndocswip/SOCIAL_PROVIDERS.md §4.6, and enforced by pkg/lib/claimmap.\n\nConditions and transforms are deliberately absent. They want an expression\nlanguage, kit already has CEL for Access conditions, and bolting a second\nhalf-language onto a string map would be the wrong shape to live with. That\nis kit#492.",
                "properties": {
                    "map": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "description": "target name → source path.",
                        "type": "object"
                    },
                    "passthrough": {
                        "description": "Source names copied through unchanged when present. Applied after `map`\nand `static`, and never overwrites either.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "static": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "description": "target name → literal value, for claims that do not come from anywhere.",
                        "type": "object"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.ClientMetadataDocument": {
                "description": "ClientMetadataDocument is where a URL-form client came from and when kit\nreads it again.",
                "properties": {
                    "expiresAt": {
                        "description": "When the document is fetched again on the next authorization: the\nresponse's Cache-Control max-age, clamped to [5 min, 24 h].",
                        "format": "date-time",
                        "type": "string"
                    },
                    "fetchedAt": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "url": {
                        "description": "The document's URL, which is the client_id the client sends and the\nclient_id claim on its tokens.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.CorsConfig": {
                "properties": {
                    "allowedOrigins": {
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "allowedOriginsRegexp": {
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.Domain": {
                "description": "Domain is one hostname a tenant serves (kit#808, docswip/DOMAINS_MERGE.md).\nA native domain is the host an issuer is created on; a custom domain\n(issuer_id set) is a customer's own hostname on an issuer (kit#795),\nmoved through its lifecycle by the install's domains controller. Each\ncustom hostname is its own `iss`: discovery at the hostname advertises\nhttps://\u003chostname\u003e, and the issuer's own host keeps working beside it.",
                "properties": {
                    "activatedAt": {
                        "description": "Output only. When the controller first reported ACTIVE.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "bindings": {
                        "description": "Output only. Who answers here: the issuers bound to this domain, each\nat its path (kit#911). Filled on Get; empty in a List.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomainBinding"
                        },
                        "readOnly": true,
                        "type": "array"
                    },
                    "certificateExpiresAt": {
                        "description": "Output only.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "claimExpiresAt": {
                        "description": "Output only. When an unverified claim lapses; unset once verified.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "config": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.DomainConfig"
                    },
                    "createdAt": {
                        "description": "Output only.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "custom": {
                        "description": "A customer's own hostname with its DNS tracking (kit#911,\nTENANT_DOMAINS.md D1). Set on create only, immutable: true claims the\nhostname as a custom domain (DNS records, the plan gate, the domains\ncontroller); false on a native host. On an install that serves custom\nhosts, a create of a hostname outside the native wildcard that sets\nneither custom nor issuer_id nor product is refused\n(DOMAIN_CUSTOM_REQUIRED, kit#925); kit never infers it.",
                        "type": "boolean"
                    },
                    "dnsRecords": {
                        "description": "Output only. The records the customer must create, once the controller\nhas reported them; at most one per purpose.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomainDnsRecord"
                        },
                        "readOnly": true,
                        "type": "array"
                    },
                    "failure": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomainFailure"
                    },
                    "hostname": {
                        "description": "The hostname. Required on create, immutable, lower-cased. A native host\nmay carry a port; a custom host is a fully qualified domain name below\na registrable domain (never the apex) with no port.",
                        "type": "string"
                    },
                    "issuerId": {
                        "description": "Deprecated (kit#911): a domain names no issuer; an issuer reaches a host\nthrough an IssuerDomainBinding. Accepted on create one release as a\nconvenience: the claim is made and the issuer bound at its path. Output\nonly and empty on read. Removed by the contract (kit#912).",
                        "type": "string"
                    },
                    "labels": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "name": {
                        "description": "Output only. tenants/{t}/domains/{d}, d the row's AWID. Until kit#810 a\nrequest may still address a domain by its hostname here, and a create\nwith no hostname reads the hostname from this field's last segment (the\npre-kit#808 shape, one release).",
                        "readOnly": true,
                        "type": "string"
                    },
                    "product": {
                        "description": "Retired (kit#942): replaced by purpose. Refused INVALID_ARGUMENT\n(DOMAIN_PRODUCT_RETIRED) on a create or a list. On a read, for one\nrelease only, it still carries the purpose of a guard or console row\n(\"guard\", \"console\"; empty on an issuer row), so a controller built\nbefore purpose skips or routes it correctly while the batch rolls; read\npurpose.",
                        "type": "string"
                    },
                    "purpose": {
                        "description": "What the host is for (kit#942, CONSOLE_ADDRESS.md §2.5): \"issuer\" (a\nnative host, or a custom host issuers bind to), \"guard\" (a tenant's own\nGuard address, guard.acme.com) or \"console\" (a tenant's own console\naddress, admin.acme.com). Set on create (unset is \"issuer\"), immutable;\nalways set on a read. A guard or console host is custom, never serves an\nissuer (binding one is refused CONSOLE_DOMAIN_NOT_BINDABLE /\nDOMAIN_NOT_BINDABLE) and kit never answers on it. A console host under\nthe install's native suffix is refused CONSOLE_DOMAIN_NOT_CUSTOM.",
                        "type": "string"
                    },
                    "state": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomainState"
                    },
                    "trafficTarget": {
                        "description": "Output only. Where a custom host's traffic CNAME points: the install's\nedge name, kit config `domains.trafficTarget` (kit#911,\nTENANT_DOMAINS.md D5). A row claimed before kit#911 keeps the issuer\nhost it recorded. Empty on a native host and on a product host (product\nset): the product knows its own default host, so the domains controller\nreports that record.",
                        "readOnly": true,
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.DomainConfig": {
                "description": "DomainConfig is empty. cookie_domain was its only field (see the note\nabove TenantConfig). The message and Domain.config stay so the domain\nresource keeps its shape and a later domain-scoped setting has somewhere to\nland without a second wire break.",
                "type": "object"
            },
            "authwise.types.core.v1alpha1.ENDPOINT_TYPE": {
                "default": "REST",
                "enum": [
                    "REST",
                    "GRPC"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.Endpoint": {
                "properties": {
                    "address": {
                        "description": "GRPC: host:port, or a dns:///host:port target. REST: an absolute\nhttp(s):// URL, the base a consumer appends its path to. A loopback,\nlink-local, private or unique-local destination is refused unless the\ninstall's integration.allowPrivateAddresses is on.",
                        "type": "string"
                    },
                    "auth": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.EndpointAuth"
                    },
                    "displayName": {
                        "type": "string"
                    },
                    "endpointType": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ENDPOINT_TYPE"
                    },
                    "insecure": {
                        "description": "Plaintext: no TLS at all. GRPC only — a REST address says it in its\nscheme, so insecure on a REST row is refused. Not \"skip verification\":\nthat is tls.insecure_skip_verify.",
                        "type": "boolean"
                    },
                    "labels": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.\nFor a human-readable label, use display_name.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "timeout": {
                        "description": "The per-call deadline when the caller sets none; unset means the\ninstall's integration.defaultTimeoutMs (5 s). A consumer with a bound of\nits own keeps it — the risk policy's timeout, for one. 100 ms to 60 s.",
                        "type": "string"
                    },
                    "tls": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.EndpointTls"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.EndpointAuth": {
                "description": "EndpointAuth is the credential kit presents on every call to an Endpoint.\nIt is resolved at call time, so rotating the secret (AddSecretVersion)\ntakes effect without touching the endpoint.",
                "properties": {
                    "basic": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.EndpointAuthBasic"
                    },
                    "bearer": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.EndpointAuthBearer"
                    },
                    "header": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.EndpointAuthHeader"
                    },
                    "kitToken": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.EndpointAuthKitToken"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.EndpointAuthBasic": {
                "description": "EndpointAuthBasic sends `authorization: Basic base64(username:password)`.",
                "properties": {
                    "password": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.SecretRef"
                    },
                    "username": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.EndpointAuthBearer": {
                "description": "EndpointAuthBearer sends `authorization: Bearer \u003ctoken\u003e`.",
                "properties": {
                    "token": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.SecretRef"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.EndpointAuthHeader": {
                "description": "EndpointAuthHeader sends `\u003cname\u003e: \u003cvalue\u003e` — an API-key header.",
                "properties": {
                    "name": {
                        "description": "The header name, lower-cased on the wire (gRPC metadata keys are).",
                        "type": "string"
                    },
                    "value": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.SecretRef"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.EndpointAuthKitToken": {
                "description": "EndpointAuthKitToken sends `authorization: Bearer \u003ctoken\u003e`, where the\ntoken is an access token kit signs from the named issuer for each call\n(cached until 30 s before it expires): `iss` the issuer, `aud` the\naudience below, `sub: authwise-internal`, five minutes. The endpoint\nverifies it against the issuer's JWKS. No secret is stored anywhere\n(kit#603).",
                "properties": {
                    "audience": {
                        "description": "The `aud` claim. Required.",
                        "type": "string"
                    },
                    "issuer": {
                        "description": "tenants/{tenant}/issuers/{issuer}, of this tenant.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.EndpointTls": {
                "description": "EndpointTls is the TLS side of an Endpoint (kit#603).",
                "properties": {
                    "caPem": {
                        "description": "Extra trust anchors, a PEM bundle of one or more certificates, added to\nthe system roots. Public material, so it is stored and returned as is.",
                        "type": "string"
                    },
                    "clientCertificate": {
                        "description": "tenants/{tenant}/certificates/{certificate}: a Certificate of this\ntenant holding a private key, presented as kit's client certificate\n(mTLS).",
                        "type": "string"
                    },
                    "insecureSkipVerify": {
                        "description": "Development only: accept any certificate the endpoint presents. The\nconnection is still encrypted and still authenticated to nobody.",
                        "type": "boolean"
                    },
                    "serverName": {
                        "description": "The name verified, and sent as SNI, when it is not the address's host:\nan IP address, or an internal alias the certificate does not carry.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.EnrollmentPolicy": {
                "properties": {
                    "grace": {
                        "description": "A bounded \"skip for now\" window. 0 means no skip, which is the default.",
                        "type": "string"
                    },
                    "inFlow": {
                        "description": "Whether a person may enroll a factor inside the login flow when a rule\ndemands one they lack. Default TRUE — refusing instead strands every\nuser the day a realm turns MFA on.\n\nA bool with a true default cannot express \"explicitly off\" in proto3, so\nthe resolver reads the absence of the whole EnrollmentPolicy message as\nthe default and a present message at face value.",
                        "type": "boolean"
                    },
                    "offerRecoveryCodes": {
                        "description": "Whether recovery codes are offered after the first factor is enrolled.",
                        "type": "boolean"
                    },
                    "selfServiceTypes": {
                        "description": "Types a person may add from the account page. Empty means every factor\nenabled on the realm.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.Event": {
                "description": "Event is one audit row (docswip/EVENTS.md §3, kit#524).\n\nREMOVED in kit#525: start_state (11), end_state (12), start_time (13) and\nend_time (14). They were span bookkeeping: end_state carried\nSuccess|Error|Redirect for the one span event and Recorded|Error for\neverything else, which meant a policy refusal and a crashed request both\nread as \"Error\" and no consumer could tell them apart. outcome and\nseverity replace them as their own dimensions, and occurred_at replaces\nthe timestamp pair (duration_ms carries the span where there is one).\n\nThe numbers and the JSON names are both reserved. A stored row that still\ncarries \"startState\" is read back through protojson with DiscardUnknown,\nso the key is dropped rather than failing the parse — reserving the NAME\nas well is what stops a future field from silently inheriting the old\nkey's meaning.",
                "properties": {
                    "actorAudienceId": {
                        "description": "The audience whose catalog admitted the actor (kit#917,\nHOME_ADMINISTRATION.md HA-D9): the estate audience for an admin-API call\ndecided at the estate, a tenant's administration audience for a home\nadministrator's, a product audience for a product door's. Empty where\nno catalog decided an actor.\n\n@gotags: yaml:\"actor_audience_id\"",
                        "type": "string"
                    },
                    "actorId": {
                        "title": "@gotags: yaml:\"actor_id\"",
                        "type": "string"
                    },
                    "actorType": {
                        "description": "Who performed the action, as distinct from who the row is about: on a\nlogin they are the same person, on \"admin A disabled user U\" they are\nnot. One of user, client, operator, system, anonymous.\n\n@gotags: yaml:\"actor_type\"",
                        "type": "string"
                    },
                    "attributes": {
                        "type": "object"
                    },
                    "audienceId": {
                        "title": "@gotags: yaml:\"audience_id\"",
                        "type": "string"
                    },
                    "category": {
                        "description": "The catalog heading: authn, session, authz, token, consent, account,\nchange, tenancy, access, security, messaging, system.",
                        "type": "string"
                    },
                    "clientId": {
                        "title": "@gotags: yaml:\"client_id\"",
                        "type": "string"
                    },
                    "createdAt": {
                        "format": "date-time",
                        "title": "@gotags: yaml:\"created_at\"",
                        "type": "string"
                    },
                    "durationMs": {
                        "description": "Set only on the few spans — an authorize transaction, a token grant.\n\n@gotags: yaml:\"duration_ms\"",
                        "format": "int32",
                        "type": "integer"
                    },
                    "eventMessage": {
                        "title": "@gotags: yaml:\"event_message\"",
                        "type": "string"
                    },
                    "eventType": {
                        "title": "@gotags: yaml:\"event_type\"",
                        "type": "string"
                    },
                    "install": {
                        "description": "install.name of the install that wrote the row, e.g. authwise-omni/omni\n(kit#731). Empty on a standalone install that names itself nothing.",
                        "type": "string"
                    },
                    "interactionId": {
                        "title": "@gotags: yaml:\"interaction_id\"",
                        "type": "string"
                    },
                    "issuerId": {
                        "title": "@gotags: yaml:\"issuer_id\"",
                        "type": "string"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "occurredAt": {
                        "description": "When the fact happened. created_at is when the row was written.\n\n@gotags: yaml:\"occurred_at\"",
                        "format": "date-time",
                        "type": "string"
                    },
                    "outcome": {
                        "description": "One of success, failure, denied, error. failure is bad input, denied is\na policy decision, error is ours.",
                        "type": "string"
                    },
                    "realmId": {
                        "title": "@gotags: yaml:\"realm_id\"",
                        "type": "string"
                    },
                    "reason": {
                        "description": "A code from the closed list, empty on success. Never an error string.",
                        "type": "string"
                    },
                    "requestId": {
                        "title": "@gotags: yaml:\"request_id\"",
                        "type": "string"
                    },
                    "schemaVersion": {
                        "description": "The stream consumer's contract (kit#122).\n\n@gotags: yaml:\"schema_version\"",
                        "format": "int32",
                        "type": "integer"
                    },
                    "sessionId": {
                        "description": "The sha256 hash of the session id, not the identifier itself.\n\n@gotags: yaml:\"session_id\"",
                        "type": "string"
                    },
                    "severity": {
                        "description": "One of info, notice, warning, critical.",
                        "type": "string"
                    },
                    "sourceId": {
                        "description": "The install's own row id, on a row read from the estate audit server,\nwhose name carries the server's id instead (ESTATE_EVENTS.md D4).\n\n@gotags: yaml:\"source_id\"",
                        "type": "string"
                    },
                    "sourceIp": {
                        "title": "@gotags: yaml:\"source_ip\"",
                        "type": "string"
                    },
                    "targetId": {
                        "title": "@gotags: yaml:\"target_id\"",
                        "type": "string"
                    },
                    "targetType": {
                        "description": "What was written, on a change event. target_id is a plain string\nbecause not every entity is id-keyed — a Scope and an AccessRole are\naddressed by name.\n\n@gotags: yaml:\"target_type\"",
                        "type": "string"
                    },
                    "tenantId": {
                        "description": "The tenant the row belongs to; empty on an install-scoped (system.*)\nrow. Set by the estate audit server, which holds every tenant's rows;\nan install's own search is already scoped to the parent tenant.\n\n@gotags: yaml:\"tenant_id\"",
                        "type": "string"
                    },
                    "userId": {
                        "title": "@gotags: yaml:\"user_id\"",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.ExternalProviderSelector": {
                "properties": {
                    "endpointName": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.Factor": {
                "description": "Factor is a second-step method this realm OFFERS\n(docswip/AUTHENTICATION.md D2). A sibling of Provider, with the same\nadmin CRUD and the same static YAML shape, because it answers the sibling\nquestion: a Provider is how a person establishes who they are, a Factor is\nhow they confirm it.",
                "properties": {
                    "config": {
                        "$ref": "#/components/schemas/google.protobuf.Any"
                    },
                    "displayName": {
                        "type": "string"
                    },
                    "factorType": {
                        "description": "The type slug: totp, webauthn, otp-email, otp-sms, recovery-code, duo,\nexternal. Rules reference types and never ids — a rule naming a row\nwould break the moment an operator recreated it.\n\n@gotags: yaml:\"factor_type\"",
                        "type": "string"
                    },
                    "labels": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.\nFor a human-readable label, use display_name.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "status": {
                        "description": "active or disabled. Disabling is not deleting: the authenticators people\nenrolled against this row survive, so turning a method back on does not\nmake everyone re-enroll.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.FactorDuo": {
                "description": "FactorWebAuthn configures the WebAuthn factor, `webauthn` (kit#195,\ndocswip/AUTHENTICATION.md §5.4) — and, because the credentials are the same\nrows, the passkey primary provider too: ProviderPasskey reads its relying\nparty from the realm's webauthn Factor.\nFactorDuo is Duo Universal Prompt as a second step (kit#542,\ndocswip/AUTHENTICATION.md §5.6). Duo owns enrollment: a person with no Duo\nenrollment is handled by Duo's own prompt.",
                "properties": {
                    "apiHost": {
                        "description": "The API hostname Duo assigned, e.g. api-XXXXXXXX.duosecurity.com.",
                        "type": "string"
                    },
                    "clientId": {
                        "description": "The Duo application's client id.",
                        "type": "string"
                    },
                    "clientSecretRef": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.SecretRef"
                    },
                    "failmode": {
                        "description": "What an unreachable Duo does to the step: closed (the default) fails it;\nopen lets the person through with no factor asserted, recorded as\nauthn.factor success reason=upstream_bypass at warning.",
                        "type": "string"
                    },
                    "usernameAttribute": {
                        "description": "Which of the person's attributes is their Duo username:\npreferred_username (the default) or email.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.FactorExternal": {
                "description": "FactorExternal is an operator's own factor behind an Endpoint that serves\nAuthwiseFactorService (kit#542, docswip/AUTHENTICATION.md §5.7).",
                "properties": {
                    "config": {
                        "description": "Handed to the endpoint verbatim on every call.",
                        "type": "object"
                    },
                    "endpointName": {
                        "description": "tenants/{t}/endpoints/{e}. The endpoint's own auth (kit#373) is what the\nfactor service knows kit by.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.FactorTOTP": {
                "description": "FactorTOTP configures RFC 6238 authenticator apps (kit#193,\ndocswip/AUTHENTICATION.md §5.2).\n\nEvery field is optional and zero means \"the interoperable default\", not\n\"strict\". proto3 cannot tell an unset int32 from a zero one, so a realm\nthat wrote nothing would otherwise get six-digit codes over a zero-second\nperiod in a zero-step window — a factor that can never verify. The\ndefaults live in pkg/lib/otp.",
                "properties": {
                    "algorithm": {
                        "description": "SHA1, SHA256 or SHA512. Default SHA1, deliberately: Google Authenticator\nand Authy IGNORE the algorithm parameter in an otpauth:// URI, so a realm\nthat configured SHA-256 would hand those apps a secret they derive codes\nfrom differently, and every code would be wrong with nothing to say why.",
                        "type": "string"
                    },
                    "digits": {
                        "description": "Code length. Default 6, which is what every authenticator app shows.",
                        "format": "int32",
                        "type": "integer"
                    },
                    "issuerLabel": {
                        "description": "What the authenticator app shows above the account. Default the issuer's\ndisplay name — it is how somebody with three Authwise-hosted logins tells\nthem apart.",
                        "type": "string"
                    },
                    "period": {
                        "description": "Step length in seconds. Default 30.",
                        "format": "int32",
                        "type": "integer"
                    },
                    "skew": {
                        "description": "How many steps either side of the current one are accepted. Default 1,\nRFC 6238's own suggestion, which covers a phone whose clock has drifted\nand a person who typed slowly.",
                        "format": "int32",
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.FactorThrottle": {
                "properties": {
                    "otpAttempts": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "pushesPerInteraction": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "recoveryAttemptsPerHour": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "sendsPerHour": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "totpAttemptsPerWindow": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "totpWindow": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.FactorWebAuthn": {
                "properties": {
                    "allowedOrigins": {
                        "description": "The origins a ceremony may come from, beyond the issuer's own (which is\nalways allowed): the external_ui_url when the login UI is served from\nelsewhere. Each must be the rp_id or a subdomain of it unless the rp_id\nhost serves WebAuthn L3 related origins (/.well-known/webauthn).",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "attestation": {
                        "description": "none | indirect | direct | enterprise. Default none: consumer passkeys\ncarry no attestation, so a public surface cannot demand it.",
                        "type": "string"
                    },
                    "authenticatorAttachment": {
                        "description": "platform | cross-platform, or empty for either.",
                        "type": "string"
                    },
                    "hints": {
                        "description": "L3 hints, passed through: security-key | client-device | hybrid.",
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "residentKey": {
                        "description": "required | preferred | discouraged. Default preferred, so a credential\nenrolled as a factor can later sign in as a passkey.",
                        "type": "string"
                    },
                    "rpDisplayName": {
                        "description": "What the browser's passkey sheet names. Default the issuer's host.",
                        "type": "string"
                    },
                    "rpId": {
                        "description": "The relying party id every credential is scoped to. Default the issuer's\nhost. CHANGING IT ORPHANS EVERY CREDENTIAL enrolled under the old one —\nthe browser will not offer them to a different rp_id — which is why a\nrealm sets it once, before anybody enrolls.",
                        "type": "string"
                    },
                    "userVerification": {
                        "description": "required | preferred | discouraged. Default preferred. A realm that\nwants a passkey to count as two kinds of proof alone sets required.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.Group": {
                "description": "Group is a named set of users inside a realm, and a principal both\nauthorization schemes can target (kit#351). Membership is a sub-resource of\nthe group: AssociateUsersToGroup is the only write, and ListUsersByGroup /\nListGroupsByUser are the two reads. There are no nested groups.\n\ndisplay_name carries no uniqueness constraint — two teams may both call a\ngroup \"Contractors\" and the resource name is the identity. That matches\nSCIM's Group, which this shape is meant to map onto (kit#192).",
                "properties": {
                    "createdAt": {
                        "description": "Output only. Set by the server; a value sent on create or update is\nignored rather than refused, because the row's own timestamps are not a\nthing a client can assert.\n\n@gotags: yaml:\"created_at\"",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "displayName": {
                        "title": "@gotags: yaml:\"display_name\"",
                        "type": "string"
                    },
                    "externalId": {
                        "description": "The upstream directory's id for this group: SCIM's externalId (kit#532,\ndocswip/SCIM.md D6). Unique within the realm when set.\n\n@gotags: yaml:\"external_id\"",
                        "type": "string"
                    },
                    "labels": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.\nFor a human-readable label, use display_name.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "updatedAt": {
                        "description": "Output only. The phrase is repeated verbatim rather than shared with\ncreated_at above, because the marker is per-field: a note one field up,\nor the same words with a comma after \"only\", produces a schema where\nhalf the pair is read-only and the console's form generator believes it.\n\nCorrected after measuring it: the generator matches the phrase ANYWHERE\nin the field's comment, not only at the start, so a comment MENTIONING\nit marks the field. See guide/GENERATED_CODE.md — that is a live trap,\nnot trivia.\n\n@gotags: yaml:\"updated_at\"",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.HISTOGRAM_INTERVAL_UNIT": {
                "default": "HIU_AUTO",
                "description": "HISTOGRAM_INTERVAL_UNIT names the calendar/duration unit for a\nSearchHistogram bucketing. HIU_AUTO defers the choice to the server,\nwhich picks the smallest unit that yields ~30-100 buckets across the\nrequested [min, max] window.",
                "enum": [
                    "HIU_AUTO",
                    "HIU_MINUTE",
                    "HIU_HOUR",
                    "HIU_DAY",
                    "HIU_WEEK",
                    "HIU_MONTH"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.HistogramBucket": {
                "description": "HistogramBucket is a single time-slice count.",
                "properties": {
                    "count": {
                        "format": "int64",
                        "type": "string"
                    },
                    "key": {
                        "format": "date-time",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.HistogramInterval": {
                "description": "HistogramInterval is the bucket-width spec. step is meaningful for\nHIU_MINUTE and HIU_HOUR (e.g. step=5 with HIU_MINUTE = 5-minute\nfixed-width buckets); it is ignored for HIU_DAY, HIU_WEEK, HIU_MONTH,\nand HIU_AUTO. A step of 0 is treated as 1.",
                "properties": {
                    "step": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "unit": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HISTOGRAM_INTERVAL_UNIT"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.HistogramResult": {
                "description": "HistogramResult is the response payload for a SearchHistogram query.\nresolved_interval echoes the unit/step the server actually used; when\nthe caller asked for HIU_AUTO this is the unit the server picked, so\nthe client can label buckets without re-running the resolver.",
                "properties": {
                    "buckets": {
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HistogramBucket"
                        },
                        "type": "array"
                    },
                    "resolvedInterval": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HistogramInterval"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.HistogramSpec": {
                "description": "HistogramSpec is the request payload for a date-histogram aggregation\non a SearchHistogram endpoint. min and max bound the window inclusively;\nthe response includes one bucket per interval slice across [min, max],\nincluding empty buckets at the edges.",
                "properties": {
                    "interval": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HistogramInterval"
                    },
                    "max": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "min": {
                        "format": "date-time",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.HomeSummaryDirectory": {
                "description": "HomeSummaryDirectory is one realm's people in a home summary (kit#965).",
                "properties": {
                    "createdInWindow": {
                        "description": "Accounts created inside the window.",
                        "format": "int64",
                        "type": "string"
                    },
                    "realmId": {
                        "type": "string"
                    },
                    "refused": {
                        "description": "True when the caller may not search this realm's users; total and\ncreated_in_window are then zero.",
                        "type": "boolean"
                    },
                    "total": {
                        "description": "Every account in the realm, as of the window's to_time.",
                        "format": "int64",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.HomeSummaryEvents": {
                "description": "HomeSummaryEvents is the events half of a tenant's home summary (kit#965):\nthe populations the console's Home counts, over a HomeSummaryWindow.",
                "properties": {
                    "attentionEvents": {
                        "description": "The newest attention events in the window, newest first (at most 8).",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Event"
                        },
                        "type": "array"
                    },
                    "attentionTotal": {
                        "description": "Severity warning or critical, over the window.",
                        "format": "int64",
                        "type": "string"
                    },
                    "criticalTotal": {
                        "format": "int64",
                        "type": "string"
                    },
                    "failedSignIns": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HistogramResult"
                    },
                    "failedSignInsPriorTotal": {
                        "format": "int64",
                        "type": "string"
                    },
                    "recentChanges": {
                        "description": "The newest events of category change in the window, newest first (at\nmost 5).",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.Event"
                        },
                        "type": "array"
                    },
                    "refusalReason": {
                        "description": "PERMISSION_DENIED, or EVENTS_ELSEWHERE: the install forwards its events\nto the estate audit server, which answers this half (source says so).",
                        "type": "string"
                    },
                    "refused": {
                        "description": "True when the caller may not read the tenant's events, or this server is\nnot where they are read; every count is then empty and refusal_reason\nsays which. The rest of the summary is unaffected.",
                        "type": "boolean"
                    },
                    "signIns": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HistogramResult"
                    },
                    "signInsPriorTotal": {
                        "format": "int64",
                        "type": "string"
                    },
                    "source": {
                        "description": "\"local\" (this install's own events table) or \"audit_server\": where the\nnumbers come from, or, refused with EVENTS_ELSEWHERE, where to ask.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.HomeSummaryWindow": {
                "description": "HomeSummaryWindow is the window a home summary counted (kit#965): the\ncurrent window ending at as_of, aligned to its bucket in UTC, and the window\nof the same length immediately before it. Both are closed ranges with the\nbounds :searchHistogram takes, so an events search over the same bounds\nshows the population a tile counted. Kit's admin API and the estate audit\nserver compute it with one function, so the two agree for the same range\nand as_of.",
                "properties": {
                    "fromTime": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "interval": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.HistogramInterval"
                    },
                    "priorFromTime": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "priorToTime": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "toTime": {
                        "format": "date-time",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.IdentifierField": {
                "description": "IdentifierField is the one field the identifier screen asks for.",
                "properties": {
                    "kind": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IdentifierField.Kind"
                    },
                    "label": {
                        "description": "The field's label. Empty: \"E-mail address\" or \"Username\" by kind.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.IdentifierField.Kind": {
                "default": "KIND_UNSPECIFIED",
                "description": " - KIND_UNSPECIFIED: Read as EMAIL.\n - EMAIL: autocomplete=email; the value must hold an '@'.\n - USERNAME: autocomplete=username. A username has no domain, so a selector of\nthis kind may not carry a domain rule.\n - ANY: Either.",
                "enum": [
                    "KIND_UNSPECIFIED",
                    "EMAIL",
                    "USERNAME",
                    "ANY"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.IntegrationConfig": {
                "properties": {
                    "endpointName": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.InteractiveClientConfig": {
                "properties": {
                    "accessTokenExpireSeconds": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "allowedRedirectUris": {
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "cors": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.CorsConfig"
                    },
                    "flowIntegrationConfig": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IntegrationConfig"
                    },
                    "interactionForwardUri": {
                        "type": "string"
                    },
                    "metadataDocument": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ClientMetadataDocument"
                    },
                    "refreshTokenAbsoluteExpireSeconds": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "refreshTokenExpireSeconds": {
                        "description": "refresh_token_expire_seconds is the IDLE lifetime of a refresh token: it\nslides forward on every rotation, so a client that keeps refreshing keeps\nits family alive. refresh_token_absolute_expire_seconds is the hard cap on\nthe family, set once when it is created and never extended — it is what\nbounds a stolen-and-silently-rotated token.\n\nZero means \"not set here\"; the value is resolved through\nGetCombinedConfig in the same tenant -\u003e issuer -\u003e audience -\u003e client order\nas access_token_expire_seconds, and falls back to\nkeys.DefaultRefreshTokenExpireSeconds / ...AbsoluteExpireSeconds when no\nlayer sets it (kit#476).",
                        "format": "int32",
                        "type": "integer"
                    },
                    "requireConsent": {
                        "description": "require_consent makes /authorize ask the end user to approve this\nclient for the scopes it requests, before a grant is built (kit#478).\n\nDefault false, and deliberately client-level only: consent is about\none relying party asking one person for access, so there is no\ntenant or issuer layer to inherit it from. A first-party console is\nthe client the person is already signing in to, and prompting there\nasks them to approve the thing they just opened.\n\n`prompt=consent` prompts regardless of this flag — that is what the\nvalue means — so this is the floor, not the switch.",
                        "type": "boolean"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.Issuer": {
                "properties": {
                    "accountClientId": {
                        "description": "Output only. The issuer's account page client (c-…) that kit provided:\ncreated by EnableAccountPage, which the issuer's first audience, the\nconsole and the backfill all call (kit#827). config.account_client_id,\nwhen set, overrides it. A value sent on create or update is ignored.\n\n@gotags: yaml:\"account_client_id\"",
                        "readOnly": true,
                        "type": "string"
                    },
                    "bindings": {
                        "description": "Output only. The issuer's bindings, so a list shows where each issuer\nanswers without a call per issuer. Filled on Get and List.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomainBinding"
                        },
                        "readOnly": true,
                        "type": "array"
                    },
                    "config": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerConfig"
                    },
                    "domainId": {
                        "description": "Deprecated (kit#911): create-time convenience. On create it binds the\nissuer to this domain at `path` (its first binding); optional, since an\nissuer may exist with no binding. Afterwards output only, the first\nbinding's domain (see domain_name). Removed by the contract (kit#912).",
                        "type": "string"
                    },
                    "domainName": {
                        "description": "Output only (kit#911): the hostname of the issuer's first binding (its\nhome, what kit renders the issuer's URL from when no request is in\nhand). An issuer has no host of its own; it answers through its\nbindings. Empty on an issuer with none. Mailed links follow\npreferred_binding_id instead.",
                        "type": "string"
                    },
                    "labels": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "path": {
                        "description": "Deprecated (kit#911): create-time convenience. With domain_id on create\nit is the first binding's path; afterwards output only, the first\nbinding's (see domain_name). Removed by the contract (kit#912).",
                        "type": "string"
                    },
                    "preferredBindingId": {
                        "description": "The binding (idb-…) kit builds the links it mails on (kit#911, D4): one\nof this issuer's bindings. Empty means the first. A binding on a custom\ndomain that is not ACTIVE when a link is built falls back to the first\nroutable one.\n\n@gotags: yaml:\"preferred_binding_id\"",
                        "type": "string"
                    },
                    "preferredDomainId": {
                        "description": "The domain (d-…) kit builds the links it mails on — the invitation\naccept, the password reset, the address verification — when it picks\none of this issuer's hosts itself rather than following a request's\n(kit#857). One of this issuer's own domains: its native domain\n(domain_id) or a custom domain attached to it. Empty means the native\ndomain. A custom domain that is not ACTIVE when a link is built falls\nback to the native domain. Discovery, iss and redirects do not read it.\n\nDeprecated (kit#911) for preferred_binding_id: accepted one release and\nresolved to this issuer's binding on that domain. Read back as last\nwritten; preferred_binding_id is the field kit follows.\n\n@gotags: yaml:\"preferred_domain_id\"",
                        "type": "string"
                    },
                    "status": {
                        "description": "\"active\" (the default; empty reads as active) or \"disabled\" (kit#972).\nTurning this issuer off stops sign-in, token issue, discovery and every hosted page on its\nhosts at once. Nothing under it is removed, and\nturning it on restores it. A whole-record update that leaves status\nempty keeps the stored one. The administration tenant's own issuers cannot\nbe turned off.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.IssuerConfig": {
                "properties": {
                    "accessTokenExpireSeconds": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "accountClientId": {
                        "description": "account_client_id names this issuer's account-page client (kit#543,\ndocswip/AUTHENTICATION.md §10.2): the public PKCE client the\naccount page ({issuer_ui}account/) signs in with. The account API accepts only\ntokens created for it — a token another relying party holds for the\nsame person must not manage their authenticators — and\n`GET /api/v1/account/client` hands it to the page. Empty: this issuer\nhas no account page, and the account API refuses every token.",
                        "type": "string"
                    },
                    "cimd": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.CimdConfig"
                    },
                    "cors": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.CorsConfig"
                    },
                    "externalProviderSelector": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.ExternalProviderSelector"
                    },
                    "externalUiUrl": {
                        "type": "string"
                    },
                    "flowIntegrationConfig": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IntegrationConfig"
                    },
                    "multiRealmProviderSelector": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MultiRealmProviderSelector"
                    },
                    "persistentSession": {
                        "description": "persistent_session keeps the session cookie across a browser restart\n(kit#880): at sign-in the cookie is re-issued with a Max-Age equal to\nthe session's remaining absolute lifetime (the realm's\nauthentication.session). Default false: the cookie ends when the browser\ncloses, which is the right answer on shared computers.",
                        "type": "boolean"
                    },
                    "refreshTokenAbsoluteExpireSeconds": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "refreshTokenExpireSeconds": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "rememberIdentifiers": {
                        "description": "remember_identifiers keeps the identifiers that completed a sign-in in\nthis browser, so the login page can offer \"Continue as b***@acme.com\"\nafter the session has ended (kit#879, the `_rid` cookie on the issuer\nhost). **Absent means true on an identifier-first issuer**\n(multi_realm_provider_selector) and false otherwise; set it to say so\neither way. The cookie holds a digest and a masked display form, never\nthe identifier itself, and proves nothing: every continue still runs\nthe realm's whole plan.",
                        "type": "boolean"
                    },
                    "singleRealmProviderSelector": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.SingleRealmProviderSelector"
                    }
                },
                "title": "TODO - config split between this and issuer",
                "type": "object"
            },
            "authwise.types.core.v1alpha1.IssuerDomain": {
                "description": "IssuerDomain is a customer's own hostname on an issuer (kit#795). Each\nhostname is its own `iss`: discovery at the hostname advertises\nhttps://\u003chostname\u003e, and the issuer's own host keeps working beside it.\n\nDEPRECATED ALIAS (kit#808): a custom Domain seen through the pre-merge\nissuer-domains RPCs, which stay one release so consumers move on their\nown clocks. Use Domain with issuer_id; kit#810 removes this message.",
                "properties": {
                    "activatedAt": {
                        "description": "Output only. When the controller first reported ACTIVE.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "certificateExpiresAt": {
                        "description": "Output only.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "claimExpiresAt": {
                        "description": "Output only. When an unverified claim lapses; unset once verified.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "createdAt": {
                        "description": "Output only.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "dnsRecords": {
                        "description": "Output only. The records the customer must create, once the controller\nhas reported them; at most one per purpose.",
                        "items": {
                            "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomainDnsRecord"
                        },
                        "readOnly": true,
                        "type": "array"
                    },
                    "failure": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomainFailure"
                    },
                    "hostname": {
                        "description": "The hostname, a fully qualified domain name below a registrable domain\n(never the apex). Lower-cased on create; immutable.",
                        "type": "string"
                    },
                    "name": {
                        "description": "Output only. tenants/{t}/issuers/{i}/issuer-domains/{d}.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "state": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomainState"
                    },
                    "trafficTarget": {
                        "description": "Output only. Where the customer's traffic CNAME points: the issuer's\nown domain, its stand-in host (D9), recorded when the domain is\nclaimed. Lets the domains controller build the traffic record from the\nroot listing alone, without reading issuers.",
                        "readOnly": true,
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.IssuerDomainBinding": {
                "description": "An issuer answering at a path on one of its tenant's domains (kit#911,\ndocswip/TENANT_DOMAINS.md D2): https://\u003chostname\u003e\u003cpath\u003e is one `iss`. An\nissuer has zero to many; (domain, path) is unique in the install. There is\nno update: a binding's `iss` is its identity, so it is replaced.",
                "properties": {
                    "createdAt": {
                        "description": "Output only.",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "domainId": {
                        "description": "The domain (d-…) of the issuer's tenant. Required on create, immutable.\nNever a product host.",
                        "type": "string"
                    },
                    "hostname": {
                        "description": "Output only. The domain's hostname.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "issuerId": {
                        "description": "Output only. The issuer (i-…).",
                        "readOnly": true,
                        "type": "string"
                    },
                    "name": {
                        "description": "Output only. tenants/{t}/issuers/{i}/issuer-domain-bindings/{b}.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "path": {
                        "description": "\"\" for the domain's root, else canonical segments like \"/app\" (the\nissuer path form). Immutable. Until path-prefixed issuers route\n(kit#876) only \"\" is accepted.",
                        "type": "string"
                    },
                    "routable": {
                        "description": "Output only. Whether kit answers here now: always on a native domain;\non a custom one once its certificate is live (PROVISIONING, ACTIVE,\nDEGRADED).",
                        "readOnly": true,
                        "type": "boolean"
                    },
                    "url": {
                        "description": "Output only. The binding's `iss`: https://\u003chostname\u003e\u003cpath\u003e.",
                        "readOnly": true,
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.IssuerDomainDnsRecord": {
                "description": "IssuerDomainDnsRecord is one record the customer must create. A domain\ncarries at most one record per purpose, for every provider.",
                "properties": {
                    "name": {
                        "description": "The record's owner name, e.g. login.acme.com or\n_acme-challenge.login.acme.com.",
                        "type": "string"
                    },
                    "purpose": {
                        "description": "traffic or challenge.",
                        "type": "string"
                    },
                    "type": {
                        "title": "CNAME, TXT, …",
                        "type": "string"
                    },
                    "value": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.IssuerDomainFailure": {
                "description": "IssuerDomainFailure is the controller's last failure on a domain.",
                "properties": {
                    "code": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.IssuerDomainFailureCode"
                    },
                    "message": {
                        "description": "The provider's prose; for people, not programs.",
                        "type": "string"
                    },
                    "record": {
                        "description": "The purpose of the offending record (traffic or challenge), or empty.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "authwise.types.core.v1alpha1.IssuerDomainFailureCode": {
                "default": "ISSUER_DOMAIN_FAILURE_CODE_UNSPECIFIED",
                "description": "IssuerDomainFailureCode is the closed set of reasons a domains controller\nreports a hostname is not serving or is at risk.\n\n - ISSUER_DOMAIN_FAILURE_CODE_DNS_NOT_FOUND: A required record is missing or wrong; failure.record names which.\n - ISSUER_DOMAIN_FAILURE_CODE_CAA: A CAA record forbids the provider's certificate authority.\n - ISSUER_DOMAIN_FAILURE_CODE_CONFIG: The install's provider configuration is wrong; nothing the customer can fix.\n - ISSUER_DOMAIN_FAILURE_CODE_PROBE_FAILED: The hostname answered, but not as this issuer.",
                "enum": [
                    "ISSUER_DOMAIN_FAILURE_CODE_UNSPECIFIED",
                    "ISSUER_DOMAIN_FAILURE_CODE_DNS_NOT_FOUND",
                    "ISSUER_DOMAIN_FAILURE_CODE_CAA",
                    "ISSUER_DOMAIN_FAILURE_CODE_CONFIG",
                    "ISSUER_DOMAIN_FAILURE_CODE_RATE_LIMITED",
                    "ISSUER_DOMAIN_FAILURE_CODE_PROBE_FAILED",
                    "ISSUER_DOMAIN_FAILURE_CODE_PROVIDER_ERROR"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.IssuerDomainState": {
                "default": "ISSUER_DOMAIN_STATE_UNSPECIFIED",
                "description": "IssuerDomainState is where a customer's hostname is on its way to serving\n(kit#795, docswip/CUSTOM_DOMAINS.md §4.1). Kit answers on the hostname in\nPROVISIONING, ACTIVE and DEGRADED only.\n\n - ISSUER_DOMAIN_STATE_PENDING_DNS: Claimed; waiting for the customer's DNS records. Expires with the claim.\n - ISSUER_DOMAIN_STATE_VERIFYING: The provider is verifying the challenge record and issuing a certificate.\n - ISSUER_DOMAIN_STATE_PROVISIONING: The certificate is live at the edge; kit routes the hostname, and the\ncontroller is probing it.\n - ISSUER_DOMAIN_STATE_DEGRADED: Serving, but renewal is at risk (a record went missing); see failure.\n - ISSUER_DOMAIN_STATE_FAILED: Stopped; see failure. Not routed.\n - ISSUER_DOMAIN_STATE_DELETING: Deleted, or its claim lapsed; the controller is unwinding the cloud side\nand the hostname stays claimed until it reports DELETED.\n - ISSUER_DOMAIN_STATE_DELETED: Report-only: ReportDomain on a DELETING row says the cloud side is\ngone, and kit removes the row. No row is ever read in this state.",
                "enum": [
                    "ISSUER_DOMAIN_STATE_UNSPECIFIED",
                    "ISSUER_DOMAIN_STATE_PENDING_DNS",
                    "ISSUER_DOMAIN_STATE_VERIFYING",
                    "ISSUER_DOMAIN_STATE_PROVISIONING",
                    "ISSUER_DOMAIN_STATE_ACTIVE",
                    "ISSUER_DOMAIN_STATE_DEGRADED",
                    "ISSUER_DOMAIN_STATE_FAILED",
                    "ISSUER_DOMAIN_STATE_DELETING",
                    "ISSUER_DOMAIN_STATE_DELETED"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.MessageDeliveryStatus": {
                "default": "MESSAGE_DELIVERY_STATUS_UNSPECIFIED",
                "description": "MessageDeliveryStatus reports what happened when kit asked the platform\nmessaging service to deliver a message it rendered (kit#344). Values 1-5\nmirror platform's MessagingStatus one for one; SKIPPED is kit's own and\nmeans no request was made at all — delivery is unconfigured\n(messaging.delivery: none) or the recipient is not addressable on the\nchannel.\n\nQUEUED is the most a synchronous send can promise: platform's Send returns\nafter one durable write, and the provider call happens later in its own\ndispatch loop, so a send that a provider ultimately refuses still reports\nQUEUED here with an empty reason and a populated message id. Never render\nQUEUED as delivered.\n\nOn the invitation path, a caller that receives anything but QUEUED or SENT\nstill holds the accept URL and passes it on itself, exactly as before\ndelivery existed. That sentence is scoped to invitations on purpose: this\nenum is also returned by SendTestMessage, where there is no accept URL and\nnothing for the caller to fall back to.\n\n - MESSAGE_DELIVERY_STATUS_QUEUED: Durably enqueued by platform, not yet handed to a provider.\n - MESSAGE_DELIVERY_STATUS_SENT: Accepted by the provider. Not a delivery receipt.\n - MESSAGE_DELIVERY_STATUS_FAILED: Platform could not be reached, or exhausted its retries.\n - MESSAGE_DELIVERY_STATUS_REJECTED: Refused before enqueue: no provider for the channel, malformed address.\n - MESSAGE_DELIVERY_STATUS_SUPPRESSED: Refused because the recipient is on platform's suppression list.\n - MESSAGE_DELIVERY_STATUS_SKIPPED: kit made no request: delivery is unconfigured or the recipient is not\nan e-mail address. The reason field on whichever response carried this\nstatus says which — spelled delivery_reason on InviteUserResponse and\nreason on SendTestMessageResponse. Both are named because this enum is\nshared by both paths and naming only the first sent a reader looking\nfor a delivery_reason that a test send does not have.",
                "enum": [
                    "MESSAGE_DELIVERY_STATUS_UNSPECIFIED",
                    "MESSAGE_DELIVERY_STATUS_QUEUED",
                    "MESSAGE_DELIVERY_STATUS_SENT",
                    "MESSAGE_DELIVERY_STATUS_FAILED",
                    "MESSAGE_DELIVERY_STATUS_REJECTED",
                    "MESSAGE_DELIVERY_STATUS_SUPPRESSED",
                    "MESSAGE_DELIVERY_STATUS_SKIPPED"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.MessageShape": {
                "default": "MESSAGE_SHAPE_UNSPECIFIED",
                "description": "MessageShape is how a message copy is written (kit#953). A copy is in\nexactly one shape at a time.\n\n - MESSAGE_SHAPE_TEXTS: Named parts (texts) rendered in the built-in layout.\n - MESSAGE_SHAPE_HTML: The whole mail: subject, text_body and html_body as written.\n - MESSAGE_SHAPE_LAYOUT: A block document (blocks), with the MJML and HTML compiled from it.",
                "enum": [
                    "MESSAGE_SHAPE_UNSPECIFIED",
                    "MESSAGE_SHAPE_TEXTS",
                    "MESSAGE_SHAPE_HTML",
                    "MESSAGE_SHAPE_LAYOUT"
                ],
                "type": "string"
            },
            "authwise.types.core.v1alpha1.MessageTemplate": {
                "description": "MessageTemplate is a tenant's own copy of one transactional message, in\none channel and one locale. The catalog ships a default for every key;\na row here replaces it for this tenant only (MESSAGING.md Stage 1).\n\nThe three body fields are Go templates over the key's variable schema,\nwhich GET :messageKeys publishes — subject and text_body through\ntext/template, html_body through html/template with an allowlist over\nthe markup. An empty part falls back to the shipped default for that\npart, so a tenant may override only the subject.",
                "properties": {
                    "blocks": {
                        "description": "The layout editor's block document (MESSAGING.md Stage 2, kit#153),\nwhich for a block-authored copy is the source of truth: the console\ncompiles it to mjml and html_body in the browser and saves all three.\nAbsent for a copy written as text — the Stage 1 editor, or code mode —\nwhich a console keeps editing as text.",
                        "type": "object"
                    },
                    "channel": {
                        "description": "channel is \"email\" today. The only channel that renders.",
                        "type": "string"
                    },
                    "draft": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageTemplateDraft"
                    },
                    "htmlBody": {
                        "title": "@gotags: yaml:\"html_body\"",
                        "type": "string"
                    },
                    "key": {
                        "description": "key names the message, e.g. \"tenant-invitation\". One of the keys\nListMessageKeys returns; anything else is refused at save.",
                        "type": "string"
                    },
                    "labels": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "locale": {
                        "description": "locale is the BCP 47 tag this copy is written in. A tenant may write\na locale kit does not ship — that is reachable, and deliberate.",
                        "type": "string"
                    },
                    "managedBy": {
                        "description": "Who manages this copy outside the console, e.g. \"terraform\": set by\n:apply from its request (an :apply without it clears it), cleared by\n:publish. A console shows a marked copy read-only, because the next\napply would overwrite an edit. kit records it and refuses no writer.\nAt most 64 characters of [a-z0-9-].\n\n@gotags: yaml:\"managed_by\"",
                        "type": "string"
                    },
                    "mjml": {
                        "description": "The MJML html_body was compiled from. kit stores it and never compiles\nit; what reaches a recipient is html_body. Writing MJML with no blocks\nbeside it is code mode, which needs identity.messageTemplates.writeAdvanced.",
                        "type": "string"
                    },
                    "name": {
                        "description": "Output only. The resource name, rendered from the row's id: the address\nused to GET, PATCH and DELETE this row, not a label. A value sent on\ncreate or update is ignored — the server always builds it from the id.\nThis resource carries no label field: its identity is (key, channel, locale).\n\nIgnored here means discarded rather than refused, and that holds on the\nmasked PATCH path as well as the unmasked PUT one: merge does write a\ncaller's name onto the proto, but toModel drops it and the response\nre-derives it from the id. So a console that read this as a label and\nbound it to a \"name for your own reference\" input lost every edit\nsilently — which is what happened on this field while it was the one\nresource name in this file with no comment (kit-admin, 2026-09-07).\nData loss in the caller's form, not a rename anyone could perform. It is\nalso why there is no display_name here to bind instead, as Theme and\nThemeVariant have: a copy has nothing a label would distinguish.",
                        "readOnly": true,
                        "type": "string"
                    },
                    "publishedAt": {
                        "description": "Output only. When this copy was last published with :publish. Absent\nfor a copy written as text, whose parts are live on save.\n\n@gotags: yaml:\"published_at\"",
                        "format": "date-time",
                        "readOnly": true,
                        "type": "string"
                    },
                    "publishedBy": {
                        "description": "Output only. Who published it.\n\n@gotags: yaml:\"published_by\"",
                        "readOnly": true,
                        "type": "string"
                    },
                    "shape": {
                        "$ref": "#/components/schemas/authwise.types.core.v1alpha1.MessageShape"
                    },
                    "subject": {
                        "type": "string"
                    },
                    "textBody": {
                        "title": "@gotags: yaml:\"text_body\"",
                        "type": "string"
                    },
                    "texts": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "description": "The message's words by named part (kit#953, BRANDING_UX.md §6): part\nname → a template over the key's variables, in kit's template syntax\n(`{"error": "template: swagger:3525:198: executing "swagger" at <.Recipient.DisplayName>: can't evaluate field Recipient in type *gateway.SwaggerData"}