{"components":{"parameters":{"groupID":{"in":"path","name":"group_id","required":true,"schema":{"$ref":"#/components/schemas/GroupID"}},"identityID":{"in":"path","name":"identity_id","required":true,"schema":{"$ref":"#/components/schemas/IdentityID"}},"includeIdentity":{"description":"Only return resources related to this identity.","in":"query","name":"include_identity","schema":{"$ref":"#/components/schemas/IdentityID"}},"pageItems":{"in":"query","name":"page_items","schema":{"default":100,"minimum":1,"type":"integer"}},"pageNumber":{"in":"query","name":"page","schema":{"default":1,"minimum":1,"type":"integer"}},"policyID":{"in":"path","name":"policy_id","required":true,"schema":{"$ref":"#/components/schemas/UserPolicyID"}}},"responses":{"badRequest":{"content":{"application/json":{"examples":{"incorrectInput":{"value":{"cause":"input was badly formed"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Parameters do not meet requirements."},"forbidden":{"content":{"application/json":{"examples":{"sessionExpired":{"value":{"cause":"cannot access selected resource"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access to the requested resource is forbidden."},"notFound":{"content":{"application/json":{"examples":{"sessionExpired":{"value":{"cause":"resource not found"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Resource not found."},"unauthenticated":{"content":{"application/json":{"examples":{"sessionExpired":{"value":{"cause":"session token expired"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access to the requested resource requires authentication."}},"schemas":{"ChangeEmailTicket":{"properties":{"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"issued_at":{"format":"date-time","type":"string"}},"required":["id","issued_at","expires_at"],"type":"object"},"ChangeEmailTicketRequest":{"properties":{"new_email_address":{"type":"string"}},"required":["new_email_address"],"type":"object"},"ChangePasswordTicket":{"properties":{"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"issued_at":{"format":"date-time","type":"string"},"web_verify_url":{"format":"url","type":"string"}},"required":["id","issued_at","expires_at","web_verify_url"],"type":"object"},"ChangePasswordTicketRequest":{"properties":{"current_password":{"format":"password","type":"string"},"identifier_type":{"enum":["email_address"],"type":"string"},"new_password":{"format":"password","type":"string"},"via_email":{"description":"Send the password request to the user identifier email address. The address must be verified.","type":"boolean"}},"required":["identifier_type","current_password","new_password"],"type":"object"},"EmailVerificationTicket":{"properties":{"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"issued_at":{"format":"date-time","type":"string"}},"required":["id","issued_at","expires_at"],"type":"object"},"EmailVerificationTicketRequest":{"properties":{"email_address":{"type":"string"}},"required":["email_address"],"type":"object"},"Error":{"properties":{"cause":{"type":"string"}},"required":["cause"],"type":"object"},"Group":{"properties":{"id":{"$ref":"#/components/schemas/GroupID"}},"required":["id"],"type":"object"},"GroupID":{"type":"string"},"Identity":{"properties":{"created_at":{"format":"date-time","type":"string"},"credentials":{"additionalProperties":{"$ref":"#/components/schemas/IdentityCredentials"},"example":{"email+password":{"created_at":"2024-01-01T00:00:00Z","revision":1,"updated_at":"2024-01-01T00:00:00Z"}},"type":"object"},"id":{"$ref":"#/components/schemas/IdentityID"},"provider":{"$ref":"#/components/schemas/IdentityProvider"},"traits":{"example":{"email_address":"john.doe@domain.tld","given_name":"John","locale":"en-US"},"type":"object"}},"required":["id","created_at"],"type":"object"},"IdentityCredentials":{"properties":{"created_at":{"format":"date-time","type":"string"},"revision":{"type":"integer"},"show_secret_once":{"description":"Show generated secret.\nWill only be shown when creating new credentials.","type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["created_at","updated_at","revision"],"type":"object"},"IdentityID":{"type":"string"},"IdentityProvider":{"additionalProperties":true,"properties":{"type":{"type":"string"}},"required":["type"],"type":"object"},"PatchRequestWithoutTestCopyMove":{"description":"This schema follows RFC6902 except for the\n`test`, `copy` and `move` operations.","items":{"oneOf":[{"additionalProperties":false,"properties":{"op":{"description":"The operation to perform.","enum":["add","replace"],"type":"string"},"path":{"description":"A JSON Pointer path.","type":"string"},"value":{"description":"The value to add or replace."}},"required":["op","path","value"]},{"additionalProperties":false,"properties":{"op":{"description":"The operation to perform.","enum":["remove"],"type":"string"},"path":{"description":"A JSON Pointer path.","type":"string"}},"required":["op","path"]}]},"title":"Simple JSON-Patch Request","type":"array"},"RegistrationTicket":{"properties":{"expires_at":{"format":"date-time","type":"string"},"groups":{"items":{"$ref":"#/components/schemas/GroupID"},"type":"array"},"id":{"type":"string"},"identifier":{"type":"string"},"identifier_type":{"enum":["email_address"],"type":"string"},"issued_at":{"format":"date-time","type":"string"},"web_registry_url":{"format":"url","type":"string"}},"required":["id","issued_at","expires_at","groups","identifier","identifier_type","web_registry_url"],"type":"object"},"Session":{"properties":{"active":{"type":"boolean"},"expires_at":{"format":"date-time","type":"string"},"identity":{"$ref":"#/components/schemas/Identity"},"issued_at":{"format":"date-time","type":"string"},"scopes":{"items":{"type":"string"},"type":"array"},"web_info":{"$ref":"#/components/schemas/SessionWebInformation"}},"required":["active","issued_at","expires_at","scopes"],"type":"object"},"SessionWebInformation":{"description":"Information regarding the web session used to create this session.","properties":{"profile_url":{"type":"string"}},"required":["profile_url"],"type":"object"},"UserPolicy":{"properties":{"global":{"type":"boolean"},"id":{"$ref":"#/components/schemas/UserPolicyID"},"revision":{"type":"integer"},"sources":{"additionalProperties":{"$ref":"#/components/schemas/UserPolicySource"},"example":{"en":{"documents":{},"localized_name":"Privacy Policy","revision":3}}},"updated_at":{"format":"date-time","type":"string"}},"required":["id","revision","updated_at","sources"],"type":"object"},"UserPolicyID":{"type":"string"},"UserPolicySource":{"properties":{"documents":{"additionalProperties":{"$ref":"#/components/schemas/UserPolicySourceFormat"},"example":{"markdown":{"url":"https://app.tld/tos.md"},"pdf":{"url":"https://app.tld/legal-en.pdf"}}},"localized_name":{"type":"string"}},"required":["localized_name","documents"],"type":"object"},"UserPolicySourceFormat":{"properties":{"url":{"type":"string"}},"required":["url"],"type":"object"},"WebConfiguration":{"properties":{"background_url":{"type":"string"},"cookie_consent":{"$ref":"#/components/schemas/WebConfigurationCookieConsent"},"favicon_url":{"type":"string"},"features":{"items":{"type":"string"},"type":"array"},"logo_url":{"type":"string"},"theme":{"type":"string"},"title":{"type":"string"}},"type":"object"},"WebConfigurationCookieConsent":{"properties":{"cookie_name":{"type":"string"},"user_policy_id":{"type":"string"}},"type":"object"},"WebLoginFlow":{"oneOf":[{"$ref":"#/components/schemas/WebLoginFlowDone"},{"$ref":"#/components/schemas/WebLoginFlowError"},{"$ref":"#/components/schemas/WebLoginFlowActionRequired"}]},"WebLoginFlowAction":{"oneOf":[{"$ref":"#/components/schemas/WebLoginFlowActionAuthenticate"},{"$ref":"#/components/schemas/WebLoginFlowActionAuthorize"},{"$ref":"#/components/schemas/WebLoginFlowActionAcceptUserPolicy"},{"$ref":"#/components/schemas/WebLoginFlowActionVerifyEmailAddress"}]},"WebLoginFlowActionAcceptUserPolicy":{"properties":{"type":{"enum":["accept_user_policy"],"type":"string"},"user_policies":{"items":{"$ref":"#/components/schemas/UserPolicyID"},"type":"array"}},"required":["type","user_policies"],"type":"object"},"WebLoginFlowActionAuthenticate":{"properties":{"methods":{"items":{"$ref":"#/components/schemas/WebLoginFlowActionAuthenticateMethod"},"type":"array"},"type":{"enum":["authenticate"],"type":"string"}},"required":["type","methods"],"type":"object"},"WebLoginFlowActionAuthenticateMethod":{"oneOf":[{"$ref":"#/components/schemas/WebLoginFlowActionAuthenticateMethodPassword"}]},"WebLoginFlowActionAuthenticateMethodPassword":{"properties":{"identifier":{"enum":["email_address"],"type":"string"},"method":{"enum":["password"],"type":"string"}},"required":["method","identifier"],"type":"object"},"WebLoginFlowActionAuthorize":{"properties":{"type":{"enum":["authorize"],"type":"string"}},"required":["type"],"type":"object"},"WebLoginFlowActionRequired":{"properties":{"action":{"$ref":"#/components/schemas/WebLoginFlowAction"},"id":{"type":"string"},"status":{"enum":["action_required"],"type":"string"}},"required":["id","status","action"],"type":"object"},"WebLoginFlowActionVerifyEmailAddress":{"description":"Login flow requires the user to verify their email address.","properties":{"type":{"enum":["verify_email_address"],"type":"string"},"verification_email_sent":{"description":"Indicates whether the email verification link was sent to the user's email address.","type":"boolean"},"verification_email_sent_at":{"description":"The date and time the email verification link was sent to the user's email address.\nOnly present when `verification_email_sent` is `true`.","format":"date-time","type":"string"}},"required":["type","verification_email_sent"],"type":"object"},"WebLoginFlowDone":{"properties":{"id":{"type":"string"},"status":{"enum":["done"],"type":"string"}},"required":["id","status"],"type":"object"},"WebLoginFlowError":{"properties":{"description":{"type":"string"},"error":{"enum":["precondition_failed","wrong_credentials","missing_permission","wrong_user_policies"],"type":"string"},"id":{"type":"string"},"status":{"enum":["error"],"type":"string"}},"required":["id","status","error","description"],"type":"object"},"WebLoginFlowResult":{"properties":{"id":{"type":"string"},"return_to":{"format":"url","type":"string"},"session":{"$ref":"#/components/schemas/Session"}},"required":["id","session"],"type":"object"},"WebLoginFlowUpdate":{"oneOf":[{"$ref":"#/components/schemas/WebLoginFlowUpdatePasswordAuthentication"},{"$ref":"#/components/schemas/WebLoginFlowUpdateAuthorize"},{"$ref":"#/components/schemas/WebLoginFlowUpdateAcceptUserPolicy"},{"$ref":"#/components/schemas/WebLoginFlowUpdateVerifyEmailAddress"}]},"WebLoginFlowUpdateAcceptUserPolicy":{"properties":{"type":{"enum":["accept_user_policy"],"type":"string"},"user_policies":{"items":{"$ref":"#/components/schemas/UserPolicyID"},"type":"array"}},"required":["type","user_policies"],"type":"object"},"WebLoginFlowUpdateAuthorize":{"properties":{"type":{"enum":["authorize"],"type":"string"}},"required":["type"],"type":"object"},"WebLoginFlowUpdatePasswordAuthentication":{"properties":{"identifier":{"type":"string"},"password":{"format":"password","type":"string"},"type":{"enum":["password_auth"],"type":"string"}},"required":["type","identifier","password"],"type":"object"},"WebLoginFlowUpdateVerifyEmailAddress":{"properties":{"send_email":{"description":"Send the link to the user email address.","type":"boolean"},"type":{"enum":["verify_email_address"],"type":"string"}},"required":["type"],"type":"object"},"WebLogoutFlow":{"oneOf":[{"$ref":"#/components/schemas/WebLogoutFlowDone"},{"$ref":"#/components/schemas/WebLogoutFlowError"}]},"WebLogoutFlowDone":{"properties":{"id":{"type":"string"},"status":{"enum":["done"],"type":"string"}},"required":["id","status"],"type":"object"},"WebLogoutFlowError":{"properties":{"description":{"type":"string"},"error":{"type":"string"},"id":{"type":"string"},"status":{"enum":["error"],"type":"string"}},"required":["id","status","error","description"],"type":"object"},"WebLogoutFlowResult":{"properties":{"id":{"type":"string"},"return_to":{"format":"url","type":"string"},"session":{"$ref":"#/components/schemas/Session"}},"required":["id","session"],"type":"object"},"WebRegistrationDone":{"properties":{"id":{"type":"string"},"status":{"enum":["done"],"type":"string"}},"required":["id","status"],"type":"object"},"WebRegistrationError":{"properties":{"description":{"type":"string"},"error":{"enum":["password_requirements","policy_requirements"],"type":"string"},"id":{"type":"string"},"status":{"enum":["error"],"type":"string"}},"required":["id","status","error","description"],"type":"object"},"WebRegistrationFlow":{"oneOf":[{"$ref":"#/components/schemas/WebRegistrationDone"},{"$ref":"#/components/schemas/WebRegistrationFlowActionRequired"},{"$ref":"#/components/schemas/WebRegistrationError"}]},"WebRegistrationFlowAction":{"oneOf":[{"$ref":"#/components/schemas/WebRegistrationFlowFormPasswordCredentials"}]},"WebRegistrationFlowActionRequired":{"properties":{"action":{"$ref":"#/components/schemas/WebRegistrationFlowAction"},"id":{"type":"string"},"status":{"enum":["action_required"],"type":"string"}},"required":["id","status","action"],"type":"object"},"WebRegistrationFlowFormPasswordCredentials":{"properties":{"identifier":{"type":"string"},"identifier_type":{"enum":["email_address"],"type":"string"},"type":{"enum":["password_form"],"type":"string"},"user_policies":{"items":{"$ref":"#/components/schemas/UserPolicyID"},"type":"array"}},"required":["type","identifier","identifier_type"],"type":"object"},"WebRegistrationFlowResult":{"properties":{"id":{"type":"string"},"return_to":{"format":"url","type":"string"}},"required":["id"],"type":"object"},"WebRegistrationFlowSubmitFormPasswordCredentials":{"properties":{"accept_user_policies":{"items":{"$ref":"#/components/schemas/UserPolicyID"},"type":"array"},"password":{"format":"password","type":"string"},"type":{"enum":["password_form"],"type":"string"}},"required":["type","password"],"type":"object"},"WebRegistrationFlowUpdate":{"oneOf":[{"$ref":"#/components/schemas/WebRegistrationFlowSubmitFormPasswordCredentials"}]}},"securitySchemes":{"cookieAuth":{"description":"UI authentication. Scopes will still be enforced.","in":"header","name":"session","type":"apiKey"},"oAuth2":{"flows":{"authorizationCode":{"authorizationUrl":"https://auth.daila.app/oauth2/authorize","scopes":{"iam:group:read":"Read or list groups","iam:id:create":"Create identities","iam:id:delete":"Delete identities","iam:id:read":"Read or list identities","iam:id:update":"Update identities","iam:session:read":"Read sessions","openid":"OpenID standard scope"},"tokenUrl":"https://auth.daila.app/oauth2/token"}},"type":"oauth2"}}},"info":{"description":"This specification describes the public endpoints of ServerSage Heimdall IAM system.","title":"ServerSage Heimdall API","version":"1.5.0"},"openapi":"3.0.3","paths":{"/ui/v1/web-config":{"get":{"operationId":"GetUiV1WebConfig","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebConfiguration"}}},"description":"Ok."}},"security":[],"summary":"Get web configuration","tags":["ui"]},"x-endpoint":"ui"},"/ui/v1/web-favicon":{"get":{"operationId":"GetUiV1WebFavicon","responses":{"200":{"content":{"application/octet-stream":{}},"description":"Ok."}},"security":[],"summary":"Get web favicon","tags":["ui"]},"x-endpoint":"ui"},"/ui/v1/web-login-flow":{"get":{"operationId":"GetUiV1WebLoginFlow","parameters":[{"in":"query","name":"flow_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebLoginFlow"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"404":{"$ref":"#/components/responses/notFound"}},"security":[],"summary":"Get new or existing login flow","tags":["ui"]},"patch":{"operationId":"PatchUiV1WebLoginFlow","parameters":[{"in":"query","name":"flow_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebLoginFlowUpdate"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebLoginFlow"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"404":{"$ref":"#/components/responses/notFound"}},"security":[],"summary":"Update login flow","tags":["ui"]},"post":{"operationId":"PostUiV1WebLoginFlow","parameters":[{"in":"query","name":"flow_id","required":true,"schema":{"type":"string"}},{"in":"query","name":"default_redirect_uri","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebLoginFlowResult"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"}},"security":[],"summary":"Submit login flow","tags":["ui"]},"x-endpoint":"ui"},"/ui/v1/web-logout-flow":{"get":{"operationId":"GetUiV1WebLogoutFlow","parameters":[{"in":"query","name":"flow_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebLogoutFlow"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"404":{"$ref":"#/components/responses/notFound"}},"security":[],"summary":"Get new or existing logout flow","tags":["ui"]},"post":{"operationId":"PostUiV1WebLogoutFlow","parameters":[{"in":"query","name":"flow_id","required":true,"schema":{"type":"string"}},{"in":"query","name":"default_redirect_uri","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebLogoutFlowResult"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"404":{"$ref":"#/components/responses/notFound"}},"security":[],"summary":"Submit logout flow","tags":["ui"]},"x-endpoint":"ui"},"/ui/v1/web-registration-flow":{"get":{"operationId":"GetUiV1WebRegistrationFlow","parameters":[{"in":"query","name":"flow_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebRegistrationFlow"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"404":{"$ref":"#/components/responses/notFound"}},"security":[],"summary":"Get new or existing registration flow","tags":["ui"]},"patch":{"operationId":"PatchUiV1WebRegistrationFlow","parameters":[{"in":"query","name":"flow_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebRegistrationFlowUpdate"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebRegistrationFlow"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"404":{"$ref":"#/components/responses/notFound"}},"security":[],"summary":"Update registration flow","tags":["ui"]},"post":{"operationId":"PostUiV1WebRegistrationFlow","parameters":[{"in":"query","name":"flow_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebRegistrationFlowResult"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"}},"security":[],"summary":"Submit registration flow","tags":["ui"]},"x-endpoint":"ui"},"/v1/groups":{"get":{"operationId":"GetV1Groups","parameters":[{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageItems"},{"$ref":"#/components/parameters/includeIdentity"}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Group"},"type":"array"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"security":[{"cookieAuth":["iam:group:read"]},{"oAuth2":["iam:group:read"]}],"summary":"Get group collection.","tags":["identities"]},"x-endpoint":"identity"},"/v1/groups/{group_id}":{"get":{"operationId":"GetV1GroupsGroupId","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"}},"security":[{"cookieAuth":["iam:group:read"]},{"oAuth2":["iam:group:read"]}],"summary":"Get group by ID","tags":["identities"]},"parameters":[{"$ref":"#/components/parameters/groupID"}],"x-endpoint":"identity"},"/v1/groups/{group_id}/identities":{"delete":{"operationId":"DeleteV1GroupsGroupIdIdentities","parameters":[{"in":"query","name":"identities","required":true,"schema":{"items":{"$ref":"#/components/schemas/IdentityID"},"type":"array"}}],"responses":{"204":{"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"}},"security":[{"cookieAuth":["iam:group:update"]},{"oAuth2":["iam:group:update"]}],"summary":"Remove identities from group","tags":["identities"]},"parameters":[{"$ref":"#/components/parameters/groupID"}],"put":{"operationId":"PutV1GroupsGroupIdIdentities","parameters":[{"in":"query","name":"identities","required":true,"schema":{"items":{"$ref":"#/components/schemas/IdentityID"},"type":"array"}}],"responses":{"204":{"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"}},"security":[{"cookieAuth":["iam:group:update"]},{"oAuth2":["iam:group:update"]}],"summary":"Add identities to group","tags":["identities"]},"x-endpoint":"identity"},"/v1/identities":{"get":{"operationId":"GetV1Identities","parameters":[{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageItems"},{"description":"Only return identities assigned to this group.","in":"query","name":"include_group","schema":{"$ref":"#/components/schemas/GroupID"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Identity"},"type":"array"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"security":[{"cookieAuth":["iam:id:read"]},{"oAuth2":["iam:id:read"]}],"summary":"Search identities","tags":["identities"]},"x-endpoint":"identity"},"/v1/identities/{identity_id}":{"delete":{"operationId":"DeleteV1IdentitiesIdentityId","responses":{"204":{"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"security":[{"cookieAuth":["iam:id:delete"]},{"oAuth2":["iam:id:delete"]}],"summary":"Disable identity","tags":["identities"]},"get":{"operationId":"GetV1IdentitiesIdentityId","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Identity"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"}},"security":[{"cookieAuth":["iam:id:read"]},{"oAuth2":["iam:id:read"]}],"summary":"Get identity by ID","tags":["identities"]},"parameters":[{"$ref":"#/components/parameters/identityID"}],"patch":{"operationId":"PatchV1IdentitiesIdentityId","requestBody":{"content":{"application/json-patch+json":{"examples":{"changeFamilyName":{"value":[{"op":"replace","path":"/traits/family_name","value":"Doe"}]},"changeGivenName":{"value":[{"op":"replace","path":"/traits/given_name","value":"John"}]},"changeLocale":{"value":[{"op":"replace","path":"/traits/locale","value":"en"}]},"changePhoneNumber":{"value":[{"op":"replace","path":"/traits/phone_number","value":"+11 123 123 1234"}]}},"schema":{"$ref":"#/components/schemas/PatchRequestWithoutTestCopyMove"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Identity"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"},"404":{"$ref":"#/components/responses/notFound"}},"security":[{"cookieAuth":["iam:id:update"]},{"oAuth2":["iam:id:update"]}],"summary":"Modify identity","tags":["identities"]},"x-endpoint":"identity"},"/v1/sessions":{"get":{"operationId":"GetV1Sessions","parameters":[{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageItems"},{"$ref":"#/components/parameters/includeIdentity"}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Session"},"type":"array"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"security":[{"cookieAuth":["iam:session:read"]},{"oAuth2":["iam:session:read"]}],"summary":"Get active sessions","tags":["sessions"]},"x-endpoint":"session"},"/v1/sessions/me":{"delete":{"operationId":"DeleteV1SessionsMe","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}},"description":"Ok."},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"summary":"Invalidate current session","tags":["sessions"]},"get":{"operationId":"GetV1SessionsMe","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}},"description":"Ok."},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"summary":"Get current session","tags":["sessions"]},"x-endpoint":"session"},"/v1/tickets/callback":{"get":{"description":"This redirects the client to the appropriate endpoint.","operationId":"GetV1TicketsCallback","parameters":[{"in":"query","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"302":{"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"}},"security":[],"summary":"Ticket submission callback","tags":["tickets"]},"x-endpoint":"identity"},"/v1/tickets/email-change":{"post":{"description":"Create an email address change request ticket. The current email address must be verified in order to work. An email will be sent to confirm the request.","operationId":"PostV1TicketsEmailChange","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeEmailTicketRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeEmailTicket"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"security":[{"cookieAuth":["iam:id:update"]},{"oAuth2":["iam:id:update"]}],"summary":"Create email change request","tags":["tickets"]},"x-endpoint":"identity"},"/v1/tickets/email-verification":{"post":{"description":"Create an email verification request ticket.","operationId":"PostV1TicketsEmailVerification","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailVerificationTicketRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailVerificationTicket"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"security":[{"cookieAuth":["iam:id:update"]},{"oAuth2":["iam:id:update"]}],"summary":"Create email verification request","tags":["tickets"]},"x-endpoint":"identity"},"/v1/tickets/password-change":{"post":{"operationId":"PostV1TicketsPasswordChange","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordTicketRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordTicket"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"security":[{"cookieAuth":["iam:id:update"]},{"oAuth2":["iam:id:update"]}],"summary":"Create password request ticket","tags":["tickets"]},"x-endpoint":"identity"},"/v1/tickets/registration":{"get":{"operationId":"GetV1TicketsRegistration","parameters":[{"in":"query","name":"identifier","required":true,"schema":{"type":"string"}},{"in":"query","name":"identifier_type","required":true,"schema":{"enum":["email_address"],"type":"string"}},{"in":"query","name":"redirect_uri","schema":{"format":"uri","type":"string"}},{"in":"query","name":"groups","schema":{"items":{"$ref":"#/components/schemas/GroupID"},"type":"array"}},{"in":"query","name":"via_email","schema":{"description":"Send the registration request to the identifier email address.","type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationTicket"}}},"description":"Ok."},"400":{"$ref":"#/components/responses/badRequest"},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"security":[{"cookieAuth":["iam:id:create"]},{"oAuth2":["iam:id:create"]}],"summary":"Get new registration ticket","tags":["tickets"]},"x-endpoint":"identity"},"/v1/user-policies/{policy_id}":{"get":{"operationId":"GetV1UserPoliciesPolicyId","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPolicy"}}},"description":"Ok."},"401":{"$ref":"#/components/responses/unauthenticated"},"403":{"$ref":"#/components/responses/forbidden"}},"security":[],"summary":"Get policy","tags":["policies"]},"parameters":[{"$ref":"#/components/parameters/policyID"}],"x-endpoint":"identity"}},"security":[{"oAuth2":[]},{"cookieAuth":[]}],"servers":[{"url":"https://auth.daila.app"}],"tags":[{"name":"ui"},{"name":"identities"},{"name":"sessions"},{"name":"policies"},{"name":"tickets"}]}
