{
  "agentAdminPlanInputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "action": {
        "type": "string",
        "enum": [
          "apps.configure",
          "apps.configure_auth",
          "apps.configure_support",
          "catalog.manage_entitlement",
          "messaging.manage_template",
          "messaging.manage_trigger",
          "messaging.bind_template_trigger",
          "webhooks.manage_destination",
          "webhooks.test_destination",
          "webhooks.retry_delivery",
          "workspace.update_settings",
          "workspace.update_project",
          "workspace.update_member_role",
          "integrations.validate_connection",
          "integrations.update_connection",
          "integrations.update_mapping",
          "integrations.configure_email",
          "messaging.manage_support_label",
          "messaging.set_support_status",
          "messaging.set_support_read_state",
          "messaging.set_support_labels"
        ]
      },
      "appId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "environment": {
        "type": "string",
        "enum": [
          "test",
          "live"
        ]
      },
      "request": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "expiresAt": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      }
    },
    "required": [
      "action",
      "request",
      "expiresAt"
    ],
    "additionalProperties": false
  },
  "agentAdminQuerySchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "resource": {
        "type": "string",
        "enum": [
          "app_settings",
          "auth_settings",
          "support_settings",
          "entitlements",
          "notification_templates",
          "notification_triggers",
          "notification_senders",
          "webhook_destinations",
          "webhook_deliveries",
          "workspace",
          "projects",
          "members",
          "api_keys",
          "agent_tokens",
          "provider_connections",
          "provider_accounts",
          "provider_mappings",
          "support_labels",
          "support_thread_state",
          "email_integration"
        ]
      },
      "appId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "id": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "connectionId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "limit": {
        "default": 50,
        "type": "integer",
        "minimum": 1,
        "maximum": 100
      }
    },
    "required": [
      "resource"
    ],
    "additionalProperties": false
  },
  "agentAppleAdsReportSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "appId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128
      },
      "from": {
        "type": "string",
        "format": "date",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
      },
      "to": {
        "type": "string",
        "format": "date",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
      },
      "view": {
        "type": "string",
        "enum": [
          "summary",
          "breakdown",
          "cohorts",
          "provider"
        ]
      },
      "connectionId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128
      },
      "dimension": {
        "type": "string",
        "enum": [
          "app",
          "campaign",
          "ad_group",
          "keyword",
          "search_term",
          "ad",
          "country",
          "placement"
        ]
      },
      "limit": {
        "type": "integer",
        "minimum": 1,
        "maximum": 500
      },
      "offset": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000
      }
    },
    "required": [
      "appId",
      "from",
      "to",
      "view"
    ],
    "additionalProperties": false
  },
  "aliasCustomerSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "fromCustomerId": {
        "type": "string",
        "minLength": 1
      },
      "toCustomerId": {
        "type": "string",
        "minLength": 1
      }
    },
    "required": [
      "fromCustomerId",
      "toCustomerId"
    ]
  },
  "appleIndependentAccessRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "deviceVerificationId": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "providerEnvironment": {
        "type": "string",
        "enum": [
          "Production",
          "Sandbox"
        ]
      },
      "appTransactionJws": {
        "type": "string",
        "minLength": 1,
        "maxLength": 32000
      },
      "appReceipt": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1400000
      },
      "receiptVendorIdentifier": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "transactionJws": {
        "maxItems": 50,
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 32000
        }
      },
      "renewalInfoJws": {
        "maxItems": 50,
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 32000
        }
      },
      "transactionsComplete": {
        "type": "boolean"
      }
    },
    "required": [
      "deviceVerificationId",
      "providerEnvironment",
      "transactionJws",
      "renewalInfoJws",
      "transactionsComplete"
    ],
    "additionalProperties": false
  },
  "appleSearchAdsAttributionSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "customer_id": {
        "type": "string",
        "minLength": 1
      },
      "asa_token": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "install_id": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "legacy_recheck": {
        "type": "boolean"
      }
    },
    "required": [
      "asa_token"
    ]
  },
  "appleSyncRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "customerId": {
        "type": "string",
        "minLength": 1
      },
      "transactions": {
        "minItems": 1,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "signedTransactionInfo": {
              "type": "string",
              "minLength": 1
            },
            "transactionId": {
              "type": "string"
            },
            "originalTransactionId": {
              "type": "string"
            },
            "productId": {
              "type": "string"
            },
            "purchaseDate": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "expiresDate": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "quantity": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "type": {
              "type": "string",
              "enum": [
                "purchase",
                "renewal",
                "restore"
              ]
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 3
                },
                {
                  "type": "null"
                }
              ]
            },
            "unitAmount": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "environment": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "signedTransactionInfo"
          ]
        }
      },
      "placementId": {
        "type": "string"
      },
      "campaignId": {
        "type": "string"
      },
      "campaignAudienceId": {
        "type": "string"
      },
      "campaignVariantId": {
        "type": "string"
      },
      "campaignAssignmentId": {
        "type": "string"
      },
      "paywallId": {
        "type": "string"
      },
      "paywallProductId": {
        "type": "string"
      }
    },
    "required": [
      "customerId",
      "transactions"
    ]
  },
  "completePasswordChangeSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "challengeToken": {
        "type": "string",
        "minLength": 32,
        "maxLength": 256
      },
      "newPassword": {
        "type": "string",
        "minLength": 8
      }
    },
    "required": [
      "challengeToken",
      "newPassword"
    ],
    "additionalProperties": false
  },
  "confirmEmailChangeSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "token": {
        "type": "string",
        "minLength": 32,
        "maxLength": 256
      }
    },
    "required": [
      "token"
    ],
    "additionalProperties": false
  },
  "createAgentActionPlanSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "action": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "pattern": "^[a-z0-9_]+\\.[a-z0-9_]+$"
      },
      "appId": {
        "anyOf": [
          {
            "type": "string",
            "minLength": 1
          },
          {
            "type": "null"
          }
        ]
      },
      "environment": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "test",
              "live"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "request": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "plan": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "expiresAt": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      }
    },
    "required": [
      "action",
      "request",
      "plan",
      "expiresAt"
    ]
  },
  "createCrashReportRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "reportId": {
        "type": "string",
        "pattern": "^crash_[a-z0-9-]{1,100}$"
      },
      "occurredAt": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
      },
      "fingerprint": {
        "type": "string",
        "pattern": "^[a-f0-9]{64}$"
      },
      "appVersion": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "buildNumber": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "sdkVersion": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50
      },
      "osVersion": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "deviceModel": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "signalName": {
        "anyOf": [
          {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          {
            "type": "null"
          }
        ]
      },
      "signalCode": {
        "anyOf": [
          {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          {
            "type": "null"
          }
        ]
      },
      "exceptionName": {
        "anyOf": [
          {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          {
            "type": "null"
          }
        ]
      },
      "exceptionReason": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 8000
          },
          {
            "type": "null"
          }
        ]
      },
      "crashedThreadNumber": {
        "anyOf": [
          {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          {
            "type": "null"
          }
        ]
      },
      "frames": {
        "maxItems": 8,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "imageName": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "imageUUID": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                {
                  "type": "null"
                }
              ]
            },
            "imageOffset": {
              "type": "string",
              "maxLength": 32,
              "pattern": "^0x[a-fA-F0-9]+$"
            }
          },
          "required": [
            "imageName",
            "imageOffset"
          ],
          "additionalProperties": false
        }
      },
      "rawReportBase64": {
        "type": "string",
        "minLength": 1,
        "maxLength": 2800000,
        "format": "base64",
        "contentEncoding": "base64",
        "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$"
      },
      "formattedReport": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1000000
      }
    },
    "required": [
      "reportId",
      "occurredAt",
      "fingerprint",
      "appVersion",
      "buildNumber",
      "sdkVersion",
      "osVersion",
      "deviceModel",
      "frames",
      "rawReportBase64",
      "formattedReport"
    ],
    "additionalProperties": false
  },
  "createSupportMessageRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "clientMessageId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "clientAccess": {
        "type": "object",
        "properties": {
          "access": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "observedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "policy": {
                "type": "string",
                "enum": [
                  "account",
                  "app_store"
                ]
              },
              "verification": {
                "type": "string",
                "enum": [
                  "authoritative",
                  "verified_entitlements",
                  "cached",
                  "unavailable"
                ]
              },
              "providerEnvironment": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "Production",
                      "Sandbox",
                      "Xcode"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "benefits": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "identifier": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "apple",
                        "manual",
                        "account",
                        "support_purchaser",
                        "preserved_import"
                      ]
                    },
                    "effectiveUntil": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "verifiedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "identifier",
                    "source"
                  ],
                  "additionalProperties": false
                }
              },
              "truncated": {
                "type": "boolean"
              },
              "operationId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 128
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attemptId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 128
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "requestId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 128
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "accessContextExpiresAt": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "appleEvidence": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "observedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      },
                      "acquisition": {
                        "type": "string",
                        "enum": [
                          "app_transaction",
                          "receipt",
                          "unavailable",
                          "rejected"
                        ]
                      },
                      "purchaserComparison": {
                        "type": "string",
                        "enum": [
                          "first_observation",
                          "same",
                          "changed",
                          "unavailable"
                        ]
                      },
                      "previousPurchaserHash": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "currentPurchaserHash": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "collectionComplete": {
                        "type": "boolean"
                      },
                      "priorTransactionCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 250
                      },
                      "submittedTransactionCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 50
                      },
                      "retainedTransactionCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 250
                      },
                      "missingProductIdentifiers": {
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      },
                      "acquisitionFailureStage": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 128
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "observedAt",
                      "acquisition",
                      "purchaserComparison",
                      "collectionComplete",
                      "priorTransactionCount",
                      "submittedTransactionCount",
                      "retainedTransactionCount",
                      "missingProductIdentifiers"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "version",
              "observedAt",
              "policy",
              "verification",
              "benefits",
              "truncated"
            ],
            "additionalProperties": false
          },
          "appleDiagnostics": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "observedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                "stage": {
                  "type": "string",
                  "maxLength": 128
                },
                "nativeDomain": {
                  "type": "string",
                  "maxLength": 128
                },
                "nativeCode": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "storeKitCase": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 128
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "underlying": {
                  "maxItems": 3,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "domain": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "code": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "domain",
                      "code"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "observedAt",
                "stage",
                "nativeDomain",
                "nativeCode"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "access",
          "appleDiagnostics"
        ],
        "additionalProperties": false
      },
      "diagnostics": {
        "type": "object",
        "propertyNames": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80,
          "pattern": "^[A-Za-z0-9_.-]+$"
        },
        "additionalProperties": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2000
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "diagnosticsAvailable": {
        "type": "boolean"
      },
      "attachmentTokens": {
        "maxItems": 5,
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        }
      }
    },
    "required": [
      "body",
      "clientMessageId"
    ],
    "additionalProperties": false
  },
  "createSupportThreadRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "category": {
        "type": "string",
        "enum": [
          "message",
          "bug",
          "feature"
        ]
      },
      "subject": {
        "type": "string",
        "minLength": 1,
        "maxLength": 120
      },
      "body": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "clientMessageId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "email": {
        "type": "string",
        "maxLength": 320,
        "format": "email",
        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
      },
      "clientAccess": {
        "type": "object",
        "properties": {
          "access": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "observedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "policy": {
                "type": "string",
                "enum": [
                  "account",
                  "app_store"
                ]
              },
              "verification": {
                "type": "string",
                "enum": [
                  "authoritative",
                  "verified_entitlements",
                  "cached",
                  "unavailable"
                ]
              },
              "providerEnvironment": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "Production",
                      "Sandbox",
                      "Xcode"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "benefits": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "identifier": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "apple",
                        "manual",
                        "account",
                        "support_purchaser",
                        "preserved_import"
                      ]
                    },
                    "effectiveUntil": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "verifiedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "identifier",
                    "source"
                  ],
                  "additionalProperties": false
                }
              },
              "truncated": {
                "type": "boolean"
              },
              "operationId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 128
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attemptId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 128
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "requestId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 128
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "accessContextExpiresAt": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "appleEvidence": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "observedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      },
                      "acquisition": {
                        "type": "string",
                        "enum": [
                          "app_transaction",
                          "receipt",
                          "unavailable",
                          "rejected"
                        ]
                      },
                      "purchaserComparison": {
                        "type": "string",
                        "enum": [
                          "first_observation",
                          "same",
                          "changed",
                          "unavailable"
                        ]
                      },
                      "previousPurchaserHash": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "currentPurchaserHash": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "collectionComplete": {
                        "type": "boolean"
                      },
                      "priorTransactionCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 250
                      },
                      "submittedTransactionCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 50
                      },
                      "retainedTransactionCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 250
                      },
                      "missingProductIdentifiers": {
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      },
                      "acquisitionFailureStage": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 128
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "observedAt",
                      "acquisition",
                      "purchaserComparison",
                      "collectionComplete",
                      "priorTransactionCount",
                      "submittedTransactionCount",
                      "retainedTransactionCount",
                      "missingProductIdentifiers"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "version",
              "observedAt",
              "policy",
              "verification",
              "benefits",
              "truncated"
            ],
            "additionalProperties": false
          },
          "appleDiagnostics": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "observedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                "stage": {
                  "type": "string",
                  "maxLength": 128
                },
                "nativeDomain": {
                  "type": "string",
                  "maxLength": 128
                },
                "nativeCode": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "storeKitCase": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 128
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "underlying": {
                  "maxItems": 3,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "domain": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "code": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "domain",
                      "code"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "observedAt",
                "stage",
                "nativeDomain",
                "nativeCode"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "access",
          "appleDiagnostics"
        ],
        "additionalProperties": false
      },
      "diagnostics": {
        "type": "object",
        "propertyNames": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80,
          "pattern": "^[A-Za-z0-9_.-]+$"
        },
        "additionalProperties": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2000
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "diagnosticsAvailable": {
        "type": "boolean"
      },
      "attachmentTokens": {
        "maxItems": 5,
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        }
      }
    },
    "required": [
      "category",
      "subject",
      "body",
      "clientMessageId"
    ],
    "additionalProperties": false
  },
  "createWorkspaceCustomerLinkTokenRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "ttlSeconds": {
        "type": "integer",
        "minimum": 60,
        "maximum": 3600
      }
    }
  },
  "exchangeMagicLinkSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "token": {
        "type": "string",
        "minLength": 32,
        "maxLength": 256
      },
      "customerId": {
        "type": "string"
      }
    },
    "required": [
      "token"
    ]
  },
  "forgotPasswordRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "email": {
        "type": "string",
        "format": "email",
        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
      },
      "redirectUrl": {
        "type": "string",
        "format": "uri"
      }
    },
    "required": [
      "email"
    ]
  },
  "markSupportMessagesReadRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "messageIds": {
        "minItems": 1,
        "maxItems": 100,
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        }
      }
    },
    "required": [
      "messageIds"
    ],
    "additionalProperties": false
  },
  "prepareSupportAttachmentUploadRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "fileName": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255
      },
      "contentType": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255
      },
      "byteSize": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 9007199254740991
      },
      "checksumSha256": {
        "type": "string",
        "pattern": "^[a-fA-F0-9]{64}$"
      }
    },
    "required": [
      "fileName",
      "contentType",
      "byteSize",
      "checksumSha256"
    ],
    "additionalProperties": false
  },
  "purchaseHealthQuerySchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "days": {
        "default": "7",
        "type": "string",
        "enum": [
          "1",
          "7",
          "30"
        ]
      }
    },
    "additionalProperties": false
  },
  "reauthenticateRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "const": "password"
          },
          "password": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "method",
          "password"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "const": "apple"
          },
          "idToken": {
            "type": "string",
            "minLength": 1
          },
          "authorizationCode": {
            "type": "string",
            "minLength": 1
          },
          "nonce": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "method",
          "idToken",
          "authorizationCode",
          "nonce"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "const": "google"
          },
          "idToken": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "method",
          "idToken"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "const": "magic_link"
          },
          "token": {
            "type": "string",
            "minLength": 32,
            "maxLength": 256
          }
        },
        "required": [
          "method",
          "token"
        ],
        "additionalProperties": false
      }
    ]
  },
  "recordDailyUsageSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "usageDate": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "platform": {
        "type": "string",
        "enum": [
          "ios",
          "android",
          "web",
          "windows",
          "macos"
        ]
      },
      "deviceId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      },
      "sessionCount": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000
      },
      "foregroundSeconds": {
        "type": "integer",
        "minimum": 0,
        "maximum": 86400
      },
      "firstActiveAt": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
      },
      "lastActiveAt": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
      },
      "metadata": {
        "default": {},
        "type": "object",
        "properties": {
          "device_model": {
            "type": "string",
            "maxLength": 128
          },
          "os_version": {
            "type": "string",
            "maxLength": 64
          },
          "app_version": {
            "type": "string",
            "maxLength": 64
          },
          "sdk_version": {
            "type": "string",
            "maxLength": 64
          },
          "source": {
            "type": "string",
            "maxLength": 64
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "usageDate",
      "platform",
      "deviceId",
      "sessionCount",
      "foregroundSeconds"
    ]
  },
  "redeemWorkspaceCustomerLinkTokenRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "token": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    },
    "required": [
      "token"
    ]
  },
  "refreshTokenRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "refreshToken": {
        "type": "string",
        "minLength": 1
      }
    },
    "required": [
      "refreshToken"
    ]
  },
  "registerDeviceTokenRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "transport": {
        "type": "string",
        "enum": [
          "apns",
          "fcm"
        ]
      },
      "token": {
        "type": "string",
        "minLength": 1
      },
      "bundleId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255,
        "pattern": "^[A-Za-z0-9.-]+$"
      },
      "pushEnvironment": {
        "type": "string",
        "enum": [
          "development",
          "production"
        ]
      },
      "deviceModel": {
        "type": "string",
        "maxLength": 128
      },
      "osVersion": {
        "type": "string",
        "maxLength": 64
      },
      "appVersion": {
        "type": "string",
        "maxLength": 64
      },
      "ownershipTransition": {
        "type": "string",
        "enum": [
          "explicit_sign_out"
        ]
      }
    },
    "required": [
      "transport",
      "token"
    ]
  },
  "registerRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "email": {
        "type": "string",
        "format": "email",
        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
      },
      "password": {
        "type": "string",
        "minLength": 8
      },
      "name": {
        "type": "string"
      },
      "firstName": {
        "type": "string"
      },
      "lastName": {
        "type": "string"
      },
      "customerId": {
        "type": "string"
      },
      "state": {
        "type": "string"
      }
    },
    "required": [
      "email",
      "password"
    ]
  },
  "requestEmailChangeSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "newEmail": {
        "type": "string",
        "format": "email",
        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
      }
    },
    "required": [
      "newEmail"
    ],
    "additionalProperties": false
  },
  "requestMagicLinkSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "email": {
        "type": "string",
        "format": "email",
        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
      },
      "redirectUrl": {
        "type": "string",
        "format": "uri"
      },
      "customerId": {
        "type": "string"
      }
    },
    "required": [
      "email",
      "redirectUrl"
    ]
  },
  "resetPasswordRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "token": {
        "type": "string",
        "minLength": 1
      },
      "password": {
        "type": "string",
        "minLength": 8
      }
    },
    "required": [
      "token",
      "password"
    ]
  },
  "sendPushNotificationRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "title": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "body": {
        "type": "string",
        "minLength": 1,
        "maxLength": 4096
      },
      "customerId": {
        "type": "string",
        "minLength": 1
      },
      "email": {
        "type": "string",
        "format": "email",
        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
      },
      "emails": {
        "maxItems": 100,
        "type": "array",
        "items": {
          "type": "string",
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        }
      },
      "apnsTokens": {
        "maxItems": 100,
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^[0-9a-fA-F]{64}$"
        }
      },
      "data": {
        "type": "object",
        "propertyNames": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "additionalProperties": {
          "type": "string",
          "maxLength": 1024
        }
      },
      "badge": {
        "type": "integer",
        "minimum": 0,
        "maximum": 999999
      },
      "sound": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128
      }
    },
    "required": [
      "title",
      "body"
    ]
  },
  "setCustomerAttributesSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "attributes": {
        "type": "object",
        "propertyNames": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-z0-9_]+$"
        },
        "additionalProperties": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 1024
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "required": [
      "attributes"
    ]
  },
  "signInRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "email": {
        "type": "string",
        "format": "email",
        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
      },
      "password": {
        "type": "string",
        "minLength": 1
      },
      "customerId": {
        "type": "string"
      },
      "state": {
        "type": "string"
      }
    },
    "required": [
      "email",
      "password"
    ]
  },
  "supportThreadListQuerySchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "environment": {
        "type": "string",
        "enum": [
          "test",
          "live"
        ]
      },
      "status": {
        "type": "string",
        "enum": [
          "open",
          "resolved"
        ]
      },
      "category": {
        "type": "string",
        "enum": [
          "message",
          "bug",
          "feature"
        ]
      },
      "needsReply": {
        "type": "string",
        "enum": [
          "true",
          "false"
        ]
      },
      "unread": {
        "type": "string",
        "enum": [
          "true"
        ]
      },
      "labelId": {
        "type": "string",
        "minLength": 1
      },
      "customerId": {
        "type": "string",
        "minLength": 1
      },
      "projectId": {
        "type": "string",
        "minLength": 1
      },
      "appId": {
        "type": "string",
        "minLength": 1
      },
      "search": {
        "type": "string",
        "minLength": 2,
        "maxLength": 120
      },
      "limit": {
        "default": 50,
        "type": "integer",
        "minimum": 1,
        "maximum": 100
      },
      "cursor": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    },
    "additionalProperties": false
  },
  "surveyDismissSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "shownAt": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      }
    },
    "additionalProperties": false
  },
  "surveyResultsQuerySchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "includeQuestionSummary": {
        "default": "true",
        "type": "string",
        "enum": [
          "true",
          "false"
        ]
      },
      "limit": {
        "default": 50,
        "type": "integer",
        "minimum": 1,
        "maximum": 100
      },
      "before": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "revisionId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "collectionRound": {
        "type": "integer",
        "minimum": 1,
        "maximum": 9007199254740991
      },
      "platform": {
        "type": "string",
        "enum": [
          "ios",
          "android",
          "web",
          "windows",
          "macos"
        ]
      }
    },
    "additionalProperties": false
  },
  "surveyShownSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "shownAt": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      }
    },
    "required": [
      "shownAt"
    ],
    "additionalProperties": false
  },
  "surveySubmissionSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "shownAt": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
      },
      "submissionId": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "answers": {
        "maxItems": 5,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "questionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80,
              "pattern": "^[a-zA-Z0-9_-]+$"
            },
            "choiceIds": {
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80,
                "pattern": "^[a-zA-Z0-9_-]+$"
              }
            },
            "otherText": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            },
            "text": {
              "type": "string",
              "maxLength": 2000
            },
            "rating": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10
            }
          },
          "required": [
            "questionId"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "submissionId",
      "answers"
    ],
    "additionalProperties": false
  },
  "unregisterDeviceTokenRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "transport": {
        "type": "string",
        "enum": [
          "apns",
          "fcm"
        ]
      },
      "token": {
        "type": "string",
        "minLength": 1
      }
    },
    "required": [
      "transport",
      "token"
    ]
  },
  "updateSupportContactRequestSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "email": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 320,
            "format": "email",
            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          {
            "type": "null"
          }
        ]
      },
      "emailNotificationsEnabled": {
        "type": "boolean"
      },
      "pushNotificationsEnabled": {
        "type": "boolean"
      }
    },
    "additionalProperties": false
  },
  "usageSnapshotBatchSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "deviceId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      },
      "snapshots": {
        "minItems": 1,
        "maxItems": 25,
        "type": "array",
        "items": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "contractVersion": {
                  "type": "number",
                  "const": 2
                },
                "producerId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "legacySessionBaseline": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000
                },
                "legacyForegroundBaseline": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 86400
                },
                "revision": {
                  "type": "string",
                  "pattern": "^[1-9][0-9]{0,18}$"
                },
                "usageDate": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "firstObservedAt": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    {
                      "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                    }
                  ]
                },
                "lastObservedAt": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    {
                      "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                    }
                  ]
                },
                "instrumentationRevision": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "supportedMetrics": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$"
                      },
                      "definitionRevision": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 2147483647
                      }
                    },
                    "required": [
                      "key",
                      "definitionRevision"
                    ],
                    "additionalProperties": false
                  }
                },
                "coverage": {
                  "type": "string",
                  "enum": [
                    "measured",
                    "partial"
                  ]
                },
                "droppedMeasurementCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                },
                "droppedDiagnosticCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                },
                "measurements": {
                  "maxItems": 16,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$"
                      },
                      "definitionRevision": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 2147483647
                      },
                      "scaledValue": {
                        "type": "string",
                        "pattern": "^(0|[1-9][0-9]{0,18})$"
                      },
                      "firstObservedAt": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                          },
                          {
                            "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                          }
                        ]
                      },
                      "lastObservedAt": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                          },
                          {
                            "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                          }
                        ]
                      },
                      "dimensions": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[a-z][a-z0-9_]*$"
                        },
                        "additionalProperties": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        }
                      },
                      "purchaseContext": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      }
                    },
                    "required": [
                      "key",
                      "definitionRevision",
                      "scaledValue",
                      "firstObservedAt",
                      "lastObservedAt",
                      "dimensions"
                    ],
                    "additionalProperties": false
                  }
                },
                "diagnostics": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "metric": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[a-z][a-z0-9_]*$"
                          },
                          "definitionRevision": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 2147483647
                          }
                        },
                        "required": [
                          "key",
                          "definitionRevision"
                        ],
                        "additionalProperties": false
                      },
                      "reasonDimension": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$"
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "occurrences": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 2147483647
                      },
                      "firstObservedAt": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                          },
                          {
                            "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                          }
                        ]
                      },
                      "lastObservedAt": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                          },
                          {
                            "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                          }
                        ]
                      },
                      "recovered": {
                        "type": "boolean"
                      },
                      "affectedItemCount": {
                        "type": "string",
                        "pattern": "^(0|[1-9][0-9]{0,18})$"
                      }
                    },
                    "required": [
                      "metric",
                      "reasonDimension",
                      "reason",
                      "occurrences",
                      "firstObservedAt",
                      "lastObservedAt",
                      "recovered"
                    ],
                    "additionalProperties": false
                  }
                },
                "kind": {
                  "type": "string",
                  "const": "daily"
                },
                "sessionCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000
                },
                "foregroundSeconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 86400
                }
              },
              "required": [
                "contractVersion",
                "producerId",
                "revision",
                "usageDate",
                "firstObservedAt",
                "lastObservedAt",
                "instrumentationRevision",
                "supportedMetrics",
                "coverage",
                "droppedMeasurementCount",
                "droppedDiagnosticCount",
                "measurements",
                "diagnostics",
                "kind",
                "sessionCount",
                "foregroundSeconds"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "contractVersion": {
                  "type": "number",
                  "const": 2
                },
                "producerId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "legacySessionBaseline": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000
                },
                "legacyForegroundBaseline": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 86400
                },
                "revision": {
                  "type": "string",
                  "pattern": "^[1-9][0-9]{0,18}$"
                },
                "usageDate": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "firstObservedAt": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    {
                      "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                    }
                  ]
                },
                "lastObservedAt": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    {
                      "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                    }
                  ]
                },
                "instrumentationRevision": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "supportedMetrics": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$"
                      },
                      "definitionRevision": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 2147483647
                      }
                    },
                    "required": [
                      "key",
                      "definitionRevision"
                    ],
                    "additionalProperties": false
                  }
                },
                "coverage": {
                  "type": "string",
                  "enum": [
                    "measured",
                    "partial"
                  ]
                },
                "droppedMeasurementCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                },
                "droppedDiagnosticCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                },
                "measurements": {
                  "maxItems": 16,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$"
                      },
                      "definitionRevision": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 2147483647
                      },
                      "scaledValue": {
                        "type": "string",
                        "pattern": "^(0|[1-9][0-9]{0,18})$"
                      },
                      "firstObservedAt": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                          },
                          {
                            "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                          }
                        ]
                      },
                      "lastObservedAt": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                          },
                          {
                            "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                          }
                        ]
                      },
                      "dimensions": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[a-z][a-z0-9_]*$"
                        },
                        "additionalProperties": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        }
                      },
                      "purchaseContext": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      }
                    },
                    "required": [
                      "key",
                      "definitionRevision",
                      "scaledValue",
                      "firstObservedAt",
                      "lastObservedAt",
                      "dimensions"
                    ],
                    "additionalProperties": false
                  }
                },
                "diagnostics": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "metric": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[a-z][a-z0-9_]*$"
                          },
                          "definitionRevision": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 2147483647
                          }
                        },
                        "required": [
                          "key",
                          "definitionRevision"
                        ],
                        "additionalProperties": false
                      },
                      "reasonDimension": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$"
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "occurrences": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 2147483647
                      },
                      "firstObservedAt": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                          },
                          {
                            "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                          }
                        ]
                      },
                      "lastObservedAt": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                          },
                          {
                            "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                          }
                        ]
                      },
                      "recovered": {
                        "type": "boolean"
                      },
                      "affectedItemCount": {
                        "type": "string",
                        "pattern": "^(0|[1-9][0-9]{0,18})$"
                      }
                    },
                    "required": [
                      "metric",
                      "reasonDimension",
                      "reason",
                      "occurrences",
                      "firstObservedAt",
                      "lastObservedAt",
                      "recovered"
                    ],
                    "additionalProperties": false
                  }
                },
                "kind": {
                  "type": "string",
                  "const": "session"
                },
                "sessionId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "startedAt": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    {
                      "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                    }
                  ]
                },
                "endedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "allOf": [
                        {
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        {
                          "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "endReason": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "background",
                        "identity_changed",
                        "explicit"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "foregroundSeconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 86400
                }
              },
              "required": [
                "contractVersion",
                "producerId",
                "revision",
                "usageDate",
                "firstObservedAt",
                "lastObservedAt",
                "instrumentationRevision",
                "supportedMetrics",
                "coverage",
                "droppedMeasurementCount",
                "droppedDiagnosticCount",
                "measurements",
                "diagnostics",
                "kind",
                "sessionId",
                "startedAt",
                "endedAt",
                "endReason",
                "foregroundSeconds"
              ],
              "additionalProperties": false
            }
          ]
        }
      }
    },
    "required": [
      "deviceId",
      "snapshots"
    ],
    "additionalProperties": false
  },
  "agentAdminActions": {
    "apps.configure": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        "appearance": {
          "type": "object",
          "properties": {
            "version": {
              "type": "string",
              "const": "1.0"
            },
            "mode": {
              "type": "string",
              "enum": [
                "light",
                "dark",
                "system"
              ]
            },
            "variables": {
              "type": "object",
              "properties": {
                "accent": {
                  "type": "string",
                  "maxLength": 2048
                },
                "accentFg": {
                  "type": "string",
                  "maxLength": 2048
                },
                "bg": {
                  "type": "string",
                  "maxLength": 2048
                },
                "fg": {
                  "type": "string",
                  "maxLength": 2048
                },
                "muted": {
                  "type": "string",
                  "maxLength": 2048
                },
                "mutedFg": {
                  "type": "string",
                  "maxLength": 2048
                },
                "border": {
                  "type": "string",
                  "maxLength": 2048
                },
                "radius": {
                  "type": "string",
                  "maxLength": 2048
                },
                "shadow": {
                  "type": "string",
                  "enum": [
                    "none",
                    "sm",
                    "md"
                  ]
                },
                "fontFamily": {
                  "type": "string",
                  "enum": [
                    "system",
                    "inter",
                    "sf-pro",
                    "geist"
                  ]
                },
                "logo": {
                  "type": "string",
                  "maxLength": 2048
                },
                "authBg": {
                  "type": "string",
                  "maxLength": 2048
                },
                "authBgImage": {
                  "type": "string",
                  "maxLength": 2048
                },
                "brandGradient": {
                  "type": "string",
                  "maxLength": 2048
                },
                "darkBg": {
                  "type": "string",
                  "maxLength": 2048
                },
                "darkFg": {
                  "type": "string",
                  "maxLength": 2048
                },
                "darkAccent": {
                  "type": "string",
                  "maxLength": 2048
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "mode",
            "variables"
          ],
          "additionalProperties": false
        },
        "bundleId": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "type": "null"
            }
          ]
        },
        "webOrigin": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "apps.configure_auth": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "emailPasswordEnabled": {
          "type": "boolean"
        },
        "magicLinkEnabled": {
          "type": "boolean"
        },
        "redirectUrls": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uri"
          }
        },
        "sessionMode": {
          "type": "string",
          "enum": [
            "persistent",
            "rolling",
            "absolute"
          ]
        },
        "sessionInactivityDays": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 3650
            },
            {
              "type": "null"
            }
          ]
        },
        "sessionAbsoluteDays": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 3650
            },
            {
              "type": "null"
            }
          ]
        },
        "recentAuthenticationWindowSeconds": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 60,
              "maximum": 86400
            },
            {
              "type": "null"
            }
          ]
        },
        "passwordMaxAgeDays": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 3650
            },
            {
              "type": "null"
            }
          ]
        },
        "accountDeletion": {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "delete_customer",
                "delete_credential"
              ]
            },
            "requireCurrentPassword": {
              "type": "boolean"
            },
            "scrubCustomerProfile": {
              "type": "boolean"
            },
            "detachCustomerAuthUser": {
              "type": "boolean"
            },
            "detachWorkspaceCustomer": {
              "type": "boolean"
            },
            "deleteCustomerAuthUserWhenUnused": {
              "type": "boolean"
            },
            "credentialProviderIds": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
              }
            }
          },
          "required": [
            "mode",
            "requireCurrentPassword",
            "scrubCustomerProfile",
            "detachCustomerAuthUser",
            "detachWorkspaceCustomer",
            "deleteCustomerAuthUserWhenUnused",
            "credentialProviderIds"
          ],
          "additionalProperties": false
        },
        "restoreDeletedCredentialsOnSignup": {
          "type": "boolean"
        },
        "emailChangeMode": {
          "type": "string",
          "enum": [
            "verification_link",
            "password_confirmed"
          ]
        }
      },
      "additionalProperties": false
    },
    "apps.configure_support": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "contactMode": {
          "type": "string",
          "enum": [
            "optional_email",
            "required_email",
            "authenticated_account"
          ]
        },
        "emailVerificationMode": {
          "type": "string",
          "enum": [
            "none",
            "optional",
            "required"
          ]
        }
      },
      "required": [
        "contactMode",
        "emailVerificationMode"
      ],
      "additionalProperties": false
    },
    "catalog.manage_entitlement": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "create"
            },
            "values": {
              "type": "object",
              "properties": {
                "identifier": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 50,
                  "pattern": "^[a-z0-9_]+$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "identifier",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "operation",
            "values"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "update"
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "values": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "operation",
            "id",
            "values"
          ],
          "additionalProperties": false
        }
      ]
    },
    "messaging.manage_template": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "create"
            },
            "values": {
              "type": "object",
              "properties": {
                "identifier": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 50,
                  "pattern": "^[a-z0-9_-]+$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "channel": {
                  "default": "email",
                  "type": "string",
                  "enum": [
                    "email",
                    "push"
                  ]
                },
                "category": {
                  "default": "transactional",
                  "type": "string",
                  "enum": [
                    "transactional",
                    "lifecycle",
                    "marketing",
                    "system"
                  ]
                },
                "locale": {
                  "default": "default",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 32
                },
                "enabled": {
                  "default": true,
                  "type": "boolean"
                },
                "subject": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "bodyText": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "contentType": {
                  "default": "mjml",
                  "type": "string",
                  "enum": [
                    "mjml",
                    "html",
                    "text",
                    "push"
                  ]
                },
                "contentSource": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "contentHtml": {
                  "type": "string"
                },
                "dataPayload": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "variables": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "identifier",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "operation",
            "values"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "update"
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "values": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "transactional",
                    "lifecycle",
                    "marketing",
                    "system"
                  ]
                },
                "locale": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 32
                },
                "enabled": {
                  "type": "boolean"
                },
                "subject": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "bodyText": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "contentType": {
                  "type": "string",
                  "enum": [
                    "mjml",
                    "html",
                    "text",
                    "push"
                  ]
                },
                "contentSource": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "contentHtml": {
                  "type": "string"
                },
                "dataPayload": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "variables": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "operation",
            "id",
            "values"
          ],
          "additionalProperties": false
        }
      ]
    },
    "messaging.manage_trigger": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "create"
            },
            "values": {
              "type": "object",
              "properties": {
                "identifier": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64,
                  "pattern": "^[a-z0-9_-]+$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "source": {
                  "default": "event",
                  "type": "string",
                  "enum": [
                    "event",
                    "auth",
                    "billing",
                    "api",
                    "manual"
                  ]
                },
                "eventType": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "enabled": {
                  "default": true,
                  "type": "boolean"
                },
                "delaySeconds": {
                  "default": 0,
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2592000
                },
                "cooldownSeconds": {
                  "default": 0,
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2592000
                }
              },
              "required": [
                "identifier",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "operation",
            "values"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "update"
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "values": {
              "type": "object",
              "properties": {
                "identifier": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64,
                  "pattern": "^[a-z0-9_-]+$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "event",
                    "auth",
                    "billing",
                    "api",
                    "manual"
                  ]
                },
                "eventType": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "delaySeconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2592000
                },
                "cooldownSeconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2592000
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "operation",
            "id",
            "values"
          ],
          "additionalProperties": false
        }
      ]
    },
    "messaging.bind_template_trigger": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "triggerId": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "triggerId"
      ],
      "additionalProperties": false
    },
    "webhooks.manage_destination": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "create"
            },
            "values": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "url": {
                  "type": "string",
                  "maxLength": 2048,
                  "format": "uri"
                },
                "enabled": {
                  "type": "boolean"
                },
                "eventTypes": {
                  "maxItems": 200,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "session_start",
                      "session_end",
                      "deep_link_open",
                      "app_activity",
                      "milestone_recorded",
                      "onboarding_step_viewed",
                      "paywall_requested",
                      "paywall_shown",
                      "paywall_closed",
                      "paywall_product_selected",
                      "paywall_screen_changed",
                      "product_offer_redemption_updated",
                      "paywall_checkout_requested",
                      "checkout_started",
                      "purchase_started",
                      "purchase_already_entitled",
                      "purchase_cancelled",
                      "purchase_pending",
                      "purchase_failed",
                      "purchase_sync_failed",
                      "purchase_succeeded",
                      "restore_started",
                      "restore_succeeded",
                      "restore_failed",
                      "sdk_access_observed",
                      "restore_operation_updated",
                      "apple_order_recovery_succeeded",
                      "apple_access_observed",
                      "billing_operation_failed",
                      "surface_impression",
                      "subscription_started",
                      "subscription_trial_started",
                      "subscription_trial_converted",
                      "purchase_verified",
                      "purchase_refunded",
                      "purchase_refund_reversed",
                      "purchase_refund_declined",
                      "subscription_renewed",
                      "subscription_renewal_extended",
                      "subscription_renewal_preference_changed",
                      "subscription_renewal_failed",
                      "subscription_expired",
                      "subscription_cancelled",
                      "subscription_cancellation_scheduled",
                      "subscription_reactivated",
                      "subscription_paused",
                      "subscription_resumed",
                      "purchase_revoked",
                      "price_change_detected",
                      "grace_period_started",
                      "grace_period_ended",
                      "purchase_refund_requested",
                      "offer_redeemed",
                      "entitlement_granted",
                      "entitlement_revoked",
                      "notification_sent",
                      "notification_opened",
                      "webhook_delivered",
                      "webhook_failed",
                      "email_changed",
                      "password_changed",
                      "signup",
                      "signin",
                      "signout",
                      "account_deleted",
                      "customer_note_added",
                      "app_crash_reported",
                      "app_error_reported",
                      "identity_attached",
                      "customer_first_seen"
                    ]
                  }
                }
              },
              "required": [
                "name",
                "url"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "operation",
            "values"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "update"
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "values": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "url": {
                  "type": "string",
                  "maxLength": 2048,
                  "format": "uri"
                },
                "enabled": {
                  "type": "boolean"
                },
                "eventTypes": {
                  "maxItems": 200,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "session_start",
                      "session_end",
                      "deep_link_open",
                      "app_activity",
                      "milestone_recorded",
                      "onboarding_step_viewed",
                      "paywall_requested",
                      "paywall_shown",
                      "paywall_closed",
                      "paywall_product_selected",
                      "paywall_screen_changed",
                      "product_offer_redemption_updated",
                      "paywall_checkout_requested",
                      "checkout_started",
                      "purchase_started",
                      "purchase_already_entitled",
                      "purchase_cancelled",
                      "purchase_pending",
                      "purchase_failed",
                      "purchase_sync_failed",
                      "purchase_succeeded",
                      "restore_started",
                      "restore_succeeded",
                      "restore_failed",
                      "sdk_access_observed",
                      "restore_operation_updated",
                      "apple_order_recovery_succeeded",
                      "apple_access_observed",
                      "billing_operation_failed",
                      "surface_impression",
                      "subscription_started",
                      "subscription_trial_started",
                      "subscription_trial_converted",
                      "purchase_verified",
                      "purchase_refunded",
                      "purchase_refund_reversed",
                      "purchase_refund_declined",
                      "subscription_renewed",
                      "subscription_renewal_extended",
                      "subscription_renewal_preference_changed",
                      "subscription_renewal_failed",
                      "subscription_expired",
                      "subscription_cancelled",
                      "subscription_cancellation_scheduled",
                      "subscription_reactivated",
                      "subscription_paused",
                      "subscription_resumed",
                      "purchase_revoked",
                      "price_change_detected",
                      "grace_period_started",
                      "grace_period_ended",
                      "purchase_refund_requested",
                      "offer_redeemed",
                      "entitlement_granted",
                      "entitlement_revoked",
                      "notification_sent",
                      "notification_opened",
                      "webhook_delivered",
                      "webhook_failed",
                      "email_changed",
                      "password_changed",
                      "signup",
                      "signin",
                      "signout",
                      "account_deleted",
                      "customer_note_added",
                      "app_crash_reported",
                      "app_error_reported",
                      "identity_attached",
                      "customer_first_seen"
                    ]
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "operation",
            "id",
            "values"
          ],
          "additionalProperties": false
        }
      ]
    },
    "webhooks.test_destination": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "webhooks.retry_delivery": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "workspace.update_settings": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        "slug": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50,
          "pattern": "^[a-z0-9-]+$"
        }
      },
      "additionalProperties": false
    },
    "workspace.update_project": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false
    },
    "workspace.update_member_role": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "role": {
          "type": "string",
          "enum": [
            "owner",
            "admin",
            "member"
          ]
        }
      },
      "required": [
        "id",
        "role"
      ],
      "additionalProperties": false
    },
    "integrations.validate_connection": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "integrations.update_connection": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "values": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "status": {
              "type": "string",
              "enum": [
                "active",
                "disabled"
              ]
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "id",
        "values"
      ],
      "additionalProperties": false
    },
    "integrations.update_mapping": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "connectionId": {
          "type": "string",
          "minLength": 1
        },
        "values": {
          "type": "object",
          "properties": {
            "externalAppName": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "enabled": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "id",
        "connectionId",
        "values"
      ],
      "additionalProperties": false
    },
    "integrations.configure_email": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "replaceCredentials": {
              "type": "boolean"
            },
            "publicConfig": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "sendingDomain": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                "fromAddress": {
                  "type": "string",
                  "format": "email",
                  "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                },
                "fromName": {
                  "type": "string",
                  "maxLength": 100
                },
                "replyTo": {
                  "type": "string",
                  "format": "email",
                  "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                }
              },
              "required": [
                "accountId",
                "sendingDomain",
                "fromAddress"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "enabled",
            "replaceCredentials",
            "publicConfig"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "replaceCredentials": {
              "type": "boolean",
              "const": false
            },
            "useExistingBinding": {
              "type": "boolean",
              "const": true
            },
            "publicConfig": {
              "type": "object",
              "properties": {
                "fromAddress": {
                  "type": "string",
                  "format": "email",
                  "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                },
                "fromName": {
                  "type": "string",
                  "maxLength": 100
                },
                "replyTo": {
                  "type": "string",
                  "format": "email",
                  "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                }
              },
              "required": [
                "fromAddress"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "enabled",
            "replaceCredentials",
            "useExistingBinding",
            "publicConfig"
          ],
          "additionalProperties": false
        }
      ]
    },
    "messaging.manage_support_label": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "create"
            },
            "values": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 40
                },
                "color": {
                  "type": "string",
                  "enum": [
                    "slate",
                    "blue",
                    "green",
                    "amber",
                    "rose",
                    "violet"
                  ]
                }
              },
              "required": [
                "title",
                "color"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "operation",
            "values"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "update"
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "values": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 40
                },
                "color": {
                  "type": "string",
                  "enum": [
                    "slate",
                    "blue",
                    "green",
                    "amber",
                    "rose",
                    "violet"
                  ]
                }
              },
              "required": [
                "title",
                "color"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "operation",
            "id",
            "values"
          ],
          "additionalProperties": false
        }
      ]
    },
    "messaging.set_support_status": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "status": {
          "type": "string",
          "enum": [
            "open",
            "resolved"
          ]
        }
      },
      "required": [
        "id",
        "status"
      ],
      "additionalProperties": false
    },
    "messaging.set_support_read_state": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "read": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "read"
      ],
      "additionalProperties": false
    },
    "messaging.set_support_labels": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "labelIds": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      },
      "required": [
        "id",
        "labelIds"
      ],
      "additionalProperties": false
    }
  },
  "agentAppleOrderLookupInputSchema": {
    "type": "object",
    "additionalProperties": false,
    "required": [
      "appId"
    ],
    "oneOf": [
      {
        "required": [
          "orderId"
        ]
      },
      {
        "required": [
          "providerEventId"
        ]
      }
    ],
    "properties": {
      "appId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128
      },
      "orderId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255
      },
      "providerEventId": {
        "type": "string",
        "format": "uuid"
      }
    }
  }
}