{
  "components": {
    "schemas": {
      "AccessibleOidcClientDto": {
        "properties": {
          "clientType": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "hasDarkLogo": {
            "type": "boolean"
          },
          "hasLogo": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "lastUsedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "launchURL": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "requiresReauthentication": {
            "type": "boolean"
          }
        },
        "required": [
          "clientType",
          "description",
          "hasDarkLogo",
          "hasLogo",
          "id",
          "lastUsedAt",
          "launchURL",
          "name",
          "requiresReauthentication"
        ],
        "type": "object"
      },
      "AppConfigUpdateDto": {
        "properties": {
          "allowOwnAccountEdit": {
            "type": "string"
          },
          "allowUserSignups": {
            "enum": [
              "disabled",
              "withToken",
              "open"
            ],
            "type": "string"
          },
          "appName": {
            "maxLength": 30,
            "minLength": 1,
            "type": "string"
          },
          "appearance": {
            "type": "string"
          },
          "autoCreateOidcClientSecret": {
            "type": "string"
          },
          "cimdUrlAllowlist": {
            "type": "string"
          },
          "emailApiKeyExpirationEnabled": {
            "type": "string"
          },
          "emailLoginNotificationMode": {
            "enum": [
              "disabled",
              "always",
              "ipAndUserAgent",
              "browserRecognition"
            ],
            "type": "string"
          },
          "emailOneTimeAccessAsAdminEnabled": {
            "type": "string"
          },
          "emailOneTimeAccessAsUnauthenticatedEnabled": {
            "type": "string"
          },
          "emailVerification": {
            "enum": [
              "disabled",
              "optional",
              "required"
            ],
            "type": "string"
          },
          "emailsVerified": {
            "type": "string"
          },
          "enabledFeatures": {
            "type": "string"
          },
          "homePageUrl": {
            "type": "string"
          },
          "ldapAdminGroupName": {
            "type": "string"
          },
          "ldapAttributeGroupMember": {
            "type": "string"
          },
          "ldapAttributeGroupName": {
            "type": "string"
          },
          "ldapAttributeGroupUniqueIdentifier": {
            "type": "string"
          },
          "ldapAttributeUserDisplayName": {
            "type": "string"
          },
          "ldapAttributeUserEmail": {
            "type": "string"
          },
          "ldapAttributeUserFirstName": {
            "type": "string"
          },
          "ldapAttributeUserLastName": {
            "type": "string"
          },
          "ldapAttributeUserProfilePicture": {
            "type": "string"
          },
          "ldapAttributeUserUniqueIdentifier": {
            "type": "string"
          },
          "ldapAttributeUserUsername": {
            "type": "string"
          },
          "ldapBase": {
            "type": "string"
          },
          "ldapBindDn": {
            "type": "string"
          },
          "ldapBindPassword": {
            "type": "string"
          },
          "ldapEnabled": {
            "type": "string"
          },
          "ldapSkipCertVerify": {
            "type": "string"
          },
          "ldapSoftDeleteUsers": {
            "type": "string"
          },
          "ldapUrl": {
            "type": "string"
          },
          "ldapUserGroupSearchFilter": {
            "type": "string"
          },
          "ldapUserSearchFilter": {
            "type": "string"
          },
          "requireUserEmail": {
            "type": "string"
          },
          "sessionDuration": {
            "type": "string"
          },
          "signupDefaultCustomClaims": {
            "type": "string"
          },
          "signupDefaultUserGroupIDs": {
            "type": "string"
          },
          "smtpFrom": {
            "type": "string"
          },
          "smtpHost": {
            "type": "string"
          },
          "smtpPassword": {
            "type": "string"
          },
          "smtpPort": {
            "type": "string"
          },
          "smtpSkipCertVerify": {
            "type": "string"
          },
          "smtpTls": {
            "enum": [
              "none",
              "starttls",
              "tls"
            ],
            "type": "string"
          },
          "smtpUser": {
            "type": "string"
          },
          "webauthnAllowSyncedPasskeys": {
            "type": "string"
          },
          "webauthnAuthenticatorAttachment": {
            "enum": [
              "any",
              "platform",
              "cross-platform"
            ],
            "type": "string"
          },
          "webauthnUserVerification": {
            "enum": [
              "required",
              "preferred"
            ],
            "type": "string"
          }
        },
        "required": [
          "appName",
          "sessionDuration",
          "homePageUrl",
          "emailsVerified",
          "allowOwnAccountEdit",
          "allowUserSignups",
          "requireUserEmail",
          "smtpTls",
          "smtpSkipCertVerify",
          "ldapEnabled",
          "ldapSkipCertVerify",
          "ldapSoftDeleteUsers",
          "webauthnUserVerification",
          "webauthnAllowSyncedPasskeys",
          "webauthnAuthenticatorAttachment",
          "emailOneTimeAccessAsAdminEnabled",
          "emailOneTimeAccessAsUnauthenticatedEnabled",
          "emailLoginNotificationMode",
          "emailApiKeyExpirationEnabled",
          "emailVerification",
          "autoCreateOidcClientSecret"
        ],
        "type": "object"
      },
      "AppConfigVariableDto": {
        "properties": {
          "envOverride": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "key": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "envOverride",
          "isPublic",
          "key",
          "type",
          "value"
        ],
        "type": "object"
      },
      "AuthorizedOidcClientDto": {
        "properties": {
          "client": {
            "$ref": "#/components/schemas/OidcClientMetaDataDto"
          },
          "lastUsedAt": {
            "format": "date-time",
            "type": "string"
          },
          "scope": {
            "type": "string"
          }
        },
        "required": [
          "client",
          "lastUsedAt",
          "scope"
        ],
        "type": "object"
      },
      "ClaimMappingsPreview": {
        "properties": {
          "accessToken": {
            "additionalProperties": {},
            "type": [
              "object",
              "null"
            ]
          },
          "idToken": {
            "additionalProperties": {},
            "type": [
              "object",
              "null"
            ]
          },
          "userInfo": {
            "additionalProperties": {},
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "accessToken",
          "idToken",
          "userInfo"
        ],
        "type": "object"
      },
      "CustomClaimCreateDto": {
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "value"
        ],
        "type": "object"
      },
      "CustomClaimDto": {
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "value"
        ],
        "type": "object"
      },
      "CustomScopeDto": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "description": {
            "maxLength": 1000,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "key": {
            "maxLength": 128,
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "type": "string"
          },
          "policies": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "key",
          "name",
          "description"
        ],
        "type": "object"
      },
      "EmailVerificationDto": {
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "type": "object"
      },
      "ErrorDto": {
        "properties": {
          "code": {
            "type": "string"
          },
          "details": {
            "additionalProperties": {},
            "type": [
              "object",
              "null"
            ]
          },
          "error": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "error"
        ],
        "type": "object"
      },
      "OidcClaimMappingDto": {
        "properties": {
          "accessToken": {
            "type": "boolean"
          },
          "claimName": {
            "maxLength": 255,
            "type": "string"
          },
          "idToken": {
            "type": "boolean"
          },
          "scope": {
            "items": {
              "maxLength": 128,
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "sourceType": {
            "enum": [
              "user_field",
              "custom_claim",
              "static"
            ],
            "type": "string"
          },
          "sourceValue": {
            "maxLength": 255,
            "type": "string"
          },
          "userInfo": {
            "type": "boolean"
          }
        },
        "required": [
          "claimName",
          "sourceType",
          "sourceValue"
        ],
        "type": "object"
      },
      "OidcClaimMappingPolicyDto": {
        "properties": {
          "claimCount": {
            "type": "integer"
          },
          "claimMappings": {
            "items": {
              "$ref": "#/components/schemas/OidcClaimMappingDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "clientCount": {
            "format": "int64",
            "type": "integer"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "isDefault": {
            "type": "boolean"
          },
          "name": {
            "maxLength": 255,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "OidcClaimMappingPolicyMetadataDto": {
        "properties": {
          "claimCount": {
            "type": "integer"
          },
          "clientCount": {
            "format": "int64",
            "type": "integer"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "isDefault": {
            "type": "boolean"
          },
          "name": {
            "maxLength": 255,
            "type": "string"
          }
        },
        "required": [
          "claimCount",
          "clientCount",
          "createdAt",
          "id",
          "isDefault",
          "name"
        ],
        "type": "object"
      },
      "OidcClientCreateDto": {
        "properties": {
          "accessTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "backchannelLogoutURL": {
            "type": "string"
          },
          "callbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "claimMappingPolicyId": {
            "type": "string"
          },
          "credentials": {
            "$ref": "#/components/schemas/OidcClientCredentialsDto"
          },
          "darkLogoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "maxLength": 150,
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "hasDarkLogo": {
            "type": "boolean"
          },
          "hasLogo": {
            "type": "boolean"
          },
          "id": {
            "maxLength": 128,
            "minLength": 2,
            "type": "string"
          },
          "isGroupRestricted": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "launchURL": {
            "type": [
              "string",
              "null"
            ]
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "logoutCallbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "maxLength": 50,
            "type": "string"
          },
          "pkceEnabled": {
            "type": "boolean"
          },
          "refreshTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "requiresPushedAuthorizationRequests": {
            "type": "boolean"
          },
          "requiresReauthentication": {
            "type": "boolean"
          },
          "skipConsent": {
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "OidcClientCreatedDto": {
        "properties": {
          "accessTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "allowedUserGroups": {
            "items": {
              "$ref": "#/components/schemas/UserGroupMinimalDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "backchannelLogoutURL": {
            "type": "string"
          },
          "callbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "claimMappingPolicyId": {
            "type": "string"
          },
          "clientType": {
            "type": "string"
          },
          "createdSecret": {
            "$ref": "#/components/schemas/OidcClientSecretCreatedDto"
          },
          "credentials": {
            "$ref": "#/components/schemas/OidcClientCredentialsDto"
          },
          "description": {
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "hasDarkLogo": {
            "type": "boolean"
          },
          "hasLogo": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "isGroupRestricted": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "launchURL": {
            "type": [
              "string",
              "null"
            ]
          },
          "logoutCallbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "pkceEnabled": {
            "type": "boolean"
          },
          "pkceSupported": {
            "type": "boolean"
          },
          "refreshTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "requiresPushedAuthorizationRequests": {
            "type": "boolean"
          },
          "requiresReauthentication": {
            "type": "boolean"
          },
          "skipConsent": {
            "type": "boolean"
          }
        },
        "required": [
          "accessTokenDurationMinutes",
          "allowedUserGroups",
          "backchannelLogoutURL",
          "callbackURLs",
          "claimMappingPolicyId",
          "clientType",
          "credentials",
          "description",
          "disabled",
          "hasDarkLogo",
          "hasLogo",
          "id",
          "isGroupRestricted",
          "isPublic",
          "launchURL",
          "logoutCallbackURLs",
          "name",
          "pkceEnabled",
          "refreshTokenDurationMinutes",
          "requiresPushedAuthorizationRequests",
          "requiresReauthentication",
          "skipConsent"
        ],
        "type": "object"
      },
      "OidcClientCredentialsDto": {
        "properties": {
          "federatedIdentities": {
            "items": {
              "$ref": "#/components/schemas/OidcClientFederatedIdentityDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "secrets": {
            "items": {
              "$ref": "#/components/schemas/OidcClientSecretDto"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "OidcClientDto": {
        "properties": {
          "accessTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "backchannelLogoutURL": {
            "type": "string"
          },
          "callbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "claimMappingPolicyId": {
            "type": "string"
          },
          "clientType": {
            "type": "string"
          },
          "credentials": {
            "$ref": "#/components/schemas/OidcClientCredentialsDto"
          },
          "description": {
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "hasDarkLogo": {
            "type": "boolean"
          },
          "hasLogo": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "isGroupRestricted": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "launchURL": {
            "type": [
              "string",
              "null"
            ]
          },
          "logoutCallbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "pkceEnabled": {
            "type": "boolean"
          },
          "pkceSupported": {
            "type": "boolean"
          },
          "refreshTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "requiresPushedAuthorizationRequests": {
            "type": "boolean"
          },
          "requiresReauthentication": {
            "type": "boolean"
          },
          "skipConsent": {
            "type": "boolean"
          }
        },
        "required": [
          "accessTokenDurationMinutes",
          "backchannelLogoutURL",
          "callbackURLs",
          "claimMappingPolicyId",
          "clientType",
          "credentials",
          "description",
          "disabled",
          "hasDarkLogo",
          "hasLogo",
          "id",
          "isGroupRestricted",
          "isPublic",
          "launchURL",
          "logoutCallbackURLs",
          "name",
          "pkceEnabled",
          "refreshTokenDurationMinutes",
          "requiresPushedAuthorizationRequests",
          "requiresReauthentication",
          "skipConsent"
        ],
        "type": "object"
      },
      "OidcClientFederatedIdentityDto": {
        "properties": {
          "audience": {
            "type": "string"
          },
          "issuer": {
            "type": "string"
          },
          "jwks": {
            "type": "string"
          },
          "publicKeys": {
            "items": {},
            "type": [
              "array",
              "null"
            ]
          },
          "replayProtection": {
            "type": "boolean"
          },
          "subject": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "OidcClientMetaDataDto": {
        "properties": {
          "clientType": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "hasDarkLogo": {
            "type": "boolean"
          },
          "hasLogo": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "launchURL": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "requiresReauthentication": {
            "type": "boolean"
          }
        },
        "required": [
          "clientType",
          "description",
          "hasDarkLogo",
          "hasLogo",
          "id",
          "launchURL",
          "name",
          "requiresReauthentication"
        ],
        "type": "object"
      },
      "OidcClientPreviewDto": {
        "properties": {
          "accessToken": {
            "additionalProperties": {},
            "type": [
              "object",
              "null"
            ]
          },
          "idToken": {
            "additionalProperties": {},
            "type": [
              "object",
              "null"
            ]
          },
          "userInfo": {
            "additionalProperties": {},
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "accessToken",
          "idToken",
          "userInfo"
        ],
        "type": "object"
      },
      "OidcClientSecretCreateDto": {
        "properties": {
          "expiresAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "secret": {
            "minLength": 16,
            "type": "string"
          }
        },
        "type": "object"
      },
      "OidcClientSecretCreatedDto": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "expiresAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "prefix": {
            "type": "string"
          },
          "secret": {
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "expiresAt",
          "id",
          "isActive",
          "prefix",
          "secret"
        ],
        "type": "object"
      },
      "OidcClientSecretDto": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "expiresAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "prefix": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "OidcClientUpdateDto": {
        "properties": {
          "accessTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "backchannelLogoutURL": {
            "type": "string"
          },
          "callbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "claimMappingPolicyId": {
            "type": "string"
          },
          "credentials": {
            "$ref": "#/components/schemas/OidcClientCredentialsDto"
          },
          "darkLogoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "maxLength": 150,
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "hasDarkLogo": {
            "type": "boolean"
          },
          "hasLogo": {
            "type": "boolean"
          },
          "isGroupRestricted": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "launchURL": {
            "type": [
              "string",
              "null"
            ]
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "logoutCallbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "maxLength": 50,
            "type": "string"
          },
          "pkceEnabled": {
            "type": "boolean"
          },
          "refreshTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "requiresPushedAuthorizationRequests": {
            "type": "boolean"
          },
          "requiresReauthentication": {
            "type": "boolean"
          },
          "skipConsent": {
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "OidcClientWithAllowedGroupsDto": {
        "properties": {
          "accessTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "allowedUserGroups": {
            "items": {
              "$ref": "#/components/schemas/UserGroupMinimalDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "backchannelLogoutURL": {
            "type": "string"
          },
          "callbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "claimMappingPolicyId": {
            "type": "string"
          },
          "clientType": {
            "type": "string"
          },
          "credentials": {
            "$ref": "#/components/schemas/OidcClientCredentialsDto"
          },
          "description": {
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "hasDarkLogo": {
            "type": "boolean"
          },
          "hasLogo": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "isGroupRestricted": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "launchURL": {
            "type": [
              "string",
              "null"
            ]
          },
          "logoutCallbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "pkceEnabled": {
            "type": "boolean"
          },
          "pkceSupported": {
            "type": "boolean"
          },
          "refreshTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "requiresPushedAuthorizationRequests": {
            "type": "boolean"
          },
          "requiresReauthentication": {
            "type": "boolean"
          },
          "skipConsent": {
            "type": "boolean"
          }
        },
        "required": [
          "accessTokenDurationMinutes",
          "allowedUserGroups",
          "backchannelLogoutURL",
          "callbackURLs",
          "claimMappingPolicyId",
          "clientType",
          "credentials",
          "description",
          "disabled",
          "hasDarkLogo",
          "hasLogo",
          "id",
          "isGroupRestricted",
          "isPublic",
          "launchURL",
          "logoutCallbackURLs",
          "name",
          "pkceEnabled",
          "refreshTokenDurationMinutes",
          "requiresPushedAuthorizationRequests",
          "requiresReauthentication",
          "skipConsent"
        ],
        "type": "object"
      },
      "OidcClientWithAllowedUserGroupsDto": {
        "properties": {
          "accessTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "allowedUserGroups": {
            "items": {
              "$ref": "#/components/schemas/UserGroupMinimalDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "backchannelLogoutURL": {
            "type": "string"
          },
          "callbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "claimMappingPolicyId": {
            "type": "string"
          },
          "clientType": {
            "type": "string"
          },
          "credentials": {
            "$ref": "#/components/schemas/OidcClientCredentialsDto"
          },
          "description": {
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "hasDarkLogo": {
            "type": "boolean"
          },
          "hasLogo": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "isGroupRestricted": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "launchURL": {
            "type": [
              "string",
              "null"
            ]
          },
          "logoutCallbackURLs": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "pkceEnabled": {
            "type": "boolean"
          },
          "pkceSupported": {
            "type": "boolean"
          },
          "refreshTokenDurationMinutes": {
            "format": "int64",
            "type": "integer"
          },
          "requiresPushedAuthorizationRequests": {
            "type": "boolean"
          },
          "requiresReauthentication": {
            "type": "boolean"
          },
          "skipConsent": {
            "type": "boolean"
          }
        },
        "required": [
          "accessTokenDurationMinutes",
          "allowedUserGroups",
          "backchannelLogoutURL",
          "callbackURLs",
          "claimMappingPolicyId",
          "clientType",
          "credentials",
          "description",
          "disabled",
          "hasDarkLogo",
          "hasLogo",
          "id",
          "isGroupRestricted",
          "isPublic",
          "launchURL",
          "logoutCallbackURLs",
          "name",
          "pkceEnabled",
          "refreshTokenDurationMinutes",
          "requiresPushedAuthorizationRequests",
          "requiresReauthentication",
          "skipConsent"
        ],
        "type": "object"
      },
      "OidcUpdateAllowedUserGroupsDto": {
        "properties": {
          "userGroupIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "userGroupIds"
        ],
        "type": "object"
      },
      "Paginated_api.apiClientAccessDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/apiClientAccessDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_api.apiClientDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/apiClientDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_api.apiResponseDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/apiResponseDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_apikey.apiKeyDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/apiKeyDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_auditlogs.auditLogDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/auditLogDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_claimmappingpolicy.CustomScopeDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/CustomScopeDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_claimmappingpolicy.OidcClaimMappingPolicyMetadataDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/OidcClaimMappingPolicyMetadataDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_dto.AccessibleOidcClientDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/AccessibleOidcClientDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_dto.AuthorizedOidcClientDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/AuthorizedOidcClientDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_dto.OidcClientMetaDataDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/OidcClientMetaDataDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_dto.OidcClientWithAllowedGroupsDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/OidcClientWithAllowedGroupsDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_dto.UserDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/UserDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_dto.UserGroupMinimalDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/UserGroupMinimalDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "Paginated_usersignup.signupTokenDto": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/signupTokenDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationResponse"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "PaginationResponse": {
        "properties": {
          "currentPage": {
            "type": "integer"
          },
          "itemsPerPage": {
            "type": "integer"
          },
          "totalItems": {
            "format": "int64",
            "type": "integer"
          },
          "totalPages": {
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "currentPage",
          "itemsPerPage",
          "totalItems",
          "totalPages"
        ],
        "type": "object"
      },
      "PublicAppConfigVariableDto": {
        "properties": {
          "key": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "type",
          "value"
        ],
        "type": "object"
      },
      "ScimServiceProviderCreateDTO": {
        "properties": {
          "endpoint": {
            "type": "string"
          },
          "oidcClientId": {
            "type": "string"
          },
          "token": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "endpoint",
          "oidcClientId"
        ],
        "type": "object"
      },
      "ScimServiceProviderDTO": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "endpoint": {
            "type": "string"
          },
          "hasToken": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "lastSyncedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "createdAt",
          "endpoint",
          "hasToken",
          "id",
          "lastSyncedAt"
        ],
        "type": "object"
      },
      "Status": {
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "inUse": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled",
          "inUse"
        ],
        "type": "object"
      },
      "UserCreateDto": {
        "properties": {
          "disabled": {
            "type": "boolean"
          },
          "displayName": {
            "maxLength": 100,
            "type": "string"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "emailVerified": {
            "type": "boolean"
          },
          "firstName": {
            "maxLength": 50,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "isAdmin": {
            "type": "boolean"
          },
          "lastName": {
            "maxLength": 50,
            "type": "string"
          },
          "locale": {
            "type": [
              "string",
              "null"
            ]
          },
          "userGroupIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "username": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "username"
        ],
        "type": "object"
      },
      "UserDto": {
        "properties": {
          "customClaims": {
            "items": {
              "$ref": "#/components/schemas/CustomClaimDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "disabled": {
            "type": "boolean"
          },
          "displayName": {
            "type": "string"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "emailVerificationDeadline": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "emailVerified": {
            "type": "boolean"
          },
          "firstName": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "isAdmin": {
            "type": "boolean"
          },
          "lastName": {
            "type": [
              "string",
              "null"
            ]
          },
          "ldapId": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "type": [
              "string",
              "null"
            ]
          },
          "userGroups": {
            "items": {
              "$ref": "#/components/schemas/UserGroupMinimalDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "customClaims",
          "disabled",
          "displayName",
          "email",
          "emailVerified",
          "firstName",
          "id",
          "isAdmin",
          "lastName",
          "ldapId",
          "locale",
          "userGroups",
          "username"
        ],
        "type": "object"
      },
      "UserGroupCreateDto": {
        "properties": {
          "friendlyName": {
            "maxLength": 50,
            "minLength": 2,
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 2,
            "type": "string"
          }
        },
        "required": [
          "friendlyName",
          "name"
        ],
        "type": "object"
      },
      "UserGroupDto": {
        "properties": {
          "allowedOidcClients": {
            "items": {
              "$ref": "#/components/schemas/OidcClientMetaDataDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "customClaims": {
            "items": {
              "$ref": "#/components/schemas/CustomClaimDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "friendlyName": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ldapId": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "users": {
            "items": {
              "$ref": "#/components/schemas/UserDto"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "allowedOidcClients",
          "createdAt",
          "customClaims",
          "friendlyName",
          "id",
          "ldapId",
          "name",
          "users"
        ],
        "type": "object"
      },
      "UserGroupMinimalDto": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "customClaims": {
            "items": {
              "$ref": "#/components/schemas/CustomClaimDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "friendlyName": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ldapId": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "userCount": {
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "createdAt",
          "customClaims",
          "friendlyName",
          "id",
          "ldapId",
          "name",
          "userCount"
        ],
        "type": "object"
      },
      "UserGroupUpdateAllowedOidcClientsDto": {
        "properties": {
          "oidcClientIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "oidcClientIds"
        ],
        "type": "object"
      },
      "UserGroupUpdateUsersDto": {
        "properties": {
          "userIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "userIds"
        ],
        "type": "object"
      },
      "UserUpdateUserGroupDto": {
        "properties": {
          "userGroupIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "userGroupIds"
        ],
        "type": "object"
      },
      "WebauthnCredentialDto": {
        "properties": {
          "aaguid": {
            "type": "string"
          },
          "attestationType": {
            "type": "string"
          },
          "backupEligible": {
            "type": "boolean"
          },
          "backupState": {
            "type": "boolean"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "credentialID": {
            "type": "string"
          },
          "hasIcon": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "transport": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "aaguid",
          "attestationType",
          "backupEligible",
          "backupState",
          "createdAt",
          "credentialID",
          "hasIcon",
          "id",
          "name",
          "transport"
        ],
        "type": "object"
      },
      "apiCimdAccessUpdateDto": {
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "permissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "apiClientAccessDto": {
        "properties": {
          "cimdGrantedAccess": {
            "type": "boolean"
          },
          "cimdGrantedPermissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "client": {
            "$ref": "#/components/schemas/apiClientDto"
          },
          "clientAccess": {
            "type": "boolean"
          },
          "clientPermissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "userDelegatedAccess": {
            "type": "boolean"
          },
          "userDelegatedPermissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "cimdGrantedAccess",
          "cimdGrantedPermissionIds",
          "client",
          "clientAccess",
          "clientPermissionIds",
          "userDelegatedAccess",
          "userDelegatedPermissionIds"
        ],
        "type": "object"
      },
      "apiClientDto": {
        "properties": {
          "clientType": {
            "type": "string"
          },
          "hasDarkLogo": {
            "type": "boolean"
          },
          "hasLogo": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "isPublic": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "clientType",
          "hasDarkLogo",
          "hasLogo",
          "id",
          "isPublic",
          "name"
        ],
        "type": "object"
      },
      "apiClientGrantDto": {
        "properties": {
          "clientAccess": {
            "type": "boolean"
          },
          "clientPermissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "userDelegatedAccess": {
            "type": "boolean"
          },
          "userDelegatedPermissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "clientAccess",
          "clientPermissionIds",
          "userDelegatedAccess",
          "userDelegatedPermissionIds"
        ],
        "type": "object"
      },
      "apiClientGrantUpdateDto": {
        "properties": {
          "clientAccess": {
            "type": "boolean"
          },
          "clientPermissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "userDelegatedAccess": {
            "type": "boolean"
          },
          "userDelegatedPermissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "apiCreateDto": {
        "properties": {
          "name": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          },
          "resource": {
            "maxLength": 350,
            "type": "string"
          }
        },
        "required": [
          "name",
          "resource"
        ],
        "type": "object"
      },
      "apiKeyCreateDto": {
        "properties": {
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "expiresAt": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "maxLength": 50,
            "minLength": 3,
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "name",
          "expiresAt",
          "scopes"
        ],
        "type": "object"
      },
      "apiKeyDto": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "expirationEmailSent": {
            "type": "boolean"
          },
          "expiresAt": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "lastUsedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "previousKeyExpiresAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "createdAt",
          "description",
          "expirationEmailSent",
          "expiresAt",
          "id",
          "lastUsedAt",
          "name",
          "previousKeyExpiresAt",
          "scopes"
        ],
        "type": "object"
      },
      "apiKeyRenewDto": {
        "properties": {
          "expiresAt": {
            "format": "date-time",
            "type": "string"
          },
          "gracePeriodHours": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "expiresAt"
        ],
        "type": "object"
      },
      "apiKeyResponseDto": {
        "properties": {
          "apiKey": {
            "$ref": "#/components/schemas/apiKeyDto"
          },
          "token": {
            "type": "string"
          }
        },
        "required": [
          "apiKey",
          "token"
        ],
        "type": "object"
      },
      "apiKeyUpdateDto": {
        "properties": {
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "maxLength": 50,
            "minLength": 3,
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "name",
          "scopes"
        ],
        "type": "object"
      },
      "apiPermissionInputDto": {
        "properties": {
          "description": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "key": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "key",
          "name"
        ],
        "type": "object"
      },
      "apiPermissionResponseDto": {
        "properties": {
          "allowedForCimdClients": {
            "type": "boolean"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "allowedForCimdClients",
          "id",
          "key",
          "name"
        ],
        "type": "object"
      },
      "apiPermissionsUpdateDto": {
        "properties": {
          "permissions": {
            "items": {
              "$ref": "#/components/schemas/apiPermissionInputDto"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "apiResponseDto": {
        "properties": {
          "allowCimdClients": {
            "type": "boolean"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "permissions": {
            "items": {
              "$ref": "#/components/schemas/apiPermissionResponseDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "resource": {
            "type": "string"
          }
        },
        "required": [
          "allowCimdClients",
          "createdAt",
          "id",
          "name",
          "permissions",
          "resource"
        ],
        "type": "object"
      },
      "apiUpdateDto": {
        "properties": {
          "name": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "auditLogDto": {
        "properties": {
          "actorID": {
            "type": "string"
          },
          "actorName": {
            "type": "string"
          },
          "actorType": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "data": {
            "additionalProperties": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "device": {
            "type": "string"
          },
          "event": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ipAddress": {
            "type": "string"
          },
          "userID": {
            "type": "string"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "actorID",
          "actorName",
          "actorType",
          "city",
          "country",
          "createdAt",
          "data",
          "device",
          "event",
          "id",
          "ipAddress",
          "userID",
          "username"
        ],
        "type": "object"
      },
      "claimMappingsPreviewInput": {
        "properties": {
          "claimMappings": {
            "items": {
              "$ref": "#/components/schemas/OidcClaimMappingDto"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "userId": {
            "type": "string"
          }
        },
        "required": [
          "userId"
        ],
        "type": "object"
      },
      "clientApiGrantDto": {
        "properties": {
          "api": {
            "$ref": "#/components/schemas/apiResponseDto"
          },
          "cimdGrantedAccess": {
            "type": "boolean"
          },
          "cimdGrantedPermissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "clientAccess": {
            "type": "boolean"
          },
          "clientPermissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "userDelegatedAccess": {
            "type": "boolean"
          },
          "userDelegatedPermissionIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "api",
          "cimdGrantedAccess",
          "cimdGrantedPermissionIds",
          "clientAccess",
          "clientPermissionIds",
          "userDelegatedAccess",
          "userDelegatedPermissionIds"
        ],
        "type": "object"
      },
      "currentVersionDto": {
        "properties": {
          "currentVersion": {
            "type": "string"
          }
        },
        "required": [
          "currentVersion"
        ],
        "type": "object"
      },
      "decisionDto": {
        "properties": {
          "code": {
            "type": "string"
          },
          "decision": {
            "enum": [
              "approve",
              "deny"
            ],
            "type": "string"
          }
        },
        "required": [
          "code",
          "decision"
        ],
        "type": "object"
      },
      "emailAsAdminDto": {
        "properties": {
          "ttl": {
            "description": "A duration such as 15m or 24h, or a number of seconds",
            "type": [
              "string",
              "number"
            ]
          }
        },
        "type": "object"
      },
      "emailAsUnauthenticatedUserDto": {
        "properties": {
          "email": {
            "type": "string"
          },
          "redirectPath": {
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "type": "object"
      },
      "emailChangeDto": {
        "properties": {
          "email": {
            "type": "string"
          },
          "expiresAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "email",
          "expiresAt"
        ],
        "type": "object"
      },
      "exchangeTokenDto": {
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "introspectionForm": {
        "properties": {
          "client_id": {
            "description": "The client whose federated client assertion is sent as the bearer token",
            "type": "string"
          },
          "scope": {
            "description": "Space-separated scopes the token must have",
            "type": "string"
          },
          "token": {
            "description": "The token to be introspected",
            "type": "string"
          },
          "token_type_hint": {
            "description": "The type of the token, access_token or refresh_token",
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "type": "object"
      },
      "latestVersionDto": {
        "properties": {
          "latestVersion": {
            "type": "string"
          }
        },
        "required": [
          "latestVersion"
        ],
        "type": "object"
      },
      "logoPresetDto": {
        "properties": {
          "darkLogoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "logoUrl": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          }
        },
        "required": [
          "darkLogoUrl",
          "logoUrl",
          "name",
          "reference"
        ],
        "type": "object"
      },
      "requestCreateDto": {
        "properties": {
          "expiresAt": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "interval": {
            "type": "integer"
          },
          "userCode": {
            "type": "string"
          },
          "verificationUri": {
            "type": "string"
          },
          "verificationUriComplete": {
            "type": "string"
          }
        },
        "required": [
          "expiresAt",
          "id",
          "interval",
          "userCode",
          "verificationUri",
          "verificationUriComplete"
        ],
        "type": "object"
      },
      "sessionDto": {
        "properties": {
          "authenticationMethod": {
            "type": "string"
          },
          "browser": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "deviceType": {
            "type": "string"
          },
          "expiresAt": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ipAddress": {
            "type": "string"
          },
          "lastActiveAt": {
            "format": "date-time",
            "type": "string"
          },
          "os": {
            "type": "string"
          },
          "userAgent": {
            "type": "string"
          }
        },
        "required": [
          "authenticationMethod",
          "browser",
          "city",
          "country",
          "createdAt",
          "current",
          "deviceType",
          "expiresAt",
          "id",
          "ipAddress",
          "lastActiveAt",
          "os",
          "userAgent"
        ],
        "type": "object"
      },
      "signUpDto": {
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "firstName": {
            "maxLength": 50,
            "type": "string"
          },
          "lastName": {
            "maxLength": 50,
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "username": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "username"
        ],
        "type": "object"
      },
      "signupTokenCreateDto": {
        "properties": {
          "ttl": {
            "description": "A duration such as 15m or 24h, or a number of seconds",
            "type": [
              "string",
              "number"
            ]
          },
          "usageLimit": {
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "userGroupIds": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "ttl",
          "usageLimit"
        ],
        "type": "object"
      },
      "signupTokenDto": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "expiresAt": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "usageCount": {
            "type": "integer"
          },
          "usageLimit": {
            "type": "integer"
          },
          "userGroups": {
            "items": {
              "$ref": "#/components/schemas/UserGroupMinimalDto"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "createdAt",
          "expiresAt",
          "id",
          "token",
          "usageCount",
          "usageLimit",
          "userGroups"
        ],
        "type": "object"
      },
      "sqliteStorageWarningDto": {
        "properties": {
          "showWarning": {
            "type": "boolean"
          }
        },
        "required": [
          "showWarning"
        ],
        "type": "object"
      },
      "tokenCreateDto": {
        "properties": {
          "ttl": {
            "description": "A duration such as 15m or 24h, or a number of seconds",
            "type": [
              "string",
              "number"
            ]
          }
        },
        "type": "object"
      },
      "tokenCreatedDto": {
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "type": "object"
      },
      "verificationDto": {
        "properties": {
          "code": {
            "type": "string"
          }
        },
        "required": [
          "code"
        ],
        "type": "object"
      },
      "verificationInfoDto": {
        "properties": {
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "device": {
            "type": "string"
          },
          "expiresAt": {
            "format": "date-time",
            "type": "string"
          },
          "ipAddress": {
            "type": "string"
          },
          "userCode": {
            "type": "string"
          }
        },
        "required": [
          "city",
          "country",
          "device",
          "expiresAt",
          "ipAddress",
          "userCode"
        ],
        "type": "object"
      }
    }
  },
  "info": {
    "description": "The REST API of Pocket ID.",
    "title": "Pocket ID API",
    "version": "unknown"
  },
  "openapi": "3.1.0",
  "paths": {
    "/.well-known/jwks.json": {
      "get": {
        "description": "Returns the JSON Web Key Set used for token verification",
        "operationId": "GET_/.well-known/jwks.json",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "{ \"keys\": []interface{} }"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get JSON Web Key Set (JWKS)",
        "tags": [
          "Well Known"
        ]
      }
    },
    "/.well-known/oauth-authorization-server": {
      "get": {
        "description": "Returns the RFC 8414 OAuth 2.0 authorization server metadata document with endpoints and capabilities",
        "operationId": "GET_/.well-known/oauth-authorization-server",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OAuth 2.0 authorization server metadata"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get OAuth 2.0 authorization server metadata",
        "tags": [
          "Well Known"
        ]
      }
    },
    "/.well-known/oauth-protected-resource/mcp": {
      "get": {
        "description": "Returns the RFC 9728 protected resource metadata of Pocket ID's MCP endpoint, which MCP clients use to find the authorization server and the scopes they can request",
        "operationId": "GET_/.well-known/oauth-protected-resource/mcp",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OAuth 2.0 protected resource metadata"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get OAuth 2.0 protected resource metadata of the MCP endpoint",
        "tags": [
          "Well Known"
        ]
      }
    },
    "/.well-known/openid-configuration": {
      "get": {
        "description": "Returns the OpenID Connect discovery document with endpoints and capabilities",
        "operationId": "GET_/.well-known/openid-configuration",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OpenID Connect configuration"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get OpenID Connect discovery configuration",
        "tags": [
          "Well Known"
        ]
      }
    },
    "/api/api-access/{clientId}/apis": {
      "get": {
        "description": "Get every API the OIDC client may request tokens for, with its access and permissions split into user-delegated and client (machine-to-machine) access",
        "operationId": "GET_/api/api-access/:clientId/apis",
        "parameters": [
          {
            "description": "OIDC Client ID",
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/clientApiGrantDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List APIs a client may access",
        "tags": [
          "APIs"
        ]
      }
    },
    "/api/api-access/{clientId}/assignable-apis": {
      "get": {
        "description": "Get a paginated list of APIs the OIDC client cannot already reach",
        "operationId": "GET_/api/api-access/:clientId/assignable-apis",
        "parameters": [
          {
            "description": "OIDC Client ID",
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search term to filter APIs by name or resource",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "audience",
                "createdAt",
                "name",
                "resource"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_api.apiResponseDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List APIs a client can still be granted access to",
        "tags": [
          "APIs"
        ]
      }
    },
    "/api/api-keys": {
      "get": {
        "description": "Get a paginated list of API keys belonging to the current user",
        "operationId": "GET_/api/api-keys",
        "parameters": [
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "createdAt",
                "expiresAt",
                "lastUsedAt",
                "name"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_apikey.apiKeyDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List API keys",
        "tags": [
          "API Keys"
        ]
      },
      "post": {
        "description": "Create a new API key for the current user",
        "operationId": "POST_/api/api-keys",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/apiKeyCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiKeyResponseDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create API key",
        "tags": [
          "API Keys"
        ]
      }
    },
    "/api/api-keys/{id}": {
      "delete": {
        "description": "Revoke (delete) an existing API key by ID",
        "operationId": "DELETE_/api/api-keys/:id",
        "parameters": [
          {
            "description": "API Key ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Revoke API key",
        "tags": [
          "API Keys"
        ]
      },
      "patch": {
        "description": "Change the name, description and scopes of an existing API key, where PATCH changes only the fields in the body; its token stays the same",
        "operationId": "PATCH_/api/api-keys/:id",
        "parameters": [
          {
            "description": "API Key ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "maxLength": 50,
                    "minLength": 3,
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "type": "object"
              }
            },
            "application/merge-patch+json": {
              "schema": {
                "properties": {
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "maxLength": 50,
                    "minLength": 3,
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiKeyDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update API key",
        "tags": [
          "API Keys"
        ]
      },
      "put": {
        "description": "Change the name, description and scopes of an existing API key, where PATCH changes only the fields in the body; its token stays the same",
        "operationId": "PUT_/api/api-keys/:id",
        "parameters": [
          {
            "description": "API Key ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/apiKeyUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiKeyDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update API key",
        "tags": [
          "API Keys"
        ]
      }
    },
    "/api/api-keys/{id}/renew": {
      "post": {
        "description": "While a key has not expired, its old token keeps working for the given grace period, but never past the key's previous expiration",
        "operationId": "POST_/api/api-keys/:id/renew",
        "parameters": [
          {
            "description": "API Key ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/apiKeyRenewDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiKeyResponseDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Renew API key",
        "tags": [
          "API Keys"
        ]
      }
    },
    "/api/apis": {
      "get": {
        "description": "Get a paginated list of APIs with optional search and sorting",
        "operationId": "GET_/api/apis",
        "parameters": [
          {
            "description": "Search term to filter APIs by name or resource",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "audience",
                "createdAt",
                "name",
                "resource"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_api.apiResponseDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List APIs",
        "tags": [
          "APIs"
        ]
      },
      "post": {
        "description": "Create a new API resource server",
        "operationId": "POST_/api/apis",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/apiCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiResponseDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create API",
        "tags": [
          "APIs"
        ]
      }
    },
    "/api/apis/{id}": {
      "delete": {
        "description": "Delete an API by ID",
        "operationId": "DELETE_/api/apis/:id",
        "parameters": [
          {
            "description": "API ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete API",
        "tags": [
          "APIs"
        ]
      },
      "get": {
        "description": "Retrieve a single API including its permissions",
        "operationId": "GET_/api/apis/:id",
        "parameters": [
          {
            "description": "API ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiResponseDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get API by ID",
        "tags": [
          "APIs"
        ]
      },
      "patch": {
        "description": "Update an existing API by ID, where PATCH changes only the fields in the body",
        "operationId": "PATCH_/api/apis/:id",
        "parameters": [
          {
            "description": "API ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "maxLength": 50,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "application/merge-patch+json": {
              "schema": {
                "properties": {
                  "name": {
                    "maxLength": 50,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiResponseDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update API",
        "tags": [
          "APIs"
        ]
      },
      "put": {
        "description": "Update an existing API by ID, where PATCH changes only the fields in the body",
        "operationId": "PUT_/api/apis/:id",
        "parameters": [
          {
            "description": "API ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/apiUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiResponseDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update API",
        "tags": [
          "APIs"
        ]
      }
    },
    "/api/apis/{id}/assignable-clients": {
      "get": {
        "description": "Get a paginated list of OIDC clients that have no grant on the API yet",
        "operationId": "GET_/api/apis/:id/assignable-clients",
        "parameters": [
          {
            "description": "API ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search term to filter clients by name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "clientType",
                "createdAt",
                "disabled",
                "isGroupRestricted",
                "name",
                "pkceEnabled",
                "pkceSupported",
                "requiresPushedAuthorizationRequests",
                "requiresReauthentication",
                "skipConsent"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only items whose clientType is one of these values",
            "in": "query",
            "name": "filters[clientType]",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose disabled is one of these values",
            "in": "query",
            "name": "filters[disabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose isGroupRestricted is one of these values",
            "in": "query",
            "name": "filters[isGroupRestricted]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceEnabled is one of these values",
            "in": "query",
            "name": "filters[pkceEnabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceSupported is one of these values",
            "in": "query",
            "name": "filters[pkceSupported]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresPushedAuthorizationRequests is one of these values",
            "in": "query",
            "name": "filters[requiresPushedAuthorizationRequests]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresReauthentication is one of these values",
            "in": "query",
            "name": "filters[requiresReauthentication]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose skipConsent is one of these values",
            "in": "query",
            "name": "filters[skipConsent]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_api.apiClientDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List clients that can still be granted access to an API",
        "tags": [
          "APIs"
        ]
      }
    },
    "/api/apis/{id}/cimd-access": {
      "put": {
        "description": "Replace which permissions of an API every client registered through a Client ID Metadata Document may request",
        "operationId": "PUT_/api/apis/:id/cimd-access",
        "parameters": [
          {
            "description": "API ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/apiCimdAccessUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiResponseDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update metadata document client access",
        "tags": [
          "APIs"
        ]
      }
    },
    "/api/apis/{id}/clients": {
      "get": {
        "description": "Get a paginated list of OIDC clients that may reach the API, with their permissions split into user-delegated and client (machine-to-machine) access",
        "operationId": "GET_/api/apis/:id/clients",
        "parameters": [
          {
            "description": "API ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search term to filter clients by name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "clientType",
                "createdAt",
                "disabled",
                "isGroupRestricted",
                "name",
                "pkceEnabled",
                "pkceSupported",
                "requiresPushedAuthorizationRequests",
                "requiresReauthentication",
                "skipConsent"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only items whose clientType is one of these values",
            "in": "query",
            "name": "filters[clientType]",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose disabled is one of these values",
            "in": "query",
            "name": "filters[disabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose isGroupRestricted is one of these values",
            "in": "query",
            "name": "filters[isGroupRestricted]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceEnabled is one of these values",
            "in": "query",
            "name": "filters[pkceEnabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceSupported is one of these values",
            "in": "query",
            "name": "filters[pkceSupported]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresPushedAuthorizationRequests is one of these values",
            "in": "query",
            "name": "filters[requiresPushedAuthorizationRequests]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresReauthentication is one of these values",
            "in": "query",
            "name": "filters[requiresReauthentication]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose skipConsent is one of these values",
            "in": "query",
            "name": "filters[skipConsent]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_api.apiClientAccessDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List clients with access to an API",
        "tags": [
          "APIs"
        ]
      }
    },
    "/api/apis/{id}/clients/{clientId}": {
      "delete": {
        "description": "Remove every permission of this API a single OIDC client was allowed to request",
        "operationId": "DELETE_/api/apis/:id/clients/:clientId",
        "parameters": [
          {
            "description": "API ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "OIDC Client ID",
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Revoke a client's access to an API",
        "tags": [
          "APIs"
        ]
      },
      "put": {
        "description": "Replace the permissions of this API a single OIDC client may request, leaving its grants on other APIs untouched",
        "operationId": "PUT_/api/apis/:id/clients/:clientId",
        "parameters": [
          {
            "description": "API ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "OIDC Client ID",
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/apiClientGrantUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiClientGrantDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update a client's access to an API",
        "tags": [
          "APIs"
        ]
      }
    },
    "/api/apis/{id}/permissions": {
      "put": {
        "description": "Replace the full set of permissions for an API",
        "operationId": "PUT_/api/apis/:id/permissions",
        "parameters": [
          {
            "description": "API ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/apiPermissionsUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiResponseDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update API permissions",
        "tags": [
          "APIs"
        ]
      }
    },
    "/api/application-assets/background": {
      "delete": {
        "description": "Delete the application background image",
        "operationId": "DELETE_/api/application-assets/background",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete background image",
        "tags": [
          "Application Assets"
        ]
      },
      "get": {
        "description": "Get the background image for the application",
        "operationId": "GET_/api/application-assets/background",
        "parameters": [
          {
            "description": "Return the bundled default if no custom one is set",
            "in": "query",
            "name": "default",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/avif": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/gif": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/heic": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/jpeg": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/png": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/svg+xml": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/webp": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/x-icon": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Background image"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get background image",
        "tags": [
          "Application Assets"
        ]
      },
      "put": {
        "description": "Update the application background image",
        "operationId": "PUT_/api/application-assets/background",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "Background image file",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update background image",
        "tags": [
          "Application Assets"
        ]
      }
    },
    "/api/application-assets/default-profile-picture": {
      "delete": {
        "description": "Delete the default profile picture image",
        "operationId": "DELETE_/api/application-assets/default-profile-picture",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete default profile picture image",
        "tags": [
          "Application Assets"
        ]
      },
      "get": {
        "description": "Get the default profile picture image for the application",
        "operationId": "GET_/api/application-assets/default-profile-picture",
        "parameters": [
          {
            "description": "Return the bundled default if no custom one is set",
            "in": "query",
            "name": "default",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/avif": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/gif": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/heic": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/jpeg": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/png": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/svg+xml": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/webp": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/x-icon": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Default profile picture image"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get default profile picture image",
        "tags": [
          "Application Assets"
        ]
      },
      "put": {
        "description": "Update the default profile picture image",
        "operationId": "PUT_/api/application-assets/default-profile-picture",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "Profile picture image file",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update default profile picture image",
        "tags": [
          "Application Assets"
        ]
      }
    },
    "/api/application-assets/email": {
      "get": {
        "description": "Get the email logo image for use in emails",
        "operationId": "GET_/api/application-assets/email",
        "parameters": [
          {
            "description": "Return the bundled default if no custom one is set",
            "in": "query",
            "name": "default",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/jpeg": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/png": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Email logo image"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get email logo image",
        "tags": [
          "Application Assets"
        ]
      },
      "put": {
        "description": "Update the email logo for use in emails",
        "operationId": "PUT_/api/application-assets/email",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "Email logo image file",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update email logo",
        "tags": [
          "Application Assets"
        ]
      }
    },
    "/api/application-assets/favicon": {
      "get": {
        "description": "Get the favicon for the application",
        "operationId": "GET_/api/application-assets/favicon",
        "parameters": [
          {
            "description": "Return the bundled default if no custom one is set",
            "in": "query",
            "name": "default",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/png": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/svg+xml": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/x-icon": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Favicon image"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get favicon",
        "tags": [
          "Application Assets"
        ]
      },
      "put": {
        "description": "Update the application favicon",
        "operationId": "PUT_/api/application-assets/favicon",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "Favicon file (.svg/.png/.ico)",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update favicon",
        "tags": [
          "Application Assets"
        ]
      }
    },
    "/api/application-assets/font": {
      "delete": {
        "description": "Delete the custom font of page and dialog titles",
        "operationId": "DELETE_/api/application-assets/font",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete title font",
        "tags": [
          "Application Assets"
        ]
      },
      "get": {
        "description": "Get the custom font of page and dialog titles",
        "operationId": "GET_/api/application-assets/font",
        "parameters": [
          {
            "description": "Return the bundled default if no custom one is set",
            "in": "query",
            "name": "default",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "font/otf": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "font/ttf": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "font/woff": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "font/woff2": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Font file"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get title font",
        "tags": [
          "Application Assets"
        ]
      },
      "put": {
        "description": "Update the custom font of page and dialog titles",
        "operationId": "PUT_/api/application-assets/font",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "Font file (.woff2/.woff/.ttf/.otf)",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update title font",
        "tags": [
          "Application Assets"
        ]
      }
    },
    "/api/application-assets/logo": {
      "delete": {
        "description": "Delete the custom application logo and restore the default logo",
        "operationId": "DELETE_/api/application-assets/logo",
        "parameters": [
          {
            "description": "Light mode logo (true) or dark mode logo (false)",
            "in": "query",
            "name": "light",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete logo image",
        "tags": [
          "Application Assets"
        ]
      },
      "get": {
        "description": "Get the logo image for the application",
        "operationId": "GET_/api/application-assets/logo",
        "parameters": [
          {
            "description": "Light mode logo (true) or dark mode logo (false)",
            "in": "query",
            "name": "light",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          },
          {
            "description": "Return the bundled default if no custom one is set",
            "in": "query",
            "name": "default",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/avif": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/gif": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/heic": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/jpeg": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/png": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/svg+xml": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/webp": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/x-icon": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Logo image"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get logo image",
        "tags": [
          "Application Assets"
        ]
      },
      "put": {
        "description": "Update the application logo",
        "operationId": "PUT_/api/application-assets/logo",
        "parameters": [
          {
            "description": "Light mode logo (true) or dark mode logo (false)",
            "in": "query",
            "name": "light",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "Logo image file",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update logo",
        "tags": [
          "Application Assets"
        ]
      }
    },
    "/api/application-configuration": {
      "get": {
        "description": "Get all public application configurations",
        "operationId": "GET_/api/application-configuration",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicAppConfigVariableDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List public application configurations",
        "tags": [
          "Application Configuration"
        ]
      },
      "patch": {
        "description": "Update application configuration settings, where PATCH changes only the fields in the body",
        "operationId": "PATCH_/api/application-configuration",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "allowOwnAccountEdit": {
                    "type": "string"
                  },
                  "allowUserSignups": {
                    "enum": [
                      "disabled",
                      "withToken",
                      "open"
                    ],
                    "type": "string"
                  },
                  "appName": {
                    "maxLength": 30,
                    "minLength": 1,
                    "type": "string"
                  },
                  "appearance": {
                    "type": "string"
                  },
                  "autoCreateOidcClientSecret": {
                    "type": "string"
                  },
                  "cimdUrlAllowlist": {
                    "type": "string"
                  },
                  "emailApiKeyExpirationEnabled": {
                    "type": "string"
                  },
                  "emailLoginNotificationMode": {
                    "enum": [
                      "disabled",
                      "always",
                      "ipAndUserAgent",
                      "browserRecognition"
                    ],
                    "type": "string"
                  },
                  "emailOneTimeAccessAsAdminEnabled": {
                    "type": "string"
                  },
                  "emailOneTimeAccessAsUnauthenticatedEnabled": {
                    "type": "string"
                  },
                  "emailVerification": {
                    "enum": [
                      "disabled",
                      "optional",
                      "required"
                    ],
                    "type": "string"
                  },
                  "emailsVerified": {
                    "type": "string"
                  },
                  "enabledFeatures": {
                    "type": "string"
                  },
                  "homePageUrl": {
                    "type": "string"
                  },
                  "ldapAdminGroupName": {
                    "type": "string"
                  },
                  "ldapAttributeGroupMember": {
                    "type": "string"
                  },
                  "ldapAttributeGroupName": {
                    "type": "string"
                  },
                  "ldapAttributeGroupUniqueIdentifier": {
                    "type": "string"
                  },
                  "ldapAttributeUserDisplayName": {
                    "type": "string"
                  },
                  "ldapAttributeUserEmail": {
                    "type": "string"
                  },
                  "ldapAttributeUserFirstName": {
                    "type": "string"
                  },
                  "ldapAttributeUserLastName": {
                    "type": "string"
                  },
                  "ldapAttributeUserProfilePicture": {
                    "type": "string"
                  },
                  "ldapAttributeUserUniqueIdentifier": {
                    "type": "string"
                  },
                  "ldapAttributeUserUsername": {
                    "type": "string"
                  },
                  "ldapBase": {
                    "type": "string"
                  },
                  "ldapBindDn": {
                    "type": "string"
                  },
                  "ldapBindPassword": {
                    "type": "string"
                  },
                  "ldapEnabled": {
                    "type": "string"
                  },
                  "ldapSkipCertVerify": {
                    "type": "string"
                  },
                  "ldapSoftDeleteUsers": {
                    "type": "string"
                  },
                  "ldapUrl": {
                    "type": "string"
                  },
                  "ldapUserGroupSearchFilter": {
                    "type": "string"
                  },
                  "ldapUserSearchFilter": {
                    "type": "string"
                  },
                  "requireUserEmail": {
                    "type": "string"
                  },
                  "sessionDuration": {
                    "type": "string"
                  },
                  "signupDefaultCustomClaims": {
                    "type": "string"
                  },
                  "signupDefaultUserGroupIDs": {
                    "type": "string"
                  },
                  "smtpFrom": {
                    "type": "string"
                  },
                  "smtpHost": {
                    "type": "string"
                  },
                  "smtpPassword": {
                    "type": "string"
                  },
                  "smtpPort": {
                    "type": "string"
                  },
                  "smtpSkipCertVerify": {
                    "type": "string"
                  },
                  "smtpTls": {
                    "enum": [
                      "none",
                      "starttls",
                      "tls"
                    ],
                    "type": "string"
                  },
                  "smtpUser": {
                    "type": "string"
                  },
                  "webauthnAllowSyncedPasskeys": {
                    "type": "string"
                  },
                  "webauthnAuthenticatorAttachment": {
                    "enum": [
                      "any",
                      "platform",
                      "cross-platform"
                    ],
                    "type": "string"
                  },
                  "webauthnUserVerification": {
                    "enum": [
                      "required",
                      "preferred"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "application/merge-patch+json": {
              "schema": {
                "properties": {
                  "allowOwnAccountEdit": {
                    "type": "string"
                  },
                  "allowUserSignups": {
                    "enum": [
                      "disabled",
                      "withToken",
                      "open"
                    ],
                    "type": "string"
                  },
                  "appName": {
                    "maxLength": 30,
                    "minLength": 1,
                    "type": "string"
                  },
                  "appearance": {
                    "type": "string"
                  },
                  "autoCreateOidcClientSecret": {
                    "type": "string"
                  },
                  "cimdUrlAllowlist": {
                    "type": "string"
                  },
                  "emailApiKeyExpirationEnabled": {
                    "type": "string"
                  },
                  "emailLoginNotificationMode": {
                    "enum": [
                      "disabled",
                      "always",
                      "ipAndUserAgent",
                      "browserRecognition"
                    ],
                    "type": "string"
                  },
                  "emailOneTimeAccessAsAdminEnabled": {
                    "type": "string"
                  },
                  "emailOneTimeAccessAsUnauthenticatedEnabled": {
                    "type": "string"
                  },
                  "emailVerification": {
                    "enum": [
                      "disabled",
                      "optional",
                      "required"
                    ],
                    "type": "string"
                  },
                  "emailsVerified": {
                    "type": "string"
                  },
                  "enabledFeatures": {
                    "type": "string"
                  },
                  "homePageUrl": {
                    "type": "string"
                  },
                  "ldapAdminGroupName": {
                    "type": "string"
                  },
                  "ldapAttributeGroupMember": {
                    "type": "string"
                  },
                  "ldapAttributeGroupName": {
                    "type": "string"
                  },
                  "ldapAttributeGroupUniqueIdentifier": {
                    "type": "string"
                  },
                  "ldapAttributeUserDisplayName": {
                    "type": "string"
                  },
                  "ldapAttributeUserEmail": {
                    "type": "string"
                  },
                  "ldapAttributeUserFirstName": {
                    "type": "string"
                  },
                  "ldapAttributeUserLastName": {
                    "type": "string"
                  },
                  "ldapAttributeUserProfilePicture": {
                    "type": "string"
                  },
                  "ldapAttributeUserUniqueIdentifier": {
                    "type": "string"
                  },
                  "ldapAttributeUserUsername": {
                    "type": "string"
                  },
                  "ldapBase": {
                    "type": "string"
                  },
                  "ldapBindDn": {
                    "type": "string"
                  },
                  "ldapBindPassword": {
                    "type": "string"
                  },
                  "ldapEnabled": {
                    "type": "string"
                  },
                  "ldapSkipCertVerify": {
                    "type": "string"
                  },
                  "ldapSoftDeleteUsers": {
                    "type": "string"
                  },
                  "ldapUrl": {
                    "type": "string"
                  },
                  "ldapUserGroupSearchFilter": {
                    "type": "string"
                  },
                  "ldapUserSearchFilter": {
                    "type": "string"
                  },
                  "requireUserEmail": {
                    "type": "string"
                  },
                  "sessionDuration": {
                    "type": "string"
                  },
                  "signupDefaultCustomClaims": {
                    "type": "string"
                  },
                  "signupDefaultUserGroupIDs": {
                    "type": "string"
                  },
                  "smtpFrom": {
                    "type": "string"
                  },
                  "smtpHost": {
                    "type": "string"
                  },
                  "smtpPassword": {
                    "type": "string"
                  },
                  "smtpPort": {
                    "type": "string"
                  },
                  "smtpSkipCertVerify": {
                    "type": "string"
                  },
                  "smtpTls": {
                    "enum": [
                      "none",
                      "starttls",
                      "tls"
                    ],
                    "type": "string"
                  },
                  "smtpUser": {
                    "type": "string"
                  },
                  "webauthnAllowSyncedPasskeys": {
                    "type": "string"
                  },
                  "webauthnAuthenticatorAttachment": {
                    "enum": [
                      "any",
                      "platform",
                      "cross-platform"
                    ],
                    "type": "string"
                  },
                  "webauthnUserVerification": {
                    "enum": [
                      "required",
                      "preferred"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AppConfigVariableDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update application configurations",
        "tags": [
          "Application Configuration"
        ]
      },
      "put": {
        "description": "Update application configuration settings, where PATCH changes only the fields in the body",
        "operationId": "PUT_/api/application-configuration",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AppConfigUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AppConfigVariableDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update application configurations",
        "tags": [
          "Application Configuration"
        ]
      }
    },
    "/api/application-configuration/all": {
      "get": {
        "description": "Get all application configurations including private ones",
        "operationId": "GET_/api/application-configuration/all",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AppConfigVariableDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List all application configurations",
        "tags": [
          "Application Configuration"
        ]
      }
    },
    "/api/application-configuration/sync-ldap": {
      "post": {
        "description": "Manually trigger LDAP synchronization",
        "operationId": "POST_/api/application-configuration/sync-ldap",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Synchronize LDAP",
        "tags": [
          "Application Configuration"
        ]
      }
    },
    "/api/application-configuration/test-email": {
      "post": {
        "description": "Send a test email to verify email configuration",
        "operationId": "POST_/api/application-configuration/test-email",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Send test email",
        "tags": [
          "Application Configuration"
        ]
      }
    },
    "/api/audit-logs": {
      "get": {
        "description": "Get a paginated list of the audit logs about the current user",
        "operationId": "GET_/api/audit-logs",
        "parameters": [
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "city",
                "country",
                "createdAt",
                "event",
                "ipAddress",
                "userAgent"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only items whose event is one of these values",
            "in": "query",
            "name": "filters[event]",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only entries created at or after this RFC 3339 time",
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only entries created before this RFC 3339 time",
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_auditlogs.auditLogDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List audit logs",
        "tags": [
          "Audit Logs"
        ]
      }
    },
    "/api/audit-logs/all": {
      "get": {
        "description": "Get a paginated list of all audit logs (admin only)",
        "operationId": "GET_/api/audit-logs/all",
        "parameters": [
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "city",
                "country",
                "createdAt",
                "event",
                "ipAddress",
                "userAgent"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only items whose event is one of these values",
            "in": "query",
            "name": "filters[event]",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only entries created at or after this RFC 3339 time",
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only entries created before this RFC 3339 time",
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only entries of this user, including the actions they took",
            "in": "query",
            "name": "filters[userID]",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only entries of the OIDC clients with these names",
            "in": "query",
            "name": "filters[clientName]",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only entries from the internal or external network",
            "in": "query",
            "name": "filters[location]",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_auditlogs.auditLogDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List all audit logs",
        "tags": [
          "Audit Logs"
        ]
      }
    },
    "/api/audit-logs/filters/client-names": {
      "get": {
        "description": "Get a list of all client names for audit log filtering",
        "operationId": "GET_/api/audit-logs/filters/client-names",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List client names",
        "tags": [
          "Audit Logs"
        ]
      }
    },
    "/api/audit-logs/filters/users": {
      "get": {
        "description": "Get a list of all usernames with their IDs for audit log filtering",
        "operationId": "GET_/api/audit-logs/filters/users",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List users with IDs",
        "tags": [
          "Audit Logs"
        ]
      }
    },
    "/api/custom-claims/suggestions": {
      "get": {
        "description": "Get a list of suggested custom claim names",
        "operationId": "GET_/api/custom-claims/suggestions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get custom claim suggestions",
        "tags": [
          "Custom Claims"
        ]
      }
    },
    "/api/custom-claims/user-group/{userGroupId}": {
      "put": {
        "description": "Update or create custom claims for a specific user group",
        "operationId": "PUT_/api/custom-claims/user-group/:userGroupId",
        "parameters": [
          {
            "description": "User Group ID",
            "in": "path",
            "name": "userGroupId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CustomClaimCreateDto"
                },
                "type": "array"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CustomClaimDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update custom claims for a user group",
        "tags": [
          "Custom Claims"
        ]
      }
    },
    "/api/custom-claims/user/{userId}": {
      "put": {
        "description": "Update or create custom claims for a specific user",
        "operationId": "PUT_/api/custom-claims/user/:userId",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CustomClaimCreateDto"
                },
                "type": "array"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CustomClaimDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update custom claims for a user",
        "tags": [
          "Custom Claims"
        ]
      }
    },
    "/api/device-login/requests": {
      "post": {
        "description": "Create a short-lived request that can be approved from another authenticated device",
        "operationId": "POST_/api/device-login/requests",
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/requestCreateDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create device login request",
        "tags": [
          "Device Login"
        ]
      }
    },
    "/api/device-login/requests/{id}/exchange": {
      "post": {
        "description": "Wait for a device login decision and create a browser session after it has been approved",
        "operationId": "POST_/api/device-login/requests/:id/exchange",
        "parameters": [
          {
            "description": "Device login request ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set to false for a session that ends when the browser closes or after 20 minutes without activity",
            "in": "query",
            "name": "remember",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "Approved request exchanged for a user session"
          },
          "202": {
            "description": "Authorization pending"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Exchange device login request",
        "tags": [
          "Device Login"
        ]
      }
    },
    "/api/device-login/verification": {
      "post": {
        "description": "Retrieve the requesting device details for an authenticated user before approval or denial",
        "operationId": "POST_/api/device-login/verification",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/verificationDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verificationInfoDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Inspect device login request",
        "tags": [
          "Device Login"
        ]
      }
    },
    "/api/device-login/verification/decision": {
      "post": {
        "description": "Approve or deny a device login request; approval requires fresh passkey reauthentication",
        "operationId": "POST_/api/device-login/verification/decision",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/decisionDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Decide device login request",
        "tags": [
          "Device Login"
        ]
      }
    },
    "/api/features": {
      "get": {
        "description": "Get whether each optional feature is on and whether anything uses it; a feature in use is always on",
        "operationId": "GET_/api/features",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "$ref": "#/components/schemas/Status"
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List optional features",
        "tags": [
          "Features"
        ]
      }
    },
    "/api/oidc/claim-mapping-policies": {
      "get": {
        "description": "Get a paginated list of OIDC claim mapping policies with optional search and sorting",
        "operationId": "GET_/api/oidc/claim-mapping-policies",
        "parameters": [
          {
            "description": "Search term to filter claim mapping policies by name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "createdAt",
                "isDefault",
                "name"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_claimmappingpolicy.OidcClaimMappingPolicyMetadataDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List OIDC claim mapping policies",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      },
      "post": {
        "description": "Create a new OIDC claim mapping policy",
        "operationId": "POST_/api/oidc/claim-mapping-policies",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcClaimMappingPolicyDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClaimMappingPolicyDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create OIDC claim mapping policy",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      }
    },
    "/api/oidc/claim-mapping-policies/preview": {
      "post": {
        "description": "Get the claims that claim mappings, saved or not, release for a user and set of scopes",
        "operationId": "POST_/api/oidc/claim-mapping-policies/preview",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/claimMappingsPreviewInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimMappingsPreview"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Preview claim mappings",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      }
    },
    "/api/oidc/claim-mapping-policies/{id}": {
      "delete": {
        "description": "Delete an OIDC claim mapping policy by ID",
        "operationId": "DELETE_/api/oidc/claim-mapping-policies/:id",
        "parameters": [
          {
            "description": "Claim mapping policy ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete an OIDC claim mapping policy",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      },
      "get": {
        "description": "Retrieve an existing OIDC claim mapping policy",
        "operationId": "GET_/api/oidc/claim-mapping-policies/:id",
        "parameters": [
          {
            "description": "Claim mapping policy ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClaimMappingPolicyDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get an OIDC claim mapping policy",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      },
      "patch": {
        "description": "Update an existing OIDC claim mapping policy, where PATCH changes only the fields in the body",
        "operationId": "PATCH_/api/oidc/claim-mapping-policies/:id",
        "parameters": [
          {
            "description": "Claim mapping policy ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "claimCount": {
                    "type": "integer"
                  },
                  "claimMappings": {
                    "items": {
                      "$ref": "#/components/schemas/OidcClaimMappingDto"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "clientCount": {
                    "format": "int64",
                    "type": "integer"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "isDefault": {
                    "type": "boolean"
                  },
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "application/merge-patch+json": {
              "schema": {
                "properties": {
                  "claimCount": {
                    "type": "integer"
                  },
                  "claimMappings": {
                    "items": {
                      "$ref": "#/components/schemas/OidcClaimMappingDto"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "clientCount": {
                    "format": "int64",
                    "type": "integer"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "isDefault": {
                    "type": "boolean"
                  },
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClaimMappingPolicyDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update an OIDC claim mapping policy",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      },
      "put": {
        "description": "Update an existing OIDC claim mapping policy, where PATCH changes only the fields in the body",
        "operationId": "PUT_/api/oidc/claim-mapping-policies/:id",
        "parameters": [
          {
            "description": "Claim mapping policy ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcClaimMappingPolicyDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClaimMappingPolicyDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update an OIDC claim mapping policy",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      }
    },
    "/api/oidc/claim-mapping-policies/{id}/assignable-clients": {
      "get": {
        "description": "Get a paginated list of the OIDC clients that are not on this claim mapping policy yet",
        "operationId": "GET_/api/oidc/claim-mapping-policies/:id/assignable-clients",
        "parameters": [
          {
            "description": "Claim mapping policy ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search term to filter clients by name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "clientType",
                "createdAt",
                "disabled",
                "isGroupRestricted",
                "name",
                "pkceEnabled",
                "pkceSupported",
                "requiresPushedAuthorizationRequests",
                "requiresReauthentication",
                "skipConsent"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only items whose clientType is one of these values",
            "in": "query",
            "name": "filters[clientType]",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose disabled is one of these values",
            "in": "query",
            "name": "filters[disabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose isGroupRestricted is one of these values",
            "in": "query",
            "name": "filters[isGroupRestricted]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceEnabled is one of these values",
            "in": "query",
            "name": "filters[pkceEnabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceSupported is one of these values",
            "in": "query",
            "name": "filters[pkceSupported]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresPushedAuthorizationRequests is one of these values",
            "in": "query",
            "name": "filters[requiresPushedAuthorizationRequests]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresReauthentication is one of these values",
            "in": "query",
            "name": "filters[requiresReauthentication]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose skipConsent is one of these values",
            "in": "query",
            "name": "filters[skipConsent]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_dto.OidcClientMetaDataDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List OIDC clients that can still be assigned to a claim mapping policy",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      }
    },
    "/api/oidc/claim-mapping-policies/{id}/clients": {
      "get": {
        "description": "Get a paginated list of the OIDC clients assigned to a claim mapping policy",
        "operationId": "GET_/api/oidc/claim-mapping-policies/:id/clients",
        "parameters": [
          {
            "description": "Claim mapping policy ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search term to filter clients by name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "clientType",
                "createdAt",
                "disabled",
                "isGroupRestricted",
                "name",
                "pkceEnabled",
                "pkceSupported",
                "requiresPushedAuthorizationRequests",
                "requiresReauthentication",
                "skipConsent"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only items whose clientType is one of these values",
            "in": "query",
            "name": "filters[clientType]",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose disabled is one of these values",
            "in": "query",
            "name": "filters[disabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose isGroupRestricted is one of these values",
            "in": "query",
            "name": "filters[isGroupRestricted]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceEnabled is one of these values",
            "in": "query",
            "name": "filters[pkceEnabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceSupported is one of these values",
            "in": "query",
            "name": "filters[pkceSupported]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresPushedAuthorizationRequests is one of these values",
            "in": "query",
            "name": "filters[requiresPushedAuthorizationRequests]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresReauthentication is one of these values",
            "in": "query",
            "name": "filters[requiresReauthentication]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose skipConsent is one of these values",
            "in": "query",
            "name": "filters[skipConsent]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_dto.OidcClientMetaDataDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List OIDC clients using a claim mapping policy",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      }
    },
    "/api/oidc/claim-mapping-policies/{id}/clients/{clientId}": {
      "delete": {
        "description": "Remove an OIDC client from this claim mapping policy, so it falls back to the default one",
        "operationId": "DELETE_/api/oidc/claim-mapping-policies/:id/clients/:clientId",
        "parameters": [
          {
            "description": "Claim mapping policy ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "OIDC Client ID",
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Detach an OIDC client from a claim mapping policy",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      },
      "post": {
        "description": "Point an OIDC client at this claim mapping policy, replacing the policy it was on",
        "operationId": "POST_/api/oidc/claim-mapping-policies/:id/clients/:clientId",
        "parameters": [
          {
            "description": "Claim mapping policy ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "OIDC Client ID",
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Assign an OIDC client to a claim mapping policy",
        "tags": [
          "OIDC Claim Mapping Policies"
        ]
      }
    },
    "/api/oidc/clients": {
      "get": {
        "description": "Get a paginated list of OIDC clients with optional search and sorting",
        "operationId": "GET_/api/oidc/clients",
        "parameters": [
          {
            "description": "Search term to filter clients by name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "allowedUserGroups",
                "clientType",
                "createdAt",
                "disabled",
                "isGroupRestricted",
                "name",
                "pkceEnabled",
                "pkceSupported",
                "requiresPushedAuthorizationRequests",
                "requiresReauthentication",
                "skipConsent"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only items whose clientType is one of these values",
            "in": "query",
            "name": "filters[clientType]",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose disabled is one of these values",
            "in": "query",
            "name": "filters[disabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose isGroupRestricted is one of these values",
            "in": "query",
            "name": "filters[isGroupRestricted]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceEnabled is one of these values",
            "in": "query",
            "name": "filters[pkceEnabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceSupported is one of these values",
            "in": "query",
            "name": "filters[pkceSupported]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresPushedAuthorizationRequests is one of these values",
            "in": "query",
            "name": "filters[requiresPushedAuthorizationRequests]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresReauthentication is one of these values",
            "in": "query",
            "name": "filters[requiresReauthentication]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose skipConsent is one of these values",
            "in": "query",
            "name": "filters[skipConsent]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_dto.OidcClientWithAllowedGroupsDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List OIDC clients",
        "tags": [
          "OIDC"
        ]
      },
      "post": {
        "description": "Create a new OIDC client",
        "operationId": "POST_/api/oidc/clients",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcClientCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClientCreatedDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create OIDC client",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/clients/{id}": {
      "delete": {
        "description": "Delete an OIDC client by ID",
        "operationId": "DELETE_/api/oidc/clients/:id",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete OIDC client",
        "tags": [
          "OIDC"
        ]
      },
      "get": {
        "description": "Get detailed information about an OIDC client",
        "operationId": "GET_/api/oidc/clients/:id",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClientWithAllowedUserGroupsDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get OIDC client",
        "tags": [
          "OIDC"
        ]
      },
      "patch": {
        "description": "Update an existing OIDC client, where PATCH changes only the fields in the body",
        "operationId": "PATCH_/api/oidc/clients/:id",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accessTokenDurationMinutes": {
                    "format": "int64",
                    "type": "integer"
                  },
                  "backchannelLogoutURL": {
                    "type": "string"
                  },
                  "callbackURLs": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "claimMappingPolicyId": {
                    "type": "string"
                  },
                  "credentials": {
                    "$ref": "#/components/schemas/OidcClientCredentialsDto"
                  },
                  "darkLogoUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "maxLength": 150,
                    "type": "string"
                  },
                  "disabled": {
                    "type": "boolean"
                  },
                  "hasDarkLogo": {
                    "type": "boolean"
                  },
                  "hasLogo": {
                    "type": "boolean"
                  },
                  "isGroupRestricted": {
                    "type": "boolean"
                  },
                  "isPublic": {
                    "type": "boolean"
                  },
                  "launchURL": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "logoUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "logoutCallbackURLs": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "name": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "pkceEnabled": {
                    "type": "boolean"
                  },
                  "refreshTokenDurationMinutes": {
                    "format": "int64",
                    "type": "integer"
                  },
                  "requiresPushedAuthorizationRequests": {
                    "type": "boolean"
                  },
                  "requiresReauthentication": {
                    "type": "boolean"
                  },
                  "skipConsent": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "application/merge-patch+json": {
              "schema": {
                "properties": {
                  "accessTokenDurationMinutes": {
                    "format": "int64",
                    "type": "integer"
                  },
                  "backchannelLogoutURL": {
                    "type": "string"
                  },
                  "callbackURLs": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "claimMappingPolicyId": {
                    "type": "string"
                  },
                  "credentials": {
                    "$ref": "#/components/schemas/OidcClientCredentialsDto"
                  },
                  "darkLogoUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "maxLength": 150,
                    "type": "string"
                  },
                  "disabled": {
                    "type": "boolean"
                  },
                  "hasDarkLogo": {
                    "type": "boolean"
                  },
                  "hasLogo": {
                    "type": "boolean"
                  },
                  "isGroupRestricted": {
                    "type": "boolean"
                  },
                  "isPublic": {
                    "type": "boolean"
                  },
                  "launchURL": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "logoUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "logoutCallbackURLs": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "name": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "pkceEnabled": {
                    "type": "boolean"
                  },
                  "refreshTokenDurationMinutes": {
                    "format": "int64",
                    "type": "integer"
                  },
                  "requiresPushedAuthorizationRequests": {
                    "type": "boolean"
                  },
                  "requiresReauthentication": {
                    "type": "boolean"
                  },
                  "skipConsent": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClientWithAllowedUserGroupsDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update OIDC client",
        "tags": [
          "OIDC"
        ]
      },
      "put": {
        "description": "Update an existing OIDC client, where PATCH changes only the fields in the body",
        "operationId": "PUT_/api/oidc/clients/:id",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcClientUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClientWithAllowedUserGroupsDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update OIDC client",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/clients/{id}/allowed-user-groups": {
      "put": {
        "description": "Update the user groups allowed to access an OIDC client",
        "operationId": "PUT_/api/oidc/clients/:id/allowed-user-groups",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcUpdateAllowedUserGroupsDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClientDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update allowed user groups",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/clients/{id}/logo": {
      "delete": {
        "description": "Delete the logo for an OIDC client",
        "operationId": "DELETE_/api/oidc/clients/:id/logo",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Light mode logo (true) or dark mode logo (false)",
            "in": "query",
            "name": "light",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete client logo",
        "tags": [
          "OIDC"
        ]
      },
      "get": {
        "description": "Get the logo image for an OIDC client",
        "operationId": "GET_/api/oidc/clients/:id/logo",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Light mode logo (true) or dark mode logo (false)",
            "in": "query",
            "name": "light",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/jpeg": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/png": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "image/svg+xml": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Logo image"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get client logo",
        "tags": [
          "OIDC"
        ]
      },
      "post": {
        "description": "Upload or update the logo for an OIDC client",
        "operationId": "POST_/api/oidc/clients/:id/logo",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Light mode logo (true) or dark mode logo (false)",
            "in": "query",
            "name": "light",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "Logo image file (PNG, JPG, or SVG)",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update client logo",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/clients/{id}/preview/{userId}": {
      "get": {
        "description": "Get a preview of the OIDC data (ID token, access token, userinfo) that would be sent to the client for a specific user",
        "operationId": "GET_/api/oidc/clients/:id/preview/:userId",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "User ID to preview data for",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Scopes to include in the preview (space-separated)",
            "in": "query",
            "name": "scopes",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClientPreviewDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Preview OIDC client data for user",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/clients/{id}/refresh": {
      "post": {
        "description": "Force a re-fetch of the OAuth Client ID Metadata Document for a CIMD client",
        "operationId": "POST_/api/oidc/clients/:id/refresh",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClientWithAllowedUserGroupsDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Refresh client metadata document",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/clients/{id}/scim-service-provider": {
      "get": {
        "description": "Get the SCIM service provider configuration for an OIDC client",
        "operationId": "GET_/api/oidc/clients/:id/scim-service-provider",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScimServiceProviderDTO"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get SCIM service provider",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/clients/{id}/secrets": {
      "get": {
        "description": "List the secrets of an OIDC client, without disclosing their values",
        "operationId": "GET_/api/oidc/clients/:id/secrets",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OidcClientSecretDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List client secrets",
        "tags": [
          "OIDC"
        ]
      },
      "post": {
        "description": "Add a new secret to an OIDC client, leaving the existing ones usable. The value is only returned by this endpoint and cannot be retrieved later.",
        "operationId": "POST_/api/oidc/clients/:id/secrets",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcClientSecretCreateDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcClientSecretCreatedDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create client secret",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/clients/{id}/secrets/{secretId}": {
      "delete": {
        "description": "Delete a single secret of an OIDC client, making it immediately unusable",
        "operationId": "DELETE_/api/oidc/clients/:id/secrets/:secretId",
        "parameters": [
          {
            "description": "Client ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Client secret ID",
            "in": "path",
            "name": "secretId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete client secret",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/custom-scopes": {
      "get": {
        "description": "Get a paginated list of the custom OIDC scopes with optional search and sorting",
        "operationId": "GET_/api/oidc/custom-scopes",
        "parameters": [
          {
            "description": "Search term to filter scopes by key or name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "createdAt",
                "key",
                "name"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_claimmappingpolicy.CustomScopeDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List custom OIDC scopes",
        "tags": [
          "OIDC Custom Scopes"
        ]
      },
      "post": {
        "description": "Create a custom OIDC scope, which claim mappings can then be released with",
        "operationId": "POST_/api/oidc/custom-scopes",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomScopeDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomScopeDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create a custom OIDC scope",
        "tags": [
          "OIDC Custom Scopes"
        ]
      }
    },
    "/api/oidc/custom-scopes/keys": {
      "get": {
        "description": "Get the keys of every custom OIDC scope, sorted, for pickers that offer all of them at once",
        "operationId": "GET_/api/oidc/custom-scopes/keys",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List the keys of all custom OIDC scopes",
        "tags": [
          "OIDC Custom Scopes"
        ]
      }
    },
    "/api/oidc/custom-scopes/{id}": {
      "delete": {
        "description": "Delete a custom OIDC scope that no claim mapping is released with",
        "operationId": "DELETE_/api/oidc/custom-scopes/:id",
        "parameters": [
          {
            "description": "Custom scope ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete a custom OIDC scope",
        "tags": [
          "OIDC Custom Scopes"
        ]
      },
      "patch": {
        "description": "Update the name and description of a custom OIDC scope, whose key can't change, where PATCH changes only the fields in the body",
        "operationId": "PATCH_/api/oidc/custom-scopes/:id",
        "parameters": [
          {
            "description": "Custom scope ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "createdAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "description": {
                    "maxLength": 1000,
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "key": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "policies": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "application/merge-patch+json": {
              "schema": {
                "properties": {
                  "createdAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "description": {
                    "maxLength": 1000,
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "key": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "policies": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomScopeDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update a custom OIDC scope",
        "tags": [
          "OIDC Custom Scopes"
        ]
      },
      "put": {
        "description": "Update the name and description of a custom OIDC scope, whose key can't change, where PATCH changes only the fields in the body",
        "operationId": "PUT_/api/oidc/custom-scopes/:id",
        "parameters": [
          {
            "description": "Custom scope ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomScopeDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomScopeDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update a custom OIDC scope",
        "tags": [
          "OIDC Custom Scopes"
        ]
      }
    },
    "/api/oidc/introspect": {
      "post": {
        "description": "Pass a token to verify if it is considered valid.",
        "operationId": "POST_/api/oidc/introspect",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/introspectionForm"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "Response with the introspection result."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Introspect OIDC tokens",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/logo-presets": {
      "get": {
        "description": "Search the icon library for logos that can be used for OIDC clients",
        "operationId": "GET_/api/oidc/logo-presets",
        "parameters": [
          {
            "description": "Search term matched against the icon name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/logoPresetDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Search logo presets",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/userinfo": {
      "get": {
        "description": "Get user information based on the access token",
        "operationId": "GET_/api/oidc/userinfo",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "User claims based on requested scopes"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get user information",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/users/me/authorized-clients": {
      "get": {
        "description": "Get a paginated list of OIDC clients that the current user has authorized",
        "operationId": "GET_/api/oidc/users/me/authorized-clients",
        "parameters": [
          {
            "description": "Search term to filter clients by name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "lastUsedAt",
                "name"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Filter clients by whether a launch URL is configured",
            "in": "query",
            "name": "filters[hasLaunchURL]",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_dto.AuthorizedOidcClientDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List authorized clients for current user",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/users/me/authorized-clients/{clientId}": {
      "delete": {
        "description": "Revoke the authorization for a specific OIDC client for the current user",
        "operationId": "DELETE_/api/oidc/users/me/authorized-clients/:clientId",
        "parameters": [
          {
            "description": "Client ID to revoke authorization for",
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Revoke authorization for an OIDC client",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/users/me/clients": {
      "get": {
        "description": "Get a list of OIDC clients that the current user can access",
        "operationId": "GET_/api/oidc/users/me/clients",
        "parameters": [
          {
            "description": "Search term to filter clients by name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "clientType",
                "createdAt",
                "disabled",
                "isGroupRestricted",
                "lastUsedAt",
                "name",
                "pkceEnabled",
                "pkceSupported",
                "requiresPushedAuthorizationRequests",
                "requiresReauthentication",
                "skipConsent"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only items whose clientType is one of these values",
            "in": "query",
            "name": "filters[clientType]",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose disabled is one of these values",
            "in": "query",
            "name": "filters[disabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose isGroupRestricted is one of these values",
            "in": "query",
            "name": "filters[isGroupRestricted]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceEnabled is one of these values",
            "in": "query",
            "name": "filters[pkceEnabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose pkceSupported is one of these values",
            "in": "query",
            "name": "filters[pkceSupported]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresPushedAuthorizationRequests is one of these values",
            "in": "query",
            "name": "filters[requiresPushedAuthorizationRequests]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose requiresReauthentication is one of these values",
            "in": "query",
            "name": "filters[requiresReauthentication]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose skipConsent is one of these values",
            "in": "query",
            "name": "filters[skipConsent]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Filter clients by whether a launch URL is configured",
            "in": "query",
            "name": "filters[hasLaunchURL]",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_dto.AccessibleOidcClientDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List accessible OIDC clients for current user",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/oidc/users/{id}/authorized-clients": {
      "get": {
        "description": "Get a paginated list of OIDC clients that a specific user has authorized",
        "operationId": "GET_/api/oidc/users/:id/authorized-clients",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search term to filter clients by name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "lastUsedAt",
                "name"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Filter clients by whether a launch URL is configured",
            "in": "query",
            "name": "filters[hasLaunchURL]",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_dto.AuthorizedOidcClientDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List authorized clients for a user",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/one-time-access-email": {
      "post": {
        "description": "Request a one-time access email for unauthenticated users",
        "operationId": "POST_/api/one-time-access-email",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/emailAsUnauthenticatedUserDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Request one-time access email",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/one-time-access-token": {
      "post": {
        "description": "Exchange a one-time access token for a session token",
        "operationId": "POST_/api/one-time-access-token",
        "parameters": [
          {
            "description": "Set to false for a session that ends when the browser closes or after 20 minutes without activity",
            "in": "query",
            "name": "remember",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/exchangeTokenDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Exchange one-time access token",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/scim/service-provider": {
      "post": {
        "description": "Create a new SCIM service provider",
        "operationId": "POST_/api/scim/service-provider",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScimServiceProviderCreateDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScimServiceProviderDTO"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create SCIM service provider",
        "tags": [
          "SCIM"
        ]
      }
    },
    "/api/scim/service-provider/{id}": {
      "delete": {
        "description": "Delete a SCIM service provider by ID",
        "operationId": "DELETE_/api/scim/service-provider/:id",
        "parameters": [
          {
            "description": "Service Provider ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete SCIM service provider",
        "tags": [
          "SCIM"
        ]
      },
      "patch": {
        "description": "Update an existing SCIM service provider, where PATCH changes only the fields in the body, an omitted token keeps the stored one, an empty token removes it and a changed endpoint requires the token",
        "operationId": "PATCH_/api/scim/service-provider/:id",
        "parameters": [
          {
            "description": "Service Provider ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "endpoint": {
                    "type": "string"
                  },
                  "oidcClientId": {
                    "type": "string"
                  },
                  "token": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "application/merge-patch+json": {
              "schema": {
                "properties": {
                  "endpoint": {
                    "type": "string"
                  },
                  "oidcClientId": {
                    "type": "string"
                  },
                  "token": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScimServiceProviderDTO"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update SCIM service provider",
        "tags": [
          "SCIM"
        ]
      },
      "put": {
        "description": "Update an existing SCIM service provider, where PATCH changes only the fields in the body, an omitted token keeps the stored one, an empty token removes it and a changed endpoint requires the token",
        "operationId": "PUT_/api/scim/service-provider/:id",
        "parameters": [
          {
            "description": "Service Provider ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScimServiceProviderCreateDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScimServiceProviderDTO"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update SCIM service provider",
        "tags": [
          "SCIM"
        ]
      }
    },
    "/api/scim/service-provider/{id}/sync": {
      "post": {
        "description": "Trigger synchronization for a SCIM service provider",
        "operationId": "POST_/api/scim/service-provider/:id/sync",
        "parameters": [
          {
            "description": "Service Provider ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Sync SCIM service provider",
        "tags": [
          "SCIM"
        ]
      }
    },
    "/api/sessions": {
      "delete": {
        "description": "Sign the current user out of every session except the current one",
        "operationId": "DELETE_/api/sessions",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Revoke other own sessions",
        "tags": [
          "Sessions"
        ]
      },
      "get": {
        "description": "Get the browsers in which the current user is signed in, most recently active first",
        "operationId": "GET_/api/sessions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/sessionDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List own sessions",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/sessions/current/remember": {
      "post": {
        "description": "Keep the current session signed in after the browser closes and while it goes unused, for a sign-in that was not remembered",
        "operationId": "POST_/api/sessions/current/remember",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Remember current session",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/sessions/{id}": {
      "delete": {
        "description": "Sign the current user out of one of their sessions",
        "operationId": "DELETE_/api/sessions/:id",
        "parameters": [
          {
            "description": "Session ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Revoke own session",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/signup": {
      "post": {
        "description": "Create a new user account",
        "operationId": "POST_/api/signup",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/signUpDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Sign up",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/signup-tokens": {
      "get": {
        "description": "Get a paginated list of signup tokens",
        "operationId": "GET_/api/signup-tokens",
        "parameters": [
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "createdAt",
                "expiresAt",
                "usageCount",
                "usageLimit"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_usersignup.signupTokenDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List signup tokens",
        "tags": [
          "Users"
        ]
      },
      "post": {
        "description": "Create a new signup token that allows user registration",
        "operationId": "POST_/api/signup-tokens",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/signupTokenCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/signupTokenDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create signup token",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/signup-tokens/{id}": {
      "delete": {
        "description": "Delete a signup token by ID",
        "operationId": "DELETE_/api/signup-tokens/:id",
        "parameters": [
          {
            "description": "Token ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete signup token",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/signup/setup": {
      "get": {
        "description": "Succeeds while no admin has been set up yet and fails with setup_not_available afterwards",
        "operationId": "GET_/api/signup/setup",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Check initial admin setup",
        "tags": [
          "Users"
        ]
      },
      "post": {
        "description": "Sign up and generate setup access token for initial admin user",
        "operationId": "POST_/api/signup/setup",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/signUpDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Sign up initial admin user",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/storage/sqlite-warning": {
      "get": {
        "description": "Reports whether Pocket ID found its SQLite database on a networked filesystem, which is unsupported and can lead to database corruption",
        "operationId": "GET_/api/storage/sqlite-warning",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sqliteStorageWarningDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get whether the SQLite storage warning should be shown",
        "tags": [
          "Storage"
        ]
      }
    },
    "/api/user-groups": {
      "get": {
        "description": "Get a paginated list of user groups with optional search and sorting",
        "operationId": "GET_/api/user-groups",
        "parameters": [
          {
            "description": "Search term to filter user groups by name",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "createdAt",
                "friendlyName",
                "name",
                "userCount"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_dto.UserGroupMinimalDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List user groups",
        "tags": [
          "User Groups"
        ]
      },
      "post": {
        "description": "Create a new user group",
        "operationId": "POST_/api/user-groups",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserGroupCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGroupDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create user group",
        "tags": [
          "User Groups"
        ]
      }
    },
    "/api/user-groups/{id}": {
      "delete": {
        "description": "Delete a specific user group by ID",
        "operationId": "DELETE_/api/user-groups/:id",
        "parameters": [
          {
            "description": "User Group ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete user group",
        "tags": [
          "User Groups"
        ]
      },
      "get": {
        "description": "Retrieve detailed information about a specific user group including its users",
        "operationId": "GET_/api/user-groups/:id",
        "parameters": [
          {
            "description": "User Group ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGroupDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get user group by ID",
        "tags": [
          "User Groups"
        ]
      },
      "patch": {
        "description": "Update an existing user group by ID, where PATCH changes only the fields in the body",
        "operationId": "PATCH_/api/user-groups/:id",
        "parameters": [
          {
            "description": "User Group ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "friendlyName": {
                    "maxLength": 50,
                    "minLength": 2,
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 255,
                    "minLength": 2,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "application/merge-patch+json": {
              "schema": {
                "properties": {
                  "friendlyName": {
                    "maxLength": 50,
                    "minLength": 2,
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 255,
                    "minLength": 2,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGroupDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update user group",
        "tags": [
          "User Groups"
        ]
      },
      "put": {
        "description": "Update an existing user group by ID, where PATCH changes only the fields in the body",
        "operationId": "PUT_/api/user-groups/:id",
        "parameters": [
          {
            "description": "User Group ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserGroupCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGroupDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update user group",
        "tags": [
          "User Groups"
        ]
      }
    },
    "/api/user-groups/{id}/allowed-oidc-clients": {
      "put": {
        "description": "Update the OIDC clients allowed for a specific user group",
        "operationId": "PUT_/api/user-groups/:id/allowed-oidc-clients",
        "parameters": [
          {
            "description": "User Group ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserGroupUpdateAllowedOidcClientsDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGroupDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update allowed OIDC clients",
        "tags": [
          "OIDC"
        ]
      }
    },
    "/api/user-groups/{id}/users": {
      "put": {
        "description": "Update the list of users belonging to a specific user group",
        "operationId": "PUT_/api/user-groups/:id/users",
        "parameters": [
          {
            "description": "User Group ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserGroupUpdateUsersDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGroupDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update users in a group",
        "tags": [
          "User Groups"
        ]
      }
    },
    "/api/users": {
      "get": {
        "description": "Get a paginated list of users with optional search and sorting",
        "operationId": "GET_/api/users",
        "parameters": [
          {
            "description": "Search term to filter users",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number for pagination",
            "in": "query",
            "name": "pagination[page]",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of items per page",
            "in": "query",
            "name": "pagination[limit]",
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "Column to sort by",
            "in": "query",
            "name": "sort[column]",
            "schema": {
              "enum": [
                "createdAt",
                "disabled",
                "displayName",
                "email",
                "emailVerified",
                "firstName",
                "isAdmin",
                "lastName",
                "username"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction",
            "in": "query",
            "name": "sort[direction]",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only items whose disabled is one of these values",
            "in": "query",
            "name": "filters[disabled]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose emailVerified is one of these values",
            "in": "query",
            "name": "filters[emailVerified]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          },
          {
            "description": "Only items whose isAdmin is one of these values",
            "in": "query",
            "name": "filters[isAdmin]",
            "schema": {
              "items": {
                "type": "boolean"
              },
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_dto.UserDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List users",
        "tags": [
          "Users"
        ]
      },
      "post": {
        "description": "Create a new user",
        "operationId": "POST_/api/users",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create user",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/me": {
      "get": {
        "description": "Retrieve information about the currently authenticated user",
        "operationId": "GET_/api/users/me",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get current user",
        "tags": [
          "Users"
        ]
      },
      "patch": {
        "description": "Update the currently authenticated user's information, where PATCH changes only the fields in the body",
        "operationId": "PATCH_/api/users/me",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "disabled": {
                    "type": "boolean"
                  },
                  "displayName": {
                    "maxLength": 100,
                    "type": "string"
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "emailVerified": {
                    "type": "boolean"
                  },
                  "firstName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "isAdmin": {
                    "type": "boolean"
                  },
                  "lastName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "locale": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "userGroupIds": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "username": {
                    "maxLength": 50,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "application/merge-patch+json": {
              "schema": {
                "properties": {
                  "disabled": {
                    "type": "boolean"
                  },
                  "displayName": {
                    "maxLength": 100,
                    "type": "string"
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "emailVerified": {
                    "type": "boolean"
                  },
                  "firstName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "isAdmin": {
                    "type": "boolean"
                  },
                  "lastName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "locale": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "userGroupIds": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "username": {
                    "maxLength": 50,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update current user",
        "tags": [
          "Users"
        ]
      },
      "put": {
        "description": "Update the currently authenticated user's information, where PATCH changes only the fields in the body",
        "operationId": "PUT_/api/users/me",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update current user",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/me/email-change": {
      "delete": {
        "description": "Cancel the pending email change of the currently authenticated user, so its verification link stops working",
        "operationId": "DELETE_/api/users/me/email-change",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Cancel pending email change",
        "tags": [
          "Users"
        ]
      },
      "get": {
        "description": "Get the email change of the currently authenticated user that still has to be confirmed through the emailed link",
        "operationId": "GET_/api/users/me/email-change",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/emailChangeDto"
                }
              }
            },
            "description": "OK"
          },
          "204": {
            "description": "No pending email change"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get pending email change",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/me/profile-picture": {
      "delete": {
        "description": "Reset the currently authenticated user's profile picture to the default",
        "operationId": "DELETE_/api/users/me/profile-picture",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Reset current user's profile picture",
        "tags": [
          "Users"
        ]
      },
      "put": {
        "description": "Update the currently authenticated user's profile picture",
        "operationId": "PUT_/api/users/me/profile-picture",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "Profile picture image file (PNG, JPG, or JPEG)",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update current user's profile picture",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/me/send-email-verification": {
      "post": {
        "description": "Send an email verification to the currently authenticated user",
        "operationId": "POST_/api/users/me/send-email-verification",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Send email verification",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/me/verify-email": {
      "post": {
        "description": "Verify the currently authenticated user's email using a verification token",
        "operationId": "POST_/api/users/me/verify-email",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailVerificationDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Verify email",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/{id}": {
      "delete": {
        "description": "Delete a specific user by ID",
        "operationId": "DELETE_/api/users/:id",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete user",
        "tags": [
          "Users"
        ]
      },
      "get": {
        "description": "Retrieve detailed information about a specific user",
        "operationId": "GET_/api/users/:id",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get user by ID",
        "tags": [
          "Users"
        ]
      },
      "patch": {
        "description": "Update an existing user by ID, where PATCH changes only the fields in the body",
        "operationId": "PATCH_/api/users/:id",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "disabled": {
                    "type": "boolean"
                  },
                  "displayName": {
                    "maxLength": 100,
                    "type": "string"
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "emailVerified": {
                    "type": "boolean"
                  },
                  "firstName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "isAdmin": {
                    "type": "boolean"
                  },
                  "lastName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "locale": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "userGroupIds": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "username": {
                    "maxLength": 50,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "application/merge-patch+json": {
              "schema": {
                "properties": {
                  "disabled": {
                    "type": "boolean"
                  },
                  "displayName": {
                    "maxLength": 100,
                    "type": "string"
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "emailVerified": {
                    "type": "boolean"
                  },
                  "firstName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "isAdmin": {
                    "type": "boolean"
                  },
                  "lastName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "locale": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "userGroupIds": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "username": {
                    "maxLength": 50,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update user",
        "tags": [
          "Users"
        ]
      },
      "put": {
        "description": "Update an existing user by ID, where PATCH changes only the fields in the body",
        "operationId": "PUT_/api/users/:id",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update user",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/{id}/groups": {
      "get": {
        "description": "Retrieve all groups a specific user belongs to",
        "operationId": "GET_/api/users/:id/groups",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UserGroupDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get user groups",
        "tags": [
          "Users",
          "User Groups"
        ]
      }
    },
    "/api/users/{id}/one-time-access-email": {
      "post": {
        "description": "Request a one-time access email for a specific user (admin only)",
        "operationId": "POST_/api/users/:id/one-time-access-email",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/emailAsAdminDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Request one-time access email (admin)",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/{id}/one-time-access-token": {
      "post": {
        "description": "Generate a one-time access token for a specific user (admin only)",
        "operationId": "POST_/api/users/:id/one-time-access-token",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/tokenCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tokenCreatedDto"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Create one-time access token for user (admin)",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/{id}/profile-picture": {
      "delete": {
        "description": "Reset a specific user's profile picture to the default",
        "operationId": "DELETE_/api/users/:id/profile-picture",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Reset user profile picture",
        "tags": [
          "Users"
        ]
      },
      "put": {
        "description": "Update a specific user's profile picture",
        "operationId": "PUT_/api/users/:id/profile-picture",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "Profile picture image file (PNG, JPG, or JPEG)",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update user profile picture",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/{id}/profile-picture.png": {
      "get": {
        "description": "Retrieve a specific user's profile picture",
        "operationId": "GET_/api/users/:id/profile-picture.png",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/png": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "PNG image"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get user profile picture",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/{id}/sessions": {
      "delete": {
        "description": "Sign a user out of every session and revoke every grant their apps hold, offline_access ones included",
        "operationId": "DELETE_/api/users/:id/sessions",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Revoke all sessions of a user",
        "tags": [
          "Sessions"
        ]
      },
      "get": {
        "description": "Get the browsers in which a user is signed in, most recently active first",
        "operationId": "GET_/api/users/:id/sessions",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/sessionDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List sessions of a user",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/users/{id}/sessions/{sessionId}": {
      "delete": {
        "description": "Sign a user out of one of their sessions",
        "operationId": "DELETE_/api/users/:id/sessions/:sessionId",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Session ID",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Revoke a session of a user",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/users/{id}/user-groups": {
      "put": {
        "description": "Update the groups a specific user belongs to",
        "operationId": "PUT_/api/users/:id/user-groups",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdateUserGroupDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Update user groups",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/{id}/webauthn-credentials": {
      "get": {
        "description": "Retrieve all WebAuthn credentials for a specific user",
        "operationId": "GET_/api/users/:id/webauthn-credentials",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WebauthnCredentialDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "List user passkeys",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/users/{id}/webauthn-credentials/{credentialId}": {
      "delete": {
        "description": "Delete a specific WebAuthn credential for a user",
        "operationId": "DELETE_/api/users/:id/webauthn-credentials/:credentialId",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Credential ID",
            "in": "path",
            "name": "credentialId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Delete user passkey",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/version/current": {
      "get": {
        "operationId": "GET_/api/version/current",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/currentVersionDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get current deployed version of Pocket ID",
        "tags": [
          "Version"
        ]
      }
    },
    "/api/version/latest": {
      "get": {
        "operationId": "GET_/api/version/latest",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/latestVersionDto"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Get latest available version of Pocket ID",
        "tags": [
          "Version"
        ]
      }
    },
    "/healthz": {
      "get": {
        "description": "Responds with a successful status code to healthcheck requests",
        "operationId": "GET_/healthz",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDto"
                }
              }
            },
            "description": "Error"
          }
        },
        "summary": "Responds to healthchecks",
        "tags": [
          "Health"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "Users, their passkeys and profile pictures, login codes and signup tokens.",
      "name": "Users"
    },
    {
      "description": "Groups and their members.",
      "name": "User Groups"
    },
    {
      "description": "OIDC clients with their secrets, logos and allowed groups, plus the clients each user has authorized.",
      "name": "OIDC"
    },
    {
      "description": "Scopes of your own that clients can request besides the built-in ones.",
      "name": "OIDC Custom Scopes"
    },
    {
      "description": "Policies that decide which claims the tokens of a scope carry and who may request it.",
      "name": "OIDC Claim Mapping Policies"
    },
    {
      "description": "Your own APIs, their permissions and the clients that may request them.",
      "name": "APIs"
    },
    {
      "description": "Extra claims that Pocket ID adds to the tokens of a user or of every member of a group.",
      "name": "Custom Claims"
    },
    {
      "description": "Keys for this REST API.",
      "name": "API Keys"
    },
    {
      "description": "The sign-in sessions of the current user or of any user.",
      "name": "Sessions"
    },
    {
      "description": "The settings of the Application Configuration page, the LDAP sync and the test email.",
      "name": "Application Configuration"
    },
    {
      "description": "The logo, favicon, background, font, email logo and default profile picture.",
      "name": "Application Assets"
    },
    {
      "description": "The optional features and whether they are on.",
      "name": "Features"
    },
    {
      "description": "Sign-ins and other security events, of the current user or of everyone.",
      "name": "Audit Logs"
    },
    {
      "description": "SCIM provisioning of an OIDC client.",
      "name": "SCIM"
    },
    {
      "description": "The requests behind sign-in with another device.",
      "name": "Device Login"
    },
    {
      "description": "Discovery documents and signing keys, which OIDC clients read without authentication.",
      "name": "Well Known"
    },
    {
      "description": "The running version and the latest release.",
      "name": "Version"
    },
    {
      "description": "A health check for container orchestrators and load balancers.",
      "name": "Health"
    },
    {
      "description": "Storage warnings for the admin UI.",
      "name": "Storage"
    }
  ]
}