{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aurinko/json-schema/aurinko-api-account-in-dto-schema.json",
  "title": "ApiAccountInDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aurinko-accounts-api-openapi.yml#/components/schemas/ApiAccountInDto",
  "type": "object",
  "required": [
    "serviceType",
    "active"
  ],
  "properties": {
    "serviceType": {
      "$ref": "#/$defs/ServiceType"
    },
    "authScopes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Scope"
      }
    },
    "authOrgId": {
      "type": "string"
    },
    "authUserId": {
      "type": "string"
    },
    "clientOrgId": {
      "type": "string"
    },
    "serverUrl": {
      "type": "string"
    },
    "loginString": {
      "type": "string",
      "description": "This or email field must be specified"
    },
    "oauthClientId": {
      "type": "string"
    },
    "active": {
      "type": "boolean",
      "description": "The account is always active in the current API version"
    },
    "authString1": {
      "type": "string"
    },
    "authString2": {
      "type": "string"
    },
    "password": {
      "type": "string",
      "description": "Password for IMAP accounts"
    },
    "authObtainedAt": {
      "type": "string",
      "format": "date-time"
    },
    "authExpiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "email": {
      "type": "string",
      "description": "This or loginString field must be specified"
    },
    "name": {
      "type": "string"
    },
    "serverInfo": {
      "type": "string"
    },
    "timezone": {
      "type": "string"
    }
  },
  "$defs": {
    "Scope": {
      "type": "string",
      "enum": [
        "Calendar.Read",
        "Calendar.ReadWrite",
        "Mail.Read",
        "Mail.ReadWrite",
        "Mail.Send",
        "Mail.Drafts",
        "Mail.All",
        "Contacts.Read",
        "Contacts.ReadWrite",
        "Tasks.Read",
        "Tasks.ReadWrite"
      ],
      "description": "Space separated list of scopes"
    },
    "ServiceType": {
      "type": "string",
      "enum": [
        "Google",
        "GoogleBot",
        "Office365",
        "EWS",
        "IMAP",
        "Salesforce",
        "Salesflare",
        "Repfabric",
        "MsTeamsBot",
        "Slack",
        "SlackBot",
        "SugarCRM",
        "HighLevel",
        "Hubspot",
        "Zoom",
        "ZoomBot",
        "Webex",
        "WebexBot",
        "Pipedrive",
        "EclipseERP",
        "AutoQuotes",
        "Teamwork",
        "NetSuite",
        "MCTrade",
        "SpecPath",
        "Zoho",
        "Clientify",
        "QuickBooks",
        "ActiveCampaign",
        "Creatio",
        "ConstantContact",
        "Fishbowl",
        "iCloud"
      ]
    }
  }
}