{
  "openapi": "3.1.0",
  "info": {
    "title": "AppPortal Client telemetry ingestion",
    "version": "v1",
    "description": "Installed-app telemetry batch operations and the optional identity-association protocol. Generated from the Contracts and compiled protocol defaults without starting an API host."
  },
  "servers": [
    {
      "url": "https://api.appportal.io"
    }
  ],
  "paths": {
    "/v1/ingest/events": {
      "post": {
        "operationId": "ingest_events",
        "summary": "Submit a batch of events",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/TelemetryEventRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON, an invalid JSON value/type, or a missing/empty batch. No records are acknowledged."
          },
          "401": {
            "description": "Ordinary missing/invalid app credentials or user-installation binding can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body, when existing signing trust and configured public-origin evidence are available. Generic 401/403, expired user tokens, unavailable authority/trust and unsigned responses never authorize purge or disablement. Verify every proof binding; persist rejection and purge-pending before clearing, verify clearing before completion, and keep consent separate.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds the configured limit. Split a batch; this response acknowledges no records."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary v1 disposition. Retain unacknowledged records; retry no earlier than retryAt and Retry-After. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ]
      }
    },
    "/v1/ingest/crashes": {
      "post": {
        "operationId": "ingest_crashes",
        "summary": "Submit a batch of crashes",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/CrashReportRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON, an invalid JSON value/type, or a missing/empty batch. No records are acknowledged."
          },
          "401": {
            "description": "Ordinary missing/invalid app credentials or user-installation binding can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body, when existing signing trust and configured public-origin evidence are available. Generic 401/403, expired user tokens, unavailable authority/trust and unsigned responses never authorize purge or disablement. Verify every proof binding; persist rejection and purge-pending before clearing, verify clearing before completion, and keep consent separate.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds the configured limit. Split a batch; this response acknowledges no records."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary v1 disposition. Retain unacknowledged records; retry no earlier than retryAt and Retry-After. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ]
      }
    },
    "/v1/ingest/logs": {
      "post": {
        "operationId": "ingest_logs",
        "summary": "Submit a batch of logs",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/LogRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON, an invalid JSON value/type, or a missing/empty batch. No records are acknowledged."
          },
          "401": {
            "description": "Ordinary missing/invalid app credentials or user-installation binding can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body, when existing signing trust and configured public-origin evidence are available. Generic 401/403, expired user tokens, unavailable authority/trust and unsigned responses never authorize purge or disablement. Verify every proof binding; persist rejection and purge-pending before clearing, verify clearing before completion, and keep consent separate.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds the configured limit. Split a batch; this response acknowledges no records."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary v1 disposition. Retain unacknowledged records; retry no earlier than retryAt and Retry-After. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ]
      }
    },
    "/v1/ingest/sessions": {
      "post": {
        "operationId": "ingest_sessions",
        "summary": "Submit a batch of sessions",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/SessionRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON, an invalid JSON value/type, or a missing/empty batch. No records are acknowledged."
          },
          "401": {
            "description": "Ordinary missing/invalid app credentials or user-installation binding can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body, when existing signing trust and configured public-origin evidence are available. Generic 401/403, expired user tokens, unavailable authority/trust and unsigned responses never authorize purge or disablement. Verify every proof binding; persist rejection and purge-pending before clearing, verify clearing before completion, and keep consent separate.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds the configured limit. Split a batch; this response acknowledges no records."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary v1 disposition. Retain unacknowledged records; retry no earlier than retryAt and Retry-After. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ]
      }
    },
    "/v1/ingest/rum": {
      "post": {
        "operationId": "ingest_rum",
        "summary": "Submit a batch of rum",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/RumMarkerRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON, an invalid JSON value/type, or a missing/empty batch. No records are acknowledged."
          },
          "401": {
            "description": "Ordinary missing/invalid app credentials or user-installation binding can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body, when existing signing trust and configured public-origin evidence are available. Generic 401/403, expired user tokens, unavailable authority/trust and unsigned responses never authorize purge or disablement. Verify every proof binding; persist rejection and purge-pending before clearing, verify clearing before completion, and keep consent separate.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds the configured limit. Split a batch; this response acknowledges no records."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary v1 disposition. Retain unacknowledged records; retry no earlier than retryAt and Retry-After. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ]
      }
    },
    "/v1/ingest/push-registrations": {
      "post": {
        "operationId": "ingest_push_registrations",
        "summary": "Submit a batch of push-registrations",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/PushRegistrationRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON, an invalid JSON value/type, or a missing/empty batch. No records are acknowledged."
          },
          "401": {
            "description": "Ordinary missing/invalid app credentials or user-installation binding can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body, when existing signing trust and configured public-origin evidence are available. Generic 401/403, expired user tokens, unavailable authority/trust and unsigned responses never authorize purge or disablement. Verify every proof binding; persist rejection and purge-pending before clearing, verify clearing before completion, and keep consent separate.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds the configured limit. Split a batch; this response acknowledges no records."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary v1 disposition. Retain unacknowledged records; retry no earlier than retryAt and Retry-After. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "description": "A batch may address at most one identified user. When identity.userId is present, a valid user-installation binding and installation ID are additionally required; SDK scope headers alone cannot establish user authority.",
        "parameters": [
          {
            "name": "X-AppPortal-User-Binding",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Required when the batch claims a userId. Identity validates the binding's subject, installation, scope and PushRegistration operation."
          },
          {
            "name": "X-AppPortal-Installation-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Required with the user binding. Must match the installation authorized by that binding."
          },
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ],
        "x-appportal-conditional-authentication": "Nonempty identity.userId requires both user-installation headers; a batch with no identified user retains the ordinary SDK-only authentication path."
      }
    },
    "/v2/ingest/identity-associations": {
      "post": {
        "operationId": "ingest_association_definitions",
        "summary": "Define immutable identity associations",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/TelemetryIdentityAssociationDefinition"
                },
                "description": "The compiled default batch limit applies. Invalid definitions receive indexed rejections."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Indexed definition acknowledgements after durable acceptance, including duplicates and individual rejections.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIdentityAssociationResult"
                }
              }
            }
          },
          "400": {
            "description": "Missing or empty batch, or JSON binding failure. The batch-required body may be absent on binding failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_required"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ordinary missing or invalid installed-app credentials can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body. Verify every proof binding, including this v2 route. Generic 401/403, unavailable authority and unsigned responses never authorize purge or disablement.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds the configured limit. Split a batch; this response acknowledges no records."
          },
          "415": {
            "description": "The HTTP request does not use a supported JSON content type. No records or definitions are acknowledged."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "This opt-in protocol may be disabled or its current authority or source unavailable. Retain original definitions and dependent records and observe Retry-After and retryAt. No queue purge or collection disablement is authorized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ],
        "x-appportal-deployment-capability": {
          "name": "identity-associations",
          "enabledByDefault": false
        },
        "description": "Submit definitions before their dependent records. Each acknowledgement belongs to a definition, in request order. Acknowledged definitions do not themselves count as telemetry records or active users."
      }
    },
    "/v2/ingest/events": {
      "post": {
        "operationId": "ingest_association_events",
        "summary": "Submit identity-associated events",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/TelemetryEventRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Missing or empty batch, or JSON binding failure. The batch-required body may be absent on binding failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode",
                    "schemaVersion",
                    "error",
                    "retryable"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_required"
                    },
                    "schemaVersion": {
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "retryable": {
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ordinary missing or invalid installed-app credentials can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body. Verify every proof binding, including this v2 route. Generic 401/403, unavailable authority and unsigned responses never authorize purge or disablement.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds its configured limit. The batch-too-large body may be absent on an HTTP size-limit failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode",
                    "schemaVersion",
                    "error",
                    "retryable"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_too_large"
                    },
                    "schemaVersion": {
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "retryable": {
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The HTTP request does not use a supported JSON content type. No records or definitions are acknowledged."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary failure, including when this opt-in protocol is disabled, a definition is missing, or current source or authority cannot be verified. Retain the original definition and record, observe Retry-After and retryAt, and do not fall back to v1. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ],
        "x-appportal-deployment-capability": {
          "name": "identity-associations",
          "enabledByDefault": false
        },
        "description": "Use a previously acknowledged definition for the same client, session and delivery generation. Send identity.identityAssociation with schemaVersion 1, associationId, deliveryGenerationId and capturedAt. Omit userId and userProfile or set them to null, and omit the server-only resolvedState. Keep the exact definition and record on temporary failure; do not retry against v1."
      }
    },
    "/v2/ingest/crashes": {
      "post": {
        "operationId": "ingest_association_crashes",
        "summary": "Submit identity-associated crashes",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/CrashReportRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Missing or empty batch, or JSON binding failure. The batch-required body may be absent on binding failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode",
                    "schemaVersion",
                    "error",
                    "retryable"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_required"
                    },
                    "schemaVersion": {
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "retryable": {
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ordinary missing or invalid installed-app credentials can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body. Verify every proof binding, including this v2 route. Generic 401/403, unavailable authority and unsigned responses never authorize purge or disablement.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds its configured limit. The batch-too-large body may be absent on an HTTP size-limit failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode",
                    "schemaVersion",
                    "error",
                    "retryable"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_too_large"
                    },
                    "schemaVersion": {
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "retryable": {
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The HTTP request does not use a supported JSON content type. No records or definitions are acknowledged."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary failure, including when this opt-in protocol is disabled, a definition is missing, or current source or authority cannot be verified. Retain the original definition and record, observe Retry-After and retryAt, and do not fall back to v1. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ],
        "x-appportal-deployment-capability": {
          "name": "identity-associations",
          "enabledByDefault": false
        },
        "description": "Use a previously acknowledged definition for the same client, session and delivery generation. Send identity.identityAssociation with schemaVersion 1, associationId, deliveryGenerationId and capturedAt. Omit userId and userProfile or set them to null, and omit the server-only resolvedState. Keep the exact definition and record on temporary failure; do not retry against v1."
      }
    },
    "/v2/ingest/logs": {
      "post": {
        "operationId": "ingest_association_logs",
        "summary": "Submit identity-associated logs",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/LogRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Missing or empty batch, or JSON binding failure. The batch-required body may be absent on binding failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode",
                    "schemaVersion",
                    "error",
                    "retryable"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_required"
                    },
                    "schemaVersion": {
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "retryable": {
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ordinary missing or invalid installed-app credentials can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body. Verify every proof binding, including this v2 route. Generic 401/403, unavailable authority and unsigned responses never authorize purge or disablement.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds its configured limit. The batch-too-large body may be absent on an HTTP size-limit failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode",
                    "schemaVersion",
                    "error",
                    "retryable"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_too_large"
                    },
                    "schemaVersion": {
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "retryable": {
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The HTTP request does not use a supported JSON content type. No records or definitions are acknowledged."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary failure, including when this opt-in protocol is disabled, a definition is missing, or current source or authority cannot be verified. Retain the original definition and record, observe Retry-After and retryAt, and do not fall back to v1. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ],
        "x-appportal-deployment-capability": {
          "name": "identity-associations",
          "enabledByDefault": false
        },
        "description": "Use a previously acknowledged definition for the same client, session and delivery generation. Send identity.identityAssociation with schemaVersion 1, associationId, deliveryGenerationId and capturedAt. Omit userId and userProfile or set them to null, and omit the server-only resolvedState. Keep the exact definition and record on temporary failure; do not retry against v1."
      }
    },
    "/v2/ingest/sessions": {
      "post": {
        "operationId": "ingest_association_sessions",
        "summary": "Submit identity-associated sessions",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/SessionRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Missing or empty batch, or JSON binding failure. The batch-required body may be absent on binding failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode",
                    "schemaVersion",
                    "error",
                    "retryable"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_required"
                    },
                    "schemaVersion": {
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "retryable": {
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ordinary missing or invalid installed-app credentials can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body. Verify every proof binding, including this v2 route. Generic 401/403, unavailable authority and unsigned responses never authorize purge or disablement.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds its configured limit. The batch-too-large body may be absent on an HTTP size-limit failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode",
                    "schemaVersion",
                    "error",
                    "retryable"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_too_large"
                    },
                    "schemaVersion": {
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "retryable": {
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The HTTP request does not use a supported JSON content type. No records or definitions are acknowledged."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary failure, including when this opt-in protocol is disabled, a definition is missing, or current source or authority cannot be verified. Retain the original definition and record, observe Retry-After and retryAt, and do not fall back to v1. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ],
        "x-appportal-deployment-capability": {
          "name": "identity-associations",
          "enabledByDefault": false
        },
        "description": "Use a previously acknowledged definition for the same client, session and delivery generation. Send identity.identityAssociation with schemaVersion 1, associationId, deliveryGenerationId and capturedAt. Omit userId and userProfile or set them to null, and omit the server-only resolvedState. Keep the exact definition and record on temporary failure; do not retry against v1."
      }
    },
    "/v2/ingest/rum": {
      "post": {
        "operationId": "ingest_association_rum",
        "summary": "Submit identity-associated rum",
        "security": [
          {
            "installedAppCredential": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "$ref": "#/components/schemas/RumMarkerRecord"
                },
                "description": "Compiled default batch limit; the deployment can configure Ingestion:Protocol:MaxBatchRecords. Invalid records receive per-record acknowledgements."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durable intake acknowledgement, including per-record acceptance, duplicate or rejection outcomes. Acceptance is not a claim that asynchronous analytics persistence has completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryIngestionResult"
                },
                "example": {
                  "accepted": 1,
                  "duplicates": 1,
                  "rejected": 1,
                  "errors": [
                    "A stable client-generated record id is required."
                  ],
                  "acknowledgements": [
                    {
                      "recordId": "evt-100",
                      "status": "Accepted",
                      "index": 0,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": "evt-099",
                      "status": "AlreadyAccepted",
                      "index": 1,
                      "errorCode": null,
                      "message": null,
                      "retryable": false
                    },
                    {
                      "recordId": null,
                      "status": "Rejected",
                      "index": 2,
                      "errorCode": "record_id_required",
                      "message": "A stable client-generated record id is required.",
                      "retryable": false
                    }
                  ],
                  "schemaVersion": 1
                }
              }
            }
          },
          "400": {
            "description": "Missing or empty batch, or JSON binding failure. The batch-required body may be absent on binding failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode",
                    "schemaVersion",
                    "error",
                    "retryable"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_required"
                    },
                    "schemaVersion": {
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "retryable": {
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ordinary missing or invalid installed-app credentials can return a bodyless, non-destructive 401. Only an opted-in exact telemetry attempt with fresh definitive unknown, revoked or deleted app-credential authority may receive the optional signed permanent-v1 body. Verify every proof binding, including this v2 route. Generic 401/403, unavailable authority and unsigned responses never authorize purge or disablement.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryPermanentFailureResponse"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                },
                "description": "Present on the optional signed permanent response; not a guarantee about every ordinary authentication denial."
              }
            }
          },
          "403": {
            "description": "The credential kind, permission or trusted request scope does not authorize this operation. Retain unacknowledged records."
          },
          "413": {
            "description": "The batch or request body exceeds its configured limit. The batch-too-large body may be absent on an HTTP size-limit failure.",
            "x-appportal-body-may-be-absent": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errorCode",
                    "schemaVersion",
                    "error",
                    "retryable"
                  ],
                  "properties": {
                    "errorCode": {
                      "const": "batch_too_large"
                    },
                    "schemaVersion": {
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "retryable": {
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The HTTP request does not use a supported JSON content type. No records or definitions are acknowledged."
          },
          "429": {
            "description": "Optional configured technical account/credential request ceiling. Retain all unacknowledged records and observe the existing temporary-v1 one-hour retry floor. This response neither acknowledges records nor authorizes queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Temporary failure, including when this opt-in protocol is disabled, a definition is missing, or current source or authority cannot be verified. Retain the original definition and record, observe Retry-After and retryAt, and do not fall back to v1. This response authorizes no queue purge or collection disablement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryTemporaryFailureResponse"
                },
                "example": {
                  "errorCode": "ingest_temporarily_unavailable",
                  "error": "Retain the unacknowledged records and retry after the indicated time.",
                  "retryAt": "2026-10-04T20:00:00+00:00",
                  "retryAfterSeconds": 3600,
                  "retryable": true,
                  "schemaVersion": 1
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Retry delay in seconds, matching retryAfterSeconds. retryAt starts at response execution time with the decision-time floor, not an earlier expired deadline.",
                "schema": {
                  "type": "integer",
                  "minimum": 3600
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-AppPortal-Delivery-Nonce",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Fresh random attempt nonce. Optional opt-in evidence only; never authentication or scope authority. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Generation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "Exact active configuration generation for this attempt. Old responses cannot clear a newer configuration's journal. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          },
          {
            "name": "X-AppPortal-Delivery-Body-SHA256",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "minLength": 64,
              "maxLength": 64
            },
            "description": "SHA-256 commitment to the exact attempted request body bytes; proof verification binds this value rather than reserializing records. All three headers must each have exactly one valid value for optional signed rejection evidence; missing, repeated or malformed values preserve ordinary denial."
          }
        ],
        "x-appportal-deployment-capability": {
          "name": "identity-associations",
          "enabledByDefault": false
        },
        "description": "Use a previously acknowledged definition for the same client, session and delivery generation. Send identity.identityAssociation with schemaVersion 1, associationId, deliveryGenerationId and capturedAt. Omit userId and userProfile or set them to null, and omit the server-only resolvedState. Keep the exact definition and record on temporary failure; do not retry against v1."
      }
    }
  },
  "components": {
    "schemas": {
      "TelemetryEventRecord": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "eventId": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": true,
              "nonWhitespace": true,
              "defaultMaxUtf16CodeUnits": 200,
              "configuration": "Ingestion:Protocol:MaxRecordIdLength"
            }
          },
          "identity": {
            "type": "object",
            "properties": {
              "tenantId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "appId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "environmentName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "deploymentTarget": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "clientId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "appVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "buildNumber": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sessionId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "userId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deviceId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "buildVariant": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "sdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "platform": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\s*(?:(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS])(?:\\s*,\\s*(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS]))*|[+-]?[0-9]+)\\s*$"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "x-appportal-canonical-enum-values": [
                  "unattributed",
                  "iOS",
                  "Android",
                  "Windows",
                  "MacCatalyst",
                  "Web",
                  "macOS",
                  "watchOS",
                  "tvOS",
                  "WinUI",
                  "Wpf",
                  "Linux",
                  "iPadOS"
                ],
                "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate.",
                "default": null
              },
              "contextSchemaVersion": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$"
              },
              "identityAssociation": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "associationId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "deliveryGenerationId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "capturedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "resolvedState": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "description": "Optional immutable association reference for the explicitly enabled /v2/ingest contract only. A v1 request carrying this reference receives identity_association_contract_unavailable (503); retain its original definition and body without a legacy fallback.",
                "x-appportal-acceptance-rules": {
                  "deliveryContract": "identity-association-v1",
                  "requiresExplicitV2Route": true
                }
              },
              "userProfile": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "displayName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "traits": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              },
              "effectiveTarget": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectivePlatform": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              }
            },
            "description": "Supply an identity object. The authenticated SDK credential replaces tenantId, appId and environmentName; those coordinates cannot retarget a request."
          },
          "eventType": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": true,
              "nonWhitespaceWhenPresent": true,
              "trimmed": true,
              "noControlCharacters": true,
              "maxUnicodeScalars": 64
            }
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": true,
              "nonWhitespaceWhenPresent": true,
              "trimmed": true,
              "noControlCharacters": true,
              "maxUnicodeScalars": 200
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "properties": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "default": null,
            "x-appportal-acceptance-rules": {
              "maxProperties": 50,
              "maxKeyUnicodeScalars": 100,
              "maxValueUnicodeScalars": 1024,
              "nonNullValues": true,
              "source": "Canonical validation in AppPortal.Contracts.Telemetry"
            }
          },
          "measurements": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": [
                "string",
                "number"
              ],
              "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$"
            },
            "default": null
          }
        },
        "x-appportal-binding-requires-identity-object": true,
        "x-appportal-record-validation": "The schema describes HTTP JSON binding. These x-appportal-acceptance-rules are checked per record; a wire-readable record can receive a Rejected acknowledgement in an HTTP 200 response."
      },
      "CrashReportRecord": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "crashId": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": true,
              "nonWhitespace": true,
              "defaultMaxUtf16CodeUnits": 200,
              "configuration": "Ingestion:Protocol:MaxRecordIdLength"
            }
          },
          "identity": {
            "type": "object",
            "properties": {
              "tenantId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "appId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "environmentName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "deploymentTarget": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "clientId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "appVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "buildNumber": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sessionId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "userId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deviceId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "buildVariant": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "sdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "platform": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\s*(?:(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS])(?:\\s*,\\s*(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS]))*|[+-]?[0-9]+)\\s*$"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "x-appportal-canonical-enum-values": [
                  "unattributed",
                  "iOS",
                  "Android",
                  "Windows",
                  "MacCatalyst",
                  "Web",
                  "macOS",
                  "watchOS",
                  "tvOS",
                  "WinUI",
                  "Wpf",
                  "Linux",
                  "iPadOS"
                ],
                "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate.",
                "default": null
              },
              "contextSchemaVersion": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$"
              },
              "identityAssociation": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "associationId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "deliveryGenerationId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "capturedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "resolvedState": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "description": "Optional immutable association reference for the explicitly enabled /v2/ingest contract only. A v1 request carrying this reference receives identity_association_contract_unavailable (503); retain its original definition and body without a legacy fallback.",
                "x-appportal-acceptance-rules": {
                  "deliveryContract": "identity-association-v1",
                  "requiresExplicitV2Route": true
                }
              },
              "userProfile": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "displayName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "traits": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              },
              "effectiveTarget": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectivePlatform": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              }
            },
            "description": "Supply an identity object. The authenticated SDK credential replaces tenantId, appId and environmentName; those coordinates cannot retarget a request."
          },
          "severity": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\s*(?:(?:[hH][aA][nN][dD][lL][eE][dD][eE][rR][rR][oO][rR]|[uU][nN][hH][aA][nN][dD][lL][eE][dD][cC][rR][aA][sS][hH])(?:\\s*,\\s*(?:[hH][aA][nN][dD][lL][eE][dD][eE][rR][rR][oO][rR]|[uU][nN][hH][aA][nN][dD][lL][eE][dD][cC][rR][aA][sS][hH]))*|[+-]?[0-9]+)\\s*$"
              },
              {
                "type": "integer"
              }
            ],
            "x-appportal-canonical-enum-values": [
              "HandledError",
              "UnhandledCrash"
            ],
            "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate."
          },
          "exceptionType": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": true,
              "nonWhitespace": true
            }
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "stackTrace": {
            "type": [
              "string",
              "null"
            ]
          },
          "wasInForeground": {
            "type": "boolean"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "deviceModel": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "osVersion": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "properties": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "default": null
          },
          "receivedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "default": null,
            "readOnly": true,
            "description": "Server-derived query field. The ingestion route ignores or clears caller-supplied values."
          },
          "attachmentFingerprint": {
            "type": [
              "string",
              "null"
            ],
            "default": null,
            "readOnly": true,
            "description": "Server-derived query field. The ingestion route ignores or clears caller-supplied values."
          },
          "rawStackTrace": {
            "type": [
              "string",
              "null"
            ],
            "default": null,
            "readOnly": true,
            "description": "Server-derived query field. The ingestion route ignores or clears caller-supplied values."
          },
          "symbolicationStatus": {
            "type": [
              "string",
              "null"
            ],
            "default": null,
            "readOnly": true,
            "description": "Server-derived query field. The ingestion route ignores or clears caller-supplied values."
          },
          "symbolArtifactId": {
            "type": [
              "string",
              "null"
            ],
            "default": null,
            "readOnly": true,
            "description": "Server-derived query field. The ingestion route ignores or clears caller-supplied values."
          },
          "bucketId": {
            "type": [
              "string",
              "null"
            ],
            "default": null,
            "readOnly": true,
            "description": "Server-derived query field. The ingestion route ignores or clears caller-supplied values."
          },
          "deviceContext": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "schemaVersion": {
                "type": [
                  "string",
                  "integer"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "x-appportal-acceptance-rules": {
                  "const": 1
                }
              },
              "osFamily": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "osVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "osBuild": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "manufacturer": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "model": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "modelName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "idiom": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "architecture": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "isEmulator": {
                "type": [
                  "boolean",
                  "null"
                ],
                "default": null
              },
              "runtimeName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "runtimeVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "wrapperName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "wrapperVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "screenWidthPixels": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "default": null,
                "x-appportal-acceptance-rules": {
                  "minimum": 1,
                  "maximum": 32768,
                  "unit": "pixels"
                }
              },
              "screenHeightPixels": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "default": null,
                "x-appportal-acceptance-rules": {
                  "minimum": 1,
                  "maximum": 32768,
                  "unit": "pixels"
                }
              },
              "screenScale": {
                "type": [
                  "string",
                  "number",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
                "default": null,
                "x-appportal-acceptance-rules": {
                  "exclusiveMinimum": 0,
                  "maximum": 16
                }
              }
            },
            "default": null
          },
          "exception": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true,
                  "maxUtf16CodeUnits": 1024
                }
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "maxUtf16CodeUnits": 16384
                }
              },
              "stackTrace": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "maxUtf16CodeUnits": 262144
                }
              },
              "properties": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "default": null
              },
              "innerExceptions": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "x-appportal-acceptance-rules": {
                        "requiredForAcceptance": true,
                        "nonWhitespace": true,
                        "maxUtf16CodeUnits": 1024
                      }
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null,
                      "x-appportal-acceptance-rules": {
                        "maxUtf16CodeUnits": 16384
                      }
                    },
                    "stackTrace": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null,
                      "x-appportal-acceptance-rules": {
                        "maxUtf16CodeUnits": 262144
                      }
                    },
                    "properties": {
                      "$ref": "#/components/schemas/CrashReportRecord/properties/exception/properties/properties",
                      "default": null
                    },
                    "innerExceptions": {
                      "$ref": "#/components/schemas/CrashReportRecord/properties/exception/properties/innerExceptions",
                      "default": null,
                      "x-appportal-acceptance-rules": {
                        "maxGraphDepth": 16,
                        "maxGraphNodes": 64,
                        "nullChildNodes": false
                      }
                    },
                    "stackContext": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "kind": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "x-appportal-acceptance-rules": {
                            "const": "managed",
                            "requiredForAcceptance": true
                          }
                        },
                        "modules": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "moduleMvid": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "architecture": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "default": null
                              },
                              "pdb": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "kind": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "guid": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "stamp": {
                                    "type": [
                                      "string",
                                      "integer",
                                      "null"
                                    ],
                                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                                  }
                                },
                                "default": null
                              }
                            }
                          },
                          "x-appportal-acceptance-rules": {
                            "requiredForAcceptance": true,
                            "maxItems": 64
                          }
                        },
                        "frames": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "moduleIndex": {
                                "type": [
                                  "string",
                                  "integer",
                                  "null"
                                ],
                                "pattern": "^-?(?:0|[1-9]\\d*)$",
                                "default": null
                              },
                              "methodToken": {
                                "type": [
                                  "string",
                                  "integer",
                                  "null"
                                ],
                                "pattern": "^-?(?:0|[1-9]\\d*)$",
                                "default": null
                              },
                              "ilOffset": {
                                "type": [
                                  "string",
                                  "integer",
                                  "null"
                                ],
                                "pattern": "^-?(?:0|[1-9]\\d*)$",
                                "default": null
                              }
                            }
                          },
                          "x-appportal-acceptance-rules": {
                            "requiredForAcceptance": true,
                            "maxItems": 128
                          }
                        },
                        "truncated": {
                          "type": "boolean",
                          "default": false
                        }
                      }
                    }
                  }
                },
                "default": null,
                "x-appportal-acceptance-rules": {
                  "maxGraphDepth": 16,
                  "maxGraphNodes": 64,
                  "nullChildNodes": false
                }
              },
              "stackContext": {
                "$ref": "#/components/schemas/CrashReportRecord/properties/exception/properties/innerExceptions/items/properties/stackContext"
              }
            },
            "default": null
          },
          "symbolication": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "availability": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "readRevision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "frameCounts": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "total": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "matching": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "resolved": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "ambiguous": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  }
                },
                "default": null
              },
              "unavailableStackNodeCount": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "default": null
              },
              "displayTruncated": {
                "type": [
                  "boolean",
                  "null"
                ],
                "default": null
              },
              "omittedFrameCount": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "default": null
              },
              "omittedNodeCount": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "default": null
              },
              "nodes": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "nodeIndex": {
                      "type": [
                        "string",
                        "integer"
                      ],
                      "pattern": "^-?(?:0|[1-9]\\d*)$"
                    },
                    "path": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "inputStatus": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "truncated": {
                      "type": "boolean"
                    },
                    "omittedFrameCount": {
                      "type": [
                        "string",
                        "integer"
                      ],
                      "pattern": "^-?(?:0|[1-9]\\d*)$"
                    },
                    "frames": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "index": {
                            "type": [
                              "string",
                              "integer"
                            ],
                            "pattern": "^-?(?:0|[1-9]\\d*)$"
                          },
                          "availability": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "reason": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "function": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "default": null
                          },
                          "sourceFile": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "default": null
                          },
                          "sourceLine": {
                            "type": [
                              "string",
                              "integer",
                              "null"
                            ],
                            "pattern": "^-?(?:0|[1-9]\\d*)$",
                            "default": null
                          },
                          "displayTruncated": {
                            "type": [
                              "boolean",
                              "null"
                            ],
                            "default": null
                          }
                        }
                      }
                    }
                  }
                },
                "default": null
              },
              "native": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "availability": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "status": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "reason": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "inputStatus": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "imagesTruncated": {
                    "type": "boolean"
                  },
                  "frameCounts": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "total": {
                        "type": [
                          "string",
                          "integer"
                        ],
                        "pattern": "^-?(?:0|[1-9]\\d*)$"
                      },
                      "matching": {
                        "type": [
                          "string",
                          "integer"
                        ],
                        "pattern": "^-?(?:0|[1-9]\\d*)$"
                      },
                      "resolved": {
                        "type": [
                          "string",
                          "integer"
                        ],
                        "pattern": "^-?(?:0|[1-9]\\d*)$"
                      },
                      "ambiguous": {
                        "type": [
                          "string",
                          "integer"
                        ],
                        "pattern": "^-?(?:0|[1-9]\\d*)$"
                      }
                    },
                    "default": null
                  },
                  "displayTruncated": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "default": null
                  },
                  "omittedFrameCount": {
                    "type": [
                      "string",
                      "integer",
                      "null"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$",
                    "default": null
                  },
                  "frames": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "index": {
                          "type": [
                            "string",
                            "integer"
                          ],
                          "pattern": "^-?(?:0|[1-9]\\d*)$"
                        },
                        "address": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "addressKind": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "availability": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "imageIndex": {
                          "type": [
                            "string",
                            "integer",
                            "null"
                          ],
                          "pattern": "^-?(?:0|[1-9]\\d*)$",
                          "default": null
                        },
                        "imageFormat": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "imageName": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "imageIdentity": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "architecture": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "coordinateBasis": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "linkTimeAddress": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "function": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "sourceFile": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "sourceLine": {
                          "type": [
                            "string",
                            "integer",
                            "null"
                          ],
                          "pattern": "^-?(?:0|[1-9]\\d*)$",
                          "default": null
                        },
                        "displayTruncated": {
                          "type": [
                            "boolean",
                            "null"
                          ],
                          "default": null
                        }
                      }
                    },
                    "default": null
                  }
                }
              },
              "java": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "availability": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "status": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "reason": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "inputStatus": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "frameCounts": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "total": {
                        "type": [
                          "string",
                          "integer"
                        ],
                        "pattern": "^-?(?:0|[1-9]\\d*)$"
                      },
                      "matching": {
                        "type": [
                          "string",
                          "integer"
                        ],
                        "pattern": "^-?(?:0|[1-9]\\d*)$"
                      },
                      "resolved": {
                        "type": [
                          "string",
                          "integer"
                        ],
                        "pattern": "^-?(?:0|[1-9]\\d*)$"
                      },
                      "ambiguous": {
                        "type": [
                          "string",
                          "integer"
                        ],
                        "pattern": "^-?(?:0|[1-9]\\d*)$"
                      }
                    }
                  },
                  "displayTruncated": {
                    "type": "boolean",
                    "default": false
                  },
                  "omittedFrameCount": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$",
                    "default": 0
                  },
                  "nodes": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "nodeIndex": {
                          "type": [
                            "string",
                            "integer"
                          ],
                          "pattern": "^-?(?:0|[1-9]\\d*)$"
                        },
                        "path": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "frames": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "index": {
                                "type": [
                                  "string",
                                  "integer"
                                ],
                                "pattern": "^-?(?:0|[1-9]\\d*)$"
                              },
                              "availability": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "reason": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "mappingHash": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "default": null
                              },
                              "inlineFrames": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "function": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "sourceFile": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "sourceLine": {
                                      "type": [
                                        "string",
                                        "integer",
                                        "null"
                                      ],
                                      "pattern": "^-?(?:0|[1-9]\\d*)$"
                                    }
                                  }
                                },
                                "default": null
                              }
                            }
                          }
                        }
                      }
                    },
                    "default": null
                  }
                }
              }
            },
            "readOnly": true,
            "description": "Server-derived query field. The ingestion route ignores or clears caller-supplied values."
          },
          "captureAttribution": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "evidence": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "userId": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              }
            },
            "readOnly": true
          }
        },
        "x-appportal-binding-requires-identity-object": true,
        "x-appportal-record-validation": "The schema describes HTTP JSON binding. These x-appportal-acceptance-rules are checked per record; a wire-readable record can receive a Rejected acknowledgement in an HTTP 200 response."
      },
      "LogRecord": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "logId": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": true,
              "nonWhitespace": true,
              "defaultMaxUtf16CodeUnits": 200,
              "configuration": "Ingestion:Protocol:MaxRecordIdLength"
            }
          },
          "identity": {
            "type": "object",
            "properties": {
              "tenantId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "appId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "environmentName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "deploymentTarget": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "clientId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "appVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "buildNumber": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sessionId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "userId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deviceId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "buildVariant": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "sdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "platform": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\s*(?:(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS])(?:\\s*,\\s*(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS]))*|[+-]?[0-9]+)\\s*$"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "x-appportal-canonical-enum-values": [
                  "unattributed",
                  "iOS",
                  "Android",
                  "Windows",
                  "MacCatalyst",
                  "Web",
                  "macOS",
                  "watchOS",
                  "tvOS",
                  "WinUI",
                  "Wpf",
                  "Linux",
                  "iPadOS"
                ],
                "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate.",
                "default": null
              },
              "contextSchemaVersion": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$"
              },
              "identityAssociation": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "associationId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "deliveryGenerationId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "capturedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "resolvedState": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "description": "Optional immutable association reference for the explicitly enabled /v2/ingest contract only. A v1 request carrying this reference receives identity_association_contract_unavailable (503); retain its original definition and body without a legacy fallback.",
                "x-appportal-acceptance-rules": {
                  "deliveryContract": "identity-association-v1",
                  "requiresExplicitV2Route": true
                }
              },
              "userProfile": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "displayName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "traits": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              },
              "effectiveTarget": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectivePlatform": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              }
            },
            "description": "Supply an identity object. The authenticated SDK credential replaces tenantId, appId and environmentName; those coordinates cannot retarget a request."
          },
          "severity": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\s*(?:(?:[tT][rR][aA][cC][eE]|[dD][eE][bB][uU][gG]|[iI][nN][fF][oO][rR][mM][aA][tT][iI][oO][nN]|[wW][aA][rR][nN][iI][nN][gG]|[eE][rR][rR][oO][rR]|[cC][rR][iI][tT][iI][cC][aA][lL])(?:\\s*,\\s*(?:[tT][rR][aA][cC][eE]|[dD][eE][bB][uU][gG]|[iI][nN][fF][oO][rR][mM][aA][tT][iI][oO][nN]|[wW][aA][rR][nN][iI][nN][gG]|[eE][rR][rR][oO][rR]|[cC][rR][iI][tT][iI][cC][aA][lL]))*|[+-]?[0-9]+)\\s*$"
              },
              {
                "type": "integer"
              }
            ],
            "x-appportal-canonical-enum-values": [
              "Trace",
              "Debug",
              "Information",
              "Warning",
              "Error",
              "Critical"
            ],
            "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate."
          },
          "message": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": true,
              "nonWhitespace": true,
              "maxUnicodeScalars": 32768,
              "noNullCharacter": true
            }
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": false,
              "nonWhitespaceWhenPresent": true,
              "trimmed": true,
              "noControlCharacters": true,
              "maxUnicodeScalars": 256
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "properties": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "default": null,
            "x-appportal-acceptance-rules": {
              "maxProperties": 50,
              "maxKeyUnicodeScalars": 100,
              "maxValueUnicodeScalars": 4096,
              "nonNullValues": true,
              "source": "Canonical validation in AppPortal.Contracts.Telemetry"
            }
          },
          "deviceContext": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "schemaVersion": {
                "type": [
                  "string",
                  "integer"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "x-appportal-acceptance-rules": {
                  "const": 1
                }
              },
              "osFamily": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "osVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "osBuild": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "manufacturer": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "model": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "modelName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "idiom": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "architecture": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "isEmulator": {
                "type": [
                  "boolean",
                  "null"
                ],
                "default": null
              },
              "runtimeName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "runtimeVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "wrapperName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "wrapperVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "screenWidthPixels": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "default": null,
                "x-appportal-acceptance-rules": {
                  "minimum": 1,
                  "maximum": 32768,
                  "unit": "pixels"
                }
              },
              "screenHeightPixels": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "default": null,
                "x-appportal-acceptance-rules": {
                  "minimum": 1,
                  "maximum": 32768,
                  "unit": "pixels"
                }
              },
              "screenScale": {
                "type": [
                  "string",
                  "number",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
                "default": null,
                "x-appportal-acceptance-rules": {
                  "exclusiveMinimum": 0,
                  "maximum": 16
                }
              }
            },
            "default": null
          },
          "exception": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "stackTrace": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              }
            },
            "default": null
          }
        },
        "x-appportal-binding-requires-identity-object": true,
        "x-appportal-record-validation": "The schema describes HTTP JSON binding. These x-appportal-acceptance-rules are checked per record; a wire-readable record can receive a Rejected acknowledgement in an HTTP 200 response."
      },
      "SessionRecord": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "sessionId": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": true,
              "nonWhitespace": true,
              "defaultMaxUtf16CodeUnits": 200,
              "configuration": "Ingestion:Protocol:MaxRecordIdLength"
            }
          },
          "identity": {
            "type": "object",
            "properties": {
              "tenantId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "appId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "environmentName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "deploymentTarget": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "clientId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "appVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "buildNumber": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sessionId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "userId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deviceId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "buildVariant": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "sdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "platform": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\s*(?:(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS])(?:\\s*,\\s*(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS]))*|[+-]?[0-9]+)\\s*$"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "x-appportal-canonical-enum-values": [
                  "unattributed",
                  "iOS",
                  "Android",
                  "Windows",
                  "MacCatalyst",
                  "Web",
                  "macOS",
                  "watchOS",
                  "tvOS",
                  "WinUI",
                  "Wpf",
                  "Linux",
                  "iPadOS"
                ],
                "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate.",
                "default": null
              },
              "contextSchemaVersion": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$"
              },
              "identityAssociation": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "associationId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "deliveryGenerationId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "capturedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "resolvedState": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "description": "Optional immutable association reference for the explicitly enabled /v2/ingest contract only. A v1 request carrying this reference receives identity_association_contract_unavailable (503); retain its original definition and body without a legacy fallback.",
                "x-appportal-acceptance-rules": {
                  "deliveryContract": "identity-association-v1",
                  "requiresExplicitV2Route": true
                }
              },
              "userProfile": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "displayName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "traits": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              },
              "effectiveTarget": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectivePlatform": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              }
            },
            "description": "Supply an identity object. The authenticated SDK credential replaces tenantId, appId and environmentName; those coordinates cannot retarget a request."
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "endedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "osVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "deviceModel": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true,
            "description": "Server-owned session evidence; caller values are cleared before receipt hashing and replaced from the trusted request boundary."
          },
          "foregroundTransitions": {
            "type": [
              "string",
              "integer"
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$"
          },
          "endedInCrash": {
            "type": "boolean"
          },
          "deviceContext": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "schemaVersion": {
                "type": [
                  "string",
                  "integer"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "x-appportal-acceptance-rules": {
                  "const": 1
                }
              },
              "osFamily": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "osVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "osBuild": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "manufacturer": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "model": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "modelName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "idiom": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "architecture": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "isEmulator": {
                "type": [
                  "boolean",
                  "null"
                ],
                "default": null
              },
              "runtimeName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "runtimeVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "wrapperName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "wrapperVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null,
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": false,
                  "nonWhitespaceWhenPresent": true,
                  "trimmed": true,
                  "noControlCharacters": true,
                  "maxUnicodeScalars": 120
                }
              },
              "screenWidthPixels": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "default": null,
                "x-appportal-acceptance-rules": {
                  "minimum": 1,
                  "maximum": 32768,
                  "unit": "pixels"
                }
              },
              "screenHeightPixels": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$",
                "default": null,
                "x-appportal-acceptance-rules": {
                  "minimum": 1,
                  "maximum": 32768,
                  "unit": "pixels"
                }
              },
              "screenScale": {
                "type": [
                  "string",
                  "number",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
                "default": null,
                "x-appportal-acceptance-rules": {
                  "exclusiveMinimum": 0,
                  "maximum": 16
                }
              }
            },
            "default": null
          },
          "geography": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "countryCode": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "default": null,
            "readOnly": true,
            "description": "Server-owned session evidence; caller values are cleared before receipt hashing and replaced from the trusted request boundary."
          },
          "lastActivityAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "readOnly": true,
            "description": "Server-owned session evidence; caller values are cleared before receipt hashing and replaced from the trusted request boundary."
          },
          "activeDurationMs": {
            "type": [
              "string",
              "integer",
              "null"
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$"
          },
          "lifecycleState": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\s*(?:(?:[uU][nN][kK][nN][oO][wW][nN]|[fF][oO][rR][eE][gG][rR][oO][uU][nN][dD]|[bB][aA][cC][kK][gG][rR][oO][uU][nN][dD]|[tT][eE][rR][mM][iI][nN][aA][tT][eE][dD])(?:\\s*,\\s*(?:[uU][nN][kK][nN][oO][wW][nN]|[fF][oO][rR][eE][gG][rR][oO][uU][nN][dD]|[bB][aA][cC][kK][gG][rR][oO][uU][nN][dD]|[tT][eE][rR][mM][iI][nN][aA][tT][eE][dD]))*|[+-]?[0-9]+)\\s*$"
              },
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "x-appportal-canonical-enum-values": [
              "Unknown",
              "Foreground",
              "Background",
              "Terminated"
            ],
            "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate."
          },
          "lifecycleStateChangedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "lifecycleTransitions": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "sequence": {
                  "type": [
                    "string",
                    "integer"
                  ],
                  "pattern": "^-?(?:0|[1-9]\\d*)$"
                },
                "state": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^\\s*(?:(?:[uU][nN][kK][nN][oO][wW][nN]|[fF][oO][rR][eE][gG][rR][oO][uU][nN][dD]|[bB][aA][cC][kK][gG][rR][oO][uU][nN][dD]|[tT][eE][rR][mM][iI][nN][aA][tT][eE][dD])(?:\\s*,\\s*(?:[uU][nN][kK][nN][oO][wW][nN]|[fF][oO][rR][eE][gG][rR][oO][uU][nN][dD]|[bB][aA][cC][kK][gG][rR][oO][uU][nN][dD]|[tT][eE][rR][mM][iI][nN][aA][tT][eE][dD]))*|[+-]?[0-9]+)\\s*$"
                    },
                    {
                      "type": "integer"
                    }
                  ],
                  "x-appportal-canonical-enum-values": [
                    "Unknown",
                    "Foreground",
                    "Background",
                    "Terminated"
                  ],
                  "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate."
                },
                "occurredAt": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            }
          },
          "lifecycleTransitionsTruncated": {
            "type": "boolean"
          },
          "observedUsers": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "items": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "userId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "displayName": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "readOnly": true
                    }
                  }
                }
              },
              "count": {
                "type": [
                  "string",
                  "integer"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$"
              },
              "isTruncated": {
                "type": "boolean"
              }
            }
          }
        },
        "x-appportal-binding-requires-identity-object": true,
        "x-appportal-record-validation": "The schema describes HTTP JSON binding. These x-appportal-acceptance-rules are checked per record; a wire-readable record can receive a Rejected acknowledgement in an HTTP 200 response."
      },
      "RumMarkerRecord": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "markerId": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": true,
              "nonWhitespace": true,
              "defaultMaxUtf16CodeUnits": 200,
              "configuration": "Ingestion:Protocol:MaxRecordIdLength"
            }
          },
          "identity": {
            "type": "object",
            "properties": {
              "tenantId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "appId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "environmentName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "deploymentTarget": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "clientId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "appVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "buildNumber": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sessionId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "userId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deviceId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "buildVariant": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "sdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "platform": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\s*(?:(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS])(?:\\s*,\\s*(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS]))*|[+-]?[0-9]+)\\s*$"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "x-appportal-canonical-enum-values": [
                  "unattributed",
                  "iOS",
                  "Android",
                  "Windows",
                  "MacCatalyst",
                  "Web",
                  "macOS",
                  "watchOS",
                  "tvOS",
                  "WinUI",
                  "Wpf",
                  "Linux",
                  "iPadOS"
                ],
                "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate.",
                "default": null
              },
              "contextSchemaVersion": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$"
              },
              "identityAssociation": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "associationId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "deliveryGenerationId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "capturedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "resolvedState": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "description": "Optional immutable association reference for the explicitly enabled /v2/ingest contract only. A v1 request carrying this reference receives identity_association_contract_unavailable (503); retain its original definition and body without a legacy fallback.",
                "x-appportal-acceptance-rules": {
                  "deliveryContract": "identity-association-v1",
                  "requiresExplicitV2Route": true
                }
              },
              "userProfile": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "displayName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "traits": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              },
              "effectiveTarget": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectivePlatform": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              }
            },
            "description": "Supply an identity object. The authenticated SDK credential replaces tenantId, appId and environmentName; those coordinates cannot retarget a request."
          },
          "kind": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\s*(?:(?:[aA][pP][pP][sS][tT][aA][rR][tT]|[sS][cC][rR][eE][eE][nN][lL][oO][aA][dD]|[nN][eE][tT][wW][oO][rR][kK][rR][eE][qQ][uU][eE][sS][tT]|[cC][uU][sS][tT][oO][mM])(?:\\s*,\\s*(?:[aA][pP][pP][sS][tT][aA][rR][tT]|[sS][cC][rR][eE][eE][nN][lL][oO][aA][dD]|[nN][eE][tT][wW][oO][rR][kK][rR][eE][qQ][uU][eE][sS][tT]|[cC][uU][sS][tT][oO][mM]))*|[+-]?[0-9]+)\\s*$"
              },
              {
                "type": "integer"
              }
            ],
            "x-appportal-canonical-enum-values": [
              "AppStart",
              "ScreenLoad",
              "NetworkRequest",
              "Custom"
            ],
            "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate."
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "durationMs": {
            "type": [
              "string",
              "number"
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$"
          },
          "succeeded": {
            "type": "boolean"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "httpStatusCode": {
            "type": [
              "string",
              "integer",
              "null"
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "default": null
          },
          "target": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "httpRequest": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "path": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "queryString": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "headers": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "default": null
              },
              "body": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              }
            }
          }
        },
        "x-appportal-binding-requires-identity-object": true,
        "x-appportal-record-validation": "The schema describes HTTP JSON binding. These x-appportal-acceptance-rules are checked per record; a wire-readable record can receive a Rejected acknowledgement in an HTTP 200 response."
      },
      "PushRegistrationRecord": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "registrationId": {
            "type": [
              "string",
              "null"
            ],
            "x-appportal-acceptance-rules": {
              "requiredForAcceptance": true,
              "nonWhitespace": true,
              "defaultMaxUtf16CodeUnits": 200,
              "configuration": "Ingestion:Protocol:MaxRecordIdLength"
            }
          },
          "identity": {
            "type": "object",
            "properties": {
              "tenantId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "appId": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "environmentName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "deploymentTarget": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "clientId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "appVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "buildNumber": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sessionId": {
                "type": [
                  "string",
                  "null"
                ],
                "x-appportal-acceptance-rules": {
                  "requiredForAcceptance": true,
                  "nonWhitespace": true
                }
              },
              "userId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deviceId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "buildVariant": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "sdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "platform": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\s*(?:(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS])(?:\\s*,\\s*(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS]))*|[+-]?[0-9]+)\\s*$"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "x-appportal-canonical-enum-values": [
                  "unattributed",
                  "iOS",
                  "Android",
                  "Windows",
                  "MacCatalyst",
                  "Web",
                  "macOS",
                  "watchOS",
                  "tvOS",
                  "WinUI",
                  "Wpf",
                  "Linux",
                  "iPadOS"
                ],
                "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate.",
                "default": null
              },
              "contextSchemaVersion": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ],
                "pattern": "^-?(?:0|[1-9]\\d*)$"
              },
              "identityAssociation": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "associationId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "deliveryGenerationId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "capturedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "resolvedState": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "description": "Optional immutable association reference for the explicitly enabled /v2/ingest contract only. A v1 request carrying this reference receives identity_association_contract_unavailable (503); retain its original definition and body without a legacy fallback.",
                "x-appportal-acceptance-rules": {
                  "deliveryContract": "identity-association-v1",
                  "requiresExplicitV2Route": true
                }
              },
              "userProfile": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "schemaVersion": {
                    "type": [
                      "string",
                      "integer"
                    ],
                    "pattern": "^-?(?:0|[1-9]\\d*)$"
                  },
                  "displayName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "traits": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              },
              "effectiveTarget": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectivePlatform": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkName": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              },
              "effectiveSdkVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "readOnly": true
              }
            },
            "description": "Supply an identity object. The authenticated SDK credential replaces tenantId, appId and environmentName; those coordinates cannot retarget a request."
          },
          "platform": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\s*(?:(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS])(?:\\s*,\\s*(?:[uU][nN][aA][tT][tT][rR][iI][bB][uU][tT][eE][dD]|[iI][oO][sS]|[aA][nN][dD][rR][oO][iI][dD]|[wW][iI][nN][dD][oO][wW][sS]|[mM][aA][cC][cC][aA][tT][aA][lL][yY][sS][tT]|[wW][eE][bB]|[mM][aA][cC][oO][sS]|[wW][aA][tT][cC][hH][oO][sS]|[tT][vV][oO][sS]|[wW][iI][nN][uU][iI]|[wW][pP][fF]|[lL][iI][nN][uU][xX]|[iI][pP][aA][dD][oO][sS]))*|[+-]?[0-9]+)\\s*$"
              },
              {
                "type": "integer"
              }
            ],
            "x-appportal-canonical-enum-values": [
              "unattributed",
              "iOS",
              "Android",
              "Windows",
              "MacCatalyst",
              "Web",
              "macOS",
              "watchOS",
              "tvOS",
              "WinUI",
              "Wpf",
              "Linux",
              "iPadOS"
            ],
            "description": "Canonical SDK enum names are listed above. HTTP deserialization also permits the converter's case-insensitive names and numeric forms; numeric values must fit the underlying enum type. Per-record validation remains separate."
          },
          "deviceToken": {
            "type": [
              "string",
              "null"
            ]
          },
          "deviceIdiom": {
            "type": [
              "string",
              "null"
            ]
          },
          "locality": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          },
          "tags": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "registeredAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastSeenAt": {
            "type": "string",
            "format": "date-time"
          },
          "active": {
            "type": "boolean"
          }
        },
        "x-appportal-binding-requires-identity-object": true,
        "x-appportal-record-validation": "The schema describes HTTP JSON binding. These x-appportal-acceptance-rules are checked per record; a wire-readable record can receive a Rejected acknowledgement in an HTTP 200 response."
      },
      "TelemetryIngestionResult": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "accepted": {
            "type": "integer"
          },
          "duplicates": {
            "type": "integer"
          },
          "rejected": {
            "type": "integer"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "acknowledgements": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "recordId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "status": {
                  "enum": [
                    "Accepted",
                    "AlreadyAccepted",
                    "Rejected"
                  ]
                },
                "index": {
                  "type": "integer"
                },
                "errorCode": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "default": null
                },
                "message": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "default": null
                },
                "retryable": {
                  "type": "boolean",
                  "default": false
                },
                "occurrenceFingerprint": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "default": null
                }
              },
              "required": [
                "recordId",
                "status",
                "index"
              ]
            },
            "default": null
          },
          "schemaVersion": {
            "type": "integer",
            "default": 1
          }
        },
        "required": [
          "accepted",
          "duplicates",
          "rejected",
          "errors"
        ]
      },
      "TelemetryTemporaryFailureResponse": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "errorCode": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "retryAt": {
            "type": "string",
            "format": "date-time"
          },
          "retryAfterSeconds": {
            "type": "integer",
            "default": 3600
          },
          "retryable": {
            "type": "boolean",
            "default": true
          },
          "schemaVersion": {
            "type": "integer",
            "default": 1
          },
          "allowanceResetsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "default": null
          }
        },
        "required": [
          "errorCode",
          "error",
          "retryAt"
        ]
      },
      "TelemetryPermanentFailureResponse": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "proof": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8192,
            "description": "Identity-issued RS256 JWT, typ appportal-client-disposition+jwt, bound to the exact credential, attempt nonce, configuration generation, body digest, public origin, method and path. Verify against already trusted signing keys, issuer/audience and fresh 120-second lifetime (5-second clock skew) before applying any action. Missing trust, invalid/stale proof or a changed configuration is non-destructive."
          },
          "errorCode": {
            "type": "string",
            "default": "app_credential_permanently_rejected",
            "const": "app_credential_permanently_rejected"
          },
          "action": {
            "type": "string",
            "default": "purge_and_disable",
            "const": "purge_and_disable"
          },
          "schemaVersion": {
            "type": "integer",
            "default": 1,
            "const": 1
          }
        },
        "required": [
          "proof",
          "errorCode",
          "action",
          "schemaVersion"
        ]
      },
      "TelemetryIdentityAssociationDefinition": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "schemaVersion": {
            "type": [
              "string",
              "integer"
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$"
          },
          "associationId": {
            "type": [
              "string",
              "null"
            ]
          },
          "clientId": {
            "type": [
              "string",
              "null"
            ]
          },
          "sessionId": {
            "type": [
              "string",
              "null"
            ]
          },
          "deliveryGenerationId": {
            "type": "string",
            "format": "uuid"
          },
          "nonce": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": [
              "string",
              "null"
            ]
          },
          "userId": {
            "type": [
              "string",
              "null"
            ]
          },
          "capturedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "x-appportal-record-validation": "The schema describes HTTP JSON binding. These x-appportal-acceptance-rules are checked per record; a wire-readable record can receive a Rejected acknowledgement in an HTTP 200 response.",
        "description": "An immutable definition. Preserve the original nonce and all fields on retry. A set state requires an opaque user ID; other states require a null user ID.",
        "x-appportal-acceptance-rules": {
          "schemaVersion": 1,
          "states": [
            "anonymous",
            "set",
            "clear",
            "redacted"
          ],
          "associationIdPattern": "^[0-9a-f]{64}$",
          "capturedAtPrecision": "whole milliseconds"
        }
      },
      "TelemetryIdentityAssociationResult": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "schemaVersion": {
            "type": "integer",
            "const": 1
          },
          "acknowledgements": {
            "type": "array",
            "items": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "associationId": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "Accepted",
                    "AlreadyAccepted",
                    "Rejected"
                  ]
                },
                "index": {
                  "type": "integer"
                },
                "errorCode": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "default": null
                },
                "retryable": {
                  "type": "boolean",
                  "default": false
                }
              },
              "required": [
                "associationId",
                "status",
                "index"
              ]
            }
          }
        },
        "required": [
          "schemaVersion",
          "acknowledgements"
        ]
      }
    },
    "securitySchemes": {
      "installedAppCredential": {
        "type": "apiKey",
        "in": "header",
        "name": "X-AppPortal-SDK-Key",
        "description": "Persisted installed-app credential, bound to one app and environment. Requires TelemetryIngest permission. Caller-supplied identity cannot retarget it."
      }
    }
  },
  "x-appportal-property-names-case-insensitive": true,
  "x-appportal-default-max-request-body-bytes": 6291456,
  "x-appportal-default-max-record-id-length": 200,
  "x-appportal-scope": "Six v1 telemetry batch operations and six opt-in v2 identity-association operations. Crash attachments, consent, Message Center and Location have distinct contracts.",
  "x-appportal-generation": "System.Text.Json.Schema exporter; request deserialization and response serialization projections are distinct. Unknown JSON properties are ignored by the owning HTTP serializer. Per-record validation is documented in x-appportal-acceptance-rules.",
  "x-appportal-reference-source": "8bda8e8302d4ea5bd005ef1132f7267e82e6337c"
}
