{"components":{"schemas":{"api_handler.CountryList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/country.Country"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"api_handler_billing.CursorList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/api_handler_billing.Object"},"type":"array","uniqueItems":false},"next_cursor":{"type":"string"},"object":{"example":"list","type":"string"}},"type":"object"},"api_handler_billing.List":{"properties":{"data":{"items":{"$ref":"#/components/schemas/api_handler_billing.Object"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"api_handler_billing.Object":{"properties":{"id":{"description":"ID is its prefixed id.","example":"cust_1a2b3c4d","type":"string"},"object":{"description":"Object names the kind: customer, invoice, contract, …","example":"customer","type":"string"}},"type":"object"},"apierr.ErrBody":{"properties":{"code":{"description":"Code is the spec's machine-readable code for this error, in snake\ncase: a domain code such as seat_limit_reached where the refusal has\none, otherwise a generic one such as permission_denied, not_found,\nconflict, invalid_request or service_unavailable.","example":"permission_denied","type":"string"},"details":{"description":"Details are per-field findings, present only on a refusal that has\nthem, e.g. a 422 invalid_theme names each invalid value by its path,\na 422 package_invalid each problem, and a 409 capability_in_use each\ncount by its name.","items":{"$ref":"#/components/schemas/apierr.ErrDetail"},"type":"array","uniqueItems":false},"doc_url":{"description":"DocURL links to documentation about this error, when available.","type":"string"},"message":{"description":"Message is a human-readable description of what went wrong.","example":"You do not have permission to do this.","type":"string"},"object":{"description":"Object is the discriminator; always \"error\".","example":"error","type":"string"},"param":{"description":"Param names the request parameter this error refers to, when applicable.","example":"email","type":"string"},"type":{"description":"Type is the error's category, set by its HTTP status: one of\nvalidation_error, authentication_error, authorization_error,\nnot_found, conflict_error, rate_limit_error, internal_error.","enum":["validation_error","authentication_error","authorization_error","not_found","conflict_error","rate_limit_error","internal_error"],"example":"authorization_error","type":"string"}},"type":"object"},"apierr.ErrDetail":{"properties":{"field":{"description":"Field is where the finding is: for a theme, its dotted path.","example":"global.light.sem-color-primary","type":"string"},"message":{"description":"Message is what is wrong there.","example":"must be a color","type":"string"}},"type":"object"},"apierr.ErrResponse":{"properties":{"error":{"$ref":"#/components/schemas/apierr.ErrBody"}},"type":"object"},"audit.ASN":{"properties":{"name":{"type":"string"},"number":{"type":"integer"}},"type":"object"},"audit.Actor":{"properties":{"access":{"$ref":"#/components/schemas/audit.StaffAccess"},"email":{"type":"string"},"id":{"type":"string"},"instance":{"description":"Instance is the running copy of an agent that acted (pontive-spec 45\n§12, 20 D10): the token's agent_instance. Only for an agent actor.","type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"type":"object"},"audit.Context":{"properties":{"asn":{"$ref":"#/components/schemas/audit.ASN"},"geo":{"$ref":"#/components/schemas/audit.Geo"},"ip_address":{"type":"string"},"origin":{"type":"string"},"request_id":{"type":"string"},"trace_id":{"type":"string"},"user_agent":{"type":"string"}},"type":"object"},"audit.Credential":{"properties":{"app_id":{"type":"string"},"id":{"type":"string"},"session_id":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"}},"type":"object"},"audit.Geo":{"properties":{"city":{"type":"string"},"country":{"type":"string"},"region":{"type":"string"}},"type":"object"},"audit.Outcome":{"properties":{"reason":{"type":"string"},"result":{"type":"string"}},"type":"object"},"audit.Scope":{"properties":{"instance_id":{"type":"string"},"organization_id":{"type":"string"},"project_id":{"type":"string"},"workspace_id":{"type":"string"}},"type":"object"},"audit.StaffAccess":{"properties":{"expires_at":{"type":"string"},"reason":{"type":"string"},"session_id":{"type":"string"}},"type":"object"},"audit.Target":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"type":"object"},"country.Country":{"properties":{"calling_code":{"description":"CallingCode is the E.164 country calling code, digits only, for example\n\"49\". Countries in the North American Numbering Plan share \"1\". It is\nempty for a country that has none.","type":"string"},"code":{"description":"Code is the ISO 3166-1 alpha-2 code, upper case, for example \"DE\".","type":"string"},"name":{"description":"Name is the English short name, for example \"Germany\".","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_accesskey_types.AccessKey":{"properties":{"confidentiality":{"enum":["secret","publishable"],"example":"secret","type":"string"},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"description":{"type":"string"},"expires_at":{"type":"string"},"id":{"example":"ak_2b3c4d5e6f7g8h9i","type":"string"},"instance_id":{"type":"string"},"key_preview":{"type":"string"},"last_used_at":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.Metadata"},"name":{"example":"CI deploy key","type":"string"},"object":{"type":"string"},"revealable":{"type":"boolean"},"service_account_id":{"example":"sa_1a2b3c4d5e6f7g8h","type":"string"},"status":{"enum":["active","revoked","deleted","expired"],"example":"active","type":"string"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_accesskey_types.AccessKeyWithSecret":{"properties":{"confidentiality":{"enum":["secret","publishable"],"example":"secret","type":"string"},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"description":{"type":"string"},"expires_at":{"type":"string"},"id":{"example":"ak_2b3c4d5e6f7g8h9i","type":"string"},"instance_id":{"type":"string"},"key":{"type":"string"},"key_preview":{"type":"string"},"last_used_at":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.Metadata"},"name":{"example":"CI deploy key","type":"string"},"object":{"type":"string"},"revealable":{"type":"boolean"},"service_account_id":{"example":"sa_1a2b3c4d5e6f7g8h","type":"string"},"status":{"enum":["active","revoked","deleted","expired"],"example":"active","type":"string"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_accesskey_types.CreateAccessKeyRequest":{"properties":{"confidentiality":{"enum":["secret","publishable"],"example":"secret","type":"string"},"description":{"type":"string"},"expires_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.Metadata"},"name":{"example":"CI deploy key","type":"string"},"revealable":{"type":"boolean"},"service_account_id":{"example":"sa_1a2b3c4d5e6f7g8h","type":"string"}},"required":["confidentiality","name","service_account_id"],"type":"object"},"github_com_revotech-group_management-api_core_accesskey_types.ListAccessKeysResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.AccessKey"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_accesskey_types.Metadata":{"additionalProperties":{"type":"string"},"type":"object"},"github_com_revotech-group_management-api_core_accesskey_types.RevealAccessKeyResponse":{"properties":{"key":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_accesskey_types.UpdateAccessKeyRequest":{"properties":{"description":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.Metadata"},"name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_accountlinking_types.AccountLinkingConfig":{"properties":{"allow_manual_linking":{"description":"AllowManualLinking lets a signed-in user link a provider account to\nthemselves, POST /v1/me/external-identities. Off, starting a link is\nrefused 403 permission_denied. Default true.","example":true,"type":"boolean"},"auto_link_by_email":{"description":"AutoLinkByEmail links a first provider sign-in to the account with the\nsame email when the provider vouches for the address and the account\nhas verified it. Off, every such sign-in is refused 409\nauth_provider_link_required. Default true.","example":true,"type":"boolean"},"object":{"example":"account_linking_config","type":"string"},"updated_at":{"description":"UpdatedAt is null until the settings are first saved.","example":"2026-12-01T09:30:00Z","type":"string","x-nullable":true}},"type":"object"},"github_com_revotech-group_management-api_core_accountlinking_types.UpdateAccountLinkingConfigRequest":{"properties":{"allow_manual_linking":{"type":"boolean"},"auto_link_by_email":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.Actor":{"description":"CreatedBy is who created the grant, or last replaced it.","properties":{"id":{"example":"usr_123","type":"string"},"name":{"type":"string"},"type":{"example":"user","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.AddAgentOrganizationsRequest":{"properties":{"organization_ids":{"description":"OrganizationIDs are the organizations to add, at most 100. Adding one\nalready offered is not an error.","items":{"type":"string"},"maxItems":100,"minItems":1,"type":"array","uniqueItems":false}},"required":["organization_ids"],"type":"object"},"github_com_revotech-group_management-api_core_agent_types.Agent":{"properties":{"auto_install":{"description":"AutoInstall installs an instance agent, with its requested org roles,\nin every organization it is offered to.","type":"boolean"},"client_secrets":{"description":"ClientSecrets are the secrets that still authenticate, previews only\n(GET /agents/{agent_id}/client-secrets, D19). A secret's value is shown\nonce, when it is created.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ClientSecret"},"type":"array","uniqueItems":false},"created_at":{"example":"2026-11-28T09:30:00Z","type":"string"},"description":{"type":"string"},"domain_id":{"type":"string"},"id":{"example":"agt_1a2b3c4d5e6f","type":"string"},"instance_id":{"type":"string"},"issuer":{"type":"string"},"jwks_uri":{"type":"string"},"last_used_at":{"type":"string"},"logo_url":{"type":"string"},"metadata":{"additionalProperties":{"type":"string"},"type":"object"},"name":{"example":"Acme Assistant","type":"string"},"object":{"example":"agent","type":"string"},"org_access":{"description":"OrgAccess is an instance agent's offer: every organization, or the\nselected ones (GET /agents/{agent_id}/organizations, D22). Empty for an\norganization agent.","enum":["all","selected"],"example":"all","type":"string"},"owner_id":{"description":"OwnerID is the definer's prefixed id: the instance's inst_ id, or the\norganization's org_ id.","type":"string"},"owner_type":{"description":"OwnerType is the definer's resource-type key (D6, D44): root, or org\nfor an organization.","enum":["root","org"],"example":"root","type":"string"},"public_keys":{"description":"PublicKeys are the inline keys the agent signs private_key_jwt\nassertions with; JWKSURI is where they are fetched from instead. At most\none is set.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_clientkey.PublicKey"},"type":"array","uniqueItems":false},"requested_roles":{"description":"RequestedRoles are the agent's ceiling everywhere: an installation\napproves these or fewer, never more. Each carries the version that\nadded it.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.RequestedRole"},"type":"array","uniqueItems":false},"requested_roles_version":{"description":"RequestedRolesVersion grows each time a role is added to\nrequested_roles; installations approved below it have a pending\napproval.","example":1,"type":"integer"},"sponsors":{"description":"Sponsors are the users (usr_) accountable for the agent.","items":{"type":"string"},"type":"array","uniqueItems":false},"status":{"enum":["active","deactivated"],"example":"active","type":"string"},"token_ttl":{"description":"TokenTTL is its access tokens' lifetime in seconds, 60–3600.","example":900,"type":"integer"},"updated_at":{"example":"2026-11-28T09:30:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.AgentOrganization":{"properties":{"agent_id":{"type":"string"},"object":{"example":"agent_organization","type":"string"},"organization_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.ApproveInstallationRequest":{"properties":{"roles":{"example":["editor"],"items":{"type":"string"},"type":"array","uniqueItems":false},"version":{"example":2,"type":"integer"}},"required":["version"],"type":"object"},"github_com_revotech-group_management-api_core_agent_types.ClientSecret":{"properties":{"created_at":{"type":"string"},"expires_at":{"type":"string"},"id":{"type":"string"},"label":{"type":"string"},"last_used_at":{"type":"string"},"object":{"example":"agent_client_secret","type":"string"},"preview":{"type":"string"},"status":{"enum":["active","rotating"],"example":"active","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.ClientSecretWithValue":{"properties":{"created_at":{"type":"string"},"expires_at":{"type":"string"},"id":{"type":"string"},"label":{"type":"string"},"last_used_at":{"type":"string"},"object":{"example":"agent_client_secret","type":"string"},"preview":{"type":"string"},"secret":{"type":"string"},"status":{"enum":["active","rotating"],"example":"active","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.CreateAgentRequest":{"properties":{"auto_install":{"type":"boolean"},"description":{"type":"string"},"domain_id":{"description":"DomainID is the auth domain its tokens are issued by; omitted is the\ninstance's default.","type":"string"},"logo_url":{"type":"string"},"metadata":{"additionalProperties":{"type":"string"},"type":"object"},"name":{"example":"Acme Assistant","type":"string"},"org_access":{"description":"OrgAccess is an instance agent's offer: all (the default) or selected,\nwith no organization listed yet (POST /agents/{agent_id}/organizations).","enum":["all","selected"],"type":"string"},"owner_id":{"description":"OwnerID is the definer: the organization's org_ id for org; the\ninstance's inst_ id, or omitted, for root.","example":"org_1a2b3c4d5e6f","type":"string"},"owner_type":{"description":"OwnerType is the definer's resource-type key (D6, D44): root, or org.","enum":["root","org"],"example":"root","type":"string"},"requested_roles":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.RequestedRole"},"type":"array","uniqueItems":false},"sponsors":{"description":"Sponsors are usr_ ids, each holding sys:agent:read on the definer.","items":{"type":"string"},"type":"array","uniqueItems":false},"token_ttl":{"description":"TokenTTL is in seconds, 60–3600; omitted is 900.","type":"integer"}},"required":["name","owner_type"],"type":"object"},"github_com_revotech-group_management-api_core_agent_types.CreateClientSecretRequest":{"properties":{"expire_others_in":{"example":86400,"type":"integer"},"label":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.CreateDelegationRequest":{"properties":{"agent_id":{"example":"agt_1a2b3c4d5e6f","type":"string"},"expires_at":{"description":"ExpiresAt, RFC 3339 and in the future, ends the grant; omit it for none.","example":"2027-01-15T09:30:00Z","type":"string"},"organization_id":{"description":"OrganizationID is the organization the agent acts for the user in; omit\nit for the instance root, which needs a root installation.","example":"org_1a2b3c4d5e6f","type":"string"},"scopes":{"description":"Scopes are what the agent's exchanged tokens may carry: at most 100,\neach within the agent's client grants on the instance's APIs.","example":["docs:read"],"items":{"type":"string"},"type":"array","uniqueItems":false},"user_id":{"description":"UserID is the user who delegates (usr_): the grant is theirs (D5).","example":"usr_1a2b3c4d5e6f","type":"string"}},"required":["agent_id","scopes","user_id"],"type":"object"},"github_com_revotech-group_management-api_core_agent_types.DeclineInstallationRequest":{"properties":{"version":{"example":2,"type":"integer"}},"required":["version"],"type":"object"},"github_com_revotech-group_management-api_core_agent_types.Delegation":{"properties":{"agent_id":{"example":"agt_1a2b3c4d5e6f","type":"string"},"created_at":{"type":"string"},"created_by":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Actor"},"expires_at":{"type":"string"},"id":{"example":"dlg_1a2b3c4d5e6f","type":"string"},"instance_id":{"type":"string"},"last_used_at":{"type":"string"},"object":{"example":"agent_delegation","type":"string"},"organization_id":{"description":"OrganizationID is the organization the agent may act for the user in;\nempty for the instance root.","example":"org_1a2b3c4d5e6f","type":"string"},"scopes":{"example":["docs:read"],"items":{"type":"string"},"type":"array","uniqueItems":false},"updated_at":{"type":"string"},"user_id":{"description":"UserID is the delegator.","example":"usr_1a2b3c4d5e6f","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.InstallRequest":{"properties":{"agent_id":{"example":"agt_1a2b3c4d5e6f","type":"string"},"delegated_only":{"description":"DelegatedOnly lends the roles only to the agent's side of a\ndelegation: the agent's own token holds none of them here. Default\nfalse.","type":"boolean"},"resource_id":{"description":"ResourceID installs on this resource instead of the path's container.","example":"res_1a2b3c4d5e6f","type":"string"},"roles":{"example":["editor"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"required":["agent_id"],"type":"object"},"github_com_revotech-group_management-api_core_agent_types.Installation":{"properties":{"agent_id":{"type":"string"},"approved_by":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Actor"},"approved_version":{"description":"ApprovedVersion is the requested_roles_version last approved or\ndeclined. PendingVersion is the agent's version when it is newer, else\n0, and PendingRoles what it asks for here: the pending approval.","type":"integer"},"created_at":{"type":"string"},"delegated_only":{"description":"DelegatedOnly lends Roles only to the agent's side of a delegation\n(pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the\nagent exchanged to act for a user is allowed what both hold, while the\nagent's own token, and a check of the agent alone, ignore them.","type":"boolean"},"id":{"example":"ain_1a2b3c4d5e6f","type":"string"},"installed_by":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Actor"},"instance_id":{"type":"string"},"object":{"example":"agent_installation","type":"string"},"organization_id":{"description":"OrganizationID is the target's organization: itself, or the\nresource's; empty for the root and for a resource in none.","type":"string"},"pending_roles":{"items":{"type":"string"},"type":"array","uniqueItems":false},"pending_version":{"type":"integer"},"resource_type":{"description":"ResourceType is the target's type: the roles are of it.","example":"org","type":"string"},"roles":{"items":{"type":"string"},"type":"array","uniqueItems":false},"status":{"enum":["active","suspended"],"example":"active","type":"string"},"suspended_at":{"type":"string"},"suspended_reasons":{"description":"SuspendedReasons are why it is suspended: agent_deactivated,\norganization_suspended, not_offered, admin.","items":{"type":"string"},"type":"array","uniqueItems":false},"target_id":{"description":"TargetID is the instance id, the org_ id or the res_ id.","type":"string"},"target_type":{"enum":["root","org","resource"],"example":"org","type":"string"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.ListAgentOrganizationsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.AgentOrganization"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.ListAgentsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Agent"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.ListClientSecretsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ClientSecret"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.ListDelegationsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Delegation"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.ListInstallationsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.ListOrganizationAgentsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.OrganizationAgent"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.OrganizationAgent":{"properties":{"agent":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Agent"},"installation":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"},"object":{"example":"organization_agent","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.Organizations":{"properties":{"agent_id":{"type":"string"},"object":{"example":"agent_organizations","type":"string"},"org_access":{"enum":["all","selected"],"example":"selected","type":"string"},"organization_ids":{"description":"OrganizationIDs are the organizations a selected offer lists.","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.RequestedRole":{"properties":{"resource_type":{"example":"org","type":"string"},"role":{"example":"editor","type":"string"},"version":{"description":"Version is the requested_roles_version that added it; ignored on input.","example":1,"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.UpdateAgentRequest":{"properties":{"auto_install":{"type":"boolean"},"description":{"type":"string"},"jwks_uri":{"description":"JWKSURI is where the agent's keys are fetched from (D20); null clears\nit. Refused while inline public keys exist.","type":"string"},"logo_url":{"type":"string"},"metadata":{"additionalProperties":{"type":"string"},"description":"Metadata, when sent, replaces the metadata; {} clears it.","type":"object"},"name":{"type":"string"},"org_access":{"description":"OrgAccess is an instance agent's offer: all or selected.","enum":["all","selected"],"type":"string"},"requested_roles":{"description":"RequestedRoles, when sent, replace the roles the agent requests: adding\none increments requested_roles_version and leaves every installation of\nits type with a pending approval; removing one takes it off every\ninstallation at once.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.RequestedRole"},"type":"array","uniqueItems":false},"sponsors":{"description":"Sponsors, when sent, replace the sponsors: at most ten usr_ ids, each\nholding sys:agent:read on the definer; [] clears them.","items":{"type":"string"},"type":"array","uniqueItems":false},"token_ttl":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_agent_types.UpdateInstallationRequest":{"properties":{"delegated_only":{"description":"DelegatedOnly, when present, lends the roles only to the agent's side\nof a delegation (true), or to the agent's own token too (false).","type":"boolean"},"roles":{"example":["viewer"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.AccessTokenConfig":{"properties":{"claims_template":{"additionalProperties":{},"description":"ClaimsTemplate adds the app's own claims to its access tokens. A JSON\nobject whose string values may contain {{ expressions }} reading\nuser.* (id, email, email_verified, phone_number, phone_number_verified,\nusername, name, given_name, family_name, middle_name, nickname, picture,\nlocale, zoneinfo, external_id, metadata.<key>), organization.* (id, name,\nslug, external_id, metadata.<key>) and membership.* (roles, permissions),\nwith `||` fallbacks and 'quoted' literals, e.g.\n\n\t{\"tenant\": \"{{ organization.external_id || organization.id }}\", \"plan\": \"{{ user.metadata.plan || 'free' }}\"}\n\nA value that is exactly one expression keeps its type; a null value\ndrops its key. Claims the token already sets (sub, sid, org_id, roles,\npermissions...) cannot be named, and a render over 3072 bytes fails the\nissuance. Null or omitted: no template. Rendered afresh on every refresh.","type":"object"},"lifetime_seconds":{"type":"integer"},"permissions_claim":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.ClaimFilter"},"roles_claim":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.ClaimFilter"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.AddAppOrganizationsRequest":{"properties":{"organization_ids":{"description":"OrganizationIDs are the organizations to admit, at most 100. Adding one\nalready admitted is not an error; an unknown one fails the whole call.","items":{"type":"string"},"maxItems":100,"minItems":1,"type":"array","uniqueItems":false}},"required":["organization_ids"],"type":"object"},"github_com_revotech-group_management-api_core_app_types.AndroidAttestation":{"properties":{"allow_emulators":{"type":"boolean"},"cloud_project_number":{"type":"string"},"enabled":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.AndroidConfig":{"properties":{"attestation":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AndroidAttestation"},"package_names":{"items":{"type":"string"},"type":"array","uniqueItems":false},"security_level":{"type":"string"},"sha256_fingerprints":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.App":{"properties":{"allowed_scopes":{"items":{"type":"string"},"type":"array","uniqueItems":false},"authflow_bindings":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AuthflowBindings"},"builder_previews":{"description":"BuilderPreviews are the app builders whose previews the app signs in\nfrom, on a development instance only: preset names among lovable, v0,\nvercel, replit, bolt and codesandbox, sorted; empty when off. For an\nenabled builder, a preview origin (https://<id>.lovableproject.com)\nmay start the app's embedded sign-in and call the auth domain's\nbrowser endpoints, and an OAuth flow may use the hosted preview\ncallback https://{auth domain}/oauth2/preview-callback?origin={the\npreview's origin} as its redirect_uri without registering it\n(pontive-spec 06, Builder previews). Always empty for a third-party\nclient.","example":["lovable"],"items":{"enum":["lovable","v0","vercel","replit","bolt","codesandbox"],"type":"string"},"type":"array","uniqueItems":false},"client_id_url":{"description":"ClientIDURL is a CIMD app's client ID metadata document URL, its\nclient_id on the wire. Empty for every other app.","example":"https://client.example.com/oauth/client.json","type":"string"},"client_secrets":{"description":"ClientSecrets are a confidential app's secrets, as previews: the current\none and, during a rotation, the previous one. Empty for a public app. The\nsecret itself is shown once, when it is generated.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AppClientSecret"},"type":"array","uniqueItems":false},"client_type":{"description":"ClientType is whether the app authenticates at the token endpoint with a\nclient secret. Only a web app in oauth mode may be confidential.","enum":["public","confidential"],"example":"public","type":"string"},"consented_at":{"description":"ConsentedAt is when a third-party app first reached consent; null for one\nnever consented to (removed after 24 hours) and for every first-party\napp. Only a consented client counts toward its origin's cap (44 §8).","example":"2024-01-15T09:30:00Z","type":"string","x-nullable":true},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"deactivated_at":{"type":"string"},"description":{"type":"string"},"domain_id":{"type":"string"},"email_domain_access":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.EmailDomainAccess"},"id":{"example":"app_1a2b3c4d5e6f7g8h","type":"string"},"initiate_login_uri":{"description":"InitiateLoginURI is where anyone but the app sends a person to begin\nsigning in to it (OpenID Connect initiate_login_uri): the route that\nstarts an authorization request for an oauth app, the page hosting the\nsign-in widget for a regular one. An invitee lands there once they have\naccepted, with organization_id and login_hint added. Empty when unset.","example":"https://app.example.com/sign-in","type":"string"},"instance_id":{"type":"string"},"issuer":{"type":"string"},"jwks_uri":{"type":"string"},"last_used_at":{"type":"string"},"metadata":{"additionalProperties":{"type":"string"},"type":"object"},"mfa_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.MFAConfig"},"mode":{"enum":["regular","oauth"],"example":"regular","type":"string"},"name":{"example":"Customer Portal","type":"string"},"oauth_consent":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.OAuthConsent"},"object":{"type":"string"},"org_access":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.OrgAccess"},"origin":{"description":"Origin is who created the app (pontive-spec 06, 44 §8): first_party for\nevery app created through the API; cimd or dcr for a third-party client\nthe auth domain admitted under the instance's third_party_clients\nsetting. A third-party app is read-only except for deletion\n(third_party_app_read_only, 409).","enum":["first_party","cimd","dcr"],"example":"first_party","type":"string"},"platform_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PlatformConfig"},"post_logout_redirect_uris":{"description":"PostLogoutRedirectUris is where a browser may be sent after RP-initiated\nlogout. Empty is the ordinary case and does not mean logout has nowhere to\nland: the authorization server falls back to the app's redirect_uris, and\nthen to its registered origins, so an app that registers neither still\nreturns to itself.","example":["https://app.example.com/"],"items":{"type":"string"},"type":"array","uniqueItems":false},"public_keys":{"description":"PublicKeys are the inline keys a confidential app signs private_key_jwt\nassertions with; JWKSURI is where they are fetched from instead. At most\none is set; a public app has neither.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_clientkey.PublicKey"},"type":"array","uniqueItems":false},"redirect_uris":{"description":"RedirectUris are the OAuth2 callbacks an authorization code may be sent\nto, matched exactly. On a development instance an entry may be a\nwildcard whose * is the whole leftmost host label, as in\nhttps://*.preview.example.com/callback, matching exactly one label\n(pontive-spec 06, Redirect URI wildcards).","items":{"type":"string"},"type":"array","uniqueItems":false},"security_posture":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AppSecurityPosture"},"session_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SessionConfig"},"signin_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SigninConfig"},"signup_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupConfig"},"software_id":{"description":"SoftwareID and SoftwareVersion are what a DCR client said it is (RFC 7591\n§2), for display only. Empty otherwise.","example":"4NRB1-0XZABZI9E6-5SM3R","type":"string"},"software_version":{"example":"2.1.0","type":"string"},"status":{"enum":["active","deactivated"],"example":"active","type":"string"},"token_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.TokenConfig"},"type":{"enum":["web","native","spa"],"example":"web","type":"string"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.AppClientSecret":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"expires_at":{"description":"ExpiresAt is set on the previous secret during a rotation: when it stops\nworking.","type":"string"},"id":{"example":"cs_9z8y7x6w5v4u3t2s","type":"string"},"label":{"type":"string"},"last_used_at":{"type":"string"},"object":{"type":"string"},"preview":{"example":"cs_...4f9a","type":"string"},"status":{"enum":["active","rotating"],"example":"active","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.AppClientSecretWithValue":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"expires_at":{"description":"ExpiresAt is set on the previous secret during a rotation: when it stops\nworking.","type":"string"},"id":{"example":"cs_9z8y7x6w5v4u3t2s","type":"string"},"label":{"type":"string"},"last_used_at":{"type":"string"},"object":{"type":"string"},"preview":{"example":"cs_...4f9a","type":"string"},"secret":{"example":"cs_5f2c9e0b7a...","type":"string"},"status":{"enum":["active","rotating"],"example":"active","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.AppOrganization":{"properties":{"app_id":{"type":"string"},"created_at":{"type":"string"},"object":{"example":"app_organization","type":"string"},"organization_id":{"type":"string"},"organization_name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.AppOrganizationsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AppOrganization"},"type":"array","uniqueItems":false},"object":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.AppSecurityLevel":{"properties":{"app_id":{"example":"app_1a2b3c4d5e6f7g8h","type":"string"},"app_mode":{"enum":["regular","oauth"],"example":"regular","type":"string"},"blocking_issues":{"items":{"type":"string"},"type":"array","uniqueItems":false},"evaluated_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"object":{"type":"string"},"overall_level":{"enum":["secure","unsecure","enhanced"],"example":"secure","type":"string"},"platforms":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PlatformLevels"},"production_ready":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.AppSecurityPosture":{"properties":{"details":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SecurityPostureDetail"},"type":"array","uniqueItems":false},"security_level":{"enum":["secure","unsecure","enhanced"],"example":"secure","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.AuthflowBindings":{"description":"AuthflowBindings, when non-nil, fully replaces the app's flow bindings\n(nil = leave untouched, per the app's partial-update convention). Only\npublished flows are bindable; identity-svc validates each non-empty side.","properties":{"signin":{"example":"my-signin-flow","type":"string"},"signup":{"example":"my-signup-flow","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.ClaimFilter":{"description":"PermissionsClaim and RolesClaim narrow what the permissions and roles\nclaims carry, e.g. {\"exclude\": [\"sys:*\"]} for the app's own permissions\nonly. Null or omitted carries everything the user holds where the token\nacts. They never change what the user holds or what Pontive enforces.\n\nThe two claims together are bounded at 4096 bytes. A token that would\nexceed it still issues: the claim that does not fit is left out whole —\npermissions first, then roles — and named in the claims_overflow claim.\nAn app that finds it reads roles from GET /me/memberships and checks a\npermission with POST /authz/check.","properties":{"exclude":{"example":["sys:*"],"items":{"type":"string"},"type":"array","uniqueItems":false},"include":{"description":"Include defaults to [\"*\"]; [] drops the claim.","example":["*"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.Consent":{"properties":{"consent_id":{"type":"string"},"label":{"type":"string"},"required":{"type":"boolean"},"url":{"type":"string"},"version":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.CreateAppClientSecretRequest":{"properties":{"expire_others_in":{"example":86400,"type":"integer"},"label":{"description":"Label is an optional label for the new secret.","example":"production","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.CreateAppRequest":{"properties":{"allowed_origins":{"description":"AllowedOrigins seeds the app's web origins. Required for a regular app,\nwhich embeds the widget on its own page and is refused every origin it has\nnot registered; left empty by an oauth app, which redirects to the hosted\npage and is admitted via its issuer. identity-svc enforces that rule — it\nis not repeated here, so there is one place to keep it correct.","example":["https://app.example.com"],"items":{"type":"string"},"type":"array","uniqueItems":false},"builder_previews":{"description":"BuilderPreviews opts the app in to app builders' previews: preset\nnames among lovable, v0, vercel, replit, bolt and codesandbox. A\ndevelopment instance only: any on a production instance is 422\nbuilder_previews_not_allowed, and an unknown or repeated name 422\nfield_invalid_format (pontive-spec 06, Builder previews).","example":["lovable"],"items":{"enum":["lovable","v0","vercel","replit","bolt","codesandbox"],"type":"string"},"type":"array","uniqueItems":false},"client_type":{"description":"ClientType defaults to public. Confidential is for a web app in oauth mode\nwhose token calls run on its own server; it starts with no secret, which\nPOST /apps/{app_id}/client-secrets generates.","enum":["public","confidential"],"example":"public","type":"string"},"description":{"type":"string"},"initiate_login_uri":{"description":"InitiateLoginURI is where a sign-in to the app begins. Optional, but a\nregular app cannot send invitations until it has one.","example":"https://app.example.com/sign-in","type":"string"},"mode":{"enum":["regular","oauth"],"example":"regular","type":"string"},"name":{"example":"Customer Portal","type":"string"},"post_logout_redirect_uris":{"description":"PostLogoutRedirectUris is optional at creation for every app type. Left\nempty, logout falls back to redirect_uris and then to allowed_origins.","example":["https://app.example.com/"],"items":{"type":"string"},"type":"array","uniqueItems":false},"redirect_uris":{"description":"RedirectUris are the OAuth2 callbacks an authorization code may be sent\nto, matched exactly; required for an oauth app. A development instance's\napp may register a wildcard for an app builder's changing preview hosts:\nhttps only, the * the whole leftmost host label and matching exactly one\nlabel (a.b.example.com does not match https://*.example.com/cb), the\nrest of the host, the port, path and query exact, and never directly\nunder a public suffix (https://*.vercel.app/cb is refused,\nhttps://*.myproject.vercel.app/cb accepted). A malformed wildcard is\n422 field_invalid_format; any wildcard on a production instance is 422\nredirect_uri_wildcard_not_allowed (pontive-spec 06, Redirect URI\nwildcards).","example":["https://app.example.com/callback"],"items":{"type":"string"},"type":"array","uniqueItems":false},"signin_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.CreateAppSigninConfig"},"type":{"enum":["web","native","spa"],"example":"web","type":"string"}},"required":["name","type"],"type":"object"},"github_com_revotech-group_management-api_core_app_types.CreateAppSigninConfig":{"properties":{"consents":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.Consent"},"type":"array","uniqueItems":false},"passkey":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PasskeyConfig"},"password":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PasswordConfig"},"passwordless":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PasswordlessConfig"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.EmailConfig":{"properties":{"enabled":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.EmailDomainAccess":{"description":"EmailDomainAccess, when present, replaces which email domains may use\nthe app.","properties":{"domains":{"example":["acme.com"],"items":{"type":"string"},"type":"array","uniqueItems":false},"mode":{"enum":["none","allow","block"],"example":"allow","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.EmailVerification":{"properties":{"enabled":{"description":"Enabled is whether sign-up asks for the address before it completes.\nOmitted means on. Off, the new user is signed in at once with an\nunverified email, and every later sign-in asks them to verify it.","example":true,"type":"boolean"},"expiration":{"type":"integer"},"method":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.IDTokenConfig":{"properties":{"enabled":{"type":"boolean"},"lifetime_seconds":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.IOSAttestation":{"properties":{"bypass_for_development":{"type":"boolean"},"enabled":{"type":"boolean"},"environment":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.IOSConfig":{"properties":{"attestation":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.IOSAttestation"},"bundle_ids":{"items":{"type":"string"},"type":"array","uniqueItems":false},"security_level":{"type":"string"},"team_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.IdentifierFields":{"properties":{"email":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupField"},"phone":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupField"},"username":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupField"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.ListAppClientSecretsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AppClientSecret"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.ListAppOrganizationsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AppOrganization"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.ListAppsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.App"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.ListRefusedProxyBasesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.RefusedProxyBase"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.MFAConfig":{"properties":{"enabled":{"type":"boolean"},"enforcement":{"type":"string"},"grace_period_days":{"type":"integer"},"methods":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.MFAMethods"},"remember_device_days":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.MFAMethods":{"properties":{"email":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.EmailConfig"},"recovery_codes":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.RecoveryCodesConfig"},"sms":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SMSConfig"},"totp":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.TOTPConfig"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.MagicLinkConfig":{"properties":{"enabled":{"type":"boolean"},"expiration":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.OAuthConsent":{"description":"OAuthConsent, when present, replaces the app's consent configuration\n(nil = unchanged). Only an oauth-mode app can require consent;\nidentity-svc validates it.","properties":{"homepage_url":{"example":"https://partner.example","type":"string"},"logo_url":{"description":"LogoURL, HomepageURL, PrivacyPolicyURL and TermsOfServiceURL are shown on\nthe consent screen. Each is https or empty.","example":"https://partner.example/logo.png","type":"string"},"privacy_policy_url":{"example":"https://partner.example/privacy","type":"string"},"required":{"example":true,"type":"boolean"},"scope_descriptions":{"additionalProperties":{"type":"string"},"description":"ScopeDescriptions overrides the platform's text for a scope on the\nconsent screen, and is the only text a custom scope has (without one it\nis shown as the scope string). At most 300 characters each.","type":"object"},"terms_of_service_url":{"example":"https://partner.example/terms","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.OTPConfig":{"properties":{"enabled":{"type":"boolean"},"expiration":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.OrgAccess":{"description":"OrgAccess, when present, replaces the app's organization access policy.\nThe organizations themselves are managed under /apps/{app_id}/organizations.","properties":{"mode":{"enum":["all","selected"],"example":"selected","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.PasskeyConfig":{"properties":{"authenticator_attachment":{"type":"string"},"auto_fill":{"type":"boolean"},"conditional_create":{"type":"boolean"},"enabled":{"type":"boolean"},"local_enrollment":{"type":"boolean"},"passkey_button":{"type":"boolean"},"progressive_enrollment":{"type":"boolean"},"user_verification":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.PasswordConfig":{"properties":{"email":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SigninMethod"},"phone":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SigninMethod"},"username":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SigninMethod"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.PasswordlessConfig":{"properties":{"email_otp":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.OTPConfig"},"magic_link":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.MagicLinkConfig"},"phone_otp":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.OTPConfig"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.PhoneVerification":{"properties":{"enabled":{"type":"boolean"},"expiration":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.PlatformConfig":{"properties":{"android":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AndroidConfig"},"ios":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.IOSConfig"},"web":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.WebConfig"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.PlatformLevels":{"properties":{"android":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PlatformSecurity"},"ios":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PlatformSecurity"},"web":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PlatformSecurity"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.PlatformSecurity":{"properties":{"configured":{"type":"boolean"},"issues":{"items":{"type":"string"},"type":"array","uniqueItems":false},"level":{"enum":["secure","unsecure","enhanced"],"example":"secure","type":"string"},"recommendations":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.PreviewClaimsTemplateRequest":{"properties":{"claims_template":{"additionalProperties":{},"description":"ClaimsTemplate is the template to render, as it would be saved on\ntoken_config.access_token.claims_template. Omit it to preview the app's\nsaved template.","type":"object"},"organization_id":{"description":"OrganizationID is an organization the user belongs to, to render the\norganization.* and membership.* fields; omit it for a token that acts in\nno organization.","example":"org_01h...","type":"string"},"user_id":{"description":"UserID is the user to render for.","example":"usr_01h...","type":"string"}},"required":["user_id"],"type":"object"},"github_com_revotech-group_management-api_core_app_types.PreviewClaimsTemplateResponse":{"properties":{"claims":{"additionalProperties":{},"type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.ProfileFields":{"properties":{"date_of_birth":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupField"},"family_name":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupField"},"gender":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupField"},"given_name":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupField"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.RecoveryCodesConfig":{"properties":{"count":{"type":"integer"},"enabled":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.RefreshTokenConfig":{"properties":{"allow_offline":{"description":"AllowOffline lets this app hold refresh tokens that survive the end of the\nbrowser session they were issued through — OIDC offline access. Without it\nthe session bounds the refresh, so LifetimeSeconds can only ever be spent\nwithin one session's absolute lifetime.\n\nIt is the app's authorization, not its request: an OIDC client must also\nask, via the offline_access scope. A client on the direct SDK path has no\nscope channel to ask through, so for those this flag alone decides.\n\nOff by default, and it should stay off for anything browser-based: a token\nthat outlives logout is exactly what a signed-out user believes they no\nlonger have.","type":"boolean"},"delivery":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.RefreshTokenDelivery"},"enabled":{"type":"boolean"},"lifetime_seconds":{"type":"integer"},"reuse_detection":{"type":"boolean"},"rotation":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.RefreshTokenCookie":{"properties":{"enabled":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.RefreshTokenDelivery":{"properties":{"http_only_cookie":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.RefreshTokenCookie"},"response_body":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.RefusedProxyBase":{"properties":{"base":{"example":"https://acme.com/portal/__pontive","type":"string"},"count":{"example":12,"type":"integer"},"first_seen_at":{"example":"2026-10-09T09:30:00Z","type":"string"},"last_seen_at":{"example":"2026-10-09T09:30:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.SMSConfig":{"properties":{"enabled":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.SecurityPostureDetail":{"properties":{"description":{"type":"string"},"platform":{"description":"The platform the check was evaluated for, so a client can route the\nfinding to the configuration that resolves it.","enum":["web","ios","android"],"example":"web","type":"string"},"status":{"enum":["info","warning","critical"],"example":"info","type":"string"},"title":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.SessionConfig":{"properties":{"absolute_lifetime_seconds":{"description":"AbsoluteLifetimeSeconds is the hard cap, fixed when the session is created\nand never extended by use. NIST SP 800-63B puts this at 12h for AAL2, which\nis the default a new app is given.","example":43200,"type":"integer"},"idle_timeout_seconds":{"description":"IdleTimeoutSeconds is how long the session may sit unused before it dies,\nsliding forward as it is used. Zero disables the inactivity cap, leaving\nonly the absolute one — a deliberate choice, not a default to fall into.","example":1800,"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.SigninConfig":{"description":"Optional per-app configs. A non-nil config fully replaces that config on\nthe app; nested platforms/sections left out are cleared.","properties":{"consents":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.Consent"},"type":"array","uniqueItems":false},"passkey":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PasskeyConfig"},"password":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PasswordConfig"},"passwordless":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PasswordlessConfig"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.SigninMethod":{"properties":{"enabled":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.SignupConfig":{"properties":{"consents":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupConsent"},"type":"array","uniqueItems":false},"fields":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupFields"},"verification":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupVerification"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.SignupConsent":{"properties":{"consent_id":{"type":"string"},"label":{"type":"string"},"required":{"type":"boolean"},"url":{"type":"string"},"version":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.SignupField":{"description":"Email is always collected and required: every Pontive user has an\nemail. Whatever is sent here is stored as {enabled: true, required: true}.","properties":{"enabled":{"type":"boolean"},"required":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.SignupFields":{"properties":{"identifiers":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.IdentifierFields"},"profile":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.ProfileFields"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.SignupVerification":{"properties":{"email":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.EmailVerification"},"phone":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PhoneVerification"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.TOTPConfig":{"properties":{"enabled":{"type":"boolean"},"issuer":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.TokenConfig":{"properties":{"access_token":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AccessTokenConfig"},"id_token":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.IDTokenConfig"},"refresh_token":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.RefreshTokenConfig"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.UpdateAppRequest":{"properties":{"allowed_scopes":{"items":{"type":"string"},"type":"array","uniqueItems":false},"authflow_bindings":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AuthflowBindings"},"builder_previews":{"description":"BuilderPreviews, when present, replaces the app's builder preview\npresets; an empty array turns them off, which any instance accepts.\nAny other value on a production instance is 422\nbuilder_previews_not_allowed; an unknown or repeated name 422\nfield_invalid_format (pontive-spec 06, Builder previews).","example":["lovable"],"items":{"enum":["lovable","v0","vercel","replit","bolt","codesandbox"],"type":"string"},"type":"array","uniqueItems":false},"client_type":{"description":"ClientType changes whether the app is a confidential client. Switching to\npublic deletes its client secrets. Only a web app in oauth mode may be\nconfidential.","enum":["public","confidential"],"example":"confidential","type":"string"},"description":{"type":"string"},"domain_id":{"type":"string"},"email_domain_access":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.EmailDomainAccess"},"initiate_login_uri":{"description":"InitiateLoginURI, when present, replaces the app's; the empty string\nclears it.","example":"https://app.example.com/sign-in","type":"string"},"metadata":{"additionalProperties":{"type":"string"},"type":"object"},"mfa_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.MFAConfig"},"name":{"type":"string"},"oauth_consent":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.OAuthConsent"},"org_access":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.OrgAccess"},"platform_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PlatformConfig"},"post_logout_redirect_uris":{"description":"PostLogoutRedirectUris, when non-nil, fully replaces the app's post-logout\nlist; nil leaves it untouched, per this endpoint's partial-update\nconvention. An empty array is therefore how an app clears the list and goes\nback to the fallbacks.","items":{"type":"string"},"type":"array","uniqueItems":false},"redirect_uris":{"description":"RedirectUris are the OAuth2 callbacks an authorization code may be sent\nto, matched exactly; when present the list replaces the app's. A development instance's\napp may register a wildcard for an app builder's changing preview hosts:\nhttps only, the * the whole leftmost host label and matching exactly one\nlabel (a.b.example.com does not match https://*.example.com/cb), the\nrest of the host, the port, path and query exact, and never directly\nunder a public suffix (https://*.vercel.app/cb is refused,\nhttps://*.myproject.vercel.app/cb accepted). A malformed wildcard is\n422 field_invalid_format; any wildcard on a production instance is 422\nredirect_uri_wildcard_not_allowed (pontive-spec 06, Redirect URI\nwildcards).","example":["https://app.example.com/callback"],"items":{"type":"string"},"type":"array","uniqueItems":false},"session_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SessionConfig"},"signin_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SigninConfig"},"signup_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupConfig"},"token_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.TokenConfig"}},"type":"object"},"github_com_revotech-group_management-api_core_app_types.WebConfig":{"properties":{"allowed_origins":{"items":{"type":"string"},"type":"array","uniqueItems":false},"proxy_paths":{"description":"ProxyPaths are paths on the allowed origins where the app's proxy for\nPontive is mounted, beyond the root and /__pontive, which are always\naccepted. A flow's emailed links land under the base its page names only\nwhen the app accepts it.","example":["/portal/__pontive"],"items":{"type":"string"},"type":"array","uniqueItems":false},"security_level":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_auditlog_types.AuditLogEntryDoc":{"properties":{"action":{"type":"string"},"actor":{"$ref":"#/components/schemas/audit.Actor"},"category":{"type":"string"},"changes":{"additionalProperties":{},"type":"object"},"context":{"$ref":"#/components/schemas/audit.Context"},"credential":{"$ref":"#/components/schemas/audit.Credential"},"details":{"additionalProperties":{},"type":"object"},"id":{"type":"string"},"object":{"example":"audit_log_entry","type":"string"},"occurred_at":{"type":"string"},"on_behalf_of":{"items":{"$ref":"#/components/schemas/audit.Actor"},"type":"array","uniqueItems":false},"outcome":{"$ref":"#/components/schemas/audit.Outcome"},"schema_version":{"type":"integer"},"scope":{"$ref":"#/components/schemas/audit.Scope"},"severity":{"type":"string"},"targets":{"items":{"$ref":"#/components/schemas/audit.Target"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_auditlog_types.ListResponseDoc":{"properties":{"data":{"items":{"additionalProperties":{},"type":"object"},"type":"array","uniqueItems":false},"next_cursor":{"type":"string"},"object":{"example":"list","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_auditlog_types.RequestLogEntryDoc":{"properties":{"actor":{"$ref":"#/components/schemas/audit.Actor"},"context":{"$ref":"#/components/schemas/audit.Context"},"credential":{"$ref":"#/components/schemas/audit.Credential"},"duration_ms":{"type":"integer"},"error_code":{"type":"string"},"id":{"type":"string"},"method":{"type":"string"},"object":{"example":"request_log_entry","type":"string"},"occurred_at":{"type":"string"},"on_behalf_of":{"items":{"$ref":"#/components/schemas/audit.Actor"},"type":"array","uniqueItems":false},"path":{"type":"string"},"route":{"type":"string"},"scope":{"$ref":"#/components/schemas/audit.Scope"},"status":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_authflow_types.DocumentMetadata":{"properties":{"viewport":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_authflow_types.Viewport"}},"type":"object"},"github_com_revotech-group_management-api_core_authflow_types.Edge":{"properties":{"from":{"example":"start","type":"string"},"id":{"example":"e1","type":"string"},"to":{"example":"signin_view","type":"string"},"trigger":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_authflow_types.Trigger"}},"type":"object"},"github_com_revotech-group_management-api_core_authflow_types.Node":{"properties":{"action_type":{"description":"ActionType is the catalog action id on an action node.","example":"signin_with_password","type":"string"},"expression":{"description":"Expression is the condition node's branch expression.","type":"string"},"flow_id":{"description":"FlowID is the flow a subflow node delegates to.","type":"string"},"id":{"example":"signin_view","type":"string"},"kind":{"enum":["start","end","view","action","condition","subflow"],"example":"view","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_authflow_types.NodeMetadata"},"name":{"example":"Sign In","type":"string"},"outcome":{"description":"Outcome is set on an end node: the outcome the flow ends with, a slug\n(lower-case letters, digits and underscores), \"succeeded\" when absent. A\nflow's outcomes are the distinct values on its end nodes; a parent's\nsubflow node routes them by name.","example":"failed","maxLength":40,"type":"string"},"properties":{"additionalProperties":{},"description":"Properties is the action configuration. An action node names no widget:\none that waits for the user shows its own screens (pontive-spec 23).","type":"object"},"widget":{"description":"Widget is the view node's widget id — a built-in widget's or a custom\nwidget's.","example":"signin","type":"string"},"widget_overrides":{"additionalProperties":{"type":"string"},"description":"WidgetOverrides, on a subflow node, replaces widgets inside the flow it\nenters and below it: key is the KEY of the widgets replaced — the\ndefinition they descend from — value the id of the widget shown instead.\nAt most 16 entries; absent when there are none (pontive-spec 16a, 22).","example":{"verify_email":"wgt_01j9x3k8m2q4r6t8v0w2y4z6a8"},"type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_authflow_types.NodeMetadata":{"properties":{"note":{"type":"string"},"position":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_authflow_types.NodePosition"}},"type":"object"},"github_com_revotech-group_management-api_core_authflow_types.NodePosition":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"type":"object"},"github_com_revotech-group_management-api_core_authflow_types.Trigger":{"properties":{"event":{"example":"submit","type":"string"},"kind":{"enum":["user-event","outcome","auto"],"example":"user-event","type":"string"},"outcome":{"example":"succeeded","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_authflow_types.Viewport":{"properties":{"x":{"type":"number"},"y":{"type":"number"},"zoom":{"type":"number"}},"type":"object"},"github_com_revotech-group_management-api_core_authz_types.PreviewModelResponse":{"properties":{"dsl":{"description":"DSL is the human-readable OpenFGA DSL.","type":"string"},"json":{"description":"JSON is the api.openfga.dev JSON model (importable into the OpenFGA playground).","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_authz_types.RegenerateModelResponse":{"properties":{"authorization_model_id":{"description":"AuthorizationModelID is the id of the newly written OpenFGA model.","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_blueprint_types.WidgetSpec":{"properties":{"from_key":{"example":"signin","type":"string"},"markup":{"type":"string"},"name":{"description":"Name is the new widget's name in the flow; its id is minted from it.","example":"Sign in","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_clientkey.JWK":{"properties":{"alg":{"enum":["RS256","PS256","ES256"],"example":"RS256","type":"string"},"crv":{"enum":["P-256"],"type":"string"},"e":{"type":"string"},"kid":{"example":"key-2026-11","type":"string"},"kty":{"enum":["RSA","EC"],"example":"RSA","type":"string"},"n":{"type":"string"},"use":{"example":"sig","type":"string"},"x":{"type":"string"},"y":{"type":"string"}},"required":["kid","kty"],"type":"object"},"github_com_revotech-group_management-api_core_clientkey.PublicKey":{"properties":{"alg":{"description":"Alg, when the key names one, is the only algorithm it verifies.","enum":["RS256","PS256","ES256"],"example":"RS256","type":"string"},"created_at":{"description":"CreatedAt is when the key was added.","example":"2026-11-28T09:30:00Z","type":"string"},"crv":{"description":"Crv, X and Y are an EC key's curve and point, base64url.","enum":["P-256"],"type":"string"},"e":{"type":"string"},"kid":{"example":"key-2026-11","type":"string"},"kty":{"enum":["RSA","EC"],"example":"RSA","type":"string"},"n":{"description":"N and E are an RSA key's modulus and exponent, base64url.","type":"string"},"object":{"example":"public_key","type":"string"},"use":{"example":"sig","type":"string"},"x":{"type":"string"},"y":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_federation_types.CreateFederatedCredentialRequest":{"properties":{"description":{"type":"string"},"name":{"description":"Name is unique among the client's credentials.","example":"deploy-prod","type":"string"},"required_claims":{"additionalProperties":{"type":"string"},"description":"RequiredClaims, at most 10, such as repository, ref or environment for\nGitHub Actions; iss, sub, aud, exp, nbf, iat and jti cannot be required.","type":"object"},"subject":{"description":"Subject is exact by default. A '*' matches one or more characters\nwithin one ':' or '/' segment; '**' and a '*' in the first segment are\nrefused.","example":"repo:acme/api:environment:prod","type":"string"},"trusted_issuer_id":{"example":"tis_1a2b3c4d5e6f","type":"string"}},"required":["name","subject","trusted_issuer_id"],"type":"object"},"github_com_revotech-group_management-api_core_federation_types.CreateTrustedIssuerRequest":{"properties":{"allow_reuse":{"description":"AllowReuse defaults to false: each token (its jti, or the whole token\nwith none) is accepted once. true accepts it again until it expires.","example":false,"type":"boolean"},"audiences":{"description":"Audiences, at most 10; omitted, this instance's issuer and token\nendpoint.","example":["https://auth.acme.com"],"items":{"type":"string"},"type":"array","uniqueItems":false},"cross_app_access":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.CrossAppAccess"},"enabled":{"description":"Enabled defaults to true.","example":true,"type":"boolean"},"issuer":{"description":"Issuer is an https URL with no query or fragment, matched exactly\nagainst an assertion's iss. Required, unless cross_app_access names a\nconnection: then omitted, it is the issuer that connection signs in\nwith.","example":"https://token.actions.githubusercontent.com","type":"string"},"jwks_uri":{"description":"JWKSURI is optional: omitted, it is read from the issuer's OpenID\ndiscovery document ({issuer}/.well-known/openid-configuration).","example":"https://token.actions.githubusercontent.com/.well-known/jwks","type":"string"},"max_token_lifetime_seconds":{"description":"MaxTokenLifetimeSeconds defaults to 3600; 60 to 86400.","example":3600,"type":"integer"},"name":{"example":"GitHub Actions","type":"string"}},"required":["name"],"type":"object"},"github_com_revotech-group_management-api_core_federation_types.CrossAppAccess":{"description":"CrossAppAccess, when present, replaces the organization link; one with\nan empty organization_id removes it.","properties":{"organization_id":{"description":"OrganizationID is the organization. On an update, \"\" removes the link.","example":"org_1a2b3c4d5e6f","type":"string"},"sso_app_id":{"description":"SSOAppID is the app whose auth provider connection the organization's\nusers sign in through.","example":"app_1a2b3c4d5e6f","type":"string"},"sso_provider":{"description":"SSOProvider is that connection's provider slug.","example":"okta","type":"string"},"tenant":{"description":"Tenant is a multi-tenant issuer's tenant identifier for the\norganization, which an ID-JAG's tenant claim must equal; empty for a\nsingle-tenant issuer.","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_federation_types.FederatedCredential":{"properties":{"client_id":{"description":"ClientID is the service account (svc_) or agent (agt_).","example":"svc_1a2b3c4d5e6f","type":"string"},"created_at":{"type":"string"},"description":{"type":"string"},"id":{"example":"fic_1a2b3c4d5e6f","type":"string"},"instance_id":{"type":"string"},"name":{"example":"deploy-prod","type":"string"},"object":{"example":"federated_credential","type":"string"},"required_claims":{"additionalProperties":{"type":"string"},"description":"RequiredClaims must be in the assertion with exactly these values.","type":"object"},"subject":{"description":"Subject is the assertion's sub: exact, or a pattern where '*' matches\none or more characters within one ':' or '/' segment.","example":"repo:acme/api:environment:prod","type":"string"},"trusted_issuer_id":{"example":"tis_1a2b3c4d5e6f","type":"string"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_federation_types.ListFederatedCredentialsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.FederatedCredential"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_federation_types.ListTrustedIssuersResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.TrustedIssuer"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_federation_types.TrustedIssuer":{"properties":{"allow_reuse":{"description":"AllowReuse true accepts the same token again until it expires, each\ntime verified in full (Kubernetes projected tokens, cached SPIFFE\nJWT-SVIDs); false spends its jti, or a token with no jti whole, once.","example":false,"type":"boolean"},"audiences":{"description":"Audiences are the aud values an assertion may carry; empty means this\ninstance's issuer and token endpoint.","example":["https://auth.acme.com"],"items":{"type":"string"},"type":"array","uniqueItems":false},"created_at":{"type":"string"},"cross_app_access":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.CrossAppAccess"},"enabled":{"example":true,"type":"boolean"},"id":{"example":"tis_1a2b3c4d5e6f","type":"string"},"instance_id":{"type":"string"},"issuer":{"description":"Issuer is the iss value, matched exactly.","example":"https://token.actions.githubusercontent.com","type":"string"},"jwks_uri":{"description":"JWKSURI is where the issuer's signing keys are fetched from.","example":"https://token.actions.githubusercontent.com/.well-known/jwks","type":"string"},"max_token_lifetime_seconds":{"description":"MaxTokenLifetimeSeconds is how far ahead an assertion's exp may be, and\nhow long after its iat: 60 to 86400.","example":3600,"type":"integer"},"name":{"example":"GitHub Actions","type":"string"},"object":{"example":"trusted_issuer","type":"string"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_federation_types.UpdateFederatedCredentialRequest":{"properties":{"description":{"type":"string"},"name":{"type":"string"},"required_claims":{"additionalProperties":{"type":"string"},"description":"RequiredClaims, when present, replaces the map; {} requires none.","type":"object"},"subject":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_federation_types.UpdateTrustedIssuerRequest":{"properties":{"allow_reuse":{"description":"AllowReuse true accepts the same token again until it expires.","type":"boolean"},"audiences":{"description":"Audiences, when present, replaces the list; [] means this instance's\nissuer and token endpoint.","items":{"type":"string"},"type":"array","uniqueItems":false},"cross_app_access":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.CrossAppAccess"},"enabled":{"description":"Enabled false refuses every assertion the issuer signs at once.","type":"boolean"},"jwks_uri":{"description":"JWKSURI set to \"\" reads it again from the issuer's discovery document.","type":"string"},"max_token_lifetime_seconds":{"description":"MaxTokenLifetimeSeconds, 60 to 86400.","example":3600,"type":"integer"},"name":{"example":"GitHub Actions","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_group_types.AddGroupMembersRequest":{"properties":{"user_ids":{"description":"Each must be a member of the group's organization; an instance group\ntakes any of the instance's users.","example":["user_5d1c8b3f"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"required":["user_ids"],"type":"object"},"github_com_revotech-group_management-api_core_group_types.AddGroupMembersResponse":{"properties":{"added":{"description":"How many were added; users already in the group are not counted.","type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_group_types.CreateOwnedGroupRequest":{"properties":{"external_id":{"description":"ExternalID is an identity provider's id for the group, unique in its\nowner.","example":"00g1a2b3c4","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.Metadata"},"name":{"example":"Backend team","type":"string"},"owner_id":{"description":"OwnerID is the owner's prefixed id: org_ or res_; for root the inst_ id\nor empty.","example":"org_1a2b3c","type":"string"},"owner_type":{"description":"OwnerType is root (the default), org, or the owning resource's type\nkey, which must be that resource's type.","example":"org","type":"string"}},"required":["name"],"type":"object"},"github_com_revotech-group_management-api_core_group_types.Group":{"properties":{"created_at":{"example":"2026-01-15T09:30:00Z","type":"string"},"external_id":{"example":"00g1a2b3c4","type":"string"},"id":{"example":"grp_1a2b3c4d5e6f7g8h","type":"string"},"member_count":{"type":"integer"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.Metadata"},"name":{"example":"Backend team","type":"string"},"object":{"type":"string"},"owner_id":{"description":"OwnerID is the owner's prefixed id: inst_, org_ or res_.","example":"org_2abc123def","type":"string"},"owner_type":{"description":"OwnerType is the owner's resource-type key: root, org, or the owning\nresource's type key.","example":"org","type":"string"},"updated_at":{"example":"2026-01-15T09:30:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_group_types.GroupGrant":{"properties":{"group_id":{"example":"grp_1a2b3c4d5e6f7g8h","type":"string"},"object":{"type":"string"},"resource_id":{"example":"res_1a2b3c4d5e6f7g8h","type":"string"},"resource_type":{"example":"project","type":"string"},"roles":{"example":["admin"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_group_types.GroupMember":{"properties":{"group_id":{"type":"string"},"joined_at":{"example":"2026-01-15T09:30:00Z","type":"string"},"object":{"type":"string"},"user":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.MemberUser"}},"type":"object"},"github_com_revotech-group_management-api_core_group_types.ListGroupGrantsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.GroupGrant"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_group_types.ListGroupMembersResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.GroupMember"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_group_types.ListGroupsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.Group"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_group_types.Metadata":{"additionalProperties":{"type":"string"},"description":"Metadata replaces the group's metadata when set.","type":"object"},"github_com_revotech-group_management-api_core_group_types.SetGroupRolesRequest":{"properties":{"resource_id":{"description":"ResourceID is org_…, res_…, or for the root the instance id (inst_…) or\nthe alias \"root\".","example":"res_1a2b3c4d5e6f7g8h","type":"string"},"resource_type":{"example":"project","type":"string"},"roles":{"example":["admin"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"required":["resource_id","resource_type"],"type":"object"},"github_com_revotech-group_management-api_core_group_types.UpdateGroupRequest":{"properties":{"external_id":{"description":"ExternalID, when set, replaces it; an empty string clears it.","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.Metadata"},"name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.CountryRestriction":{"properties":{"countries":{"items":{"type":"string"},"type":"array","uniqueItems":false},"mode":{"enum":["none","allow","block"],"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.DomainRestriction":{"properties":{"domains":{"items":{"type":"string"},"type":"array","uniqueItems":false},"mode":{"enum":["none","allow","block"],"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.EmailPolicy":{"properties":{"allow_disposable":{"type":"boolean"},"allow_plus_addressing":{"type":"boolean"},"domain_restriction":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.DomainRestriction"},"enforce_at_signin":{"description":"EnforceAtSignIn also holds existing users to the rules at sign-in. Off\nby default.","type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.EmailPolicyPreview":{"properties":{"affected_users":{"description":"AffectedUsers break at least one rule.","example":3,"type":"integer"},"by_rule":{"additionalProperties":{"type":"integer"},"description":"ByRule counts the users breaking each rule, by its code\n(email_domain_not_allowed, email_domain_blocked,\nemail_plus_addressing_not_allowed, email_disposable_not_allowed). A user\nbreaking two rules counts under both.","type":"object"},"checked_users":{"description":"CheckedUsers are the active users with an email; all were checked.","example":1200,"type":"integer"},"object":{"example":"email_policy_preview","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.EmailPolicyUpdate":{"properties":{"allow_disposable":{"type":"boolean"},"allow_plus_addressing":{"type":"boolean"},"domain_restriction":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.DomainRestriction"},"enforce_at_signin":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.IdentityPolicy":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"email":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.EmailPolicy"},"object":{"type":"string"},"phone":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.PhonePolicy"},"updated_at":{"type":"string"},"username":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.UsernamePolicy"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.PhonePolicy":{"properties":{"country_restriction":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.CountryRestriction"},"require_verification_for_login":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.PhonePolicyUpdate":{"properties":{"country_restriction":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.CountryRestriction"},"require_verification_for_login":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.PreviewEmailPolicyRequest":{"properties":{"allow_disposable":{"type":"boolean"},"allow_plus_addressing":{"type":"boolean"},"domain_restriction":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.DomainRestriction"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.UpdateIdentityPolicyRequest":{"properties":{"email":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.EmailPolicyUpdate"},"phone":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.PhonePolicyUpdate"},"username":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.UsernamePolicyUpdate"}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.UsernamePolicy":{"properties":{"allow_changes":{"type":"boolean"},"allowed_characters":{"enum":["alphanumeric","alphanumeric_underscore"],"type":"string"},"change_cooldown_days":{"type":"integer"},"enabled":{"type":"boolean"},"max_length":{"example":32,"type":"integer"},"min_length":{"example":3,"type":"integer"},"reserved_usernames":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_identitypolicy_types.UsernamePolicyUpdate":{"properties":{"allow_changes":{"type":"boolean"},"allowed_characters":{"enum":["alphanumeric","alphanumeric_underscore"],"type":"string"},"change_cooldown_days":{"type":"integer"},"clear_reserved_usernames":{"type":"boolean"},"enabled":{"type":"boolean"},"max_length":{"type":"integer"},"min_length":{"type":"integer"},"reserved_usernames":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_invitation_types.Invitation":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"expires_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"id":{"example":"invitation_2a4f8c1e","type":"string"},"invited_by":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.InvitedBy"},"invitee_email":{"example":"jane.doe@example.com","type":"string"},"last_sent_at":{"type":"string"},"message":{"type":"string"},"object":{"type":"string"},"organization_id":{"description":"OrganizationID is the organization the invitee joins; absent for an\ninvitation to the instance alone.","example":"org_9f3b2d7a","type":"string"},"resend_count":{"type":"integer"},"resource_id":{"description":"ResourceID is the resource of the organization the invitation\nalso grants membership of, with ResourceRoles; absent for an invitation\nto the organization alone.","example":"res_4c7e1a9b","type":"string"},"resource_roles":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_roleref.RoleRef"},"type":"array","uniqueItems":false},"resource_type":{"example":"project","type":"string"},"roles":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_roleref.RoleRef"},"type":"array","uniqueItems":false},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_invitation_types.InvitationResult":{"properties":{"invitations":{"description":"Invitations are the invitations sent: new ones, and live ones an\naddress already held to the same target, reissued with this request's\nroles and a new link (resend_count > 0) — the earlier link stops working.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.Invitation"},"type":"array","uniqueItems":false},"object":{"type":"string"},"organization_id":{"description":"OrganizationID is the organization invited into; absent for an\ninvitation to the instance.","type":"string"},"skipped":{"description":"Skipped are the addresses that got no invitation, and why. Skipping is\nnot an error: a request whose every address was skipped still succeeds.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.SkippedInvitee"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_invitation_types.InviteMembersRequest":{"properties":{"app_id":{"description":"AppID is the application this invitation is for: whose sign-in domain the\nlink points at, whose branding and flows the invitee sees while accepting,\nand whose initiate_login_uri they land on once they have. It must admit\nthe organization. Optional when exactly one active app of the instance\nadmits it; required when several do.","example":"app_9f3b2d7a","type":"string"},"emails":{"example":["jane.doe@example.com"],"items":{"type":"string"},"type":"array","uniqueItems":false},"message":{"type":"string"},"resource_id":{"description":"ResourceID is a resource of the organization the invitees also\njoin, with ResourceRoles (roles of the resource's type, at least one). An\norganization member can be invited to one of its resources.","example":"res_4c7e1a9b","type":"string"},"resource_roles":{"example":["member"],"items":{"type":"string"},"type":"array","uniqueItems":false},"roles":{"description":"Roles are the organization roles. Optional: with none, the invitee\njoins the organization with the membership settings' roles_on_join\n(none by default, a membership holding no role).","example":["member"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"required":["emails"],"type":"object"},"github_com_revotech-group_management-api_core_invitation_types.InviteToInstanceRequest":{"properties":{"app_id":{"description":"AppID is the application the invitee creates their account in: whose\nsign-in domain the link points at, whose branding and flows they see,\nand whose initiate_login_uri they land on. Its org_access must be all,\nsince the invitee joins no organization. Optional when exactly one active\napp of the instance has it; required when several do.","example":"app_9f3b2d7a","type":"string"},"emails":{"example":["jane.doe@example.com"],"items":{"type":"string"},"type":"array","uniqueItems":false},"message":{"type":"string"}},"required":["emails"],"type":"object"},"github_com_revotech-group_management-api_core_invitation_types.InvitedBy":{"description":"InvitedBy is the user of the instance who sent it. Absent when a service\naccount or a Pontive operator (from the dashboard) sent it.","properties":{"id":{"type":"string"},"name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_invitation_types.ListInvitationsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.Invitation"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_invitation_types.ResendInvitationRequest":{"properties":{"message":{"type":"string"},"new_expire_at":{"example":"2024-01-15T09:30:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_invitation_types.SkippedInvitee":{"properties":{"email":{"example":"jane.doe@example.com","type":"string"},"reason":{"description":"Reason is already_member: a member of the target already (an invite\ndoes not change a member's roles); or, for an invitation to the\ninstance, already_registered: the address already has an account.","enum":["already_member","already_registered"],"example":"already_member","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_localization_types.LocalizationSettings":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"default_locale":{"description":"DefaultLocale is what locale negotiation falls back to, and the locale the\nwidget markup itself is authored in.","example":"en-US","type":"string"},"enabled_locales":{"description":"EnabledLocales excludes the default, which is implicitly enabled.\n\nThis is what the OIDC discovery document's `ui_locales_supported`\nadvertises — a public conformance claim, so it describes what the project\ncan actually render rather than a fixed list.","items":{"type":"string"},"type":"array","uniqueItems":false},"object":{"example":"localization_settings","type":"string"},"updated_at":{"type":"string"},"updated_by":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_localization_types.UpdateLocalizationSettingsRequest":{"properties":{"default_locale":{"example":"en-US","type":"string"},"enabled_locales":{"description":"A pointer so that an explicit empty array (\"disable every extra locale\")\nis distinguishable from omitting the field.","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_me_types.CurrentUser":{"properties":{"address":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Address"},"birthdate":{"example":"1990-05-15","type":"string"},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"email":{"example":"jane@example.com","type":"string"},"email_verified":{"type":"boolean"},"external_id":{"description":"ExternalID is your own id for this user, unique per project environment;\nthe access-token claims template reads it as user.external_id.","type":"string"},"family_name":{"type":"string"},"gender":{"type":"string"},"given_name":{"type":"string"},"id":{"example":"user_2abc123def","type":"string"},"instance_id":{"type":"string"},"legacy_identities":{"description":"LegacyIdentities are the user's ids in the systems they were imported\nfrom. Read-only.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.LegacyIdentity"},"type":"array","uniqueItems":false},"locale":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Metadata"},"middle_name":{"type":"string"},"name":{"type":"string"},"nickname":{"type":"string"},"object":{"type":"string"},"password_change_required":{"type":"boolean"},"password_status":{"description":"PasswordStatus is none, active (a password set in Pontive) or imported\n(a hash imported from another system, replaced at the user's first\nsign-in; pontive-spec 46 §4.6). Read-only.","enum":["none","active","imported"],"example":"active","type":"string"},"phone":{"type":"string"},"phone_verified":{"type":"boolean"},"picture":{"type":"string"},"private_metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Metadata"},"profile":{"type":"string"},"status":{"enum":["active","deleted","deactivated"],"example":"active","type":"string"},"updated_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"username":{"example":"jdoe","type":"string"},"website":{"type":"string"},"zoneinfo":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_me_types.UpdateCurrentUserRequest":{"properties":{"family_name":{"type":"string"},"given_name":{"type":"string"},"metadata":{"additionalProperties":{"type":"string"},"type":"object"},"name":{"type":"string"},"picture":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_member_types.AddOrganizationMemberRequest":{"properties":{"roles":{"example":["member"],"items":{"type":"string"},"type":"array","uniqueItems":false},"user_id":{"example":"user_5d1c8b3f","type":"string"}},"required":["roles","user_id"],"type":"object"},"github_com_revotech-group_management-api_core_member_types.AddResourceMemberRequest":{"properties":{"roles":{"example":["member"],"items":{"type":"string"},"type":"array","uniqueItems":false},"user_id":{"example":"user_5d1c8b3f","type":"string"}},"required":["roles","user_id"],"type":"object"},"github_com_revotech-group_management-api_core_member_types.AddRootMemberRequest":{"properties":{"roles":{"example":["admin"],"items":{"type":"string"},"type":"array","uniqueItems":false},"user_id":{"example":"usr_5d1c8b3f","type":"string"}},"required":["roles","user_id"],"type":"object"},"github_com_revotech-group_management-api_core_member_types.AssignableRole":{"properties":{"assignable_by_caller":{"description":"AssignableByCaller: the caller may grant or remove it on a member other\nthan themselves.","type":"boolean"},"description":{"type":"string"},"key":{"description":"Key identifies the role on the organization type.","example":"admin","type":"string"},"name":{"example":"Admin","type":"string"},"object":{"example":"assignable_role","type":"string"},"organization_scoped":{"description":"OrganizationScoped: the role is this organization's own, not one of the\ninstance's organization roles.","type":"boolean"},"requires_transfer":{"description":"RequiresTransfer: granting or removing it hands the organization over,\nwhich needs sys:org:transfer (the owner role).","type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_member_types.ListAssignableRolesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.AssignableRole"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_member_types.ListMembersResponse":{"properties":{"data":{"description":"List of members","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.Member"},"type":"array","uniqueItems":false},"object":{"description":"The object type","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_member_types.ListUserMembershipsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.UserMembership"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_member_types.Member":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"instance_id":{"type":"string"},"joined_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"last_active_at":{"type":"string"},"object":{"type":"string"},"resource_id":{"example":"org_9f3b2d7a","type":"string"},"resource_name":{"type":"string"},"resource_type":{"example":"org","type":"string"},"roles":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_roleref.RoleRef"},"type":"array","uniqueItems":false},"updated_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"user":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.MemberUser"}},"type":"object"},"github_com_revotech-group_management-api_core_member_types.MemberUser":{"properties":{"email":{"example":"jane.doe@example.com","type":"string"},"email_verified":{"type":"boolean"},"family_name":{"type":"string"},"given_name":{"type":"string"},"id":{"example":"user_5d1c8b3f","type":"string"},"name":{"type":"string"},"picture":{"type":"string"},"status":{"example":"active","type":"string"},"username":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_member_types.UpdateMemberRolesRequest":{"properties":{"roles":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_member_types.UpdateResourceMemberRolesRequest":{"properties":{"roles":{"example":["member"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"required":["roles"],"type":"object"},"github_com_revotech-group_management-api_core_member_types.UpdateRootMemberRequest":{"properties":{"roles":{"example":["admin"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"required":["roles"],"type":"object"},"github_com_revotech-group_management-api_core_member_types.UserMembership":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"instance_id":{"type":"string"},"joined_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"last_active_at":{"type":"string"},"object":{"example":"membership","type":"string"},"resource_external_id":{"description":"ResourceExternalID is the container's external_id, the caller's own id\nfor the organization or resource, when it has one.","type":"string"},"resource_id":{"example":"org_9f3b2d7a","type":"string"},"resource_name":{"type":"string"},"resource_type":{"example":"org","type":"string"},"roles":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_roleref.RoleRef"},"type":"array","uniqueItems":false},"updated_at":{"type":"string"},"user_id":{"example":"user_5d1c8b3f","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.BatchCounts":{"properties":{"created":{"type":"integer"},"failed":{"type":"integer"},"skipped":{"type":"integer"},"updated":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.CreateMigrationSourceRequest":{"properties":{"hash_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.HashConfig"},"name":{"example":"Firebase production","type":"string"},"source_type":{"enum":["auth0","clerk","supabase","lovable_cloud","firebase","cognito","nextauth","better_auth","replit_auth","other"],"example":"firebase","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.CreateUserImportRequest":{"properties":{"migration_source_id":{"example":"msrc_1a2b3c4d5e6f","type":"string"},"name":{"example":"Auth0 cutover","type":"string"},"options":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UserImportOptions"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.FirebaseScrypt":{"description":"FirebaseScrypt is null when the source has none.","properties":{"mem_cost":{"description":"MemCost is 1 to 16.","example":14,"type":"integer"},"rounds":{"description":"Rounds is 1 to 16.","example":8,"type":"integer"},"salt_separator":{"description":"SaltSeparator is base64.","example":"Bw==","type":"string"},"signer_key":{"description":"SignerKey is the base64 signer key. Write-only: never answered.","example":"jxspr8Ki0RYycVU8zykbdLGjFQ3McFUH0uiiTvC8pVMXAn210wjLNmdZJzxUECKbm0QsEmYUSDzZvpjeJ9WmXA==","type":"string"},"signer_key_preview":{"description":"SignerKeyPreview is the signer key's last four characters, answered\ninstead of it.","example":"…mXA==","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.FirebaseScryptSample":{"properties":{"hash":{"type":"string"},"password":{"type":"string"},"salt":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.HashConfig":{"properties":{"firebase_scrypt":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.FirebaseScrypt"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.IdentityConnection":{"properties":{"app_id":{"example":"app_1a2b3c4d5e6f","type":"string"},"connection_slug":{"example":"google","type":"string"},"connection_type":{"enum":["google","github","apple","oidc","microsoft","entra"],"example":"google","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ImportMemberRow":{"properties":{"legacy_subject":{"type":"string"},"roles":{"example":["owner"],"items":{"type":"string"},"type":"array","uniqueItems":false},"user_external_id":{"type":"string"},"user_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ImportOrganizationRow":{"properties":{"external_id":{"example":"org_8Hq2","type":"string"},"members":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ImportMemberRow"},"type":"array","uniqueItems":false},"metadata":{"additionalProperties":{"type":"string"},"type":"object"},"name":{"example":"Acme Corp","type":"string"},"slug":{"example":"acme-corp","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ImportOrganizationsRequest":{"properties":{"dry_run":{"example":true,"type":"boolean"},"organizations":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ImportOrganizationRow"},"type":"array","uniqueItems":false},"user_import_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ImportUserRow":{"properties":{"created_at":{"example":"2021-03-01T09:30:00Z","type":"string"},"email":{"example":"jane@acme.com","type":"string"},"email_verified":{"type":"boolean"},"external_id":{"type":"string"},"external_identities":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ImportedExternalIdentity"},"type":"array","uniqueItems":false},"family_name":{"type":"string"},"given_name":{"type":"string"},"legacy_subject":{"example":"auth0|65f2c1","type":"string"},"locale":{"type":"string"},"metadata":{"additionalProperties":{"type":"string"},"type":"object"},"middle_name":{"type":"string"},"name":{"type":"string"},"nickname":{"type":"string"},"password":{"type":"string"},"password_hash":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.PasswordHash"},"phone":{"type":"string"},"phone_verified":{"type":"boolean"},"picture":{"type":"string"},"private_metadata":{"additionalProperties":{"type":"string"},"type":"object"},"status":{"enum":["active","deactivated"],"type":"string"},"totp":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ImportedTOTP"},"username":{"type":"string"},"zoneinfo":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ImportUsersRequest":{"properties":{"dry_run":{"description":"DryRun (default true) answers the plan and writes nothing.","example":true,"type":"boolean"},"user_import_id":{"description":"UserImportID names the run; omitted, an applied batch starts a run with\nthe default options and no source.","example":"uimp_1a2b3c4d5e6f","type":"string"},"users":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ImportUserRow"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ImportedExternalIdentity":{"properties":{"connection_type":{"enum":["google","github","apple","oidc","microsoft","entra"],"example":"google","type":"string"},"email":{"type":"string"},"provider_user_id":{"example":"108425932","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ImportedTOTP":{"properties":{"algorithm":{"description":"Algorithm, Digits and Period, when the exporter states them, must be\nSHA1, 6 and 30.","example":"SHA1","type":"string"},"digits":{"example":6,"type":"integer"},"period":{"example":30,"type":"integer"},"recovery_codes":{"description":"RecoveryCodes (at most 16) are stored hashed; each works once.","items":{"type":"string"},"type":"array","uniqueItems":false},"secret":{"description":"Secret is base32, 16 to 64 characters.","example":"JBSWY3DPEHPK3PXP","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ListMigrationSourcesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.MigrationSource"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ListUserImportRecordsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UserImportRecord"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ListUserImportsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UserImport"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.MigrationSource":{"properties":{"created_at":{"example":"2026-12-02T10:00:00Z","type":"string"},"hash_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.HashConfig"},"id":{"example":"msrc_1a2b3c4d5e6f","type":"string"},"imported_passwords":{"description":"ImportedPasswords counts the users whose imported hash still needs this\nsource: they have not signed in since.","example":18234,"type":"integer"},"name":{"example":"Firebase production","type":"string"},"object":{"example":"migration_source","type":"string"},"source_type":{"enum":["auth0","clerk","supabase","lovable_cloud","firebase","cognito","nextauth","better_auth","replit_auth","other"],"example":"firebase","type":"string"},"updated_at":{"example":"2026-12-02T10:00:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.MigrationSourceCheck":{"properties":{"check":{"example":"firebase_scrypt_sample","type":"string"},"detail":{"example":"the sample verifies","type":"string"},"status":{"enum":["ok","failed"],"example":"ok","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.MigrationSourceValidation":{"properties":{"checks":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.MigrationSourceCheck"},"type":"array","uniqueItems":false},"object":{"example":"migration_source_validation","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.PasswordHash":{"properties":{"hasher":{"enum":["bcrypt","argon2","scrypt","firebase_scrypt","pbkdf2","django","werkzeug","aspnet_identity","wordpress","ldap","digest"],"example":"bcrypt","type":"string"},"params":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.PasswordHashParams"},"salt":{"type":"string"},"value":{"example":"$2b$10$N9qo8uLOickgx2ZMRZoMye…","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.PasswordHashParams":{"properties":{"algorithm":{"enum":["md5","sha1","sha256","sha512"],"type":"string"},"digest":{"enum":["sha1","sha256","sha512"],"type":"string"},"encoding":{"enum":["hex","base64"],"type":"string"},"iterations":{"type":"integer"},"key_length":{"type":"integer"},"n":{"type":"integer"},"normalize":{"enum":["nfkc"],"type":"string"},"p":{"type":"integer"},"r":{"type":"integer"},"salt_encoding":{"enum":["utf8","hex","base64"],"type":"string"},"salt_position":{"enum":["none","prefix","suffix"],"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.RecordResult":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.RowError"},"type":"array","uniqueItems":false},"index":{"example":0,"type":"integer"},"key":{"example":"auth0|65f2c1","type":"string"},"organization_id":{"type":"string"},"outcome":{"enum":["created","updated","skipped","failed"],"example":"created","type":"string"},"user_id":{"type":"string"},"warnings":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.RowError"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.RevertKept":{"properties":{"organization_id":{"type":"string"},"reason":{"enum":["signed_in","has_other_members","owns_organization","forbidden","error"],"example":"signed_in","type":"string"},"user_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.RevertUserImportRequest":{"properties":{"dry_run":{"description":"DryRun (default true) answers what would go and deletes nothing.","example":true,"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.RowError":{"properties":{"code":{"example":"identifier_conflict","type":"string"},"field":{"example":"users[3].email","type":"string"},"message":{"example":"another user has this email","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.TOTPApp":{"properties":{"app_id":{"example":"app_1a2b3c4d5e6f","type":"string"},"issuer":{"example":"Acme","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.UpdateMigrationSourceRequest":{"properties":{"hash_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.HashConfig"},"name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.UserImport":{"properties":{"counts":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UserImportCounts"},"created_at":{"type":"string"},"id":{"example":"uimp_1a2b3c4d5e6f","type":"string"},"last_batch_at":{"type":"string"},"migration_source_id":{"example":"msrc_1a2b3c4d5e6f","type":"string"},"name":{"example":"Auth0 cutover","type":"string"},"object":{"example":"user_import","type":"string"},"options":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UserImportOptions"},"reverted_at":{"type":"string"},"status":{"enum":["open","reverting","reverted"],"example":"open","type":"string"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.UserImportBatch":{"properties":{"batch":{"description":"Batch is the batch's number in the run; absent in a dry run.","example":7,"type":"integer"},"counts":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.BatchCounts"},"dry_run":{"example":false,"type":"boolean"},"object":{"example":"user_import_batch","type":"string"},"records":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.RecordResult"},"type":"array","uniqueItems":false},"user_import_id":{"example":"uimp_1a2b3c4d5e6f","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.UserImportCounts":{"properties":{"batches":{"type":"integer"},"memberships_written":{"type":"integer"},"organizations_created":{"type":"integer"},"organizations_failed":{"type":"integer"},"organizations_updated":{"type":"integer"},"users_created":{"type":"integer"},"users_failed":{"type":"integer"},"users_skipped":{"type":"integer"},"users_updated":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.UserImportOptions":{"properties":{"emit_events":{"description":"EmitEvents (default true) fires pontive.user.created for each user the\nrun creates.","example":true,"type":"boolean"},"identity_connections":{"description":"IdentityConnections (at most 20) are the app connections imported\nexternal identities are written to, per connection type.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.IdentityConnection"},"type":"array","uniqueItems":false},"on_existing":{"description":"OnExisting is what a row matching an existing user does: skip\n(default), or update its profile, metadata and verified flags, and its\ncredentials while the user has not set a password since.","enum":["skip","update"],"example":"skip","type":"string"},"password_policy_violation":{"description":"PasswordPolicyViolation is what a password failing the password policy\nleads to: require_change (default) at the next sign-in, or allow.","enum":["require_change","allow"],"example":"require_change","type":"string"},"totp_app_ids":{"description":"TOTPAppIDs (at most 20) are the apps imported TOTP secrets are stored\nfor: each must have TOTP on with an issuer.","example":["app_1a2b3c4d5e6f"],"items":{"type":"string"},"type":"array","uniqueItems":false},"totp_apps":{"description":"TOTPApps are the apps with their issuers, as resolved. Read-only.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.TOTPApp"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.UserImportRecord":{"properties":{"batch":{"example":7,"type":"integer"},"created_at":{"type":"string"},"errors":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.RowError"},"type":"array","uniqueItems":false},"id":{"example":"uimr_1a2b3c4d5e6f","type":"string"},"index":{"example":3,"type":"integer"},"key":{"example":"auth0|65f2c1","type":"string"},"kind":{"enum":["user","organization"],"example":"user","type":"string"},"object":{"example":"user_import_record","type":"string"},"organization_id":{"type":"string"},"outcome":{"enum":["created","updated","skipped","failed"],"example":"created","type":"string"},"reverted":{"type":"boolean"},"user_id":{"example":"usr_1a2b3c4d5e6f","type":"string"},"user_import_id":{"example":"uimp_1a2b3c4d5e6f","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.UserImportRevert":{"properties":{"dry_run":{"type":"boolean"},"kept":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.RevertKept"},"type":"array","uniqueItems":false},"object":{"example":"user_import_revert","type":"string"},"organizations_deleted":{"example":30,"type":"integer"},"remaining":{"description":"Remaining is what is left for the next call; 0 when the run is\nreverted.","example":0,"type":"integer"},"users_deleted":{"example":412,"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_migration_types.ValidateMigrationSourceRequest":{"properties":{"firebase_scrypt_sample":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.FirebaseScryptSample"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.AppleConfig":{"properties":{"client_secret":{"description":"ClientSecret is a pre-generated Apple client-secret JWT. Supplying it\nshort-circuits derivation, making private_key/team_id/key_id unnecessary.","type":"string"},"key_id":{"type":"string"},"private_key":{"description":"PrivateKey is the .p8 key material Apple's client secret is derived from.\nRequired unless client_secret is supplied.","type":"string"},"service_id":{"type":"string"},"team_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.AppleConfigUpdate":{"properties":{"client_secret":{"type":"string"},"key_id":{"type":"string"},"private_key":{"type":"string"},"service_id":{"type":"string"},"team_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.AppleConfigView":{"properties":{"client_secret_set":{"type":"boolean"},"key_id":{"type":"string"},"private_key_set":{"type":"boolean"},"service_id":{"type":"string"},"team_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.AttributesMapping":{"properties":{"address":{"type":"string"},"birthdate":{"type":"string"},"email":{"type":"string"},"email_verified":{"type":"string"},"family_name":{"type":"string"},"gender":{"type":"string"},"given_name":{"type":"string"},"locale":{"type":"string"},"middle_name":{"type":"string"},"name":{"type":"string"},"nickname":{"type":"string"},"phone_number":{"type":"string"},"phone_number_verified":{"type":"string"},"picture":{"type":"string"},"profile":{"type":"string"},"sub":{"type":"string"},"updated_at":{"type":"string"},"website":{"type":"string"},"zoneinfo":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.CreateOAuthConnectionRequest":{"properties":{"config":{"oneOf":[{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GoogleConfig","title":"Google"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.LinkedInConfig","title":"LinkedIn"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.MicrosoftConfig","title":"Microsoft"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.EntraConfig","title":"Microsoft Entra"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.OIDCConfig","title":"Custom OIDC"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GitHubConfig","title":"GitHub"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.AppleConfig","title":"Apple"}]},"connect_scopes":{"description":"ConnectScopes are requested in this app's connect (connected-accounts) flow.","items":{"type":"string"},"type":"array","uniqueItems":false},"credential_source":{"description":"CredentialSource selects where the client credentials come from: 'own'\n(in config, the default), 'shared' (shared_credential_id), or 'pontive'\n(Pontive Credentials). Config is required only for 'own'.","enum":["own","shared","pontive"],"example":"own","type":"string"},"name":{"type":"string"},"provider_type":{"enum":["google","github","microsoft","linkedin","apple","oidc","entra"],"example":"google","type":"string"},"shared_credential_id":{"type":"string"},"signin_scopes":{"description":"SigninScopes are the identity scopes requested at sign-in, on top of the\nprovider type's catalog-required scopes.","items":{"type":"string"},"type":"array","uniqueItems":false},"update_user_profile":{"type":"boolean"},"use_for_signin":{"description":"UseForSignin allows this connection to serve as a sign-in method.","type":"boolean"}},"required":["provider_type"],"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.CreateSharedCredentialRequest":{"properties":{"config":{"oneOf":[{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GoogleConfig","title":"Google"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.LinkedInConfig","title":"LinkedIn"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.MicrosoftConfig","title":"Microsoft"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.EntraConfig","title":"Microsoft Entra"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.OIDCConfig","title":"Custom OIDC"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GitHubConfig","title":"GitHub"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.AppleConfig","title":"Apple"}]},"name":{"type":"string"},"provider_type":{"enum":["google","github","microsoft","linkedin","apple","oidc","entra"],"example":"google","type":"string"}},"required":["provider_type"],"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.Endpoints":{"properties":{"authorization_url":{"type":"string"},"discovery_url":{"type":"string"},"token_url":{"type":"string"},"user_info_url":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.EntraConfig":{"properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"tenant_id":{"description":"TenantID is the Entra tenant substituted into the {tenant} segment of the\nprovider's authority endpoints. Unlike Microsoft's fixed \"common\"\nauthority, an Entra connection is pinned to this single tenant.","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.EntraConfigUpdate":{"properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"tenant_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.EntraConfigView":{"properties":{"client_id":{"type":"string"},"client_secret_set":{"type":"boolean"},"tenant_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.GitHubConfig":{"properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"prompt":{"items":{"enum":["none","login","consent","select_account"],"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.GitHubConfigUpdate":{"properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"prompt":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.GitHubConfigView":{"properties":{"client_id":{"type":"string"},"client_secret_set":{"type":"boolean"},"prompt":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.GoogleConfig":{"properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.GoogleConfigUpdate":{"properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.GoogleConfigView":{"properties":{"client_id":{"type":"string"},"client_secret_set":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.LinkedInConfig":{"properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.LinkedInConfigUpdate":{"properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.LinkedInConfigView":{"properties":{"client_id":{"type":"string"},"client_secret_set":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.ListOAuthProvidersResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.OAuthProviderListItem"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.ListProviderCatalogResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.ProviderCatalogEntry"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.ListSharedCredentialsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.SharedCredential"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.MicrosoftConfig":{"properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.MicrosoftConfigUpdate":{"properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.MicrosoftConfigView":{"properties":{"client_id":{"type":"string"},"client_secret_set":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.OAuthConnection":{"properties":{"app_id":{"example":"app_123","type":"string"},"config":{"oneOf":[{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GoogleConfigView","title":"Google"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.LinkedInConfigView","title":"LinkedIn"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.MicrosoftConfigView","title":"Microsoft"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.EntraConfigView","title":"Microsoft Entra"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.OIDCConfigView","title":"Custom OIDC"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GitHubConfigView","title":"GitHub"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.AppleConfigView","title":"Apple"}]},"connect_scopes":{"description":"ConnectScopes are requested in this app's connect (connected-accounts) flow.","items":{"type":"string"},"type":"array","uniqueItems":false},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"credential_source":{"description":"CredentialSource selects where the client credentials come from: 'own'\n(in config), 'shared' (shared_credential_id), or 'pontive' (Pontive Credentials).","enum":["own","shared","pontive"],"example":"own","type":"string"},"instance_id":{"type":"string"},"name":{"example":"Google","type":"string"},"object":{"type":"string"},"provider":{"example":"google","type":"string"},"provider_type":{"enum":["google","github","microsoft","linkedin","apple","oidc","entra"],"example":"google","type":"string"},"shared_credential_id":{"type":"string"},"signin_scopes":{"description":"SigninScopes are the identity scopes requested at sign-in, on top of the\nprovider type's catalog-required scopes.","items":{"type":"string"},"type":"array","uniqueItems":false},"update_user_profile":{"type":"boolean"},"updated_at":{"type":"string"},"use_for_signin":{"description":"UseForSignin reports whether this connection may serve as a sign-in method.","type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.OAuthProvider":{"properties":{"app_id":{"example":"app_123","type":"string"},"callback_urls":{"description":"CallbackURLs are the redirect_uris this provider's login flow uses — one per\nauth-server domain the project serves. Register every one in the provider's\nown console or logins on an unregistered domain fail with\nredirect_uri_mismatch. They are an auth-server property, identical for every\nprovider and set even before one is connected.","items":{"type":"string"},"type":"array","uniqueItems":false},"config":{"oneOf":[{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GoogleConfigView","title":"Google"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.LinkedInConfigView","title":"LinkedIn"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.MicrosoftConfigView","title":"Microsoft"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.EntraConfigView","title":"Microsoft Entra"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.OIDCConfigView","title":"Custom OIDC"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GitHubConfigView","title":"GitHub"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.AppleConfigView","title":"Apple"}]},"connect_scopes":{"description":"ConnectScopes are requested in this app's connect (connected-accounts) flow.","items":{"type":"string"},"type":"array","uniqueItems":false},"connected":{"type":"boolean"},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"credential_source":{"description":"CredentialSource selects where the client credentials come from: 'own'\n(in config), 'shared' (shared_credential_id), or 'pontive' (Pontive Credentials).","enum":["own","shared","pontive"],"example":"own","type":"string"},"deprecated":{"type":"boolean"},"multi_instance":{"type":"boolean"},"name":{"example":"Google","type":"string"},"object":{"type":"string"},"pontive_credentials_available":{"type":"boolean"},"provider":{"example":"google","type":"string"},"provider_type":{"enum":["google","github","microsoft","linkedin","apple","oidc","entra"],"example":"google","type":"string"},"required_scopes":{"items":{"type":"string"},"type":"array","uniqueItems":false},"scope_descriptions":{"additionalProperties":{"type":"string"},"type":"object"},"shared_credential_id":{"type":"string"},"signin_scopes":{"description":"SigninScopes are the identity scopes requested at sign-in, on top of the\nprovider type's catalog-required scopes.","items":{"type":"string"},"type":"array","uniqueItems":false},"update_user_profile":{"type":"boolean"},"updated_at":{"type":"string"},"use_for_signin":{"description":"UseForSignin reports whether this connection may serve as a sign-in method.","type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.OAuthProviderListItem":{"properties":{"app_id":{"example":"app_123","type":"string"},"connect_scopes":{"items":{"type":"string"},"type":"array","uniqueItems":false},"connected":{"type":"boolean"},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"credential_source":{"description":"CredentialSource: 'own' | 'shared' | 'pontive'.","enum":["own","shared","pontive"],"example":"own","type":"string"},"deprecated":{"type":"boolean"},"multi_instance":{"type":"boolean"},"name":{"example":"Google","type":"string"},"object":{"type":"string"},"pontive_credentials_available":{"type":"boolean"},"provider":{"example":"google","type":"string"},"provider_type":{"enum":["google","github","microsoft","linkedin","apple","oidc","entra"],"example":"google","type":"string"},"required_scopes":{"items":{"type":"string"},"type":"array","uniqueItems":false},"scope_descriptions":{"additionalProperties":{"type":"string"},"type":"object"},"shared_credential_id":{"type":"string"},"signin_scopes":{"items":{"type":"string"},"type":"array","uniqueItems":false},"update_user_profile":{"type":"boolean"},"updated_at":{"type":"string"},"use_for_signin":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.OIDCConfig":{"properties":{"additional_authorization_params":{"additionalProperties":{"type":"string"},"type":"object"},"attributes_mapping":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.AttributesMapping"},"client_id":{"type":"string"},"client_secret":{"type":"string"},"display":{"enum":["page","popup","touch","wap"],"type":"string"},"endpoints":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.Endpoints"},"prompt":{"items":{"enum":["none","login","consent","select_account"],"type":"string"},"type":"array","uniqueItems":false},"use_pkce":{"description":"UsePKCE omitted leaves PKCE off: the generic \"oidc\" type is user-configured\nend to end and has no catalog default to inherit. An explicit value is\nnever overridden — a false survives even where a provider default is true.","type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.OIDCConfigUpdate":{"properties":{"additional_authorization_params":{"additionalProperties":{"type":"string"},"type":"object"},"attributes_mapping":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.AttributesMapping"},"client_id":{"type":"string"},"client_secret":{"type":"string"},"display":{"type":"string"},"endpoints":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.Endpoints"},"prompt":{"items":{"type":"string"},"type":"array","uniqueItems":false},"use_pkce":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.OIDCConfigView":{"properties":{"additional_authorization_params":{"additionalProperties":{"type":"string"},"type":"object"},"attributes_mapping":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.AttributesMapping"},"client_id":{"type":"string"},"client_secret_set":{"type":"boolean"},"display":{"type":"string"},"endpoints":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.Endpoints"},"prompt":{"items":{"type":"string"},"type":"array","uniqueItems":false},"use_pkce":{"description":"UsePKCE is absent when the instance never set it explicitly, which leaves\nPKCE off for the generic \"oidc\" type.","type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.ProviderCatalogEntry":{"properties":{"deprecated":{"type":"boolean"},"multi_instance":{"type":"boolean"},"object":{"type":"string"},"pontive_credentials_available":{"type":"boolean"},"provider_type":{"enum":["google","github","microsoft","linkedin","apple","oidc","entra"],"type":"string"},"required_scopes":{"items":{"type":"string"},"type":"array","uniqueItems":false},"scope_descriptions":{"additionalProperties":{"type":"string"},"type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.SharedCredential":{"properties":{"config":{"oneOf":[{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GoogleConfigView","title":"Google"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.LinkedInConfigView","title":"LinkedIn"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.MicrosoftConfigView","title":"Microsoft"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.EntraConfigView","title":"Microsoft Entra"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.OIDCConfigView","title":"Custom OIDC"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GitHubConfigView","title":"GitHub"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.AppleConfigView","title":"Apple"}]},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"id":{"example":"shc_123","type":"string"},"instance_id":{"type":"string"},"name":{"type":"string"},"object":{"type":"string"},"provider_type":{"enum":["google","github","microsoft","linkedin","apple","oidc","entra"],"example":"google","type":"string"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_oauthprovider_types.UpdateSharedCredentialRequest":{"properties":{"config":{"oneOf":[{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GoogleConfigUpdate","title":"Google"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.LinkedInConfigUpdate","title":"LinkedIn"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.MicrosoftConfigUpdate","title":"Microsoft"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.EntraConfigUpdate","title":"Microsoft Entra"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.OIDCConfigUpdate","title":"Custom OIDC"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.GitHubConfigUpdate","title":"GitHub"},{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.AppleConfigUpdate","title":"Apple"}]},"name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_organization_types.CreateOrganizationRequest":{"properties":{"external_id":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Metadata"},"name":{"example":"Acme Inc","type":"string"},"owners":{"description":"Owners hold the `owner` role from the start, each made a member with it.\nAt least one is required; an organization always keeps one.","items":{"type":"string"},"type":"array","uniqueItems":false},"slug":{"description":"Slug is set once, here, and is immutable afterwards. Generated from the\nname when omitted. Unique within the instance; released on delete.","example":"acme-inc","type":"string"}},"required":["name"],"type":"object"},"github_com_revotech-group_management-api_core_organization_types.ListOrganizationsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Organization"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_organization_types.MemberLimits":{"description":"MemberLimits are the member limits set on the organization, by source.","properties":{"billing":{"description":"Billing is set by Pontive billing from the max of a members subscription.\nWhile the instance's billing capability is on, only billing sets it.","example":10,"type":"integer"},"manual":{"description":"Manual is set by an instance admin or the client's backend.","example":25,"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_organization_types.Metadata":{"additionalProperties":{"type":"string"},"type":"object"},"github_com_revotech-group_management-api_core_organization_types.Organization":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"external_id":{"type":"string"},"id":{"example":"org_2abc123def","type":"string"},"instance_id":{"type":"string"},"member_count":{"type":"integer"},"member_limit":{"description":"MemberLimit is the limit in force: the lowest of member_limits, or null\nwhen none is set (pontive-spec 09, Member limits).","example":25,"type":"integer"},"member_limits":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.MemberLimits"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Metadata"},"name":{"example":"Acme Inc","type":"string"},"object":{"type":"string"},"slug":{"example":"acme-inc","type":"string"},"status":{"description":"Status is the organization's status. Suspending it also suspends access to\nevery resource parented under it.","enum":["active","suspended"],"example":"active","type":"string"},"suspended_at":{"type":"string"},"suspension_reasons":{"description":"SuspensionReasons is why the organization is suspended: admin, billing,\nclosed, or several. It is suspended while this is not empty, and the\nlist is empty while it is active (pontive-spec 09, Suspension reasons).","items":{"type":"string"},"type":"array","uniqueItems":false},"updated_at":{"example":"2024-01-15T09:30:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_organization_types.ReactivateOrganizationRequest":{"properties":{"reason":{"description":"Reason is the suspension reason to remove: admin (the default), billing\nor closed. The organization stays suspended while it holds another.\nWhile the instance's billing capability is on, only billing removes\nbilling.","enum":["admin","billing","closed"],"example":"admin","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_organization_types.SetMemberLimitRequest":{"properties":{"limit":{"description":"Limit is the most members the organization may have, 0 or more.","example":25,"minimum":0,"type":"integer"}},"required":["limit"],"type":"object"},"github_com_revotech-group_management-api_core_organization_types.SuspendOrganizationRequest":{"properties":{"reason":{"description":"Reason is the suspension reason to add: admin (the default), billing or\nclosed. billing is Pontive billing's own: while the instance's billing\ncapability is on, only billing adds it; with it off, an instance admin\nmay too. closed says the organization's owners closed their account\nand the client may reopen it: Pontive billing keeps its owner able to\npay its invoices and manage its payment method meanwhile.","enum":["admin","billing","closed"],"example":"admin","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_organization_types.TransferOwnershipRequest":{"properties":{"new_owner_id":{"type":"string"},"previous_owner_id":{"description":"The member giving `owner` up. Defaults to the caller when the caller is a\nuser; required when a service calls on someone's behalf.","type":"string"},"retain_as":{"description":"The roles the previous owner keeps; none when omitted.","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_organization_types.UpdateOrganizationRequest":{"properties":{"external_id":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Metadata"},"name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_organizationsetting_types.OrganizationSettings":{"properties":{"allow_members_to_leave":{"description":"AllowMembersToLeave lets a member leave an organization on their own.\nOff, only someone else removes a member: POST\n/me/memberships/{container_id}/leave on an organization, and a member\nremoving themselves through DELETE\n/organizations/{org_id}/members/{user_id}, answer 403 leave_disabled.","type":"boolean"},"instance_id":{"type":"string"},"invitation_expiry_days":{"description":"InvitationExpiryDays is how many days an invitation stays open, 1 to\n365. Default 7.","example":7,"type":"integer"},"object":{"type":"string"},"roles_on_join":{"description":"RolesOnJoin are the organization roles a user is given when they join\nit without being given any: by joining one of its resources, or\naccepting an invitation that names none. Empty, the default, joins them\nholding no role. Never owner.","example":["viewer"],"items":{"type":"string"},"type":"array","uniqueItems":false},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_organizationsetting_types.OrganizationSettingsResponse":{"properties":{"settings":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organizationsetting_types.OrganizationSettings"}},"type":"object"},"github_com_revotech-group_management-api_core_organizationsetting_types.UpdateOrganizationSettingsRequest":{"properties":{"allow_members_to_leave":{"type":"boolean"},"invitation_expiry_days":{"example":7,"maximum":365,"minimum":1,"type":"integer"},"roles_on_join":{"description":"RolesOnJoin replaces the roles given on joining; omitted leaves them.","example":["viewer"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_pagination.Pagination":{"description":"Pagination is the page answered (api-route-review D9).","properties":{"limit":{"description":"Limit is the maximum number of items per page.","example":20,"type":"integer"},"page":{"description":"Page is the 1-based index of the returned page.","example":1,"type":"integer"},"total":{"description":"Total is the total number of items across all pages.","example":137,"type":"integer"},"total_pages":{"description":"TotalPages is the total number of pages available.","example":7,"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_passwordpolicy_types.PasswordPolicy":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"history_size":{"example":10,"type":"integer"},"max_age_days":{"example":90,"type":"integer"},"min_length":{"example":8,"type":"integer"},"object":{"type":"string"},"require_digits":{"type":"boolean"},"require_lowercase":{"type":"boolean"},"require_special_chars":{"type":"boolean"},"require_uppercase":{"type":"boolean"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_passwordpolicy_types.UpdatePasswordPolicyRequest":{"properties":{"history_size":{"type":"integer"},"max_age_days":{"type":"integer"},"min_length":{"type":"integer"},"require_digits":{"type":"boolean"},"require_lowercase":{"type":"boolean"},"require_special_chars":{"type":"boolean"},"require_uppercase":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_pat_types.CreatePATRequest":{"properties":{"description":{"type":"string"},"expires_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.Metadata"},"name":{"example":"Personal CLI token","type":"string"},"organization_id":{"type":"string"},"user_id":{"example":"usr_1a2b3c4d5e6f7g8h","type":"string"}},"required":["name","user_id"],"type":"object"},"github_com_revotech-group_management-api_core_pat_types.ListPATsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.PAT"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_pat_types.Metadata":{"additionalProperties":{"type":"string"},"type":"object"},"github_com_revotech-group_management-api_core_pat_types.PAT":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"description":{"type":"string"},"expires_at":{"type":"string"},"id":{"example":"pat_2b3c4d5e6f7g8h9i","type":"string"},"instance_id":{"type":"string"},"key_preview":{"type":"string"},"last_used_at":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.Metadata"},"name":{"example":"Personal CLI token","type":"string"},"object":{"type":"string"},"organization_id":{"type":"string"},"status":{"enum":["active","revoked","deleted","expired"],"example":"active","type":"string"},"updated_at":{"type":"string"},"user_id":{"example":"usr_1a2b3c4d5e6f7g8h","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_pat_types.PATWithToken":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"description":{"type":"string"},"expires_at":{"type":"string"},"id":{"example":"pat_2b3c4d5e6f7g8h9i","type":"string"},"instance_id":{"type":"string"},"key_preview":{"type":"string"},"last_used_at":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.Metadata"},"name":{"example":"Personal CLI token","type":"string"},"object":{"type":"string"},"organization_id":{"type":"string"},"status":{"enum":["active","revoked","deleted","expired"],"example":"active","type":"string"},"token":{"type":"string"},"updated_at":{"type":"string"},"user_id":{"example":"usr_1a2b3c4d5e6f7g8h","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_pat_types.UpdatePATRequest":{"properties":{"description":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.Metadata"},"name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_permission_types.CreatePermissionRequest":{"properties":{"description":{"type":"string"},"key":{"example":"organization.read","type":"string"},"name":{"example":"Read organization","type":"string"}},"required":["key"],"type":"object"},"github_com_revotech-group_management-api_core_permission_types.ListPermissionsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_permission_types.Permission"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_permission_types.Permission":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"description":{"type":"string"},"key":{"example":"organization.read","type":"string"},"name":{"example":"Read organization","type":"string"},"object":{"type":"string"},"resource_type":{"example":"org","type":"string"},"type":{"enum":["system","custom"],"example":"custom","type":"string"},"updated_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"used_in_roles":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_roleref.RoleRef"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_permission_types.UpdatePermissionRequest":{"properties":{"description":{"type":"string"},"name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.AuthflowImportPlan":{"properties":{"absent":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanEntry"},"type":"array","uniqueItems":false},"changed":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanEntry"},"type":"array","uniqueItems":false},"conflicts":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanIssue"},"type":"array","uniqueItems":false},"created":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanEntry"},"type":"array","uniqueItems":false},"dry_run":{"description":"DryRun is true when nothing was written.","example":true,"type":"boolean"},"object":{"enum":["authflow_import_plan"],"example":"authflow_import_plan","type":"string"},"publish":{"description":"Publish says whether the changed flows are published, or left as\ndrafts. New widget definitions are published either way.","example":true,"type":"boolean"},"unchanged":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanEntry"},"type":"array","uniqueItems":false},"warnings":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanIssue"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.AuthflowsDocument":{"description":"Document is an authflows/v1 document, passed to identity-svc as the\nbytes it was sent. At most 5 MB.","properties":{"authflows":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.AuthflowsDocumentFlow"},"type":"array","uniqueItems":false},"pontive_document":{"description":"PontiveDocument is the document type. An import reads the current and\nthe previous major version.","enum":["authflows/v1"],"example":"authflows/v1","type":"string"},"pontkit":{"description":"Pontkit is the pontkit release the document was exported against.\nInformational: an import checks markup against the target's release.","example":"1.42.0","type":"string"},"widget_definitions":{"description":"WidgetDefinitions are the instance's own definitions the flows show,\nnever a built-in. A published definition never changes, so this copy\nis the branding document's: a key the target lacks is created and\npublished, identical markup is unchanged, other markup is a conflict.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.DocumentWidgetDefinition"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.AuthflowsDocumentFlow":{"properties":{"description":{"example":"","type":"string"},"edges":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_authflow_types.Edge"},"type":"array","uniqueItems":false},"entry_node":{"example":"start","type":"string"},"id":{"example":"custom_signin","type":"string"},"intents":{"example":["signin"],"items":{"enum":["signin","signup","invitation"],"type":"string"},"type":"array","uniqueItems":false},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_authflow_types.DocumentMetadata"},"name":{"example":"Sign in","type":"string"},"nodes":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_authflow_types.Node"},"type":"array","uniqueItems":false},"role":{"enum":["entry","subflow"],"example":"entry","type":"string"},"widgets":{"additionalProperties":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.AuthflowsDocumentFlowWidget"},"description":"Widgets are the flow's own widgets by ref: the widget's key, suffixed\n-2, -3 in node order when the flow owns several copies of one\ndefinition.","type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.AuthflowsDocumentFlowWidget":{"properties":{"key":{"example":"signin","type":"string"},"markup":{"example":"<pont-card>…</pont-card>","type":"string"},"name":{"example":"Sign in","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.BrandingDocument":{"description":"Document is a branding/v1 document, passed to branding-svc as the\nbytes it was sent. At most 5 MB.","properties":{"assets":{"additionalProperties":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentAsset"},"description":"Assets are the uploaded files the tokens reference as\nasset:sha256-<hex>, keyed sha256-<hex>. A URL the customer hosts stays\na URL.","type":"object"},"blueprints":{"description":"Blueprints are the instance's custom blueprints, by id.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentBlueprint"},"type":"array","uniqueItems":false},"brand":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentBrand"},"localization":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentLocalization"},"pontive_document":{"description":"PontiveDocument is the document type. An import reads the current and\nthe previous major version.","enum":["branding/v1"],"example":"branding/v1","type":"string"},"pontkit":{"description":"Pontkit is the pontkit release the document was exported against.\nInformational: an import checks markup and the theme against the\ntarget's own release.","example":"1.42.0","type":"string"},"widget_customizations":{"description":"WidgetCustomizations are the brand's per-widget layouts, styles and\ncopy, by the definition's key. The brand is a singleton: an import\nresets a customization the target has and the document lacks.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentCustomization"},"type":"array","uniqueItems":false},"widgets":{"description":"Widgets are the instance's own published widget definitions (keys\nstarting custom_). Built-ins are the same everywhere and never travel.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.DocumentWidgetDefinition"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentAsset":{"properties":{"content_type":{"example":"image/png","type":"string"},"data":{"description":"Data is the file's bytes, base64-encoded.","example":"iVBORw0KGgo…","format":"byte","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentBlueprint":{"properties":{"description":{"example":"","type":"string"},"document":{"description":"Document is the fragment: its nodes and edges, the widgets named by\nblueprint-local refs.","type":"object"},"id":{"example":"custom_kyc","type":"string"},"name":{"example":"KYC","type":"string"},"open_events":{"items":{"type":"string"},"type":"array","uniqueItems":false},"widgets":{"additionalProperties":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_blueprint_types.WidgetSpec"},"type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentBrand":{"properties":{"theme":{"description":"Theme is the published pont theme, its shape pontkit-core's, in the key\norder it was saved with.","type":"object"},"tokens":{"description":"Tokens is the token tree: reference ramps, semantic roles, component\noverrides and assets. Fonts are font catalog keys; an uploaded file is\nasset:sha256-<hex>.","type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentCustomization":{"properties":{"layout":{"description":"Layout is the brand's own arrangement of the definition's markup.","type":"string"},"styles":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentStyles"},"translations":{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"description":"Translations maps a locale to the copy overlay's entries,\n<element id>.<attribute> to text.","type":"object"},"widget_key":{"description":"WidgetKey is the definition's key: a built-in's (signin) or the\ninstance's (custom_…).","example":"signin","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentLocalization":{"properties":{"default_locale":{"example":"en","type":"string"},"enabled_locales":{"example":["de","fr"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.BrandingDocumentStyles":{"properties":{"instances":{"additionalProperties":{"additionalProperties":{},"type":"object"},"type":"object"},"tokens":{"type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.BrandingImportPlan":{"properties":{"absent":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanEntry"},"type":"array","uniqueItems":false},"changed":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanEntry"},"type":"array","uniqueItems":false},"conflicts":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanIssue"},"type":"array","uniqueItems":false},"created":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanEntry"},"type":"array","uniqueItems":false},"dry_run":{"description":"DryRun is true when nothing was written.","example":true,"type":"boolean"},"object":{"enum":["branding_import_plan"],"example":"branding_import_plan","type":"string"},"publish":{"description":"Publish says whether the changes are published, or left as drafts.","example":true,"type":"boolean"},"unchanged":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanEntry"},"type":"array","uniqueItems":false},"warnings":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.PlanIssue"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.DocumentWidgetDefinition":{"properties":{"description":{"example":"","type":"string"},"key":{"example":"custom_promo","type":"string"},"markup":{"description":"Markup is the definition's pontkit markup.","example":"<pont-card>…</pont-card>","type":"string"},"name":{"example":"Promo sign-in","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.ImportAuthflowsRequest":{"properties":{"discard_unpublished":{"description":"DiscardUnpublished lets the import overwrite a draft with unpublished\nchanges, which is otherwise a conflict.","example":false,"type":"boolean"},"document":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.AuthflowsDocument"},"dry_run":{"description":"DryRun returns the plan and writes nothing. True when omitted: send\nfalse to apply.","example":true,"type":"boolean"},"publish":{"description":"Publish publishes what the import changes. True when omitted; false\nwrites drafts for review in the dashboard.","example":true,"type":"boolean"},"secrets":{"additionalProperties":{"type":"string"},"description":"Secrets are the values of the document's {\"$secret\": \"<name>\"}\nplaceholders, by name; never inside the document, and never echoed\nback. A placeholder with no value here or in the target is a conflict.","type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.ImportBrandingRequest":{"properties":{"discard_unpublished":{"description":"DiscardUnpublished lets the import overwrite a draft with unpublished\nchanges, which is otherwise a conflict.","example":false,"type":"boolean"},"document":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.BrandingDocument"},"dry_run":{"description":"DryRun returns the plan and writes nothing. True when omitted: send\nfalse to apply.","example":true,"type":"boolean"},"publish":{"description":"Publish publishes what the import changes. True when omitted; false\nwrites drafts for review in the dashboard.","example":true,"type":"boolean"},"secrets":{"additionalProperties":{"type":"string"},"description":"Secrets are the values of the document's {\"$secret\": \"<name>\"}\nplaceholders, by name; never inside the document, and never echoed\nback. A placeholder with no value here or in the target is a conflict.","type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.PlanEntry":{"properties":{"fields":{"description":"Fields are the document fields that differ, for a changed object.","example":["markup"],"items":{"type":"string"},"type":"array","uniqueItems":false},"key":{"description":"Key is the object's key in the document: a flow's or a blueprint's id,\na definition's key, a customization's widget_key, an asset's\nsha256-<hex>, or \"\" for a singleton (brand, theme, localization).","example":"custom_promo","type":"string"},"kind":{"description":"Kind is what the object is.","example":"widget_definition","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_promotion_types.PlanIssue":{"properties":{"code":{"description":"Code says why. A conflict's: invalid, immutable, retired,\nmissing_reference, unpublished_changes, missing_secret or\nassets_not_available. A warning's: instance_specific_id,\nunknown_connection, locale_not_enabled, unused_asset, unused_secret or\nvalidation.","example":"immutable","type":"string"},"field":{"description":"Field is the document field it is about, \"\" for the whole object. The\nwhole path is <kind>.<key>.<field>, the field a 409 import_conflict\ndetail names.","example":"markup","type":"string"},"key":{"example":"custom_promo","type":"string"},"kind":{"example":"widget_definition","type":"string"},"message":{"example":"a published definition's markup never changes","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.ClientGrant":{"properties":{"all_scopes":{"description":"AllScopes is every scope of the API, now and later; scopes is then\nempty.","example":false,"type":"boolean"},"client_id":{"description":"ClientID is an app_, svc_ or agt_ id of the instance; never a\nthird-party app. On the system API only a svc_ or agt_ id, with scopes\nexactly [\"pontive:management\"].","example":"svc_1a2b3c4d5e6f7g8h","type":"string"},"scopes":{"example":["files:read"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.CreateRegisteredAPIRequest":{"properties":{"access_token_ttl":{"description":"AccessTokenTTL absent or 0 is the default, 900.","example":900,"type":"integer"},"client_access":{"description":"ClientAccess absent is the default, all.","enum":["all","selected"],"example":"all","type":"string"},"description":{"type":"string"},"identifier":{"example":"https://mcp.acme.com/mcp","type":"string"},"name":{"example":"Acme Files","type":"string"},"resource_metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ResourceMetadata"},"scopes":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.Scope"},"type":"array","uniqueItems":false},"third_party":{"example":false,"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.ImportScopesRequest":{"properties":{"dry_run":{"description":"DryRun absent or true: return the diff and write nothing.","example":true,"type":"boolean"},"force":{"description":"Force, with remove_missing, removes them even while a client grant,\nconsent grant or third-party profile names them.","example":false,"type":"boolean"},"groups":{"description":"Groups are at most 100.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ToolGroup"},"type":"array","uniqueItems":false},"nextCursor":{"description":"NextCursor set means the result is one page of several, which is\nrefused (api_tool_invalid): send every page's tools at once.","type":"string"},"remove_missing":{"description":"RemoveMissing removes the tool_import scopes the result no longer\nproposes; without it they are kept and listed with action keep.","example":false,"type":"boolean"},"tools":{"description":"Tools are the tools/list result's: 1 to 500, each name once.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.MCPTool"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.ImportScopesResponse":{"properties":{"added":{"description":"Added are new keys, in proposal order.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.Scope"},"type":"array","uniqueItems":false},"api":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.RegisteredAPI"},"changed":{"description":"Changed, removed and unchanged are in the API's scope order.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ScopeChange"},"type":"array","uniqueItems":false},"dry_run":{"description":"DryRun is whether nothing was written.","example":true,"type":"boolean"},"object":{"example":"scope_import","type":"string"},"removed":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.RemovedScope"},"type":"array","uniqueItems":false},"unchanged":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.Scope"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.ListClientGrantsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ClientGrant"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.ListRegisteredAPIsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.RegisteredAPI"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.MCPTool":{"properties":{"annotations":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.MCPToolAnnotations"},"description":{"example":"Read a file from the workspace","type":"string"},"inputSchema":{"type":"object"},"name":{"description":"Name is 1 to 128 of A-Z, a-z, 0-9, _, - and . (the MCP charset).","example":"read_file","type":"string"},"title":{"example":"Read file","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.MCPToolAnnotations":{"properties":{"destructiveHint":{"example":false,"type":"boolean"},"idempotentHint":{"type":"boolean"},"openWorldHint":{"type":"boolean"},"readOnlyHint":{"example":true,"type":"boolean"},"title":{"example":"Read file","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.RegisteredAPI":{"properties":{"access_token_ttl":{"description":"AccessTokenTTL is the lifetime of tokens issued for the API, in\nseconds: 60 to 86400.","example":900,"type":"integer"},"client_access":{"description":"ClientAccess governs apps only: all lets every app of the instance\nrequest the API, selected only those with a client grant. Service\naccounts and agents always need a grant (44 §7).","enum":["all","selected"],"example":"all","type":"string"},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"description":{"type":"string"},"id":{"example":"api_1a2b3c4d5e6f7g8h9i","type":"string"},"identifier":{"description":"Identifier is immutable: any absolute URI or opaque string, https URLs\nnormalised (44 §4).","example":"https://mcp.acme.com/mcp","type":"string"},"instance_id":{"example":"inst_1a2b3c4d5e6f7g8h","type":"string"},"name":{"example":"Acme Files","type":"string"},"object":{"example":"api","type":"string"},"resource_metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ResourceMetadata"},"scopes":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.Scope"},"type":"array","uniqueItems":false},"status":{"enum":["active","disabled"],"example":"active","type":"string"},"system":{"description":"System is true only for the management API, which nobody can change but\nfor its client grants (PUT /apis/{api_id}/clients).","example":false,"type":"boolean"},"third_party":{"description":"ThirdParty is whether third-party (CIMD, DCR) clients may request it.","example":false,"type":"boolean"},"updated_at":{"example":"2024-01-15T09:30:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.RemovedScope":{"properties":{"action":{"description":"Action is keep (remove_missing off), remove (removed; on a dry run,\nwould be) or blocked (named, force off: applying is refused).","enum":["keep","remove","blocked"],"example":"keep","type":"string"},"references":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ScopeReferences"},"scope":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.Scope"}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.ResourceMetadata":{"description":"ResourceMetadata, when present, replaces the metadata wholesale; null\nclears it.","properties":{"logo_uri":{"example":"https://acme.com/logo.png","type":"string"},"resource_documentation":{"example":"https://docs.acme.com/mcp","type":"string"},"resource_name":{"example":"Acme Files","type":"string"}},"type":"object","x-nullable":true},"github_com_revotech-group_management-api_core_registeredapi_types.ResourceMetadataDocument":{"properties":{"authorization_servers":{"example":["https://acme.auth.us.pontive.app"],"items":{"type":"string"},"type":"array","uniqueItems":false},"bearer_methods_supported":{"example":["header"],"items":{"type":"string"},"type":"array","uniqueItems":false},"logo_uri":{"example":"https://acme.com/logo.png","type":"string"},"resource":{"example":"https://mcp.acme.com/mcp","type":"string"},"resource_documentation":{"example":"https://docs.acme.com/mcp","type":"string"},"resource_name":{"example":"Acme Files","type":"string"},"scopes_supported":{"example":["files:read"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.Scope":{"properties":{"description":{"description":"Description is the scope's label on the consent screen, 1 to 200\ncharacters.","example":"Read your files","type":"string"},"display_name":{"description":"DisplayName is a short name shown above the description, at most 80\ncharacters: an imported tool's title, or a group's name.","example":"Read files","type":"string"},"key":{"description":"Key is [a-z0-9][a-z0-9:._-]{0,63}, unique within the API. The OIDC\nscopes and anything starting with pontive: or sys: are refused.","example":"files:read","type":"string"},"origin":{"description":"Origin is manual or tool_import; absent on a write is manual. Tool\nimport removes only tool_import scopes.","enum":["manual","tool_import"],"example":"manual","type":"string"},"tools":{"description":"Tools are the MCP tools a tool_import scope covers, sorted by name;\n[] on a manual scope. A write that changes a tool_import scope sends\nits tools back, or the scope is refused.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ScopeTool"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.ScopeChange":{"properties":{"after":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.Scope"},"before":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.Scope"},"fields":{"description":"Fields are the fields that differ.","example":["description"],"items":{"enum":["description","display_name","origin","tools"],"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.ScopeReferences":{"properties":{"client_grants":{"description":"ClientGrants list the scope (an all-scopes grant names none).","example":1,"type":"integer"},"consent_grants":{"description":"ConsentGrants are users' grants for the API holding it.","example":12,"type":"integer"},"profile_entries":{"description":"ProfileEntries are third-party client profile entries listing it.","example":0,"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.ScopeTool":{"properties":{"destructive":{"description":"Destructive is the tool's effective destructiveHint: MCP defaults it\nto true for a tool that is not read-only.","example":false,"type":"boolean"},"name":{"description":"Name is the tool's MCP name, case-sensitive.","example":"read_file","type":"string"},"read_only":{"description":"ReadOnly is the tool's readOnlyHint.","example":true,"type":"boolean"},"title":{"description":"Title is the tool's title, when the server gave one.","example":"Read file","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.SetClientGrantsRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ClientGrant"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.ToolGroup":{"properties":{"description":{"description":"Description is 1 to 200 characters.","example":"Change your files","type":"string"},"display_name":{"description":"DisplayName is optional, at most 80 characters.","example":"Write files","type":"string"},"scope":{"description":"Scope is the key, under the scope key rules.","example":"files:write","type":"string"},"tools":{"description":"Tools are names from the tools/list result.","example":["write_file"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_registeredapi_types.UpdateRegisteredAPIRequest":{"properties":{"access_token_ttl":{"example":900,"type":"integer"},"client_access":{"enum":["all","selected"],"example":"selected","type":"string"},"description":{"description":"Description: absent leaves it, null or \"\" clears it.","type":"string","x-nullable":true},"name":{"example":"Acme Files","type":"string"},"resource_metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ResourceMetadata"},"scopes":{"description":"Scopes, when present, replace the API's scopes wholesale; null or []\nclears them.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.Scope"},"type":"array","uniqueItems":false,"x-nullable":true},"third_party":{"example":true,"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_resource_types.CreateResourceRequest":{"properties":{"external_id":{"example":"prj_123","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.Metadata"},"name":{"example":"Checkout","type":"string"},"organization_id":{"example":"org_2abc123def","type":"string"},"parent":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.ResourceParent"},"resource_type":{"example":"project","type":"string"}},"required":["resource_type"],"type":"object"},"github_com_revotech-group_management-api_core_resource_types.DeleteResourceResponse":{"properties":{"deregistered_ids":{"example":["res_1a2b3c4d5e6f7g8h"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_resource_types.ListResourcesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.Resource"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_resource_types.Metadata":{"additionalProperties":{"type":"string"},"description":"Metadata replaces the resource's metadata when set.","type":"object"},"github_com_revotech-group_management-api_core_resource_types.Resource":{"properties":{"created_at":{"example":"2026-01-15T09:30:00Z","type":"string"},"external_id":{"example":"prj_123","type":"string"},"id":{"example":"res_1a2b3c4d5e6f7g8h","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.Metadata"},"name":{"example":"Checkout","type":"string"},"object":{"type":"string"},"organization_id":{"example":"org_2abc123def","type":"string"},"parent":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.ResourceParent"},"resource_type":{"example":"project","type":"string"},"updated_at":{"example":"2026-01-15T09:30:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_resource_types.ResourceParent":{"description":"Parent is always set.","properties":{"resource_id":{"example":"org_2abc123def","type":"string"},"resource_type":{"example":"workspace","type":"string"}},"required":["resource_id"],"type":"object"},"github_com_revotech-group_management-api_core_resource_types.SetResourceParentRequest":{"properties":{"resource_id":{"description":"The parent: org_…, res_…, or the instance root (its instance id, or \"root\").","example":"org_2abc123def","type":"string"}},"required":["resource_id"],"type":"object"},"github_com_revotech-group_management-api_core_resource_types.UpdateResourceRequest":{"properties":{"clear_metadata":{"description":"ClearMetadata empties the metadata; metadata must then be omitted.","type":"boolean"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.Metadata"},"name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_resourcetype_types.Capabilities":{"properties":{"billing":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.Capability"},"fga":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.Capability"}},"type":"object"},"github_com_revotech-group_management-api_core_resourcetype_types.CapabilitiesResponse":{"properties":{"capabilities":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.Capabilities"}},"type":"object"},"github_com_revotech-group_management-api_core_resourcetype_types.Capability":{"description":"FGA is Fine-Grained Authorization: custom resource types and everything\nbuilt on them.","properties":{"enabled":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_management-api_core_resourcetype_types.CreateResourceTypeRequest":{"properties":{"allow_members_to_leave":{"description":"The membership policy. Roles on join are set once the type's roles\nexist.","type":"boolean"},"description":{"type":"string"},"invitation_expiry_days":{"type":"integer"},"key":{"example":"project","type":"string"},"name":{"example":"Project","type":"string"},"parents":{"description":"The parent type keys: at least one (parents_required). The type's\nshortest chain of parent types from root or org, self-references\naside, is at most 8 levels (max_depth_exceeded) and must exist\n(cycle_detected): deeper, or with no chain, no resource of the type\ncould ever be registered.","example":["org"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"required":["key"],"type":"object"},"github_com_revotech-group_management-api_core_resourcetype_types.ListResourceTypesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.ResourceType"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_resourcetype_types.MembershipPolicy":{"description":"Policy is a custom type's membership policy; defaults on the reserved\ntypes.","properties":{"allow_members_to_leave":{"description":"AllowMembersToLeave lets a member remove their own membership.","type":"boolean"},"invitation_expiry_days":{"description":"InvitationExpiryDays overrides the instance's invitation expiry; absent\nis the instance's.","type":"integer"},"roles_on_join":{"description":"RolesOnJoin are given when someone is added to or invited into one of\nthe type's resources without roles. That resource only.","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_resourcetype_types.ResourceType":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"description":{"type":"string"},"instance_id":{"type":"string"},"key":{"example":"org","type":"string"},"name":{"example":"Organization","type":"string"},"object":{"type":"string"},"parents":{"description":"Parents are the types this type's objects may sit under: at least one\non every type but root. Each is one edge, whose relation in the\nauthorization model is the parent's key.","example":["root"],"items":{"type":"string"},"type":"array","uniqueItems":false},"policy":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.MembershipPolicy"},"reserved":{"description":"Reserved is true for the seeded root and org types: they cannot be\ndeleted, and only their name and description change.","type":"boolean"},"updated_at":{"example":"2024-01-15T09:30:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_resourcetype_types.UpdateResourceTypeRequest":{"properties":{"allow_members_to_leave":{"description":"The membership policy fields; each omitted is left unchanged.","type":"boolean"},"description":{"type":"string"},"invitation_expiry_days":{"description":"0 clears it to the instance's.","type":"integer"},"name":{"type":"string"},"parents":{"description":"Replaces the parent type keys when present; an empty list is refused\n(parents_required), a type never loses its last parent type. The new\nset must leave this type, and every type under it, within 8 levels of\nroot or org (max_depth_exceeded) and with a chain of parent types to\nroot (cycle_detected).","items":{"type":"string"},"type":"array","uniqueItems":false},"roles_on_join":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_role_types.CreateRoleRequest":{"properties":{"agent_assignable":{"description":"AgentAssignable sets whether an agent may hold the role; omitted is\ntrue (pontive-spec 45 §6.2).","type":"boolean"},"description":{"type":"string"},"inheritance":{"description":"Inheritance is the optional set of inheritance rules, at most one per\nparent type. Each parent_type must be a declared parent type of\nresource_type, and each parent role key must exist on it.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.RoleInheritance"},"type":"array","uniqueItems":false},"inherited_only":{"description":"InheritedOnly makes the role held only through a parent role, never\nassigned directly. Requires inheritance; not on the root type.","type":"boolean"},"key":{"example":"admin","type":"string"},"metadata":{"additionalProperties":{"type":"string"},"type":"object"},"name":{"example":"Administrator","type":"string"},"permissions":{"items":{"type":"string"},"type":"array","uniqueItems":false},"resource_id":{"description":"ResourceID, when set, creates an instance-scoped role bound to this\norganization. Optional and immutable; omit for a\ntype-scoped role (the default).","type":"string"}},"required":["key"],"type":"object"},"github_com_revotech-group_management-api_core_role_types.ListRolesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.Role"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_role_types.Role":{"properties":{"agent_assignable":{"description":"AgentAssignable: an agent may hold the role through an installation\n(pontive-spec 45 §6.2). The seeded org and root owner roles are false;\nevery other role defaults to true.","type":"boolean"},"assignment_count":{"type":"integer"},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"description":{"type":"string"},"inheritance":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.RoleInheritance"},"type":"array","uniqueItems":false},"inherited_only":{"description":"InheritedOnly: the role is held only through a parent role and can never\nbe assigned directly to a member, group, service account or invitation\n(role_not_assignable). Pickers drop it (assignable_only).","type":"boolean"},"key":{"example":"admin","type":"string"},"metadata":{"additionalProperties":{"type":"string"},"type":"object"},"name":{"example":"Administrator","type":"string"},"object":{"type":"string"},"permission_count":{"type":"integer"},"permissions":{"items":{"type":"string"},"type":"array","uniqueItems":false},"resource_id":{"type":"string"},"resource_type":{"example":"org","type":"string"},"type":{"enum":["system","custom"],"example":"custom","type":"string"},"updated_at":{"example":"2024-01-15T09:30:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_role_types.RoleInheritance":{"properties":{"parent_role_keys":{"example":["editor"],"items":{"type":"string"},"type":"array","uniqueItems":false},"parent_type":{"example":"folder","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_role_types.UpdateRoleRequest":{"properties":{"agent_assignable":{"description":"AgentAssignable, when provided, sets whether an agent may hold the role.\nTurning it off is refused while an agent installation holds the role or\nan agent requests it (409 role_held_by_agents).","type":"boolean"},"description":{"type":"string"},"inheritance":{"description":"Inheritance follows the same absent-vs-empty convention as permissions:\nomitted leaves existing rules unchanged; a provided (possibly empty) list\nreplaces them wholesale.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.RoleInheritance"},"type":"array","uniqueItems":false},"inherited_only":{"description":"InheritedOnly, when provided, turns the flag on or off. Turning it on is\nrefused while anything holds the role directly (role_in_use), on the root\ntype, without inheritance, or on a seeded role.","type":"boolean"},"metadata":{"additionalProperties":{"type":"string"},"type":"object"},"name":{"type":"string"},"permissions":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_roleref.RoleRef":{"properties":{"key":{"example":"admin","type":"string"},"name":{"example":"Administrator","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.AppScope":{"properties":{"allowed_scopes":{"items":{"type":"string"},"type":"array","uniqueItems":false},"object":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.AppScopePayload":{"properties":{"allowed_scopes":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.ClientSecret":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"expires_at":{"type":"string"},"id":{"example":"cs_9z8y7x6w5v4u3t2s","type":"string"},"label":{"type":"string"},"last_used_at":{"type":"string"},"object":{"type":"string"},"secret_preview":{"type":"string"},"status":{"enum":["active","rotating"],"example":"active","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.ClientSecretWithValue":{"properties":{"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"expires_at":{"type":"string"},"id":{"example":"cs_9z8y7x6w5v4u3t2s","type":"string"},"label":{"type":"string"},"last_used_at":{"type":"string"},"object":{"type":"string"},"secret":{"type":"string"},"secret_preview":{"type":"string"},"status":{"enum":["active","rotating"],"example":"active","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.CreateClientSecretRequest":{"properties":{"expire_others_in":{"example":86400,"type":"integer"},"label":{"description":"Label is an optional label for the new secret.","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.CreateServiceAccountRequest":{"properties":{"allowed_scopes":{"description":"AllowedScopes are the scopes the account may request for itself; a\npontive: scope is refused (400). To reach the management API, grant the\naccount on the management (system) API instead: PUT\n/apis/{api_id}/clients (pontive-spec 44 §7, §10).","items":{"type":"string"},"type":"array","uniqueItems":false},"description":{"type":"string"},"domain_id":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.Metadata"},"name":{"example":"Billing worker","type":"string"},"owner_id":{"description":"OwnerID is the owner's prefixed id: org_ or res_; for root the inst_ id\nor omitted. Immutable.","example":"org_2abc123def","type":"string"},"owner_type":{"description":"OwnerType is root (the default), org, or the owning resource's type\nkey (D6, D44), which must be that resource's type.","example":"org","type":"string"}},"required":["name"],"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.ListAppScopesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.AppScope"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.ListClientSecretsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ClientSecret"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.ListServiceAccountsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ServiceAccount"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.Metadata":{"additionalProperties":{"type":"string"},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.ServiceAccount":{"properties":{"allowed_scopes":{"description":"AllowedScopes are the scopes the account may request for itself; a\npontive: scope is refused (400). To reach the management API, grant the\naccount on the management (system) API instead: PUT\n/apis/{api_id}/clients (pontive-spec 44 §7, §10).","items":{"type":"string"},"type":"array","uniqueItems":false},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"description":{"type":"string"},"domain_id":{"type":"string"},"id":{"example":"sa_1a2b3c4d5e6f7g8h","type":"string"},"instance_id":{"type":"string"},"issuer":{"type":"string"},"jwks_uri":{"type":"string"},"last_used_at":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.Metadata"},"name":{"example":"Billing worker","type":"string"},"object":{"type":"string"},"owner_id":{"description":"OwnerID is the owner's prefixed id: inst_, org_ or res_.","example":"org_2abc123def","type":"string"},"owner_type":{"description":"OwnerType is the owner's resource-type key (D6, D44): root, org, or the\nowning resource's type key.","example":"org","type":"string"},"public_keys":{"description":"PublicKeys are the inline keys the account signs private_key_jwt\nassertions with; JWKSURI is where they are fetched from instead. At\nmost one is set.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_clientkey.PublicKey"},"type":"array","uniqueItems":false},"roles":{"description":"Roles are the roles the account holds on its owner; what lies below the\nowner is reached by inheritance.","example":["editor"],"items":{"type":"string"},"type":"array","uniqueItems":false},"status":{"enum":["active","deactivated"],"example":"active","type":"string"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.SetServiceAccountRolesRequest":{"properties":{"roles":{"example":["editor"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.TokenConfiguration":{"properties":{"access_token_ttl":{"type":"integer"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.UpdateAppScopesRequest":{"properties":{"scopes":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.AppScopePayload"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.UpdateServiceAccountRequest":{"properties":{"description":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.Metadata"},"name":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_serviceaccount_types.UpdateServiceAccountTokenConfigRequest":{"properties":{"access_token_ttl":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_thirdpartyclient_types.ListOrganizationClientsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.OrganizationThirdPartyClient"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_thirdpartyclient_types.OrganizationClientPolicy":{"properties":{"allowlist":{"description":"Allowlist and Blocklist hold entries: an app id (app_…), an agent id\n(agt_…), an exact CIMD client_id URL, or https://host/*. At most 100\neach.","example":["https://claude.ai/*"],"items":{"type":"string"},"type":"array","uniqueItems":false},"blocklist":{"example":["agt_1a2b3c4d5e6f"],"items":{"type":"string"},"type":"array","uniqueItems":false},"mode":{"description":"Mode all admits every client the instance admits but those the\nblock-list names; allowlist admits only the third-party apps the\nallow-list names (none when it is empty). The block-list always wins.\nAgents are governed by the block-list only: an installation is\nalready the organization's approval of an agent.","enum":["all","allowlist"],"example":"all","type":"string"},"object":{"example":"organization_client_policy","type":"string"},"organization_id":{"example":"org_1a2b3c4d5e6f","type":"string"},"third_party_in_organizations":{"description":"ThirdPartyInOrganizations is the instance's ceiling: false while its\nclient profile gives third-party apps no organization context, so none\nacts in any organization whatever this policy says.","type":"boolean"},"updated_at":{"description":"UpdatedAt is null while the organization has never set its policy.","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_thirdpartyclient_types.OrganizationThirdPartyClient":{"properties":{"app_id":{"example":"app_1a2b3c4d5e6f","type":"string"},"client_id":{"description":"ClientID is its client_id on the wire: a CIMD app's URL, a DCR app's\nid.","example":"https://claude.ai/oauth/client.json","type":"string"},"client_id_url":{"description":"ClientIDURL is a CIMD app's client_id URL; empty for a DCR app.","type":"string"},"instance_admitted":{"description":"InstanceAdmitted is whether the instance's admission policy admits it:\na CIMD app the instance no longer admits is refused whatever the\norganization says.","type":"boolean"},"last_consented_at":{"type":"string"},"logo_url":{"type":"string"},"members":{"description":"Members is how many of the organization's members have consented to\nit.","example":3,"type":"integer"},"name":{"example":"Claude","type":"string"},"object":{"example":"organization_third_party_client","type":"string"},"origin":{"enum":["cimd","dcr"],"example":"cimd","type":"string"},"status":{"description":"Status is the organization's policy on it.","enum":["allowed","blocked","not_allowed"],"example":"allowed","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_thirdpartyclient_types.Profile":{"properties":{"apis":{"description":"APIs are the registered APIs third-party clients may request, each with\nthird_party on. At most 50.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.ProfileAPI"},"type":"array","uniqueItems":false},"authflow_bindings":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AuthflowBindings"},"mfa_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.MFAConfig"},"offline_access":{"description":"OfflineAccess is whether offline_access may be granted, with consent.","example":false,"type":"boolean"},"organizations":{"description":"Organizations is whether a third-party client may receive an\norganization context.","enum":["none","all"],"example":"none","type":"string"},"refresh_token_ttl":{"description":"RefreshTokenTTL is a third-party client's refresh-token lifetime in\nseconds, 3600 to 7776000.","example":2592000,"type":"integer"},"session_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SessionConfig"},"signin_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SigninConfig"},"signup_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupConfig"}},"type":"object"},"github_com_revotech-group_management-api_core_thirdpartyclient_types.ProfileAPI":{"properties":{"api_id":{"description":"APIID is an api_ id of the instance whose third_party is on.","example":"api_1a2b3c4d5e6f7g8h9i","type":"string"},"scopes":{"description":"Scopes null is every scope the API defines, now and later; a list is\nthose of its scope keys only.","example":["files:read"],"items":{"type":"string"},"type":"array","uniqueItems":false,"x-nullable":true}},"type":"object"},"github_com_revotech-group_management-api_core_thirdpartyclient_types.ProfilePatch":{"properties":{"apis":{"description":"APIs, when present, replace the profile's APIs.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.ProfileAPI"},"type":"array","uniqueItems":false,"x-nullable":true},"authflow_bindings":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AuthflowBindings"},"mfa_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.MFAConfig"},"offline_access":{"example":true,"type":"boolean"},"organizations":{"enum":["none","all"],"example":"all","type":"string"},"refresh_token_ttl":{"example":604800,"type":"integer"},"session_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SessionConfig"},"signin_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SigninConfig"},"signup_config":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.SignupConfig"}},"type":"object"},"github_com_revotech-group_management-api_core_thirdpartyclient_types.SetOrganizationClientPolicyRequest":{"properties":{"allowlist":{"example":["https://claude.ai/*"],"items":{"type":"string"},"type":"array","uniqueItems":false},"blocklist":{"example":["https://untrusted.example/client.json"],"items":{"type":"string"},"type":"array","uniqueItems":false},"mode":{"description":"Mode is all (the default when empty) or allowlist.","enum":["all","allowlist"],"example":"allowlist","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_thirdpartyclient_types.ThirdPartyClients":{"properties":{"agent_delegation_enabled":{"description":"AgentDelegationEnabled is whether an agent may exchange a user's token,\nor a delegation grant, for a token acting for that user (pontive-spec\n20 C2 profile (b)). Off by default.","example":false,"type":"boolean"},"allowlist":{"description":"Allowlist holds CIMD client_id URLs, exact or https://host/*. At most\n100. Applies when cimd is allowlist.","example":["https://client.example.com/*"],"items":{"type":"string"},"type":"array","uniqueItems":false},"cimd":{"description":"CIMD is when a client identified by its client ID metadata document may\nstart authorization: never, when its client_id URL matches the\nallowlist, or always once its document validates.","enum":["off","allowlist","open"],"example":"off","type":"string"},"dcr":{"description":"DCR is whether POST /oauth2/register accepts registrations from public\nclients.","enum":["off","on"],"example":"off","type":"string"},"object":{"example":"third_party_clients","type":"string"},"profile":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.Profile"},"updated_at":{"description":"UpdatedAt is omitted while the instance has never changed the setting.","example":"2024-01-15T09:30:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_thirdpartyclient_types.UpdateThirdPartyClientsRequest":{"properties":{"agent_delegation_enabled":{"description":"AgentDelegationEnabled, when present, turns agent delegation on or off.","example":true,"type":"boolean"},"allowlist":{"description":"Allowlist, when present, replaces the allow-list.","example":["https://client.example.com/*"],"items":{"type":"string"},"type":"array","uniqueItems":false,"x-nullable":true},"cimd":{"enum":["off","allowlist","open"],"example":"allowlist","type":"string"},"dcr":{"enum":["off","on"],"example":"on","type":"string"},"profile":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.ProfilePatch"}},"type":"object"},"github_com_revotech-group_management-api_core_user_types.Address":{"properties":{"country":{"type":"string"},"formatted":{"type":"string"},"locality":{"type":"string"},"postal_code":{"type":"string"},"region":{"type":"string"},"street_address":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_user_types.AuthorizedAPI":{"properties":{"api_id":{"example":"api_06fm9tb8vnyqda86dwgxc6wksr","type":"string"},"name":{"example":"Acme Files MCP","type":"string"},"scopes":{"example":["files:read","files:write"],"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_management-api_core_user_types.AuthorizedApp":{"properties":{"apis":{"description":"APIs are the registered APIs the user granted the app scopes on, each\nwith that API's scopes (pontive-spec 40 §5, 44 §3.4). Scopes above are\nthe app's own grant: its OIDC and pontive: scopes.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.AuthorizedAPI"},"type":"array","uniqueItems":false},"app_id":{"example":"app_06fm9tb8vnyqda86dwgxc6wksr","type":"string"},"app_name":{"example":"Partner Analytics","type":"string"},"created_at":{"description":"CreatedAt is when the user first consented; UpdatedAt when the grant\nlast changed.","example":"2024-01-15T09:30:00Z","type":"string"},"logo_url":{"description":"LogoURL is the app's consent-screen logo; empty when it has none.","example":"https://partner.example/logo.png","type":"string"},"scopes":{"description":"Scopes are the scopes the user has granted the app.","example":["openid","profile","email"],"items":{"type":"string"},"type":"array","uniqueItems":false},"updated_at":{"example":"2024-01-16T11:00:00Z","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_user_types.CreateUserRequest":{"properties":{"address":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Address"},"birthdate":{"example":"1990-05-15","type":"string"},"email":{"type":"string"},"email_verified":{"type":"boolean"},"external_id":{"description":"ExternalID is your own id for this user, unique per project environment.","type":"string"},"family_name":{"type":"string"},"gender":{"type":"string"},"given_name":{"type":"string"},"locale":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Metadata"},"middle_name":{"type":"string"},"name":{"type":"string"},"nickname":{"type":"string"},"password":{"type":"string"},"password_change_required":{"type":"boolean"},"phone":{"type":"string"},"phone_verified":{"type":"boolean"},"picture":{"type":"string"},"private_metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Metadata"},"profile":{"type":"string"},"readonly_metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Metadata"},"username":{"type":"string"},"website":{"type":"string"},"zoneinfo":{"type":"string"}},"required":["email"],"type":"object"},"github_com_revotech-group_management-api_core_user_types.LegacyIdentity":{"properties":{"created_at":{"example":"2026-12-02T10:00:00Z","type":"string"},"migration_source_id":{"example":"msrc_1a2b3c4d5e6f","type":"string"},"subject":{"example":"auth0|65f2c1","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_user_types.ListAuthorizedAppsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.AuthorizedApp"},"type":"array","uniqueItems":false},"object":{"example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_user_types.ListUserSessionsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Session"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_user_types.ListUsersResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.User"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_user_types.Metadata":{"additionalProperties":{"type":"string"},"type":"object"},"github_com_revotech-group_management-api_core_user_types.Session":{"properties":{"acr":{"type":"string"},"active":{"description":"Active is identity-svc's own verdict on whether the session may still\nauthorize anything, so clients do not re-derive \"not revoked and not\nexpired\" and get it subtly wrong.","example":true,"type":"boolean"},"amr":{"items":{"type":"string"},"type":"array","uniqueItems":false},"app_id":{"description":"AppID is the app the user signed in through — the session's origin, not a\nrestriction on which apps it can authorize.","type":"string"},"auth_time":{"description":"AuthTime, ACR and AMR are what the user actually did to authenticate.","example":"2024-01-15T09:30:00Z","type":"string"},"clients":{"description":"Clients are the apps issued tokens through this session.","items":{"type":"string"},"type":"array","uniqueItems":false},"created_at":{"description":"CreatedAt is when the session record was written, and the order the\nlisting comes back in.","example":"2024-01-15T09:30:00Z","type":"string"},"expires_at":{"description":"ExpiresAt is fixed at creation rather than sliding on use, so a stolen\ncookie cannot be kept alive indefinitely by using it.","example":"2024-01-22T09:30:00Z","type":"string"},"id":{"example":"ses_3e9a1c72","type":"string"},"ip_address":{"example":"203.0.113.42","type":"string"},"object":{"type":"string"},"revoked_at":{"description":"RevokedAt is null for a session that was not revoked. Revocation is\nrecorded rather than deleted so the expired-vs-revoked distinction\nsurvives for audit.","example":"2024-01-16T11:00:00Z","type":"string"},"user_agent":{"description":"UserAgent and IPAddress are what the browser looked like at sign-in. They\nexist so a reader can recognize a session — \"that one is not mine\" — and\nfor nothing else: identity-svc authenticates nothing against them and\nrefuses no session for a mismatch. IPAddress is a single validated address\nor empty, never the raw X-Forwarded-For chain, so it is safe to render.\n\nBoth are personal data about an end user. This is an operator-facing\nsurface, so reads of it should be audited even though the endpoint itself\nis not gated yet.","type":"string"},"user_id":{"example":"usr_06fm9tb8vnyqda86dwgxc6wksr","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_user_types.UpdateUserRequest":{"properties":{"address":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Address"},"birthdate":{"example":"1990-05-15","type":"string"},"email":{"type":"string"},"email_verified":{"type":"boolean"},"external_id":{"description":"ExternalID is your own id for this user, unique per project environment.\nSet to \"\" to clear.","type":"string"},"family_name":{"type":"string"},"gender":{"type":"string"},"given_name":{"type":"string"},"locale":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Metadata"},"middle_name":{"type":"string"},"name":{"type":"string"},"nickname":{"type":"string"},"password_change_required":{"type":"boolean"},"phone":{"type":"string"},"phone_verified":{"type":"boolean"},"picture":{"type":"string"},"private_metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Metadata"},"profile":{"type":"string"},"readonly_metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Metadata"},"username":{"type":"string"},"website":{"type":"string"},"zoneinfo":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_user_types.User":{"properties":{"address":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Address"},"birthdate":{"example":"1990-05-15","type":"string"},"created_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"email":{"example":"jane@example.com","type":"string"},"email_verified":{"type":"boolean"},"external_id":{"description":"ExternalID is your own id for this user, unique per project environment;\nthe access-token claims template reads it as user.external_id.","type":"string"},"family_name":{"type":"string"},"gender":{"type":"string"},"given_name":{"type":"string"},"id":{"example":"user_2abc123def","type":"string"},"instance_id":{"type":"string"},"legacy_identities":{"description":"LegacyIdentities are the user's ids in the systems they were imported\nfrom. Read-only.","items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.LegacyIdentity"},"type":"array","uniqueItems":false},"locale":{"type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Metadata"},"middle_name":{"type":"string"},"name":{"type":"string"},"nickname":{"type":"string"},"object":{"type":"string"},"password_change_required":{"type":"boolean"},"password_status":{"description":"PasswordStatus is none, active (a password set in Pontive) or imported\n(a hash imported from another system, replaced at the user's first\nsign-in; pontive-spec 46 §4.6). Read-only.","enum":["none","active","imported"],"example":"active","type":"string"},"phone":{"type":"string"},"phone_verified":{"type":"boolean"},"picture":{"type":"string"},"private_metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.Metadata"},"profile":{"type":"string"},"status":{"enum":["active","deleted","deactivated"],"example":"active","type":"string"},"updated_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"username":{"example":"jdoe","type":"string"},"website":{"type":"string"},"zoneinfo":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.CreateSubscriptionRequest":{"properties":{"allow_private_ips":{"type":"boolean"},"description":{"type":"string"},"event_types":{"items":{"type":"string"},"type":"array","uniqueItems":false},"headers":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Headers"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Metadata"},"organization_id":{"type":"string"},"scope":{"enum":["project","organization"],"type":"string"},"url":{"example":"https://api.acme.com/webhooks/pontive","type":"string"}},"required":["event_types","url"],"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.Delivery":{"properties":{"attempt_number":{"example":1,"type":"integer"},"created_at":{"type":"string"},"delivered_at":{"type":"string"},"duration_ms":{"type":"integer"},"error":{"type":"string"},"event_id":{"type":"string"},"id":{"example":"del_2b3c4d5e6f7g8h9i","type":"string"},"next_retry_at":{"type":"string"},"object":{"type":"string"},"request":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.DeliveryRequestInfo"},"response":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.DeliveryResponseInfo"},"response_code":{"type":"integer"},"retried_by":{"description":"RetriedBy is the id of the attempt that superseded this one — the next\nautomatic rung or a manual retry. Absent until a successor exists; an\nattempt that has one cannot be retried again.","example":"del_3c4d5e6f7g8h9i0j","type":"string"},"status":{"enum":["pending","inflight","success","failed","error"],"type":"string"},"subscription_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.DeliveryRequestInfo":{"properties":{"headers":{"additionalProperties":{"type":"string"},"type":"object"},"method":{"type":"string"},"url":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.DeliveryResponseInfo":{"properties":{"body_preview":{"type":"string"},"code":{"type":"integer"},"headers":{"additionalProperties":{"type":"string"},"type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.Event":{"properties":{"created_at":{"type":"string"},"data":{"type":"object"},"id":{"example":"evt_2b3c4d5e6f7g8h9i","type":"string"},"object":{"type":"string"},"organization_id":{"type":"string"},"previous_attributes":{"type":"object"},"source":{"enum":["system","custom","meta","test"],"type":"string"},"type":{"example":"acme.order.shipped","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.EventType":{"properties":{"created_at":{"type":"string"},"description":{"type":"string"},"name":{"example":"acme.order.shipped","type":"string"},"object":{"type":"string"},"payload_schema":{"type":"string"},"schema_mode":{"enum":["strict","lenient"],"type":"string"},"scope":{"enum":["project","organization"],"example":"organization","type":"string"},"type":{"enum":["system","custom"],"example":"custom","type":"string"},"updated_at":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.Headers":{"additionalProperties":{"type":"string"},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.ListDeliveriesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Delivery"},"type":"array","uniqueItems":false},"next_cursor":{"type":"string"},"object":{"example":"list","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.ListEventTypesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.EventType"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.ListEventsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Event"},"type":"array","uniqueItems":false},"next_cursor":{"type":"string"},"object":{"example":"list","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.ListSubscriptionsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Subscription"},"type":"array","uniqueItems":false},"object":{"type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pagination.Pagination"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.Metadata":{"additionalProperties":{"type":"string"},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.RotateSecretRequest":{"properties":{"expire_previous_in":{"description":"ExpirePreviousIn is how long the previous signing secret keeps signing\nbeside the new one, in seconds: 0 to 604800; absent is 86400, and 0\nends it now.","example":86400,"maximum":604800,"minimum":0,"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.Subscription":{"properties":{"allow_private_ips":{"type":"boolean"},"created_at":{"example":"2026-01-15T09:30:00Z","type":"string"},"description":{"type":"string"},"event_types":{"example":["user.*","organization.created"],"items":{"type":"string"},"type":"array","uniqueItems":false},"headers":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Headers"},"id":{"example":"whs_2b3c4d5e6f7g8h9i","type":"string"},"instance_id":{"type":"string"},"last_failure":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.SubscriptionLastFailure"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Metadata"},"object":{"type":"string"},"organization_id":{"type":"string"},"scope":{"enum":["project","organization"],"example":"project","type":"string"},"secret":{"description":"Secret is the plaintext Standard Webhooks signing secret (\"whsec_…\").\nPresent only in create/rotate-secret responses; never readable again.","type":"string"},"secret_preview":{"example":"whsec_...4f9a","type":"string"},"stats":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.SubscriptionStats"},"status":{"enum":["active","paused","failing","disabled"],"example":"active","type":"string"},"updated_at":{"type":"string"},"url":{"example":"https://api.acme.com/webhooks/pontive","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.SubscriptionLastFailure":{"properties":{"error":{"type":"string"},"response_code":{"type":"integer"},"timestamp":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.SubscriptionStats":{"properties":{"last_24h":{"properties":{"delivered":{"type":"integer"},"failed":{"type":"integer"}},"type":"object"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.UpdateSubscriptionRequest":{"properties":{"description":{"type":"string"},"event_types":{"items":{"type":"string"},"type":"array","uniqueItems":false},"headers":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Headers"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Metadata"},"url":{"type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_webhook_types.Usage":{"properties":{"deliveries_count":{"type":"integer"},"failed_count":{"type":"integer"},"object":{"type":"string"},"period":{"example":"2026-08","type":"string"},"retried_count":{"type":"integer"}},"type":"object"},"github_com_revotech-group_management-api_core_widget_types.Integrity":{"description":"Integrity is optional but strongly recommended: without it browsers load\nthe release from the platform origin without SRI.","properties":{"css":{"example":"sha384-MHNODXtG...","type":"string"},"js":{"example":"sha384-3EC4aMha...","type":"string"}},"required":["css","js"],"type":"object"},"github_com_revotech-group_management-api_core_widget_types.PontkitRelease":{"description":"Override is this project's canary, absent when it follows the deployment.","properties":{"changed_at":{"example":"2024-01-15T09:30:00Z","type":"string"},"changed_by":{"example":"usr_01hf9...","type":"string"},"integrity":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_widget_types.Integrity"},"version":{"description":"Version is the exact release to load from the CDN, never a range.","example":"2.16.4","type":"string"}},"type":"object"},"github_com_revotech-group_management-api_core_widget_types.PontkitReleaseResponse":{"properties":{"catalog_revision":{"description":"CatalogRevision is the platform element-catalog revision in effect.","example":16,"type":"integer"},"deployment":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_widget_types.PontkitRelease"},"object":{"example":"pontkit_release","type":"string"},"override":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_widget_types.PontkitRelease"},"version":{"description":"Version is the effective release for this project.","example":"2.16.4","type":"string"}},"type":"object"}},"securitySchemes":{"BearerAuth":{"description":"Access token as \"Bearer <jwt>\"","in":"header","name":"Authorization","type":"apiKey"},"X-Pontive-Instance-ID":{"description":"Instance ID for the request","in":"header","name":"x-pontive-instance-id","type":"apiKey"}}},"info":{"contact":{"email":"support@revotech-group.com","name":"API Support","url":"https://github.com/revotech-group/management-api"},"description":"Management API for organizations, users, service accounts, apps, roles, permissions, access keys and personal access tokens. Every response about an unclaimed instance, a development instance created with no account and deleted unless it is claimed, carries Sunset, the HTTP-date it is deleted on (RFC 8594), and Link <https://www.pontive.com/docs/unclaimed-instances>; rel=\"sunset\"; while it is unclaimed, writes that would make Pontive fetch a URL the caller names or show a look or message the caller chose are refused 403 instance_unclaimed (pontive-spec 47).","license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"title":"Management API","version":"1.0"},"openapi":"3.2.0","paths":{"/access-keys":{"get":{"description":"List access keys with filtering and pagination.","operationId":"ListAccessKeys","parameters":[{"description":"Filter by service account id (svc_…)","in":"query","name":"service_account_id","schema":{"type":"string"}},{"description":"Filter by confidentiality (secret|publishable)","in":"query","name":"confidentiality","schema":{"type":"string"}},{"description":"Filter by status (active|revoked)","in":"query","name":"status","schema":{"type":"string"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, status. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.ListAccessKeysResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List access keys","tags":["AccessKeys"]},"post":{"description":"Mint an access key bound to a service account. The credential value is returned only here (and later via reveal for revealable keys).","operationId":"CreateAccessKey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.CreateAccessKeyRequest","description":"Create access key payload","summary":"request"}}},"description":"Create access key payload","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.AccessKeyWithSecret"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create access key","tags":["AccessKeys"]}},"/access-keys/{access_key_id}":{"get":{"description":"Get an access key by ID.","operationId":"GetAccessKey","parameters":[{"description":"Access Key ID","in":"path","name":"access_key_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.AccessKey"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get access key","tags":["AccessKeys"]},"patch":{"description":"Update mutable fields (name, description, metadata).","operationId":"UpdateAccessKey","parameters":[{"description":"Access Key ID","in":"path","name":"access_key_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.UpdateAccessKeyRequest","description":"Update payload","summary":"request"}}},"description":"Update payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.AccessKey"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Update access key","tags":["AccessKeys"]}},"/access-keys/{access_key_id}/key":{"get":{"description":"Return the full plaintext credential value; only for a key minted revealable.","operationId":"GetAccessKeyValue","parameters":[{"description":"Access Key ID","in":"path","name":"access_key_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accesskey_types.RevealAccessKeyResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"}},"summary":"Reveal access key","tags":["AccessKeys"]}},"/access-keys/{access_key_id}/revoke":{"post":{"description":"Revoke an access key immediately and irreversibly.","operationId":"RevokeAccessKey","parameters":[{"description":"Access Key ID","in":"path","name":"access_key_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Revoke access key","tags":["AccessKeys"]}},"/agents":{"get":{"description":"List the instance agents and organization agents the caller may read. A caller holding sys:agent:read only on some organizations lists those organizations' own agents.","operationId":"ListAgents","parameters":[{"description":"root or org","in":"query","name":"owner_type","schema":{"type":"string"}},{"description":"The agents one definer defined: an org_ id, or the inst_ id","in":"query","name":"owner_id","schema":{"type":"string"}},{"description":"The agents this user (usr_) sponsors","in":"query","name":"sponsor","schema":{"type":"string"}},{"description":"The agents with no sponsor","in":"query","name":"no_sponsor","schema":{"type":"boolean"}},{"description":"active or deactivated","in":"query","name":"status","schema":{"type":"string"}},{"description":"Search by name","in":"query","name":"search","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"created_at, updated_at, name or status; prefix - for descending","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListAgentsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List agents","tags":["Agents"]},"post":{"description":"Define an agent (pontive-spec 45 §4): an instance agent (owner_type root; sys:agent:manage on the root) or an organization agent (owner_type org, owner_id its org_ id; sys:agent:manage on the organization). owner_type is the definer's resource-type key (D6, D44). An organization agent is installed in its organization at once, with its requested org roles approved by its creator.","operationId":"CreateAgent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.CreateAgentRequest","description":"Agent definition","summary":"request"}}},"description":"Agent definition","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Agent"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_wrong_owner: an organization agent has no offer and no auto-install"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_limit_reached"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create agent","tags":["Agents"]}},"/agents/{agent_id}":{"delete":{"description":"Delete the agent with its installations, offer, sponsors and client grants. Tokens already issued live out their lifetime.","operationId":"DeleteAgent","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete agent","tags":["Agents"]},"get":{"description":"Get an agent: its definition, requested roles, offer, secrets (previews), keys and sponsors.","operationId":"GetAgent","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Agent"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get agent","tags":["Agents"]},"patch":{"description":"Change an agent's definition; an omitted field is left as it is. sponsors, requested_roles and org_access are fields of the agent (D22), each replaced whole when sent: adding a requested role leaves every installation of its type with a pending approval, removing one takes it off every installation at once. jwks_uri (D20) sets or, with null, clears where its keys are fetched from (sys:agent:secret). Turning auto_install on installs the agent, once, in every organization it is offered to.","operationId":"UpdateAgent","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.UpdateAgentRequest","description":"Fields to change","summary":"request"}}},"description":"Fields to change","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Agent"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_unclaimed: setting a jwks_uri on an unclaimed instance; claim it first (pontive-spec 47)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update agent","tags":["Agents"]}},"/agents/{agent_id}/client-secrets":{"get":{"description":"The agent's client secrets that still authenticate (D19), newest first: preview, label, status, created and expiry, never the value.","operationId":"ListAgentClientSecrets","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListClientSecretsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List agent client secrets","tags":["Agents"]},"post":{"description":"Mint a client secret (D19); needs sys:agent:secret. Creating the agent mints none (D45). Its value is returned here only. Without expire_others_in the others are kept, and the create is refused (409 client_secret_limit_reached) while two that do not expire are held; with it, every other secret stops working that many seconds from now (0–604800; 0 at once), so a rotation is one call.","operationId":"CreateAgentClientSecret","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.CreateClientSecretRequest","description":"Label and the others' expiry","summary":"request"}}},"description":"Label and the others' expiry"},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ClientSecretWithValue"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"client_secret_limit_reached"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create agent client secret","tags":["Agents"]}},"/agents/{agent_id}/client-secrets/{secret_id}":{"delete":{"description":"Remove one of the agent's client secrets (D8, D19); it stops working at once.","operationId":"DeleteAgentClientSecret","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}},{"description":"Client secret ID","in":"path","name":"secret_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"client_secret_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete agent client secret","tags":["Agents"]}},"/agents/{agent_id}/deactivate":{"post":{"description":"Deactivate an agent: every installation is suspended and its token requests are refused (invalid_client). Its credentials are kept.","operationId":"DeactivateAgent","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Agent"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Deactivate agent","tags":["Agents"]}},"/agents/{agent_id}/federated-credentials":{"get":{"description":"Every federated credential of the agent (at most 20). Needs sys:agent:read on its definer (the instance root or its organization).","operationId":"ListAgentFederatedCredentials","parameters":[{"description":"Agent ID (agt_)","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.ListFederatedCredentialsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List agent federated credentials","tags":["Agents"]},"post":{"description":"Let the agent authenticate at the token endpoint with a token a trusted issuer signed, with no secret or key of its own (workload identity federation, pontive-spec 20 B7). The workload sends its token as client_assertion, with client_assertion_type urn:ietf:params:oauth:client-assertion-type:jwt-bearer and client_id the agent's id; it is accepted when its iss is the credential's trusted issuer (enabled), its aud one the issuer accepts, exp at most the issuer's max_token_lifetime_seconds (default 3600) ahead and at most that long after iat, its signature the issuer's, its jti unused (unless the issuer has allow_reuse, which accepts the same token until it expires), its sub matches subject and every required claim is present with exactly its value. subject is exact by default; a '*' matches one or more characters within one ':' or '/' segment, and '**' or a '*' in the first segment is refused, so repo:acme/api:environment:* matches every environment of acme/api and nothing else. At most 20 per agent, the name once. Needs sys:agent:secret on its definer (the instance root or its organization).","operationId":"CreateAgentFederatedCredential","parameters":[{"description":"Agent ID (agt_)","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.CreateFederatedCredentialRequest","description":"Credential","summary":"request"}}},"description":"Credential","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.FederatedCredential"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_invalid, federated_credential_limit_reached"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_not_found (no such agent), trusted_issuer_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_conflict: the name is taken"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create agent federated credential","tags":["Agents"]}},"/agents/{agent_id}/federated-credentials/{credential_id}":{"delete":{"description":"The credential stops authenticating at once; tokens already issued live out their lifetime. Needs sys:agent:secret on its definer (the instance root or its organization).","operationId":"DeleteAgentFederatedCredential","parameters":[{"description":"Agent ID (agt_)","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}},{"description":"Federated credential ID (fic_)","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete agent federated credential","tags":["Agents"]},"get":{"description":"Needs sys:agent:read on its definer (the instance root or its organization).","operationId":"GetAgentFederatedCredential","parameters":[{"description":"Agent ID (agt_)","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}},{"description":"Federated credential ID (fic_)","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.FederatedCredential"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get agent federated credential","tags":["Agents"]},"patch":{"description":"Change the name, description, subject or required claims; an absent field is left as it is, and required_claims, when present, replaces the map. The trusted issuer never changes. Needs sys:agent:secret on its definer (the instance root or its organization).","operationId":"UpdateAgentFederatedCredential","parameters":[{"description":"Agent ID (agt_)","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}},{"description":"Federated credential ID (fic_)","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.UpdateFederatedCredentialRequest","description":"Changes","summary":"request"}}},"description":"Changes","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.FederatedCredential"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update agent federated credential","tags":["Agents"]}},"/agents/{agent_id}/installations":{"get":{"description":"Every installation of the agent — on the root, organizations and resources — with its approved roles, pending approval and status. Each is managed by its id under its home (D21).","operationId":"ListAgentInstallations","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListInstallationsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List agent installations","tags":["Agents"]}},"/agents/{agent_id}/organizations":{"get":{"description":"The organizations an instance agent's selected offer admits (pontive-spec 45 §5.1): its allow-list edge (D22). org_access (all or selected) is a field of the agent.","operationId":"ListAgentOrganizations","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListAgentOrganizationsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List an agent's offer","tags":["Agents"]},"post":{"description":"Add one or more organizations to an instance agent's selected offer (D22); one already offered is not an error. With auto_install on, an organization added is installed.","operationId":"CreateAgentOrganizations","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.AddAgentOrganizationsRequest","description":"Organizations to add","summary":"request"}}},"description":"Organizations to add","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Organizations"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_wrong_owner: an organization agent has no offer"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Add organizations to an agent's offer","tags":["Agents"]}},"/agents/{agent_id}/organizations/{organization_id}":{"delete":{"description":"Take one organization off an instance agent's selected offer (D22), which suspends its installations there.","operationId":"DeleteAgentOrganization","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}},{"description":"Organization ID","in":"path","name":"organization_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Remove an organization from an agent's offer","tags":["Agents"]}},"/agents/{agent_id}/public-keys":{"post":{"description":"Add a public JWK to the agent's inline keys, for private_key_jwt (pontive-spec 45 §7.2). The body is the JWK itself, with its public members only: RSA 2048 bits or more, or EC P-256, with a kid. At most three; refused while the agent has a jwks_uri (409 key_source_conflict). Rotate by overlap: add the new key, move over to it, then remove the old one.","operationId":"CreateAgentPublicKey","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_clientkey.JWK","description":"The public JWK","summary":"request"}}},"description":"The public JWK","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Agent"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"public_key_invalid, public_key_limit_reached"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"public_key_conflict: the kid is taken; key_source_conflict: the agent has a jwks_uri"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Add agent public key","tags":["Agents"]}},"/agents/{agent_id}/public-keys/{key_id}":{"delete":{"description":"Remove one of the agent's inline keys by kid. Assertions signed with it are refused from now on.","operationId":"DeleteAgentPublicKey","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}},{"description":"Key ID","in":"path","name":"key_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Agent"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"public_key_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Remove agent public key","tags":["Agents"]}},"/agents/{agent_id}/reactivate":{"post":{"description":"Reactivate a deactivated agent: its installations return to active.","operationId":"ReactivateAgent","parameters":[{"description":"Agent ID","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Agent"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Reactivate agent","tags":["Agents"]}},"/apis":{"get":{"description":"List the instance's registered APIs, the system API (the management API, read-only) included unless exclude_system.","operationId":"ListRegisteredAPIs","parameters":[{"description":"Only APIs in this status","in":"query","name":"status","schema":{"enum":["active","disabled"],"type":"string"}},{"description":"Leave the system API out","in":"query","name":"exclude_system","schema":{"type":"boolean"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ListRegisteredAPIsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List APIs","tags":["RegisteredAPIs"]},"post":{"description":"Register a resource server: its identifier, the resource clients send (RFC 8707) and the aud of every token issued for it, and the scopes clients may request for it. The identifier is any absolute URI or opaque string, an https URL being the form MCP clients can discover; it cannot be changed later.","operationId":"CreateRegisteredAPI","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.CreateRegisteredAPIRequest","description":"Create API payload","summary":"request"}}},"description":"Create API payload","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.RegisteredAPI"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Invalid request, api_identifier_invalid, api_identifier_reserved or api_scope_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_identifier_taken"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_limit_reached"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create API","tags":["RegisteredAPIs"]}},"/apis/{api_id}":{"delete":{"description":"Delete an API with its client grants and consent grants. Refresh tokens issued for it fail at their next use with invalid_target. A system API refuses it.","operationId":"DeleteRegisteredAPI","parameters":[{"description":"API id (api_…)","in":"path","name":"api_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_system_immutable"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete API","tags":["RegisteredAPIs"]},"get":{"description":"Get a registered API by id.","operationId":"GetRegisteredAPI","parameters":[{"description":"API id (api_…)","in":"path","name":"api_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.RegisteredAPI"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get API","tags":["RegisteredAPIs"]},"patch":{"description":"Change an API's name, description, scopes, token lifetime, client access, third-party switch or resource metadata; an absent field is left as it is. Scopes and resource metadata, when present, are replaced wholesale, and null clears them, as it does the description. The identifier cannot be changed. A system API refuses it; only its client grants can be changed.","operationId":"UpdateRegisteredAPI","parameters":[{"description":"API id (api_…)","in":"path","name":"api_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.UpdateRegisteredAPIRequest","description":"Update payload","summary":"request"}}},"description":"Update payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.RegisteredAPI"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Invalid request, or api_scope_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_system_immutable"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_limit_reached"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update API","tags":["RegisteredAPIs"]}},"/apis/{api_id}/clients":{"get":{"description":"The API's client grants: every service account and agent of the instance that may request it, and the apps that may when client_access is selected. Each holds every scope of the API (all_scopes) or the ones named.","operationId":"ListRegisteredAPIClients","parameters":[{"description":"API id (api_…)","in":"path","name":"api_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ListClientGrantsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List API client grants","tags":["RegisteredAPIs"]},"put":{"description":"Replace every client grant of the API with items; [] removes them all. Each names an app, service account or agent of the instance (never a third-party app) and every scope of the API (all_scopes) or a subset of its keys. The system API (the management API) takes client grants too, the only way a service account or agent reaches the management API: each names a service account or agent (an app is api_client_invalid) with scopes exactly [\"pontive:management\"] (all_scopes, no scopes or any other scope is api_scope_invalid).","operationId":"ReplaceAPIClients","parameters":[{"description":"API id (api_…)","in":"path","name":"api_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.SetClientGrantsRequest","description":"The API's client grants","summary":"request"}}},"description":"The API's client grants","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ListClientGrantsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Invalid request, api_client_invalid or api_scope_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_limit_reached"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Replace API client grants","tags":["RegisteredAPIs"]}},"/apis/{api_id}/disable":{"post":{"description":"Refuse new token requests for the API (invalid_target). Tokens already issued for it live out their lifetime. A system API refuses it.","operationId":"DisableRegisteredAPI","parameters":[{"description":"API id (api_…)","in":"path","name":"api_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.RegisteredAPI"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_system_immutable"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Disable API","tags":["RegisteredAPIs"]}},"/apis/{api_id}/enable":{"post":{"description":"Let clients request tokens for a disabled API again.","operationId":"EnableRegisteredAPI","parameters":[{"description":"API id (api_…)","in":"path","name":"api_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.RegisteredAPI"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_system_immutable"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Enable API","tags":["RegisteredAPIs"]}},"/apis/{api_id}/resource-metadata":{"get":{"description":"The RFC 9728 protected resource metadata document for the API, which its resource server serves at /.well-known/oauth-protected-resource (with the identifier's path appended). Only an API whose identifier is an https URL has one.","operationId":"GetRegisteredAPIResourceMetadata","parameters":[{"description":"API id (api_…)","in":"path","name":"api_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ResourceMetadataDocument"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_metadata_unavailable"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get API resource metadata","tags":["RegisteredAPIs"]}},"/apis/{api_id}/scopes/import":{"post":{"description":"Propose the API's tool scopes from an MCP server's tools/list result, sent as the server returns it ({tools, nextCursor?}) with the import's options beside it; Pontive never fetches from the server. One scope per group, then one tool:<name> scope per tool in no group, with the tool's description, its title as display_name and its read-only and destructive hints. The response is the diff against the API's scopes: added, changed (with the fields that differ), removed (tool_import scopes no longer proposed, with what still names each) and unchanged. dry_run absent or true writes nothing; dry_run false writes the diff in one transaction. A removed scope is kept unless remove_missing; with it, one a client grant, consent grant or third-party profile still names refuses the import (api_scope_in_use) unless force. Manual scopes are never removed. At most 500 tools and 100 groups; the result is held to 100 scopes per API. A system API refuses it.","operationId":"ImportRegisteredAPIScopes","parameters":[{"description":"API id (api_…)","in":"path","name":"api_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ImportScopesRequest","description":"The tools/list result and the import's options","summary":"request"}}},"description":"The tools/list result and the import's options","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_registeredapi_types.ImportScopesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Invalid request, api_tool_invalid or api_scope_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_scope_in_use or api_system_immutable"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"api_limit_reached"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Import API scopes from MCP tools","tags":["RegisteredAPIs"]}},"/apps":{"get":{"description":"Get a paginated list of apps.","operationId":"ListApps","parameters":[{"description":"Filter by app type","in":"query","name":"type","schema":{"type":"string"}},{"description":"Filter by app mode","in":"query","name":"mode","schema":{"type":"string"}},{"description":"Filter by app status","in":"query","name":"status","schema":{"type":"string"}},{"description":"Filter by who created the app: first_party, or a third-party client admitted by CIMD or DCR (pontive-spec 44 §15)","in":"query","name":"origin","schema":{"enum":["first_party","cimd","dcr"],"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, status. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Search query (name,issuer,description depending on implementation)","in":"query","name":"search","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.ListAppsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List apps","tags":["Apps"]},"post":{"description":"Create a new application.","operationId":"CreateApp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.CreateAppRequest","description":"Create App Request","summary":"request"}}},"description":"Create App Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.App"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create app","tags":["Apps"]}},"/apps/settings":{"get":{"description":"When third-party OAuth clients — clients identified by a client ID metadata document (CIMD) or registered dynamically (DCR), which the customer did not create — may connect, and the client profile every admitted one is held to. An instance that never changed it reads the defaults: everything off.","operationId":"GetAppSettings","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.ThirdPartyClients"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as its entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get third-party clients setting","tags":["ThirdPartyClients"]},"patch":{"description":"Change the admission policy (cimd, dcr, allowlist) or the client profile; an absent field is left as it is. The allowlist and profile.apis, when present, replace the stored list wholesale, and null empties it. An allow-list entry is an exact client_id URL or https://host/*, at most 100; a profile API must be an API of the instance with third_party on, and scopes null covers all of its scopes. The profile's authentication fields (authflow_bindings, signin_config, signup_config, mfa_config, session_config) take the app routes' shapes and are every third-party app's, read when its user signs in: a present one replaces the profile's wholesale, validated as the app routes validate it, and null unsets it so third-party apps keep their own default.","operationId":"UpdateAppSettings","parameters":[{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.UpdateThirdPartyClientsRequest","description":"Update payload","summary":"request"}}},"description":"Update payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.ThirdPartyClients"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Invalid request, or third_party_clients_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_unclaimed: the instance is unclaimed; claim this instance to admit third-party clients (pontive-spec 47)"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update third-party clients setting","tags":["ThirdPartyClients"]}},"/apps/{app_id}":{"delete":{"description":"Delete an application. A third-party (CIMD or DCR) app, which is otherwise read-only, is hard-deleted with its consent grants and refresh tokens; the client is admitted again through the normal flow.","operationId":"DeleteApp","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete app","tags":["Apps"]},"get":{"description":"Get application details by ID.","operationId":"GetApp","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.App"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get app details","tags":["Apps"]},"patch":{"description":"Update an existing app.","operationId":"UpdateApp","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.UpdateAppRequest","description":"Update App Request","summary":"request"}}},"description":"Update App Request"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.App"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_unclaimed: setting a jwks_uri on an unclaimed instance; claim it first (pontive-spec 47)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"third_party_app_read_only: a third-party (CIMD or DCR) app can only be deleted"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update app","tags":["Apps"]}},"/apps/{app_id}/auth-connections":{"get":{"description":"List an app's configured OAuth providers merged with the catalog. The pagination block counts connected (stored) providers only; data additionally includes unconnected catalog entries, so the number of items may exceed limit.","operationId":"ListAuthConnections","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}},{"description":"Filter: connected (stored configs only), available (unconnected catalog types only), or all (default)","in":"query","name":"status","schema":{"enum":["connected","available","all"],"type":"string"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, provider. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.ListOAuthProvidersResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List OAuth providers","tags":["OAuthProviders"]}},"/apps/{app_id}/auth-connections/{connection_slug}":{"delete":{"description":"Delete an app's OAuth connection by provider slug. This also drops all stored user OAuth credentials for that provider on this app; users must re-connect if it is recreated.","operationId":"DeleteAuthConnection","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}},{"description":"Provider slug","in":"path","name":"connection_slug","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete OAuth connection","tags":["OAuthProviders"]},"get":{"description":"Get an app's provider by slug. Returns the resolved view; an unconnected catalog provider is returned with connected=false and no config.","operationId":"GetAuthConnection","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}},{"description":"Provider slug","in":"path","name":"connection_slug","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.OAuthProvider"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get OAuth provider","tags":["OAuthProviders"]},"put":{"description":"Create or update an app's OAuth connection for the provider slug (unique per app). If no connection exists yet it is created (201); otherwise it is updated (200). Omitted fields are left unchanged on update, and an omitted secret leaves the stored secret intact. Secrets are accepted here but never returned; responses expose only *_set booleans.","operationId":"ReplaceAuthConnection","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}},{"description":"Provider slug","in":"path","name":"connection_slug","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.CreateOAuthConnectionRequest","description":"OAuth connection payload","summary":"request"}}},"description":"OAuth connection payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.OAuthConnection"}}},"description":"OK"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.OAuthConnection"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Includes instance_unclaimed: a generic OIDC connection (provider_type oidc) on an unclaimed instance; claim it first (pontive-spec 47)"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Upsert OAuth connection","tags":["OAuthProviders"]}},"/apps/{app_id}/claims-template/preview":{"post":{"description":"Renders an access-token claims template for a user, and optionally an organization they belong to, exactly as issuance would, without saving the template or issuing a token. Omit claims_template to preview the app's saved one. A template the save would refuse fails here with the same message.","operationId":"PreviewClaimsTemplate","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PreviewClaimsTemplateRequest","description":"Template, user and optional organization","summary":"request"}}},"description":"Template, user and optional organization","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.PreviewClaimsTemplateResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Preview an access-token claims template","tags":["Apps"]}},"/apps/{app_id}/client-secrets":{"get":{"description":"A confidential app's client secrets that still authenticate (D19), newest first: preview, label, status, created and expiry, never the value, which only the create returns. Needs sys:app:secret.","operationId":"ListAppClientSecrets","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.ListAppClientSecretsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List an app's client secrets","tags":["Apps"]},"post":{"description":"Mint a client secret for a confidential app (a web app in oauth mode; D19); needs sys:app:secret. Creating the app mints none (D45). Its value is returned only in this response: only a hash is stored, and reads show a preview. Without expire_others_in the others are kept, and the create is refused (409 client_secret_limit_reached) while two that do not expire are held; with it, every other secret stops working that many seconds from now (0–604800; 0 at once), so a rotation is one call.","operationId":"CreateAppClientSecret","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.CreateAppClientSecretRequest","description":"Label and the others' expiry","summary":"request"}}},"description":"Label and the others' expiry"},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AppClientSecretWithValue"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"client_secret_limit_reached; third_party_app_read_only: a third-party (CIMD or DCR) app can only be deleted"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create app client secret","tags":["Apps"]}},"/apps/{app_id}/client-secrets/{secret_id}":{"delete":{"description":"Remove one of an app's client secrets (D8, D19). It stops working at once; deleting the last one leaves the app unable to authenticate until a new one is created.","operationId":"DeleteAppClientSecret","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}},{"description":"Client secret ID","in":"path","name":"secret_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"third_party_app_read_only: a third-party (CIMD or DCR) app can only be deleted"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete app client secret","tags":["Apps"]}},"/apps/{app_id}/deactivate":{"post":{"description":"Deactivate an application.","operationId":"DeactivateApp","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.App"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"third_party_app_read_only: a third-party (CIMD or DCR) app can only be deleted"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Deactivate app","tags":["Apps"]}},"/apps/{app_id}/organizations":{"get":{"description":"List the organizations an app admits. They take effect while the app's org_access mode is selected: users then sign in only through one of them, and sign up only by accepting an invitation into one.","operationId":"ListAppOrganizations","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.ListAppOrganizationsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List app organizations","tags":["Apps"]},"post":{"description":"Admit organizations to an app (at most 100 per call). Adding one already admitted is not an error; an unknown organization fails the whole call and nothing is added. The list is kept whatever the app's org_access mode.","operationId":"CreateAppOrganizations","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AddAppOrganizationsRequest","description":"Organizations to admit","summary":"request"}}},"description":"Organizations to admit","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AppOrganizationsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"third_party_app_read_only: a third-party (CIMD or DCR) app can only be deleted"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Add app organizations","tags":["Apps"]}},"/apps/{app_id}/organizations/{organization_id}":{"delete":{"description":"Stop admitting an organization. Sessions already in it end at their next refresh while the app's org_access mode is selected. Removing one that is not admitted is not an error.","operationId":"DeleteAppOrganization","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}},{"description":"Organization ID","in":"path","name":"organization_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"third_party_app_read_only: a third-party (CIMD or DCR) app can only be deleted"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Remove an app organization","tags":["Apps"]}},"/apps/{app_id}/public-keys":{"post":{"description":"Add a public JWK to a confidential app's inline keys, for private_key_jwt client authentication (RFC 7523). The body is the JWK itself, with its public members only: RSA 2048 bits or more, or EC P-256, with a kid. At most three; refused while the app has a jwks_uri (409 key_source_conflict), and for a public app (400 public_keys_require_confidential_app).","operationId":"CreateAppPublicKey","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_clientkey.JWK","description":"The public JWK","summary":"request"}}},"description":"The public JWK","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.App"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"public_key_invalid, public_key_limit_reached, public_keys_require_confidential_app"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"public_key_conflict: the kid is taken; key_source_conflict: the app has a jwks_uri"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Add an app public key","tags":["Apps"]}},"/apps/{app_id}/public-keys/{key_id}":{"delete":{"description":"Remove one of a confidential app's inline keys by kid. Assertions signed with it are refused from now on.","operationId":"DeleteAppPublicKey","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}},{"description":"Key ID","in":"path","name":"key_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.App"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"public_key_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Remove an app public key","tags":["Apps"]}},"/apps/{app_id}/reactivate":{"post":{"description":"Reactivate a previously deactivated application.","operationId":"ReactivateApp","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.App"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"third_party_app_read_only: a third-party (CIMD or DCR) app can only be deleted"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Reactivate app","tags":["Apps"]}},"/apps/{app_id}/refused-proxy-bases":{"get":{"description":"The link bases the app's pages named that the app does not accept, most recently seen first — only those registering a proxy path would fix: on one of the app's allowed origins, with a valid path not accepted yet. A flow's emailed links land on the page's bare origin instead, which a proxy mounted under a path does not answer. Kept 30 days after last seen, at most 10.","operationId":"ListRefusedProxyBases","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.ListRefusedProxyBasesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List refused proxy bases","tags":["Apps"]}},"/apps/{app_id}/security-level":{"get":{"description":"Get computed security level for an app.","operationId":"GetAppSecurityLevel","parameters":[{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_app_types.AppSecurityLevel"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get app security level","tags":["Apps"]}},"/authn/account-linking-config":{"get":{"description":"Get the instance's account-linking settings: what a first sign-in through a social or enterprise connection does when its email already belongs to an account. An instance that never saved them links by the defaults, both settings on. Linking always needs the address verified on both sides, by a provider trusted to vouch for it and on the account; no setting turns that off.","operationId":"GetAccountLinkingConfig","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accountlinking_types.AccountLinkingConfig"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as its entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get account-linking settings","tags":["AccountLinking"]},"patch":{"description":"Patch the instance's account-linking settings. Omitted fields are left unchanged. auto_link_by_email off refuses every first provider sign-in whose email belongs to an existing account with 409 auth_provider_link_required; allow_manual_linking off refuses a signed-in user starting a link through POST /v1/me/external-identities.","operationId":"UpdateAccountLinkingConfig","parameters":[{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accountlinking_types.UpdateAccountLinkingConfigRequest","description":"Update payload","summary":"request"}}},"description":"Update payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_accountlinking_types.AccountLinkingConfig"}}},"description":"OK","headers":{"ETag":{"description":"The document's new revision, as its entity tag (D42)","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update account-linking settings","tags":["AccountLinking"]}},"/authn/authflows/document":{"get":{"description":"The instance's auth flows as one authflows/v1 document (api-route-review D47): its published custom flows, each with its own widgets, and the custom widget definitions they show, so the document is self-contained. Only the published state is exported; drafts stay in the dashboard. Built-in flows and definitions are the same everywhere and never travel, and which app runs a flow is the app's authflow_bindings, not part of the flow. Everything is named by a key, never an id: a view node's widget is a definition's key or flow:<ref>, one of the flow's own widgets. authflow_id, repeatable, exports just those flows and the definitions they show (a flow that is not a published custom flow is 404); importing that document touches only them. The output is deterministic: two exports of the same state are byte-identical, and the ETag is the hash of the bytes. Send it as If-None-Match to get 304 when nothing changed. Import the document into another instance with POST /v1/authn/authflows/document/import. Needs sys:flow:read and sys:widget:read.","operationId":"GetAuthflowsDocument","parameters":[{"description":"Export only these flows, by id; repeat it for several","in":"query","name":"authflow_id","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.AuthflowsDocument"}}},"description":"An authflows/v1 document","headers":{"ETag":{"description":"The hash of the document's bytes, as a strong entity tag","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"An authflow_id that is not a published custom flow"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Export the authflows document","tags":["Authflows document"]}},"/authn/authflows/document/import":{"post":{"description":"Plans importing an authflows/v1 document into this instance and, with dry_run false, applies the plan (api-route-review D47). Flows and widget definitions are merged by key: a new key is created, a differing flow replaced whole, and one the document lacks is listed as absent and left alone. Nothing is deleted; delete a flow with DELETE /v1/authn/authflows/{authflow_id}. A definition the instance lacks is created and published; identical markup is unchanged, and different markup is a conflict, since a published definition never changes. A changed flow keeps each of its own widgets whose content matches, and gets a new one where content changed. With publish true (the default) each changed flow is published, its widgets first; with publish false it writes drafts for review in the dashboard. Anything the flow's publish validator refuses, a reference to a key in neither the document nor the instance, and a draft with unpublished changes the import would overwrite (unless discard_unpublished) are conflicts. Re-importing an instance's own export plans every entry unchanged and writes nothing. The dry run's ETag is the revision of the flows it read: send it as If-Match on the apply to be refused 412 precondition_failed if anything changed since. An apply with conflicts is 409 import_conflict, one detail per conflict, field <kind>.<key>.<field>, and applies nothing. A document the format refuses (not JSON, a member it does not define, a pontive_document it does not read) is 422 field_invalid_format; one over 5 MB is 422 field_too_long. X-Idempotency-Key makes an apply safe to retry; the same key with another request is 422 idempotency_key_reused. Needs sys:flow:manage, sys:widget:read and sys:widget:manage.","operationId":"ImportAuthflowsDocument","parameters":[{"description":"The dry run's ETag: the apply is refused 412 precondition_failed if the instance's flows changed since","in":"header","name":"If-Match","schema":{"type":"string"}},{"description":"Idempotency key, read on an apply","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.ImportAuthflowsRequest","description":"The document and how to import it","summary":"request"}}},"description":"The document and how to import it","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.AuthflowImportPlan"}}},"description":"OK","headers":{"ETag":{"description":"On a dry run, the revision of the flows the plan read: send it as If-Match to apply exactly this plan (D42)","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"import_conflict: the plan has conflicts, one detail each; nothing was applied"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the flows changed since the dry run"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"field_invalid_format, field_too_long, missing_required_field or idempotency_key_reused"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Import an authflows document","tags":["Authflows document"]}},"/authn/authflows/{authflow_id}":{"delete":{"description":"Delete a custom auth flow. Builtin flows cannot be deleted. Returns 204 No Content on success; 409 when the flow is the project default or referenced by an app binding.","operationId":"DeleteAuthflow","parameters":[{"description":"Flow ID","in":"path","name":"authflow_id","required":true,"schema":{"type":"string"}},{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete authflow","tags":["Authflows"]}},"/authn/connection-credentials":{"get":{"description":"List the instance's shared OAuth provider credentials. Secrets are never returned; responses expose only *_set booleans. The list is unpaginated.","operationId":"ListSharedCredentials","parameters":[{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.ListSharedCredentialsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List shared credentials","tags":["SharedCredentials"]},"post":{"description":"Create a project-level shared OAuth provider credential. The config is flat (the adapter's own fields directly under \"config\"), discriminated by provider_type. Secrets are accepted here but never returned.","operationId":"CreateSharedCredential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.CreateSharedCredentialRequest","description":"Create shared credential payload","summary":"request"}}},"description":"Create shared credential payload","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.SharedCredential"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Includes instance_unclaimed: a generic OIDC credential (provider_type oidc) on an unclaimed instance; claim it first (pontive-spec 47)"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create shared credential","tags":["SharedCredentials"]}},"/authn/connection-credentials/{credential_id}":{"delete":{"description":"Delete a shared credential by id.","operationId":"DeleteSharedCredential","parameters":[{"description":"Shared credential ID","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete shared credential","tags":["SharedCredentials"]},"get":{"description":"Get a shared credential by id. Secrets are redacted; their presence is reported via *_set booleans.","operationId":"GetSharedCredential","parameters":[{"description":"Shared credential ID","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.SharedCredential"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get shared credential","tags":["SharedCredentials"]},"patch":{"description":"Patch a shared credential by id. Omitted fields are unchanged; an omitted secret leaves the stored secret intact.","operationId":"UpdateSharedCredential","parameters":[{"description":"Shared credential ID","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.UpdateSharedCredentialRequest","description":"Update payload","summary":"request"}}},"description":"Update payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.SharedCredential"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update shared credential","tags":["SharedCredentials"]}},"/authn/connection-types":{"get":{"description":"List the platform's supported OAuth provider types and their metadata (scopes, Pontive Credentials availability, deprecation), independent of any app. Carries no credentials. The list is unpaginated.","operationId":"ListAuthConnectionTypes","parameters":[{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_oauthprovider_types.ListProviderCatalogResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List provider catalog","tags":["OAuthProviders"]}},"/authn/identity-policy":{"get":{"description":"Get the instance's identity policy (email, phone, and username rules). If none has been configured, the default policy is returned.","operationId":"GetIdentityPolicy","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.IdentityPolicy"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as its entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get identity policy","tags":["IdentityPolicy"]},"patch":{"description":"Patch the instance's identity policy. Omitted sub-policies and fields are left unchanged.","operationId":"UpdateIdentityPolicy","parameters":[{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.UpdateIdentityPolicyRequest","description":"Update payload","summary":"request"}}},"description":"Update payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.IdentityPolicy"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update identity policy","tags":["IdentityPolicy"]}},"/authn/identity-policy/email/preview":{"post":{"description":"Count the active users whose email the given rules would refuse at sign-in, were they enforced there (email.enforce_at_signin), with a count per rule. Changes nothing. Ask before turning enforcement on, or tightening a rule while it is on, to see who would be locked out.","operationId":"PreviewEmailPolicy","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.PreviewEmailPolicyRequest","description":"Candidate email rules","summary":"request"}}},"description":"Candidate email rules","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_identitypolicy_types.EmailPolicyPreview"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Preview email rules","tags":["IdentityPolicy"]}},"/authn/migration-sources":{"get":{"description":"The instance's migration sources, newest first. Needs sys:migration:read on the instance root, held by the instance's owners and admins only.","operationId":"ListMigrationSources","parameters":[{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ListMigrationSourcesResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List migration sources","tags":["MigrationSources"]},"post":{"description":"Register a system the instance's users are leaving (pontive-spec 46 §3): its name, its source_type (which picks defaults and the guide, and decides nothing on its own), and the parameters its password hashes need. A Firebase project's hashes need hash_config.firebase_scrypt: the signer key (base64, write-only: answered as a four-character preview), the salt separator (base64), rounds and mem_cost (1 to 16), from the Firebase console's password hash parameters. A source owns the legacy identities its imports write, by which a re-sent row matches the user it created. At most 10 per instance. Needs sys:migration:manage on the instance root, held by the instance's owners and admins only and never by a token acting for a user.","operationId":"CreateMigrationSource","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.CreateMigrationSourceRequest","description":"Source","summary":"request"}}},"description":"Source","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.MigrationSource"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"actor_refused: a token acting for a user cannot configure a migration source"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"migration_source_limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create migration source","tags":["MigrationSources"]}},"/authn/migration-sources/{migration_source_id}":{"delete":{"description":"Delete the source with the legacy identities its imports wrote; runs keep their records. Refused migration_source_in_use while imported hashes still need its parameters. Needs sys:migration:manage on the instance root.","operationId":"DeleteMigrationSource","parameters":[{"description":"Migration source ID (msrc_)","in":"path","name":"migration_source_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"migration_source_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"migration_source_in_use"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete migration source","tags":["MigrationSources"]},"get":{"description":"The source, its signer key as a preview, and imported_passwords: how many users still sign in with a hash that needs it. Needs sys:migration:read on the instance root.","operationId":"GetMigrationSource","parameters":[{"description":"Migration source ID (msrc_)","in":"path","name":"migration_source_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.MigrationSource"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"migration_source_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get migration source","tags":["MigrationSources"]},"patch":{"description":"Change the name, or replace hash_config whole: an omitted signer_key keeps the stored one, and {\"firebase_scrypt\": null} removes Firebase's parameters, refused migration_source_in_use while imported hashes still need them. Needs sys:migration:manage on the instance root.","operationId":"UpdateMigrationSource","parameters":[{"description":"Migration source ID (msrc_)","in":"path","name":"migration_source_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UpdateMigrationSourceRequest","description":"Changes","summary":"request"}}},"description":"Changes","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.MigrationSource"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"migration_source_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"migration_source_in_use"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update migration source","tags":["MigrationSources"]}},"/authn/migration-sources/{migration_source_id}/validate":{"post":{"description":"Report problems without changing anything: whether the source has the parameters its type needs and, given firebase_scrypt_sample (a known Firebase user's password, password hash and salt), whether its Firebase parameters verify that user. Needs sys:migration:manage on the instance root.","operationId":"ValidateMigrationSource","parameters":[{"description":"Migration source ID (msrc_)","in":"path","name":"migration_source_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ValidateMigrationSourceRequest","description":"Sample","summary":"request"}}},"description":"Sample"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.MigrationSourceValidation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"migration_source_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Validate migration source","tags":["MigrationSources"]}},"/authn/password-policy":{"delete":{"description":"Delete the stored password policy, resetting it to the default. A subsequent GET returns the default policy.","operationId":"DeletePasswordPolicy","parameters":[{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Reset password policy","tags":["PasswordPolicy"]},"get":{"description":"Get the instance's password policy. If none has been configured, the default policy is returned.","operationId":"GetPasswordPolicy","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_passwordpolicy_types.PasswordPolicy"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as its entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get password policy","tags":["PasswordPolicy"]},"patch":{"description":"Patch the instance's password policy. Omitted fields are left unchanged.","operationId":"UpdatePasswordPolicy","parameters":[{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_passwordpolicy_types.UpdatePasswordPolicyRequest","description":"Update payload","summary":"request"}}},"description":"Update payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_passwordpolicy_types.PasswordPolicy"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update password policy","tags":["PasswordPolicy"]}},"/authn/trusted-issuers":{"get":{"description":"Every issuer the instance trusts (at most 50). Needs sys:settings:read on the instance root.","operationId":"ListTrustedIssuers","parameters":[{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.ListTrustedIssuersResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List trusted issuers","tags":["TrustedIssuers"]},"post":{"description":"Trust an external issuer to sign client assertions for this instance's service accounts and agents (workload identity federation, pontive-spec 20 B7): a CI provider's OIDC issuer such as GitHub Actions (https://token.actions.githubusercontent.com) or GitLab, a SPIFFE trust domain's JWT issuer, or a Kubernetes cluster's service account issuer. The issuer is an https URL, matched exactly against an assertion's iss. Without a jwks_uri it is read from the issuer's OpenID discovery document, which must name exactly this issuer. audiences (at most 10) are the aud values an assertion may carry; omitted, this instance's issuer and token endpoint. max_token_lifetime_seconds (default 3600, 60 to 86400) caps how far ahead an assertion's exp may be and how long after its iat. allow_reuse (default false) accepts the same token again until it expires, for workloads that reuse one token (Kubernetes projected tokens, cached SPIFFE JWT-SVIDs); false spends each jti, or a token with no jti whole, once. Trusting an issuer authenticates nobody by itself: a federated credential on a service account or agent does. cross_app_access makes the issuer an organization's enterprise IdP (Cross-App Access, pontive-spec 20 C8): it may then sign ID-JAGs for the organization's members, which an app presents with the urn:ietf:params:oauth:grant-type:jwt-bearer grant for a token to a registered API; the ID-JAG's sub is mapped to a user through the named sign-in connection's external identities (sso_app_id, sso_provider: an OpenID Connect sign-in connection whose discovery document is this issuer's), and the user must be a member of the organization. With cross_app_access, issuer may be omitted: it is the one that connection signs in with. At most 50 per instance. Needs sys:settings:manage on the instance root.","operationId":"CreateTrustedIssuer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.CreateTrustedIssuerRequest","description":"Issuer","summary":"request"}}},"description":"Issuer","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.TrustedIssuer"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"trusted_issuer_invalid, trusted_issuer_discovery_failed, trusted_issuer_limit_reached"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_unclaimed: the instance is unclaimed; claim this instance to trust an external issuer (pontive-spec 47)"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"trusted_issuer_conflict: the instance already trusts this issuer"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create trusted issuer","tags":["TrustedIssuers"]}},"/authn/trusted-issuers/{trusted_issuer_id}":{"delete":{"description":"Stop trusting an issuer. Refused while federated credentials name it: delete them first, or disable the issuer instead. Needs sys:settings:manage on the instance root.","operationId":"DeleteTrustedIssuer","parameters":[{"description":"Trusted issuer ID (tis_)","in":"path","name":"trusted_issuer_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"trusted_issuer_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"trusted_issuer_in_use"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete trusted issuer","tags":["TrustedIssuers"]},"get":{"description":"Needs sys:settings:read on the instance root.","operationId":"GetTrustedIssuer","parameters":[{"description":"Trusted issuer ID (tis_)","in":"path","name":"trusted_issuer_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.TrustedIssuer"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"trusted_issuer_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get trusted issuer","tags":["TrustedIssuers"]},"patch":{"description":"Change the name, jwks_uri, audiences, enabled, allow_reuse, max_token_lifetime_seconds or cross_app_access; an absent field is left as it is. cross_app_access replaces the organization link (Cross-App Access, pontive-spec 20 C8); {\"organization_id\":\"\"} removes it. jwks_uri \"\" reads it again from the issuer's discovery document; audiences, when present, replaces the list ([] means this instance's issuer and token endpoint). enabled false refuses every assertion the issuer signs at once. The issuer URL never changes: trust a new one instead. Needs sys:settings:manage on the instance root.","operationId":"UpdateTrustedIssuer","parameters":[{"description":"Trusted issuer ID (tis_)","in":"path","name":"trusted_issuer_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.UpdateTrustedIssuerRequest","description":"Changes","summary":"request"}}},"description":"Changes","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.TrustedIssuer"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"trusted_issuer_invalid, trusted_issuer_discovery_failed"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_unclaimed: the instance is unclaimed; claim this instance to trust an external issuer (pontive-spec 47)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"trusted_issuer_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update trusted issuer","tags":["TrustedIssuers"]}},"/authz/model/preview":{"get":{"description":"Generate a read-only preview of the instance's OpenFGA authorization (FGA) model from the current registry (resource types, roles, permissions and inheritance), without writing it. Returns the OpenFGA DSL and JSON.","operationId":"GetAuthorizationModelPreview","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_authz_types.PreviewModelResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Preview authorization model","tags":["Authorization"]}},"/authz/model/regenerate":{"post":{"description":"Regenerate the instance's OpenFGA authorization (FGA) model from the current registry and write it to the instance's existing store; relationship tuples are kept. Registry changes do this automatically — use it after a platform upgrade that changes how the model is generated.","operationId":"RegenerateAuthorizationModel","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_authz_types.RegenerateModelResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Regenerate authorization model","tags":["Authorization"]}},"/authz/permissions":{"get":{"description":"Get a paginated list of all permissions (system and custom) in the directory. Filter by type (system/custom), resource_type, name (partial match).","operationId":"ListPermissions","parameters":[{"description":"Filter by permission type (system, custom)","in":"query","name":"type","schema":{"type":"string"}},{"description":"Filter by resource type","in":"query","name":"resource_type","schema":{"type":"string"}},{"description":"Filter by permission name (partial match)","in":"query","name":"name","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, key. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_permission_types.ListPermissionsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List permissions","tags":["Permissions"]}},"/authz/resource-types":{"get":{"description":"List the instance's resource types: the reserved root and org types (org in b2b instances only), and the custom types.","operationId":"ListResourceTypes","parameters":[{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, key. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.ListResourceTypesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List resource types","tags":["ResourceTypes"]},"post":{"description":"Register a resource type in the instance's registry. Only custom types can be created: root and org are reserved and seeded.","operationId":"CreateResourceType","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.CreateResourceTypeRequest","description":"Create Resource Type Request","summary":"request"}}},"description":"Create Resource Type Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.ResourceType"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create resource type","tags":["ResourceTypes"]}},"/authz/resource-types/{resource_type}":{"delete":{"description":"Delete a resource type from the registry by its key. The reserved root and organization types cannot be deleted.","operationId":"DeleteResourceType","parameters":[{"description":"Resource type key","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}},{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete resource type","tags":["ResourceTypes"]},"get":{"description":"Get a resource type by its key.","operationId":"GetResourceType","parameters":[{"description":"Resource type key","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.ResourceType"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as its entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get resource type","tags":["ResourceTypes"]},"patch":{"description":"Update a resource type. Cannot update: key (immutable). The reserved root and org types accept only name and description.","operationId":"UpdateResourceType","parameters":[{"description":"Resource type key","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}},{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.UpdateResourceTypeRequest","description":"Update Resource Type Request","summary":"request"}}},"description":"Update Resource Type Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.ResourceType"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update resource type","tags":["ResourceTypes"]}},"/authz/resource-types/{resource_type}/permissions":{"get":{"description":"The permissions of one resource type (D18), filtered as GET /authz/permissions is.","operationId":"ListResourceTypePermissions","parameters":[{"description":"Resource type key","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}},{"description":"Filter by permission type (system, custom)","in":"query","name":"type","schema":{"type":"string"}},{"description":"Filter by permission name (partial match)","in":"query","name":"name","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, key. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_permission_types.ListPermissionsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List a resource type's permissions","tags":["Permissions"]},"post":{"description":"Create a custom permission. Required: key, resource_type. Optional: description, name. Name format: resource:action or resource:sub_resource:action.","operationId":"CreatePermission","parameters":[{"description":"resource_type","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_permission_types.CreatePermissionRequest","description":"Create Permission Request","summary":"request"}}},"description":"Create Permission Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_permission_types.Permission"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create custom permission","tags":["Permissions"]}},"/authz/resource-types/{resource_type}/permissions/{permission_key}":{"delete":{"description":"Delete a custom permission. System permissions cannot be deleted. Returns 204 No Content on success.","operationId":"DeletePermission","parameters":[{"description":"Permission resource type","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}},{"description":"Permission Key","in":"path","name":"permission_key","required":true,"schema":{"type":"string"}},{"description":"Force delete (bypass confirmation when permission is used in roles)","in":"query","name":"force","schema":{"type":"boolean"}},{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete custom permission","tags":["Permissions"]},"get":{"description":"Get a permission by name. Returns name, key, description, type, resource_type, created_at, updated_at, used_in_roles. Works for both system and custom permissions.","operationId":"GetPermission","parameters":[{"description":"Permission Key","in":"path","name":"permission_key","required":true,"schema":{"type":"string"}},{"description":"Permission resource type","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_permission_types.Permission"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as its entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get permission details","tags":["Permissions"]},"patch":{"description":"Update a custom permission. Can update: description, name. Cannot update: key (immutable), resource_type (immutable). System permissions cannot be updated.","operationId":"UpdatePermission","parameters":[{"description":"Permission Key","in":"path","name":"permission_key","required":true,"schema":{"type":"string"}},{"description":"Permission resource type","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}},{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_permission_types.UpdatePermissionRequest","description":"Update Permission Request (description, name)","summary":"request"}}},"description":"Update Permission Request (description, name)"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_permission_types.Permission"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update custom permission","tags":["Permissions"]}},"/authz/resource-types/{resource_type}/roles":{"get":{"description":"The roles of one resource type (D18), filtered as GET /authz/roles is. With inheritable_from, the roles of that parent type a role on this type could inherit instead: each a valid parent_role_key for a RoleInheritance rule on it.","operationId":"ListResourceTypeRoles","parameters":[{"description":"Resource type key","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}},{"description":"A parent type: list its roles this type's roles may inherit","in":"query","name":"inheritable_from","schema":{"type":"string"}},{"description":"Filter by role type (system, custom)","in":"query","name":"type","schema":{"type":"string"}},{"description":"Filter by role name (partial match)","in":"query","name":"name","schema":{"type":"string"}},{"description":"Also include this organization instance's own instance-scoped roles","in":"query","name":"resource_id","schema":{"type":"string"}},{"description":"Include every instance-scoped role alongside type-scoped ones (ignored when resource_id is set)","in":"query","name":"include_instance_scoped","schema":{"type":"boolean"}},{"description":"Only roles that may be assigned directly","in":"query","name":"assignable_only","schema":{"type":"boolean"}},{"description":"Only roles an agent may hold","in":"query","name":"agent_assignable_only","schema":{"type":"boolean"}},{"description":"Filter by permission name","in":"query","name":"permission","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.ListRolesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List a resource type's roles","tags":["Roles"]},"post":{"description":"Create a custom role. Required: key, resource_type, permissions. Optional: description, name, metadata, resource_id. Setting resource_id (an organization id) makes the role instance-scoped — assignable only on that instance; it is immutable. Role keys are unique within a resource type and cannot collide with system roles.","operationId":"CreateRole","parameters":[{"description":"resource_type","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.CreateRoleRequest","description":"Create Role Request","summary":"request"}}},"description":"Create Role Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.Role"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create custom role","tags":["Roles"]}},"/authz/resource-types/{resource_type}/roles/{role_key}":{"delete":{"description":"Delete a custom role. System roles cannot be deleted. Returns 204 No Content on success.","operationId":"DeleteRole","parameters":[{"description":"Role resource type","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}},{"description":"Role Key","in":"path","name":"role_key","required":true,"schema":{"type":"string"}},{"description":"Force delete (bypass confirmation when role is in use)","in":"query","name":"force","schema":{"type":"boolean"}},{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete custom role","tags":["Roles"]},"get":{"description":"Get a role by key and resource_type. Returns name, description, resource_type, type, permissions, metadata, created_at, updated_at, assignment_count, permission_count.","operationId":"GetRole","parameters":[{"description":"Role resource type","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}},{"description":"Role Key","in":"path","name":"role_key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.Role"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as its entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get role details","tags":["Roles"]},"patch":{"description":"Update a custom role. Can update: description, name, permissions, metadata. Cannot update: key (immutable), resource_type (immutable). System roles cannot be updated.","operationId":"UpdateRole","parameters":[{"description":"Role resource type","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}},{"description":"Role Key","in":"path","name":"role_key","required":true,"schema":{"type":"string"}},{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.UpdateRoleRequest","description":"Update Role Request","summary":"request"}}},"description":"Update Role Request"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.Role"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update custom role","tags":["Roles"]}},"/authz/roles":{"get":{"description":"Get a paginated list of roles (system and custom) in the directory. Filter by type (system/custom), resource_type, name (partial match), permission. By default only type-scoped roles are returned. Pass resource_id to also include that organization instance's own instance-scoped roles, or set include_instance_scoped=true to include every instance-scoped role alongside the type-scoped ones (ignored when resource_id is set).","operationId":"ListRoles","parameters":[{"description":"Filter by role type (system, custom)","in":"query","name":"type","schema":{"type":"string"}},{"description":"Filter by role name (partial match)","in":"query","name":"name","schema":{"type":"string"}},{"description":"Filter by resource type","in":"query","name":"resource_type","schema":{"type":"string"}},{"description":"Also include this organization instance's own instance-scoped roles","in":"query","name":"resource_id","schema":{"type":"string"}},{"description":"Include every instance-scoped role alongside type-scoped ones (ignored when resource_id is set)","in":"query","name":"include_instance_scoped","schema":{"type":"boolean"}},{"description":"Only roles that may be assigned directly: drops inherited-only roles. What a role picker asks for","in":"query","name":"assignable_only","schema":{"type":"boolean"}},{"description":"Only roles an agent may hold (agent_assignable): what an agent's role picker asks for","in":"query","name":"agent_assignable_only","schema":{"type":"boolean"}},{"description":"Filter by permission name","in":"query","name":"permission","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, key. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Search query","in":"query","name":"search","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_role_types.ListRolesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List roles","tags":["Roles"]}},"/billing/catalog":{"get":{"description":"billing.catalog.v1.CatalogPromotionService/ExportCatalog (34-billing-catalog.md, Promoting a catalog between instances; API Surface; billing-svc docs/questions.md, P113). The whole catalog as one document keyed by key, never by id: { pontive_document: \"billing-catalog/v1\", event_types, meters, products, features, pricing_units, rate_cards, packages, catalog_rules } (api-route-review D47), every list in key order, written as billing-svc wrote it. Needs sys:billing:read, and answers while billing is off, as every read does.","operationId":"GetCatalog","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"A billing-catalog/v1 document"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/catalog","tags":["Billing catalog promotion"],"x-pontive-capability":"billing"}},"/billing/catalog-rules":{"get":{"description":"billing.catalog.v1.CatalogRulesService/GetCatalogRules (34-billing-catalog.md, API Surface).","operationId":"GetCatalogRules","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A CatalogRules object","headers":{"ETag":{"description":"The document's version as its strong entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/catalog-rules","tags":["Billing catalog rules"],"x-pontive-capability":"billing"},"patch":{"description":"billing.catalog.v1.CatalogRulesService/UpdateCatalogRules (34-billing-catalog.md, API Surface).","operationId":"UpdateCatalogRules","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}},{"description":"The ETag the document was read with, checked by billing-svc in the update: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A CatalogRules object","headers":{"ETag":{"description":"The document's new version, as its ETag","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/catalog-rules","tags":["Billing catalog rules"],"x-pontive-capability":"billing"}},"/billing/catalog/import":{"post":{"description":"billing.catalog.v1.CatalogPromotionService/ImportCatalog (34-billing-catalog.md, Promoting a catalog between instances; API Surface; billing-svc docs/questions.md, P113). Body { document, dry_run, effective_at }: document is a billing-catalog/v1 document, passed to billing-svc byte for byte; dry_run is true when omitted, and returns the plan without applying it; with dry_run false the plan is applied in one transaction; effective_at (RFC 3339, default now) is when changed rates start. Answers the catalog_import_plan: dry_run, effective_at, created, changed, unchanged, absent (each { kind, key, fields }) and conflicts ({ kind, key, field, message }). An apply with conflicts is import_conflict, 409, with one details entry per conflict (field <kind>.<key>.<field>), and applies nothing. The body may be up to 6 MiB (an import document is at most 5 MB). Needs sys:billing:manage.","operationId":"ImportCatalog","parameters":[{"description":"Idempotency key, read on an apply only","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A catalog_import_plan object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/catalog/import","tags":["Billing catalog promotion"],"x-pontive-capability":"billing"}},"/billing/checkout-sessions":{"post":{"description":"billing.contract.v1.CheckoutSessionService/CreateCheckoutSession (35-contracts.md, Checkout session and API Surface). The client's server creates a session for a Customer or a subject; the checkout element confirms it through /v1/me/billing. success_url and cancel_url must be on one of the instance's app origins (billing-svc docs/questions.md, P71).","operationId":"CreateCheckoutSession","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A CheckoutSession object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/checkout-sessions","tags":["Billing checkout sessions"],"x-pontive-capability":"billing"}},"/billing/checkout-sessions/{checkout_session_id}":{"get":{"description":"billing.contract.v1.CheckoutSessionService/GetCheckoutSession (35-contracts.md, Checkout session and API Surface).","operationId":"GetCheckoutSession","parameters":[{"description":"id","in":"path","name":"checkout_session_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A CheckoutSession object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/checkout-sessions/{checkout_session_id}","tags":["Billing checkout sessions"],"x-pontive-capability":"billing"}},"/billing/checkout-sessions/{checkout_session_id}/expire":{"post":{"description":"billing.contract.v1.CheckoutSessionService/ExpireCheckoutSession (35-contracts.md, Checkout session and API Surface). An open session becomes expired.","operationId":"ExpireCheckoutSession","parameters":[{"description":"id","in":"path","name":"checkout_session_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A CheckoutSession object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/checkout-sessions/{checkout_session_id}/expire","tags":["Billing checkout sessions"],"x-pontive-capability":"billing"}},"/billing/contracts":{"get":{"description":"billing.contract.v1.ContractService/ListContracts (35-contracts.md, API Surface).","operationId":"ListContracts","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"A cust_ id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"status","in":"query","name":"status","schema":{"type":"string"}},{"description":"A package's pkg_ id or its key (api-route-review D29, D55)","in":"query","name":"package","schema":{"type":"string"}},{"description":"package_version","in":"query","name":"package_version","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Contract objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/contracts","tags":["Billing contracts"],"x-pontive-capability":"billing"},"post":{"description":"billing.contract.v1.ContractService/CreateContract (35-contracts.md, API Surface).","operationId":"CreateContract","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Contract object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/contracts","tags":["Billing contracts"],"x-pontive-capability":"billing"}},"/billing/contracts/preview":{"post":{"description":"billing.contract.v1.ContractService/PreviewContract (35-contracts.md, API Surface).","operationId":"PreviewContract","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The PreviewContractResponse fields"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/contracts/preview","tags":["Billing contracts"],"x-pontive-capability":"billing"}},"/billing/contracts/{contract_id}":{"get":{"description":"billing.contract.v1.ContractService/GetContract (35-contracts.md, API Surface).","operationId":"GetContract","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"at","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Contract object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/contracts/{contract_id}","tags":["Billing contracts"],"x-pontive-capability":"billing"}},"/billing/contracts/{contract_id}/allowance-schedules":{"get":{"description":"billing.ledger.v1.GrantService/ListAllowanceSchedules (36-credits-ledger.md, API Surface).","operationId":"ListAllowanceSchedules","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of AllowanceSchedule objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/contracts/{contract_id}/allowance-schedules","tags":["Billing grants"],"x-pontive-capability":"billing"}},"/billing/contracts/{contract_id}/cancel":{"post":{"description":"billing.contract.v1.ContractService/CancelContract (35-contracts.md, API Surface).","operationId":"CancelContract","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Contract object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/contracts/{contract_id}/cancel","tags":["Billing contracts"],"x-pontive-capability":"billing"}},"/billing/contracts/{contract_id}/change-package":{"post":{"description":"billing.contract.v1.ContractService/ChangeContractPackage (35-contracts.md, API Surface).","operationId":"ChangeContractPackage","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Contract object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/contracts/{contract_id}/change-package","tags":["Billing contracts"],"x-pontive-capability":"billing"}},"/billing/contracts/{contract_id}/edits":{"get":{"description":"billing.contract.v1.ContractService/ListContractEdits (35-contracts.md, API Surface).","operationId":"ListContractEdits","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Edit objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/contracts/{contract_id}/edits","tags":["Billing contracts"],"x-pontive-capability":"billing"},"post":{"description":"billing.contract.v1.ContractService/CreateContractEdit (35-contracts.md, API Surface).","operationId":"CreateContractEdit","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Edit object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/contracts/{contract_id}/edits","tags":["Billing contracts"],"x-pontive-capability":"billing"}},"/billing/contracts/{contract_id}/edits/preview":{"post":{"description":"billing.contract.v1.ContractService/PreviewContractEdit (35-contracts.md, API Surface).","operationId":"PreviewContractEdit","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The PreviewContractEditResponse fields"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/contracts/{contract_id}/edits/preview","tags":["Billing contracts"],"x-pontive-capability":"billing"}},"/billing/contracts/{contract_id}/edits/{edit_id}":{"delete":{"description":"billing.contract.v1.ContractService/DeleteContractEdit (35-contracts.md, API Surface).","operationId":"DeleteContractEdit","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"edit_id","in":"path","name":"edit_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"DELETE /v1/billing/contracts/{contract_id}/edits/{edit_id}","tags":["Billing contracts"],"x-pontive-capability":"billing"}},"/billing/contracts/{contract_id}/history":{"get":{"description":"billing.contract.v1.ContractService/GetContractHistory (35-contracts.md, API Surface).","operationId":"GetContractHistory","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A ContractHistory object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/contracts/{contract_id}/history","tags":["Billing contracts"],"x-pontive-capability":"billing"}},"/billing/contracts/{contract_id}/revoke-cancellation":{"post":{"description":"billing.contract.v1.ContractService/RevokeContractCancellation (35-contracts.md, API Surface).","operationId":"RevokeContractCancellation","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The RevokeContractCancellationResponse fields"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/contracts/{contract_id}/revoke-cancellation","tags":["Billing contracts"],"x-pontive-capability":"billing"}},"/billing/credit-notes":{"get":{"description":"billing.invoice.v1.CreditNoteService/ListCreditNotes (37-invoicing.md, API Surface).","operationId":"ListCreditNotes","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"A binv_ id","in":"query","name":"invoice_id","schema":{"type":"string"}},{"description":"A cust_ id","in":"query","name":"customer_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of CreditNote objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/credit-notes","tags":["Billing credit notes"],"x-pontive-capability":"billing"},"post":{"description":"billing.invoice.v1.CreditNoteService/CreateCreditNote (37-invoicing.md, API Surface).","operationId":"CreateCreditNote","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A CreditNote object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/credit-notes","tags":["Billing credit notes"],"x-pontive-capability":"billing"}},"/billing/credit-notes/preview":{"post":{"description":"billing.invoice.v1.CreditNoteService/PreviewCreditNote (37-invoicing.md, API Surface).","operationId":"PreviewCreditNote","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A CreditNote object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/credit-notes/preview","tags":["Billing credit notes"],"x-pontive-capability":"billing"}},"/billing/credit-notes/{credit_note_id}":{"get":{"description":"billing.invoice.v1.CreditNoteService/GetCreditNote (37-invoicing.md, API Surface).","operationId":"GetCreditNote","parameters":[{"description":"id","in":"path","name":"credit_note_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A CreditNote object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/credit-notes/{credit_note_id}","tags":["Billing credit notes"],"x-pontive-capability":"billing"}},"/billing/credit-notes/{credit_note_id}/pdf":{"get":{"description":"billing.invoice.v1.CreditNoteService/GetCreditNotePdf (37-invoicing.md, API Surface; The document). The credit note's PDF as a download, not an envelope: Content-Type application/pdf and Content-Disposition attachment with the file name billing-svc gives, {number}.pdf. A voided credit note's is the VOID rendition (billing-svc docs/questions.md, X158). locale is not read until documents are localized.","operationId":"GetCreditNotePdf","parameters":[{"description":"id","in":"path","name":"credit_note_id","required":true,"schema":{"type":"string"}},{"description":"locale","in":"query","name":"locale","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"file"}},"application/pdf":{"schema":{"type":"file"}}},"description":"The PDF"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/credit-notes/{credit_note_id}/pdf","tags":["Billing credit notes"],"x-pontive-capability":"billing"}},"/billing/credit-notes/{credit_note_id}/void":{"post":{"description":"billing.invoice.v1.CreditNoteService/VoidCreditNote (37-invoicing.md, API Surface).","operationId":"VoidCreditNote","parameters":[{"description":"id","in":"path","name":"credit_note_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A CreditNote object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/credit-notes/{credit_note_id}/void","tags":["Billing credit notes"],"x-pontive-capability":"billing"}},"/billing/currencies":{"get":{"description":"billing.catalog.v1.CurrencyService/ListCurrencies (32-billing-overview.md, API Surface, Currencies). Every currency billing accepts, sorted by code: its upper-case ISO 4217 code, English name, minor units (exponent), whether Stripe can charge it (chargeable) and Stripe's minimum charge, or null. chargeable=true lists only the chargeable ones. Unpaginated.","operationId":"ListCurrencies","parameters":[{"description":"Only the currencies Stripe can charge","in":"query","name":"chargeable","schema":{"type":"boolean"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Currency objects"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/currencies","tags":["Billing currencies"],"x-pontive-capability":"billing"}},"/billing/customers":{"get":{"description":"billing.customer.v1.CustomerService/ListCustomers (32-billing-overview.md, API Surface).","operationId":"ListCustomers","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"subject_type","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"subject_id","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"ingest_alias","in":"query","name":"ingest_alias","schema":{"type":"string"}},{"description":"status","in":"query","name":"status","schema":{"type":"string"}},{"description":"email","in":"query","name":"email","schema":{"type":"string"}},{"description":"invoicing_status","in":"query","name":"invoicing_status","schema":{"type":"string"}},{"description":"time_machine_id","in":"query","name":"time_machine_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Customer objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/customers","tags":["Billing customers"],"x-pontive-capability":"billing"},"post":{"description":"billing.customer.v1.CustomerService/CreateCustomer (32-billing-overview.md, API Surface; Customer). tax_status is auto, taxable, exempt or reverse_charge; left out, it is auto: billing decides reverse charge, and taxable forces tax (billing-svc docs/questions.md, P104, P105).","operationId":"CreateCustomer","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Customer object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/customers","tags":["Billing customers"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}":{"get":{"description":"billing.customer.v1.CustomerService/GetCustomer (32-billing-overview.md, API Surface).","operationId":"GetCustomer","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Customer object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/customers/{customer_id}","tags":["Billing customers"],"x-pontive-capability":"billing"},"patch":{"description":"billing.customer.v1.CustomerService/UpdateCustomer (32-billing-overview.md, API Surface; Customer). tax_status is auto, taxable, exempt or reverse_charge (billing-svc docs/questions.md, P105).","operationId":"UpdateCustomer","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Customer object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/customers/{customer_id}","tags":["Billing customers"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/account-credit/refund":{"post":{"description":"billing.ledger.v1.LedgerService/RefundAccountCredit (36-credits-ledger.md, API Surface; Account credit; 38-payments-and-tax.md, Refunds). Pays refundable account credit back to the provider payment it came from, never more than what is left of that payment, as refunds with reason account_credit_refund and no credit note (billing-svc docs/questions.md, P96). Credit added by hand, an invoice's surplus or an external overpayment can only be spent. More than the balance is balance_would_be_negative; more than the refundable part (the balances read's refundable) is refund_exceeds_payment.","operationId":"RefundAccountCredit","parameters":[{"description":"The Customer id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The credit_refunded LedgerEntry object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/customers/{customer_id}/account-credit/refund","tags":["Billing ledger"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/anonymize":{"post":{"description":"billing.customer.v1.CustomerService/AnonymizeCustomer (32-billing-overview.md, Customers, Anonymizing). Removes a settled Customer's personal data for a GDPR erasure: its name becomes the given one (default \"Deleted customer\"); its email, billing address, tax ids, locale, ingest aliases and metadata are cleared; its payment methods are detached on the provider; it is archived and its anonymized_at set. Its id, subject and history stay, and its issued invoices keep their documents, the tax record. Refused with customer_in_use while a contract has not ended or an invoice is a draft, held or open. Idempotent and irreversible: later writes are customer_anonymized.","operationId":"AnonymizeCustomer","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Customer object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/customers/{customer_id}/anonymize","tags":["Billing customers"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/archive":{"post":{"description":"billing.customer.v1.CustomerService/ArchiveCustomer (32-billing-overview.md, API Surface).","operationId":"ArchiveCustomer","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Customer object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/customers/{customer_id}/archive","tags":["Billing customers"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/balances":{"get":{"description":"billing.ledger.v1.LedgerService/ListBalances (36-credits-ledger.md, API Surface).","operationId":"ListBalances","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"unit","in":"query","name":"unit","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"at","schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Balance objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/customers/{customer_id}/balances","tags":["Billing ledger"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/change-subject":{"post":{"description":"billing.customer.v1.CustomerService/ChangeCustomerSubject (32-billing-overview.md, Changing the subject). Re-points the Customer from user to organization, or from external to user or organization; the new subject must have no Customer of its own.","operationId":"ChangeCustomerSubject","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Customer object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/customers/{customer_id}/change-subject","tags":["Billing customers"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/dunning":{"get":{"description":"billing.payment.v1.DunningService/GetCustomerDunning (38-payments-and-tax.md, API Surface, Dunning; Customer dunning state). The same state the Customer object carries as dunning; a send_invoice Customer is always none.","operationId":"GetCustomerDunning","parameters":[{"description":"The Customer id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A customer_dunning object: { status, started_at, invoice_ids, next_action }"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/customers/{customer_id}/dunning","tags":["Billing dunning"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/dunning/retry":{"post":{"description":"billing.payment.v1.DunningService/RetryCustomerDunning (38-payments-and-tax.md, API Surface, Dunning). Tries every overdue invoice at once, oldest first, as the client; the schedule does not move.","operationId":"RetryCustomerDunning","parameters":[{"description":"The Customer id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The customer_dunning object after the retries"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/customers/{customer_id}/dunning/retry","tags":["Billing dunning"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/ledger-adjustments":{"post":{"description":"billing.ledger.v1.LedgerService/CreateLedgerAdjustment (36-credits-ledger.md, API Surface).","operationId":"CreateLedgerAdjustment","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A LedgerEntry object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/customers/{customer_id}/ledger-adjustments","tags":["Billing ledger"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/payment-method-session":{"post":{"description":"billing.payment.v1.PaymentMethodService/CreatePaymentMethodSession (32-billing-overview.md, API Surface, Customers; 38-payments-and-tax.md, API Surface, Payment methods).","operationId":"CreatePaymentMethodSession","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A PaymentMethodSession object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/customers/{customer_id}/payment-method-session","tags":["Billing payment methods"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/payment-methods":{"get":{"description":"billing.payment.v1.PaymentMethodService/ListPaymentMethods (38-payments-and-tax.md, API Surface, Payment methods).","operationId":"ListPaymentMethods","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of PaymentMethod objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/customers/{customer_id}/payment-methods","tags":["Billing payment methods"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/payment-methods/{payment_method_id}":{"delete":{"description":"billing.payment.v1.PaymentMethodService/DetachPaymentMethod (38-payments-and-tax.md, API Surface, Payment methods). A warning payment_method_required comes back when it was the last reusable method (38-payments-and-tax.md, Payment methods, Removal).","operationId":"DeleteCustomerPaymentMethod","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"payment_method_id, the spec's {pm}","in":"path","name":"payment_method_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The detached PaymentMethod object, with warnings"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"DELETE /v1/billing/customers/{customer_id}/payment-methods/{payment_method_id}","tags":["Billing payment methods"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/top-ups":{"post":{"description":"billing.ledger.v1.LedgerService/CreateTopUp (36-credits-ledger.md, API Surface).","operationId":"CreateTopUp","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The CreateTopUpResponse fields"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/customers/{customer_id}/top-ups","tags":["Billing ledger"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/unarchive":{"post":{"description":"billing.customer.v1.CustomerService/UnarchiveCustomer (32-billing-overview.md, API Surface).","operationId":"UnarchiveCustomer","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Customer object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/customers/{customer_id}/unarchive","tags":["Billing customers"],"x-pontive-capability":"billing"}},"/billing/customers/{customer_id}/wallets/{unit}":{"get":{"description":"billing.ledger.v1.LedgerService/GetWallet (36-credits-ledger.md, API Surface).","operationId":"GetWallet","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"unit","in":"path","name":"unit","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Wallet object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/customers/{customer_id}/wallets/{unit}","tags":["Billing ledger"],"x-pontive-capability":"billing"},"put":{"description":"billing.ledger.v1.LedgerService/UpdateWalletSettings (36-credits-ledger.md, API Surface).","operationId":"ReplaceWalletSettings","parameters":[{"description":"id","in":"path","name":"customer_id","required":true,"schema":{"type":"string"}},{"description":"unit","in":"path","name":"unit","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A WalletSettings object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PUT /v1/billing/customers/{customer_id}/wallets/{unit}","tags":["Billing ledger"],"x-pontive-capability":"billing"}},"/billing/disputes":{"get":{"description":"billing.payment.v1.DisputeService/ListDisputes (38-payments-and-tax.md, API Surface, Refunds and disputes). Newest first.","operationId":"ListDisputes","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"status: needs_response, under_review, won, lost or warning_closed","in":"query","name":"status","schema":{"type":"string"}},{"description":"A cust_ id","in":"query","name":"customer_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Dispute objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/disputes","tags":["Billing refunds and disputes"],"x-pontive-capability":"billing"}},"/billing/disputes/{dispute_id}":{"get":{"description":"billing.payment.v1.DisputeService/GetDispute (38-payments-and-tax.md, API Surface, Refunds and disputes).","operationId":"GetDispute","parameters":[{"description":"id","in":"path","name":"dispute_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Dispute object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/disputes/{dispute_id}","tags":["Billing refunds and disputes"],"x-pontive-capability":"billing"}},"/billing/dunning-policy":{"get":{"description":"billing.payment.v1.DunningService/GetDunningPolicy (38-payments-and-tax.md, API Surface, Dunning; Dunning policy). The instance's policy, with 38's defaults until it is changed.","operationId":"GetDunningPolicy","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A DunningPolicy object","headers":{"ETag":{"description":"The document's version as its strong entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/dunning-policy","tags":["Billing dunning"],"x-pontive-capability":"billing"},"patch":{"description":"billing.payment.v1.DunningService/UpdateDunningPolicy (38-payments-and-tax.md, API Surface, Dunning; Dunning policy). A field left out keeps its value; retries and steps replace their lists; send_invoice is merged field by field, and null turns a field off (null on send_invoice turns every field in it off). More than 6 retries or 20 steps is field_too_long and changes nothing.","operationId":"UpdateDunningPolicy","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}},{"description":"The ETag the document was read with, checked by billing-svc in the update: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The updated DunningPolicy object","headers":{"ETag":{"description":"The document's new version, as its ETag","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/dunning-policy","tags":["Billing dunning"],"x-pontive-capability":"billing"}},"/billing/entitlements":{"get":{"description":"billing.entitlement.v1.EntitlementService/ListEntitlements (39-entitlements-and-controls.md, API Surface; Entitlement (resolved)). The resolved set for a subject (subject_type and subject_id) or a Customer: every feature some source sets, by key, each with its via. A boolean or numeric feature is { feature_id, key, type, value, via }; a metered one carries meter_id, allowance, limit, overage, period_start, period_end, used, remaining and balance in place of value.","operationId":"GetEntitlements","parameters":[{"description":"user, organization or external","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"subject_id","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"A cust_ id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"An org_ id: the organization a user subject acts in","in":"query","name":"context_organization_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An entitlement_set object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/entitlements","tags":["Billing entitlements"],"x-pontive-capability":"billing"}},"/billing/event-types":{"get":{"description":"billing.metering.v1.EventTypeService/ListEventTypes (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). The instance's event types, newest first.","operationId":"ListEventTypes","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"active or archived","in":"query","name":"status","schema":{"type":"string"}},{"description":"client or detected","in":"query","name":"origin","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of event_type objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/event-types","tags":["Billing event types"],"x-pontive-capability":"billing"},"post":{"description":"billing.metering.v1.EventTypeService/CreateEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). Defines an event type before any event of its key is sent: origin client, validation warn unless given (none, warn or reject), auto_enrich true unless given. Each property is { key, type, required, description }, type string, number or boolean, up to 100. A key already used, detected or defined, is event_type_key_conflict; at the instance's limit of active event types, event_type_limit_reached.","operationId":"CreateEventType","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An event_type object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"event_type_key_conflict, event_type_limit_reached"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"invalid_event_type_schema"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/event-types","tags":["Billing event types"],"x-pontive-capability":"billing"}},"/billing/event-types/infer":{"post":{"description":"billing.metering.v1.EventTypeService/InferEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). Takes { event }, one sample event as it would be sent, and answers a draft: the key, and one property per property of the sample with its value's type, each required false. Nothing is saved, so the draft has an empty id, null timestamps, and X-Idempotency-Key is not read; the client edits the draft and creates it.","operationId":"InferEventType","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A draft event_type object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/event-types/infer","tags":["Billing event types"],"x-pontive-capability":"billing"}},"/billing/event-types/{event_type}":{"get":{"description":"billing.metering.v1.EventTypeService/GetEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). An event type by its etyp_ id or its key. Each property carries its source, types_seen, first_seen_at and last_seen_at, read-only. An unknown one is event_type_not_found.","operationId":"GetEventType","parameters":[{"description":"The event type's etyp_ id or its key (api-route-review D55)","in":"path","name":"event_type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An event_type object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"event_type_not_found"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/event-types/{event_type}","tags":["Billing event types"],"x-pontive-capability":"billing"},"patch":{"description":"billing.metering.v1.EventTypeService/UpdateEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). A field left out keeps its value; the key does not change. properties replaces the whole list: a property left out is removed, one set or changed becomes source client, and [] removes them all. properties, auto_enrich and validation may not be null. Removing a property a meter names, or changing its type away from number where a meter needs one, is event_type_property_in_use.","operationId":"UpdateEventType","parameters":[{"description":"The event type's etyp_ id or its key (api-route-review D55)","in":"path","name":"event_type","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An event_type object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"event_type_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"event_type_property_in_use"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"invalid_event_type_schema"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/event-types/{event_type}","tags":["Billing event types"],"x-pontive-capability":"billing"}},"/billing/event-types/{event_type}/archive":{"post":{"description":"billing.metering.v1.EventTypeService/ArchiveEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). Refused with event_type_in_use while a meter's current or future version names it. Events of an archived type are accepted with no check and no enrichment.","operationId":"ArchiveEventType","parameters":[{"description":"The event type's etyp_ id or its key (api-route-review D55)","in":"path","name":"event_type","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An event_type object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"event_type_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"event_type_in_use"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/event-types/{event_type}/archive","tags":["Billing event types"],"x-pontive-capability":"billing"}},"/billing/event-types/{event_type}/unarchive":{"post":{"description":"billing.metering.v1.EventTypeService/UnarchiveEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). At the instance's limit of active event types, refused with event_type_limit_reached.","operationId":"UnarchiveEventType","parameters":[{"description":"The event type's etyp_ id or its key (api-route-review D55)","in":"path","name":"event_type","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An event_type object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"event_type_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"event_type_limit_reached"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/event-types/{event_type}/unarchive","tags":["Billing event types"],"x-pontive-capability":"billing"}},"/billing/events":{"get":{"description":"billing.event.v1.EventService/ListEvents (32-billing-overview.md, API Surface, Events; billing-svc docs/questions.md, P32).","operationId":"ListEvents","parameters":[{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Cursor: a next_cursor, to continue forward","in":"query","name":"after","schema":{"type":"string"}},{"description":"Cursor: a next_cursor, to read the page just before it","in":"query","name":"before","schema":{"type":"string"}},{"description":"repeated or comma separated","in":"query","name":"type","schema":{"type":"string"}},{"description":"A cust_ id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"to","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.CursorList"}}},"description":"A list of Event objects, walked by cursor (api-route-review D41)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/events","tags":["Billing events"],"x-pontive-capability":"billing"}},"/billing/events/{event_id}":{"get":{"description":"billing.event.v1.EventService/GetEvent (32-billing-overview.md, API Surface, Events; billing-svc docs/questions.md, P32).","operationId":"GetEvent","parameters":[{"description":"id","in":"path","name":"event_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Event object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/events/{event_id}","tags":["Billing events"],"x-pontive-capability":"billing"}},"/billing/exchange-rates":{"get":{"description":"billing.catalog.v1.ExchangeRateService/GetExchangeRate (32-billing-overview.md, API Surface, Exchange rates). The rate a line whose service period ends at at takes: the ECB's reference rate, or a manual rate for a pair the ECB does not publish. exchange_rate_unavailable while there is none yet.","operationId":"GetExchangeRate","parameters":[{"description":"ISO 4217 code of the currency converted from","in":"query","name":"from","required":true,"schema":{"type":"string"}},{"description":"ISO 4217 code of the currency converted to","in":"query","name":"to","required":true,"schema":{"type":"string"}},{"description":"RFC 3339 instant the line's service period ends at","in":"query","name":"at","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An ExchangeRate object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/exchange-rates","tags":["Billing exchange rates"],"x-pontive-capability":"billing"}},"/billing/exchange-rates/{from}/{to}/{date}":{"put":{"description":"billing.catalog.v1.ExchangeRateService/SetManualExchangeRate (32-billing-overview.md, API Surface, Exchange rates). A manual rate for one day (UTC) of a pair the ECB does not publish: { rate, note }. exchange_rate_published for a pair the ECB publishes; exchange_rate_in_use for a change to a rate a finalized invoice used.","operationId":"ReplaceExchangeRate","parameters":[{"description":"from","in":"path","name":"from","required":true,"schema":{"type":"string"}},{"description":"to","in":"path","name":"to","required":true,"schema":{"type":"string"}},{"description":"date, YYYY-MM-DD","in":"path","name":"date","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An ExchangeRate object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PUT /v1/billing/exchange-rates/{from}/{to}/{date}","tags":["Billing exchange rates"],"x-pontive-capability":"billing"}},"/billing/features":{"get":{"description":"billing.catalog.v1.FeatureService/ListFeatures (34-billing-catalog.md, API Surface).","operationId":"ListFeatures","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Feature objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/features","tags":["Billing features"],"x-pontive-capability":"billing"},"post":{"description":"billing.catalog.v1.FeatureService/CreateFeature (34-billing-catalog.md, API Surface).","operationId":"CreateFeature","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Feature object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/features","tags":["Billing features"],"x-pontive-capability":"billing"}},"/billing/features/{feature}":{"get":{"description":"billing.catalog.v1.FeatureService/GetFeature (34-billing-catalog.md, API Surface).","operationId":"GetFeature","parameters":[{"description":"The feature's feat_ id or its key (api-route-review D55)","in":"path","name":"feature","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Feature object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/features/{feature}","tags":["Billing features"],"x-pontive-capability":"billing"},"patch":{"description":"billing.catalog.v1.FeatureService/UpdateFeature (34-billing-catalog.md, API Surface).","operationId":"UpdateFeature","parameters":[{"description":"The feature's feat_ id or its key (api-route-review D55)","in":"path","name":"feature","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Feature object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/features/{feature}","tags":["Billing features"],"x-pontive-capability":"billing"}},"/billing/features/{feature}/archive":{"post":{"description":"billing.catalog.v1.FeatureService/ArchiveFeature (34-billing-catalog.md, API Surface).","operationId":"ArchiveFeature","parameters":[{"description":"The feature's feat_ id or its key (api-route-review D55)","in":"path","name":"feature","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Feature object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/features/{feature}/archive","tags":["Billing features"],"x-pontive-capability":"billing"}},"/billing/grants":{"get":{"description":"billing.ledger.v1.GrantService/ListGrants (36-credits-ledger.md, API Surface).","operationId":"ListGrants","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"A cust_ id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"A ctr_ id","in":"query","name":"contract_id","schema":{"type":"string"}},{"description":"status","in":"query","name":"status","schema":{"type":"string"}},{"description":"kind","in":"query","name":"kind","schema":{"type":"string"}},{"description":"unit","in":"query","name":"unit","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Grant objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/grants","tags":["Billing grants"],"x-pontive-capability":"billing"},"post":{"description":"billing.ledger.v1.GrantService/CreateGrant (36-credits-ledger.md, API Surface).","operationId":"CreateGrant","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Grant object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/grants","tags":["Billing grants"],"x-pontive-capability":"billing"}},"/billing/grants/{grant_id}":{"get":{"description":"billing.ledger.v1.GrantService/GetGrant (36-credits-ledger.md, API Surface).","operationId":"GetGrant","parameters":[{"description":"id","in":"path","name":"grant_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Grant object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/grants/{grant_id}","tags":["Billing grants"],"x-pontive-capability":"billing"},"patch":{"description":"billing.ledger.v1.GrantService/UpdateGrant (36-credits-ledger.md, API Surface).","operationId":"UpdateGrant","parameters":[{"description":"id","in":"path","name":"grant_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Grant object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/grants/{grant_id}","tags":["Billing grants"],"x-pontive-capability":"billing"}},"/billing/grants/{grant_id}/void":{"post":{"description":"billing.ledger.v1.GrantService/VoidGrant (36-credits-ledger.md, API Surface).","operationId":"VoidGrant","parameters":[{"description":"id","in":"path","name":"grant_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The VoidGrantResponse fields"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/grants/{grant_id}/void","tags":["Billing grants"],"x-pontive-capability":"billing"}},"/billing/invoices":{"get":{"description":"billing.invoice.v1.InvoiceService/ListInvoices (37-invoicing.md, API Surface).","operationId":"ListInvoices","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"A cust_ id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"A ctr_ id","in":"query","name":"contract_id","schema":{"type":"string"}},{"description":"status","in":"query","name":"status","schema":{"type":"string"}},{"description":"kind","in":"query","name":"kind","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"to","schema":{"type":"string"}},{"description":"number","in":"query","name":"number","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Invoice objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/invoices","tags":["Billing invoices"],"x-pontive-capability":"billing"},"post":{"description":"billing.invoice.v1.InvoiceService/CreateInvoice (37-invoicing.md, API Surface).","operationId":"CreateInvoice","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/invoices","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/upcoming":{"get":{"description":"billing.invoice.v1.InvoiceService/GetUpcomingInvoice (37-invoicing.md, API Surface).","operationId":"GetUpcomingInvoice","parameters":[{"description":"A ctr_ id","in":"query","name":"contract_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/invoices/upcoming","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/{invoice_id}":{"get":{"description":"billing.invoice.v1.InvoiceService/GetInvoice (37-invoicing.md, API Surface).","operationId":"GetInvoice","parameters":[{"description":"id_or_number","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/invoices/{invoice_id}","tags":["Billing invoices"],"x-pontive-capability":"billing"},"patch":{"description":"billing.invoice.v1.InvoiceService/UpdateInvoice (37-invoicing.md, API Surface).","operationId":"UpdateInvoice","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/invoices/{invoice_id}","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/{invoice_id}/finalize":{"post":{"description":"billing.invoice.v1.InvoiceService/FinalizeInvoice (37-invoicing.md, API Surface).","operationId":"FinalizeInvoice","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/invoices/{invoice_id}/finalize","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/{invoice_id}/lines":{"get":{"description":"billing.invoice.v1.InvoiceService/ListInvoiceLines (37-invoicing.md, API Surface).","operationId":"ListInvoiceLines","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"A product id","in":"query","name":"product_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Line objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/invoices/{invoice_id}/lines","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/{invoice_id}/mark-uncollectible":{"post":{"description":"billing.invoice.v1.InvoiceService/MarkInvoiceUncollectible (37-invoicing.md, API Surface).","operationId":"MarkInvoiceUncollectible","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/invoices/{invoice_id}/mark-uncollectible","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/{invoice_id}/pay":{"post":{"description":"billing.invoice.v1.InvoiceService/PayInvoice (37-invoicing.md, API Surface).","operationId":"PayInvoice","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/invoices/{invoice_id}/pay","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/{invoice_id}/pdf":{"get":{"description":"billing.invoice.v1.InvoiceService/GetInvoicePdf (37-invoicing.md, API Surface; The document). The invoice's PDF as a download, not an envelope: Content-Type application/pdf and Content-Disposition attachment with the file name billing-svc gives, {number}.pdf. A voided invoice's is the VOID rendition (billing-svc docs/questions.md, X158); a draft has none (not_found). locale is not read until documents are localized.","operationId":"GetInvoicePdf","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"locale","in":"query","name":"locale","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"file"}},"application/pdf":{"schema":{"type":"file"}}},"description":"The PDF"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/invoices/{invoice_id}/pdf","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/{invoice_id}/recompute":{"post":{"description":"billing.invoice.v1.InvoiceService/RecomputeInvoice (37-invoicing.md, API Surface).","operationId":"RecomputeInvoice","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/invoices/{invoice_id}/recompute","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/{invoice_id}/send":{"post":{"description":"billing.invoice.v1.InvoiceService/SendInvoice (37-invoicing.md, API Surface; Emails). Sends the invoice issued email again, with its PDF, to the Customer's email as it is now, whatever the emails toggles say. A draft, held or void invoice is invoice_not_open (billing-svc docs/questions.md, X163). X-Idempotency-Key is passed through. The body takes no field.","operationId":"SendInvoice","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/invoices/{invoice_id}/send","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/{invoice_id}/usage-detail":{"get":{"description":"billing.invoice.v1.InvoiceService/GetInvoiceUsageCsv (37-invoicing.md, API Surface; The document). One row per rated usage line (billing-svc docs/questions.md, X157), as a download, not an envelope: Content-Type text/csv; charset=utf-8 and Content-Disposition attachment with the file name billing-svc gives, {number}-usage-detail.csv.","operationId":"GetInvoiceUsageCsv","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"file"}},"text/csv":{"schema":{"type":"file"}}},"description":"The CSV"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"text/csv":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"text/csv":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"text/csv":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/invoices/{invoice_id}/usage-detail","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/invoices/{invoice_id}/void":{"post":{"description":"billing.invoice.v1.InvoiceService/VoidInvoice (37-invoicing.md, API Surface).","operationId":"VoidInvoice","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/invoices/{invoice_id}/void","tags":["Billing invoices"],"x-pontive-capability":"billing"}},"/billing/ledger-entries":{"get":{"description":"billing.ledger.v1.LedgerService/ListLedgerEntries (36-credits-ledger.md, API Surface).","operationId":"ListLedgerEntries","parameters":[{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Cursor: a next_cursor, to continue forward","in":"query","name":"after","schema":{"type":"string"}},{"description":"Cursor: a next_cursor, to read the page just before it","in":"query","name":"before","schema":{"type":"string"}},{"description":"A cust_ id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"A grant id","in":"query","name":"grant_id","schema":{"type":"string"}},{"description":"account","in":"query","name":"account","schema":{"type":"string"}},{"description":"type","in":"query","name":"type","schema":{"type":"string"}},{"description":"A binv_ id","in":"query","name":"invoice_id","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"to","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.CursorList"}}},"description":"A list of LedgerEntry objects, walked by cursor (api-route-review D41)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/ledger-entries","tags":["Billing ledger"],"x-pontive-capability":"billing"}},"/billing/meters":{"get":{"description":"billing.metering.v1.MeterService/ListMeters (33-metering.md, API Surface).","operationId":"ListMeters","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"status","in":"query","name":"status","schema":{"type":"string"}},{"description":"event_type","in":"query","name":"event_type","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Meter objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/meters","tags":["Billing meters"],"x-pontive-capability":"billing"},"post":{"description":"billing.metering.v1.MeterService/CreateMeter (33-metering.md, API Surface).","operationId":"CreateMeter","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Meter object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/meters","tags":["Billing meters"],"x-pontive-capability":"billing"}},"/billing/meters/preview":{"post":{"description":"billing.metering.v1.MeterService/PreviewMeter (33-metering.md, API Surface).","operationId":"PreviewMeter","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A MeterPreview object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/meters/preview","tags":["Billing meters"],"x-pontive-capability":"billing"}},"/billing/meters/{meter}":{"get":{"description":"billing.metering.v1.MeterService/GetMeter (33-metering.md, API Surface).","operationId":"GetMeter","parameters":[{"description":"The meter's mtr_ id or its key (api-route-review D55)","in":"path","name":"meter","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Meter object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/meters/{meter}","tags":["Billing meters"],"x-pontive-capability":"billing"},"patch":{"description":"billing.metering.v1.MeterService/UpdateMeter (33-metering.md, API Surface).","operationId":"UpdateMeter","parameters":[{"description":"The meter's mtr_ id or its key (api-route-review D55)","in":"path","name":"meter","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Meter object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/meters/{meter}","tags":["Billing meters"],"x-pontive-capability":"billing"}},"/billing/meters/{meter}/archive":{"post":{"description":"billing.metering.v1.MeterService/ArchiveMeter (33-metering.md, API Surface).","operationId":"ArchiveMeter","parameters":[{"description":"The meter's mtr_ id or its key (api-route-review D55)","in":"path","name":"meter","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Meter object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/meters/{meter}/archive","tags":["Billing meters"],"x-pontive-capability":"billing"}},"/billing/meters/{meter}/definition":{"put":{"description":"billing.metering.v1.MeterService/ReplaceMeterDefinition (33-metering.md, API Surface).","operationId":"ReplaceMeterDefinition","parameters":[{"description":"The meter's mtr_ id or its key (api-route-review D55)","in":"path","name":"meter","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Meter object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PUT /v1/billing/meters/{meter}/definition","tags":["Billing meters"],"x-pontive-capability":"billing"}},"/billing/meters/{meter}/unarchive":{"post":{"description":"billing.metering.v1.MeterService/UnarchiveMeter (33-metering.md, API Surface).","operationId":"UnarchiveMeter","parameters":[{"description":"The meter's mtr_ id or its key (api-route-review D55)","in":"path","name":"meter","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Meter object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/meters/{meter}/unarchive","tags":["Billing meters"],"x-pontive-capability":"billing"}},"/billing/packages":{"get":{"description":"billing.catalog.v1.PackageService/ListPackages (34-billing-catalog.md, API Surface).","operationId":"ListPackages","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"status","in":"query","name":"status","schema":{"type":"string"}},{"description":"public","in":"query","name":"public","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Package objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/packages","tags":["Billing packages"],"x-pontive-capability":"billing"},"post":{"description":"billing.catalog.v1.PackageService/CreatePackage (34-billing-catalog.md, API Surface).","operationId":"CreatePackage","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Package object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/packages","tags":["Billing packages"],"x-pontive-capability":"billing"}},"/billing/packages/{package}":{"get":{"description":"billing.catalog.v1.PackageService/GetPackage (34-billing-catalog.md, API Surface).","operationId":"GetPackage","parameters":[{"description":"The package's pkg_ id or its key (api-route-review D55)","in":"path","name":"package","required":true,"schema":{"type":"string"}},{"description":"version","in":"query","name":"version","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Package object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/packages/{package}","tags":["Billing packages"],"x-pontive-capability":"billing"},"patch":{"description":"billing.catalog.v1.PackageService/UpdatePackage (34-billing-catalog.md, API Surface).","operationId":"UpdatePackage","parameters":[{"description":"The package's pkg_ id or its key (api-route-review D55)","in":"path","name":"package","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Package object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/packages/{package}","tags":["Billing packages"],"x-pontive-capability":"billing"}},"/billing/packages/{package}/archive":{"post":{"description":"billing.catalog.v1.PackageService/ArchivePackage (34-billing-catalog.md, API Surface).","operationId":"ArchivePackage","parameters":[{"description":"The package's pkg_ id or its key (api-route-review D55)","in":"path","name":"package","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Package object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/packages/{package}/archive","tags":["Billing packages"],"x-pontive-capability":"billing"}},"/billing/packages/{package}/discard-draft":{"post":{"description":"billing.catalog.v1.PackageService/DiscardPackageDraft (34-billing-catalog.md, API Surface).","operationId":"DiscardPackageDraft","parameters":[{"description":"The package's pkg_ id or its key (api-route-review D55)","in":"path","name":"package","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Package object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/packages/{package}/discard-draft","tags":["Billing packages"],"x-pontive-capability":"billing"}},"/billing/packages/{package}/publish":{"post":{"description":"billing.catalog.v1.PackageService/PublishPackage (34-billing-catalog.md, API Surface).","operationId":"PublishPackage","parameters":[{"description":"The package's pkg_ id or its key (api-route-review D55)","in":"path","name":"package","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Package object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/packages/{package}/publish","tags":["Billing packages"],"x-pontive-capability":"billing"}},"/billing/packages/{package}/unarchive":{"post":{"description":"billing.catalog.v1.PackageService/UnarchivePackage (34-billing-catalog.md, API Surface).","operationId":"UnarchivePackage","parameters":[{"description":"The package's pkg_ id or its key (api-route-review D55)","in":"path","name":"package","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Package object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/packages/{package}/unarchive","tags":["Billing packages"],"x-pontive-capability":"billing"}},"/billing/packages/{package}/versions":{"get":{"description":"billing.catalog.v1.PackageService/ListPackageVersions (34-billing-catalog.md, API Surface).","operationId":"ListPackageVersions","parameters":[{"description":"The package's pkg_ id or its key (api-route-review D55)","in":"path","name":"package","required":true,"schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Package objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/packages/{package}/versions","tags":["Billing packages"],"x-pontive-capability":"billing"}},"/billing/payment-connections":{"get":{"description":"billing.payment.v1.PaymentConnectionService/ListPaymentConnections (32-billing-overview.md, API Surface, Payment connections).","operationId":"ListPaymentConnections","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of PaymentConnection objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/payment-connections","tags":["Billing payment connections"],"x-pontive-capability":"billing"},"post":{"description":"billing.payment.v1.PaymentConnectionService/CreatePaymentConnection (32-billing-overview.md, API Surface, Payment connections).","operationId":"CreatePaymentConnection","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A PaymentConnection object, with authorize_url"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/payment-connections","tags":["Billing payment connections"],"x-pontive-capability":"billing"}},"/billing/payment-connections/{payment_connection_id}":{"get":{"description":"billing.payment.v1.PaymentConnectionService/GetPaymentConnection (32-billing-overview.md, API Surface, Payment connections). tax is the connected account's Stripe Tax read, read-only and null until read: { status, head_office, registrations: [{ country, state, type }], warnings: [{ code, message, country, tax_id_type }] } (38-payments-and-tax.md, The seller's tax identity; billing-svc docs/questions.md, P104).","operationId":"GetPaymentConnection","parameters":[{"description":"id","in":"path","name":"payment_connection_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A PaymentConnection object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/payment-connections/{payment_connection_id}","tags":["Billing payment connections"],"x-pontive-capability":"billing"}},"/billing/payment-connections/{payment_connection_id}/refresh":{"post":{"description":"billing.payment.v1.PaymentConnectionService/RefreshPaymentConnection (32-billing-overview.md, API Surface, Payment connections). tax is the connected account's Stripe Tax read, read-only and null until read: { status, head_office, registrations: [{ country, state, type }], warnings: [{ code, message, country, tax_id_type }] } (38-payments-and-tax.md, The seller's tax identity; billing-svc docs/questions.md, P104).","operationId":"RefreshPaymentConnection","parameters":[{"description":"id","in":"path","name":"payment_connection_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A PaymentConnection object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/payment-connections/{payment_connection_id}/refresh","tags":["Billing payment connections"],"x-pontive-capability":"billing"}},"/billing/payment-connections/{payment_connection_id}/revoke":{"post":{"description":"billing.payment.v1.PaymentConnectionService/RevokePaymentConnection (32-billing-overview.md, API Surface, Payment connections). Revokes Pontive's access on the provider; the connection stays, revoked, with revoked_at (api-route-review D8, D58).","operationId":"RevokePaymentConnection","parameters":[{"description":"id","in":"path","name":"payment_connection_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"The revoked PaymentConnection object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/payment-connections/{payment_connection_id}/revoke","tags":["Billing payment connections"],"x-pontive-capability":"billing"}},"/billing/payments":{"get":{"description":"billing.payment.v1.PaymentService/ListPayments (38-payments-and-tax.md, API Surface, Payments).","operationId":"ListPayments","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"A cust_ id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"A binv_ id","in":"query","name":"invoice_id","schema":{"type":"string"}},{"description":"status","in":"query","name":"status","schema":{"type":"string"}},{"description":"from, RFC 3339","in":"query","name":"from","schema":{"type":"string"}},{"description":"to, RFC 3339","in":"query","name":"to","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Payment objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/payments","tags":["Billing payments"],"x-pontive-capability":"billing"},"post":{"description":"billing.payment.v1.PaymentService/RecordExternalPayment (38-payments-and-tax.md, API Surface, Payments; External payments). Records money received outside the provider as a succeeded payment with external set. Partial amounts are allowed; more than is owed is external_payment_exceeds_due unless allow_overpayment, which sends the excess to account credit. paid_at may not be in the future.","operationId":"CreatePayment","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Payment object, with external"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/payments","tags":["Billing payments"],"x-pontive-capability":"billing"}},"/billing/payments/{payment_id}":{"get":{"description":"billing.payment.v1.PaymentService/GetPayment (38-payments-and-tax.md, API Surface, Payments).","operationId":"GetPayment","parameters":[{"description":"id","in":"path","name":"payment_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Payment object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/payments/{payment_id}","tags":["Billing payments"],"x-pontive-capability":"billing"}},"/billing/pricing-units":{"get":{"description":"billing.catalog.v1.PricingUnitService/ListPricingUnits (34-billing-catalog.md, API Surface).","operationId":"ListPricingUnits","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of PricingUnit objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/pricing-units","tags":["Billing pricing units"],"x-pontive-capability":"billing"},"post":{"description":"billing.catalog.v1.PricingUnitService/CreatePricingUnit (34-billing-catalog.md, API Surface).","operationId":"CreatePricingUnit","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A PricingUnit object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/pricing-units","tags":["Billing pricing units"],"x-pontive-capability":"billing"}},"/billing/pricing-units/{pricing_unit}":{"get":{"description":"billing.catalog.v1.PricingUnitService/GetPricingUnit (34-billing-catalog.md, API Surface).","operationId":"GetPricingUnit","parameters":[{"description":"The pricing unit's pu_ id or its key (api-route-review D55)","in":"path","name":"pricing_unit","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A PricingUnit object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/pricing-units/{pricing_unit}","tags":["Billing pricing units"],"x-pontive-capability":"billing"},"patch":{"description":"billing.catalog.v1.PricingUnitService/UpdatePricingUnit (34-billing-catalog.md, API Surface).","operationId":"UpdatePricingUnit","parameters":[{"description":"The pricing unit's pu_ id or its key (api-route-review D55)","in":"path","name":"pricing_unit","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A PricingUnit object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/pricing-units/{pricing_unit}","tags":["Billing pricing units"],"x-pontive-capability":"billing"}},"/billing/pricing-units/{pricing_unit}/archive":{"post":{"description":"billing.catalog.v1.PricingUnitService/ArchivePricingUnit (34-billing-catalog.md, API Surface).","operationId":"ArchivePricingUnit","parameters":[{"description":"The pricing unit's pu_ id or its key (api-route-review D55)","in":"path","name":"pricing_unit","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A PricingUnit object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/pricing-units/{pricing_unit}/archive","tags":["Billing pricing units"],"x-pontive-capability":"billing"}},"/billing/products":{"get":{"description":"billing.catalog.v1.ProductService/ListProducts (34-billing-catalog.md, API Surface).","operationId":"ListProducts","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"kind","in":"query","name":"kind","schema":{"type":"string"}},{"description":"tag","in":"query","name":"tag","schema":{"type":"string"}},{"description":"status","in":"query","name":"status","schema":{"type":"string"}},{"description":"A mtr_ id","in":"query","name":"meter_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Product objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/products","tags":["Billing products"],"x-pontive-capability":"billing"},"post":{"description":"billing.catalog.v1.ProductService/CreateProduct (34-billing-catalog.md, API Surface).","operationId":"CreateProduct","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Product object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/products","tags":["Billing products"],"x-pontive-capability":"billing"}},"/billing/products/{product}":{"get":{"description":"billing.catalog.v1.ProductService/GetProduct (34-billing-catalog.md, API Surface).","operationId":"GetProduct","parameters":[{"description":"The product's prdt_ id or its key (api-route-review D55)","in":"path","name":"product","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Product object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/products/{product}","tags":["Billing products"],"x-pontive-capability":"billing"},"patch":{"description":"billing.catalog.v1.ProductService/UpdateProduct (34-billing-catalog.md, API Surface).","operationId":"UpdateProduct","parameters":[{"description":"The product's prdt_ id or its key (api-route-review D55)","in":"path","name":"product","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Product object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/products/{product}","tags":["Billing products"],"x-pontive-capability":"billing"}},"/billing/products/{product}/archive":{"post":{"description":"billing.catalog.v1.ProductService/ArchiveProduct (34-billing-catalog.md, API Surface).","operationId":"ArchiveProduct","parameters":[{"description":"The product's prdt_ id or its key (api-route-review D55)","in":"path","name":"product","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Product object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/products/{product}/archive","tags":["Billing products"],"x-pontive-capability":"billing"}},"/billing/products/{product}/unarchive":{"post":{"description":"billing.catalog.v1.ProductService/UnarchiveProduct (34-billing-catalog.md, API Surface).","operationId":"UnarchiveProduct","parameters":[{"description":"The product's prdt_ id or its key (api-route-review D55)","in":"path","name":"product","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Product object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/products/{product}/unarchive","tags":["Billing products"],"x-pontive-capability":"billing"}},"/billing/rate-cards":{"get":{"description":"billing.catalog.v1.RateCardService/ListRateCards (34-billing-catalog.md, API Surface).","operationId":"ListRateCards","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of RateCard objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/rate-cards","tags":["Billing rate cards"],"x-pontive-capability":"billing"},"post":{"description":"billing.catalog.v1.RateCardService/CreateRateCard (34-billing-catalog.md, API Surface).","operationId":"CreateRateCard","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A RateCard object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/rate-cards","tags":["Billing rate cards"],"x-pontive-capability":"billing"}},"/billing/rate-cards/{rate_card}":{"get":{"description":"billing.catalog.v1.RateCardService/GetRateCard (34-billing-catalog.md, API Surface).","operationId":"GetRateCard","parameters":[{"description":"The rate card's rcard_ id or its key (api-route-review D55)","in":"path","name":"rate_card","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A RateCard object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/rate-cards/{rate_card}","tags":["Billing rate cards"],"x-pontive-capability":"billing"},"patch":{"description":"billing.catalog.v1.RateCardService/UpdateRateCard (34-billing-catalog.md, API Surface).","operationId":"UpdateRateCard","parameters":[{"description":"The rate card's rcard_ id or its key (api-route-review D55)","in":"path","name":"rate_card","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A RateCard object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/rate-cards/{rate_card}","tags":["Billing rate cards"],"x-pontive-capability":"billing"}},"/billing/rate-cards/{rate_card}/archive":{"post":{"description":"billing.catalog.v1.RateCardService/ArchiveRateCard (34-billing-catalog.md, API Surface).","operationId":"ArchiveRateCard","parameters":[{"description":"The rate card's rcard_ id or its key (api-route-review D55)","in":"path","name":"rate_card","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A RateCard object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/rate-cards/{rate_card}/archive","tags":["Billing rate cards"],"x-pontive-capability":"billing"}},"/billing/rate-cards/{rate_card}/conversions":{"put":{"description":"billing.catalog.v1.RateCardService/ReplaceConversions (34-billing-catalog.md, API Surface).","operationId":"ReplaceConversions","parameters":[{"description":"The rate card's rcard_ id or its key (api-route-review D55)","in":"path","name":"rate_card","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A RateCard object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PUT /v1/billing/rate-cards/{rate_card}/conversions","tags":["Billing rate cards"],"x-pontive-capability":"billing"}},"/billing/rate-cards/{rate_card}/price/search":{"post":{"description":"billing.catalog.v1.RateCardService/GetRateCardPrice (34-billing-catalog.md, API Surface). The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read.","operationId":"SearchRateCardPrices","parameters":[{"description":"The rate card's rcard_ id or its key (api-route-review D55)","in":"path","name":"rate_card","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A PriceQuote object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/rate-cards/{rate_card}/price/search","tags":["Billing rate cards"],"x-pontive-capability":"billing"}},"/billing/rate-cards/{rate_card}/rates":{"post":{"description":"billing.catalog.v1.RateCardService/CreateRates (34-billing-catalog.md, API Surface).","operationId":"CreateRates","parameters":[{"description":"The rate card's rcard_ id or its key (api-route-review D55)","in":"path","name":"rate_card","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Rate objects"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/rate-cards/{rate_card}/rates","tags":["Billing rate cards"],"x-pontive-capability":"billing"}},"/billing/rate-cards/{rate_card}/rates/search":{"post":{"description":"billing.catalog.v1.RateCardService/ListRates (34-billing-catalog.md, API Surface). The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read.","operationId":"SearchRates","parameters":[{"description":"The rate card's rcard_ id or its key (api-route-review D55)","in":"path","name":"rate_card","required":true,"schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Rate objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/rate-cards/{rate_card}/rates/search","tags":["Billing rate cards"],"x-pontive-capability":"billing"}},"/billing/rate-cards/{rate_card}/rates/{rate_id}":{"delete":{"description":"billing.catalog.v1.RateCardService/DeleteRate (34-billing-catalog.md, API Surface).","operationId":"DeleteRate","parameters":[{"description":"The rate card's rcard_ id or its key (api-route-review D55)","in":"path","name":"rate_card","required":true,"schema":{"type":"string"}},{"description":"rate_id","in":"path","name":"rate_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"DELETE /v1/billing/rate-cards/{rate_card}/rates/{rate_id}","tags":["Billing rate cards"],"x-pontive-capability":"billing"},"patch":{"description":"billing.catalog.v1.RateCardService/UpdateRate (34-billing-catalog.md, API Surface).","operationId":"UpdateRate","parameters":[{"description":"The rate card's rcard_ id or its key (api-route-review D55)","in":"path","name":"rate_card","required":true,"schema":{"type":"string"}},{"description":"rate_id","in":"path","name":"rate_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Rate object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/rate-cards/{rate_card}/rates/{rate_id}","tags":["Billing rate cards"],"x-pontive-capability":"billing"}},"/billing/refunds":{"get":{"description":"billing.payment.v1.RefundService/ListRefunds (38-payments-and-tax.md, API Surface, Refunds and disputes). Newest first.","operationId":"ListRefunds","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"A pay_ id","in":"query","name":"payment_id","schema":{"type":"string"}},{"description":"A cust_ id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"status: pending, succeeded, failed or canceled","in":"query","name":"status","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Refund objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/refunds","tags":["Billing refunds and disputes"],"x-pontive-capability":"billing"},"post":{"description":"billing.payment.v1.PaymentService/RefundPayment (38-payments-and-tax.md, API Surface, Payments; Refunds). Refunds a succeeded provider payment and creates its credit note, lines spread in proportion. amount is required; reason is duplicate, fraudulent or requested_by_customer (the default). The refund is answered as it stands once sent to the provider, usually pending. More than is left of the payment, an external or unsucceeded payment, or a payment with an open dispute is refund_exceeds_payment.","operationId":"CreateRefund","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Refund object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/refunds","tags":["Billing refunds and disputes"],"x-pontive-capability":"billing"}},"/billing/refunds/{refund_id}":{"get":{"description":"billing.payment.v1.RefundService/GetRefund (38-payments-and-tax.md, API Surface, Refunds and disputes).","operationId":"GetRefund","parameters":[{"description":"id","in":"path","name":"refund_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A Refund object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/refunds/{refund_id}","tags":["Billing refunds and disputes"],"x-pontive-capability":"billing"}},"/billing/settings":{"get":{"description":"billing.customer.v1.BillingSettingsService/GetBillingSettings (32-billing-overview.md, API Surface).","operationId":"GetBillingSettings","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A BillingSettings object","headers":{"ETag":{"description":"The document's version as its strong entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/settings","tags":["Billing settings"],"x-pontive-capability":"billing"},"patch":{"description":"billing.customer.v1.BillingSettingsService/UpdateBillingSettings (32-billing-overview.md, API Surface; 38-payments-and-tax.md, Tax settings). A field left out keeps its value. limits is read-only here: a body that sets it is refused as a field the request does not take (PATCH /v1/billing/settings/limits sets it). tax.mode, tax.missing_location and tax.validate_tax_ids are replaced together. tax.manual_rates replaces the whole list: a rate with an id keeps that rate, one without mints a new one, null or [] clears the list, more than 200 is field_too_long; left out, the rates stay as they are.","operationId":"UpdateBillingSettings","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}},{"description":"The ETag the document was read with, checked by billing-svc in the update: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A BillingSettings object","headers":{"ETag":{"description":"The document's new version, as its ETag","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/settings","tags":["Billing settings"],"x-pontive-capability":"billing"}},"/billing/settings/limits":{"patch":{"description":"billing.customer.v1.BillingSettingsService/UpdateBillingLimits (32-billing-overview.md, API Surface, Billing settings; Billing settings, limits; billing-svc docs/questions.md, P99). Pontive's own route: needs instance:manage (production_instance:manage for a production instance), as the capability does, so a client's billing keys cannot change the instance's limits. Body { event_types?, meters? }, each a whole number from 0 to 10,000; only the fields given change, and null is refused. Refused while billing is off. A limit lowered below the current count refuses nothing that exists. Answers the billing settings.","operationId":"UpdateBillingLimits","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A billing_settings object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/billing/settings/limits","tags":["Billing settings"],"x-pontive-capability":"billing"}},"/billing/subject-state":{"get":{"description":"billing.entitlement.v1.SubjectStateService/GetSubjectState (32-billing-overview.md, API Surface, Subject states; Data Model, Subject state). The subject's current state: its package, every feature it resolves a value for by key ({ type, value } for a boolean or numeric feature, { type, allowance, per, limit, overage, exhausted } for a metered one; billing-svc docs/questions.md, P107), seat_limit, suspended and suspension_cause, with a version that increases on every change. A subject with no state yet answers the defaults with version 0: customer_id, package and seat_limit null, the values of default_features as features (a metered default not exhausted), suspended false. Needs sys:billing:read on the root, and answers while billing is off (billing-svc docs/questions.md, P41). An unknown subject_type is invalid_subject_type; a user or organization not in the instance is subject_not_found. The RPC writes nothing, so X-Idempotency-Key is not read.","operationId":"GetSubjectState","parameters":[{"description":"user, organization or external","in":"query","name":"subject_type","required":true,"schema":{"type":"string"}},{"description":"A user's or organization's id, or the client's own external id","in":"query","name":"subject_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A subject_state object"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/subject-state","tags":["Billing subject states"],"x-pontive-capability":"billing"}},"/billing/tax/preview":{"post":{"description":"billing.payment.v1.TaxService/PreviewTax (38-payments-and-tax.md, API Surface, Tax). Calculated tax, without recording: the calculation finalization uses. Give customer or address, not both; currency is required with an address. The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read. No location under missing_location hold is customer_location_required.","operationId":"PreviewTax","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A tax_preview object: { mode, status, tax_total, lines, tax_breakdown }"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/tax/preview","tags":["Billing tax"],"x-pontive-capability":"billing"}},"/billing/time-machines":{"get":{"description":"billing.timemachine.v1.TimeMachineService/ListTimeMachines (32-billing-overview.md, API Surface).","operationId":"ListTimeMachines","parameters":[{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of TimeMachine objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/time-machines","tags":["Billing time machines"],"x-pontive-capability":"billing"},"post":{"description":"billing.timemachine.v1.TimeMachineService/CreateTimeMachine (32-billing-overview.md, API Surface).","operationId":"CreateTimeMachine","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A TimeMachine object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/time-machines","tags":["Billing time machines"],"x-pontive-capability":"billing"}},"/billing/time-machines/{time_machine_id}":{"get":{"description":"billing.timemachine.v1.TimeMachineService/GetTimeMachine (32-billing-overview.md, API Surface).","operationId":"GetTimeMachine","parameters":[{"description":"id","in":"path","name":"time_machine_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A TimeMachine object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/time-machines/{time_machine_id}","tags":["Billing time machines"],"x-pontive-capability":"billing"}},"/billing/time-machines/{time_machine_id}/advance":{"post":{"description":"billing.timemachine.v1.TimeMachineService/AdvanceTimeMachine (32-billing-overview.md, API Surface).","operationId":"AdvanceTimeMachine","parameters":[{"description":"id","in":"path","name":"time_machine_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A TimeMachine object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/time-machines/{time_machine_id}/advance","tags":["Billing time machines"],"x-pontive-capability":"billing"}},"/billing/time-machines/{time_machine_id}/customers":{"post":{"description":"billing.timemachine.v1.TimeMachineService/AddTimeMachineCustomer (32-billing-overview.md, API Surface).","operationId":"CreateTimeMachineCustomer","parameters":[{"description":"id","in":"path","name":"time_machine_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A TimeMachine object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/time-machines/{time_machine_id}/customers","tags":["Billing time machines"],"x-pontive-capability":"billing"}},"/billing/time-machines/{time_machine_id}/end":{"post":{"description":"billing.timemachine.v1.TimeMachineService/EndTimeMachine (32-billing-overview.md, API Surface).","operationId":"EndTimeMachine","parameters":[{"description":"id","in":"path","name":"time_machine_id","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A TimeMachine object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/time-machines/{time_machine_id}/end","tags":["Billing time machines"],"x-pontive-capability":"billing"}},"/billing/usage/diagnostics":{"get":{"description":"billing.metering.v1.UsageService/GetUsageDiagnostics (33-metering.md, API Surface, Usage). Counts per meter: missing_property, non_numeric, missing_group_keys, late_duplicates, and not_entitled, the events the meter counts from Customers with no feature and no product on it at the event's time, accepted and billed as any other (billing-svc docs/questions.md, P109).","operationId":"GetUsageDiagnostics","parameters":[{"description":"A meter's mtr_ id or its key (api-route-review D55)","in":"query","name":"meter","required":true,"schema":{"type":"string"}},{"description":"customer_id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"to","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A UsageDiagnostics object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/usage/diagnostics","tags":["Billing usage"],"x-pontive-capability":"billing"}},"/billing/usage/events":{"get":{"description":"billing.metering.v1.UsageService/ListUsageEvents (33-metering.md, API Surface).","operationId":"ListUsageEvents","parameters":[{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Cursor: a next_cursor, to continue forward","in":"query","name":"after","schema":{"type":"string"}},{"description":"Cursor: a next_cursor, to read the page just before it","in":"query","name":"before","schema":{"type":"string"}},{"description":"customer_id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"event_type","in":"query","name":"event_type","schema":{"type":"string"}},{"description":"transaction_id","in":"query","name":"transaction_id","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"to","schema":{"type":"string"}},{"description":"status","in":"query","name":"status","schema":{"type":"string"}},{"description":"late","in":"query","name":"late","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.CursorList"}}},"description":"A list of UsageEvent objects, walked by cursor (api-route-review D41)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/usage/events","tags":["Billing usage"],"x-pontive-capability":"billing"}},"/billing/usage/late":{"get":{"description":"billing.metering.v1.UsageService/GetLateUsage (33-metering.md, API Surface).","operationId":"GetLateUsage","parameters":[{"description":"customer_id","in":"query","name":"customer_id","schema":{"type":"string"}},{"description":"A meter's mtr_ id or its key (api-route-review D55)","in":"query","name":"meter","schema":{"type":"string"}},{"description":"contract_id","in":"query","name":"contract_id","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"period_start","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"to","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A LateUsage object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/billing/usage/late","tags":["Billing usage"],"x-pontive-capability":"billing"}},"/billing/usage/search":{"post":{"description":"billing.metering.v1.UsageService/GetUsage (33-metering.md, API Surface). The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read.","operationId":"SearchUsage","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A UsageSeries object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/billing/usage/search","tags":["Billing usage"],"x-pontive-capability":"billing"}},"/branding/blueprints/{blueprint_id}":{"delete":{"description":"Delete a custom blueprint. Built-in blueprints cannot be deleted. Widgets already instantiated from it are unaffected — they belong to their flows. Returns 204 No Content on success.","operationId":"DeleteBlueprint","parameters":[{"description":"Blueprint ID","in":"path","name":"blueprint_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete blueprint","tags":["Blueprints"]}},"/branding/document":{"get":{"description":"The instance's branding as one branding/v1 document (api-route-review D47): the brand's published tokens and theme, the localization settings, the instance's own published widget definitions, the brand's per-widget layouts, styles and copy, the custom blueprints, and the files the brand uploaded, inlined so the document works in another instance. Only the published state is exported; drafts stay in the dashboard. Everything is named by a key, never an id, and the output is deterministic: two exports of the same state are byte-identical, and the ETag is the hash of the bytes. Send it as If-None-Match to get 304 when nothing changed. Import the document into another instance with POST /v1/branding/document/import. Needs sys:brand:read and sys:widget:read.","operationId":"GetBrandingDocument","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.BrandingDocument"}}},"description":"A branding/v1 document","headers":{"ETag":{"description":"The hash of the document's bytes, as a strong entity tag","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Export the branding document","tags":["Branding document"]}},"/branding/document/import":{"post":{"description":"Plans importing a branding/v1 document into this instance and, with dry_run false, applies the plan (api-route-review D47). The brand is replaced: its tokens, theme, localization settings and every per-widget customization take the document's values, and a customization the instance has and the document lacks is reset and listed as changed. Widget definitions and blueprints are merged by key: a new key is created, a differing one replaced (a published definition's markup never changes, so a different one is a conflict), and one the document lacks is listed as absent and left alone. Nothing is deleted. With publish true (the default) the import publishes one new branding version and the theme; with publish false it writes drafts for review in the dashboard. Re-importing an instance's own export plans every entry unchanged and writes nothing. The dry run's ETag fingerprints the instance's branding: send it as If-Match on the apply to be refused 412 precondition_failed if anything changed since. An apply with conflicts is 409 import_conflict, one detail per conflict, field <kind>.<key>.<field>, and applies nothing. A document the format refuses (not JSON, a member it does not define, a pontive_document it does not read) is 422 field_invalid_format; one over 5 MB is 422 field_too_long. X-Idempotency-Key makes an apply safe to retry; the same key with another request is 422 idempotency_key_reused. Needs sys:brand:manage and sys:widget:manage, and sys:settings:manage when the localization settings change.","operationId":"ImportBrandingDocument","parameters":[{"description":"The dry run's ETag: the apply is refused 412 precondition_failed if the instance's branding changed since","in":"header","name":"If-Match","schema":{"type":"string"}},{"description":"Idempotency key, read on an apply","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.ImportBrandingRequest","description":"The document and how to import it","summary":"request"}}},"description":"The document and how to import it","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_promotion_types.BrandingImportPlan"}}},"description":"OK","headers":{"ETag":{"description":"On a dry run, the fingerprint of the branding the plan read: send it as If-Match to apply exactly this plan (D42)","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_unclaimed: the instance is unclaimed; claim this instance to customize its branding (pontive-spec 47)"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"import_conflict: the plan has conflicts, one detail each; nothing was applied"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the branding changed since the dry run"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"field_invalid_format, field_too_long, missing_required_field or idempotency_key_reused"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Import a branding document","tags":["Branding document"]}},"/branding/localization":{"get":{"description":"Returns the instance's locale configuration. An instance that has never configured localization gets defaults rather than a 404. `enabled_locales` is what the OIDC discovery document advertises as `ui_locales_supported`.","operationId":"GetLocalizationSettings","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_localization_types.LocalizationSettings"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as a strong entity tag (\\\"3\\\"): send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get localization settings","tags":["Localization"]},"patch":{"description":"Partial update of the instance's locale configuration. Omitted fields are unchanged. The default locale is implicitly enabled and is never stored in `enabled_locales`.","operationId":"UpdateLocalizationSettings","parameters":[{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_localization_types.UpdateLocalizationSettingsRequest","description":"Update Localization Settings Request","summary":"request"}}},"description":"Update Localization Settings Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_localization_types.LocalizationSettings"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_unclaimed: the instance is unclaimed; claim this instance to change its localization (pontive-spec 47)"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update localization settings","tags":["Localization"]}},"/branding/pontkit":{"get":{"description":"The exact @pontive/pontkit-core release this instance loads: the deployment's, or the instance's operator-set override. This is the ONLY source clients use to decide which CDN bundle to load — resolving a version client-side would let a preview show a build production does not serve. Short-lived cache: a promotion takes effect without a deploy.","operationId":"GetPontkit","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_widget_types.PontkitReleaseResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get the pontkit release","tags":["Widgets"]}},"/capabilities/billing/disable":{"post":{"description":"billing.customer.v1.CapabilityService/DisableBillingCapability (32-billing-overview.md, API Surface, Capability, Enabling and disabling the capability). Needs instance:manage. Refused with capability_in_use while contracts, unsettled invoices or prepaid balances remain.","operationId":"DisableBillingCapability","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"{ capabilities: { fga, billing } }"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"capability_in_use"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/capabilities/billing/disable","tags":["Billing capability"]}},"/capabilities/billing/enable":{"post":{"description":"billing.customer.v1.CapabilityService/EnableBillingCapability (32-billing-overview.md, API Surface, Capability; 02b-instance-management.md, Capability toggle). Needs instance:manage. Answers the instance's capabilities after the change.","operationId":"EnableBillingCapability","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"{ capabilities: { fga, billing } }"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"capability_not_entitled"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/capabilities/billing/enable","tags":["Billing capability"]}},"/capabilities/fga/disable":{"post":{"description":"Turn off the instance's Fine-Grained Authorization capability. Refused with capability_in_use (409) while the instance has custom resource types.","operationId":"DisableFGA","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.CapabilitiesResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Turn off Fine-Grained Authorization","tags":["Capabilities"]}},"/capabilities/fga/enable":{"post":{"description":"Turn on the instance's Fine-Grained Authorization capability: custom resource types and everything built on them. Needs a Pontive user who may manage the instance.","operationId":"EnableFGA","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resourcetype_types.CapabilitiesResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Turn on Fine-Grained Authorization","tags":["Capabilities"]}},"/countries":{"get":{"description":"Every country Pontive accepts, for pickers: the ISO 3166-1 assigned codes and XK, each with its English name and its E.164 calling code (digits only, \"49\"; empty for the seven uninhabited territories that have none), sorted by name. Platform reference data from pontive-core's country package, the same list every service validates against (billing-svc docs/questions.md, P101). Static: cache it.","operationId":"ListCountries","parameters":[{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler.CountryList"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"}},"summary":"List countries","tags":["Reference data"]}},"/delegations":{"get":{"description":"Delegation grants, filtered by user, agent and organization (D23), each with its organization, scopes and expiry. Needs sys:delegation:read on the instance root.","operationId":"ListDelegations","parameters":[{"description":"The delegating user (usr_)","in":"query","name":"user_id","schema":{"type":"string"}},{"description":"The agent delegated to (agt_)","in":"query","name":"agent_id","schema":{"type":"string"}},{"description":"The organization the grant is bounded to","in":"query","name":"organization_id","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListDelegationsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List delegations","tags":["Delegations"]},"post":{"description":"Authorize an agent to act for a user (pontive-spec 20 C4): in one organization, where both the user is a member and the agent is installed, or with no organization_id at the instance root, which needs a root installation. Creating a grant the (user, agent, organization) already has replaces its scopes and expiry. The agent then exchanges the user's token, or this grant, for a token acting for the user — allowed only what the user and the agent both are. Needs sys:delegation:manage on the instance root. A token acting for its subject is refused (actor_refused): a delegation is an authority grant, the user's own to give.","operationId":"CreateDelegation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.CreateDelegationRequest","description":"User, agent, organization, scopes and expiry","summary":"request"}}},"description":"User, agent, organization, scopes and expiry","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Delegation"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"delegation_agent_not_installed, delegation_user_not_member, delegation_scope_invalid, delegation_expiry_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"actor_refused: a token acting for its subject cannot delegate"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"delegation_agent_inactive, delegation_user_inactive"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delegate to an agent","tags":["Delegations"]}},"/delegations/{delegation_id}":{"delete":{"description":"Delete a delegation grant: the agent's next exchange on it is refused, and a token it already exchanged stops being answered on Pontive's checks and listings at once. Needs sys:delegation:manage on the instance root.","operationId":"DeleteDelegation","parameters":[{"description":"Delegation ID (dlg_)","in":"path","name":"delegation_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Revoke a delegation","tags":["Delegations"]},"get":{"description":"One delegation grant. Needs sys:delegation:read on the instance root.","operationId":"GetDelegation","parameters":[{"description":"Delegation ID (dlg_)","in":"path","name":"delegation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Delegation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get a delegation","tags":["Delegations"]}},"/groups":{"get":{"description":"List the instance's groups, filtered by owner (D6, D15, D44): owner_type root lists the instance's own groups, org the organizations', a resource type key that type's resources'; owner_id narrows to one owner's. Neither lists every group.","operationId":"ListGroups","parameters":[{"description":"root, org, or the owning resource's type key","in":"query","name":"owner_type","schema":{"type":"string"}},{"description":"One owner's prefixed id: inst_, org_ or res_","in":"query","name":"owner_id","schema":{"type":"string"}},{"description":"Matches the name","in":"query","name":"search","schema":{"type":"string"}},{"description":"An identity provider's id for the group","in":"query","name":"external_id","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending. Allowed: created_at, updated_at, name. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.ListGroupsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"}},"summary":"List groups","tags":["Groups"]},"post":{"description":"Create a group, owned by the instance root, an organization or a resource (D5, D6, D44): owner_type is root (the default), org or the owning resource's type key, owner_id its prefixed id (org_, res_; for root the inst_ id or empty). An instance group (root) holds any of the instance's users and is granted roles only on the instance root and resources in no organization; an organization's is a set of its members granted on the organization or its resources; a resource's holds its organization's members and is granted only on the resource and the resources beneath it.","operationId":"CreateGroup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.CreateOwnedGroupRequest","description":"Group","summary":"request"}}},"description":"Group","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.Group"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"}},"summary":"Create a group","tags":["Groups"]}},"/groups/{group_id}":{"delete":{"description":"Delete a group with its members and grants. Its members lose what the group gave them.","operationId":"DeleteGroup","parameters":[{"description":"Group ID","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Delete a group","tags":["Groups"]},"get":{"operationId":"GetGroup","parameters":[{"description":"Group ID","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.Group"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Get a group","tags":["Groups"]},"patch":{"operationId":"UpdateGroup","parameters":[{"description":"Group ID","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.UpdateGroupRequest","description":"Changes","summary":"request"}}},"description":"Changes","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.Group"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"}},"summary":"Update a group","tags":["Groups"]}},"/groups/{group_id}/members":{"get":{"operationId":"ListGroupMembers","parameters":[{"description":"Group ID","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"Matches email and name","in":"query","name":"search","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.ListGroupMembersResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"}},"summary":"List a group's members","tags":["Groups"]},"post":{"description":"Add users to a group. Each must be a member of the group's organization (user_not_in_organization); one already in the group is left as they are.","operationId":"CreateGroupMembers","parameters":[{"description":"Group ID","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.AddGroupMembersRequest","description":"Users","summary":"request"}}},"description":"Users","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.AddGroupMembersResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Add members to a group","tags":["Groups"]}},"/groups/{group_id}/members/{user_id}":{"delete":{"operationId":"DeleteGroupMember","parameters":[{"description":"Group ID","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Remove a member from a group","tags":["Groups"]}},"/groups/{group_id}/roles":{"get":{"description":"List the roles a group holds, per resource","operationId":"ListGroupGrants","parameters":[{"description":"Group ID","in":"path","name":"group_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.ListGroupGrantsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"}},"summary":"List a group's roles","tags":["Groups"]},"put":{"description":"Replace the roles a group holds on one resource — its organization, or a resource of it (resource_not_in_organization) — with roles of that resource's type. No roles removes the grant.","operationId":"ReplaceGroupRoles","parameters":[{"description":"Group ID","in":"path","name":"group_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.SetGroupRolesRequest","description":"Grant","summary":"request"}}},"description":"Grant","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.GroupGrant"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Set a group's roles on a resource","tags":["Groups"]}},"/logs/audit":{"get":{"description":"The instance's audit log, newest first. Pass next_cursor as before to page back, or as after to poll for what committed since, oldest first. Needs sys:audit:read on the instance, or on the organization named by organization_id.","operationId":"ListAuditLogs","parameters":[{"description":"Action name, or a prefix such as pontive.secret_key.* (repeatable)","in":"query","name":"action","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Category (repeatable)","in":"query","name":"category","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"info, warning or high (repeatable)","in":"query","name":"severity","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"success, failure or denied (repeatable)","in":"query","name":"result","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Actor type","in":"query","name":"actor_type","schema":{"type":"string"}},{"description":"Actor id","in":"query","name":"actor_id","schema":{"type":"string"}},{"description":"The agent instance that acted (an agent actor's actor.instance)","in":"query","name":"actor_instance","schema":{"type":"string"}},{"description":"A delegator (usr_…): entries an actor wrote for them with a delegated token","in":"query","name":"on_behalf_of","schema":{"type":"string"}},{"description":"Credential id, such as a secret key's key_…","in":"query","name":"credential_id","schema":{"type":"string"}},{"description":"Id of any target","in":"query","name":"target_id","schema":{"type":"string"}},{"description":"An organization's entries (org_…)","in":"query","name":"organization_id","schema":{"type":"string"}},{"description":"Client IP address","in":"query","name":"ip_address","schema":{"type":"string"}},{"description":"Request id (req_…)","in":"query","name":"request_id","schema":{"type":"string"}},{"description":"An entity in any role: the actor, the credential or a target","in":"query","name":"subject","schema":{"type":"string"}},{"description":"RFC 3339: occurred at or after","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339: occurred before","in":"query","name":"to","schema":{"type":"string"}},{"description":"Cursor: entries committed after it, oldest first","in":"query","name":"after","schema":{"type":"string"}},{"description":"Cursor: older entries, newest first","in":"query","name":"before","schema":{"type":"string"}},{"description":"1–100, default 50","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_auditlog_types.ListResponseDoc"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"List audit log entries","tags":["AuditLogs"]}},"/logs/audit/{audit_log_entry_id}":{"get":{"description":"One audit_log_entry (pontive-spec 43 §4.1).","operationId":"GetAuditLog","parameters":[{"description":"Entry id (ale_…)","in":"path","name":"audit_log_entry_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_auditlog_types.AuditLogEntryDoc"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Get an audit log entry","tags":["AuditLogs"]}},"/logs/requests":{"get":{"description":"Every management-API call made against the instance, reads included, newest first. Needs sys:audit:read on the instance.","operationId":"ListRequestLogs","parameters":[{"description":"Actor type, such as agent","in":"query","name":"actor_type","schema":{"type":"string"}},{"description":"Actor id","in":"query","name":"actor_id","schema":{"type":"string"}},{"description":"The agent instance that made the request (an agent actor's actor.instance)","in":"query","name":"actor_instance","schema":{"type":"string"}},{"description":"A delegator (usr_…): requests an actor made for them with a delegated token","in":"query","name":"on_behalf_of","schema":{"type":"string"}},{"description":"Credential id, such as a secret key's key_…","in":"query","name":"credential_id","schema":{"type":"string"}},{"description":"GET, POST, PUT, PATCH or DELETE (repeatable)","in":"query","name":"method","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"2xx, 3xx, 4xx or 5xx (repeatable)","in":"query","name":"status_class","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Client IP address","in":"query","name":"ip_address","schema":{"type":"string"}},{"description":"Route pattern, as recorded (/v1/users/{identifier})","in":"query","name":"route","schema":{"type":"string"}},{"description":"RFC 3339: occurred at or after","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339: occurred before","in":"query","name":"to","schema":{"type":"string"}},{"description":"Cursor: entries committed after it, oldest first","in":"query","name":"after","schema":{"type":"string"}},{"description":"Cursor: older entries, newest first","in":"query","name":"before","schema":{"type":"string"}},{"description":"1–100, default 50","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_auditlog_types.ListResponseDoc"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"List request log entries","tags":["AuditLogs"]}},"/logs/requests/{request_id}":{"get":{"description":"One request_log_entry (pontive-spec 43 §4.6), by the request id returned in X-Request-ID.","operationId":"GetRequestLog","parameters":[{"description":"Request id (req_…)","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_auditlog_types.RequestLogEntryDoc"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Get a request log entry","tags":["AuditLogs"]}},"/me":{"delete":{"description":"Delete the currently authenticated user An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:manage; the app's own access token is refused 403 (D48).","operationId":"DeleteCurrentUser","responses":{"204":{"description":"User deleted successfully"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete current user","tags":["Me"]},"get":{"description":"Get the currently authenticated user's profile An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:read; the app's own access token is refused 403 (D48).","operationId":"GetCurrentUser","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_me_types.CurrentUser"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get current user","tags":["Me"]},"patch":{"description":"Update the currently authenticated user's profile (partial update) An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:manage; the app's own access token is refused 403 (D48).","operationId":"UpdateCurrentUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_me_types.UpdateCurrentUserRequest","description":"Update User Request","summary":"request"}}},"description":"Update User Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_me_types.CurrentUser"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update current user","tags":["Me"]},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/balances":{"get":{"description":"billing.ledger.v1.MeLedgerService/ListMyBalances (36-credits-ledger.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"ListMyBalances","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"unit","in":"query","name":"unit","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Balance objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/balances","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/checkout-sessions":{"post":{"description":"billing.contract.v1.MeContractService/CreateMyCheckoutSession (35-contracts.md, End-customer portal and API Surface). The body is { subject?, packages, success_url, cancel_url }. billing-svc checks both URLs against the browser's Origin, which the gateway passes in the request context, and refuses a request without one (35-contracts.md, Checkout; billing-svc docs/questions.md, P71). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"CreateMyCheckoutSession","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A MyCheckoutSession object, object checkout_session"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/me/billing/checkout-sessions","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/checkout-sessions/{checkout_session_id}":{"get":{"description":"billing.contract.v1.MeContractService/GetMyCheckoutSession (35-contracts.md, End-customer portal and API Surface). Under pontive:billing:pay, the scope the checkout element holds (41-embedded-organization-management.md, section 5.1). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"GetMyCheckoutSession","parameters":[{"description":"id","in":"path","name":"checkout_session_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A MyCheckoutSession object, object checkout_session"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/checkout-sessions/{checkout_session_id}","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/checkout-sessions/{checkout_session_id}/confirm":{"post":{"description":"billing.contract.v1.MeContractService/ConfirmMyCheckoutSession (35-contracts.md, End-customer portal and API Surface). The body is { package, billing_frequency, billing_address?, tax_id?, promotion_code? }, package a pkg_ id or the package's key (api-route-review D55). The answer carries a client secret: no log or span holds the response body (billing-svc docs/m17-design.md, R8). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"ConfirmMyCheckoutSession","parameters":[{"description":"id","in":"path","name":"checkout_session_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The ConfirmMyCheckoutSessionResponse fields: outcome, contract_id, invoice_id, payment_id, client_secret, intent_type, decline_message and keys"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/me/billing/checkout-sessions/{checkout_session_id}/confirm","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/checkout-sessions/{checkout_session_id}/preview":{"post":{"description":"billing.contract.v1.MeContractService/PreviewMyCheckoutSession (35-contracts.md, End-customer portal and API Surface). The body is confirm's (P65). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48). The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read.","operationId":"PreviewMyCheckoutSession","parameters":[{"description":"id","in":"path","name":"checkout_session_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The first Invoice as it would be; nothing is saved"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/me/billing/checkout-sessions/{checkout_session_id}/preview","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/contracts":{"get":{"description":"billing.contract.v1.MeContractService/ListMyContracts (35-contracts.md, End-customer portal and API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"ListMyContracts","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of MyContract objects, object contract, with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/contracts","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/contracts/{contract_id}/cancel":{"post":{"description":"billing.contract.v1.MeContractService/CancelMyContract (35-contracts.md, End-customer portal and API Surface). The body is { reason? }. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"CancelMyContract","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A MyContract object, object contract"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/me/billing/contracts/{contract_id}/cancel","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/contracts/{contract_id}/change-package":{"post":{"description":"billing.contract.v1.MeContractService/ChangeMyContract (35-contracts.md, End-customer portal and API Surface). The body is the preview's, with its preview_hash; preview_stale when the preview changed. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"ChangeMyContractPackage","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A MyContract object, object contract"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/me/billing/contracts/{contract_id}/change-package","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/contracts/{contract_id}/change-package/preview":{"post":{"description":"billing.contract.v1.MeContractService/PreviewMyContractChange (35-contracts.md, End-customer portal and API Surface). The body is { package, billing_frequency? } or { quantity, subscription_id? }. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48). The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read.","operationId":"PreviewMyContractChange","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The PreviewMyContractChangeResponse fields: contract, invoices, upcoming_invoice and preview_hash"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/me/billing/contracts/{contract_id}/change-package/preview","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/contracts/{contract_id}/edits/{edit_id}":{"delete":{"description":"billing.contract.v1.MeContractService/DeleteMyContractEdit (35-contracts.md, Package changes and End-customer portal; billing-svc P124). Cancels the contract's pending change, a scheduled downgrade, by deleting its edit: edit_id is the contract's pending_change.edit_id, and any other edit is not_found. Only a change the end customer asked for, pending_change.initiated_by customer, may be cancelled here; one the client made is change_not_allowed. billing.contract.edit_cancelled is written as for DELETE /v1/billing/contracts/{contract_id}/edits/{edit_id}. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"DeleteMyContractEdit","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"edit_id: the contract's pending_change.edit_id","in":"path","name":"edit_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"DELETE /v1/me/billing/contracts/{contract_id}/edits/{edit_id}","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/contracts/{contract_id}/revoke-cancellation":{"post":{"description":"billing.contract.v1.MeContractService/RevokeMyContractCancellation (35-contracts.md, End-customer portal and API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"RevokeMyContractCancellation","parameters":[{"description":"id","in":"path","name":"contract_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A MyContract object, object contract"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/me/billing/contracts/{contract_id}/revoke-cancellation","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/credit-notes":{"get":{"description":"billing.invoice.v1.MeInvoiceService/ListMyCreditNotes (37-invoicing.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"ListMyCreditNotes","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of CreditNote objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/credit-notes","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/credit-notes/{credit_note_id}/pdf":{"get":{"description":"billing.invoice.v1.MeInvoiceService/GetMyCreditNotePdf (37-invoicing.md, API Surface). The credit note's PDF as a download, not an envelope: Content-Type application/pdf and Content-Disposition attachment with the file name billing-svc gives. A voided credit note's is the VOID rendition. Another Customer's credit note is credit_note_not_found. Needs a token for the instance's me audience with pontive:billing:read.","operationId":"GetMyCreditNotePdf","parameters":[{"description":"id","in":"path","name":"credit_note_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"file"}},"application/pdf":{"schema":{"type":"file"}}},"description":"The PDF"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/credit-notes/{credit_note_id}/pdf","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/customer":{"patch":{"description":"billing.payment.v1.MePaymentService/SetMyDefaultPaymentMethod (38-payments-and-tax.md, API Surface; api-route-review D38). The caller's Customer, or the subject's it names: default_payment_method_id, one of its payment methods, becomes its default. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"UpdateMyCustomer","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The default PaymentMethod object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"PATCH /v1/me/billing/customer","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/customers":{"get":{"description":"billing.customer.v1.MeCustomerService/ListMyCustomers (32-billing-overview.md, End-customer surface). The caller's own user Customer, the token's organization's where they hold a billing key, and the suspended or closed organizations they own and may recover (P79, P122), each with what the caller may do there: recovery marks those, and closed marks one its client closed, where only paying and the payment method are open. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"ListMyCustomers","parameters":[{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of MyCustomer objects, object customer, without pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/customers","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/entitlements":{"get":{"description":"billing.entitlement.v1.MeEntitlementService/ListMyEntitlements (39-entitlements-and-controls.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"GetMyEntitlements","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An EntitlementSet object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/entitlements","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/invoices":{"get":{"description":"billing.invoice.v1.MeInvoiceService/ListMyInvoices (37-invoicing.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"ListMyInvoices","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"status","in":"query","name":"status","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Invoice objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/invoices","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/invoices/upcoming":{"get":{"description":"billing.invoice.v1.MeInvoiceService/GetMyUpcomingInvoice (37-invoicing.md, API Surface). The upcoming invoice of the contract in force; invoice_not_found when there is none. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"GetMyUpcomingInvoice","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/invoices/upcoming","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/invoices/{invoice_id}":{"get":{"description":"billing.invoice.v1.MeInvoiceService/GetMyInvoice (37-invoicing.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"GetMyInvoice","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"An Invoice object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/invoices/{invoice_id}","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/invoices/{invoice_id}/pay":{"post":{"description":"billing.payment.v1.MePaymentService/PayMyInvoice (38-payments-and-tax.md, API Surface). The body is { method }, saved or new. The answer carries a client secret: no log or span holds the response body (billing-svc docs/m17-design.md, R8). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"PayMyInvoice","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The PayMyInvoiceResponse fields: outcome, payment_id, client_secret, intent_type, decline_message and keys"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/me/billing/invoices/{invoice_id}/pay","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/invoices/{invoice_id}/pdf":{"get":{"description":"billing.invoice.v1.MeInvoiceService/GetMyInvoicePdf (37-invoicing.md, API Surface). The invoice's PDF as a download, not an envelope: Content-Type application/pdf and Content-Disposition attachment with the file name billing-svc gives. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"GetMyInvoicePdf","parameters":[{"description":"id","in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"file"}},"application/pdf":{"schema":{"type":"file"}}},"description":"The PDF"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/invoices/{invoice_id}/pdf","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/ledger-entries":{"get":{"description":"billing.ledger.v1.MeLedgerService/ListMyLedgerEntries (36-credits-ledger.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"ListMyLedgerEntries","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Cursor: a next_cursor, to continue forward","in":"query","name":"after","schema":{"type":"string"}},{"description":"Cursor: a next_cursor, to read the page just before it","in":"query","name":"before","schema":{"type":"string"}},{"description":"type","in":"query","name":"type","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"to","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.CursorList"}}},"description":"A list of LedgerEntry objects, walked by cursor (api-route-review D41)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/ledger-entries","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/payment-method-session":{"post":{"description":"billing.payment.v1.MePaymentService/CreateMyPaymentMethodSession (38-payments-and-tax.md, API Surface). The body is { mode?, return_url? }. The answer carries a client secret: no log or span holds the response body (billing-svc docs/m17-design.md, R8). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"CreateMyPaymentMethodSession","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A PaymentMethodSession object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/me/billing/payment-method-session","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/payment-methods":{"get":{"description":"billing.payment.v1.MePaymentService/ListMyPaymentMethods (38-payments-and-tax.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"ListMyPaymentMethods","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of PaymentMethod objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/payment-methods","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/payment-methods/{payment_method_id}":{"delete":{"description":"billing.payment.v1.MePaymentService/RemoveMyPaymentMethod (38-payments-and-tax.md, API Surface). {id} is the spec's {pm}. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).","operationId":"DeleteMyPaymentMethod","parameters":[{"description":"id","in":"path","name":"payment_method_id","required":true,"schema":{"type":"string"}},{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The removed PaymentMethod object, with warnings"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"DELETE /v1/me/billing/payment-methods/{payment_method_id}","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/payments":{"get":{"description":"billing.payment.v1.MePaymentService/ListMyPayments (38-payments-and-tax.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"ListMyPayments","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"Page number, from 1","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100, default 25","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.List"}}},"description":"A list of Payment objects with pagination"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/payments","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/billing/usage":{"get":{"description":"billing.metering.v1.MeUsageService/GetMyUsage (33-metering.md, API Surface). The same parameters as GET /v1/usage, for the caller's Customer. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).","operationId":"GetMyUsage","parameters":[{"description":"user or organization: the subject whose Customer to act for; with subject_id","in":"query","name":"subject_type","schema":{"type":"string"}},{"description":"the subject's id, usr_ or org_; with subject_type","in":"query","name":"subject_id","schema":{"type":"string"}},{"description":"A mtr_ id or a meter key; named without _id because it takes either (route review D1)","in":"query","name":"meter","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339 time","in":"query","name":"to","schema":{"type":"string"}},{"description":"granularity","in":"query","name":"granularity","schema":{"type":"string"}},{"description":"group_by, repeated or comma separated","in":"query","name":"group_by","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A UsageSeries object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"GET /v1/me/billing/usage","tags":["Billing for the end customer"],"x-pontive-capability":"billing"},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/delegations":{"get":{"description":"The signed-in user's own delegation grants (D31): which agents they let act for them, in which organization, with which scopes and until when. Filter by agent_id or organization_id. Needs no permission: identity-svc answers a user for their own grants. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:read; the app's own access token is refused 403 (D48).","operationId":"ListMyDelegations","parameters":[{"description":"The agent delegated to (agt_)","in":"query","name":"agent_id","schema":{"type":"string"}},{"description":"The organization the grant is bounded to","in":"query","name":"organization_id","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListDelegationsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List my delegations","tags":["Me"]},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/delegations/{delegation_id}":{"delete":{"description":"The signed-in user revokes one of their own delegation grants (D31): the agent's next exchange on it is refused, and a token it already exchanged stops being answered on Pontive's checks and listings at once. Another user's grant is 404, the same as none. A token acting for the user (an agent's) is refused (actor_refused): a delegation is the user's own to take back. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:manage; the app's own access token is refused 403 (D48).","operationId":"DeleteMyDelegation","parameters":[{"description":"Delegation ID (dlg_)","in":"path","name":"delegation_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"actor_refused: a token acting for the user cannot revoke"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Revoke my delegation","tags":["Me"]},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/memberships":{"get":{"description":"The signed-in user's own memberships across every container kind — the instance root, organizations and resources (D4, D31) — each left with POST /me/memberships/{container_id}/leave. resource_type narrows them to one kind of container (root, org or a custom type key, D44). Each carries its container's name and, when the caller may read the container, its external_id. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:read; the app's own access token is refused 403 (D48).","operationId":"ListMyMemberships","parameters":[{"description":"Only the memberships on containers of this type: root, org or a custom type key (D44)","in":"query","name":"resource_type","schema":{"type":"string"}},{"description":"Only the memberships on this organization's resources, at any depth","in":"query","name":"organization_id","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.ListUserMembershipsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List my memberships","tags":["Me"]},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/me/memberships/{container_id}/leave":{"post":{"description":"Remove the current (authenticated) user's own membership of a container (api-route-review D38): the prefixed id names it — an organization (org_), or a resource (res_) whose type lets members leave. Refused 403 leave_disabled when the organization's settings or the resource's type do not let members leave. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:me:manage; the app's own access token is refused 403 (D48).","operationId":"LeaveMembership","parameters":[{"description":"The organization (org_) or resource (res_) left","in":"path","name":"container_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"LeaveOrganizationResponse or LeaveResourceResponse"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Leave a membership","tags":["Me"]},"servers":[{"description":"The instance's auth domain: the caller's own instance, named by its host","url":"https://{auth_domain}/v1","variables":{"auth_domain":{"default":"example.auth.us.pontive.app","description":"Your instance's auth domain: its custom domain, or the <slug>.auth.<region>.pontive.app Pontive gives it"}}}]},"/organizations":{"get":{"description":"Retrieve a paginated list of organizations. Filter by status, external_id, and search query.","operationId":"ListOrganizations","parameters":[{"description":"Filter by the organization's own status (active, suspended)","in":"query","name":"status","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, slug, status. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Search query","in":"query","name":"search","schema":{"type":"string"}},{"description":"Exact match on the id the caller gave the organization","in":"query","name":"external_id","schema":{"type":"string"}},{"description":"Exact match on the slug: finds an organization by it (D17)","in":"query","name":"slug","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.ListOrganizationsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List organizations","tags":["Organizations"]},"post":{"description":"Create a new organization. Organizations are the customer-facing tenant, and flat: structure below one is modelled as resources that belong to it. The slug (supplied, or generated from the name) is immutable once created; one another organization in the instance holds is refused with 409 slug_conflict, never suffixed.","operationId":"CreateOrganization","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.CreateOrganizationRequest","description":"Organization creation details","summary":"request"}}},"description":"Organization creation details","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Organization"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create organization","tags":["Organizations"]}},"/organizations/external_id/{external_id}":{"get":{"description":"Retrieve the organization the caller gave this external id when creating or updating it: an exact match on the instance-unique external_id. Answers the organization or 404. Percent-encode the value.","operationId":"GetOrganizationByExternalId","parameters":[{"description":"The id the caller gave the organization","in":"path","name":"external_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Organization"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get organization by external id","tags":["Organizations"]}},"/organizations/import":{"post":{"description":"Apply, or with dry_run (default true) plan, a batch of at most 100 organizations and 1,000 member entries under an import run, after their users (pontive-spec 46 §5.3). external_id is each row's key. A member names its user by exactly one of user_id, user_external_id or legacy_subject (the run's source), with roles of the org type; one that names no user fails as a warning on the row, not the organization. A new organization needs at least one resolved member with owner (owners_required). An existing one (same external_id) takes new members and, with on_existing update, its name, metadata and changed roles; its owners change by transfer, never by import (owner_requires_transfer). An organization larger than one batch is sent again with its next members. A b2c instance refuses the call (tenancy_mode_b2c). Needs sys:org:create on the instance root, and sys:member:manage on each existing organization the batch changes.","operationId":"ImportOrganizations","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ImportOrganizationsRequest","description":"Batch","summary":"request"}}},"description":"Batch","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UserImportBatch"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"user_import_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"user_import_reverted, tenancy_mode_b2c"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"too_many_records"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Import organizations","tags":["UserImports"]}},"/organizations/settings":{"get":{"description":"The instance-wide policy that applies to every organization: whether members may leave, the roles given on joining, and how long an invitation stays open","operationId":"GetOrganizationSettings","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organizationsetting_types.OrganizationSettingsResponse"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as its entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get organization settings","tags":["Organizations"]},"patch":{"description":"Change the instance-wide organization policy. Omitted fields are left as they are","operationId":"UpdateOrganizationSettings","parameters":[{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organizationsetting_types.UpdateOrganizationSettingsRequest","description":"Fields to change","summary":"request"}}},"description":"Fields to change","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organizationsetting_types.OrganizationSettingsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update organization settings","tags":["Organizations"]}},"/organizations/{organization}":{"delete":{"description":"Permanently delete an organization together with its memberships, invitations, owned service accounts, instance-scoped roles and organization-scoped credentials (revoked), and the resources that belong to it. There is no restore.","operationId":"DeleteOrganization","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete organization","tags":["Organizations"]},"get":{"description":"Retrieve one organization by its id or its slug. A value in the id form (org_ and 26 base32 characters) is read as the id; anything else as the slug, which needs sys:org:read to resolve. Every route under /organizations/{organization} takes either.","operationId":"GetOrganization","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Organization"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get organization","tags":["Organizations"]},"patch":{"description":"Partially update an organization. Only provided fields are changed. The slug is immutable after creation and cannot be updated.","operationId":"UpdateOrganization","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.UpdateOrganizationRequest","description":"Fields to update","summary":"request"}}},"description":"Fields to update","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Organization"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update organization","tags":["Organizations"]}},"/organizations/{organization}/agent-activity":{"get":{"description":"What agents did in the organization (pontive-spec 20 G2, G3): its audit entries whose actor is an agent, on its own installation or acting for a member with a delegated token (on_behalf_of names the member), newest first. Filter by actor_id (an agt_…) and on_behalf_of (a usr_…). The view an organization's owners and admins read from the embedded agent-management element, with pontive:org:agent:read; audit-svc decides it with sys:audit:read on the organization, which they hold.","operationId":"ListOrganizationAgentActivity","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Action name, or a prefix such as pontive.member.* (repeatable)","in":"query","name":"action","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"One agent (agt_…)","in":"query","name":"actor_id","schema":{"type":"string"}},{"description":"The agent instance that acted (an agent actor's actor.instance)","in":"query","name":"actor_instance","schema":{"type":"string"}},{"description":"A member (usr_…): what agents did for them with a delegated token","in":"query","name":"on_behalf_of","schema":{"type":"string"}},{"description":"RFC 3339: occurred at or after","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339: occurred before","in":"query","name":"to","schema":{"type":"string"}},{"description":"Cursor: entries committed after it, oldest first","in":"query","name":"after","schema":{"type":"string"}},{"description":"Cursor: older entries, newest first","in":"query","name":"before","schema":{"type":"string"}},{"description":"1–100, default 50","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_auditlog_types.ListResponseDoc"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"List the agent activity in an organization","tags":["AuditLogs"]}},"/organizations/{organization}/agent-installations":{"get":{"description":"The agents installed on the organization and on each of its resources (pontive-spec 20 G2, D21), with their approved roles, pending approvals and status; filterable by agent, resource and status. Needs sys:agent:read on the organization; an organization's owners and admins hold it, and an end user's token with pontive:org:agent:read reaches it for their own organization.","operationId":"ListOrganizationAgentInstallations","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"One agent's installations (agt_)","in":"query","name":"agent_id","schema":{"type":"string"}},{"description":"The installations on one of the organization's resources (res_)","in":"query","name":"resource_id","schema":{"type":"string"}},{"description":"active or suspended","in":"query","name":"status","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListInstallationsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List every agent installation in the organization","tags":["Agents"]},"post":{"description":"Install an agent in the organization — on the organization itself, or on the resource resource_id names, which must be the organization's (D21) — with roles approved: any of those it requests for the target's type, or none (sys:agent:install on the organization, or on the root). The roles are also held to what the caller could grant there. With delegated_only true, the roles act only as the agent's side of a delegation: a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token holds none of them.","operationId":"CreateOrganizationAgentInstallation","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.InstallRequest","description":"Agent and approved roles","summary":"request"}}},"description":"Agent and approved roles","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_role_not_requested"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_not_offered, agent_wrong_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_already_installed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Install an agent on the organization","tags":["Agents"]}},"/organizations/{organization}/agent-installations/{installation_id}":{"delete":{"description":"Delete the installation. The agent's next token request for the organization is refused; a token already issued lives out its lifetime.","operationId":"DeleteOrganizationAgentInstallation","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Uninstall an agent from the organization","tags":["Agents"]},"get":{"description":"One installation in the organization — on the organization or one of its resources — with its pending approval (D21). 404 for an installation in another organization or in none.","operationId":"GetOrganizationAgentInstallation","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get an agent's installation on the organization","tags":["Agents"]},"patch":{"description":"Replace the roles approved for the agent on the organization, within what it requests (sys:agent:install on the organization, or on the root). delegated_only, when present, turns delegation-only on or off.","operationId":"UpdateOrganizationAgentInstallation","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.UpdateInstallationRequest","description":"Approved roles","summary":"request"}}},"description":"Approved roles","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_role_not_requested"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Change an agent's roles on the organization","tags":["Agents"]}},"/organizations/{organization}/agent-installations/{installation_id}/approve":{"post":{"description":"Approve the agent's requested roles up to version, after the installation's approved_version and at most the agent's; roles are the approved roles from now on — typically what it holds plus pending_roles (sys:agent:install on the organization, or on the root).","operationId":"ApproveOrganizationAgentInstallation","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ApproveInstallationRequest","description":"Version and approved roles","summary":"request"}}},"description":"Version and approved roles","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_role_not_requested, agent_version_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Approve an agent's requested roles on the organization","tags":["Agents"]}},"/organizations/{organization}/agent-installations/{installation_id}/decline":{"post":{"description":"Mark version seen without adding its roles; the installation keeps working with the roles it has.","operationId":"DeclineOrganizationAgentInstallation","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.DeclineInstallationRequest","description":"Version","summary":"request"}}},"description":"Version","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_version_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Decline an agent's requested roles on the organization","tags":["Agents"]}},"/organizations/{organization}/agent-installations/{installation_id}/resume":{"post":{"description":"Lift an admin's suspension. An installation suspended for another cause (the agent deactivated, the organization suspended or not offered) stays suspended until that ends.","operationId":"ResumeOrganizationAgentInstallation","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Resume an agent on the organization","tags":["Agents"]}},"/organizations/{organization}/agent-installations/{installation_id}/suspend":{"post":{"description":"Suspend the installation: its roles are withdrawn and the agent's tokens for the organization refused until it is resumed.","operationId":"SuspendOrganizationAgentInstallation","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Suspend an agent on the organization","tags":["Agents"]}},"/organizations/{organization}/agents":{"get":{"description":"The organization's agents page (pontive-spec 45 §13; api-route-review D43): every agent installed in it, offered to it, or its own, each with its installation there or null. relation narrows it, repeated for any of several: installed (an installation here), offered (an instance agent offered to the organization, installed or not), own (defined by the organization). Organization-scoped tokens with pontive:org:agent:read reach it.","operationId":"ListOrganizationAgents","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"installed, offered or own","in":"query","name":"relation","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListOrganizationAgentsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List an organization's agents","tags":["Agents"]}},"/organizations/{organization}/assignable-roles":{"get":{"description":"List the roles a member of the organization can be given, each marked with whether the caller may grant or remove it on a member other than themselves (assignable_by_caller) and whether doing so hands the organization over, which needs sys:org:transfer (requires_transfer). Decided on sys:member:read on the organization, so an organization's own administrators can read it; the roles of the org resource type, and the organization's own. Not paginated.","operationId":"ListAssignableRoles","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.ListAssignableRolesResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List assignable roles","tags":["Organizations"]}},"/organizations/{organization}/audit-logs":{"get":{"description":"The entries that belong to one organization: the view its admins read with sys:audit:read on the organization. Same filters and cursors as GET /audit-logs.","operationId":"ListOrganizationAuditLogs","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Action name, or a prefix such as pontive.member.* (repeatable)","in":"query","name":"action","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"info, warning or high (repeatable)","in":"query","name":"severity","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Actor id","in":"query","name":"actor_id","schema":{"type":"string"}},{"description":"The agent instance that acted (an agent actor's actor.instance)","in":"query","name":"actor_instance","schema":{"type":"string"}},{"description":"A delegator (usr_…): entries an actor wrote for them with a delegated token","in":"query","name":"on_behalf_of","schema":{"type":"string"}},{"description":"Id of any target","in":"query","name":"target_id","schema":{"type":"string"}},{"description":"RFC 3339: occurred at or after","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339: occurred before","in":"query","name":"to","schema":{"type":"string"}},{"description":"Cursor: entries committed after it, oldest first","in":"query","name":"after","schema":{"type":"string"}},{"description":"Cursor: older entries, newest first","in":"query","name":"before","schema":{"type":"string"}},{"description":"1–100, default 50","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_auditlog_types.ListResponseDoc"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"List an organization's audit log entries","tags":["AuditLogs"]}},"/organizations/{organization}/client-policy":{"get":{"description":"Which of the clients the instance admits may act in the organization (pontive-spec 20 G2). mode all admits every client the instance admits but those the block-list names; allowlist admits only the third-party apps the allow-list names. The block-list always wins, and governs agents too. The instance's third-party client setting is the ceiling: third_party_in_organizations false means its client profile gives third-party apps no organization context at all. An organization that never set its policy reads the default, with updated_at null. Needs sys:agent:read on the organization.","operationId":"GetOrganizationClientPolicy","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.OrganizationClientPolicy"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as its entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get the organization's client policy","tags":["ThirdPartyClients"]},"patch":{"description":"Replace the organization's client policy whole (pontive-spec 20 G2). An entry is an app id (app_…), an agent id (agt_…), an exact CIMD client_id URL, or https://host/*, at most 100 per list. A blocked or not-allowed third-party app is refused when the organization is chosen at /authorize (an error page, never a redirect), when consent would be given for it, at code exchange and at refresh; a blocked agent's token exchange in the organization is refused. The organization can only narrow what the instance admits. Needs sys:agent:install on the organization.","operationId":"UpdateOrganizationClientPolicy","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.SetOrganizationClientPolicyRequest","description":"The policy","summary":"request"}}},"description":"The policy","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.OrganizationClientPolicy"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"organization_client_policy_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Set the organization's client policy","tags":["ThirdPartyClients"]}},"/organizations/{organization}/delegations":{"get":{"description":"The delegation grants in the organization: which users let which agents act for them there. Needs sys:agent:read on the organization (pontive-spec 20 G2): its owners and admins hold it, an instance administrator through inheritance, and an end user's token with pontive:org:agent:read reaches it for their own organization.","operationId":"ListOrganizationDelegations","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListDelegationsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List an organization's delegations","tags":["Delegations"]}},"/organizations/{organization}/delegations/{delegation_id}":{"delete":{"description":"An organization administrator revokes a delegation grant in their organization (pontive-spec 20 G2, C4): the agent's next exchange on it is refused, and a token it already exchanged stops being answered on Pontive's checks and listings at once. 404 for a grant in another organization or in none. Needs sys:agent:install on the organization.","operationId":"DeleteOrganizationDelegation","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Delegation ID (dlg_)","in":"path","name":"delegation_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Revoke a delegation in the organization","tags":["Delegations"]}},"/organizations/{organization}/group-roles":{"get":{"description":"The groups holding roles on an organization itself, each with its roles there (api-route-review D43). A group holding roles only on the organization's resources is not listed; the groups the organization owns are GET /groups?owner_type=org&owner_id=….","operationId":"ListOrganizationGroupRoles","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.ListGroupGrantsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"}},"summary":"List the groups holding roles on an organization","tags":["Groups"]}},"/organizations/{organization}/invitations":{"get":{"description":"Get a list of invitations for an organization with pagination and filtering","operationId":"ListOrganizationInvitations","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Filter by invitation roles","in":"query","name":"roles","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filter by invitees email","in":"query","name":"invitee_emails","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filter by inviter user ID","in":"query","name":"invited_by","schema":{"type":"string"}},{"description":"Only the invitations to this resource","in":"query","name":"resource_id","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Search by invitation email or invitee email","in":"query","name":"search","schema":{"type":"string"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, expires_at, last_sent_at, status. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.ListInvitationsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List invitations","tags":["Organizations"]},"post":{"description":"Invite multiple members to an organization, or to one of its resources (resource_id with resource_roles). Invitees to a resource who are not organization members join the organization too. Addresses are matched case-insensitively. An address that is already a member of the target is skipped and listed in skipped rather than failing the request. An address that already holds a pending, unexpired invitation to the target has that invitation reissued with this request's roles, a fresh expiry and a new link, instead of a second one sent. Inviting someone as the organization's owner needs sys:org:transfer, refused 403 owner_transfer_required. 200 when every address was skipped, 201 when any invitation was sent.","operationId":"CreateOrganizationInvitations","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.InviteMembersRequest","description":"Invite members payload","summary":"request"}}},"description":"Invite members payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.InvitationResult"}}},"description":"OK"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.InvitationResult"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Invite members","tags":["Organizations"]}},"/organizations/{organization}/invitations/{invitation_id}":{"delete":{"description":"Withdraw an invitation: it is deleted, and its link stops working. An invitation exists only while it is open — accepting one deletes it too, and an expired one is purged.","operationId":"DeleteOrganizationInvitation","parameters":[{"description":"Invitation ID","in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}},{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Email the invitee that the invitation was withdrawn","in":"query","name":"notify_invitee","schema":{"type":"boolean"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Delete invitation","tags":["Organizations"]},"get":{"description":"Get invitation by ID","operationId":"GetOrganizationInvitation","parameters":[{"description":"Invitation ID","in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}},{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.Invitation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Get invitation","tags":["Organizations"]}},"/organizations/{organization}/invitations/{invitation_id}/resend":{"post":{"description":"Resend an invitation","operationId":"ResendOrganizationInvitation","parameters":[{"description":"Invitation ID","in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}},{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.ResendInvitationRequest","description":"Resend Invitation payload","summary":"request"}}},"description":"Resend Invitation payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.Invitation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Resend invitation","tags":["Organizations"]}},"/organizations/{organization}/member-limits/{source}":{"delete":{"description":"Remove one source's member limit from an organization. The lowest limit left, if any, is then in force. Removing a limit that is not set changes nothing and succeeds. While the instance's billing capability is on, the billing limit is managed by billing: removing it here is refused with 403, an instance admin included. With the capability off, an instance admin may remove it. If the capability cannot be read, a billing write is refused with 503.","operationId":"DeleteOrganizationMemberLimit","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Who set the limit","in":"path","name":"source","required":true,"schema":{"enum":["manual","billing"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Organization"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Remove a member limit","tags":["Organizations"]},"put":{"description":"Set one source's member limit on an organization, 0 or more. source is manual (an instance admin or the client's backend) or billing (Pontive billing). While the instance's billing capability is on, the billing limit is managed by billing: setting it here is refused with 403, an instance admin included, and a manual limit may still be set, since the lowest limit wins. With the capability off, an instance admin may set it. If the capability cannot be read, a billing write is refused with 503. The lowest limit set is in force, as member_limit. A write that would add a member past it is refused with 409 seat_limit_reached. Lowering a limit below the current number of members blocks new members and removes no one. Pontive billing does not call this route: it writes its limit to identity-svc over gRPC with its system credential.","operationId":"ReplaceOrganizationMemberLimit","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Who sets the limit","in":"path","name":"source","required":true,"schema":{"enum":["manual","billing"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.SetMemberLimitRequest","description":"The limit","summary":"request"}}},"description":"The limit","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Organization"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Set a member limit","tags":["Organizations"]}},"/organizations/{organization}/members":{"get":{"description":"List members of an organization with pagination and filtering","operationId":"ListOrganizationMembers","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Filter by user IDs","in":"query","name":"user_ids","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filter by emails","in":"query","name":"emails","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filter by roles","in":"query","name":"roles","schema":{"items":{"type":"string"},"type":"array"}},{"description":"search query","in":"query","name":"search","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, joined_at, email. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.ListMembersResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List organization members","tags":["Organizations"]},"post":{"description":"Add a user as a member of an organization. Adding them as owner needs sys:org:transfer, refused 403 owner_transfer_required. Adding one past the organization's member limit is refused 409 seat_limit_reached, and nothing is written.","operationId":"CreateOrganizationMember","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.AddOrganizationMemberRequest","description":"Add member payload","summary":"request"}}},"description":"Add member payload","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.Member"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Add member to organization","tags":["Organizations"]}},"/organizations/{organization}/members/{user_id}":{"delete":{"description":"Remove a user from an organization, which removes every role they hold there. Removing oneself is leaving: when the organization settings do not let members leave (allow_members_to_leave off), it is refused 403 leave_disabled, as leaving it with POST /me/memberships/{container_id}/leave is, before any rule below; removing someone else is not affected. Removing a member who holds owner needs sys:org:transfer, removing oneself included, refused 403 owner_transfer_required. A caller from the instance itself (not the Pontive console) may remove only a member whose roles' permissions they hold on the organization, or hold sys:root:grant, refused 403 role_ceiling. Roles that changed while the removal was being decided are refused 409 member_roles_changed: read the member again and retry.","operationId":"DeleteOrganizationMember","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"}},"summary":"Remove member from organization","tags":["Organizations"]},"get":{"description":"Get an organization member by user ID","operationId":"GetOrganizationMember","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.Member"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get organization member","tags":["Organizations"]},"patch":{"description":"Replace an organization member's roles. Granting or removing owner needs sys:org:transfer, refused 403 owner_transfer_required. A caller from the instance itself (not the Pontive console) may add or remove only roles whose permissions they hold on the organization, or hold sys:root:grant, refused 403 role_ceiling, and cannot change their own roles, refused 403 self_role_change. Roles that changed while the change was being decided are refused 409 member_roles_changed: read the member again and retry.","operationId":"UpdateOrganizationMember","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.UpdateMemberRolesRequest","description":"Update member roles payload","summary":"request"}}},"description":"Update member roles payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.Member"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update organization member roles","tags":["Organizations"]}},"/organizations/{organization}/resume":{"post":{"description":"Remove one suspension reason from an organization, and no other. The reason is admin when the body is absent or names none. The organization is active again, with access to the resources parented under it, once it holds no reason; while it holds another it stays suspended. Removing a reason it does not hold changes nothing and succeeds. A reactivate that names no reason removes admin only, never billing. While the instance's billing capability is on, the billing reason is managed by billing: adding or removing it here is refused with 403, an instance admin included, so only billing lifts a billing suspension. With the capability off, an instance admin may add or remove it. If the capability cannot be read, a billing write is refused with 503.","operationId":"ResumeOrganization","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.ReactivateOrganizationRequest","description":"The reason to remove; admin when omitted","summary":"request"}}},"description":"The reason to remove; admin when omitted"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Organization"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Reactivate organization","tags":["Organizations"]}},"/organizations/{organization}/suspend":{"post":{"description":"Add a suspension reason to an organization. It is suspended while it holds any reason, and access to it and to every resource parented under it is denied. The reason is admin when the body is absent or names none. billing is Pontive billing's own reason. closed says the organization's owners closed their account and the client may reopen it: Pontive billing keeps its owner able to pay its invoices and manage its payment method while it is held. While the instance's billing capability is on, the billing reason is managed by billing: adding or removing it here is refused with 403, an instance admin included, so only billing lifts a billing suspension. With the capability off, an instance admin may add or remove it. If the capability cannot be read, a billing write is refused with 503. Adding a reason the organization already holds changes nothing and succeeds. Pontive billing does not call this route: it writes the billing reason to identity-svc over gRPC with its system credential.","operationId":"SuspendOrganization","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.SuspendOrganizationRequest","description":"The reason to add; admin when omitted","summary":"request"}}},"description":"The reason to add; admin when omitted"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Organization"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Suspend organization","tags":["Organizations"]}},"/organizations/{organization}/third-party-clients":{"get":{"description":"The CIMD and DCR apps a member of the organization has consented to (pontive-spec 20 G2), the most recently consented first: how many members did, the organization's policy on each (allowed, blocked, not_allowed), and whether the instance still admits it. Needs sys:agent:read on the organization.","operationId":"ListOrganizationThirdPartyClients","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.ListOrganizationClientsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List the third-party apps acting for the organization's members","tags":["ThirdPartyClients"]}},"/organizations/{organization}/third-party-clients/{app_id}/allow":{"post":{"description":"Let a CIMD or DCR app act in the organization again (pontive-spec 20 G2): every block-list entry naming it exactly goes, and under allowlist mode its client_id joins the allow-list. 409 organization_client_blocked_by_pattern while an https://host/* entry on the block-list still names it: remove that entry with PUT /client-policy. Needs sys:agent:install on the organization.","operationId":"AllowOrganizationThirdPartyClient","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"The third-party app's id (app_…)","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.OrganizationClientPolicy"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"organization_client_blocked_by_pattern"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Allow a third-party app in the organization again","tags":["ThirdPartyClients"]}},"/organizations/{organization}/third-party-clients/{app_id}/block":{"post":{"description":"Block a CIMD or DCR app for the organization (pontive-spec 20 G2): its client_id — a CIMD app's URL, which outlives the app's cleanup, or a DCR app's id — joins the block-list and leaves the allow-list. Its users are refused in the organization from their next authorization, code exchange or refresh. 404 for an app that is not a third-party app. Needs sys:agent:install on the organization.","operationId":"BlockOrganizationThirdPartyClient","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}},{"description":"The third-party app's id (app_…)","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_thirdpartyclient_types.OrganizationClientPolicy"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Block a third-party app for the organization","tags":["ThirdPartyClients"]}},"/organizations/{organization}/transfer-ownership":{"post":{"description":"Transfer ownership of an organization to another user.","operationId":"TransferOwnership","parameters":[{"description":"The organization's id, or its slug","in":"path","name":"organization","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.TransferOwnershipRequest","description":"New owner","summary":"request"}}},"description":"New owner","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_organization_types.Organization"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Transfer organization ownership","tags":["Organizations"]}},"/personal-access-tokens":{"get":{"description":"List personal access tokens with filtering and pagination.","operationId":"ListPATs","parameters":[{"description":"Filter by user id (usr_…)","in":"query","name":"user_id","schema":{"type":"string"}},{"description":"Filter by status (active|revoked)","in":"query","name":"status","schema":{"type":"string"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, status. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.ListPATsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List personal access tokens","tags":["PersonalAccessTokens"]},"post":{"description":"Mint a personal access token bound to a user. The token value is returned only here. Omit organization_id for an all-orgs token.","operationId":"CreatePAT","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.CreatePATRequest","description":"Create PAT payload","summary":"request"}}},"description":"Create PAT payload","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.PATWithToken"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create personal access token","tags":["PersonalAccessTokens"]}},"/personal-access-tokens/{personal_access_token_id}":{"get":{"description":"Get a personal access token by ID.","operationId":"GetPAT","parameters":[{"description":"PAT ID","in":"path","name":"personal_access_token_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.PAT"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get personal access token","tags":["PersonalAccessTokens"]},"patch":{"description":"Update mutable fields (name, description, metadata).","operationId":"UpdatePAT","parameters":[{"description":"PAT ID","in":"path","name":"personal_access_token_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.UpdatePATRequest","description":"Update payload","summary":"request"}}},"description":"Update payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_pat_types.PAT"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Update personal access token","tags":["PersonalAccessTokens"]}},"/personal-access-tokens/{personal_access_token_id}/revoke":{"post":{"description":"Revoke a personal access token immediately and irreversibly.","operationId":"RevokePAT","parameters":[{"description":"PAT ID","in":"path","name":"personal_access_token_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Revoke personal access token","tags":["PersonalAccessTokens"]}},"/resources":{"get":{"description":"Retrieve a paginated list of resources. Filter by resource_type, the organization they belong to (or instance_level for those in none), a parent (its direct children), and external_id, or search the name and external id by free text.","operationId":"ListResources","parameters":[{"description":"Filter by resource type","in":"query","name":"resource_type","schema":{"type":"string"}},{"description":"Only resources belonging to this organization","in":"query","name":"organization_id","schema":{"type":"string"}},{"description":"Only resources in no organization: the instance's own. Exclusive with organization_id","in":"query","name":"instance_level","schema":{"type":"boolean"}},{"description":"Only the direct children of this organization or resource, or of the instance root (its instance id, or root)","in":"query","name":"parent_id","schema":{"type":"string"}},{"description":"Exact match on the id the caller gave the resource","in":"query","name":"external_id","schema":{"type":"string"}},{"description":"Free text matched against the name and the external id, case-insensitively","in":"query","name":"search","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.ListResourcesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List resources","tags":["Resources"]},"post":{"description":"Register an object another system owns, so members, roles and authorization can refer to it. It may belong to an organization (and is then deleted with it), and may sit under one parent — the organization it belongs to, or a resource belonging to it; for one in no organization, another such resource or the instance root (its instance id, or root) — of one of the parent types its resource type declares; roles held on the parent reach it by its type's inheritance rules. The parent is required: no resource is under nothing.","operationId":"CreateResource","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.CreateResourceRequest","description":"Resource creation details","summary":"request"}}},"description":"Resource creation details","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.Resource"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"The resource type, organization or a parent does not exist"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"A resource of this type is already registered with this external_id"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create resource","tags":["Resources"]}},"/resources/{resource_id}":{"delete":{"description":"Deregister a resource. One that has children is refused with 409 unless cascade=true, which also deregisters its whole subtree.","operationId":"DeleteResource","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"Also deregister its whole subtree (required when it has children)","in":"query","name":"cascade","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.DeleteResourceResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"The resource has children and cascade is not set"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete resource","tags":["Resources"]},"get":{"description":"Retrieve a resource by its ID, with its parent.","operationId":"GetResource","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.Resource"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get resource","tags":["Resources"]},"patch":{"description":"Change a resource's name or metadata. Its type, external id and organization never change; its parent changes through the parent endpoints.","operationId":"UpdateResource","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.UpdateResourceRequest","description":"Fields to change","summary":"request"}}},"description":"Fields to change","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.Resource"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update resource","tags":["Resources"]}},"/resources/{resource_id}/agent-installations":{"get":{"description":"The agents installed on the resource, with their approved roles, pending approvals and status; filterable by agent and status (D21).","operationId":"ListResourceAgentInstallations","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"One agent's installations (agt_)","in":"query","name":"agent_id","schema":{"type":"string"}},{"description":"active or suspended","in":"query","name":"status","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListInstallationsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List the resource's agent installations","tags":["Agents"]},"post":{"description":"Install an agent on the resource with roles approved: any of those it requests for the resource's type, or none (sys:agent:install on the resource's organization, or on the root for a resource in none — never on the resource itself). The roles are also held to what the caller could grant there. With delegated_only true, the roles act only as the agent's side of a delegation: a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token holds none of them.","operationId":"CreateResourceAgentInstallation","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.InstallRequest","description":"Agent and approved roles","summary":"request"}}},"description":"Agent and approved roles","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_role_not_requested"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_not_offered, agent_wrong_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_already_installed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Install an agent on the resource","tags":["Agents"]}},"/resources/{resource_id}/agent-installations/{installation_id}":{"delete":{"description":"Delete the installation. The agent's next token request for the resource is refused; a token already issued lives out its lifetime.","operationId":"DeleteResourceAgentInstallation","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Uninstall an agent from the resource","tags":["Agents"]},"get":{"description":"One installation on the resource, a resource in no organization (D21), with its pending approval. An installation in an organization is under /organizations/{organization}/agent-installations.","operationId":"GetResourceAgentInstallation","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get an agent's installation on the resource","tags":["Agents"]},"patch":{"description":"Replace the roles approved for the agent on the resource, within what it requests (sys:agent:install on the resource's organization, or on the root for a resource in none — never on the resource itself). delegated_only, when present, turns delegation-only on or off.","operationId":"UpdateResourceAgentInstallation","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.UpdateInstallationRequest","description":"Approved roles","summary":"request"}}},"description":"Approved roles","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_role_not_requested"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Change an agent's roles on the resource","tags":["Agents"]}},"/resources/{resource_id}/agent-installations/{installation_id}/approve":{"post":{"description":"Approve the agent's requested roles up to version, after the installation's approved_version and at most the agent's; roles are the approved roles from now on — typically what it holds plus pending_roles (sys:agent:install on the resource's organization, or on the root for a resource in none — never on the resource itself).","operationId":"ApproveResourceAgentInstallation","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ApproveInstallationRequest","description":"Version and approved roles","summary":"request"}}},"description":"Version and approved roles","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_role_not_requested, agent_version_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Approve an agent's requested roles on the resource","tags":["Agents"]}},"/resources/{resource_id}/agent-installations/{installation_id}/decline":{"post":{"description":"Mark version seen without adding its roles; the installation keeps working with the roles it has.","operationId":"DeclineResourceAgentInstallation","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.DeclineInstallationRequest","description":"Version","summary":"request"}}},"description":"Version","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_version_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Decline an agent's requested roles on the resource","tags":["Agents"]}},"/resources/{resource_id}/agent-installations/{installation_id}/resume":{"post":{"description":"Lift an admin's suspension. An installation suspended for another cause (the agent deactivated, the organization suspended or not offered) stays suspended until that ends.","operationId":"ResumeResourceAgentInstallation","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Resume an agent on the resource","tags":["Agents"]}},"/resources/{resource_id}/agent-installations/{installation_id}/suspend":{"post":{"description":"Suspend the installation: its roles are withdrawn and the agent's tokens for the resource refused until it is resumed.","operationId":"SuspendResourceAgentInstallation","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Suspend an agent on the resource","tags":["Agents"]}},"/resources/{resource_id}/group-roles":{"get":{"description":"The groups holding roles on a resource, whoever owns them, each with its roles there (api-route-review D43). The groups the resource owns are GET /groups?owner_type=<its type>&owner_id=….","operationId":"ListResourceGroupRoles","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.ListGroupGrantsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"}},"summary":"List the groups holding roles on a resource","tags":["Groups"]}},"/resources/{resource_id}/members":{"get":{"description":"List the users holding roles on a resource itself. Users who reach it only by inheritance from a parent are not members and are not listed.","operationId":"ListResourceMembers","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"Filter by user IDs","in":"query","name":"user_ids","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filter by emails","in":"query","name":"emails","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filter by roles","in":"query","name":"roles","schema":{"items":{"type":"string"},"type":"array"}},{"description":"search query","in":"query","name":"search","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, joined_at, email. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.ListMembersResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List resource members","tags":["Resources"]},"post":{"description":"Add a user to a resource with roles of the resource's type. A user who is not a member of the resource's organization joins it too, with the membership settings' roles_on_join (none by default). A user who would take the organization past its member limit is refused 409 seat_limit_reached, and nothing is written.","operationId":"CreateResourceMember","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.AddResourceMemberRequest","description":"Member to add","summary":"request"}}},"description":"Member to add","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.Member"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Add a member to a resource","tags":["Resources"]}},"/resources/{resource_id}/members/{user_id}":{"delete":{"description":"Remove a user from a resource. Their membership of the resource's organization stays.","operationId":"DeleteResourceMember","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Remove a member from a resource","tags":["Resources"]},"get":{"description":"Get one member of a resource by user ID","operationId":"GetResourceMember","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.Member"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get a resource member","tags":["Resources"]},"patch":{"description":"Replace the roles a member holds on a resource","operationId":"UpdateResourceMember","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.UpdateResourceMemberRolesRequest","description":"New roles","summary":"request"}}},"description":"New roles","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.Member"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update a resource member's roles","tags":["Resources"]}},"/resources/{resource_id}/parent":{"put":{"description":"Set the resource's parent, replacing the one it had: a move, with its subtree. The parent is the organization the resource belongs to, or a resource belonging to it; for a resource in no organization, another such resource or the instance root, by its instance id or root — of one of the parent types the resource's type declares. Roles held on the parent then reach the resource. A move that would make the resource its own ancestor is refused with 409, one that would nest it more than 8 levels deep with 400. Setting the parent it already has succeeds.","operationId":"ReplaceResourceParent","parameters":[{"description":"Resource ID","in":"path","name":"resource_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.SetResourceParentRequest","description":"The parent","summary":"request"}}},"description":"The parent","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_resource_types.Resource"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Invalid parent, or the move would exceed the depth limit"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"The move would close a cycle"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Move a resource under a parent","tags":["Resources"]}},"/root/agent-installations":{"get":{"description":"The installations in no organization (D21): on the instance root and on resources in none, with their approved roles, pending approvals and status; filterable by agent, resource and status.","operationId":"ListRootAgentInstallations","parameters":[{"description":"One agent's installations (agt_)","in":"query","name":"agent_id","schema":{"type":"string"}},{"description":"The installations on one resource in no organization (res_)","in":"query","name":"resource_id","schema":{"type":"string"}},{"description":"active or suspended","in":"query","name":"status","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ListInstallationsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List the installations in no organization","tags":["Agents"]},"post":{"description":"Install an agent in no organization — on the instance root, or on the resource resource_id names, a resource in none (D21) — with roles approved: any of those it requests for the target's type, or none (sys:agent:install on the root). The roles are also held to what the caller could grant there. With delegated_only true, the roles act only as the agent's side of a delegation: a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token holds none of them.","operationId":"CreateRootAgentInstallation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.InstallRequest","description":"Agent and approved roles","summary":"request"}}},"description":"Agent and approved roles","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_role_not_requested"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_not_offered, agent_wrong_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_already_installed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Install an agent on the instance root","tags":["Agents"]}},"/root/agent-installations/{installation_id}":{"delete":{"description":"Delete the installation. The agent's next token request for the instance root is refused; a token already issued lives out its lifetime.","operationId":"DeleteRootAgentInstallation","parameters":[{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Uninstall an agent from the instance root","tags":["Agents"]},"get":{"description":"One installation in no organization — on the instance root or on a resource in none (D21) — with its pending approval.","operationId":"GetRootAgentInstallation","parameters":[{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get an agent's installation on the instance root","tags":["Agents"]},"patch":{"description":"Replace the roles approved for the agent on the instance root, within what it requests (sys:agent:install on the root). delegated_only, when present, turns delegation-only on or off.","operationId":"UpdateRootAgentInstallation","parameters":[{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.UpdateInstallationRequest","description":"Approved roles","summary":"request"}}},"description":"Approved roles","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_role_not_requested"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Change an agent's roles on the instance root","tags":["Agents"]}},"/root/agent-installations/{installation_id}/approve":{"post":{"description":"Approve the agent's requested roles up to version, after the installation's approved_version and at most the agent's; roles are the approved roles from now on — typically what it holds plus pending_roles (sys:agent:install on the root).","operationId":"ApproveRootAgentInstallation","parameters":[{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.ApproveInstallationRequest","description":"Version and approved roles","summary":"request"}}},"description":"Version and approved roles","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_role_not_requested, agent_version_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Approve an agent's requested roles on the instance root","tags":["Agents"]}},"/root/agent-installations/{installation_id}/decline":{"post":{"description":"Mark version seen without adding its roles; the installation keeps working with the roles it has.","operationId":"DeclineRootAgentInstallation","parameters":[{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.DeclineInstallationRequest","description":"Version","summary":"request"}}},"description":"Version","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"agent_version_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Decline an agent's requested roles on the instance root","tags":["Agents"]}},"/root/agent-installations/{installation_id}/resume":{"post":{"description":"Lift an admin's suspension. An installation suspended for another cause (the agent deactivated, the organization suspended or not offered) stays suspended until that ends.","operationId":"ResumeRootAgentInstallation","parameters":[{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Resume an agent on the instance root","tags":["Agents"]}},"/root/agent-installations/{installation_id}/suspend":{"post":{"description":"Suspend the installation: its roles are withdrawn and the agent's tokens for the instance root refused until it is resumed.","operationId":"SuspendRootAgentInstallation","parameters":[{"description":"Installation ID (ain_)","in":"path","name":"installation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_agent_types.Installation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Suspend an agent on the instance root","tags":["Agents"]}},"/root/group-roles":{"get":{"description":"The groups holding roles on the instance root, each with its roles there (api-route-review D43): the read edge from the other side of GET /groups/{group_id}/roles. The groups the root owns are GET /groups?owner_type=root.","operationId":"ListRootGroupRoles","parameters":[{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.ListGroupGrantsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"}},"summary":"List the groups holding roles on the instance root","tags":["Groups"]}},"/root/invitations":{"get":{"description":"The open invitations to the instance alone (no organization). An expired invitation is not listed.","operationId":"ListRootInvitations","parameters":[{"description":"Filter by invitees email","in":"query","name":"invitee_emails","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filter by inviter user ID","in":"query","name":"invited_by","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Search by invitee email","in":"query","name":"search","schema":{"type":"string"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, expires_at, last_sent_at. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.ListInvitationsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"}},"summary":"List invitations to the instance","tags":["Users"]},"post":{"description":"Invite people to the instance alone, with no organization: each gets an email whose link lets them create their own account in the app (choosing their own password or sign-in method), and accepting grants nothing else. For people who belong to no organization — in a b2c instance, everyone; in a b2b one, for example the client's own staff. An address that already has an account is skipped (already_registered); one with a pending invitation to the instance has it reissued with a new link. The app must have org_access all. 200 when every address was skipped, 201 when any invitation was sent.","operationId":"CreateRootInvitations","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.InviteToInstanceRequest","description":"Invite payload","summary":"request"}}},"description":"Invite payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.InvitationResult"}}},"description":"OK"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.InvitationResult"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Invite users to the instance","tags":["Users"]}},"/root/invitations/{invitation_id}":{"delete":{"description":"Withdraw an invitation to the instance: it is deleted, and its link stops working.","operationId":"DeleteRootInvitation","parameters":[{"description":"Invitation ID","in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}},{"description":"Email the invitee that the invitation was withdrawn","in":"query","name":"notify_invitee","schema":{"type":"boolean"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Withdraw an invitation to the instance","tags":["Users"]},"get":{"description":"One open invitation to the instance alone (no organization). An organization's invitation is not found here.","operationId":"GetRootInvitation","parameters":[{"description":"Invitation ID","in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.Invitation"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Get an invitation to the instance","tags":["Users"]}},"/root/invitations/{invitation_id}/resend":{"post":{"description":"Send an invitation to the instance again, with a new link; the earlier link stops working.","operationId":"ResendRootInvitation","parameters":[{"description":"Invitation ID","in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.ResendInvitationRequest","description":"Resend Invitation payload","summary":"request"}}},"description":"Resend Invitation payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_invitation_types.Invitation"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Resend an invitation to the instance","tags":["Users"]}},"/root/members":{"get":{"description":"List the users holding a role on the instance root — its owners and admins, and in the directory Pontive's staff. The root is the request's own instance.","operationId":"ListRootMembers","parameters":[{"description":"Filter by user IDs","in":"query","name":"user_ids","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filter by emails","in":"query","name":"emails","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filter by roles","in":"query","name":"roles","schema":{"items":{"type":"string"},"type":"array"}},{"description":"search query","in":"query","name":"search","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, joined_at, email. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.ListMembersResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List the instance root's members","tags":["Root"]},"post":{"description":"Give a user roles on the instance root (api-route-review D4, D38): written from the root, like an organization's or a resource's members. A root role is granted with sys:root:grant.","operationId":"CreateRootMember","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.AddRootMemberRequest","description":"The user and the root roles","summary":"request"}}},"description":"The user and the root roles","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.Member"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"}},"summary":"Add a root member","tags":["Root"]}},"/root/members/{user_id}":{"delete":{"description":"Take every root role from a user. The instance's last owner cannot be removed.","operationId":"DeleteRootMember","parameters":[{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"}},"summary":"Remove a root member","tags":["Root"]},"get":{"description":"One user's roles on the instance root.","operationId":"GetRootMember","parameters":[{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.Member"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Get a root member","tags":["Root"]},"patch":{"description":"Replace a user's roles on the instance root.","operationId":"UpdateRootMember","parameters":[{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.UpdateRootMemberRequest","description":"The root roles","summary":"request"}}},"description":"The root roles","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.Member"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Update a root member","tags":["Root"]}},"/service-accounts":{"get":{"description":"List the instance's service accounts, filtered by owner (D6, D15, D44): owner_type root, org or a resource type key lists one kind of owner's accounts, owner_id one owner's.","operationId":"ListServiceAccounts","parameters":[{"description":"root, org, or the owning resource's type key","in":"query","name":"owner_type","schema":{"type":"string"}},{"description":"One owner's prefixed id: inst_, org_ or res_","in":"query","name":"owner_id","schema":{"type":"string"}},{"description":"Filter by status","in":"query","name":"status","schema":{"type":"string"}},{"description":"Search by name","in":"query","name":"name","schema":{"type":"string"}},{"description":"Search by query","in":"query","name":"search","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ListServiceAccountsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List service accounts","tags":["ServiceAccounts"]},"post":{"description":"Create a service account, owned by the instance root, an organization or a resource (D5, D6, D44): owner_type root (the default), org or the owning resource's type key, owner_id its prefixed id. The account is created with no client secret (D45): mint one with POST /service-accounts/{service_account_id}/client-secrets, which needs sys:sa:secret. A pontive: scope in allowed_scopes is refused (400); to let the account reach the management API, grant it on the management (system) API with PUT /apis/{api_id}/clients.","operationId":"CreateServiceAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.CreateServiceAccountRequest","description":"Create service account payload","summary":"request"}}},"description":"Create service account payload","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ServiceAccount"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create service account","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}":{"delete":{"description":"Delete a service account","operationId":"DeleteServiceAccount","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete service account","tags":["ServiceAccounts"]},"get":{"description":"Get a service account by ID","operationId":"GetServiceAccount","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ServiceAccount"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get service account","tags":["ServiceAccounts"]},"patch":{"description":"Update a service account","operationId":"UpdateServiceAccount","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.UpdateServiceAccountRequest","description":"Update service account payload","summary":"request"}}},"description":"Update service account payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ServiceAccount"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_unclaimed: setting a jwks_uri on an unclaimed instance; claim it first (pontive-spec 47)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update service account","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/client-scopes":{"get":{"description":"List OAuth-style app scope configuration for a service account","operationId":"ListClientScopes","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ListAppScopesResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List app scopes","tags":["ServiceAccounts"]},"put":{"description":"Replace app scope configuration for a service account","operationId":"ReplaceClientScopes","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.UpdateAppScopesRequest","description":"App scopes payload","summary":"request"}}},"description":"App scopes payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ListAppScopesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update app scopes","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/client-secrets":{"get":{"description":"The account's client secrets that still authenticate (D19), newest first: preview, label, status, created and expiry, never the value. Needs sys:sa:secret on the account's owner.","operationId":"ListServiceAccountClientSecrets","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ListClientSecretsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List service account client secrets","tags":["ServiceAccounts"]},"post":{"description":"Mint a client secret (D19); needs sys:sa:secret. Creating the account mints none (D45). Its value is returned here only. Without expire_others_in the others are kept, and the create is refused (409 client_secret_limit_reached) while two that do not expire are held; with it, every other secret stops working that many seconds from now (0–604800; 0 at once), so a rotation is one call.","operationId":"CreateServiceAccountClientSecret","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.CreateClientSecretRequest","description":"Label and the others' expiry","summary":"request"}}},"description":"Label and the others' expiry"},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ClientSecretWithValue"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"client_secret_limit_reached"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create service account client secret","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/client-secrets/{secret_id}":{"delete":{"description":"Remove one of the account's client secrets (D8, D19); it stops working at once.","operationId":"DeleteServiceAccountClientSecret","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}},{"description":"Client secret ID","in":"path","name":"secret_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"client_secret_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete service account client secret","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/deactivate":{"post":{"description":"Deactivate a service account","operationId":"DeactivateServiceAccount","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ServiceAccount"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Deactivate service account","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/federated-credentials":{"get":{"description":"Every federated credential of the service account (at most 20). Needs sys:sa:read on its owner (the instance root, its organization, or its resource's organization).","operationId":"ListServiceAccountFederatedCredentials","parameters":[{"description":"Service account ID (svc_)","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.ListFederatedCredentialsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List service account federated credentials","tags":["ServiceAccounts"]},"post":{"description":"Let the service account authenticate at the token endpoint with a token a trusted issuer signed, with no secret or key of its own (workload identity federation, pontive-spec 20 B7). The workload sends its token as client_assertion, with client_assertion_type urn:ietf:params:oauth:client-assertion-type:jwt-bearer and client_id the service account's id; it is accepted when its iss is the credential's trusted issuer (enabled), its aud one the issuer accepts, exp at most the issuer's max_token_lifetime_seconds (default 3600) ahead and at most that long after iat, its signature the issuer's, its jti unused (unless the issuer has allow_reuse, which accepts the same token until it expires), its sub matches subject and every required claim is present with exactly its value. subject is exact by default; a '*' matches one or more characters within one ':' or '/' segment, and '**' or a '*' in the first segment is refused, so repo:acme/api:environment:* matches every environment of acme/api and nothing else. At most 20 per service account, the name once. Needs sys:sa:secret on its owner (the instance root, its organization, or its resource's organization).","operationId":"CreateServiceAccountFederatedCredential","parameters":[{"description":"Service account ID (svc_)","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.CreateFederatedCredentialRequest","description":"Credential","summary":"request"}}},"description":"Credential","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.FederatedCredential"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_invalid, federated_credential_limit_reached"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_not_found (no such service account), trusted_issuer_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_conflict: the name is taken"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create service account federated credential","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/federated-credentials/{credential_id}":{"delete":{"description":"The credential stops authenticating at once; tokens already issued live out their lifetime. Needs sys:sa:secret on its owner (the instance root, its organization, or its resource's organization).","operationId":"DeleteServiceAccountFederatedCredential","parameters":[{"description":"Service account ID (svc_)","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}},{"description":"Federated credential ID (fic_)","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete service account federated credential","tags":["ServiceAccounts"]},"get":{"description":"Needs sys:sa:read on its owner (the instance root, its organization, or its resource's organization).","operationId":"GetServiceAccountFederatedCredential","parameters":[{"description":"Service account ID (svc_)","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}},{"description":"Federated credential ID (fic_)","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.FederatedCredential"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get service account federated credential","tags":["ServiceAccounts"]},"patch":{"description":"Change the name, description, subject or required claims; an absent field is left as it is, and required_claims, when present, replaces the map. The trusted issuer never changes. Needs sys:sa:secret on its owner (the instance root, its organization, or its resource's organization).","operationId":"UpdateServiceAccountFederatedCredential","parameters":[{"description":"Service account ID (svc_)","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}},{"description":"Federated credential ID (fic_)","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.UpdateFederatedCredentialRequest","description":"Changes","summary":"request"}}},"description":"Changes","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_federation_types.FederatedCredential"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"federated_credential_conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update service account federated credential","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/public-keys":{"post":{"description":"Add a public JWK to the account's inline keys, for private_key_jwt client authentication (RFC 7523). The body is the JWK itself, with its public members only: RSA 2048 bits or more, or EC P-256, with a kid. At most three; refused while the account has a jwks_uri (409 key_source_conflict). Rotate by overlap: add the new key, move over to it, then remove the old one.","operationId":"CreateServiceAccountPublicKey","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_clientkey.JWK","description":"The public JWK","summary":"request"}}},"description":"The public JWK","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ServiceAccount"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"public_key_invalid, public_key_limit_reached"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"public_key_conflict: the kid is taken; key_source_conflict: the account has a jwks_uri"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Add a service account public key","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/public-keys/{key_id}":{"delete":{"description":"Remove one of the account's inline keys by kid. Assertions signed with it are refused from now on.","operationId":"DeleteServiceAccountPublicKey","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}},{"description":"Key ID","in":"path","name":"key_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ServiceAccount"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"public_key_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Remove a service account public key","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/reactivate":{"post":{"description":"Reactivate a service account","operationId":"ReactivateServiceAccount","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ServiceAccount"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Reactivate service account","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/roles":{"put":{"description":"Replace the roles a service account holds on its owner — the instance root, its organization, or its resource — with roles of the owner's type; no roles removes them all. What lies below the owner is reached by inheritance. A service account never holds owner on an organization (owner_not_grantable).","operationId":"ReplaceServiceAccountRoles","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.SetServiceAccountRolesRequest","description":"Roles","summary":"request"}}},"description":"Roles","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.ServiceAccount"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Set a service account's roles","tags":["ServiceAccounts"]}},"/service-accounts/{service_account_id}/token-config":{"get":{"description":"Get token configuration for a service account","operationId":"GetTokenConfig","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.TokenConfiguration"}}},"description":"OK","headers":{"ETag":{"description":"The document's revision, as its entity tag: send it as If-Match to change it (D42)","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get token configuration","tags":["ServiceAccounts"]},"patch":{"description":"Update token configuration for a service account","operationId":"UpdateTokenConfig","parameters":[{"description":"Service Account ID","in":"path","name":"service_account_id","required":true,"schema":{"type":"string"}},{"description":"The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.UpdateServiceAccountTokenConfigRequest","description":"Update token configuration payload","summary":"request"}}},"description":"Update token configuration payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_serviceaccount_types.TokenConfiguration"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"412":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"precondition_failed: the document changed since it was read"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update token configuration","tags":["ServiceAccounts"]}},"/user-imports":{"get":{"description":"The instance's import runs, newest first. Needs sys:user:read on the instance root.","operationId":"ListUserImports","parameters":[{"description":"Only runs in this status","in":"query","name":"status","schema":{"enum":["open","reverting","reverted"],"type":"string"}},{"description":"Only runs from this migration source (msrc_)","in":"query","name":"migration_source_id","schema":{"type":"string"}},{"description":"Created at or after this time (RFC 3339)","in":"query","name":"created_after","schema":{"type":"string"}},{"description":"Created before this time (RFC 3339)","in":"query","name":"created_before","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ListUserImportsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List user imports","tags":["UserImports"]},"post":{"description":"Start an import run (pontive-spec 46 §5.1): a migration's batches of users and organizations, its counters, a record per applied row, and revert. migration_source_id is optional; without one, rows match existing users by external_id only and carry no legacy_subject or firebase_scrypt hash. options are checked now and fixed: on_existing (skip, default, or update), password_policy_violation (require_change, default, or allow), identity_connections (at most 20; each app must have that connection, of that type), totp_app_ids (at most 20; each app must have TOTP on with an issuer) and emit_events (default true: pontive.user.created for each user the run creates). Needs sys:user:manage on the instance root.","operationId":"CreateUserImport","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.CreateUserImportRequest","description":"Run","summary":"request"}}},"description":"Run","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UserImport"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"migration_source_not_found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"connection_not_found, connection_type_mismatch, totp_not_enabled"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create user import","tags":["UserImports"]}},"/user-imports/{user_import_id}":{"get":{"description":"The run with its options and counters. Needs sys:user:read on the instance root.","operationId":"GetUserImport","parameters":[{"description":"User import ID (uimp_)","in":"path","name":"user_import_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UserImport"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"user_import_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get user import","tags":["UserImports"]}},"/user-imports/{user_import_id}/records":{"get":{"description":"The run's records, one per applied row, in the order applied: what matched the row (key), what happened (outcome) and why a row failed (errors, never a value from the row). Records are kept 90 days after the run's last batch. Needs sys:user:read on the instance root.","operationId":"ListUserImportRecords","parameters":[{"description":"User import ID (uimp_)","in":"path","name":"user_import_id","required":true,"schema":{"type":"string"}},{"description":"Only records of this kind","in":"query","name":"kind","schema":{"enum":["user","organization"],"type":"string"}},{"description":"Only records with this outcome","in":"query","name":"outcome","schema":{"enum":["created","updated","skipped","failed"],"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ListUserImportRecordsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"user_import_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List user import records","tags":["UserImports"]}},"/user-imports/{user_import_id}/revert":{"post":{"description":"Undo, or with dry_run (default true) plan undoing, up to 1,000 of what the run created (pontive-spec 46 §5.5): the organizations it created whose every member is a user it created who has not signed in, then those users, deleted outright so their identifiers are free for a re-import. Users who signed in, organizations with other members and everything the run updated are kept; kept lists them with why. The run takes no more batches; call again while remaining is above 0, and the run is reverted once a call finds nothing left. Needs sys:user:manage on the instance root, and sys:org:delete on each organization it deletes.","operationId":"RevertUserImport","parameters":[{"description":"User import ID (uimp_)","in":"path","name":"user_import_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.RevertUserImportRequest","description":"Revert","summary":"request"}}},"description":"Revert"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UserImportRevert"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"user_import_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"user_import_reverted"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Revert user import","tags":["UserImports"]}},"/users":{"get":{"description":"Get a list of users with pagination and filtering","operationId":"ListUsers","parameters":[{"description":"Filter by status","in":"query","name":"status","schema":{"type":"string"}},{"description":"Filter by exact email","in":"query","name":"email","schema":{"type":"string"}},{"description":"Matches email, name or username, case-insensitively, anywhere in the value","in":"query","name":"search","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, email, name, username, status. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Exclude users who are members of this organization (prefixed org_… id)","in":"query","name":"exclude_organization_id","schema":{"type":"string"}},{"description":"Exclude users who are members of any organization (only unaffiliated users)","in":"query","name":"exclude_any_organization","schema":{"type":"boolean"}},{"description":"Exact match on the username: finds a user by it (D17)","in":"query","name":"username","schema":{"type":"string"}},{"description":"Exact match on the caller's own id for the user: finds a user by it (D17)","in":"query","name":"external_id","schema":{"type":"string"}},{"description":"Users with a legacy identity in this migration source (msrc_), pontive-spec 46","in":"query","name":"migration_source_id","schema":{"type":"string"}},{"description":"The user whose id in the system they were imported from is this (exact), in migration_source_id when set","in":"query","name":"legacy_subject","schema":{"type":"string"}},{"description":"Users whose password is none, active, or imported and not yet replaced at a first sign-in","in":"query","name":"password_status","schema":{"enum":["none","active","imported"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.ListUsersResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List users","tags":["Users"]},"post":{"description":"Create a new user","operationId":"CreateUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.CreateUserRequest","description":"Create User Request","summary":"request"}}},"description":"Create User Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.User"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create user","tags":["Users"]}},"/users/external_id/{external_id}":{"get":{"description":"Retrieve the user the caller gave this external id: an exact match on the instance-unique external_id. Answers the user or 404. Percent-encode the value.","operationId":"GetUserByExternalId","parameters":[{"description":"The id the caller gave the user","in":"path","name":"external_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.User"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get user by external id","tags":["Users"]}},"/users/import":{"post":{"description":"Apply, or with dry_run (default true) plan, a batch of at most 100 users under an import run (pontive-spec 46 §5.2). Each row is POST /v1/users's fields plus legacy_subject (the user's id in the run's migration source), created_at (in the past), status (active or deactivated), and one of password (plaintext, hashed now) or password_hash: bcrypt, argon2, scrypt, firebase_scrypt, pbkdf2, django, werkzeug, aspnet_identity, wordpress, ldap or digest (§6.1). Hashes under OWASP's minimum are wrapped in argon2id; every imported hash is replaced by a native one at the user's first sign-in, when the password is also checked against the password policy (a change is required on failure unless the run allows it). totp (base32 secret, SHA1, 6 digits, 30 seconds, with up to 16 recovery codes) is stored for the run's totp_app_ids; external_identities are written to the run's identity_connections of their type (google, github, apple, oidc; microsoft and entra are identity_not_portable). A row matches an existing user by its legacy subject, else external_id, never by email: a match is skipped or, with on_existing update, updated; an email, phone or username held by a user it does not match fails identifier_conflict. Each row stands alone and answers a record: created, updated, skipped or failed with errors, never a value from the row. Nothing is sent to the users. Without user_import_id an applied batch starts a run with the default options. The call answers 200 whatever its rows' outcomes. Needs sys:user:manage on the instance root, and sys:user:credentials when a row carries password, password_hash, totp or external_identities (never a token acting for a user).","operationId":"ImportUsers","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.ImportUsersRequest","description":"Batch","summary":"request"}}},"description":"Batch","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_migration_types.UserImportBatch"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"actor_refused: a token acting for a user cannot import credentials"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"user_import_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"user_import_reverted"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"too_many_records"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Import users","tags":["UserImports"]}},"/users/{user}":{"delete":{"description":"Permanently delete a user","operationId":"DeleteUser","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete user","tags":["Users"]},"get":{"description":"Retrieve one user by their id or their username. A value in the id form (usr_ and 26 base32 characters) is read as the id; anything else as the username. An email is never a path value: find a user by email with GET /users?email=. Every route under /users/{user} takes either.","operationId":"GetUser","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.User"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get user","tags":["Users"]},"patch":{"description":"Update an existing user (partial update)","operationId":"UpdateUser","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.UpdateUserRequest","description":"Update User Request","summary":"request"}}},"description":"Update User Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.User"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update user","tags":["Users"]}},"/users/{user}/authorized-apps":{"get":{"description":"The apps a user has granted scopes to through the OAuth consent screen, with the scopes granted. Unpaginated.","operationId":"ListUserAuthorizedApps","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page, 1 to 100","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.ListAuthorizedAppsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List a user's authorized apps","tags":["Users"]}},"/users/{user}/authorized-apps/{app_id}":{"delete":{"description":"Withdraw a user's consent to an app: the grant and the user's refresh tokens at that app are deleted, so the app must ask again. The user's session stays. An app the user has not authorized reads as 404.","operationId":"DeleteUserAuthorizedApp","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}},{"description":"App ID","in":"path","name":"app_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Consent withdrawn"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Revoke a user's authorized app","tags":["Users"]}},"/users/{user}/deactivate":{"post":{"description":"Deactivate a user","operationId":"DeactivateUser","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.User"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Deactivate user","tags":["Users"]}},"/users/{user}/groups":{"get":{"description":"List the groups a user belongs to","operationId":"ListUserGroups","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_group_types.ListGroupsResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"}},"summary":"List a user's groups","tags":["Users"]}},"/users/{user}/memberships":{"get":{"description":"List a user's memberships across every container kind — the instance root, organizations and resources (D4) — read-only; memberships are written on their container. resource_type narrows them to one kind of container by its registry key (root, org or a custom type key, D44). Each carries its container's name and external_id.","operationId":"ListUserMemberships","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}},{"description":"Only the memberships on containers of this type: root, org or a custom type key (D44)","in":"query","name":"resource_type","schema":{"type":"string"}},{"description":"Only the memberships on this organization's resources, at any depth (what removing the user from it also removes)","in":"query","name":"organization_id","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_member_types.ListUserMembershipsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List memberships for a user","tags":["Users"]}},"/users/{user}/reactivate":{"post":{"description":"Activate a deactivated user","operationId":"ReactivateUser","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.User"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Activate user","tags":["Users"]}},"/users/{user}/sessions":{"get":{"description":"List the OP sessions belonging to a user — the records that a browser is signed in, independent of any token issued. The response carries no session secret: the id is the public OIDC sid claim.","operationId":"ListUserSessions","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_user_types.ListUserSessionsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Implemented"}},"summary":"List user sessions","tags":["Users"]}},"/users/{user}/sessions/{session_id}/revoke":{"post":{"description":"End one of a user's sessions. Every grant consults the same flag afterwards, so no token has to be found or enumerated. A session belonging to a different user reads as 404.","operationId":"RevokeUserSession","parameters":[{"description":"The user's id, or their username","in":"path","name":"user","required":true,"schema":{"type":"string"}},{"description":"Session ID","in":"path","name":"session_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Session revoked successfully"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Revoke user session","tags":["Users"]}},"/webhooks/event-types":{"get":{"description":"List system and custom event types.","operationId":"ListWebhookEventTypes","parameters":[{"description":"Filter by kind (system|custom)","in":"query","name":"type","schema":{"type":"string"}},{"description":"Filter by scope (project|organization)","in":"query","name":"scope","schema":{"type":"string"}},{"description":"Partial name match","in":"query","name":"name","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.ListEventTypesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"}},"summary":"List event types","tags":["Webhooks"]}},"/webhooks/event-types/{event_type_name}":{"get":{"operationId":"GetWebhookEventType","parameters":[{"description":"Event type name (e.g. user.created)","in":"path","name":"event_type_name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.EventType"}}},"description":"OK"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Get event type","tags":["Webhooks"]}},"/webhooks/events":{"get":{"description":"Query events for inspection, walked by cursor (api-route-review D41): newest first, next_cursor passed as before to page back (null at the end), or as after to poll for what was created since, oldest first.","operationId":"ListWebhookEvents","parameters":[{"description":"Filter by event type","in":"query","name":"type","schema":{"type":"string"}},{"description":"Filter by organization (org_…)","in":"query","name":"organization_id","schema":{"type":"string"}},{"description":"RFC 3339: created at or after","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339: created before","in":"query","name":"to","schema":{"type":"string"}},{"description":"Cursor: events created after it, oldest first (polling)","in":"query","name":"after","schema":{"type":"string"}},{"description":"Cursor: older events, newest first","in":"query","name":"before","schema":{"type":"string"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.ListEventsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"}},"summary":"List events","tags":["Webhooks"]}},"/webhooks/events/{event_id}":{"get":{"operationId":"GetWebhookEvent","parameters":[{"description":"Event id (evt_…)","in":"path","name":"event_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Event"}}},"description":"OK"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Get event","tags":["Webhooks"]}},"/webhooks/subscriptions":{"get":{"description":"List webhook subscriptions with filtering and pagination. A token acting for a user through an actor (RFC 8693 act) sees each custom header's name with the value \"••••••\".","operationId":"ListWebhookSubscriptions","parameters":[{"description":"Filter by scope (project|organization)","in":"query","name":"scope","schema":{"type":"string"}},{"description":"Filter by status (active|paused|failing|disabled)","in":"query","name":"status","schema":{"type":"string"}},{"description":"Filter organization-scope subscriptions by organization (org_…)","in":"query","name":"organization_id","schema":{"type":"string"}},{"description":"Sort field; prefix with - for descending. Allowed: created_at, updated_at, status, url. Default: -created_at","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.ListSubscriptionsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List webhook subscriptions","tags":["Webhooks"]},"post":{"description":"Register an endpoint for event delivery. The Standard Webhooks signing secret (\"whsec_…\") is returned ONLY in this response — store it now. Omit scope (or pass \"project\") for a client subscription; scope \"organization\" with organization_id creates an organization self-service subscription.","operationId":"CreateWebhookSubscription","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.CreateSubscriptionRequest","description":"Create subscription payload","summary":"request"}}},"description":"Create subscription payload","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Subscription"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_unclaimed: the instance is unclaimed; claim this instance to subscribe to webhooks (pontive-spec 47)"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create webhook subscription","tags":["Webhooks"]}},"/webhooks/subscriptions/{subscription_id}":{"delete":{"operationId":"DeleteWebhookSubscription","parameters":[{"description":"Subscription id (whs_…)","in":"path","name":"subscription_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Delete webhook subscription","tags":["Webhooks"]},"get":{"description":"A token acting for a user through an actor (RFC 8693 act) sees each custom header's name with the value \"••••••\".","operationId":"GetWebhookSubscription","parameters":[{"description":"Subscription id (whs_…)","in":"path","name":"subscription_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Subscription"}}},"description":"OK"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Get webhook subscription","tags":["Webhooks"]},"patch":{"description":"Patch mutable fields (url, description, event_types, headers, metadata). A token acting for a user through an actor (RFC 8693 act) may not set headers (403 actor_refused: custom headers can hold credentials) and sees them masked (\"••••••\") in the response.","operationId":"UpdateWebhookSubscription","parameters":[{"description":"Subscription id (whs_…)","in":"path","name":"subscription_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.UpdateSubscriptionRequest","description":"Update payload","summary":"request"}}},"description":"Update payload","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Subscription"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_unclaimed: the instance is unclaimed; claim this instance to subscribe to webhooks (pontive-spec 47)"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Update webhook subscription","tags":["Webhooks"]}},"/webhooks/subscriptions/{subscription_id}/deliveries":{"get":{"description":"List a subscription's delivery attempts (full request/response records), walked by cursor as the events are (api-route-review D41). A token acting for a user through an actor (RFC 8693 act) sees the recorded request and response headers' names with the value \"••••••\".","operationId":"ListWebhookDeliveries","parameters":[{"description":"Subscription id (whs_…)","in":"path","name":"subscription_id","required":true,"schema":{"type":"string"}},{"description":"Filter by status (pending|inflight|success|failed|error)","in":"query","name":"status","schema":{"type":"string"}},{"description":"Filter by event (evt_…)","in":"query","name":"event_id","schema":{"type":"string"}},{"description":"RFC 3339: created at or after","in":"query","name":"from","schema":{"type":"string"}},{"description":"RFC 3339: created before","in":"query","name":"to","schema":{"type":"string"}},{"description":"Cursor: attempts made after it, oldest first (polling)","in":"query","name":"after","schema":{"type":"string"}},{"description":"Cursor: older attempts, newest first","in":"query","name":"before","schema":{"type":"string"}},{"description":"Items per page","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.ListDeliveriesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"}},"summary":"List deliveries","tags":["Webhooks"]}},"/webhooks/subscriptions/{subscription_id}/deliveries/{delivery_id}":{"get":{"description":"A token acting for a user through an actor (RFC 8693 act) sees the recorded request and response headers' names with the value \"••••••\".","operationId":"GetWebhookDelivery","parameters":[{"description":"Subscription id (whs_…)","in":"path","name":"subscription_id","required":true,"schema":{"type":"string"}},{"description":"Delivery id (del_…)","in":"path","name":"delivery_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Delivery"}}},"description":"OK"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Get delivery","tags":["Webhooks"]}},"/webhooks/subscriptions/{subscription_id}/deliveries/{delivery_id}/retry":{"post":{"description":"Manually re-attempt a failed or errored delivery: a fresh attempt is scheduled immediately and the prior attempt's retried_by is set to it. Allowed once per attempt — one that already has a successor (automatic rung or earlier manual retry) answers 409.","operationId":"RetryWebhookDelivery","parameters":[{"description":"Subscription id (whs_…)","in":"path","name":"subscription_id","required":true,"schema":{"type":"string"}},{"description":"Delivery id (del_…)","in":"path","name":"delivery_id","required":true,"schema":{"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Delivery"}}},"description":"Accepted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"}},"summary":"Retry delivery","tags":["Webhooks"]}},"/webhooks/subscriptions/{subscription_id}/pause":{"post":{"operationId":"PauseWebhookSubscription","parameters":[{"description":"Subscription id (whs_…)","in":"path","name":"subscription_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Subscription"}}},"description":"OK"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Pause webhook subscription","tags":["Webhooks"]}},"/webhooks/subscriptions/{subscription_id}/resume":{"post":{"description":"Reactivate a paused, failing, or disabled subscription.","operationId":"ResumeWebhookSubscription","parameters":[{"description":"Subscription id (whs_…)","in":"path","name":"subscription_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Subscription"}}},"description":"OK"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Resume webhook subscription","tags":["Webhooks"]}},"/webhooks/subscriptions/{subscription_id}/rotate-secret":{"post":{"description":"Mint a new Standard Webhooks signing secret. The previous secret keeps signing beside the new one for expire_previous_in seconds (0 to 604800, default 86400; 0 ends it now): during the overlap each delivery's webhook-signature header carries one signature per secret, so subscribers rotate with zero downtime. The NEW plaintext secret is returned only here.","operationId":"RotateWebhookSecret","parameters":[{"description":"Subscription id (whs_…)","in":"path","name":"subscription_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.RotateSecretRequest","description":"Rotation options","summary":"request"}}},"description":"Rotation options"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Subscription"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Rotate webhook signing secret","tags":["Webhooks"]}},"/webhooks/usage":{"get":{"description":"Billing-relevant delivery counters for a period (YYYY-MM; defaults to the current month).","operationId":"GetWebhookUsage","parameters":[{"description":"Billing period (YYYY-MM)","in":"query","name":"period","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_management-api_core_webhook_types.Usage"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"}},"summary":"Get webhook usage","tags":["Webhooks"]}}},"security":[{"X-Pontive-Instance-ID":[]},{"BearerAuth":[]}],"servers":[{"url":"https://api.{region}.pontive.com/v1","variables":{"region":{"default":"us","description":"The region your instance lives in","enum":["us","eu","au"]}}}],"tags":[{"name":"AccessKeys","x-displayName":"Access keys"},{"name":"AccountLinking","x-displayName":"Account linking"},{"name":"Agents","x-displayName":"Agents"},{"name":"Apps","x-displayName":"Apps"},{"name":"AuditLogs","x-displayName":"Audit logs"},{"name":"Authflows","x-displayName":"Authflows"},{"name":"Authflows document","x-displayName":"Authflows document"},{"name":"Authorization","x-displayName":"Authorization"},{"name":"Billing capability","x-displayName":"Billing capability"},{"name":"Billing catalog promotion","x-displayName":"Billing catalog promotion"},{"name":"Billing catalog rules","x-displayName":"Billing catalog rules"},{"name":"Billing checkout sessions","x-displayName":"Billing checkout sessions"},{"name":"Billing contracts","x-displayName":"Billing contracts"},{"name":"Billing credit notes","x-displayName":"Billing credit notes"},{"name":"Billing currencies","x-displayName":"Billing currencies"},{"name":"Billing customers","x-displayName":"Billing customers"},{"name":"Billing dunning","x-displayName":"Billing dunning"},{"name":"Billing entitlements","x-displayName":"Billing entitlements"},{"name":"Billing event types","x-displayName":"Billing event types"},{"name":"Billing events","x-displayName":"Billing events"},{"name":"Billing exchange rates","x-displayName":"Billing exchange rates"},{"name":"Billing features","x-displayName":"Billing features"},{"name":"Billing for the end customer","x-displayName":"Billing for the end customer"},{"name":"Billing grants","x-displayName":"Billing grants"},{"name":"Billing invoices","x-displayName":"Billing invoices"},{"name":"Billing ledger","x-displayName":"Billing ledger"},{"name":"Billing meters","x-displayName":"Billing meters"},{"name":"Billing packages","x-displayName":"Billing packages"},{"name":"Billing payment connections","x-displayName":"Billing payment connections"},{"name":"Billing payment methods","x-displayName":"Billing payment methods"},{"name":"Billing payments","x-displayName":"Billing payments"},{"name":"Billing pricing units","x-displayName":"Billing pricing units"},{"name":"Billing products","x-displayName":"Billing products"},{"name":"Billing rate cards","x-displayName":"Billing rate cards"},{"name":"Billing refunds and disputes","x-displayName":"Billing refunds and disputes"},{"name":"Billing settings","x-displayName":"Billing settings"},{"name":"Billing subject states","x-displayName":"Billing subject states"},{"name":"Billing tax","x-displayName":"Billing tax"},{"name":"Billing time machines","x-displayName":"Billing time machines"},{"name":"Billing usage","x-displayName":"Billing usage"},{"name":"Blueprints","x-displayName":"Blueprints"},{"name":"Branding document","x-displayName":"Branding document"},{"name":"Capabilities","x-displayName":"Capabilities"},{"name":"Delegations","x-displayName":"Delegations"},{"name":"Groups","x-displayName":"Groups"},{"name":"IdentityPolicy","x-displayName":"Identity policy"},{"name":"Localization","x-displayName":"Localization"},{"name":"Me","x-displayName":"Me"},{"name":"MigrationSources","x-displayName":"Migration sources"},{"name":"OAuthProviders","x-displayName":"OAuth providers"},{"name":"Organizations","x-displayName":"Organizations"},{"name":"PasswordPolicy","x-displayName":"Password policy"},{"name":"Permissions","x-displayName":"Permissions"},{"name":"PersonalAccessTokens","x-displayName":"Personal access tokens"},{"name":"Reference data","x-displayName":"Reference data"},{"name":"RegisteredAPIs","x-displayName":"Registered APIs"},{"name":"Resources","x-displayName":"Resources"},{"name":"ResourceTypes","x-displayName":"Resource types"},{"name":"Roles","x-displayName":"Roles"},{"name":"Root","x-displayName":"Root"},{"name":"ServiceAccounts","x-displayName":"Service accounts"},{"name":"SharedCredentials","x-displayName":"Shared credentials"},{"name":"ThirdPartyClients","x-displayName":"Third-party clients"},{"name":"TrustedIssuers","x-displayName":"Trusted issuers"},{"name":"UserImports","x-displayName":"User imports"},{"name":"Users","x-displayName":"Users"},{"name":"Webhooks","x-displayName":"Webhooks"},{"name":"Widgets","x-displayName":"Widgets"}]}