{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thebridge-dev/json-schema/thebridge-dev-update-app-request-dto-schema.json",
  "title": "UpdateAppRequestDto",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thebridge-dev-openapi.json#/components/schemas/UpdateAppRequestDto",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "apiUrl": {
      "type": "string"
    },
    "uiUrl": {
      "type": "string"
    },
    "webhookUrl": {
      "type": "string"
    },
    "webhookEventFilter": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "webhookEnabled": {
      "type": "boolean"
    },
    "logo": {
      "type": "string"
    },
    "tenantSelfSignup": {
      "type": "boolean",
      "description": "Allow self signup (relates to cloud views, payment providers etc)"
    },
    "redirectUris": {
      "description": "Allowed redirect uris",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allowedOrigins": {
      "description": "Allowed origins for SDK mode (CORS + origin validation)",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "defaultCallbackUri": {
      "type": "string",
      "description": "Default handover/callback uri used by Nblocks"
    },
    "onboardingFlow": {
      "enum": [
        "B2B",
        "B2C"
      ],
      "type": "string"
    },
    "websiteUrl": {
      "type": "string"
    },
    "privacyPolicyUrl": {
      "type": "string"
    },
    "termsOfServiceUrl": {
      "type": "string"
    },
    "emailSenderName": {
      "type": "string"
    },
    "emailSenderEmail": {
      "type": "string"
    },
    "paymentsAutoRedirect": {
      "type": "boolean"
    },
    "passkeysEnabled": {
      "type": "boolean"
    },
    "stripeEnabled": {
      "type": "boolean"
    },
    "currency": {
      "type": "string"
    },
    "mfaEnabled": {
      "type": "boolean"
    },
    "magicLinkEnabled": {
      "type": "boolean"
    },
    "googleSsoEnabled": {
      "type": "boolean"
    },
    "linkedinSsoEnabled": {
      "type": "boolean"
    },
    "azureAdSsoEnabled": {
      "type": "boolean"
    },
    "appleSsoEnabled": {
      "type": "boolean"
    },
    "githubSsoEnabled": {
      "type": "boolean"
    },
    "facebookSsoEnabled": {
      "type": "boolean"
    },
    "azureMarketplaceEnabled": {
      "type": "boolean"
    },
    "accessTokenTTL": {
      "type": "number"
    },
    "refreshTokenTTL": {
      "type": "number"
    },
    "allowedTokenPrivileges": {
      "description": "Controls which privileges workspace users (OWNER/ADMIN) can grant on workspace-scoped API tokens.\nnull = flexible (no restriction). [] = disabled. ['USER_READ', ...] = restricted to list.",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    }
  }
}